[sheepdog] [PATCH 4/7] increase the default number of virtual nodes

MORITA Kazutaka morita.kazutaka at gmail.com
Fri Aug 30 11:32:06 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

We gave up backward compatibility in the previous patch, so it's a
good chance to increase the default number of virtual nodes.

The number means the default granularity of how much data will be
moved after node change events.  E.g., if the number of virtual nodes
is 5, at least one-fifth data will be moved when object movement
happens.

There is no good rational reason for the number 128.  The bigger
number requires more memory space.  I've chose it just because it's
the same number as the current default virtual disks.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 include/internal_proto.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/internal_proto.h b/include/internal_proto.h
index e55d55c..8544c75 100644
--- a/include/internal_proto.h
+++ b/include/internal_proto.h
@@ -28,8 +28,8 @@
 #define SD_MAX_COPIES 8
 
 #define SD_MAX_NODES 1024
-#define SD_DEFAULT_VNODES 64
-#define SD_MAX_VNODES 65536
+#define SD_DEFAULT_VNODES 128
+#define SD_MAX_VNODES (SD_MAX_NODES * SD_DEFAULT_VNODES)
 
 /*
  * Operations with opcodes above 0x80 are considered part of the inter-sheep
-- 
1.7.9.5




More information about the sheepdog mailing list