> > Tested: > > Time to `mlock()` a 512GiB region on broadwell CPU > > AVG time (s) % imp. ms/page > > clear_page_erms 133.584 - 261 > > clear_page_nt 34.154 74.43% 67 > > Some macrobenchmark would be great too. Yes especially something that actually uses the memory. I suspect you'll need something like the below > That patchset is somewhat more complex trying to keep the memory around > the fault address hot in cache. In theory it should help to reduce latency > on the first access to the memory. -Andi