Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (11) AWS (5) numerology (5)

Friday, May 6, 2022

How to calculate Memory utilization on Linux server

 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

1 comment: