Re: Why is NFSv4 so slow? (root/toor)

2010-06-30 Thread Rick Macklem
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,

Re: Why is NFSv4 so slow? (root/toor)

2010-06-29 Thread Rick Macklem
On Tue, 29 Jun 2010, Ian Smith wrote: Not wanting to hijack this (interesting) thread, but .. I have to concur with Rick P - that's rather a odd requirement when each FreeBSD install since at least 2.2 has come with root and toor (in that order) in /etc/passwd. I don't use toor, but often

Re: Why is NFSv4 so slow? (root/toor)

2010-06-29 Thread Adam Vande More
On Tue, Jun 29, 2010 at 9:58 AM, Rick Macklem rmack...@uoguelph.ca wrote: I suppose if the FreeBSD world feels that root and toor must both exist in the password database, then nfsuserd could be hacked to handle the case of translating uid 0 to root without calling getpwuid(). It seems ugly,

Re: Why is NFSv4 so slow? (root/toor)

2010-06-29 Thread Rick C. Petty
On Tue, Jun 29, 2010 at 10:20:57AM -0500, Adam Vande More wrote: On Tue, Jun 29, 2010 at 9:58 AM, Rick Macklem rmack...@uoguelph.ca wrote: I suppose if the FreeBSD world feels that root and toor must both exist in the password database, then nfsuserd could be hacked to handle the case of

Re: Why is NFSv4 so slow? (root/toor)

2010-06-29 Thread Rick Macklem
On Tue, 29 Jun 2010, Rick C. Petty wrote: To be fair, I'm not sure this is even a problem. Rick M. only suggested it as a possibility. I would think that getpwuid() would return the first match which has always been root. At least that's what it does when scanning the passwd file; I'm not

Re: Why is NFSv4 so slow? (root/toor)

2010-06-29 Thread Dan Nelson
In the last episode (Jun 29), Rick C. Petty said: On Tue, Jun 29, 2010 at 10:20:57AM -0500, Adam Vande More wrote: On Tue, Jun 29, 2010 at 9:58 AM, Rick Macklem rmack...@uoguelph.ca wrote: I suppose if the FreeBSD world feels that root and toor must both exist in the password database,

Re: Why is NFSv4 so slow? (root/toor)

2010-06-29 Thread Ian Smith
On Tue, 29 Jun 2010, Dan Nelson wrote: In the last episode (Jun 29), Rick C. Petty said: On Tue, Jun 29, 2010 at 10:20:57AM -0500, Adam Vande More wrote: On Tue, Jun 29, 2010 at 9:58 AM, Rick Macklem rmack...@uoguelph.ca wrote: I suppose if the FreeBSD world feels that root

Re: Why is NFSv4 so slow? (root/toor)

2010-06-28 Thread Ian Smith
On Mon, 28 Jun 2010, Rick Macklem wrote: On Mon, 28 Jun 2010, Rick C. Petty wrote: Make sure you don't have multiple entries for the same uid, such as root and toor both for uid 0 in your /etc/passwd. (ie. get rid of one of them, if you have both) Hmm, that's a