virtual memory quarantine #261

Open
thestinger opened this Issue May 14, 2016 · 0 comments

Comments

Projects
None yet
1 participant
@thestinger
Contributor

thestinger commented May 14, 2016

Either in the kernel or as a layer in libc. This would likely only be practical on 64-bit.

Instead of unmapping, drop the pages (MADV_DONTNEED), set the memory protection to PROT_NONE and hold on to it in a quarantine. There can be a limit on the number of page spans along with a limit on the total quarantined virtual memory. It would make sense to bypass the quarantine for extremely large spans rather than dropping most of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment