« Return to Thread: NFS performance and other problems with 5.3 beta

Re: NFS performance and other problems with 5.3 beta

by Mike Westerhof (mwester) :: Rate this Message:

Reply to Author | View in Thread

Mike (mwester) wrote:

> t.brinkmann@... wrote:
>
>> *NFS performance is considerably worse in 5.3 than in 4.8. In 4.8, my DVB-T STB wrote 2.56 MB/s to a NFS share on the slug, under 5.3 the write rate decreased to a mere 0.86 MB/s which is useless for my purposes.
>
> Just as a test, I get 1.7MB/s via NFS to a slow USB stick on the NSLU2:
>
> $ dd if=/dev/zero of=foo bs=1M count=32
> 32+0 records in
> 32+0 records out
> 33554432 bytes (34 MB) copied, 19.3238 s, 1.7 MB/s
>
> I think there's something not right on your setup. :-)

Ok, just so we don't end up spreading concern needlessly throughout the
community, I scrounged up a disk drive, and re-ran the tests.

I guessed that you left everything pretty much default, and nfs exported
/media/sd<whatever>:


$ dd if=/dev/zero of=foo bs=1M count=30
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 41.832 s, 752 kB/s

I get about what you quoted -- pretty sad.

So, on the slug, I mounted the drive the way it would be mounted if you
didn't use the auto-mounting udev mechanism (specifically, I removed the
"sync" option from the mount options):

$ dd if=/dev/zero of=foo bs=1M count=30
30+0 records in
30+0 records out
31457280 bytes (31 MB) copied, 8.01544 s, 3.9 MB/s

So, right back up to 3.9 MB/s -- there are few other NFS options that
one can tune or tweak (I got up to 4.0 MB/s), but that's pretty reasonable.

-Mike (mwester)

 « Return to Thread: NFS performance and other problems with 5.3 beta