4 ms·
Scratching the surface: perf stat and Hyper-Threading
- bostonsre 5y agoYou could look at cpu cache statistics with and without it enabled. Memory access can definitely be a bottleneck. But I guess it wouldn't make too much sense in this example (maybe?). But if it is stalled on memory access, maybe disabling hyper threading gives you more cpu registers and/or cache space. Think Brendan Gregg's blog has some pertinent info about this topic.
- krona 5y agoIf the question is how do I get more reliable benchmarking results in the presence of Hyper-Threading, then the answer (on linux at least) might be to use cpusets. https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/cpusets.html https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1...