]> Pileus Git - ~andy/linux/commitdiff
ocfs2/dlm: Increase o2dlm lockres hash size
authorSunil Mushran <sunil.mushran@oracle.com>
Wed, 5 May 2010 23:25:08 +0000 (16:25 -0700)
committerJoel Becker <joel.becker@oracle.com>
Thu, 6 May 2010 01:20:01 +0000 (18:20 -0700)
Lockres hash size of 16KB is far too small for large filesystems (where we
have hundreds of thousands of lock resources stored in the table).
This patch increases it to 128KB.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/dlm/dlmcommon.h

index 0102be35980c03ae0d3bcfe561282e5f9781626f..40115681d5b03bfa8e9f78c2b2ac1a77a86e957d 100644 (file)
@@ -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