Swap
Swap
Posted May 28, 2021 17:35 UTC (Fri) by calumapplepie (guest, #143655)In reply to: Swap by corbet
Parent article: Top-tier memory management
Obviously, since swap can't be mapped for direct access by processes, it'd never be quite like the others. But duplicating the code for "move between fast and slow storage" seems like a worse call. Obviously swap needs a fair amount of unique logic: but so would many other different tiers. Further, generalizing a single system to allow for arbitrary tiers that can be as different as DRAM and spinning rust swapfiles would mean that the next weird memory system that is dreamed up by the hardware designers can be added without much effort.
Posted May 28, 2021 17:51 UTC (Fri)
by corbet (editor, #1)
[Link] (2 responses)
Posted May 28, 2021 18:41 UTC (Fri)
by faramir (subscriber, #2327)
[Link] (1 responses)
Posted May 28, 2021 22:31 UTC (Fri)
by MattBBaker (guest, #28651)
[Link]
In a sense what you're asking for already exists, it's called "virtual memory". In that sense it is directly addressible and the kernel will automatically move data in and out.
Swap
Swap
Swap
