From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx195.postini.com [74.125.245.195]) by kanga.kvack.org (Postfix) with SMTP id 9DA236B006E for ; Mon, 29 Oct 2012 18:52:16 -0400 (EDT) Received: by mail-pb0-f41.google.com with SMTP id rq2so5001784pbb.14 for ; Mon, 29 Oct 2012 15:52:15 -0700 (PDT) Date: Mon, 29 Oct 2012 15:52:13 -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> 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 On Mon, 29 Oct 2012, Luigi Semenzato wrote: > It looks like it's the final call to schedule() in do_exit(): > > 0x81028520 <+1593>: call 0x813b68a0 > 0x81028525 <+1598>: ud2a > > (gdb) l *do_exit+0x63e > 0x81028525 is in do_exit > (/home/semenzato/trunk/src/third_party/kernel/files/kernel/exit.c:1069). > 1064 > 1065 /* causes final put_task_struct in finish_task_switch(). */ > 1066 tsk->state = TASK_DEAD; > 1067 tsk->flags |= PF_NOFREEZE; /* tell freezer to ignore us */ > 1068 schedule(); > 1069 BUG(); > 1070 /* Avoid "noreturn function does return". */ > 1071 for (;;) > 1072 cpu_relax(); /* For when BUG is null */ > 1073 } > You're using an older kernel since the code you quoted from the oom killer hasn't had the per-memcg oom kill rewrite. There's logic that is called from select_bad_process() that should exclude this thread from being considered and deferred since it has a non-zero task->exit_thread, i.e. in oom_scan_process_thread(): if (task->exit_state) return OOM_SCAN_CONTINUE; And that's called from both the global oom killer and memcg oom killer. So I'm thinking you're either running on an older kernel or there is no oom condition at the time this is captured. -- 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