Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756770Ab1CXKFh (ORCPT ); Thu, 24 Mar 2011 06:05:37 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:44433 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754483Ab1CXKFg (ORCPT ); Thu, 24 Mar 2011 06:05:36 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Minchan Kim Subject: Re: [PATCH] Accelerate OOM killing Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , linux-mm , LKML , KAMEZAWA Hiroyuki , Andrey Vagin In-Reply-To: <1300960353-2596-1-git-send-email-minchan.kim@gmail.com> References: <1300960353-2596-1-git-send-email-minchan.kim@gmail.com> Message-Id: <20110324190534.5CC9.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.56.05 [ja] Date: Thu, 24 Mar 2011 19:05:30 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 948 Lines: 26 > When I test Andrey's problem, I saw the livelock and sysrq-t says > there are many tasks in cond_resched after try_to_free_pages. > > If did_some_progress is false, cond_resched could delay oom killing so > It might be killing another task. > > This patch accelerates oom killing without unnecessary giving CPU > to another task. It could help avoding unnecessary another task killing > and livelock situation a litte bit. > > Cc: KOSAKI Motohiro > Cc: KAMEZAWA Hiroyuki > Cc: Andrey Vagin > Signed-off-by: Minchan Kim Reviewed-by: KOSAKI Motohiro -- 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/