Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263270AbUCNEHh (ORCPT ); Sat, 13 Mar 2004 23:07:37 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263271AbUCNEHg (ORCPT ); Sat, 13 Mar 2004 23:07:36 -0500 Received: from dp.samba.org ([66.70.73.150]:32955 "EHLO lists.samba.org") by vger.kernel.org with ESMTP id S263270AbUCNEH3 (ORCPT ); Sat, 13 Mar 2004 23:07:29 -0500 Date: Sun, 14 Mar 2004 15:06:34 +1100 From: Anton Blanchard To: Andrew Morton Cc: Andi Kleen , raybry@sgi.com, lse-tech@lists.sourceforge.net, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [Lse-tech] Re: Hugetlbpages in very large memory machines....... Message-ID: <20040314040634.GC19737@krispykreme> References: <40528383.10305@sgi.com> <20040313034840.GF4638@wotan.suse.de> <20040313184547.6e127b51.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040313184547.6e127b51.akpm@osdl.org> User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1225 Lines: 28 > Demand-paging the hugepages is a decent feature to have, and ISTR resisting > it before for this reason. > > Even though it's early in the 2.6 series I'd be a bit worried about > breaking existing hugetlb users in this way. Yes, the pages are > preallocated so it is unlikely that a working setup is suddenly going to > break. Unless someone is using the return value from mmap to find out how > many pages they can get. Hmm what a coincidence, I was chasing a problem where large page allocations would fail even though I clearly had enough large page memory free. It turns out we were tripping the overcommit logic in do_mmap. I had 30GB of large page and 2GB of small pages and of course cap_vm_enough_memory was looking at the small page pool. Setting overcommit to 1 fixed it. It seems we can solve both problems by having a separate hugetlb overcommit policy. Make it strict and you wont have OOM problems on large pages and I wont hit my 30GB / 2GB problem. Anton - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/