Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Linux being absolute dogshit if it’s under any sort of memory pressure is the reason, not swap or no swap. Modern systems would be much better off tweaking dirty bytes/ratios, but fundamentally the kernel needs to be dragged into the XXI century sometime.


It's kind of solved since kernel 6.1 with MGLRU, see above.

Dirty buffer should also be tuned (limited), absolutely. Default is 20% of RAM, (with 5 second writeback and 30 second expire intervals), which is COMPLETELY insane. I limit it to 64 MB max usually, with 1 second writeback and 3 second expire intervals.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: