Confusing the memory measurement units Gi and G
When I was trying ktop I noticed that the amount of memory in the node looked larger than it actually was. You can see that most of the nodes have a total of 9Gi of memory when in reality they only have 7906356Ki (about 7.54 GiB). According to the discussion on stackoverflow, Ki, Gi are both powers of 2.
I found the following code in ktop, which uses the ScaledValue function, which uses powers of 10 in that function, i.e. G, M, K.
https://github.com/vladimirvivien/ktop/blob/9ade4f20ee7a48f3c8ad871fb9db5a02519b65f5/views/overview/node_panel.go#L206-L207
- ktop Version: v0.3.7
- k8s Version: v1.21.14
@vincent-vinf thanks for pointing this out. Will mark this as a bug so we can keep track.
The latest pushes should have fixed this. Thanks.