From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andi Kleen Subject: Re: [PATCH 5/5][RFC][CFT] resizable namespace.c hashes Date: Fri, 07 Mar 2014 09:17:19 -0800 Message-ID: <87bnxi6i8w.fsf@tassilo.jf.intel.com> References: <20140305034751.GW18016@ZenIV.linux.org.uk> <20140305035219.GE26528@ZenIV.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain Cc: linux-fsdevel@vger.kernel.org, Linus Torvalds , linux-kernel@vger.kernel.org, Stephen Tweedie , Jeremy Eder To: Al Viro Return-path: In-Reply-To: <20140305035219.GE26528@ZenIV.linux.org.uk> (Al Viro's message of "Wed, 5 Mar 2014 03:52:19 +0000") Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Al Viro writes: > * switch allocation to alloc_large_system_hash() > * make sizes overridable by boot parameters (mhash_entries=, mphash_entries=) > * switch mountpoint_hashtable from list_head to hlist_head So how much memory does this use on a standard system (<4GB memory)? How much memory does it use on a large system (0.5TB)? How good is your hash function. Would jhash be more appropiate and allow smaller hash tables? Perhaps just want a tree here. -Andi -- ak@linux.intel.com -- Speaking for myself only