Friday, August 10, 2007

display linux memory information howto

Issue these commands to get more details of your hardware memory.

# cat /proc/meminfo

# free -l

Here's what I have:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MemTotal: 1034748 kB
MemFree: 105860 kB
Buffers: 162688 kB
Cached: 132020 kB
SwapCached: 18908 kB
Active: 709068 kB
Inactive: 160420 kB
HighTotal: 130848 kB
HighFree: 260 kB
LowTotal: 903900 kB
LowFree: 105600 kB
SwapTotal: 2112508 kB
SwapFree: 2076880 kB
Dirty: 256 kB
Writeback: 0 kB
AnonPages: 558368 kB
Mapped: 12580 kB
Slab: 43300 kB
PageTables: 5572 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 2629880 kB
Committed_AS: 1167612 kB
VmallocTotal: 114680 kB
VmallocUsed: 2816 kB
VmallocChunk: 111772 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 4096 kB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From 'free' command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
total used free shared buffers cached
Mem: 1034748 965504 69244 0 163020 131216
Low: 903900 834916 68984
High: 130848 130588 260
-/+ buffers/cache: 671268 363480
Swap: 2112508 35628 2076880
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy