Page 1 of 2
Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 4:19 am
by thekk
Hi Folks,
again I have a problem with my WRT1200ac.
I put a USB3 ex. hdd on the USB3 port and i notice the following behavior:
Upload thru the hdd is limited to ~25MB/s (real writing speed of the hdd is ~80MB/s)
If i download in same time from the internet this bandwidth is subtracted from this upload.
I.e.: 25MB/s up(hdd) + 10MB/s down(inet) = 15MB/s up(hdd)
This doesn't behave if i download from a network device.
Download from the hdd to pc is ~ 105MB/s and don't conflict with down or upload thru the inet.
Next behavior:
It seems that the router don't spin down the hdd. Whats the common way to realize this?
Last behavior:
I want to share data from the hdd to the network.
For all it should only readable and for certain users it should be writeable too.
I tested NFS and it seems that this don't work correctly.
My RasberryPI cant access the shares and with Windows i dont see the shares.
With CIFS, the setting for anonymous access undermined by the setup for a user access. So you always get a login query if you add a spefific user to the share. That's not usable for me.
thanks for tips and support,
thekk
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 4:34 am
by Lantis
The USB performance is directly tied to the CPU.
USB 3 on a router is a waste of time. Most processors can barely saturate USB 2 as you've just discovered.
When you're using the Internet, the packets go through the CPU and hence the USB performance drops.
I'm not sure on the disparity between down and upload speeds from the hard drive but I'm sure there's a similar explanation.
This link may address your spin down issue
https://wiki.openwrt.org/doc/howto/stor ... _hard_disk
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 5:04 am
by thekk
Thanks for your fast reply.
The CPU limitation was on my mind too.
I tested a big file ~10gb and look at the cpu load last 5 min on the status page. There was just a load of 0.15. Is this 15%? For one or both cores?
I missed to check with top on the cli and will make up today evening but i am sure that this isn't the problem. But for real, i can be wrong.
Whats about NFS? Is there any bug knowed or did i miss some settings?
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 5:10 am
by Lantis
As well as load you need to check the SIRQ %.
If this is high then the CPU is being taxed very hard and is queuing actions.
I don't know much about anonymous usage because I don't use it sorry.
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 7:28 am
by thekk
Okay, NFS is obsolete because not all windows version support it.
But whats about CIFS?
The problem that i described was also reported 2 years ago:
http://www.gargoyle-router.com/phpbb/vi ... ifs#p36547
Is there any solution now?
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 7:54 am
by Lantis
When you get the login prompt, have you tried entering nonsense into it and see if it still let's you in?
Gargoyle implementation doesn't seem to be any different to the standard
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 1:07 pm
by thekk
hd-ilde work for me. thanks for this information.
This are the system state if i upload to the hdd.
https://www.dropbox.com/s/iaggpazkl7bhi ... lage01.jpg
So, the bottleneck can't be the cpu. Any suggetions?
If i type in something else than an existing user or nothing for login, the login will be rejected. Anonymous is defenitely deactivated if you set a certain user for a share.
Adding a user like "guest" cant be added without password, so i dont see a way for workaround now.
EDIT:
I solved the problem with guest access.
The option "map to guest = Bad User" should map a non existing user to the guest account.
The option "valid users" break this step.
If i delete this line in smb.conf and leave just "write list = userX userY", the guest access with only read work fine and login in with a user give me write access.
this should be changed in next gargoyle version or give the webUI more options to setup the smb config.
Additional Gargoyle sets the option "null password" in smb.conf but didn't accept zero password in webUI, this is also an "bug" and should be changed in some way. Maybe give the option in webUI to disable password for a user?
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 4:45 pm
by Lantis
Thanks I'll look at it.
No idea about the hard drive.
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 4:55 pm
by thekk
Its maybe possible that the workload isnt splited to both cores in this operation. smbd plus ntfs-3g is near the 50%.
Is there any way to install sysstat? So i can check the core utilization...
Re: Ex. Harddrive (WRT1200ac)
Posted: Wed May 25, 2016 5:17 pm
by Lantis
Unsure.
When I get home from work (12 hours) I'll upload you a copy of a plugin I'm working on porting to gargoyle which should give you the information you need.
See: netdata