finch icon indicating copy to clipboard operation
finch copied to clipboard

`finch stats` on a container without a memory limit reports 16 exbibytes

Open ollypom opened this issue 2 years ago • 2 comments

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.

ollypom avatar Nov 23 '22 16:11 ollypom

Reproduced it in nerdctl and opened an issue in nerdctl.

ningziwen avatar Dec 02 '22 00:12 ningziwen