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)
-
Show this thread
-
or maybe even suggest a victim page to the kernel, although that'd probably get messy
1 reply 0 retweets 1 likeShow this thread -
heck, if you had a way to redirect attempts to swap heap metadata to non-metadata pages, you could ensure that the metadata almost always stays swapped in, and then you could store page swapping state in the userspace heap metadata from eBPF
1 reply 0 retweets 2 likesShow this thread
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
6:06 PM - 5 Aug 2018
0 replies
0 retweets
2 likes
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.