From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sha Zhengju Subject: Re: [patch 2/5] mm, oom: introduce helper function to process threads during scan Date: Thu, 12 Jul 2012 15:18:21 +0800 Message-ID: <4FFE7A3D.3010908@gmail.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Ja5xe0rHWVRq28Qbhm9WrwHNFYBgqSrRW81LV3JD2ig=; b=i9gzSDhFcjSa0BqnqDu/TINe/J+a9Wnppt8gQg69AC481x0AsSTf5fBh51eFqzb0/8 /WY0ceGtYwIyBGtswkcE0g/pIihMsem5Un0EdWe8RonEfzdeBE6++3yBDadHQ5PG6f66 uX1inONrWNTDy7fUkCMzve42wMvpwO7OB8Jtp0mgFYHn+3LKYZ2q0UnGWu5AjdAg8MH2 iRSLEiZSLNNNWfZUw5gVK+7+6hSCHuOeT8v2auBC9HHFAhGNbegfVRLaRk9duIjfzN4M t9fcGWaxlSMgVXEKWtn+8rs1BSXT3FWGxr+9LnQAxzIkynelG2JLbteN7CWuiNTnNFBM OIig== In-Reply-To: Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: David Rientjes Cc: Andrew Morton , KAMEZAWA Hiroyuki , Michal Hocko , Johannes Weiner , KOSAKI Motohiro , Minchan Kim , Oleg Nesterov , linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org On 06/30/2012 05:06 AM, David Rientjes wrote: > This patch introduces a helper function to process each thread during the > iteration over the tasklist. A new return type, enum oom_scan_t, is > defined to determine the future behavior of the iteration: > > - OOM_SCAN_OK: continue scanning the thread and find its badness, > > - OOM_SCAN_CONTINUE: do not consider this thread for oom kill, it's > ineligible, > > - OOM_SCAN_ABORT: abort the iteration and return, or > > - OOM_SCAN_SELECT: always select this thread with the highest badness > possible. > > There is no functional change with this patch. This new helper function > will be used in the next patch in the memory controller. > Looks good to me. You can add Reviewed-by: Sha Zhengju :-) Thanks, Sha From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx177.postini.com [74.125.245.177]) by kanga.kvack.org (Postfix) with SMTP id 425AC6B007D for ; Thu, 12 Jul 2012 03:18:28 -0400 (EDT) Received: by pbbrp2 with SMTP id rp2so3992886pbb.14 for ; Thu, 12 Jul 2012 00:18:27 -0700 (PDT) Message-ID: <4FFE7A3D.3010908@gmail.com> Date: Thu, 12 Jul 2012 15:18:21 +0800 From: Sha Zhengju MIME-Version: 1.0 Subject: Re: [patch 2/5] mm, oom: introduce helper function to process threads during scan References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Andrew Morton , KAMEZAWA Hiroyuki , Michal Hocko , Johannes Weiner , KOSAKI Motohiro , Minchan Kim , Oleg Nesterov , linux-mm@kvack.org, cgroups@vger.kernel.org On 06/30/2012 05:06 AM, David Rientjes wrote: > This patch introduces a helper function to process each thread during the > iteration over the tasklist. A new return type, enum oom_scan_t, is > defined to determine the future behavior of the iteration: > > - OOM_SCAN_OK: continue scanning the thread and find its badness, > > - OOM_SCAN_CONTINUE: do not consider this thread for oom kill, it's > ineligible, > > - OOM_SCAN_ABORT: abort the iteration and return, or > > - OOM_SCAN_SELECT: always select this thread with the highest badness > possible. > > There is no functional change with this patch. This new helper function > will be used in the next patch in the memory controller. > Looks good to me. You can add Reviewed-by: Sha Zhengju :-) Thanks, Sha -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org