DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-03-08 12:23:05

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Firmware roll-back / SMB perfs

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

 

#2 2012-03-09 20:01:52

usrrad
New member
Registered: 2012-03-09
Posts: 3

Re: Firmware roll-back / SMB perfs

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

 

#3 2012-03-09 20:24:10

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Re: Firmware roll-back / SMB perfs

I add this at the beginning or the end of the file ?
I guess it does not matter wink
I guess I do not put the #!/bin/sh since it is already in there wink
I also guess I need to reboot after to have taken into account wink

Offline

 

#4 2012-03-09 20:36:28

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Re: Firmware roll-back / SMB perfs

Thanks, that was it, went from 3.3 Mo/ to 20 Mo/s !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! yikes

big_smile

Last edited by jeffjoker (2012-03-09 20:36:45)

Offline

 

#5 2012-03-11 04:48:33

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Firmware roll-back / SMB perfs

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?


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#6 2012-03-30 20:53:33

dP21
Member
Registered: 2008-11-29
Posts: 33

Re: Firmware roll-back / SMB perfs

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

 

#7 2012-04-13 00:23:13

Johny Mnemonic
Member
Registered: 2011-04-15
Posts: 7

Re: Firmware roll-back / SMB perfs

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.


My embedded devices:
Asus RT-N16 + WD 500GB USB + TomatoUSB
D-Link DNS-320 + Seagate Barracuda LP 2TB + fun_plug v0.5

Offline

 

#8 2012-04-24 07:20:09

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Firmware roll-back / SMB perfs

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.


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#9 2013-03-01 05:19:25

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Firmware roll-back / SMB perfs

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.


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#10 2013-03-01 06:00:50

unmesh
Member
Registered: 2008-03-26
Posts: 55

Re: Firmware roll-back / SMB perfs

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?


DNS-323 FW1.10B7 WD20EARS_2TB Samsung_HD753LG_750G FFP_0.5
DNS-321 FW1.03  FFP_0.7 (Spare enclosure)
DNS-320 FW2.02 Hitachi_HDS5C3020ALA632_2TB Hitachi_HDS721010KLA330_1TB FFP_0.5

Offline

 

#11 2013-03-04 18:27:25

blase
Member
Registered: 2009-09-12
Posts: 9

Re: Firmware roll-back / SMB perfs

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

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB