4 ms·
Linux 5.15 Adds New Syscall to More Quickly Free Memory of Dying Processes
- phendrenad2 5y agoI like how the jargon "memory pressure" has taken over where we once used the logical term "low memory". Computing becoming less accessible before our very eyes!
- throwawaylinux 5y agoIt's "jargon" related to memory management development that describes a different condition. You can run just fine with very low memory if there is no memory pressure. No allocation demand means no requirement to perform costly reclaiming operations.
- phendrenad2 5y agoIt's worse than jargon because there seems to be no clear definition. It seems to be loosely defined as "how much swap space you're using" by some people, at least.
- throwawaylinux 5y agoIt's not defined that way by people who use it in kernel development. It has at least as clear a definition as "low memory" and refers to something different, as I said.
- marcodiego 5y agoWhy not simply more quickly free memory of every dying process?
- inshadows 5y agoThere are more details in https://lwn.net/Articles/864184/ https://lwn.net/Articles/864184/. I already forgot why it's necessary, but I know the article explains it.
- marcodiego 5y agoFor the record: "The killed process is, itself, responsible for cleaning up and freeing its resources, a task that is carried out in kernel context. If, however, the killed process finds itself blocked in an uninterruptible sleep, that cleanup work could be delayed indefinitely. There are other factors that can slow down the freeing of memory, including how busy the relevant CPU is and whether that CPU is running in a slow, low-power state."