What's the status of the MADV_USERFAULT flag in madvise()?
Asked Answered
I

1

3

There have been some discussions to use a new flag in madvise() to tell the kernel not to handle page faults in certain memory ranges: lwn.net-1, lwn.net-2

As far as I am able to see, this flag hasn't found its way to the kernel source.

What's the current status of this work?

Infralapsarian answered 18/5, 2016 at 5:5 Comment(2)
Don't know exactly, but see this answer to a perhaps related questionMaag
Thanks for the pointer (even though it does not fully answer the question). I think I will try running this patch and see how it goes.Infralapsarian
T
6

The community never went forward with MADV_USERFAULT. Instead, a more robust solution called userfaultfd has made its way into the kernel. https://www.kernel.org/doc/Documentation/vm/userfaultfd.txt

Twaddle answered 9/6, 2016 at 23:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.