Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756522Ab1CGVxL (ORCPT ); Mon, 7 Mar 2011 16:53:11 -0500 Received: from smtp1.linux-foundation.org ([140.211.169.13]:38000 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755246Ab1CGVxK (ORCPT ); Mon, 7 Mar 2011 16:53:10 -0500 Date: Mon, 7 Mar 2011 13:52:28 -0800 From: Andrew Morton To: David Rientjes Cc: Andrew Vagin , KOSAKI Motohiro , Andrey Vagin , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: skip zombie in OOM-killer Message-Id: <20110307135228.aad5a97d.akpm@linux-foundation.org> In-Reply-To: References: <1299286307-4386-1-git-send-email-avagin@openvz.org> <20110306193519.49DD.A69D9226@jp.fujitsu.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-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 Content-Length: 1560 Lines: 34 On Mon, 7 Mar 2011 12:36:49 -0800 (PST) David Rientjes wrote: > On Mon, 7 Mar 2011, Andrew Vagin wrote: > > > > Andrey is patching the case where an eligible TIF_MEMDIE process is found > > > but it has already detached its ->mm. __In combination with the patch > > > posted to linux-mm, oom: prevent unnecessary oom kills or kernel panics, > > > which makes select_bad_process() iterate over all threads, it is an > > > effective solution. > > > > Probably you said about the first version of my patch. > > This version is incorrect because of > > http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=dd8e8f405ca386c7ce7cbb996ccd985d283b0e03 > > > > but my first patch is correct and it has a simple reproducer(I > > attached it). You can execute it and your kernel hangs up, because the > > parent doesn't wait children, but the one child (zombie) will have > > flag TIF_MEMDIE, oom_killer will kill nobody > > > > The second version of your patch works fine in combination with the > pending "oom: prevent unnecessary oom kills or kernel panics" patch from > linux-mm (included below). Andrew's v2 doesn't apply on top of oom-prevent-unnecessary-oom-kills-or-kernel-panics.patch and I'm disinclined to fix that up and merge some untested patch combination. -- 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/