Memory stats in GUI not using consistent units

brwainer

Active Member
Jun 20, 2017
35
4
28
31
This post is to report/complain about/request a fix for the inconsistent units used by the memory stats in the GUI.
Cluster Summary: GiB (base 2 / 1024)
Node or VM Summary bar (in the first section with the hostname): GiB (base 2 / 1024)
Node or VM Summary Memory usage graph: GB (base 10 / 1000)

For example, I have a node with 62.7GiB of RAM showing in the top section, whereas on the Memory usage graph it shows as 67.33. 62.7*1024*1024*1024/1000/1000/1000 = 67.32, so this is clearly due to the difference in units/conversion used. This affects both the "used" memory as well as the Total.

Considering that GiB (Mib, KiB, etc) is what is reported generally, e.g. by "free -hm", and is also the units used when allocating memory to a VM, it makes sense that the Memory usage graph should also use these units.
 
i would also like to have 'GiB' on the graphs, sadly with the charts framework of extjs this is not so easy

if we would try to do this, the label on the left side would have the segmented lines on strange places, eg.
instead of having a line at 1,2,3,4 GB you would have one with 953,67 MiB, 1,86 GiB, 2,79 GiB and 3,73 GiB
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!