Dynamic allocation
Dynamic allocation
Posted Feb 3, 2026 14:21 UTC (Tue) by daroc (editor, #160859)In reply to: Dynamic allocation by MKesper
Parent article: Modernizing swapping: introducing the swap table
I had that same thought while reviewing the article! Jon's take was that if the system has already ended up in a state where it can't free even a single page of memory in order to make several more available, the situation is already probably pretty dire.
In practice, if the system has swap configured, it's going to want to swap out some pages of memory before it tries unloading file-backed pages that are currently in use; therefore, if this mechanism does need another page urgently, it can bump a file-backed page, finish swapping out the anonymous pages, and then let the file-backed page get faulted back in.
