From owner-freebsd-arch@FreeBSD.ORG Tue Jun 5 18:44:53 2012 Return-Path: Delivered-To: freebsd-arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F28541065672; Tue, 5 Jun 2012 18:44:52 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id A30FC8FC20; Tue, 5 Jun 2012 18:44:52 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 3A39C7300A; Tue, 5 Jun 2012 21:03:34 +0200 (CEST) Date: Tue, 5 Jun 2012 21:03:34 +0200 From: Luigi Rizzo To: Bruce Evans Message-ID: <20120605190334.GB29067@onelab2.iet.unipi.it> References: <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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120606040931.F1050@besplex.bde.org> User-Agent: Mutt/1.4.2.3i X-Mailman-Approved-At: Tue, 05 Jun 2012 19:09:36 +0000 Cc: Gianni , John Baldwin , Alan Cox , Alexander Kabaev , Attilio Rao , Konstantin Belousov , freebsd-arch@FreeBSD.org, Konstantin Belousov , Dag-Erling Sm??rgrav Subject: Re: Fast vs slow syscalls (Re: Fwd: [RFC] Kernel shared variables) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2012 18:44:53 -0000 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