We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e276b commit 5b61f0cCopy full SHA for 5b61f0c
ydb/core/memory_controller/memory_controller_config.h
@@ -53,12 +53,15 @@ inline ui64 GetHardLimitBytes(const NKikimrConfig::TMemoryControllerConfig& conf
53
if (info.CGroupLimit.has_value()) {
54
hardLimitBytes = Min(hardLimitBytes, info.CGroupLimit.value());
55
}
56
+ if (info.MemTotal.has_value()) {
57
+ hardLimitBytes = Min(hardLimitBytes, info.MemTotal.value());
58
+ }
59
return hardLimitBytes;
60
61
62
return info.CGroupLimit.value();
63
- if (info.MemTotal) {
64
65
hasMemTotalHardLimit = true;
66
return info.MemTotal.value();
67
0 commit comments