Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Nov 2011 18:47:22 +0100
From:      Ed Schouten <ed@80386.nl>
To:        Peter Wemm <peter@wemm.org>
Cc:        arch@freebsd.org
Subject:   Re: The strangeness called `sbin'
Message-ID:  <20111110174722.GJ2164@hoeg.nl>
In-Reply-To: <CAGE5yCqMcHwAhXKbyEH6vUR=N14tCjkgX=RMJTdq-po92GcOMQ@mail.gmail.com>
References:  <20111110123919.GF2164@hoeg.nl> <CAGE5yCr3BzWzwOAqo7wifgUTRC%2BG=2o4bDmk9H-%2BCxr=zJqYmw@mail.gmail.com> <20111110171605.GI2164@hoeg.nl> <CAGE5yCqMcHwAhXKbyEH6vUR=N14tCjkgX=RMJTdq-po92GcOMQ@mail.gmail.com>

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

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

* Peter Wemm <peter@wemm.org>, 20111110 18:33:
> Having /sbin in $PATH where /sbin is a symlink to /bin would be worse
> than having no /sbin at all, from a perspective of rootvnode lock
> lifetime.  If you can figure out how to get people to remove /sbin and
> /usr/sbin from their paths after the symlink changes then it becomes a
> moot point.  But heck, I still have /usr/X11R6 in mine... :(

On the other hand, if people used to have /sbin in their path and *do*
remove it properly after the upgrade, they should in theory see a
performance improvement, right?

Assume $PATH used to be /bin:/sbin:/usr/bin:/usr/sbin:/usr/games:... and
is switched to /bin:/usr/bin:... after the upgrade. Now if somebody
tries to execute something that's not part of the base system, then it
would require at least 3 calls to execve(), whereas in our current setup
it would require 6 system calls.

Therefore I think it's hard to say anything conclusive about performance
in this area.

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--cEobB2knsyc5ebfU
Content-Type: application/pgp-signature

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

iQIcBAEBAgAGBQJOvA4pAAoJEG5e2P40kaK7uj0P/Rv2PrPsBy2RQre7LJlANaWh
mC/qsrP/snio8nSI/szHYL3DDv6ELT1ghofNLapoEn4+drwZxG+OlHrLq9lwHS/s
7/HK8fGQHejIf93TcFc/wEH8OzKEvaYs06yi2yIQ/QLI4Ul6vifZ9S2JLFe/e+PR
q/MlbMHE0tllF7kznc0rtJngnjCj5DxVrlHAhOw9al5/XZBYhSJCvkGQ5LTF09jB
WFt5HzbKmz5ouYK0VF5eK1RW6g7dDdzQeOqfYqnUjsCN4TBXlZCqT8rUnlzYlx71
x9gheIw70zV3u97e9vLoeknxQsGPID1HnFJOgulqn6tOgDU0ueUzj6DQ7hhXp1kw
2gV1xyHIKHzAMnEC9xx222kfap+sJ1LmbdNJfuS0Acg1Z0kaBe9pjGPltmnwM1T5
vPrpxSKzEGN0Fy8IcN/I0quQhDRa7GBKRtxxTZUVMBGB+AICxuB7+/kFop/KxVXP
7JHW1VVisrFyVygM3NE4DFPfWm4n98ahCw7YL4kDk6jtfea8mamQo8foz0EDxeG7
vlgYt5xNbDlxFtFVwoMP8Y/6ajWOTPFoF4w8BGwwPxrCiKkBAUkK8TPv0FFr7cVP
jXTbkby4brMgXad3zTvsvpp9JG2FtN853bD6OUVrHB1Jkszb7szSWHPt1D09J52L
iUg7HNQLw47XvONW3bAR
=HF7G
-----END PGP SIGNATURE-----

--cEobB2knsyc5ebfU--



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