or maybe even suggest a victim page to the kernel, although that'd probably get messy
-
-
Show 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
Show 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
Show this thread
End of conversation
New conversation -
-
-
couldn't you express most of this with madvise(..., MADV_WILLNEED) already?
-
AFAIK madvise() doesn't let you do things like ensure that if the OS compresses a page, it skips free heap chunks. and I think the only thing MADV_WILLNEED does is to swap in pages that are not currently swapped in? I don't think it modifies any LRU state? https://elixir.bootlin.com/linux/latest/source/mm/madvise.c#L272 …
- 2 more replies
New conversation -
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.