]> git.proxmox.com Git - pve-kernel-2.6.32.git/blame - dlm-increase-default-hash-table-sizes.patch
update to vzkernel-2.6.32-042stab045.1.src.rpm
[pve-kernel-2.6.32.git] / dlm-increase-default-hash-table-sizes.patch
CommitLineData
ed2a6bee
DM
1From e3853a90e218bcb2e48d3f403d0962bf54444f5f Mon Sep 17 00:00:00 2001
2From: David Teigland <teigland@redhat.com>
3Date: Thu, 10 Mar 2011 13:07:17 -0600
4Subject: [PATCH 1/1] dlm: increase default hash table sizes
5
6Make all three hash tables a consistent size of 1024
7rather than 1024, 512, 256. All three tables, for
8resources, locks, and lock dir entries, will generally
9be filled to the same order of magnitude.
10
11Signed-off-by: David Teigland <teigland@redhat.com>
12---
13 fs/dlm/config.c | 4 ++--
14 1 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/fs/dlm/config.c b/fs/dlm/config.c
17index b54bca0..0d329ff 100644
18--- a/fs/dlm/config.c
19+++ b/fs/dlm/config.c
20@@ -977,9 +977,9 @@ int dlm_our_addr(struct sockaddr_storage *addr, int num)
21 /* Config file defaults */
22 #define DEFAULT_TCP_PORT 21064
23 #define DEFAULT_BUFFER_SIZE 4096
24-#define DEFAULT_RSBTBL_SIZE 256
25+#define DEFAULT_RSBTBL_SIZE 1024
26 #define DEFAULT_LKBTBL_SIZE 1024
27-#define DEFAULT_DIRTBL_SIZE 512
28+#define DEFAULT_DIRTBL_SIZE 1024
29 #define DEFAULT_RECOVER_TIMER 5
30 #define DEFAULT_TOSS_SECS 10
31 #define DEFAULT_SCAN_SECS 5
32--
331.7.2.5
34