Excessive disk sleep
On my main Arch system some applications (especially ldconfig when running pacman, but now Firefox has begun to sometimes idly wait and so has nvim) just freeze for half a minute or so and are displayed by htop as having the "disk sleep" state.
It getting worse over time and me not having seen any issue like this elsewhere makes me believe that this might be a hardware issue (I've run this system for quite some time, including some disk intensive workloads), but I'm not entirely sure. (I don't have any data on there that isn't either properly backed up, elsewhere or just installed software, so I don't really fear any data loss either)
If anyone has any clue what exactly might be happening, any help would be appreciated. Thanks!
EDIT: I should clarify that my main drive is an SSD. iotop often shows jdb2/sdb1-8 being semi-active, and sometimes reaching 99% IO for some reason, which I'm currently further investigating. Thanks for all the help so far!
EDIT: Turns out jdb2 always does IO after disk writes happen, while the original application that does the writes is not listed as doing actual IO, which makes sense. I assume aggressive caching could potentially be the culprit here, esp. considering that I have quite a lot of RAM for Linux to cache such operations before actually doing them.
Posted Sep 2, 2020, 11:58 PM UTC · edited
What you're seeing is just slow drive access. Ordinarily I'd say it can be caused by having high amounts of writes to a disk, syncing the drive can freeze the io in that situation.
I'd check your actual IO, if it's low I'd be very concerned about a failing drive, so check it's SMART status with
smartctlThat makes it sound like it could also be a configuration issue, I'll have to check that (this system was set up with Apricity back when that still existed, I don't know what defaults they used).
smartctldoesn't show anything that would indicate disk failure, so that's at least good.