Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2012 21:03:34 +0200
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        Gianni <gianni@FreeBSD.org>, John Baldwin <jhb@FreeBSD.org>, Alan Cox <alc@rice.edu>, Alexander Kabaev <kan@FreeBSD.org>, Attilio Rao <attilio@FreeBSD.org>, Konstantin Belousov <kib@FreeBSD.org>, freebsd-arch@FreeBSD.org, Konstantin Belousov <kostikbel@gmail.com>, Dag-Erling Sm??rgrav <des@des.no>
Subject:   Re: Fast vs slow syscalls (Re: Fwd: [RFC] Kernel shared variables)
Message-ID:  <20120605190334.GB29067@onelab2.iet.unipi.it>
In-Reply-To: <20120606040931.F1050@besplex.bde.org>
References:  <CACfq090r1tWhuDkxdSZ24fwafbVKU0yduu1yV2%2BoYo%2BwwT4ipA@mail.gmail.com> <201206051008.29568.jhb@freebsd.org> <86haupvk4a.fsf@ds4.des.no> <201206051222.12627.jhb@freebsd.org> <20120605171446.GA28387@onelab2.iet.unipi.it> <20120606040931.F1050@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 06, 2012 at 04:36:54AM +1000, Bruce Evans wrote:
> On Tue, 5 Jun 2012, Luigi Rizzo wrote:
...
> >>Yes, we know getpid() is slow, I think the question is does it matter that
> >>it's slow in something other than a microbenchmark.  Can you name the
> >>application that you've seen use getpid()?
> >
> >i think the important question is, for any function X:
> >   Q1	"does it require horrible hacks or a huge amount of work
> >	to make X syscall-free ?"
> >rather than
> >   Q2	"does it matter to make X fast"
> 
> s/huge amount/any/
> 
> Work is all the programming work to implement it and maintain it forever.

well, some work has a return in term of fun, beauty, pride
so the balance is still favourable.

cheers
luigi



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120605190334.GB29067>