Date: Thu, 10 Nov 2011 19:16:27 +0100 From: Ed Schouten <ed@80386.nl> To: Garrett Cooper <yanegomi@gmail.com> Cc: arch@freebsd.org Subject: Re: The strangeness called `sbin' Message-ID: <20111110181627.GK2164@hoeg.nl> In-Reply-To: <CAGH67wSw-aSbXdskApWdAD59TwDHW7QeYGmY4vTZaPWMubDb5w@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> <20111110174722.GJ2164@hoeg.nl> <CAGH67wSw-aSbXdskApWdAD59TwDHW7QeYGmY4vTZaPWMubDb5w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
* Garrett Cooper <yanegomi@gmail.com>, 20111110 19:12:
> On Thu, Nov 10, 2011 at 9:47 AM, Ed Schouten <ed@80386.nl> wrote:
> > * 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?
>
> Doesn't the negative directory cache (namei, etc) mitigate this?
Peter is also talking about the fact that if you have a PATH like
/bin:/sbin:... and /sbin is a symbolic link to /bin, you end up doing
this:
execve("/bin/YOURAPP", ...) -> fails
execve("/sbin/YOURAPP", ...) -> fails
...
execve("/some/other/directory/YOURAPP", ...) -> success
The first two system calls together are expected to be slightly slower
than they used to be, because both these directories have now grown.
--
Ed Schouten <ed@80386.nl>
WWW: http://80386.nl/
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)
iQIcBAEBAgAGBQJOvBT6AAoJEG5e2P40kaK77ZkP/2uQF/uYnJ8JWE/zva6wAhN0
x2DXc4ObwbjzynJRAI9MjysM9xi64mZag1a6fTWAQyx+eg+SLikR1Ze+RS5jfoOw
SK5Rjs44kY+ffVomJBHF47SYh0FFYI3PyH670gZnjQ4WeWo8g2s3EdUUx7ULdur1
2bhUi6yEAlnkVaN2wisR7lokWXBZ+Wp3NIu/8+s0RTPx2Q+X3FZP4Ka1ekvq6Axx
Mwm86Vi2Th+izNkm9xYpC8JTqA5LXtBVK98ly9b0hf3jUCXXDtZo5k5cpOPhoWFK
O3LvR2AhDmR39EHaKcf4D66LEGLiIyq42HW5cGW939Z1I8IMJGeEvn4LpEjKZ3wv
Wcw8EN8dT+fSKGQ2dhkUAa497p+vzZ9E1fZxe5kZbAZJQueiHPYKedm+pBN/oD51
QH4f7DnbBRR1m897BKkvO/7uvpkMYiC0gPAgpkYbu9frAFWNEOOeiH49IFSaBTXd
ME/r8UR7QFPtSbxCejBlMvrqRmHQeK1YJoH8TVPvYd7TthA50Uo8zKINfMTbWGoU
CJEmMMdyhqeei53sxdJBxKk001GaBYSmkk5YMmtQLx2Etvw6sspzq6xSxWjpEG9M
fFmlC0AivIE20UhJDZi105nLttNHyCqcgVHL3feO7oYOA+wLw1m5evzitANpeV0a
HMwJxSoTFipzWAbizDF4
=V8pb
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111110181627.GK2164>
