Lower number of threads.

This commit is contained in:
Nikolai Kochetov 2020-01-02 10:48:51 +03:00
parent 85e1c88d12
commit 213f84580f

View File

@ -216,6 +216,10 @@ void SettingMaxThreads::setAuto()
UInt64 SettingMaxThreads::getAutoValue() const UInt64 SettingMaxThreads::getAutoValue() const
{ {
static auto res = getNumberOfPhysicalCPUCores(); static auto res = getNumberOfPhysicalCPUCores();
if (res > 32)
res /= 2;
return res; return res;
} }