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

finch stats on a container without a memory limit reports 16 exbibytes #45

Open
ollypom opened this issue Nov 23, 2022 · 2 comments · Fixed by containerd/nerdctl#3369
Open
Assignees
Labels
bug Something isn't working

Comments

@ollypom
Copy link
Contributor

ollypom commented Nov 23, 2022

Describe the bug
When running finch stats without a memory limit on a container, finch is reporting the limit as 16 EiB (exbibytes). I'm unsure where this number has come from, my mac is 32GB of memory but the finch VM is set to 4GiB of memory.

Steps to reproduce

finch run --detach ubuntu sleep 120
07e265b0e4b95c82f04c82ed2b3fcc2d19d9354a37c33b5137a10e680a89bbbb

finch run --detach --memory 1g ubuntu sleep 120
42a0e423323b5bb6ee2a928e5a93554bfad1bd51ac75f40e0390aa225b22ded5

finch stats
CONTAINER ID   NAME           CPU %     MEM USAGE / LIMIT   MEM %     NET I/O         BLOCK I/O   PIDS
07e265b0e4b9   ubuntu-07e26   0.00%     364KiB / 16EiB      0.00%     1.16kB / 682B   0B / 0B     1
42a0e423323b   ubuntu-42a0e   0.00%     364KiB / 1GiB       0.03%     1.87kB / 752B   0B / 0B     1

Expected behavior
finch stats should be showing the memory limit of an unrestricted container as the memory limit of the VM.

@ningziwen
Copy link
Member

Reproduced it in nerdctl and opened an issue in nerdctl.

@AkihiroSuda
Copy link

16 EiB (exbibytes). I'm unsure where this number has come from

2**64 =16E (theoretical maximum memory limit on 64-bit computers)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants