What's new

USB 3 full speed not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

densu90

Occasional Visitor
Hi!
I have install 384.8_2 on my AC-RT66U_b1 to be able to cofigure SMB. SMB main conf is:
[global]
workgroup = WORKGROUP
netbios name = RT-AC66U_B1
server string = RT-AC66U_B1
unix charset = UTF8
display charset = UTF8
load printers = no
printing = bsd
printcap name = /dev/null
log file = /var/log.samba
log level = 0
max log size = 5
security = USER
guest ok = no
map to guest = Bad User
encrypt passwords = yes
pam password change = no
null passwords = yes
force directory mode = 0777
force create mode = 0777
max connections = 5
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = no
strict locking = no
wide links = no
bind interfaces only = yes
interfaces = lo br0 192.168.1.1/255.255.255.0
use sendfile = yes
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = yes
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
wins support = yes
enable core files = no
deadtime = 30
load printers = no
printable = no
max protocol = SMB2
smb encrypt = disabled
min receivefile size = 16384
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
Connected 3.5 USB3 HDD with separate power source. (MAIVO K3568g2+WDC WD40 EFRX-68N32N0).
On PC i have 100-150 MB/s (800-1200 Mb/s)+- seq read, depends on part of the disk and 20% less seq write.
Log tells me next thing:
May 5 08:05:03 kernel: xhci_hcd 0000:00:0c.0: Failed to enable MSI-X
May 5 08:05:03 kernel: xhci_hcd 0000:00:0c.0: failed to allocate MSI entry
May 5 08:05:03 kernel: usb usb1: No SuperSpeed endpoint companion for config 1 interface 0 altsetting 0 ep 129: using minimum values
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 16 for vlan1 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 5 for vlan1 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 16 for vlan2 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 5 for vlan2 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 13 for vlan1 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 1 for vlan1 mvlan_en 0
May 5 08:05:04 nat: apply redirect rules
May 5 08:05:09 WAN_Connection: ISP's DHCP did not function properly.
May 5 08:05:13 RT-AC66U_B1: start https:8443
May 5 08:05:13 RT-AC66U_B1: start httpd:80
May 5 08:05:14 NAT_Tunnel: AAE Service is stopped
May 5 08:05:14 AAE: AAE Service is started
May 5 08:05:14 kernel: gro enabled with interval 2
May 5 08:05:14 disk_monitor: be idle
May 5 08:05:14 hour_monitor: daemon is starting
May 5 08:05:14 httpd: Generating SSL certificate...
May 5 08:05:14 avahi-daemon[303]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
May 5 08:05:14 custom_config: Using custom /jffs/configs/smb.conf config file.
May 5 08:05:15 avahi-daemon[303]: Alias name "RT-AC66U_B1" successfully established.
May 5 08:05:16 Samba_Server: daemon is started
May 5 08:05:17 jffs2: valid logs(1)
May 5 08:05:18 lldpd[380]: cannot get ethtool link information with GLINKSETTINGS (requires 4.9+): Operation not permitted
May 5 08:05:18 lldpd[380]: cannot get ethtool link information with GSET (requires 2.6.19+): Operation not permitted
May 5 08:05:20 Mastiff: init
May 5 08:05:21 rc_service: udhcpc 458:notify_rc start_firewall
May 5 08:05:21 wan: finish adding multi routes
May 5 08:05:21 kernel: SCSI subsystem initialized
May 5 08:05:21 rc_service: udhcpc 458:notify_rc stop_upnp
May 5 08:05:21 rc_service: waitting "start_firewall" via udhcpc ...
May 5 08:05:22 kernel: csw_retry 100
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: disable burst on ep 1
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN no SS endpoint bMaxBurst
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: disable burst on ep 2
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN no SS endpoint bMaxBurst
May 5 08:05:24 nat: apply nat rules (/tmp/nat_rules_eth0_eth0)
May 5 08:05:24 kernel: scsi 0:0:0:0: Direct-Access WDC WD40 EFRX-68N32N0 0 PQ: 0 ANSI: 6
May 5 08:05:24 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] 4096-byte physical blocks
May 5 08:05:24 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Write Protect is off
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
May 5 08:05:24 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
In result i get 37-40 MB/s (up to 320 Mb/s) seq download and nearly 100% router CPU usage. What I did wrong?
 
Last edited:
Hi, that is about the max you are going to get with the 66U CPU (600Mhz?) It is several times less powerful than a normal PC.. and does not even use DMA transfers. For instance the max speed I get with my 3200 overclocked to 1400mhz is just under 60MB/sec. In fact, anything over about 20-25MB/sec is indication that USB3 is working.
 
Hi!
I have install 384.8_2 on my AC-RT66U_b1 to be able to cofigure SMB. SMB main conf is:
[global]
workgroup = WORKGROUP
netbios name = RT-AC66U_B1
server string = RT-AC66U_B1
unix charset = UTF8
display charset = UTF8
load printers = no
printing = bsd
printcap name = /dev/null
log file = /var/log.samba
log level = 0
max log size = 5
security = USER
guest ok = no
map to guest = Bad User
encrypt passwords = yes
pam password change = no
null passwords = yes
force directory mode = 0777
force create mode = 0777
max connections = 5
socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = no
strict locking = no
wide links = no
bind interfaces only = yes
interfaces = lo br0 192.168.1.1/255.255.255.0
use sendfile = yes
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = yes
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
wins support = yes
enable core files = no
deadtime = 30
load printers = no
printable = no
max protocol = SMB2
smb encrypt = disabled
min receivefile size = 16384
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
Connected 3.5 USB3 HDD with separate power source. (MAIVO K3568g2+WDC WD40 EFRX-68N32N0).
On PC i have 100-150 MB/s (800-1200 Mb/s)+- seq read, depends on part of the disk and 20% less seq write.
Log tells me next thing:
May 5 08:05:03 kernel: xhci_hcd 0000:00:0c.0: Failed to enable MSI-X
May 5 08:05:03 kernel: xhci_hcd 0000:00:0c.0: failed to allocate MSI entry
May 5 08:05:03 kernel: usb usb1: No SuperSpeed endpoint companion for config 1 interface 0 altsetting 0 ep 129: using minimum values
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 16 for vlan1 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 5 for vlan1 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 16 for vlan2 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 5 for vlan2 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 13 for vlan1 mvlan_en 0
May 5 08:05:03 kernel: et0: et_mvlan_netdev_event: event 1 for vlan1 mvlan_en 0
May 5 08:05:04 nat: apply redirect rules
May 5 08:05:09 WAN_Connection: ISP's DHCP did not function properly.
May 5 08:05:13 RT-AC66U_B1: start https:8443
May 5 08:05:13 RT-AC66U_B1: start httpd:80
May 5 08:05:14 NAT_Tunnel: AAE Service is stopped
May 5 08:05:14 AAE: AAE Service is started
May 5 08:05:14 kernel: gro enabled with interval 2
May 5 08:05:14 disk_monitor: be idle
May 5 08:05:14 hour_monitor: daemon is starting
May 5 08:05:14 httpd: Generating SSL certificate...
May 5 08:05:14 avahi-daemon[303]: WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
May 5 08:05:14 custom_config: Using custom /jffs/configs/smb.conf config file.
May 5 08:05:15 avahi-daemon[303]: Alias name "RT-AC66U_B1" successfully established.
May 5 08:05:16 Samba_Server: daemon is started
May 5 08:05:17 jffs2: valid logs(1)
May 5 08:05:18 lldpd[380]: cannot get ethtool link information with GLINKSETTINGS (requires 4.9+): Operation not permitted
May 5 08:05:18 lldpd[380]: cannot get ethtool link information with GSET (requires 2.6.19+): Operation not permitted
May 5 08:05:20 Mastiff: init
May 5 08:05:21 rc_service: udhcpc 458:notify_rc start_firewall
May 5 08:05:21 wan: finish adding multi routes
May 5 08:05:21 kernel: SCSI subsystem initialized
May 5 08:05:21 rc_service: udhcpc 458:notify_rc stop_upnp
May 5 08:05:21 rc_service: waitting "start_firewall" via udhcpc ...
May 5 08:05:22 kernel: csw_retry 100
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN: short transfer on control ep
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: disable burst on ep 1
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN no SS endpoint bMaxBurst
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: disable burst on ep 2
May 5 08:05:23 kernel: xhci_hcd 0000:00:0c.0: WARN no SS endpoint bMaxBurst
May 5 08:05:24 nat: apply nat rules (/tmp/nat_rules_eth0_eth0)
May 5 08:05:24 kernel: scsi 0:0:0:0: Direct-Access WDC WD40 EFRX-68N32N0 0 PQ: 0 ANSI: 6
May 5 08:05:24 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.63 TiB)
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] 4096-byte physical blocks
May 5 08:05:24 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Write Protect is off
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
May 5 08:05:24 kernel: xhci_hcd 0000:00:0c.0: WARN: Stalled endpoint
May 5 08:05:24 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
In result i get 37-40 MB/s (up to 320 Mb/s) seq download and nearly 100% router CPU usage. What I did wrong?

Perfectly normal. 66u is pretty low on hw specs, 30-40mb/sec is all you can get from that model.
If you want better performance you must change your router with another model, for example 86u.
 
Hi, that is about the max you are going to get with the 66U CPU (600Mhz?) It is several times less powerful than a normal PC.. and does not even use DMA transfers. For instance the max speed I get with my 3200 overclocked to 1400mhz is just under 60MB/sec. In fact, anything over about 20-25MB/sec is indication that USB3 is working.
AC66U_B1 is a 1000 MHZ processor. I have had some issues with USB3 and have resolved to live with it set to USB2.

Sent from my SM-T380 using Tapatalk
 
AC66U_B1 is a 1000 MHZ processor. I have had some issues with USB3 and have resolved to live with it set to USB2.

Sent from my SM-T380 using Tapatalk

You are right.. however,.. this does not change things *much*, as then reaching 40MB/sec make a bit more sense than 30MB/sec, both in line with the results obtained by the op.
 
Last edited:
It's a bit strange. I did not work with ARM servers obviously. But some time ago, I runs FreeBSD router+file share with AMD single-core 1.2 GHz and get pretty much 70-80 MB/s from RAID-1 HDD configuration plus 20/1000 Mb/s of networking (external/internal) for 40 PC's (it's was installed by my predesessor). I perfectly understand that USB is not SATA and ARM is not x86, but it's should'nt be a matter of "raw" proccesing power. May be some driver for hardware acceleration is down? More of that, there two-cores in the router. So may be there is some twiks for this case?
What about 86u...for that prise tag with little extra i can buy some intel LE proc or equivalent PCB with dual LAN, install 8-16 GB of RAM and setup several server OS's on VM. Including SATA fileshare with full-spead and may be even software RAID. You'l never need 2x1 GHz for work with any HDD and moustly any SSD on x86-64. Plus somthing like Kerio Control do not requaire more then 1 GHz + 3 GB RAM.:)
From this point if it's a problem of the lack of RAM, may be some pagefile may help?
 
Last edited:
The CPU just isn't powerful enough in your AC66U. I did some tweaking/benchmarking with an AX88U recently which is what you can expect in a best case scenario with newer hardware.

https://www.snbforums.com/threads/asus-rt-ax88u-experiences-discussion.49427/page-3#post-447741
Removing of
Code:
"socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE"
adds extra 12% (up to 360Mb/s) of speed. Another non-default setting which gives 10% of speed more, I find earlier:
Code:
"strict locking = no"
Removing SMB2 conf string reverting router to SMB1-only mode.
...so...it might be we just do not know enough to do it best;)
By my theoretical calculations we should be able push it out to 480-500 Mb/s (60 MB/s+) on this hardware. If anyone have some ideas it might be useful for all.
Now global part of my config looks like this:
[global]
workgroup = WORKGROUP
netbios name = RT-AC66U_B1
server string = RT-AC66U_B1
unix charset = UTF8
display charset = UTF8
load printers = no
printing = bsd
printcap name = /dev/null
log file = /var/log.samba
log level = 0
max log size = 5
security = USER
guest ok = no
map to guest = Bad User
encrypt passwords = yes
pam password change = no
null passwords = yes
force directory mode = 0777
force create mode = 0777
max connections = 5
obey pam restrictions = no
disable spoolss = yes
host msdfs = no
strict allocate = no
strict locking = no
wide links = no
bind interfaces only = yes
interfaces = lo br0 192.168.1.1/255.255.255.0
use sendfile = yes
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = yes
dos filemode = yes
oplocks = yes
level2 oplocks = yes
kernel oplocks = no
wins support = yes
enable core files = no
deadtime = 30
load printers = no
printable = no
max protocol = SMB2
smb encrypt = disabled
min receivefile size = 16384
passdb backend = smbpasswd
smb passwd file = /etc/samba/smbpasswd
 
From my home experience:
First test speed in FTP ( I get 115MB/s with AC86U (but it has good cpu 2x1,8GHz) and ssd. Back in days when I had AC68U (OC to 2x1,2GHz ) FTP speeds where between 65-75MB/s). If the speed in FTP is as expected then try tuning samba.

For me changing SMB2 to SMB1 in Windows 10 was HUGE ( from 40MB/s to 110MB/s on AC86U)
 
Removing of
Code:
"socket options = IPTOS_LOWDELAY TCP_NODELAY SO_KEEPALIVE"
adds extra 12% (up to 360Mb/s) of speed. Another non-default setting which gives 10% of speed more, I find earlier:
Hi,
Thank you for your post. Could you please help? How this socket option could be unset?
All the best!
Edit1: changed set to unset
 
Hi,
Thank you for your post. Could you please help? How this socket option could be unset?
All the best!
Edit1: changed set to unset
Go here: http://192.168.1.1/Advanced_System_Content.asp
Turn "Enable JFFS custom scripts and configs" on and "Enable SSH" to "LAN only"
Save changes
Add all users you need and set basic premissions for SMB
Use WinSCP (SCP protocol) to download "\etc\smb.conf"
Edit it as you need (global part is settings. else is premitions)
Upload it to \jffs\configs\
Restart SAMBA (or reboot router)
Enjoy!
(For me it always was more comfortable edit configs on a separate machine with GUI. Live CMD-oops-I-missed-a-letter just not in my taste;))
 
Last edited:
From my home experience:
First test speed in FTP ( I get 115MB/s with AC86U (but it has good cpu 2x1,8GHz) and ssd. Back in days when I had AC68U (OC to 2x1,2GHz ) FTP speeds where between 65-75MB/s). If the speed in FTP is as expected then try tuning samba.

For me changing SMB2 to SMB1 in Windows 10 was HUGE ( from 40MB/s to 110MB/s on AC86U)
My FTP works now 20% SLOWER than SMBv2:D
What about v1/v2 I will try and poste
 
Last edited:
TBH this a topic that comes up again and again and has been discussed to death. The problem is that there's no "magic" solution that will work for everyone. Samba is so heavily dependent on CPU and free RAM that no two situations are the same. Aside from the fact that there are multiple versions of say, the RT-AC68U with different processors and clock speeds, people may or may not be running other services that are subtracting from their free RAM. So as they say, YMMV.
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top