From owner-freebsd-current Tue Nov 10 09:46:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA22920 for freebsd-current-outgoing; Tue, 10 Nov 1998 09:46:49 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from porkfriedrice.ny.genx.net (porkfriedrice.ny.genx.net [206.64.4.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA22913 for ; Tue, 10 Nov 1998 09:46:45 -0800 (PST) (envelope-from bright@hotjobs.com) Received: from localhost (bright@localhost) by porkfriedrice.ny.genx.net (8.9.1/8.9.1) with ESMTP id MAA00698; Tue, 10 Nov 1998 12:48:56 -0500 (EST) (envelope-from bright@hotjobs.com) X-Authentication-Warning: porkfriedrice.ny.genx.net: bright owned process doing -bs Date: Tue, 10 Nov 1998 12:48:55 -0500 (EST) From: Alfred Perlstein X-Sender: bright@porkfriedrice.ny.genx.net To: Mike Smith cc: current@FreeBSD.ORG Subject: Re: Simple NFS ACCESS caching, call for testers In-Reply-To: <199811101002.CAA01721@dingo.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG vfs.nfs.async: 1 vfs.nfs.gatherdelay: 10000 vfs.nfs.gatherdelay_v3: 10000 vfs.nfs.defect: 0 vfs.nfs.diskless_valid: 0 vfs.nfs.diskless_rootpath: vfs.nfs.diskless_swappath: vfs.nfs.access_cache_timeout: 6 vfs.nfs.access_cache_hits: 225001 vfs.nfs.access_cache_fills: 10981 nfsserver:/xxx /xxx nfs rw,tcp,bg,nfsv3,-r32768,-w32768,intr 0 0 Those are the mount options, I didn't notice a substantial increase in performance. However FreeBSD was about 30-50% faster untarring files from NFS->NFS*. When doing parallel "ls -lR" on a large+deep NFS tree linux beat freebsd by about 1 second. (*) I suspect it would have been faster had I not been running x11amp (idle), for some reason it really kills NFS access. I'm trying to figure out some sorta test that would stress the cache but couldn't think of anything besides the two I just ran. Alfred Perlstein - Programmer, HotJobs Inc. - www.hotjobs.com -- There are operating systems, and then there's FreeBSD. -- http://www.freebsd.org/ 3.0-current On Tue, 10 Nov 1998, Mike Smith wrote: > > The attached patch adds a trivial cache for NFS ACCESS operations, > which may provide a moderate to substantial performance improvement in > some cases. > > The issues surrounding caching these requests are actually quite > subtle, and it's not immediately clear that a more sophisticated > approach would actually yield great results in many more cases than > this trivial one does. The trivial implementation has the advantage of > simplicity. 8) > > If you have an NFS v3 server that you beat heavily on, I'd love to know > whether these changes make any difference to you. > > Apply the patches to a -current kernel (they should apply fairly > cleanly to a -stable kernel as well, but I haven't tried this). > > The new kernel has three new sysctl options: > > vfs.nfs.access_cache_timeout > > The time (in seconds) for which an ACCESS result is cached. > Try values from 2 to 10 or so. A value of 0 (the default) > disables caching. > > vfs.nfs.access_cache_hits > > The number of access calls that have been satisfied from > cached entries rather than wire calls. > > vfs.nfs.access_cache_fills > > The number of access calls that have had to go to the wire > to be satisfied. > > Trivial testing tends to indicate that operations involving a single > UID and a large directory hierarchy may benefit substantially from > this, but I really need more results before I can commit. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message