Increase the threshold of smt/none_smt to improve the performance

Current threshold of smt/none_smt is 32. I have tuned the performance
with Clickbench on 80x2 vCPUs system. If the total vCPUs is larger than
80, the performance would be better without smt.

Signed-off-by: Jiebin Sun <jiebin.sun@intel.com>
This commit is contained in:
Jiebin Sun 2024-09-13 01:48:34 +08:00
parent 285f99f719
commit ea190fa699

View File

@ -176,7 +176,7 @@ unsigned getNumberOfPhysicalCPUCoresImpl()
///
/// On really big machines, SMT is detrimental to performance (+ ~5% overhead in ClickBench). On such machines, we limit ourself to the physical cores.
/// Few cores indicate it is a small machine, runs in a VM or is a limited cloud instance --> it is reasonable to use all the cores.
if (cores >= 32)
if (cores >= 64)
cores = physical_concurrency();
#endif