From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756243Ab0IGJpq (ORCPT ); Tue, 7 Sep 2010 05:45:46 -0400 Received: from one.firstfloor.org ([213.235.205.2]:47589 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756181Ab0IGJpk (ORCPT ); Tue, 7 Sep 2010 05:45:40 -0400 Date: Tue, 7 Sep 2010 11:45:38 +0200 From: Andi Kleen To: KAMEZAWA Hiroyuki Cc: "linux-mm\@kvack.org" , "linux-kernel\@vger.kernel.org" , "minchan.kim\@gmail.com" , Mel Gorman , "kosaki.motohiro\@jp.fujitsu.com" Subject: Re: [RFC][PATCH] big continuous memory allocator v2 Message-ID: <20100907114538.71fc2dcd@basil.nowhere.org> In-Reply-To: <20100907180354.a8dd5669.kamezawa.hiroyu@jp.fujitsu.com> References: <20100907114505.fc40ea3d.kamezawa.hiroyu@jp.fujitsu.com> <87occa9fla.fsf@basil.nowhere.org> <20100907172559.496554d8.kamezawa.hiroyu@jp.fujitsu.com> <20100907104635.2a02a1ca@basil.nowhere.org> <20100907180354.a8dd5669.kamezawa.hiroyu@jp.fujitsu.com> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 7 Sep 2010 18:03:54 +0900 KAMEZAWA Hiroyuki wrote: > Oh, I didn't consider that. Hmm. If x86 really wants to support 1GB > page, MAX_ORDER should be raised. (I'm sorry if it was already > disccused.) That doesn't really work, it requires alignment of all the zones to 1GB too (not practical) and has a lot of overhead. Also for the normal case it wouldn't work anyways due to fragmentation. > > One issue is also that it would be good to be able to decide > > in advance if the OOM killer is likely triggered (and if yes > > reject the allocation in the first place). > > > > Checking the amount of memory and swap before starts ? > It sounds nice. I'd like to add something. That would be the simple variant, but perhaps it could even consider parallel traffic? (I guess that would be difficult) Or perhaps bail out early if OOM is likely. -Andi -- ak@linux.intel.com -- Speaking for myself only.