All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Poor NFS performance, kernel 2.6.6.
@ 2004-06-02 12:33 Jeffrey Layton
  2004-06-02 13:00 ` Greg Banks
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Jeffrey Layton @ 2004-06-02 12:33 UTC (permalink / raw)
  To: nfs

I haven't been following this thread closely, but figured I'd chime in
with my own experience with this. Here's a rather unscientific test,
dd'ing to a file on an NFS-mounted filesystem. Mount options are:

udp,soft,intr,nfsvers=3

(I'm using UDP as I'm trying to set up a HA-NFS server, and the clients
seem to recover much faster when using UDP as a transport).

With a 2.4 kernel server:

% time dd if=/dev/zero of=./testfile bs=100M count=1
1+0 records in
1+0 records out
104857600 bytes transferred in 11.806235 seconds (8881544 bytes/sec)
dd if=/dev/zero of=./testfile bs=100M count=1  0.00s user 0.28s system
2% cpu 12.147 total

With a 2.6 kernel server:

% time dd if=/dev/zero of=./testfile bs=100M count=1
1+0 records in
1+0 records out
104857600 bytes transferred in 66.997572 seconds (1565096 bytes/sec)
dd if=/dev/zero of=./testfile bs=100M count=1  0.00s user 0.29s system
0% cpu 1:07.06 total


The machines are different hardware, but local write performance is
pretty comparable (in fact the 2.6 box is a faster machine, and is
currently less utilized than the 2.4 kernel machine). Both are using
reiserfs as the underlying filesystem.

Write performance in this cursory test was 10x worse! Clearly, there's
some sort of problem with NFS on 2.6. I'll be happy to send in what info
I can. My 2.4 machine is currently a production box, but I can run an
instrumented kernel, etc. on the 2.6 box in the near future if anyone
here can guide me on what I can do to help.

-- Jeff




-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Poor NFS performance, kernel 2.6.6.
@ 2004-05-27 13:16 Harald Hannelius
  0 siblings, 0 replies; 22+ messages in thread
From: Harald Hannelius @ 2004-05-27 13:16 UTC (permalink / raw)
  To: linux-kernel


[already posted this on the nfs-list too]

Hi there,

I'm running two servers, both Dual Opterons with Broadcom Gb NICs. I'm
using the bcm5700 driver and I see no errors whatsoever with 'ifconfig'.
These NICs are onboard PCIX:100MHz:64-bit.

I'm using nfs-utils-1.0.6 and the 2.6.6 kernel, compiled with both NFSv3
and NFSv4 support. The client and servers are identical except for the
server having a scsi-raid under /home and the client being and IDE-box.

Distribution slackware-9.1 on both computers.

/etc/exports;

   /home   193.167.32.175(ro,no_root_squash,async)

/etc/fstab;

  193.167.32.187:/home    /home   nfs     \
 defaults,noauto,rsize=32768,wsize=32768,nfsvers=3 0 0

(as you can see I have experimented with different rsize,wsize without any
noticeable effect, same goes for nfsvers 2 and 3. I even mounted the
filesystem as ext2 on the server and as ext3 with data=journal with no
effect)

The computers are connected through a HP 8-port Gb switch and are on the
same subnet.

rsync over ssh gives me roughly 200Mbps (37 GB dataset)
netcat over tcp with a 2GB file gives me 457 Mbps
netcat over udp with a 2GB file gives me 640 Mbps

But dd'ing the 2GB file over nfs as some NFS-HOWTO suggests takes over 5
minutes. That should equal to something around 49 Mbps, correct?

The netcat takes 25 secs to transfer 2GB file.

I installed kernel 2.4.26 and the netcat finished in 29seconds (550Mbps).
With kernel 2.4.26 the 'time cat largefile > /dev/null' over NFS took just
1min3s on the client. Which should equal to something like 254Mbps.


Is there some way I can look at the nfs-server what it's doing? Any
suggestions on solutions for this?

And what datarates over NFS could I expect on a setup like this?
Half-wirespeed maybe?

Thanks in advance,

  Harald



-- 
A: Top Posters
Q: What is the most annoying thing on mailing lists?

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Poor NFS performance, kernel 2.6.6.
@ 2004-05-27 10:31 Harald Hannelius
       [not found] ` <200405271251.22746.vincent.roqueta@ext.bull.net>
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Harald Hannelius @ 2004-05-27 10:31 UTC (permalink / raw)
  To: nfs


Hi there,

I'm running two servers, both Dual Opterons with Broadcom Gb NICs. I'm
using the bcm5700 driver and I see no errors whatsoever with 'ifconfig'.

I'm using nfs-utils-1.0.6 and the 2.6.6 kernel, compiled with both NFSv3
and NFSv4 support. The client and servers are identical except for the
server having a scsi-raid under /home and the client being and IDE-box.

Distribution slackware-9.1 on both computers.

/etc/exports;

   /home   193.167.32.175(ro,no_root_squash,async)

/etc/fstab;

  193.167.32.187:/home    /home   nfs     \
 defaults,noauto,rsize=32768,wsize=32768,nfsvers=3 0 0

(as you can see I have experimented with different rsize,wsize without any
noticeable effect, same goes for nfsvers 2 and 3. I even mounted the
filesystem as ext2 on the server and as ext3 with data=journal with no
effect)

The computers are connected through a HP 8-port Gb switch and are on the
same subnet.

rsync over ssh gives me roughly 200Mbps (37 GB dataset)
netcat over tcp with a 2GB file gives me 457 Mbps
netcat over udp with a 2GB file gives me 640 Mbps

But dd'ing the 2GB file over nfs as some NFS-HOWTO suggests takes over 5
minutes. That should equal to something around 49 Mbps, correct?

The netcat takes 25 secs to transfer 2GB file.

Is there some way I can look at the nfs-server what it's doing? Any
suggestions on solutions for this?

And what datarates over NFS could I expect on a setup like this?
Half-wirespeed maybe?

Thanks in advance,

  Harald


-- 
A: Top Posters
Q: What is the most annoying thing on mailing lists?

Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594 1020


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

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

end of thread, other threads:[~2004-06-02 14:53 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-02 12:33 Poor NFS performance, kernel 2.6.6 Jeffrey Layton
2004-06-02 13:00 ` Greg Banks
2004-06-02 13:40   ` Jeffrey Layton
2004-06-02 13:14 ` Vincent ROQUETA
2004-06-02 14:53 ` Jeffrey Layton
  -- strict thread matches above, loose matches on Subject: below --
2004-05-27 13:16 Harald Hannelius
2004-05-27 10:31 Harald Hannelius
     [not found] ` <200405271251.22746.vincent.roqueta@ext.bull.net>
2004-05-27 12:17   ` Harald Hannelius
2004-05-27 12:45     ` Vincent ROQUETA
2004-05-27 12:39 ` Dexter Filmore
2004-05-27 13:03   ` Harald Hannelius
2004-05-27 18:07 ` Bernd Schubert
2004-05-27 19:01   ` Trond Myklebust
2004-05-27 20:56   ` Harald Hannelius
2004-05-27 22:09 ` Trond Myklebust
2004-05-28  7:17   ` Harald Hannelius
2004-05-28 13:55     ` Olaf Kirch
2004-05-28 16:57       ` Phy Prabab
2004-05-28 18:03       ` Harald Hannelius
2004-05-28 19:19         ` Trond Myklebust
2004-06-01  0:16           ` Yusuf Goolamabbas
2004-06-02  6:57             ` 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.