News for hackers. Stuff that matters.
Re:A 40ms Go garbage collector pause caused by swap by masklinn on Monday October 05, 2026 @08:54AM (#49964220)
It’s the mincore which debugnik mentioned. And there’s madvise(MADV_WILLNEED) which triggers an asynchronous prefetch.
Re:A 40ms Go garbage collector pause caused by swap by delamon on Monday October 05, 2026 @11:59AM (#49966607)
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.