Total Memory Utilization Calculation:
Linux Monitoring: Telnet/SSH
For memory usage calculation using 'free -m' command.
Sample command output:
root@root:~$ free -m
total used free shared buff/cache available
Mem: 15726 6817 2367 1465 6541 7108
Swap: 30719 0 30719
Used Percentage Calculation (Used%):
Swap Memory Utilization:
Used % = ( used_swap / total_swap ) *100
= ( 0 /30719) * 100
= 0 %
Physical Memory Utilization
Used % = ( used_mem / total_mem ) * 100
= ( 6817 / 15726 ) * 100
= 43 %
Total Memory Utilization
total_used = used_mem + used_swap
= 6817 + 0
= 6817
Total used % = ( ( total_used ) / ( total_mem + total_swap ) ) * 100);
= ( ( 6817) / ( 15726 + 30719 ) ) * 100
= 14 %