-
Notifications
You must be signed in to change notification settings - Fork 887
coder stat returns wrong memory units #10952
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
Comments
Assigning myself because I'm interested in learning the cli code for this, but if anyone feel compelled to take this on before I get to it go for it. |
Correct, this is likely a problem in |
Some learnings - this result is a magic number: https://unix.stackexchange.com/questions/420906/what-is-the-value-for-the-cgroups-limit-in-bytes-if-the-memory-is-not-restricte
This happens when the memory limit is not set on the container. We should just detect this magic number and behave accordingly. |
Noticed on the dashboard that it says I have

0.197/8589934592 GiB (0%)
and this is obviously incorrect. Looks like just a unit output issue.This is from running
scripts/develop.sh
on dogfood.I thought this may be frontend, but looked at the metadata stream and see the backend is incorrect, so I assume this is coming from
coder stat mem
.Here's the message from the backend:
The text was updated successfully, but these errors were encountered: