crazy idea: what if swap, in particular zram (RAM compression), was enhanced with eBPF bytecode invoked during page reclaim? for pages with a single (RW) mapping, you could e.g. ask userspace which subsets of the page must be preserved (if the heap metadata isn't swapped out)
-
-
and then you could have a sorted linked list of preferred victim pages in userspace, which always only contains pages that are actually dirty+present and are therefore valid candidates for reclaim
Show this threadThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.