diff options
author | skorodumov-s <skorodumov-s@yandex-team.com> | 2022-11-02 00:17:00 +0300 |
---|---|---|
committer | skorodumov-s <skorodumov-s@yandex-team.com> | 2022-11-02 00:17:00 +0300 |
commit | 3740591e5cdb20c22146649b06f1561c855ca9e9 (patch) | |
tree | b00accd0082ea3b6a75730403410815a8e31644a | |
parent | 142474395b5618d8074e23c11321eeb8b575bade (diff) | |
download | ydb-3740591e5cdb20c22146649b06f1561c855ca9e9.tar.gz |
Add comment about necessary nanny settings
-rw-r--r-- | util/system/info.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/system/info.cpp b/util/system/info.cpp index cf6681e89a..5cd5f0d815 100644 --- a/util/system/info.cpp +++ b/util/system/info.cpp @@ -41,6 +41,11 @@ static int getloadavg(double* loadavg, int nelem) { #include <util/generic/yexception.h> #if defined(_linux_) +/* +This function olny works properly if you apply correct setting to your nanny/deploy project + +In nanny - Runtime -> Instance spec -> Advanced settings -> Cgroupfs settings: Mount mode = Read only +*/ static inline size_t CgroupCpus() { try { auto q = FromString<ssize_t>(StripString(TFileInput("/sys/fs/cgroup/cpu/cpu.cfs_quota_us").ReadAll())); |