Aug 26, 2011

How To Check Memory Usage In Linux/RedHat/AIX

Check Linux Memory Usage Linux OS comes with various set of commands to check memory usage. The free command displays total amount of free available RAM. This vmstat command displays information about processes, memory, block IO, paging, traps and CPU activity. The top command displays real time view of running system process.


How To Check Free Memory In Linux

To check system free memory use below command with option '-m'.
[root@ravisaive ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          1001        913         87          0        162        244
-/+ buffers/cache:        507        493
Swap:         4000         13       3986

How To Check Virtual Memory In Linux

[root@ravisaive ~]# vmstat
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu------
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 0  0  14012  89280 166908 251268    0    0   104   131    6    6  2  1 97  1  0

How To Check Running Process In Linux

[root@ravisaive ~]# top

OR

[root@ravisaive ~]# ps fax

How To Check RAM Information In Linux

[root@ravisaive ~]# cat /proc/meminfo

How To Check Memory In AIX Unix

[root@ravisaive ~]# lsattr -El sys0 | grep realmem

How To Check Virtual Memory In AIX Unix

[root@ravisaive ~]# svmon -G

How To Check CPU Information In Linux

[root@ravisaive ~]# cat /proc/cpuinfo

How To Check What is Stored Inside Your RAM

[root@ravisaive ~]# sudo dd if=/dev/mem | cat | strings

Tags: , , ,

2 Responses to “How To Check Memory Usage In Linux/RedHat/AIX”

Anonymous said...
August 26, 2011 at 8:19 AM

can you please explain
sudo dd if=/dev/mem | cat | strings
this command . what exactly happend .


Ravi Saive said...
August 26, 2011 at 11:02 PM

The device /dev/mem is your system memory. You can actually copy any block or character device to a file with dd.


Post a Comment

© 2013 Ravi Saive: A Technology Blog For Newbies. All rights reserved.
http://www.cucusoft.com/transfer-music-from-ipod-to-computer.aspx