Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756705Ab1EKXds (ORCPT ); Wed, 11 May 2011 19:33:48 -0400 Received: from mail-qy0-f174.google.com ([209.85.216.174]:62443 "EHLO mail-qy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755112Ab1EKXdr (ORCPT ); Wed, 11 May 2011 19:33:47 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=EGLZd2DJ8E3l8OxqkAcEWogJ6NA7avZ1b3B9fVU2N3NjzKqzP8VahI9+C6+LoL3mck /sBIDPlLzXvWI0xxR+7AKq7STN6TJUWfcCLeVMDEf2C6FtppS/+BIr2+hVtB+8Q7adEc PAFml2CmrFtUi4bbt+jLcNAwLh3xQUJ89Rqus= MIME-Version: 1.0 In-Reply-To: <20110510171641.16AF.A69D9226@jp.fujitsu.com> References: <20110509182110.167F.A69D9226@jp.fujitsu.com> <20110510171335.16A7.A69D9226@jp.fujitsu.com> <20110510171641.16AF.A69D9226@jp.fujitsu.com> Date: Thu, 12 May 2011 08:33:47 +0900 Message-ID: Subject: Re: [PATCH 2/4] oom: kill younger process first From: Minchan Kim To: KOSAKI Motohiro Cc: CAI Qian , avagin@gmail.com, Andrey Vagin , Andrew Morton , Mel Gorman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Rientjes , Hugh Dickins , Oleg Nesterov Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 22 On Tue, May 10, 2011 at 5:15 PM, KOSAKI Motohiro wrote: > This patch introduces do_each_thread_reverse() and > select_bad_process() uses it. The benefits are two, > 1) oom-killer can kill younger process than older if > they have a same oom score. Usually younger process > is less important. 2) younger task often have PF_EXITING > because shell script makes a lot of short lived processes. > Reverse order search can detect it faster. > > Reported-by: CAI Qian > Signed-off-by: KOSAKI Motohiro Reviewed-by: Minchan Kim -- Kind regards, Minchan Kim -- 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/