From owner-freebsd-stable@FreeBSD.ORG Tue Jun 29 04:00:08 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17AF1106566B for ; Tue, 29 Jun 2010 04:00:08 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from sola.nimnet.asn.au (paqi.nimnet.asn.au [115.70.110.159]) by mx1.freebsd.org (Postfix) with ESMTP id 7CA3A8FC0C for ; Tue, 29 Jun 2010 04:00:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sola.nimnet.asn.au (8.14.2/8.14.2) with ESMTP id o5T3xxMu002524; Tue, 29 Jun 2010 14:00:00 +1000 (EST) (envelope-from smithi@nimnet.asn.au) Date: Tue, 29 Jun 2010 13:59:59 +1000 (EST) From: Ian Smith To: Rick Macklem In-Reply-To: Message-ID: <20100629134033.O9227@sola.nimnet.asn.au> References: <20100627221607.GA31646@kay.kiwi-computer.com> <20100628031401.GA45282@kay.kiwi-computer.com> <20100628140054.GA52174@kay.kiwi-computer.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: "Rick C. Petty" , freebsd-stable@freebsd.org Subject: Re: Why is NFSv4 so slow? (root/toor) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jun 2010 04:00:08 -0000 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 strange requirement, since FreeBSD by default comes with > > both. That should probably be documented in the nfsv4 man page. > > > > Well, if the mapping from uid->name is not unique, getpwuid() will just > return one of them and it probably won't be the expected one. Having > both "root" and "toor" only cause weird behaviour when "root" tries to > use a mount point. I had thought it was in the man pages, but I now > see it isn't mentioned. I'll try and remember to add it. 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 enough read about folks who do, and don't recall it ever being an issue with NFSv3. Are you sure this is a problem that cannot be coded around in NFSv4? cheers, Ian