From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757343AbZEKBp1 (ORCPT ); Sun, 10 May 2009 21:45:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755552AbZEKBpM (ORCPT ); Sun, 10 May 2009 21:45:12 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:35424 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752631AbZEKBpK (ORCPT ); Sun, 10 May 2009 21:45:10 -0400 From: KOSAKI Motohiro To: David Rientjes Subject: Re: [patch 08/11 -mmotm] oom: invoke oom killer for __GFP_NOFAIL Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , Greg Kroah-Hartman , Nick Piggin , Mel Gorman , Peter Zijlstra , Christoph Lameter , Dave Hansen , San Mehat , Arve Hjonnevag , linux-kernel@vger.kernel.org In-Reply-To: References: <20090511085750.B9AC.A69D9226@jp.fujitsu.com> Message-Id: <20090511104310.B9C1.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.50.07 [ja] Date: Mon, 11 May 2009 10:45:05 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Mon, 11 May 2009, KOSAKI Motohiro wrote: > > > > The oom killer must be invoked regardless of the order if the allocation > > > is __GFP_NOFAIL, otherwise it will loop forever when reclaim fails to > > > free some memory. > > > > This is intensional behavior. plus you change very widely caller bahavior. > > if you don't have good test program, I nak this. > > > > What exactly are you objecting to? You don't want the oom killer called > for a __GFP_NOFAIL allocation above PAGE_ALLOC_COSTLY_ORDER that could not > reclaim any memory and would prefer that it loop endlessly in the page > allocator? What's the purpose of that if the oom killer could free a very > large memory hogging task? My point is, if we change gfp-flags meaning, we should change unintentional affected caller. Do you oppose this?