Find Ram details in Linux Os

by Jayanthi 2014-08-07 12:31:21

Ram details in Linux Os

Ram details are findout from some commands.  memory usage,free memory,memory allocation,cache and buffers ram details are given below commands.
  1. free
  2. top
  3. cat/proc/meminfo
  4. vmstat -s

Using this comands and output
 
free
            total       used       free     shared    buffers     cached
Mem:       2054760    1881344     173416          0      78776     799228
-/+ buffers/cache:    1003340    1051420
Swap:      1037308       6312    1030996
 
top

top - 12:08:09 up  1:25,  2 users,  load average: 0.45, 0.77, 0.91
Tasks: 177 total,   1 running, 176 sleeping,   0 stopped,   0 zombie
%Cpu(s): 13.0 us,  3.0 sy,  0.0 ni, 83.6 id,  0.4 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem:   2054760 total,  1850080 used,   204680 free,    75416 buffers
KiB Swap:  1037308 total,     6608 used,  1030700 free,   771096 cached
 
cat/proc/meminfo

MemTotal:        8027952 kB
MemFree:         3893748 kB
Buffers:          132208 kB
Cached:          1666864 kB
SwapCached:       226556 kB
Active:          1979556 kB
Inactive:        1849480 kB
Active(anon):    1592580 kB
Inactive(anon):   886080 kB
Active(file):     386976 kB
Inactive(file):   963400 kB
Unevictable:          68 kB
Mlocked:              68 kB
SwapTotal:      15624188 kB
SwapFree:       15050964 kB
Dirty:               172 kB
Writeback:             0 kB
AnonPages:       1907548 kB
Mapped:           223484 kB
Shmem:            448696 kB
Slab:             140444 kB
SReclaimable:     101456 kB
SUnreclaim:        38988 kB
KernelStack:        4960 kB
PageTables:        53108 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    19638164 kB
Committed_AS:    7822876 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      567356 kB
VmallocChunk:   34359151824 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:      120832 kB
DirectMap2M:     8118272 kB
 
vmstat -s

      2054760 K total memory
      1862316 K used memory
      1061264 K active memory
       693300 K inactive memory
       192444 K free memory
        75244 K buffer memory
       779128 K swap cache
      1037308 K total swap
         6608 K used swap
      1030700 K free swap
       281388 non-nice user cpu ticks
        22872 nice user cpu ticks
        52646 system cpu ticks
       627953 idle cpu ticks
        10910 IO-wait cpu ticks
            1 IRQ cpu ticks
          376 softirq cpu ticks
            0 stolen cpu ticks
      1034419 pages paged in
       305416 pages paged out
            0 pages swapped in
         1712 pages swapped out
      4131695 interrupts
      7259544 CPU context switches
   1407388367 boot time
         7328 forks
1262
like
0
dislike
0
mail
flag

You must LOGIN to add comments