Skip to contentSkip to conversation

OCFS2: speed up dlm_lock_resouce hash_table lookups

PATCH New wengang wang 1 participant 1 message May 1, 2009 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 OCFS2: speed up dlm_lock_resouce hash_table lookups

enlarge hash table.

mainline git commit: ffae48e79e56fe63589049a0bf3512bcbf7a4327

--

fs/ocfs2/dlm/dlmcommon.h +1 -1
Index: ocfs2-1.2/fs/ocfs2/dlm/dlmcommon.h
===================================================================
@@ -37,7 +37,7 @@
 #define DLM_THREAD_SHUFFLE_INTERVAL    5     // flush everything every 5 passes
 #define DLM_THREAD_MS                  200   // flush at least every 200 ms
 
-#define DLM_HASH_SIZE_DEFAULT	(1 << 14)
+#define DLM_HASH_SIZE_DEFAULT	(1 << 17)
 #if DLM_HASH_SIZE_DEFAULT < PAGE_SIZE
 # define DLM_HASH_PAGES		1
 #else