by pengaru · 4y ago · 0 comments
Regular userspace processes, even those with niced/lowered priority, could generate overwhelming amounts of CPU load just by creating a bunch of IO burden on a dmcrypt-backed mountpoint. Far more than their fair share in terms of their own process scheduling.
The effects of this were especially visible when listening to mp3 files on something like a core2duo (or older) machine. Audio buffer underruns galore, just because you had a big git checkout or rsync running.
It took me years to convince upstream to revert the responsible dmcrypt workqueue commit and fix this.
[1]: https://blog.cloudflare.com/speeding-up-linux-disk-encryptio...
AFAIK, this was also due to the disk IO scheduler used in Linux.
Back in the late 00's, audio or video playback would skip on Ubuntu if you had a torrent download on the same HDD, an issue not present under Windows or MacOS.
AFAIK, desktop Linux distros now have different schedulers to mitigate this issue, but back then, that made it impossible for me to use it.
Then someone at Google landed a change prioritizing dmcrypt throughput for their use case, and many on desktop linux using dmcrypt suffered for years because of it.