Gentoo Archives: gentoo-user

From: Eric Martin <freak4uxxx@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NFS Server Tuning
Date: Tue, 29 Jan 2008 21:13:05
Message-Id: 479F96B4.8090400@gmail.com
In Reply to: [gentoo-user] NFS Server Tuning by Stefan Onken
1 Stefan Onken wrote:
2 > Hello,
3 >
4 > I am running a x86 gentoo box as a nfs server. As a filesystem I am
5 > using XFS on a 3ware Raid system.
6 >
7 > The 3ware systems seems to be quite quick, although access via NFS
8 > seems to be very slow. Any ideas how I can improve speed ? I was
9 > expected a speed only limited by the 100 Mbit network. Now, the
10 > speed is so slow, that reading/writing at the same time is nearly
11 > impossible.
12 >
13 > Any ideas how to improve the speed ?
14 >
15 > hdparm on the gentoo box machine:
16 > backup3 ~ # hdparm -tT /dev/sdb
17 > /dev/sdb:
18 > Timing cached reads: 4108 MB in 2.00 seconds = 2054.34 MB/sec
19 > Timing buffered disk reads: 232 MB in 3.01 seconds = 77.09 MB/sec
20 >
21 > /etc/exports on the gentoo box:
22 > /mnt/backup/ 192.168.1.0/24
23 > (rw,no_root_squash,async,no_subtree_check)
24 >
25 > I am not even able to run a bonnie benchmark on the client. It seems
26 > to hang while doing rewriting. Running bonnie on the nfs server
27 > gives a fast result.
28 >
29 > /etc/fstab on the client:
30 > 192.168.1.3:/mnt/backup /mnt/backup nfs
31 > rw,users,async 0
32 >
33 > http://pastebin.com/m72ae9d47
34 >
35 > Any ideas ?
36 >
37 I turned on tcp (vs. udp for nfs and I'm much happier. I have a mixed
38 cat5 (100Mbps) vs 802.11G(54Mbps) network. YMMV but it's worth a shot.
39 I'm streaming mp3s over it, my home directories and mythtv.
40
41 HTH
42 -eric
43 --
44 gentoo-user@l.g.o mailing list