4 ms·
Memory reclaim is where all the kernel bugs are.
by jeffbee 5y ago
Memory reclaim is where all the kernel bugs are.
- amelius 5y agoIs this an argument for using Rust?
- mhh__ 5y agoNo amount of avoiding memory safety bugs will save you from writing fundamentally incorrect code. Rust stops you making dumb mistakes, and (as a high-level language, this part isn't Unique to rust in any way) lets you create abstractions to stop other people making less dumb mistakes, but will do absolutely nothing if your model of the process is wrong. The only way to really be sure of that is extensive testing at multiple levels, and ideally some form of verification like a TLA+ model.
- marcan_42 5y agoNo. Memory reclaim != memory leaks != memory safety. This is about filesystem caches.
- bbarnett 5y agoFor the love of 3$&$>=*=$, not rust again!
- marcan_42 5y agoReminds me of how, after years of massive systemwide latency spikes, I finally discovered that XFS was to blame. It was blocking on I/O writes in the reclaim path... so even random processes that wanted to allocate some RAM but don't do any disk I/O ended up blocked. This was on a machine with tons of free RAM (the reclaim was for clean cache).