Calculate Physical Memory Capacity in MB

To calculate physical memory capacity, is to use “top” command.
top

top – 13:15:47 up 12 days, 6:18, 1 user, load average: 0.01, 0.03, 0.01
Tasks: 22 total, 1 running, 21 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 1048576k total, 206424k used, 842152k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached

Pay attention on “Mem”

Mem: 1048576k total, 206424k used, 842152k free, 0k buffers

Physical Memory Capacity: 1048576k
Currently Used Memory: 206424k
Free Memory: 841376k

To get the value in MB, divide the above value to 1024. For example,

Physical Memory Capacity in MB
= 1048576/1024
= 1024 MB

Currently Used Memory in MB
= 206424/1024
~ 201 MB

Free Memory in MB
= 841376k/1024
~ 822 MB

Easy !!

Advertisement



    Leave a Reply

    Please log in using one of these methods to post your comment:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Connecting to %s



Follow

Get every new post delivered to your Inbox.