From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 05:06:44 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 736881065677 for ; Fri, 6 Aug 2010 05:06:44 +0000 (UTC) (envelope-from jeremie@le-hen.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [212.27.42.5]) by mx1.freebsd.org (Postfix) with ESMTP id 73E138FC08 for ; Fri, 6 Aug 2010 05:06:41 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id D7FCDD48082; Fri, 6 Aug 2010 07:06:35 +0200 (CEST) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id DA42633F19; Fri, 6 Aug 2010 05:06:33 +0000 (UTC) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id B96E8A115E; Fri, 6 Aug 2010 05:06:33 +0000 (UTC) Date: Fri, 6 Aug 2010 07:06:33 +0200 From: Jeremie Le Hen To: Kostik Belousov Message-ID: <20100806050633.GK14016@felucia.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: FreeBSD Hackers , Jeremie Le Hen , nwhitehorn@freebsd.org, Marius Strobl Subject: Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2010 05:06:44 -0000 Hi Kib, In-Reply-To: <20100629083901.GG13238@deviant.kiev.zoral.com.ua> On Tue, Jun 29, 2010 at 11:39:01AM +0300, Kostik Belousov wrote: > On Tue, Jun 29, 2010 at 10:26:39AM +0200, Marius Strobl wrote: > > On Mon, Jun 28, 2010 at 05:48:59PM +0300, Kostik Belousov wrote: > > > On Wed, Jun 23, 2010 at 11:09:59PM +0200, Jeremie Le Hen wrote: > > > > Hi Kostik, > > > > > > > > This patch seems to have faded out from memory. Is it possible to go > > > > forward and commit it? > > > I refreshed the patch. Hopefully, nobody will object, and I commit it > > > shortly. > > > > > > > > > > > Thanks, > > > > Regards. > > > > > > > > On Sat, Jul 25, 2009 at 12:29:16AM +0300, Kostik Belousov wrote: > > > > > Below is the prototype that seems to work for me both with patched and > > > > > old rtld on i386. Patch also contains bits for amd64 that I did not > > > > > tested yet. All other arches are not buildable for now. > > > > > > > > > > Patch completely eliminates sysctl syscalls from the rtld and libc > > > > > startup. Without the patch, a single run of /bin/ls did 6 sysctls, > > > > > with the patch, no sysctls is queried at all. > > > > > > > > Comparing with the originally posted patch, I added support for all > > > architectures, tested amd64 and ia32 on amd64, and converted getpagesizes(3) > > > that added two more startup sysctls. > > > > > > Would be nice to get a testing for at least some !x86 architectures > > > before the commit, I added some people who helped me in past, to the Cc:. > > > > > > > Doesn't look good on sparc64: > > <...> > > NFS ROOT: 192.168.1.40:/usr/data/nfsroot/sparc64 > > dc1: link state changed to UP > > pid 24 (ifconfig), uid 0: exited on signal 11 > > Segmentation fault > > Interface IP-Address Broadcast > > pid 29 (rcorder), uid 0: exited on signal 11 > > Segmentation fault > > pid 30 (grep), uid 0: exited on signal 11 > > Segmentation fault > > pid 31 (rcorder), uid 0: exited on signal 11 > > Segmentation fault > > > > pid 32 (date), uid 0: exited on signal 11 > > Segmentation fault > > Jun 29 12:20:50 getty[36]: open /dev/ttyv3: No such file or directory > > <...> > > > > Unfortunately, I currently lack the time to debug this. > > Thank you. Did yu have time to look at this problem? It would be nice to have this in the tree. Thanks, -- Jeremie Le Hen Humans are born free and equal. But some are more equal than others. Coluche