Re:Memory Deduplication: The Curse that Keeps on Giving [video]
by DannyBee on Sunday January 08, 2017 @01:54PM
(#13351261)
Sure, you'd need hardware support. But, for example, hardware dedup is infeasible (IE you can make the compression go in hardware, but the management, not so much or sanely. Unless you can make both constant time, ...).
Sparse pages are at least feasible in hardware.
Also, you realize that passing all memory reads through the kernel is what any read barrier garbage collected language does, right?
Without hardware support, the only idea I can think of is to mark the page unreadable and pass all memory reads through the kernel. Which would be readily detectable... among other problems.