2 ms·
The linux kernel’s handling of IO under memory pressure is abysmal. I have to tune dirty ratios and write back ages and swap and whatnot just to get the system
by baq 1y ago
The linux kernel’s handling of IO under memory pressure is abysmal. I have to tune dirty ratios and write back ages and swap and whatnot just to get the system to not hard lock when running multiple node microservices in stages which run fine, just slower, when starting them all at once on a MacBook.
Disclaimer: I don’t even like macOS.
- hackernudes 1y agoI've had similar problems but no amount of tweaking vm and vfs cache settings helped. Swap or not, both 32gb and 128gb of ram. Manually reclaiming memory would un-lock the system (/sys/fs/cgroup/memory.reclaim). I wrote a user space memory reclaimer and have not got a lockup since. https://gist.github.com/EBADBEEF/f168458028f684a91148f4d3e791ba84 https://gist.github.com/EBADBEEF/f168458028f684a91148f4d3e79...
- deleted 1y ago[deleted]
- baq 1y agoI don't know how to give more visibility to this hack, but it deserves it. Bookmarking and deploying on my boxen.