Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934388Ab1CXXli (ORCPT ); Thu, 24 Mar 2011 19:41:38 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:36017 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934337Ab1CXXlh (ORCPT ); Thu, 24 Mar 2011 19:41:37 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Fri, 25 Mar 2011 08:35:00 +0900 From: KAMEZAWA Hiroyuki To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , KOSAKI Motohiro , Andrey Vagin Subject: Re: [PATCH] Accelerate OOM killing Message-Id: <20110325083500.0ec98acb.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1300960353-2596-1-git-send-email-minchan.kim@gmail.com> References: <1300960353-2596-1-git-send-email-minchan.kim@gmail.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 3.1.0 (GTK+ 2.10.14; i686-pc-mingw32) 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: 1024 Lines: 25 On Thu, 24 Mar 2011 18:52:33 +0900 Minchan Kim wrote: > 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: KAMEZAWA Hiroyuki -- 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/