I need to display in GUI for operator used memory vs available on Linux Server
So what would be logically correct value to display as usage?
[root@host ~]# free
total used free shared buff/cache available
Mem: 131753676 110324960 1433296 4182648 19995420 16240640
Swap: 2097148 652076 1445072
used or (total-available)?
Difference is: 110324960 vs 115513036 or 5188076 kb ~= ~5 GB So what are with these 5 GB are they effectively used or available or unavailable and nor used? What is more correct to display for used in memory usage %?
This is for CentOS 7.3 PC, running 2 java services
But there is totally different picture on PostgreSQL Server
[root@postgres_server1 ~]# free
total used free shared buff/cache available
Mem: 131753684 7364056 77736740 15598120 46652888 107942020
Swap: 2097148 0 2097148
where difference between used and (total-available) is much larger: 16447608 kb ~=15.7 GB