This commit is contained in:
Jiebin Sun 2024-09-18 23:54:30 +03:00 committed by GitHub
commit b55982b216
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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. /// 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. /// 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(); cores = physical_concurrency();
#endif #endif