Friday, November 4, 2011

How to see the memory stats of a box running linux

Following file contains all the information  about the memory of the machine running linux
       cat /proc/meminfo
The output of this command is something like

MemTotal:     74178200 kB
MemFree:      14204988 kB
Buffers:       7106472 kB
Cached:       43864060 kB
SwapCached:          0 kB
Active:       20877324 kB
Inactive:     36139244 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:     74178200 kB
LowFree:      14204988 kB
SwapTotal:     2096472 kB
SwapFree:      2096196 kB
Dirty:          278512 kB
Writeback:           0 kB
AnonPages:     6045916 kB
Mapped:          71672 kB
Slab:          2836748 kB
PageTables:      38336 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:  39185572 kB
Committed_AS: 33337792 kB
VmallocTotal: 34359738367 kB
VmallocUsed:    264000 kB
VmallocChunk: 34359473963 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB

No comments:

Post a Comment