I’ve got an external hard drive hooked into USB3 port of Rock5B. Used mainly for building software with pretty high load at times. During these heavy usage periods the drive tends to “disconnect” from the system like there’s not enough power. Needles to say oftentimes it results in data loss.
Tried with different power supplies, different ports, different USB3 cables but all combinations resulted in same behavior.
Finally got myself the Y cable with two plugs into Rock5B for additional power. This appears to solve issue.
Being curious I plugged the drive through one of USB3 testers measuring power and run
sudo dd if=/dev/sda bs=8M | pv > /dev/null
. Both speed and measured power fluctuated a lot – from 30MB/s to 105MB/s or from 400mA to 600mA.
Next plugged the disk into my PC and repeated the same. To my surprise it was a constant 138MB/s with constant 670mA power draw. No fluctuations at all.
What is the reason for these fluctuations on Rock5B? Is it expected?
Running kernel 5.10.110-8-rockchip from Radxa with my custom userspace.