• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Slow USB transfers when CPU is idle

Joined
Dec 16, 2010
Messages
1,662 (0.34/day)
Location
State College, PA, US
System Name My Surround PC
Processor AMD Ryzen 9 7950X3D
Motherboard ASUS STRIX X670E-F
Cooling Swiftech MCP35X / EK Quantum CPU / Alphacool GPU / XSPC 480mm w/ Corsair Fans
Memory 96GB (2 x 48 GB) G.Skill DDR5-6000 CL30
Video Card(s) MSI NVIDIA GeForce RTX 4090 Suprim X 24GB
Storage WD SN850 2TB, 2 x 512GB Samsung PM981a, 4 x 4TB HGST NAS HDD for Windows Storage Spaces
Display(s) 2 x Viotek GFI27QXA 27" 4K 120Hz + LG UH850 4K 60Hz + HMD
Case NZXT Source 530
Audio Device(s) Sony MDR-7506 / Logitech Z-5500 5.1
Power Supply Corsair RM1000x 1 kW
Mouse Patriot Viper V560
Keyboard Corsair K100
VR HMD HP Reverb G2
Software Windows 11 Pro x64
Benchmark Scores Mellanox ConnectX-3 10 Gb/s Fiber Network Card
I've been struggling to fix an issue with slow USB transfers on a Debian 11 NAS, and I'm wondering if anyone has any suggestions. I have four external USB 3 HDDs connected to an Intel NUC6i3SYH. When I try to copy files over the network to the disks, the transfer only runs at 15-20 mbps even though the host server is capable of 1 gbps+. I look at CPU usage, I/O usage, and memory usage, and they are all at 10-20%, so none of them are the limitation.

Today, I stumbled across an odd finding. If I run any program that stresses at least one CPU core, the transfers speed up to 500mbps and the transfers are finally limited by the disks with I/O usage at 100%. Once that stressing processes stops, transfers slow down again back to 15-20mbps. I changed the CPU governor from "powersave" to "performance", and there was no noticeable change in transfer rates. It's only when I stress a CPU core that transfer rates speed up.

I'm thinking this is some sort of USB power saving feature taking effect, but I am not sure what config option to look for. Has anyone experienced this before or have a solution? Thanks!
 
Joined
Sep 27, 2019
Messages
1,205 (0.72/day)
Location
Canada
System Name New compy
Processor AMD Ryzen 5800x3D
Motherboard MSI MPG x570S EDGE MAX WiFi
Cooling Noctua NH-D15S w. FHP141 + Xigmatek AOS XAF-F1451
Memory 32gb G.Skill Ripjaws V Samsung B-Die Dual Rank F4-4000C16D-32GVKA
Video Card(s) ASUS TUF GAMING RTX 4070ti
Storage 17tb (8+4tb WD Black HDD's, 2+2+0.5+0.5tb M.2 SSD Drives) + 16tb WD Red Pro backup drive
Display(s) Alienware AW2518H 24" 240hz, Sony X85K 43" 4k 120hz HDR TV
Case Thermaltake Core v71
Audio Device(s) iFi Nano Idsd Le, Creative T20 + T50, Sennheiser HD6Mix
Power Supply EVGA Supernova G2 1000w
Mouse Logitech G502 Hero custom w. G900 scroll wheel mod, Rival 3 + Rival 3 wireless, JLab Epic Mouse
Keyboard Corsair K68 RGB + K70 RGB + K57 RGB Wireless + Logitech G613
Software Win 10 Pro
Benchmark Scores https://valid.x86.fr/s2y7ny
Is write caching enabled on the nas?
 
Joined
Feb 28, 2022
Messages
263 (0.34/day)
Have you tried editing the power plan and making sure all power savings are off for USB, PCIE, CPU etc
 
Joined
Dec 16, 2010
Messages
1,662 (0.34/day)
Location
State College, PA, US
System Name My Surround PC
Processor AMD Ryzen 9 7950X3D
Motherboard ASUS STRIX X670E-F
Cooling Swiftech MCP35X / EK Quantum CPU / Alphacool GPU / XSPC 480mm w/ Corsair Fans
Memory 96GB (2 x 48 GB) G.Skill DDR5-6000 CL30
Video Card(s) MSI NVIDIA GeForce RTX 4090 Suprim X 24GB
Storage WD SN850 2TB, 2 x 512GB Samsung PM981a, 4 x 4TB HGST NAS HDD for Windows Storage Spaces
Display(s) 2 x Viotek GFI27QXA 27" 4K 120Hz + LG UH850 4K 60Hz + HMD
Case NZXT Source 530
Audio Device(s) Sony MDR-7506 / Logitech Z-5500 5.1
Power Supply Corsair RM1000x 1 kW
Mouse Patriot Viper V560
Keyboard Corsair K100
VR HMD HP Reverb G2
Software Windows 11 Pro x64
Benchmark Scores Mellanox ConnectX-3 10 Gb/s Fiber Network Card
Have you tried editing the power plan and making sure all power savings are off for USB, PCIE, CPU etc
This is running Debian 11, so there is not a "power plan" like Windows. Maybe there's something in the BIOS, but I'm not sure what to look for.
 

Easy Rhino

Linux Advocate
Staff member
Joined
Nov 13, 2006
Messages
15,444 (2.43/day)
Location
Mid-Atlantic
System Name Desktop
Processor i5 13600KF
Motherboard AsRock B760M Steel Legend Wifi
Cooling Noctua NH-U9S
Memory 4x 16 Gb Gskill S5 DDR5 @6000
Video Card(s) Gigabyte Gaming OC 6750 XT 12GB
Storage WD_BLACK 4TB SN850x
Display(s) Gigabye M32U
Case Corsair Carbide 400C
Audio Device(s) On Board
Power Supply EVGA Supernova 650 P2
Mouse MX Master 3s
Keyboard Logitech G915 Wireless Clicky
Software The Matrix
I've been struggling to fix an issue with slow USB transfers on a Debian 11 NAS, and I'm wondering if anyone has any suggestions. I have four external USB 3 HDDs connected to an Intel NUC6i3SYH. When I try to copy files over the network to the disks, the transfer only runs at 15-20 mbps even though the host server is capable of 1 gbps+. I look at CPU usage, I/O usage, and memory usage, and they are all at 10-20%, so none of them are the limitation.

Today, I stumbled across an odd finding. If I run any program that stresses at least one CPU core, the transfers speed up to 500mbps and the transfers are finally limited by the disks with I/O usage at 100%. Once that stressing processes stops, transfers slow down again back to 15-20mbps. I changed the CPU governor from "powersave" to "performance", and there was no noticeable change in transfer rates. It's only when I stress a CPU core that transfer rates speed up.

I'm thinking this is some sort of USB power saving feature taking effect, but I am not sure what config option to look for. Has anyone experienced this before or have a solution? Thanks!

Did you figure this out? It seems like a bug with the kernel drivers. There may be a patch for it.
 
Joined
Jul 15, 2022
Messages
684 (1.06/day)
What type of HDD do you have connected via USB 3? Often the speeds indicated in Linux are not 100% accurate.
I'd be surprised if you're going to drive at 500MB/s over USB 3, unless you have a top model of an HDD connected.
Debian has some major problems right now: https://unixsheikh.com/articles/the-delusions-of-debian.html

I would currently recommend TrueNAS 13.0 which is seen as the best system for NAS systems:
FreeBSD simply achieves 2.5 times more IOPS than Linux currently does in ZFS, and Linux is also less stable for ZFS.
You can also format all your USB sticks in ZFS. I do this and both FreeBSD and Ubuntu automatically mount these USB sticks which is very useful.

Linux currently does not have a file system that is competitive with ZFS.
Btrfs on Linux is usually slower than ZFS on FreeBSD and Btrfs lacks certain useful features and also has a lot of bugs:
 
Joined
Dec 16, 2010
Messages
1,662 (0.34/day)
Location
State College, PA, US
System Name My Surround PC
Processor AMD Ryzen 9 7950X3D
Motherboard ASUS STRIX X670E-F
Cooling Swiftech MCP35X / EK Quantum CPU / Alphacool GPU / XSPC 480mm w/ Corsair Fans
Memory 96GB (2 x 48 GB) G.Skill DDR5-6000 CL30
Video Card(s) MSI NVIDIA GeForce RTX 4090 Suprim X 24GB
Storage WD SN850 2TB, 2 x 512GB Samsung PM981a, 4 x 4TB HGST NAS HDD for Windows Storage Spaces
Display(s) 2 x Viotek GFI27QXA 27" 4K 120Hz + LG UH850 4K 60Hz + HMD
Case NZXT Source 530
Audio Device(s) Sony MDR-7506 / Logitech Z-5500 5.1
Power Supply Corsair RM1000x 1 kW
Mouse Patriot Viper V560
Keyboard Corsair K100
VR HMD HP Reverb G2
Software Windows 11 Pro x64
Benchmark Scores Mellanox ConnectX-3 10 Gb/s Fiber Network Card
Just to follow up, I eventually fixed the issue.

I experimented with the different power saving settings in the BIOS. The PC is an Intel NUC6i3SYK. I eventually found that disabling PCIe link state power management in the BIOS fixed the problem. I have no idea why this fixed the issue considering that the USB ports are part of the chipset, but it is reproducible. The PC probably uses a bit more power now but it's a lot more usable as a NAS.
 
Top