From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752774AbbIONGG (ORCPT ); Tue, 15 Sep 2015 09:06:06 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:39145 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752335AbbIONGE (ORCPT ); Tue, 15 Sep 2015 09:06:04 -0400 Date: Tue, 15 Sep 2015 15:05:50 +0200 From: Peter Zijlstra To: Christian Borntraeger Cc: Tejun Heo , Ingo Molnar , "linux-kernel@vger.kernel.org >> Linux Kernel Mailing List" , KVM list , Oleg Nesterov , Paul McKenney Subject: Re: [4.2] commit d59cfc09c32 (sched, cgroup: replace signal_struct->group_rwsem with a global percpu_rwsem) causes regression for libvirt/kvm Message-ID: <20150915130550.GC16853@twins.programming.kicks-ass.net> References: <55F8097A.7000206@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55F8097A.7000206@de.ibm.com> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 15, 2015 at 02:05:14PM +0200, Christian Borntraeger wrote: > Tejun, > > > commit d59cfc09c32a2ae31f1c3bc2983a0cd79afb3f14 (sched, cgroup: replace > signal_struct->group_rwsem with a global percpu_rwsem) causes some noticably > hickups when starting several kvm guests (which libvirt will move into cgroups > - each vcpu thread and each i/o thread) > When you now start lots of guests in parallel on a bigger system (32CPUs with > 2way smt in my case) the system is so busy that systemd runs into several timeouts > like "Did not receive a reply. Possible causes include: the remote application did > not send a reply, the message bus security policy blocked the reply, the reply > timeout expired, or the network connection was broken." > > The problem seems to be that the newly used percpu_rwsem does a > rcu_synchronize_sched_expedited for all write downs/ups. Can you try: git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu.git dev.2015.09.11ab those include Oleg's rework of the percpu rwsem which should hopefully improve things somewhat. But yes, pounding a global lock on a big machine will always suck.