Re: [PATCH 5/5][RFC][CFT] resizable namespace.c hashes

From: Andi Kleen
Date: Fri Mar 07 2014 - 12:17:32 EST


Al Viro <viro@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx -- Speaking for myself only
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/