-
Notifications
You must be signed in to change notification settings - Fork 609
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
nerdctl stats on a container without a memory limit reports exbibyte level memory limits #1589
Comments
In docker, when memory limit is not set, the daemon (maintains and) returns the total memory of the machine (by reading
Seems containerd only set the limit when it's set by a user. If we want the sam behavior, should we follow the same pattern and let containerd matains and returns the system memory as limit, or |
This should be fixed on the API side (containerd) to keep considtency with other consumer (e.g ctr..). Here we are just consuming metrics returned by API |
/assign |
The line to change in cgroup v2: https://github.com/containerd/cgroups/blob/fc3b020f386da06f1facfddef993420644875926/cgroup2/utils.go#L253 |
Do we want the same behavior? How about showing |
The output should be same as Docker unless there is a specific reason |
Decision discussion in cgroup draft PR. containerd/cgroups#265 (comment) |
This was resolved recently |
Description
When running nerdctl stats without a memory limit on a container, nerdctl is reporting the limit as exbibyte level.
There is one issue related to this in finch repo.
I successfully reproduced this with nerdctl in ubuntu by building from source.
My ubuntu host has 8GB memory.
Steps to reproduce the issue
Describe the results you received and expected
In my 8GB memory ubuntu host,
Received:
Expected:
What version of nerdctl are you using?
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
The text was updated successfully, but these errors were encountered: