Hi all...
I have noticed that NFS is very slow on writes with 2.4.26-pre6.
Some example:
- On the server:
annwn:~> time -p dd if=/dev/zero of=tst bs=1024 count=2048
2048+0 records in
2048+0 records out
real 0.04
user 0.01
sys 0.04
-On the client:
2048+0 records in
2048+0 records out
real 21.56
user 0.00
sys 0.02
Any idea on what's happening ?
SERVER
/etc/exports:
/home *.net1.cluster(rw,no_root_squash,no_subtree_check,no_auth_nlm)
annwn:~> ifconfig eth2
eth2 Link encap:Ethernet HWaddr 00:03:47:23:D5:74
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:225214 errors:0 dropped:0 overruns:0 frame:0
TX packets:135234 errors:0 dropped:0 overruns:0 carrier:134665
collisions:0 txqueuelen:1000
RX bytes:36314498 (34.6 Mb) TX bytes:47083712 (44.9 Mb)
Memory:df000000-df020000
03:01.0 Ethernet controller: Intel Corp. 82543GC Gigabit Ethernet
Controller (Copper) (rev 02)
CLIENT
mount:
192.168.1.1:/home on /home type nfs
(rw,nfsvers=3,tcp,rsize=8192,wsize=8192,noac,addr=192.168.1.1)
node06:~> ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:30:48:70:DE:5B
inet addr:192.168.1.16 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:31710 errors:0 dropped:0 overruns:0 frame:0
TX packets:41138 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11676250 (11.1 Mb) TX bytes:9522033 (9.0 Mb)
Base address:0xa800 Memory:f2020000-f2040000
02:0a.0 Ethernet controller: Intel Corp.: Unknown device 1013
(is also a Gigabit from Intel, on board)
Are this expected timings, or something is really wrong ?
TIA
--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
MacOS X 10.3.3, Build 7F44, Darwin Kernel Version 7.3.0
On Tue, 2004-03-30 at 18:24, J.A. Magallon wrote:
> mount:
> 192.168.1.1:/home on /home type nfs
> (rw,nfsvers=3,tcp,rsize=8192,wsize=8192,noac,addr=192.168.1.1)
Turn off "noac": That forces slooooow synchronous writes as per
Solaris...
Cheers,
Trond
On 31 mar 2004, at 01:32, Trond Myklebust wrote:
> On Tue, 2004-03-30 at 18:24, J.A. Magallon wrote:
>> mount:
>> 192.168.1.1:/home on /home type nfs
>> (rw,nfsvers=3,tcp,rsize=8192,wsize=8192,noac,addr=192.168.1.1)
>
> Turn off "noac": That forces slooooow synchronous writes as per
> Solaris...
>
Thanks, that made it:
annwn:~> bpsh 6 time -p dd if=/dev/zero of=tst bs=8192 count=8192
8192+0 records in
8192+0 records out
real 2.35
user 0.00
sys 0.33
64Mb in 2.35 secs = about 27Mb/s
Nice...
--
J.A. Magallon <jamagallon()able!es> \ Software is like sex:
werewolf!able!es \ It's better when it's free
MacOS X 10.3.3, Build 7F44, Darwin Kernel Version 7.3.0