From: "Lever, Charles" Subject: RE: 2.6.0 -- nfs client runs 15x faster if client app runs as root. Date: Wed, 7 Jan 2004 12:46:30 -0800 Sender: nfs-admin@lists.sourceforge.net Message-ID: <482A3FA0050D21419C269D13989C6113020AC9B6@lavender-fe.eng.netapp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list2.sourceforge.net with esmtp (Exim 4.24) id 1AeKZf-0004o4-Ps for nfs@lists.sourceforge.net; Wed, 07 Jan 2004 12:46:43 -0800 Received: from mx01.netapp.com ([198.95.226.53]) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.30) id 1AeKZf-00069H-De for nfs@lists.sourceforge.net; Wed, 07 Jan 2004 12:46:43 -0800 To: "Eric Whiting" , Errors-To: nfs-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Post: List-Help: List-Subscribe: , List-Archive: are you writing to a set-uid file? in the normal user case, the SETATTR is required by Posix to unset the set-* bits on the file. > -----Original Message----- > From: Eric Whiting [mailto:ewhiting@amis.com] > Sent: Wednesday, January 07, 2004 3:14 PM > To: nfs@lists.sourceforge.net > Subject: [NFS] 2.6.0 -- nfs client runs 15x faster if client=20 > app runs as > root. >=20 >=20 > My 2.6.0 nfs clients to a netapps 940 NFS server run very=20 > differently depending > on who the user is. Both tcp and udp mounts seem to show the=20 > same behavior. This > is very apparent when doing the bonnie putc() tests. =20 >=20 > nfsstat and tcpdump show a lot of extra setattr calls when=20 > running as a normal > user. I assume this is the reason for the slowdown.=20 >=20 > Is there a fix? Or is this the way it is supposed to be? >=20 > This is not how this same hardware acts in 2.4.23. >=20 > Thanks, > eric >=20 >=20 >=20 > Running as a 'user' doing bonnie putc() > Writing with putc()... done: 802 kB/s 10.6 %CPU >=20 > 13:06:15.841823 172.16.17.176.3073181638 > 172.16.32.90.2049:=20 > 144 setattr [|nfs] > (DF) > 13:06:15.842024 172.16.32.90.2049 > 172.16.17.176.3073181638:=20 > reply ok 144 > setattr [|nfs] > 13:06:15.842361 172.16.17.176.3089958854 > 172.16.32.90.2049:=20 > 648 write [|nfs] > (DF) > 13:06:15.842611 172.16.32.90.2049 > 172.16.17.176.3089958854:=20 > reply ok 160 write > [|nfs] > 13:06:15.842880 172.16.17.176.3106736070 > 172.16.32.90.2049:=20 > 144 setattr [|nfs] > (DF) > 13:06:15.843079 172.16.32.90.2049 > 172.16.17.176.3106736070:=20 > reply ok 144 > setattr [|nfs] > 13:06:15.843506 172.16.17.176.3123513286 > 172.16.32.90.2049:=20 > 648 write [|nfs] > (DF) > 13:06:15.843783 172.16.32.90.2049 > 172.16.17.176.3123513286:=20 > reply ok 160 write > [|nfs] > 13:06:15.844069 172.16.17.176.3140290502 > 172.16.32.90.2049:=20 > 144 setattr [|nfs] > (DF) > 13:06:15.844253 172.16.32.90.2049 > 172.16.17.176.3140290502:=20 > reply ok 144 > setattr [|nfs] > 13:06:15.844604 172.16.17.176.3157067718 > 172.16.32.90.2049:=20 > 648 write [|nfs] > (DF) >=20 > Running as root on the client box doing a bonnie putc() > Writing with putc()... done: 11625 kB/s 70.5 %CPU >=20 > 13:04:34.530773 172.16.32.90.2049 > 172.16.17.176.2934638278:=20 > reply ok 160 write > [|nfs] > 13:04:34.533983 172.16.17.176.2951415494 > 172.16.32.90.2049:=20 > 1472 write [|nfs] > (frag 58503:1480@0+) > 13:04:34.533995 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@1480+) > 13:04:34.533999 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@2960+) > 13:04:34.534003 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@4440+) > 13:04:34.534007 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@5920+) > 13:04:34.534010 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@7400+) > 13:04:34.534014 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@8880+) > 13:04:34.534018 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@10360+) > 13:04:34.534021 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@11840+) > 13:04:34.534024 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@13320+) > 13:04:34.534028 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@14800+) > 13:04:34.534032 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@16280+) > 13:04:34.534035 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@17760+) > 13:04:34.534039 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@19240+) > 13:04:34.534042 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@20720+) > 13:04:34.534045 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@22200+) > 13:04:34.534049 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@23680+) > 13:04:34.534053 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@25160+) > 13:04:34.534056 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@26640+) > 13:04:34.534060 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@28120+) > 13:04:34.534063 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@29600+) > 13:04:34.534067 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:1480@31080+) > 13:04:34.534070 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58503:368@32560) > 13:04:34.537357 172.16.32.90.2049 > 172.16.17.176.2951415494:=20 > reply ok 160 write > [|nfs] > 13:04:34.540586 172.16.17.176.2968192710 > 172.16.32.90.2049:=20 > 1472 write [|nfs] > (frag 58504:1480@0+) > 13:04:34.540598 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58504:1480@1480+) > 13:04:34.540603 172.16.17.176 > 172.16.32.90: udp (frag=20 > 58504:1480@2960+) >=20 >=20 > Client nfs v3: > null getattr setattr lookup access readlink > 0 0% 8724 0% 1113998 47% 5225 0% 3084 0% 98 0% > read write create mkdir symlink mknod > 20776 0% 1213403 51% 237 0% 1 0% 3 0% 0 0% > remove rmdir rename link readdir readdirplus > 206 0% 0 0% 95 0% 24 0% 48 0% 416 0% > fsstat fsinfo pathconf commit > 118 0% 10 0% 0 0% 0 0% >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: Perforce Software. > Perforce is the Fast Software Configuration Management System offering > advanced branching capabilities and atomic changes on 50+ platforms. > Free Eval! http://www.perforce.com/perforce/loadprog.html > _______________________________________________ > NFS maillist - NFS@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nfs >=20 ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs