Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759771AbcLBNwW (ORCPT ); Fri, 2 Dec 2016 08:52:22 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37684 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759578AbcLBNwU (ORCPT ); Fri, 2 Dec 2016 08:52:20 -0500 Date: Fri, 2 Dec 2016 05:52:16 -0800 From: "Paul E. McKenney" To: Michal Hocko Cc: Boris Zhmurov , Paul Menzel , Donald Buczek , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: INFO: rcu_sched detected stalls on CPUs/tasks with `kswapd` and `mem_cgroup_shrink_node` Reply-To: paulmck@linux.vnet.ibm.com References: <3a4242cb-0198-0a3b-97ae-536fb5ff83ec@kernelpanic.ru> <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> <20161202093734.GE6830@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161202093734.GE6830@dhcp22.suse.cz> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16120213-0008-0000-0000-0000063B3F2C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006180; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000193; SDB=6.00788330; UDB=6.00381437; IPR=6.00566006; BA=6.00004937; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013514; XFM=3.00000011; UTC=2016-12-02 13:52:15 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16120213-0009-0000-0000-00003D84AB0F Message-Id: <20161202135216.GJ3924@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-02_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1612020224 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1199 Lines: 28 On Fri, Dec 02, 2016 at 10:37:35AM +0100, Michal Hocko wrote: > On Thu 01-12-16 21:10:01, Boris Zhmurov wrote: > > Michal Hocko 30/11/16 21:25: > > > > >>> Do I get it right that s@cond_resched_rcu_qs@cond_resched@ didn't help? > > >> > > >> I didn't try that. I've tried 4 patches from Paul's linux-rcu tree. > > >> I can try another portion of patches, no problem :) > > > > > > Replacing cond_resched_rcu_qs in shrink_node_memcg by cond_resched would > > > be really helpful to tell whether we are missing a real scheduling point > > > or whether something more serious is going on here. > > > > 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. > > OK, thanks for the confirmation! I will send a patch because it is true > that we do not have any scheduling point if no pages can be isolated > fromm the LRU. This might be what you are seeing. Thank you both! Thanx, Paul