USB Hard Drive Transfer Rate Testing! Come Get Some!

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

User avatar
powerlogy
Posts: 66
Joined: Wed Aug 22, 2012 12:04 pm
Location: Turkey

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by powerlogy »

i think i found some tricks. with these i have stable 11.5 MB/s download transfer speed with vsftpd and with samba 10MB/s on 1.5.8 while transmission-daemon not under load off course :D .

echo noop > /sys/block/sda/queue/scheduler
echo 1024 > /sys/block/sda/device/max_sectors
echo 1024 > /sys/block/sda/queue/nr_requests

or in sysctl.conf

/sys/block/sda/queue/scheduler=noop
/sys/block/sda/device/max_sectors=1024
/sys/block/sda/queue/nr_requests raises=1024

robnitro
Posts: 84
Joined: Sat Feb 26, 2011 4:50 pm

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by robnitro »

Not sure what is slowing you down. Maybe the newer stuff uses more cpu as you see 81% sys...

11 seems normal, I got that with openwrt. Never used usb on gargoyle... by then I made my own NAS/CableTV pc.

You might want to disable bwmon (bandwith monitor). It sucks up cpu, but doesn't show up as an application in top/htop (like it's part of the kernel?). Also try the settings in the post before you....

Code: Select all

cd /etc/init.d
./bwmon_gargoyle stop
./bwmon_gargoyle disable
chmod -x bwmon_gargoyle

User avatar
powerlogy
Posts: 66
Joined: Wed Aug 22, 2012 12:04 pm
Location: Turkey

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by powerlogy »

robnitro wrote:Not sure what is slowing you down. Maybe the newer stuff uses more cpu as you see 81% sys...

11 seems normal, I got that with openwrt. Never used usb on gargoyle... by then I made my own NAS/CableTV pc.

You might want to disable bwmon (bandwith monitor). It sucks up cpu, but doesn't show up as an application in top/htop (like it's part of the kernel?). Also try the settings in the post before you....

Code: Select all

cd /etc/init.d
./bwmon_gargoyle stop
./bwmon_gargoyle disable
chmod -x bwmon_gargoyle
Yeah like you said, i was already disabled bwmon and webmon services because i'm not using them.Thanks for tip anyway! :)

robnitro
Posts: 84
Joined: Sat Feb 26, 2011 4:50 pm

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by robnitro »

Also what helped me was to use noatime to mount the drive. Not sure how the gargoyle openwrt does it. I had a mount script, so I put in -o noatime... fstab is similar but I couldn't get it to work then with the usb hotplug.

Noatime is much like the tweak people use for windows NTFS- disable last access stamp.

lupus
Posts: 1
Joined: Thu Jan 24, 2013 4:39 am
Contact:

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by lupus »

NAS was significantly faster than ext3
The existing is difficult for me, Im noodle.

User avatar
powerlogy
Posts: 66
Joined: Wed Aug 22, 2012 12:04 pm
Location: Turkey

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by powerlogy »

Another tweak for file reads :
in sysctl
/sys/block/sda/queue/read_ahead_kb=1536

or
echo 1536 > /sys/block/sda/queue/read_ahead_kb

Now with vsftpd got 12.20MB/s download file from usb hdd, 12.02MB/s upload file to usb hdd.

I think these are limits of 1043nd's cpu.

My last mount line :

Code: Select all

mount -t ext4 -o rw,noatime,nodiratime,data=writeback,barrier=0,nobh /dev/sda2 /mnt

Slacker
Posts: 55
Joined: Mon Aug 20, 2012 2:00 pm

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by Slacker »

In order to get mount options like noatime going on every mount, without breaking gargoyle's automount, I just edited the appropriate filesystem in /etc/init.d/usb_mount
In my case, NTFS, since I want the drive to work without fuss on windows boxes...

omerjones
Posts: 1
Joined: Thu Sep 05, 2013 3:02 am

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by omerjones »

robnitro wrote:A tweak I posted on the openwrt forum helped a bit:

echo 1024 > /sys/block/sda/device/max_sectors
OR
add
/sys/block/sda/device/max_sectors=1024 to /etc/sysctl.conf file and then run sysctl -p or reboot.
Hi, I have a seagate HHD of 1TB while trasferring the data from HDD to my laptop it provide data transfer rate of 25 MB , but in vice-versa case it proveide only 15 MB data transfer rate , is this a problem of the my RAM or of my HDD.

shayanjameel08
Posts: 10
Joined: Sat Oct 12, 2013 7:51 am

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by shayanjameel08 »

thanx ..I will test for ext3, ext4 and xfs using Transcend USB Flash drive in my computer.
xfs was fastest on reading, ext4 - best for writing

Imogen
Posts: 3
Joined: Fri Sep 19, 2014 3:28 am

Re: USB Hard Drive Transfer Rate Testing! Come Get Some!

Post by Imogen »

Oh. Yes, I think so, let's make friends.

__________________________________________
fifa 15 coins ps

Post Reply