Allow selection of IEC/JEDEC/non-SI units in podman stats
memory output
#8945
Labels
Good First Issue
This issue would be a good issue for a first time contributor to undertake.
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
The output of
podman stats
was updated to use "human-readable" SI units (KB/MB/GB) when displaying output. This makes sense in the case of storage where SI units are the default (... arguably for marketing reasons in this case, but then GbE is nominally 1,000,000,000bps rather than 1,073,741,824bps).However, when it comes to memory sizes, this is not particularly helpful - especially when the display then doesn't match up with the interpretation of units used by the parameters of the various
--memory*
options.For example, if I use
--memory 8g
thenpodman stats
shows aMEM USAGE / LIMIT
output of8.59GB
... which isn't wrong, but doesn't aid the human-readability of the output compared to simply reading8GiB
!The best non-breaking way to fix this might be to add additional format options - there's already a
.MemUsage
template placeholder - could.MemUsageBin
/.MemUsageIEC
/.MemUsageJEDEC
be added to select binary measurements?Output of
podman version
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: