Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Oct 2000 13:36:57 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Matt Dillon <dillon@earth.backplane.com>, Peter Wemm <peter@netplex.com.au>, Chuck Paterson <cp@bsdi.com>, John Baldwin <jhb@FreeBSD.ORG>, arch@FreeBSD.ORG, John Polstra <jdp@polstra.com>, Daniel Eischen <eischen@vigrid.com>, Greg Lehey <grog@lemis.com>
Subject:   Re: Mutexes and semaphores
Message-ID:  <Pine.BSF.4.21.0010051320460.12137-100000@besplex.bde.org>
In-Reply-To: <20001004184559.Q27736@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Oct 2000, Alfred Perlstein wrote:

> * Bruce Evans <bde@zeta.org.au> [001004 18:40] wrote:

> > This seems to be only to win getppid() benchmarks.  Complications like it
> > might be justified in inner loops of syscalls that are called somewhat
> > more than once at most in normal programs.  It's too hard to do things
> > this in the thousands of places that would be necessary to get a uniform
> > speedup.
> 
> the idea is to reduce inter-cpu communication, lock-less systems are a
> terrific idea but hard to get right, we have two choices:
> 
> 1) do it right and _not_ cause extra lock/cpu/bus contention
> 2) do it right and cause extra lock/cpu/bus contention

3) Do it right and make it work before you make it faster.

Optimizing getppid() is instructive but not very useful.  Look at how much
work it takes to optimize one apparently-trivial line of code.

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0010051320460.12137-100000>