Re: [RFC] Hugetlb demotion for x86

From: Christoph Hellwig
Date: Wed May 10 2006 - 16:49:56 EST


On Wed, May 10, 2006 at 03:32:36PM -0500, Adam Litke wrote:
> By smart fallback do you mean we should convert the hugetlb fault code
> back to using VM_FAULT_SIGBUS and writing userspace sighandlers to do
> the same thing I am, but in userspace? FWIW I did implement that in
> libhugetlbfs to try it out, but that seems much dirtier to me than
> handling faults in the kernel.

Umm, why do these faults happen at all? When all the hugetlb code went
in it we allocated at mmap time. Later it was converted to demand faulting
but under the premise that we keep the strict overcommit accounting. When
did that part go away aswell? With strict overcommit handling for huge
pages no fault should happen when the pool is exausted.

-
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/