From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx159.postini.com [74.125.245.159]) by kanga.kvack.org (Postfix) with SMTP id 2A4A96B0068 for ; Tue, 30 Oct 2012 18:32:37 -0400 (EDT) Received: by mail-qa0-f41.google.com with SMTP id c4so2993582qae.14 for ; Tue, 30 Oct 2012 15:32:36 -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 15:32:36 -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 1:30 PM, Luigi Semenzato wrote: > 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. For completeness, I would like to report that the page fault in mm_release looks legitimate. The fault happens near here: if (unlikely(tsk->robust_list)) { exit_robust_list(tsk); tsk->robust_list = NULL; } and robust_list is a userspace structure. -- 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