To operate optimally as a cache, zswap should hold the most recently used pages.
Actually, to operate optimally, it should hold the soonest reused pages. Looking for the most recently used pages is just one cheap way to approximate that. As we know from decades of research, there's usually a high correlation between the two properties, but there are notable cases where they are anti-correlated.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds