mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Merge pull request #41217 from ClickHouse/kvm-clock
Do not warn about kvm-clock
This commit is contained in:
commit
b57332f9ac
@ -551,8 +551,9 @@ static void sanityChecks(Server & server)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
const char * filename = "/sys/devices/system/clocksource/clocksource0/current_clocksource";
|
const char * filename = "/sys/devices/system/clocksource/clocksource0/current_clocksource";
|
||||||
if (readString(filename).find("tsc") == std::string::npos)
|
String clocksource = readString(filename);
|
||||||
server.context()->addWarningMessage("Linux is not using a fast TSC clock source. Performance can be degraded. Check " + String(filename));
|
if (clocksource.find("tsc") == std::string::npos && clocksource.find("kvm-clock") == std::string::npos)
|
||||||
|
server.context()->addWarningMessage("Linux is not using a fast clock source. Performance can be degraded. Check " + String(filename));
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user