From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rientjes Subject: Re: [PATCH 1/5] mm: Add __GFP_NO_OOM_KILL flag Date: Thu, 7 May 2009 13:40:29 -0700 (PDT) Message-ID: References: <200905072133.48917.rjw@sisk.pl> <20090507130202.34cbe37a.akpm@linux-foundation.org> <200905072218.50782.rjw@sisk.pl> <20090507203518.GA1652@ucw.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090507203518.GA1652@ucw.cz> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Pavel Machek Cc: kernel-testers@vger.kernel.org, linux-kernel@vger.kernel.org, alan-jenkins@tuffmail.co.uk, jens.axboe@oracle.com, Andrew Morton , fengguang.wu@intel.com, torvalds@linux-foundation.org, linux-pm@lists.linux-foundation.org List-Id: linux-pm@vger.kernel.org On Thu, 7 May 2009, Pavel Machek wrote: > > Third time I'm going to suggest this, and I'd like a response on why it's > > not possible instead of being ignored. > > > > All of your tasks are in D state other than kthreads, right? That means > > they won't be in the oom killer (thus no zones are oom locked), so you can > > easily do this > > Well, OOM killer may be running on behalf of some kthread at that > point....? Quite unlikely, but possible AFAICT. The oom killer doesn't care about the task's state, so this will be a genuine oom situation where it will kill a task (one in D state since kthreads are inherently immune) which will die when unfrozen. That would have had to happen anyway when all tasks wake up since the system is completely out of memory (except for kswapd that is given access to memory reserves because of PF_MEMALLOC) so you're not worried about completely blocking out the oom killer anymore because the next kthread to invoke it in such a situation will end up being a no-op because it finds a task with TIF_MEMDIE set.