Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
masklinn
· 1mo ago · 0 comments
It’s the mincore which debugnik mentioned. And there’s madvise(MADV_WILLNEED) which triggers an asynchronous prefetch.
Comments
[–]
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.