From owner-freebsd-stable@FreeBSD.ORG Sun Nov 27 20:44:16 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FDAA16A420 for ; Sun, 27 Nov 2005 20:44:16 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 831E843D8D for ; Sun, 27 Nov 2005 20:43:46 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id F391D1A3C28; Sun, 27 Nov 2005 12:43:45 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id A6E8B5158D; Sun, 27 Nov 2005 15:43:44 -0500 (EST) Date: Sun, 27 Nov 2005 15:43:44 -0500 From: Kris Kennaway To: Mike Eubanks Message-ID: <20051127204344.GB3175@xor.obsecurity.org> References: <1132964757.831.20.camel@yak.mseubanks.net> <43891EA5.2020206@mac.com> <1133083658.838.109.camel@yak.mseubanks.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MW5yreqqjyrRcusr" Content-Disposition: inline In-Reply-To: <1133083658.838.109.camel@yak.mseubanks.net> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org Subject: Re: NFS network load on 5.4-STABLE 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: Sun, 27 Nov 2005 20:44:16 -0000 --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 27, 2005 at 01:27:38AM -0800, Mike Eubanks wrote: > On Sat, 2005-11-26 at 21:49 -0500, Chuck Swiger wrote: > > Mike Eubanks wrote: > > > As soon as I mount my NFS file systems, the network load increases to= a > > > constant 80%-90% of network bandwidth, even when the file systems are > > > not in use. NFS stats on the client machine (nfsstat -c) produce the > > > following: > > [ ... ] > > > Fsstat and Requests are increasing very rapidly. Both the client and > > > server are i386 5.4-STABLE machines. Is this behaviour normal? > >=20 > > Sort of. Some fancy parts of X like file-manager/exporer applications = tend to=20 > > call fstat() a lot, but it's probably tunable, and if you enable NFS at= tribute=20 > > caching that will help a lot. >=20 > Thank you for the reply Chuck. It seems that it is something to do > with Gnome. I haven't done an upgrade to 2.12 yet, but the difference > did happen when I refreshed my user configuration to remove any stale > config files. Using the "top -mio" command I get the following: >=20 > VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND > 38 56 0 0 0 0 0.00% libgtop_server > 94 16 0 0 0 0 0.00% Xorg > 4 0 0 0 0 0 0.00% top > 0 0 0 0 0 0 0.00% mozilla-bin > 115 40 0 0 0 0 0.00% multiload-appl > 42 1 0 0 0 0 0.00% anjuta-bin > 0 0 0 0 0 0 0.00% evolution-2.2 > 130 9 0 0 0 0 0.00% gnome-terminal > 15 10 0 0 0 0 0.00% clock-applet > 42 0 0 0 0 0 0.00% mixer_applet2 > 10 0 0 0 0 0 0.00% metacity > 3 0 0 0 0 0 0.00% nautilus > 4 0 0 0 0 0 0.00% wnck-applet That doesn't look like it is showing a problem to me. In particular it is indicating 0 I/O. > +---- file-manager/explorer? > | > client.220312819 > server.nfs: 96 fsstat [|nfs] > server.nfs > client.220312819: reply ok 168 fsstat POST: DIR 755 ids > 1001/0 [|nfs] > client.220312820 > server.nfs: 96 fsstat [|nfs] > server.nfs > client.220312820: reply ok 168 fsstat POST: DIR 755 ids > 1001/0 [|nfs] > client.220312821 > server.nfs: 96 fsstat [|nfs] > server.nfs > client.220312821: reply ok 168 fsstat POST: DIR 755 ids 0/0 > [|nfs] > client.220312822 > server.nfs: 96 fsstat [|nfs] > server.nfs > client.220312822: reply ok 168 fsstat POST: DIR 755 ids 0/0 > [|nfs] > client.220312823 > server.nfs: 96 fsstat [|nfs] > server.nfs > client.220312823: reply ok 168 fsstat POST: DIR 755 ids 0/0 > [|nfs] >=20 > If this is enough evidence for the file-manager/explore, It's evidence that something is peforming NFS I/O, but it doesn't show what. Perhaps you needed to also use the top -S flag, or to sort the output by typing 'ototal'. > I'll just have > to accept it for now. I can't find anything about tuning them. As far > as attribute caching, do you mean the `-o ac*' options to mount_nfs? I > also noticed two sysctl values, although, I left them unmodified. >=20 > vfs.nfs.access_cache_timeout: 2 > vfs.nfs4.access_cache_timeout: 60 Increase the former (you're not using nfs4). Try 60 seconds, for example. The downside is that you'll have to wait up to a minute for access changes on the server to be visible to the client, but that's usually not a big deal unless you're accessing a lot of dynamically created and destroyed files. Kris --MW5yreqqjyrRcusr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDihqAWry0BWjoQKURApTDAKDMXY9LbT5K3CIW1AlW+VNzBqqA1gCdEvi/ 5pC0EfVOJdIv21F6670zb98= =eMVk -----END PGP SIGNATURE----- --MW5yreqqjyrRcusr--