mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: fix coder stat mem (#8762)
- For cgroups v1 the wrong cgroup file was being read to determine max memory. This commit updates the file from '/sys/fs/cgroup/memory/memory.max_usage_in_bytes' to '/sys/fs/cgroup/memory/memory.limit_in_bytes'
This commit is contained in:
@@ -22,7 +22,7 @@ const (
|
||||
// CFS period for cgroup in MICROseconds
|
||||
cgroupV1CFSPeriodUs = "/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_period_us"
|
||||
// Maximum memory usable by cgroup in bytes
|
||||
cgroupV1MemoryMaxUsageBytes = "/sys/fs/cgroup/memory/memory.max_usage_in_bytes"
|
||||
cgroupV1MemoryMaxUsageBytes = "/sys/fs/cgroup/memory/memory.limit_in_bytes"
|
||||
// Current memory usage of cgroup in bytes
|
||||
cgroupV1MemoryUsageBytes = "/sys/fs/cgroup/memory/memory.usage_in_bytes"
|
||||
// Other memory stats - we are interested in total_inactive_file
|
||||
|
||||
Reference in New Issue
Block a user