logoalt Hacker News

man8alexd • yesterday at 9:05 PM • 1 reply • view on HN

All code pages in the active file LRU are excluded from the reclaim.


Replies

delamon • today at 5:49 AM

All recently referenced code pages in the active LRU are excluded from reclaim.

Code pages are paged in on demand: for any sufficiently large binary just some code pages will be mapped right after start. Given enough memory pressure, the active LRU will be shrunk often enough to push code pages out of the active LRU and then they are eventually evicted.

I'm not aware how it works in modern MGLRU, but I would assume similar ovservable behevior holds.

➕ show 1 reply