-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix resource detection for unset CPU and memory limits in cgroup v2 (#…
…5267) * Fix resource detection for unset CPU and memory limits in cgroup v2 Address the issue where `/sys/fs/cgroup/cpu.max` and `/sys/fs/cgroup/memory.max` report "max", indicating unset limits in cgroup v2. Now, system resources (CPU cores and memory) are fetched directly from `/proc/stat` and `/proc/meminfo` limits are not set.. * Small improvements * Build fixes * Fixes to LinuxUtilizationParserCgroupV2.cs --------- Co-authored-by: Martin Obrátil <[email protected]> Co-authored-by: Martin Obrátil <[email protected]>
- Loading branch information
1 parent
0d82461
commit 6a3cb23
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters