Re: [PATCH] [0/6] HUGETLB memory commitment

From: Andy Whitcroft <>
Date: 2004-03-26 13:01:10
--On 25 March 2004 23:59 +0000 Andy Whitcroft <> wrote:

> --On 25 March 2004 15:51 -0800 Andrew Morton <> wrote:
>> I think it's simply:
>> - Make normal overcommit logic skip hugepages completely
>> - Teach the overcommit_memory=2 logic that hugepages are basically
>>   "pinned", so subtract them from the arithmetic.
>> And that's it.  The hugepages are semantically quite different from
>> normal memory (prefaulted, preallocated, unswappable) and we've
>> deliberately avoided pretending otherwise.

Attached is a ground up patch, trying just to cure the overcommit bug.  The 
main thrust is to ensure that VM_ACCOUNT actually only gets set on vma's 
which are indeed accountable.  With that ensured much of the rest comes out 
in the wash.  It also removes the hugetlb memory for the 
overcommit_memory=2 case.

Attached are two patches, core and arch changes.  They have been compile 
tested on i386 and appear to work.  Is that more what you had in mind?


To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at

Received on Thu Mar 25 21:08:04 2004

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST