I have an older machine. I've had the impression for a while that despite this fact, it is in fact slower than it used to be, and not just slower than a modern machine.
Yesterday I upgraded to Fedora 39 from Fedora 38, and there was a noticeable performance decrease in a gaming application (Factorio, for reference). To me, this is proof that it's not just in my head.
I'm a bit at a loss for what to investigate.
Output of atop
shows that DSK
is occasionally reaching 94% load, and output of iostat
returns the following :
iostat
Linux 6.5.11-300.fc39.x86_64 (fedora.home) 11/11/23 _x86_64_ (12 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
2.99 0.02 1.08 19.55 0.00 76.35
Device tps kB_read/s kB_wrtn/s kB_dscd/s kB_read kB_wrtn kB_dscd
sda 0.19 5.66 0.00 0.00 6280 0 0
sdb 141.68 2218.36 824.05 26156.63 2462739 914829 29038048
zram0 0.05 1.06 0.00 0.00 1176 4 0
(sdb is boot and filesystem, sda is just data) The large amount of discards/s is a reasonable place to look, but smartctl -t long
returned zero errors. I don't know enough about hard drive debugging to look further.
Finally, a hard drive issue shouldn't have gotten significantly worse after a system upgrade, would it have?
/sys/block/sdX/queue/rotational
. Unless the drive is behind an enclosure / adapter (i.e., USB HDD), the OS should be able to detect it correctly. (You should see1
for HDDs.)cat /sys/block/sdb/queue/rotational
is1
.