Re: [PATCH 04/15] mm/huge_memory: use new hashtable implementation

From: Sasha Levin
Date: Wed Dec 19 2012 - 21:25:35 EST

On 12/19/2012 05:26 PM, David Rientjes wrote:
> This used to be dynamically allocated and would save the 8KB that you
> statically allocate if transparent hugepages cannot be used. The generic
> hashtable implementation does not support dynamic allocation?

No, currently the hashtable only handles statically allocated hashtables.

In this case, the downside is that you'll waste 8KB if hugepages aren't available,
but the upside is that you'll have one less dereference when accessing the

If the 8KB saving is preferable here I'll drop the patch and come back when
dynamic hashtable is supported.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at