ydb-platform / nbs

Network Block & File Store
Apache License 2.0
54 stars 21 forks source link

[NBS] Use kernel.task_delayacct to calculate CpuWait #1444

Open tpashkin opened 3 months ago

tpashkin commented 3 months ago

Currently we use cpuacct.wait counter provided by RTC patch to calculate CpuWait metric. Alternatively we could use standard kernel.task_delayacct described in https://www.kernel.org/doc/Documentation/accounting/delay-accounting.rst

Example from ClickHouse: https://github.com/ClickHouse/ClickHouse/blob/22f60954841f75d1a8cc96bce7b30ec77c72d5da/src/Common/ThreadProfileEvents.cpp#L157