Hello Vlastimil,
On 4 February 2015 at 14:46, Vlastimil Babka <vbabka@xxxxxxx> wrote:
- that covers mlocking ok, not sure if the rest fits the "shared pages"
case
though. I dont see any check for other kinds of shared pages in the code.
Agreed. "shared" here seems confused. I've removed it. And I've
added mention of "Huge TLB pages" for this error.
Thanks.
I also added those cases for MADV_REMOVE, BTW.
- The word "will result" did sound as a guarantee at least to me. So
here it
could be changed to "may result (unless the advice is ignored)"?
It's too late to fix documentation. Applications already depends on the
beheviour.
Right, so as long as they check for EINVAL, it should be safe. It appears
that
jemalloc does.
So, first a brief question: in the cases where the call does not error
out,
are we agreed that in the current implementation, MADV_DONTNEED will
always result in zero-filled pages when the region is faulted back in
(when we consider pages that are not backed by a file)?
I'd agree at this point.
Thanks for the confirmation.
Also we should probably mention anonymously shared pages (shmem). I think
they behave the same as file here.
You mean tmpfs here, right? (I don't keep all of the synonyms straight.)