Dynamic allocation
Dynamic allocation
Posted Feb 3, 2026 23:24 UTC (Tue) by iabervon (subscriber, #722)In reply to: Dynamic allocation by MKesper
Parent article: Modernizing swapping: introducing the swap table
The kernel generally needs some memory available in order to tell a storage device to write something (even if the something to write is already in place and it's just writing out a dirty file-backed page in cache so that it can free it), so it's got memory reserved for that sort of thing. Presumably, resizing the array gets access to this reserved memory as well, so that it can expand some and swap out more than that so that the memory reservation is restored.
