Return-Path: Received: from smtp-vbr1.xs4all.nl ([194.109.24.21]:2926 "EHLO smtp-vbr1.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752485Ab0HVSax (ORCPT ); Sun, 22 Aug 2010 14:30:53 -0400 Date: Sun, 22 Aug 2010 20:30:20 +0200 From: Miquel van Smoorenburg To: Trond Myklebust Cc: linux-nfs@vger.kernel.org Subject: [PATCH 01/03]: sunrpc: increase MAX_HASHTABLE_BITS to 14 Message-ID: <20100822183020.GA26607@xs4all.net> References: <20100822182848.GA26590@xs4all.net> Content-Type: text/plain; charset=us-ascii In-Reply-To: <20100822182848.GA26590@xs4all.net> Sender: linux-nfs-owner@vger.kernel.org List-ID: MIME-Version: 1.0 The maximum size of the authcache is now set to 1024 (10 bits), but on our server we need at least 4096 (12 bits). Increase MAX_HASHTABLE_BITS to 14. This is a maximum of 16384 entries, each containing a pointer (8 bytes on x86_64). This is exactly the limit of kmalloc() (128K). Signed-off-by: Miquel van Smoorenburg diff -ruN linux-2.6.36-rc1.orig/net/sunrpc/auth.c linux-2.6.36-rc1/net/sunrpc/auth.c --- linux-2.6.36-rc1.orig/net/sunrpc/auth.c 2010-08-16 02:41:37.000000000 +0200 +++ linux-2.6.36-rc1/net/sunrpc/auth.c 2010-08-22 17:02:27.896009116 +0200 @@ -38,7 +39,7 @@ static LIST_HEAD(cred_unused); static unsigned long number_cred_unused; -#define MAX_HASHTABLE_BITS (10) +#define MAX_HASHTABLE_BITS (14) static int param_set_hashtbl_sz(const char *val, const struct kernel_param *kp) { unsigned long num;