From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx108.postini.com [74.125.245.108]) by kanga.kvack.org (Postfix) with SMTP id 54E786B0032 for ; Wed, 10 Jul 2013 12:25:08 -0400 (EDT) Subject: =?utf-8?q?Re=3A_=5BPATCH_for_3=2E2=5D_memcg=3A_do_not_trap_chargers_with_full_callstack_on_OOM?= Date: Wed, 10 Jul 2013 18:25:06 +0200 From: "azurIt" References: <20130619132614.GC16457@dhcp22.suse.cz>, <20130622220958.D10567A4@pobox.sk>, <20130624201345.GA21822@cmpxchg.org>, <20130628120613.6D6CAD21@pobox.sk>, <20130705181728.GQ17812@cmpxchg.org>, <20130705210246.11D2135A@pobox.sk>, <20130705191854.GR17812@cmpxchg.org>, <20130708014224.50F06960@pobox.sk>, <20130709131029.GH20281@dhcp22.suse.cz>, <20130709151921.5160C199@pobox.sk> <20130709135450.GI20281@dhcp22.suse.cz> In-Reply-To: <20130709135450.GI20281@dhcp22.suse.cz> MIME-Version: 1.0 Message-Id: <20130710182506.F25DF461@pobox.sk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: =?utf-8?q?Michal_Hocko?= Cc: =?utf-8?q?Johannes_Weiner?= , linux-kernel@vger.kernel.org, linux-mm@kvack.org, =?utf-8?q?cgroups_mailinglist?= , =?utf-8?q?KAMEZAWA_Hiroyuki?= , righi.andrea@gmail.com >> Now i realized that i forgot to remove UID from that cgroup before >> trying to remove it, so cgroup cannot be removed anyway (we are using >> third party cgroup called cgroup-uid from Andrea Righi, which is able >> to associate all user's processes with target cgroup). Look here for >> cgroup-uid patch: >> https://www.develer.com/~arighi/linux/patches/cgroup-uid/cgroup-uid-v8.patch >> >> ANYWAY, i'm 101% sure that 'tasks' file was empty and 'under_oom' was >> permanently '1'. > >This is really strange. Could you post the whole diff against stable >tree you are using (except for grsecurity stuff and the above cgroup-uid >patch)? Here are all patches which i applied to kernel 3.2.48 in my last test: http://watchdog.sk/lkml/patches3/ Patches marked as 7-* are from Johannes. I'm appling them in order except the grsecurity - it goes as first. azur >Btw. the bellow patch might help us to point to the exit path which >leaves wait_on_memcg without mem_cgroup_oom_synchronize: >--- >diff --git a/kernel/exit.c b/kernel/exit.c >index e6e01b9..ad472e0 100644 >--- a/kernel/exit.c >+++ b/kernel/exit.c >@@ -895,6 +895,7 @@ NORET_TYPE void do_exit(long code) > > profile_task_exit(tsk); > >+ WARN_ON(current->memcg_oom.wait_on_memcg); > WARN_ON(blk_needs_flush_plug(tsk)); > > if (unlikely(in_interrupt())) >-- >Michal Hocko >SUSE Labs > -- 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