[Sheepdog] [PATCH] sheep: increase the number of threads
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Wed Jul 7 10:03:13 CEST 2010
The current implementation limits the number of VMs on the same host
machines to the number of worker threads; we can run only 4 VMs for
each host machines.
This patch increases the number of threads (and the number of VMs)
from 4 to 64. I think this fix is temporary and we need to remove the
limitation about the number of VMs in future.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/sheep_priv.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sheep/sheep_priv.h b/sheep/sheep_priv.h
index 47c83c1..542da27 100644
--- a/sheep/sheep_priv.h
+++ b/sheep/sheep_priv.h
@@ -161,7 +161,7 @@ int get_global_nr_copies(uint32_t *copies);
int set_nodeid(uint64_t nodeid);
int get_nodeid(uint64_t *nodeid);
-#define NR_WORKER_THREAD 4
+#define NR_WORKER_THREAD 64
int epoch_log_write(uint32_t epoch, char *buf, int len);
int epoch_log_read(uint32_t epoch, char *buf, int len);
--
1.5.6.5
More information about the sheepdog
mailing list