Dynamic allocation
Dynamic allocation
Posted Feb 3, 2026 14:12 UTC (Tue) by MKesper (subscriber, #38539)Parent article: Modernizing swapping: introducing the swap table
The new table array, which is designed to occupy exactly one page on most architectures, is allocated dynamically, reducing the swap subsystem's memory use when the swap files are not full.
Could there be a situation where the array needs to be resized and there's no place left in RAM for that?
The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:
Note: you can avoid this step in the future by logging into your LWN account.
