Re:Low Latency Optimization: Understanding Pages (Part 1)
by deadcanard on Tuesday November 29, 2022 @10:02AM
(#33788407)
Wrt code, look at the bench in the article. Even with sequential access, you can get a decent speedup using huge pages. But unless you have a good profile and using PGO, it'll likely not be that sequential for code.
Like everything else you'll need to measure it to know exactly what benefit you might get. As a starting point, you can start at looking at the itlb load misses with perf stat -d
Stack access is another story as it's usually local and sequential so it might not be that useful.
Stack access is another story as it's usually local and sequential so it might not be that useful.