--On 25 March 2004 23:59 +0000 Andy Whitcroft <apw@shadowen.org> wrote: > --On 25 March 2004 15:51 -0800 Andrew Morton <akpm@osdl.org> 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? -apw - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:24 EST