Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Aug 2010 12:04:04 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Jeremie Le Hen <jeremie@le-hen.org>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>, nwhitehorn@freebsd.org, Marius Strobl <marius@alchemy.franken.de>
Subject:   Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)
Message-ID:  <20100806090404.GI22295@deviant.kiev.zoral.com.ua>
In-Reply-To: <20100806050633.GK14016@felucia.tataz.chchile.org>
References:  <20100806050633.GK14016@felucia.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--aEQgRVFBwimJ3+rv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Aug 06, 2010 at 07:06:33AM +0200, Jeremie Le Hen wrote:
> Hi Kib,
>=20
> 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,
> > > > >=20
> > > > > This patch seems to have faded out from memory.  Is it possible t=
o go
> > > > > forward and commit it?
> > > > I refreshed the patch. Hopefully, nobody will object, and I commit =
it
> > > > shortly.
> > > >=20
> > > > >=20
> > > > > Thanks,
> > > > > Regards.
> > > > >=20
> > > > > 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 patc=
hed 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.
> > > > > >=20
> > > > > > Patch completely eliminates sysctl syscalls from the rtld and l=
ibc
> > > > > > startup. Without the patch, a single run of /bin/ls did 6 sysct=
ls,
> > > > > > with the patch, no sysctls is queried at all.
> > > > > >=20
> > > > Comparing with the originally posted patch, I added support for all
> > > > architectures, tested amd64 and ia32 on amd64, and converted getpag=
esizes(3)
> > > > that added two more startup sysctls.
> > > >=20
> > > > 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 th=
e Cc:.
> > > >=20
> > >=20
> > > 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
> > > =20
> > > 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
> > > <...>
> > >=20
> > > Unfortunately, I currently lack the time to debug this.
> >=20
> > Thank you.
>=20
> Did yu have time to look at this problem?  It would be nice to have this
> in the tree.

I cannot move forward without the help from somebody having access to
sparc64 system where the problem is reproducable.

--aEQgRVFBwimJ3+rv
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkxb0AQACgkQC3+MBN1Mb4gKiQCgpJ+gv9QcMLuMjUMr2VDflcJb
XmIAoIvZZc5NOEmliteN2AckGJBAcP8U
=6lrM
-----END PGP SIGNATURE-----

--aEQgRVFBwimJ3+rv--



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