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 56D616B0062 for ; Wed, 31 Oct 2012 00:46:07 -0400 (EDT) Received: by mail-pb0-f41.google.com with SMTP id rq2so762708pbb.14 for ; Tue, 30 Oct 2012 21:46:05 -0700 (PDT) Date: Tue, 30 Oct 2012 21:46:03 -0700 (PDT) From: David Rientjes Subject: Re: zram OOM behavior In-Reply-To: Message-ID: References: <20121015144412.GA2173@barrios> <20121016061854.GB3934@barrios> <20121022235321.GK13817@bbox> <20121030001809.GL15767@bbox> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Luigi Semenzato Cc: Minchan Kim , linux-mm@kvack.org, Dan Magenheimer , KOSAKI Motohiro , Sonny Rao On Tue, 30 Oct 2012, Luigi Semenzato wrote: > 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. > That's not an acceptable "fix" at all, it will lead to unnecessarily killing processes when others are in the exit path, i.e. every oom kill would kill two or three or more processes instead of just one. Could you please try this on 3.6 since all the code you're quoting is from old kernels? -- 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