Swap
Swap
Posted May 28, 2021 16:28 UTC (Fri) by corbet (editor, #1)In reply to: Top-tier memory management by NHO
Parent article: Top-tier memory management
Swap is not directly addressible, though, so it doesn't really qualify as a "tier" in the sense being discussed here.
Posted May 28, 2021 16:35 UTC (Fri)
by kay (guest, #1362)
[Link]
I remember computers using magnetic tape as memory ;-), so you can see it as veeery slow to access memory ;-)
Posted May 28, 2021 17:35 UTC (Fri)
by calumapplepie (guest, #143655)
[Link] (3 responses)
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]
Swap
Swap
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
