Compressed swap
Compressed swap
Posted Mar 28, 2014 22:31 UTC (Fri) by nybble41 (subscriber, #55106)In reply to: Compressed swap by gfa
Parent article: Compressed swap
> you wouldn't be able to mix zswap and regular swap on the same system
Why is that? What I had in mind seemed fairly simple to integrate, though I'm not a Linux kernel developer and may be missing something. The idea was that when frontswap hands a page to zswap and there isn't enough room for it in zswap's RAM, zswap picks one of its less-recently-used compressed pages and hands it off to the normal swap code, storing whatever token it gets back to identify the page for later retrieval. That frees up the page to store the new compressed data. Later, if and when frontswap asks for one of the old pages' data back, zswap can request the compressed page back from the normal swap subsystem and handle the request as it normally would.