extensions
extensions copied to clipboard
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.
Changes Made:
- When
/sys/fs/cgroup/cpu.maxreads "max", the number of CPU cores is now derived from the host's/proc/statfile. - Similarly, available memory is determined from the host's
/proc/meminfofile if/sys/fs/cgroup/memory.maxcontains "max".