Re:New Mac OS X Lion features announced: Version Control, In...
by ryannielsen on Friday February 25, 2011 @03:45AM
(#2261557)
Actually, I disagree. What I describe is more like RAM buffered IO, where the space can be reclaimed at no cost, rather than swap, where the data must be saved for coherency.
It's entirely viable for a filesystem to archive all of the data you've ever created. Treat the archived files as an LRU cache and, when new data needs to be saved, just write over the least recently used data. Instead of a volume bitmap of used blocks, you have a tree that can be traversed to get the blocks that can be overwritten. This is not data that must be saved, like the swap; it's data that should be saved until something else needs it, at which point it's overwritten, like most OS's RAM IO buffers.
Your computer already kind of does what you describe: That's what virtual memory paging is. And when your system starts paging a lot, it's noticeably slower. And when your computer starts paging with a nearly full disk, it is an out-and-out dog.