From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx193.postini.com [74.125.245.193]) by kanga.kvack.org (Postfix) with SMTP id 6EB816B0088 for ; Tue, 30 Oct 2012 16:30:14 -0400 (EDT) Received: by mail-qa0-f48.google.com with SMTP id c11so533553qad.14 for ; Tue, 30 Oct 2012 13:30:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <20121015144412.GA2173@barrios> <20121016061854.GB3934@barrios> <20121022235321.GK13817@bbox> <20121030001809.GL15767@bbox> Date: Tue, 30 Oct 2012 13:30:13 -0700 Message-ID: Subject: Re: zram OOM behavior From: Luigi Semenzato Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Minchan Kim , linux-mm@kvack.org, Dan Magenheimer , KOSAKI Motohiro , Sonny Rao On Tue, Oct 30, 2012 at 12:12 PM, Luigi Semenzato wrote: > OK, now someone is going to fix this, right? :-) Actually, there is a very simple fix: @@ -355,14 +364,6 @@ static struct task_struct *select_bad_process(unsigned int *ppoints, if (p == current) { chosen = p; *ppoints = 1000; - } else if (!force_kill) { - /* - * If this task is not being ptraced on exit, - * then wait for it to finish before killing - * some other task unnecessarily. - */ - if (!(p->group_leader->ptrace & PT_TRACE_EXIT)) - return ERR_PTR(-1UL); } } I'd rather kill some other task unnecessarily than hang! My load works fine with this change. -- 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