Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
serbuvlad
· 2mo ago · 0 comments
Sure, but I meant more in the sense of asking about the current status of the page.
Comments
[–]
masklinn
2mo ago
It’s the mincore which debugnik mentioned. And there’s madvise(MADV_WILLNEED) which triggers an asynchronous prefetch.
[–]
delamon
1mo ago
I was biten by not understanding madvise(MADV_WILLNEED) semantics fully. It will prefetch, but it will not pre-fault. You still gonna pay minor page fault on every new page access. There is MADV_POPULATE_READ, but it is synchronous.
[–]
loeg
1mo ago
You can ask about the status (mincore), but it's an inherently racy operation.