Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757207Ab1CXVrY (ORCPT ); Thu, 24 Mar 2011 17:47:24 -0400 Received: from smtp-out.google.com ([74.125.121.67]:28665 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755215Ab1CXVrU (ORCPT ); Thu, 24 Mar 2011 17:47:20 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; b=ShPwQeO/JUsDtBeKEuMKpCITsD94q5CRpQ73VwfppVNVFv0hi4d3FEGboIVG+/1EJN ZuC32bSWRR1Y5AwjdmsQ== Date: Thu, 24 Mar 2011 14:47:11 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Minchan Kim cc: Andrew Morton , linux-mm , LKML , KOSAKI Motohiro , KAMEZAWA Hiroyuki , Andrey Vagin Subject: Re: [PATCH] Accelerate OOM killing In-Reply-To: <1300960353-2596-1-git-send-email-minchan.kim@gmail.com> Message-ID: References: <1300960353-2596-1-git-send-email-minchan.kim@gmail.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 968 Lines: 23 On Thu, 24 Mar 2011, 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 Acked-by: David Rientjes -- 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/