How to calculate Memory utilization on Linux Server:
[root@prddb1 root]# free -m
total used free shared buff/cache available
Mem: 6190278 981277 2684757 29303 2524243 5073648
Swap: 16383 596 15787
[root@prddb1 root]#
Here the values are in MB,
Total Memory = 6190278
Free Memory or Available Memory = 5073648
So the memory utilization will be calculated using below way:
Memory Utilization = [(Total Memory - Available Memory )/Total Memory] *100
i.e
Memory utilization = [ 6190278 - 5073648)/6190278 ]*100 = 0.1804*100 = 18%
This means the current or real time total memory utilization is 18%
Regards,
Kiran B Jaadhav
I loved the blog content, please keep posting it. Lucky Mobile Number Calculator | Sanjivv Gandhi
ReplyDelete