Gentoo Archives: gentoo-user

From: Hal Martin <hal.martin@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [SOLVED] NFS poor performance, high system load
Date: Tue, 24 Nov 2009 14:09:08
Message-Id: 4B0BD97E.30208@gmail.com
In Reply to: Re: [gentoo-user] NFS poor performance, high system load by Roy Wright
1 Roy Wright wrote:
2 >
3 > On Nov 23, 2009, at 8:11 PM, Hal Martin wrote:
4 >
5 >> Hello all,
6 >>
7 >> Sorry if it seems like this is a repeat question, but I've gone through
8 >> my Gentoo list for the past 2 years and none of the answers provided for
9 >> previous threads on this seem to work for me. Here's the situation:
10 >>
11 >>
12 >> /etc/exports:
13 >> /mnt/daigo 192.168.0.31(rw,insecure)
14 >>
15 >
16 > A couple of years ago, I experienced the same type of issue where nfs
17 > performance was a lot lower than smb. It turned out a switch I was
18 > using was bad. I suggest first minimizing your testing network, and
19 > then swapping components such as switches. Others on the LinuxMCE
20 > list had issues with specific network drivers.
21 >
22 > I current use nfs between kubuntu, gentoo, and macbook (10.5.8 2GHz
23 > Core 2 Duo) systems. I have media volumes on the kubuntu, and both
24 > gentoo systems. I use autofs on each system for mounting the nfs
25 > volumes. Here's an example of the settings:
26 >
27 > /etc/exports:
28 > /var/media
29 > 192.168.80.0/24(async,no_subtree_check,rw,no_root_squash,insecure)
30 That's fixed it! Thanks! I'm now getting ~50MB/s over NFS. System load
31 is still up around 6, but I can live with that.
32 >
33 > /etc/auto.media:
34 > royw-gentoo -rsize=8192,wsize=8192,soft,timeo=30,rw
35 > royw-gentoo:/var/media
36 > dad-kubuntu -rsize=8192,wsize=8192,soft,timeo=30,rw
37 > dad-kubuntu:/var/media
38 >
39 > My macbook "Connect to Server":
40 > nfs://royw-gentoo/var/media/public/data
41 > nfs://dad-kubuntu/var/media/public/data
42 >
43 > The no_subtree_check and the no_root_squash parameters are left over
44 > from when I used LinuxMCE.
45 >
46 > The insecure parameter is required to allow the macbook to connect.
47 >
48 > The rsize and wsize seem to work fine for streaming dvd iso images to
49 > my gentoo XBMC system over gigabit ethernet. I've also streamed a few
50 > movies to my macbook and did not notice any performance issues.
51 Streaming movies from my gentoo box to my macbook doesn't present any
52 performance issues as the data rate is usually fairly low.
53 >
54 > My media drives are WDC WD10EACS (1TB).
55 >
56 > How are you testing performance? With test procedure I can try to
57 > duplicate.
58 Large files. I'm transferring 4-7GB .mkv files, but I believe any large
59 file would do.
60
61 -Hal
62 >
63 > HTH,
64 > Roy
65 >
66 >
67 >

Replies

Subject Author
Re: [gentoo-user] [SOLVED] NFS poor performance, high system load Robin Atwood <robin.atwood@×××××××××.net>