From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 074BC6B0038 for ; Fri, 2 Dec 2016 12:02:55 -0500 (EST) Received: by mail-wm0-f71.google.com with SMTP id i131so4175317wmf.3 for ; Fri, 02 Dec 2016 09:02:54 -0800 (PST) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com. [74.125.82.67]) by mx.google.com with ESMTPS id s191si3785886wmd.160.2016.12.02.09.02.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Dec 2016 09:02:53 -0800 (PST) Received: by mail-wm0-f67.google.com with SMTP id m203so3639922wma.3 for ; Fri, 02 Dec 2016 09:02:53 -0800 (PST) Date: Fri, 2 Dec 2016 18:02:49 +0100 From: Michal Hocko Subject: Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node` Message-ID: <20161202170248.GT6830@dhcp22.suse.cz> References: <20161128143435.GC3924@linux.vnet.ibm.com> <20161128150509.GG3924@linux.vnet.ibm.com> <66fd50e1-a922-846a-f427-7654795bd4b5@kernelpanic.ru> <20161130174802.GM18432@dhcp22.suse.cz> <20161130182552.GN18432@dhcp22.suse.cz> <20161202164408.GM3924@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161202164408.GM3924@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: "Paul E. McKenney" Cc: Boris Zhmurov , Paul Menzel , Donald Buczek , linux-mm@kvack.org, linux-kernel@vger.kernel.org On Fri 02-12-16 08:44:08, Paul E. McKenney wrote: > On Fri, Dec 02, 2016 at 07:39:24PM +0300, Boris Zhmurov wrote: > > Paul E. McKenney Thu Dec 01 2016 - 14:39:21 EST: > > > > >> Well, I can confirm, that replacing cond_resched_rcu_qs in > > >> shrink_node_memcg by cond_resched also makes dmesg clean from RCU > > >> CPU stall warnings. > > >> > > >> I've attached patch (just modification of Paul's patch), that > > >> fixes RCU stall messages in situations, when all memory is used by > > >> couchbase/memcached + fs cache and linux starts to use swap. > > > > > Nice! Just to double-check, could you please also test your patch > > > above with these two commits from -rcu? > > > > > > d2db185bfee8 ("rcu: Remove short-term CPU kicking") f8f127e738e3 > > > ("rcu: Add long-term CPU kicking") > > > > > > Thanx, Paul > > > > > > Looks like patches d2db185bfee8 and f8f127e738e3 change nothing. > > > > With cond_resched() in shrink_node_memcg and these two patches dmesg is > > clean. No any RCU CPU stall messages. > > Very good! I have these two patches queued for 4.11. FWIW I have posted the cond_resched patch to Andrew [1]. I didn't CC you Paul to save you from emails as this is more MM than anything else related ;) [1] http://lkml.kernel.org/r/20161202095841.16648-1-mhocko@kernel.org -- 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