[Ocfs2-devel] [PATCH 3/3] OCFS2: speed up dlm_lock_resouce hash_table lookups
wengang wang
wen.gang.wang at oracle.com
Thu Apr 30 21:56:25 PDT 2009
enlarge hash table.
mainline git commit: ffae48e79e56fe63589049a0bf3512bcbf7a4327
Authored-by: Jan Kara <jack at suse.cz>
Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com>
--
Index: ocfs2-1.2/fs/ocfs2/dlm/dlmcommon.h
===================================================================
--- ocfs2-1.2/fs/ocfs2/dlm/dlmcommon.h (revision 3)
+++ ocfs2-1.2/fs/ocfs2/dlm/dlmcommon.h (revision 4)
@@ -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
More information about the Ocfs2-devel
mailing list