From owner-freebsd-arch@FreeBSD.ORG Tue Jun 5 15:02:18 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 B188E106566B; Tue, 5 Jun 2012 15:02:18 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 826C18FC08; Tue, 5 Jun 2012 15:02:18 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D5EA7B91A; Tue, 5 Jun 2012 11:02:17 -0400 (EDT) From: John Baldwin To: "Dag-Erling =?utf-8?q?Sm=C3=B8rgrav?=" Date: Tue, 5 Jun 2012 10:08:29 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p13; KDE/4.5.5; amd64; ; ) References: <201206041053.51802.jhb@freebsd.org> <86y5o1vrer.fsf@ds4.des.no> In-Reply-To: <86y5o1vrer.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <201206051008.29568.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 05 Jun 2012 11:02:17 -0400 (EDT) Cc: Gianni , Alan Cox , Alexander Kabaev , Attilio Rao , Konstantin Belousov , freebsd-arch@freebsd.org, Konstantin Belousov Subject: 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 15:02:18 -0000 On Tuesday, June 05, 2012 9:07:08 am Dag-Erling Sm=C3=B8rgrav wrote: > John Baldwin writes: > > I think this is an important question actually. Is there anything > > that really needs to be here besides gettimeofday()? I mean, is there > > any real-world application that needs to call getpid() or getppid() a > > bunch of times? >=20 > Yes, for fork detection when accessing resources shared between > descendants of the process that allocated them. So you call getpid() on each access to a shared resource? =2D-=20 John Baldwin