logoalt Hacker News

man8alexd • yesterday at 3:16 PM • 2 replies • view on HN

You are missing that the file LRU is not only the code pages or memory mapped files but all file data. The active code pages are specifically excluded from being discarded during the reclaim process.


Replies

delamon • yesterday at 9:00 PM

Perhaps I wasn't clear, but I did say that all file pages are treated equally. I would assume that page with PC is excluded from reclamation process, but other code pages are valid targets.

➕ show 1 reply
FooBarWidget • yesterday at 7:02 PM

I wish this is true but evidence is against you. Just try testing memory pressure on a no swap system. You will see that the system grinds to a half for a few minutes before you even get to an OOM event.

➕ show 1 reply