Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1741693
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Nicholas Piggin <npiggin@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command |
| Date | Thu, 28 Sep 2017 18:30:01 +0200 |
| Message-ID | <uuJRf-2NO-1@gated-at.bofh.it> (permalink) |
| References | <uu2jg-7SW-3@gated-at.bofh.it> <uu4XM-1ay-9@gated-at.bofh.it> <uukg9-35a-1@gated-at.bofh.it> <uuHcK-17h-13@gated-at.bofh.it> <uuIBR-289-37@gated-at.bofh.it> <uuJof-2om-29@gated-at.bofh.it> |
| X-Original-To | Peter Zijlstra <peterz@infradead.org> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=5KRWGs23/T+3eqc/UDfeYoNKeP03Apb240UGw/2xMhA=; b=hWtlPXnyZ3WZPlSN3ZZJdAYFwJyjhKhWjLFeipkzO/NpPQlQSJ3q/c0i+OfwoJy9yU eO/20spDlxRm13i7rpXIFBxYm2LwH2DerMuMq2tBhlM+dHAgOpzJxx5xlQTUZmyInWUh Nvq03U7KDMDwI3mW6/lncVQ+sqAWp5V3PHpeT7ZECoGE2NnOLrOr10NoQe/EVBxaN2If 43XDAPbwV/dTdvV/mI1JiRHlq4EDYuWmqwUVWYWLJ6vndbWW6Kk2OEb96gmlBQ2pffee eQfi36KwIhJzKjBHHbrC9+uZHUhZ0TdJoYe5YhTzqgfqGmCMvnMIY5QoD0pXPjYOyYGJ gIOw== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=5KRWGs23/T+3eqc/UDfeYoNKeP03Apb240UGw/2xMhA=; b=cAWJ0FKGMtAWYf72B3VEjXjFWI6HbttYA/xqyZhm35XRr7DyX2WzgTMtexNFBH2tc0 Bf66MQfFIr8BS/jh+pQxdksNHC8yYfN0ue63T6P9m1ANFPBzBqaKxsup0xaQHhNVyJQ6 pId24moDvuyaF0W8JDbsglUqBd3ulY647vztTNKNhVNpNuBnAyVCfZfT1+5/WAcgUBpm SSkjvywhytreP6WCvOHUI+aHFr0PQbulPR5I1QcgwNoePJcbKFtRPDayDm3c2dLECqOZ kmcZFlXap+5GqqTv4Y1oUN9LHv1+IINyK6Htk/pW4XSioqTKwVjMjMC+ZfdMQ6qcJZJy G/wA== |
| X-Gm-Message-State | AHPjjUidomgTVJVqNUv+G/nUObi73CyIhvIo9bN9PO4hHh3xsbLkJBSL P6uVYpMPZ1wqr5QR3TwVkIk= |
| X-Google-SMTP-Source | AOwi7QDPUvsvDRYGcchUXx/2Ii0pqQ/zYT+n8QZCUc2ctHDgxiTpF0zhpYffdok73G/hvbu9z+N1XQ== |
| X-Received | by 10.99.122.29 with SMTP id v29mr4704313pgc.434.1506616095905; Thu, 28 Sep 2017 09:28:15 -0700 (PDT) |
| Organization | IBM |
| X-Mailer | Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=US-ASCII |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 45 |
| X-Original-Cc | Mathieu Desnoyers <mathieu.desnoyers@efficios.com>, "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>, Ingo Molnar <mingo@redhat.com>, Alexander Viro <viro@zeniv.linux.org.uk>, linux-arch <linux-arch@vger.kernel.org>, Avi Kivity <avi@scylladb.com>, maged michael <maged.michael@gmail.com>, Boqun Feng <boqun.feng@gmail.com>, Dave Watson <davejwatson@fb.com>, Will Deacon <will.deacon@arm.com>, linux-kernel <linux-kernel@vger.kernel.org>, Andrew Hunter <ahh@google.com>, Paul Mackerras <paulus@samba.org>, Andy Lutomirski <luto@kernel.org>, Alan Stern <stern@rowland.harvard.edu>, linuxppc-dev <linuxppc-dev@lists.ozlabs.org>, gromer <gromer@google.com> |
| X-Original-Date | Fri, 29 Sep 2017 02:27:57 +1000 |
| X-Original-Message-ID | <20170929022757.62d43dfc@roar.ozlabs.ibm.com> |
| X-Original-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> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1741693 |
Show key headers only | View raw
On Thu, 28 Sep 2017 17:51:15 +0200 Peter Zijlstra <peterz@infradead.org> wrote: > On Fri, Sep 29, 2017 at 01:01:12AM +1000, Nicholas Piggin wrote: > > That's fine. If a user is not bound to a subset of CPUs, they could > > also cause disturbances with other syscalls and faults, taking locks, > > causing tlb flushes and IPIs and things. > > So on the big SGI class machines we've had trouble with > for_each_cpu() loops before, and IIRC the biggest Power box is not too > far from that 1-2K CPUs IIRC. This is a loop in process context, interrupts on, can reschedule, no locks held though. The biggest power boxes are more tightly coupled than those big SGI systems, but even so just plodding along taking and releasing locks in turn would be fine on those SGI ones as well really. Not DoS level. This is not a single mega hot cache line or lock that is bouncing over the entire machine, but one process grabbing a line and lock from each of 1000 CPUs. Slight disturbance sure, but each individual CPU will see it as 1/1000th of a disturbance, most of the cost will be concentrated in the syscall caller. > > Bouncing that lock across the machine is *painful*, I have vague > memories of cases where the lock ping-pong was most the time spend. > > But only Power needs this, all the other architectures are fine with the > lockless approach for MEMBAR_EXPEDITED_PRIVATE. Yes, we can add an iterator function that power can override in a few lines. Less arch specific code than this proposal. > > The ISYNC variant of the same however appears to want TIF flags or > something to aid a number of archs, the rq->lock will not help there. The SYNC_CORE? Yes it seems different. I think that's another issue though. Thanks, Nick
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-09-26 20:00 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-09-26 22:50 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Nicholas Piggin <npiggin@gmail.com> - 2017-09-27 15:10 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-09-28 15:40 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Nicholas Piggin <npiggin@gmail.com> - 2017-09-28 17:10 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-09-28 17:30 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Nicholas Piggin <npiggin@gmail.com> - 2017-09-28 18:20 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Mathieu Desnoyers <mathieu.desnoyers@efficios.com> - 2017-09-28 20:30 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Peter Zijlstra <peterz@infradead.org> - 2017-09-28 18:00 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Nicholas Piggin <npiggin@gmail.com> - 2017-09-28 18:30 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Peter Zijlstra <peterz@infradead.org> - 2017-09-29 12:40 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Nicholas Piggin <npiggin@gmail.com> - 2017-09-29 13:40 +0200
Re: [PATCH v4 for 4.14 1/3] membarrier: Provide register expedited private command Peter Zijlstra <peterz@infradead.org> - 2017-09-29 13:50 +0200
csiph-web