Re: [PATCH 05/14] vrange: Add new vrange(2) system call

H. Peter Anvin
2013-10-07T23:47:14Z

On 10/07/2013 04:41 PM, John Stultz wrote:
>
> You mark a chunk of memory as volatile, then at some point later, mark
> its as non-volatile. The purge state tells you if the memory is still
> there, or if we threw it out due to memory pressure. This lets the
> application regnerate the purged data before continuing on.
>

And wouldn't this apply to MADV_DONTNEED just as well? Perhaps what we
should do is an enhanced madvise() call?

-hpa