Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752239AbdI2Lpk (ORCPT ); Fri, 29 Sep 2017 07:45:40 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:43725 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751920AbdI2Lpi (ORCPT ); Fri, 29 Sep 2017 07:45:38 -0400 Date: Fri, 29 Sep 2017 13:45:18 +0200 From: Peter Zijlstra To: Nicholas Piggin Cc: Mathieu Desnoyers , "Paul E. McKenney" , Ingo Molnar , Alexander Viro , linux-arch , Avi Kivity , maged michael , Boqun Feng , Dave Watson , Will Deacon , linux-kernel , Andrew Hunter , Paul Mackerras , Andy Lutomirski , Alan Stern , linuxppc-dev , gromer Subject: Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Message-ID: <20170929114518.gtr7v7sf4oskjuut@hirez.programming.kicks-ass.net> References: <20170926175151.14264-1-mathieu.desnoyers@efficios.com> <33948425.19289.1506458608221.JavaMail.zimbra@efficios.com> <20170927230436.4af88a62@roar.ozlabs.ibm.com> <911707916.20840.1506605496314.JavaMail.zimbra@efficios.com> <20170929010112.3a54be0d@roar.ozlabs.ibm.com> <20170928155115.fou577qzxepnnxqc@hirez.programming.kicks-ass.net> <20170929022757.62d43dfc@roar.ozlabs.ibm.com> <20170929103131.un7tzxsixjoretal@hirez.programming.kicks-ass.net> <20170929213853.46c4675b@roar.ozlabs.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170929213853.46c4675b@roar.ozlabs.ibm.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 926 Lines: 22 On Fri, Sep 29, 2017 at 09:38:53PM +1000, Nicholas Piggin wrote: > Not really. There is some ability to hold onto a line for a time, but > there is no way to starve them, let alone starve hundreds of other > CPUs. They will request the cacheline exclusive and eventually get it. OK, hardware fairness there is nice. > I would really prefer to go this way on powerpc first. We could add the > the registration APIs as basically no-ops, but which would allow the > locking approach to be changed if we find it causes issues. I'll try to > find some time and a big system when I can. Fair enough I suppose. > > A semi related issue; I suppose we can do a arch upcall to flush_tlb_mm > > and reset the mm_cpumask when we change cpuset groups. > > For powerpc we have been looking at how mm_cpumask can be improved. > It has real drawbacks even when you don't consider this new syscall. What else do you use mm_cpumask for?