All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.4 vs. 2.6 nfs client performance
@ 2003-11-12 18:05 Jason Holmes
  2003-11-12 20:20 ` Trond Myklebust
  2003-11-12 22:08 ` Eric Whiting
  0 siblings, 2 replies; 23+ messages in thread
From: Jason Holmes @ 2003-11-12 18:05 UTC (permalink / raw)
  To: nfs

Hi,

I'm running some NFS performance tests to determine the best way to go
to configure a few fileservers for some linux clusters I run.  Right now
I'm getting together a suite of test programs representative of the
typical applications we see run on our clusters (scientific applications
such as Ansys or Abaqus, custom MPI code, etc.) for use as a benchmark
suite that I can disperse across 16 machines or so to create a decent
load on the fileservers.  I've just got started with a program called
Gaussian03 (molecular modelling code that does a lot of I/O) and I'm
already seeing some odd performance differences between the 2.4.22
client and the 2.6.0-test9-mm1 client (both against a 2.6.0-test9-mm2
server):

async mounts
------------
2.4.22:           110.87user 43.69system 4:04.58elapsed 63%CPU
2.6.0-test9-mm1:  111.88user 315.57system 9:51.87elapsed 72%CPU

sync mounts
-----------
2.4.22:           109.99user 45.49system 32:04.44elapsed 8%CPU
2.6.0-test9-mm1:  112.33user 197.76system 1:08:13elapsed 7%CPU

Note that the 1:08:13 in the sync 2.6.0-test9-mm1 is 1 *hour*, 8
minutes, not 1 *minute*.  In both cases the 2.6 client came in at about
twice the time.  A local run not using NFS finishes in 2:13.49.

The nfsstats output for two async runs looks like:

-- 2.4.22 --
Client nfs v3:
null       getattr    setattr    lookup     access     readlink
0       0% 880     0% 0       0% 160     0% 4745    0% 0       0%
read       write      create     mkdir      symlink    mknod
780     0% 178588 32% 24      0% 0       0% 0       0% 0       0%
remove     rmdir      rename     link       readdir    readdirplus
24      0% 0       0% 0       0% 0       0% 18      0% 0       0%
fsstat     fsinfo     pathconf   commit
3       0% 3       0% 0       0% 369185 66%

Client rpc stats:
calls      retrans    authrefrsh
554410     2099       0


-- 2.6.0-test9-mm1 --

Client nfs v3:
null       getattr    setattr    lookup     access     readlink
0       0% 740     0% 0       0% 126     0% 249     0% 0       0%
read       write      create     mkdir      symlink    mknod
855     0% 178574 14% 24      0% 0       0% 0       0% 0       0%
remove     rmdir      rename     link       readdir    readdirplus
24      0% 0       0% 0       0% 0       0% 18      0% 0       0%
fsstat     fsinfo     pathconf   commit
0       0% 3       0% 0       0% 1023777 85%

Client rpc stats:
calls      retrans    authrefrsh
1204390    5          0

The 2.6 client has over twice the number of RPC calls and almost 3 times
the number of commits whereas the 2.4 client has alot more accesses. 
Mounts were done with rsize=32768,wsize=32768.  The NFS filesystem is
ext3.  The two machines are connected via gigabit ethernet and the
traffic between them never goes above 20-30 MB/s.

Can someone clue me in as to why this may be happening and if it's a
"bug" or not?

Thanks,

--
Jason Holmes


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: 2.4 vs. 2.6 nfs client performance
@ 2003-11-13 19:42 Duc Vianney
  2003-11-13 20:02 ` Trond Myklebust
  0 siblings, 1 reply; 23+ messages in thread
From: Duc Vianney @ 2003-11-13 19:42 UTC (permalink / raw)
  To: Eric Whiting; +Cc: Jason Holmes, nfs, nfs-admin, trond.myklebust


> Trond Myklebust/Jason Holmes/Eric Whiting wrote ...

I ran the iozone in the cluster mode to time read and write under NFSv3.
Under a server memory constraint scenario, I saw reads on 2.6.0-test9 about
8X slower than 2.4.22.
For writes, I saw improvement in 2.6.0-test9 irrespective of server memory
size.

The following data represents the throughput in KB/sec as seen by the NFS
server subject to various memory sizes.

   Server Memory  512MB   512MB      2048MB   2048MB
   Kernel         2.4.22  260-test9  2.4.22   260-test9
   Write          14514   29134      13670    29330
   Rewrite        15140   25943      14683    27046
   Read           24404    3685      72165    78445
   ReRead         24702    3705      73267    78375

NFS Server: 4-way 700MHz, 2.5GB RAM, e1000 switch box, stock 2.6.0-test9.
NFS Client: 2-way, 2GHz, 1GB RAM, e1000, stock kernel 2.4.22, NFSv3 mounted
with default parameters
Benchmark: iozone running in cluster mode from the server with test file
size set to 1GB.

rpc data for 2422 and 260test9 at 512MB and 2048MB server memory:

             512MB    512MB    ratio            2048MB   2048MB    ratio
Kernel        2422    260t9  2422/260t9           2422   260t9   2422/260t

Server nfs v3 stats:
getattr         3       15     0.20                 3        3     1.00
fsstat          0        0                          0        0
fsinfo          0        0                          0        0
read       262992    66409     3.96            262992    65545     4.01
write      262162    65806     3.98            262162    65646     3.99
access         20       20     1.00                20       20     1.00
remove          2        1     2.00                 2        1     2.00
create          1        1     1.00                 1        1     1.00
commit       2056     2132     0.96              2056     2102     0.98
                         0
server rp                0
calls      527239   134383     3.92            527239   133345     3.95


Client nfs v3 stats:
getattr         3       15     0.20                 3        3     1.00
setattr         0        0                          0        0
lookup          3        2     1.50                 3        3     1.00
access         20       20     1.00                20       20     1.00
read       262992    65547     4.01            262992    65560     4.01
write      262145    65537     4.00            262145    65537     4.00
create          1        1     1.00                 1        1     1.00
remove          1        1     1.00                 1        1     1.00
readdir         0        0                          0        0
fsstat          0        0                          0        0
fsinfo          0        0                          0        0
commit       2055     2052     1.00              2055     2052     1.00

client rpc stats:
calls      527220   133175     3.96            527220   133177     3.96
retrans      7509     2242     3.35              7509      620    12.11


I did open a defect to describe the above read problem at:

http://bugme.osdl.org/show_bug.cgi?id=1539


Regards ...Duc



                                                                                                                
                      Eric Whiting                                                                              
                      <ewhiting@amis.com>         To:       trond.myklebust@fys.uio.no, Jason Holmes            
                      Sent by:                     <jholmes@psu.edu>                                            
                      nfs-admin@lists.sour        cc:       nfs@lists.sourceforge.net                           
                      ceforge.net                 Subject:  Re: [NFS] 2.4 vs. 2.6 nfs client performance        
                                                                                                                
                                                                                                                
                      11/13/2003 12:59 PM                                                                       
                                                                                                                
                                                                                                                




Trond Myklebust wrote:
>
>      > This is not the same test, nor the same results as Jason's, but
>      > here is some more data from bonnie and dd tests.This shows some
>      > write performance difference between 2.4 and 2.6 eric
>
> How about vs. 2.4.23?

2.4.23 looks good -- see below -- these are acceptable numbers for a 100M
network. I reran the 2.6.0-test6-mm4 benchmarks and it still is much slower
than
the the 2.4.23.

Question for Jason: -- are you running the 4/4 vm layout in your kernel? My
2.6.0-test6-mm4 has the 4/4 vm enabled -- which can have an impact on
performance. I'll tetest with 2.6.0-test9 without the mm1 and 4/4 vm
enabled.

eric


Linux host 2.4.23-rc1 #2 SMP Thu Nov 13 11:30:02 MST 2003 i686 athlon i386
GNU/Linux
/test> bonnie -s 100
Writing with putc()...  done:   9228 kB/s  52.0 %CPU
Rewriting...            done:   9435 kB/s   6.0 %CPU
Writing intelligently...done:   9235 kB/s   4.0 %CPU

/test> rm file;time dd if=/dev/zero of=file bs=1 count=10000000
10000000+0 records in
10000000+0 records out

real    0m20.086s
user    0m3.120s
sys     0m16.740s


-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs






-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2003-11-16 15:55 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 18:05 2.4 vs. 2.6 nfs client performance Jason Holmes
2003-11-12 20:20 ` Trond Myklebust
2003-11-12 20:51   ` Jason Holmes
2003-11-12 21:18     ` Trond Myklebust
2003-11-12 21:33       ` Jason Holmes
2003-11-12 23:22         ` Trond Myklebust
2003-11-13  1:20           ` Jason Holmes
2003-11-13  2:07             ` Trond Myklebust
2003-11-13 14:16               ` Jason Holmes
2003-11-13 21:55                 ` Jason Holmes
2003-11-14  0:22                   ` Trond Myklebust
2003-11-14 18:37                     ` Jason Holmes
2003-11-14 21:11                       ` Trond Myklebust
2003-11-16 15:54                         ` Jason Holmes
2003-11-13 15:56               ` Eric Whiting
2003-11-13 17:55                 ` Trond Myklebust
2003-11-13 18:59                   ` Eric Whiting
2003-11-13 19:09                     ` Eric Whiting
2003-11-13 19:28                       ` Trond Myklebust
2003-11-13 19:18                     ` Jason Holmes
2003-11-12 22:08 ` Eric Whiting
  -- strict thread matches above, loose matches on Subject: below --
2003-11-13 19:42 Duc Vianney
2003-11-13 20:02 ` Trond Myklebust

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.