You are not logged in.

#1 2026-01-05 01:10:29

wheelsbot7
Member
Registered: 2025-03-06
Posts: 6
Website

Inconsistent USB HDD performance

Grafana dashboard showing disk usage over 3 hours. Read/Write speed is mostly extremely slow, with short spikes up to around 13MB/s.

I've been doing some defrag operations on a USB HDD, and I'm seeing some weird usage patterns. I've looked into SMART status and I/O priority, but everything looks normal and changing I/O priority didn't do anything. Is this some kind of unavoidable throttling mechanism, or something I can fix? The filesystem is ext4 and I've enabled fast commits if that's relevant.

Offline

#2 2026-01-05 01:29:21

cryptearth
Member
Registered: 2024-02-03
Posts: 2,090

Re: Inconsistent USB HDD performance

the graph doesn't make any sense - it shows the same what's written also as read? also: on the time scale and if the data size is somewhere accurate these are small bursts of small files - try a big 10GB file (or if the target has the space: 100GB to overcome cache) to see how it performs with bulk transfer in one go

Offline

#3 2026-01-05 02:10:56

wheelsbot7
Member
Registered: 2025-03-06
Posts: 6
Website

Re: Inconsistent USB HDD performance

The usage shown is from one big run of "sudo e4defrag -v /dev/sdb", so that's why the read and write graphs are mirrored. It's currently churning through a bunch of ~300MB mkv files. From the terminal output, I can see it stalls in the middle of processing individual files, it's not consistently stalling anywhere. Here are the results of transferring a large file:
Grafana disk usage
Copying from the HDD to my SSD is the 20:40-20:45 chunk and went very quickly. The rest is from copying from the SSD to the HDD. At the time shown, the file transfer was only about 50% done, but transfer rate was consistent. I have to assume the odd "spiking" behavior is unique to e4defrag.

EDIT: I realize I forgot to also screenshot the vertical axis, here's a better graph:
Grafana disk usage with vertical axis

Last edited by wheelsbot7 (2026-01-05 14:37:18)

Offline

Board footer

Powered by FluxBB