mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge ea190fa699
into b94a7167a8
This commit is contained in:
commit
b55982b216
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user