Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755431Ab0AMOiL (ORCPT ); Wed, 13 Jan 2010 09:38:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752185Ab0AMOiJ (ORCPT ); Wed, 13 Jan 2010 09:38:09 -0500 Received: from tomts13.bellnexxia.net ([209.226.175.34]:50149 "EHLO tomts13-srv.bellnexxia.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751319Ab0AMOiI convert rfc822-to-8bit (ORCPT ); Wed, 13 Jan 2010 09:38:08 -0500 Date: Wed, 13 Jan 2010 09:38:05 -0500 From: Mathieu Desnoyers To: Nicholas Miell Cc: paulmck@linux.vnet.ibm.com, linux-kernel@vger.kernel.org, Steven Rostedt , Oleg Nesterov , Peter Zijlstra , Ingo Molnar , akpm@linux-foundation.org, josh@joshtriplett.org, tglx@linutronix.de, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, laijs@cn.fujitsu.com, dipankar@in.ibm.com Subject: Re: [RFC PATCH] introduce sys_membarrier(): process-wide memory barrier (v5) Message-ID: <20100113143805.GC30875@Krystal> References: <20100113013757.GA29314@Krystal> <1263358823.3874.10.camel@entropy> <20100113053126.GC6781@linux.vnet.ibm.com> <1263361196.3874.12.camel@entropy> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <1263361196.3874.12.camel@entropy> X-Editor: vi X-Info: http://krystal.dyndns.org:8080 X-Operating-System: Linux/2.6.27.31-grsec (i686) X-Uptime: 09:33:28 up 27 days, 22:51, 4 users, load average: 0.02, 0.11, 0.11 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1745 Lines: 45 * Nicholas Miell (nmiell@comcast.net) wrote: > On Tue, 2010-01-12 at 21:31 -0800, Paul E. McKenney wrote: > > Why is it OK to ignore the developer's request for an expedited > > membarrer()? The guy who expected the syscall to complete in a few > > microseconds might not be so happy to have it take many milliseconds. > > By the same token, the guy who specified non-expedited so as to minimally > > disturb other threads in the system might not be so happy to see them > > all be IPIed for no good reason. ;-) > > > > Thanx, Paul > > Because the behavior is still correct, even if it is slower than you'd > expect. It doesn't really matter where the expedited flag goes, though, > because every future kernel will understand it. 16ms vs few ?s is such a huge performance difference that it's barely adequate to say that the behavior is still correct, but we definitely cannot say it is unchanged. It can really render some applications unusable. If, for some reason, the expedited version of the system call happens to be unimplemented, we should return -EINVAL, so the application can deal with it in the approproate way (which could be, for instance, to use a fall-back doing memory barriers on the RCU read-side). But I don't see any reason for not implementing the expedited version properly in the first place. Thanks, Mathieu > > -- > Nicholas Miell > -- Mathieu Desnoyers OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/