On Wed, Mar 1, 2023 at 2:45 AM Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx> wrote: > > On (23/02/28 00:12), Yosry Ahmed wrote: > > > > I assume by proper LRU handling you mean: > > - Swap writeback LRU that lives outside of the zpool backends (i.e in > > zswap itself or even outside zswap). > > - Fix the case where we temporarily skip zswap and write directly to > > the backing swapfile while zswap is full, until it performs some > > writeback in the background. > > > > This work is orthogonal to that, but it is on the list of things that > > we would like to do for zswap. > > Oh, sorry for the noise then. I somehow thought that one leads to > another in some way, probably got that impression from offline > discussions. > > > I guess you are mainly eager to move the writeback logic outside of > > zsmalloc, or is there a different motivation? :) > > Not eager, but we've been promised that! :) It still stands as the end goal for swap writeback LRUs :) As Minchan said, the abstraction layer helps with a generic writeback LRU outside of zswap.