Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hello,
I have installed 2.02 and my SMB file transfers are slow as hell (plugged in gigabit I top 3,3 Mo/s)
Is there a way to roll back to 2.00 ?
Does a chroot linux have better performance ?
Offline
Try adding this to the fun_plug file in your DNS-3xx, or make one. The transfer rate of my DNS-320 increased from 6.5 MB/s to over 10 MB/s which is maximum on my 100Mb LAN.
This is a safe solution. And it might be a partial solution to your problem.
This solution is to replace the anticipatory scheduler by the noop scheduler.
Quote from Wikipedia
"The Linux anticipatory scheduler may reduce performance on disks using TCQ, high performance disks, and hardware RAID arrays"
#!/bin/sh
mount -t sysfs none /sys
echo noop > /sys/block/sdb/queue/scheduler
echo noop > /sys/block/sda/queue/scheduler
echo noop > /sys/block/sdb/queue/scheduler
echo noop > /sys/block/sdc/queue/scheduler
echo noop > /sys/block/mtdblock0/queue/scheduler
echo noop > /sys/block/mtdblock1/queue/scheduler
echo noop > /sys/block/mtdblock2/queue/scheduler
echo noop > /sys/block/mtdblock3/queue/scheduler
echo noop > /sys/block/mtdblock4/queue/scheduler
echo noop > /sys/block/mtdblock5/queue/scheduler
Last edited by usrrad (2012-03-10 00:11:48)
Offline
I add this at the beginning or the end of the file ?
I guess it does not matter
I guess I do not put the #!/bin/sh since it is already in there
I also guess I need to reboot after to have taken into account
Offline
Thanks, that was it, went from 3.3 Mo/ to 20 Mo/s !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Last edited by jeffjoker (2012-03-09 20:36:45)
Offline
I used to get 35MB/s large file read performance over GbE with FW2.00 and it went down to 13MB/s with 2.02
Either I'm not applying the changes in this thread correctly or they made only a small difference in my case by bumping up read performance to 14 MB/s.
(Write performance remains the same at approx 28MB/s)
Since I back up my NAS to another NAS, I'd be willing to wipe the machine and drives if necessary to get back to FW2.0 performance. If I loaded Debian chroot, could I go back to 2.0?
Offline
usrrad wrote:
Try adding this to the fun_plug file in your DNS-3xx, or make one. The transfer rate of my DNS-320 increased from 6.5 MB/s to over 10 MB/s which is maximum on my 100Mb LAN.
This is a safe solution. And it might be a partial solution to your problem.
This solution is to replace the anticipatory scheduler by the noop scheduler.
Quote from Wikipedia
"The Linux anticipatory scheduler may reduce performance on disks using TCQ, high performance disks, and hardware RAID arrays"
#!/bin/sh
mount -t sysfs none /sys
echo noop > /sys/block/sdb/queue/scheduler
echo noop > /sys/block/sda/queue/scheduler
echo noop > /sys/block/sdb/queue/scheduler
echo noop > /sys/block/sdc/queue/scheduler
echo noop > /sys/block/mtdblock0/queue/scheduler
echo noop > /sys/block/mtdblock1/queue/scheduler
echo noop > /sys/block/mtdblock2/queue/scheduler
echo noop > /sys/block/mtdblock3/queue/scheduler
echo noop > /sys/block/mtdblock4/queue/scheduler
echo noop > /sys/block/mtdblock5/queue/scheduler
Thanks! this increased my performance.
Offline
I also upgraded to 2.0.2 and can see slow samba performance, but I don't understand how can above trick help you, if noop is already used by 2.02 by defaul?
Check this:
# mount -t sysfs none /sys
# cat /sys/block/sda/queue/scheduler
noop [anticipatory]
Question is why it is so bad. Now my read performance is around 12 - 14 MB/s while with 2.0.0 it was around 30MB/s :-(
Only thing that is weird to me, that performance seems to now be capped by IOwait, not by CPU load.
Offline
It looks like 2.0.3 Beta has been posted by Dlink but no changelog. If a brave soul tries it, please post if it improves SMB performance.
Thanks.
Offline
jeffjoker,
I finally got around to upgrading to 2.03 and SMB performance has taken yet another hit. I see that you're running 2.03 too and was hoping you could tell me whether you're still using the scheduler tweaks described in this thread.
Thanks.
Offline
Based on some comments on the Dlink forums, I ran an experiment where I ran FW2.02 with fun_plug 0.5 disabled and SMB read performance jumped from 12MB/s to 40MB/s (400MB files with NAS Performance Tester 1.4 over Gigabit Ethernet).
Has anyone else noticed this correlation? Is there a way to reduce the memory footprint of fun_plug to reduce the impact?
Offline
I tested the changes with version 2.04 if you increase the speed of writing and reading, but I lose access telnet and ssh. Any more you do, too.
The version of fun_plug is 0.7
regards
Offline