Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix coder stat mem #8762

Merged
merged 1 commit into from
Jul 27, 2023
Merged

fix: fix coder stat mem #8762

merged 1 commit into from
Jul 27, 2023

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Jul 27, 2023

  • 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'

image

fixes #8592

- 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'
@sreya sreya marked this pull request as ready for review July 27, 2023 04:52
@sreya sreya requested a review from johnstcn July 27, 2023 04:52
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦

@johnstcn johnstcn merged commit c3aface into main Jul 27, 2023
24 checks passed
@johnstcn johnstcn deleted the jon/fixmem branch July 27, 2023 08:33
@github-actions github-actions bot locked and limited conversation to collaborators Jul 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

coder stat mem showing incorrect data
2 participants