2 ms·
> Swap is a storage area for these seemingly "unreclaimable" [anonymous] pages that allows us to page them out to a storage device on demand. This means that th
by albertzeyer 5y ago
> Swap is a storage area for these seemingly "unreclaimable" [anonymous] pages that allows us to page them out to a storage device on demand. This means that they can now be considered as equally eligible for reclaim as their more trivially reclaimable friends, like clean file pages, allowing more efficient use of available physical memory.
I don't see that argument. Why should anonymous pages be treated equally?
And executable pages / program text, maybe those also never should be swapped out? Is this configurable? This is usually more the behavior I would want on my system. I want that the OOM killer just kills sth directly.
I remember that Google also has some custom handling for OOM on Linux. Although I don't find much information now on it, except: https://lwn.net/Articles/432223/ https://lwn.net/Articles/432223/
- roelschroeven 5y ago> And executable pages / program text, maybe those also never should be swapped out? Is this configurable? This is usually more the behavior I would want on my system. Aren't they? It's always been my believe that when such pages are reclaimed, they are not swapped out because they can be read back from disk anyway. Don't these pages fall under what the author means by "clean file pages"?