Gentoo Archives: gentoo-user

From: Robert David <robert.david.public@×××××.com>
To: gentoo-user@l.g.o
Cc: jarausch@××××××××××××××××.de
Subject: Re: [gentoo-user] NFS terribly slow on writes
Date: Fri, 20 Apr 2012 20:30:55
Message-Id: 20120420222859.0aec279f@gmail.com
In Reply to: [gentoo-user] NFS terribly slow on writes by Helmut Jarausch
1 Hi Helmut,
2
3 this is common problem with nfs. I would suggest investigate more about
4 nfs4 (better caching). And try to play with mount options
5 rsize=1024,wsize=1024. I think default is 8k.
6
7 Robert.
8
9
10 V Fri, 20 Apr 2012 20:29:57 +0200
11 Helmut Jarausch <jarausch@××××××××××××××××.de> napsáno:
12
13 > Hi,
14 >
15 > on one of our students' lab the home directories of the students are
16 > mounted via NFS.
17 > Our main application (www.codelite.org) seems to write a lot of
18 > small chunks to files in the
19 > students' home directories.
20 >
21 > Thus, just finishing Codelite takes 100 seconds while the same
22 > version on a pure local machine
23 > takes about 2 seconds for that.
24 >
25 > A simple test
26 > dd bs=80 count=10000 if=/dev/zero of=$HOME/Test
27 > shows only 80 Kb/sec (speed of a floppy drive).
28 > The machine was idle and connected to a dedicated, nearly idle
29 > server by a network
30 > of 1Gb/sec.
31 >
32 > Does anybody have some hints on how to speed up such an NFS3 setup?
33 >
34 > Many thanks for some clues.
35 >
36 > By the way, NFS was set up with the async option.
37 >
38 > Helmut.
39 >