Date: Wed, 30 Jun 2010 20:11:42 -0400 (EDT) From: Rick Macklem <rmacklem@uoguelph.ca> To: Ian Smith <smithi@nimnet.asn.au> Cc: "Rick C. Petty" <rick-freebsd2009@kiwi-computer.com>, Dan Nelson <dnelson@allantgroup.com>, freebsd-stable@freebsd.org, Adam Vande More <amvandemore@gmail.com> Subject: Re: Why is NFSv4 so slow? (root/toor) Message-ID: <Pine.GSO.4.63.1006302009400.10469@muncher.cs.uoguelph.ca> In-Reply-To: <20100630132444.G9227@sola.nimnet.asn.au> References: <20100627221607.GA31646@kay.kiwi-computer.com> <Pine.GSO.4.63.1006271949220.3233@muncher.cs.uoguelph.ca> <20100628031401.GA45282@kay.kiwi-computer.com> <Pine.GSO.4.63.1006280017190.2680@muncher.cs.uoguelph.ca> <20100628140054.GA52174@kay.kiwi-computer.com> <Pine.GSO.4.63.1006281950260.13834@muncher.cs.uoguelph.ca> <20100629134033.O9227@sola.nimnet.asn.au> <Pine.GSO.4.63.1006291054350.24800@muncher.cs.uoguelph.ca> <AANLkTimjDIQ4FRYAD3N_L1C1VermRX3S1PhvG5dSvz5A@mail.gmail.com> <20100629153252.GA71786@kay.kiwi-computer.com> <20100629160647.GD50409@dan.emsphone.com> <20100630132444.G9227@sola.nimnet.asn.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Jun 2010, Ian Smith wrote: > > I wondered whether this might be a Linux thing. On my 7.2 system, > > % find /usr/src -name "*.[ch]" -exec grep -Hw getpwuid {} \; > file > > returns 195 lines, many in the form getpwuid(getuid()), in many base and > contrib components - including id(1), bind, sendmail etc - that could be > nondeterministic if getpwuid(0) ever returned other than root. > > Just one mention of 'toor' in /usr/src/usr.sbin/makefs/compat/pwcache.c > > Not claiming to know how the lookups in /usr/src/lib/libc/gen/getpwent.c > work under the hood, but this does seem likely a non-issue on FreeBSD. > I remember it causing some confusion while testing, but I can't remember when or where. It might have been Linux or I might have been logged in as "toor" or ???? I think I will hardcode the "root" case in nfsuserd, just to be safe. (I also migt have editted /etc/passwd and reordered entries without paying attention to it.) rick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.63.1006302009400.10469>