this post was submitted on 17 Sep 2025
27 points (100.0% liked)
Linux
9642 readers
481 users here now
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yes, configuring memory to be used for zram would mark it as unavailable for kernel fs caching.
Does iostat show your disks being pegged when it's slow? Odd that performance would be so bad on those specs, makes me think you have disk Io issues maybe.
I definitely have disk io issues. I really wish I had an SSD or two.
If you are on HDD then looking at what else is using the same disk, and reducing that usage, may yield some results. Forexample, if /var/log is on the same disk and can't be avoided, then reducing log volume or batching writes may reduce the "context switches" your HDD has to do. There should be options for I/O limits/throttling/priority in systemd. If you have only postgres on the HDD, I'd consider giving it 90% of the max bandwidth -- maybe that'd be more effective than going full throttle and hitting the wall. If you have postgres and some other service fighting for the HDD's time, these limits could help. Make sure access time tracking is off (or set to relatime).