Linux : How to get free swap infromation

how to get free – to see swap space information in linux

Command : cat /proc/meminfo ( or ) free

out put from my system

[email protected]:~$ cat /proc/meminfo; free
MemTotal: 12320084 kB
MemFree: 3508632 kB
Buffers: 121068 kB
Cached: 5832992 kB
SwapCached: 1616 kB
Active: 4625864 kB
Inactive: 3571736 kB
Active(anon): 1689308 kB
Inactive(anon): 584088 kB
Active(file): 2936556 kB
Inactive(file): 2987648 kB
Unevictable: 1828 kB
Mlocked: 0 kB
SwapTotal: 9764856 kB
SwapFree: 9743628 kB
Dirty: 13964 kB
Writeback: 0 kB
AnonPages: 2244036 kB
Mapped: 257116 kB
Shmem: 27976 kB
Slab: 222924 kB
SReclaimable: 190660 kB
SUnreclaim: 32264 kB
KernelStack: 3376 kB
PageTables: 33408 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 15924896 kB
Committed_AS: 3252684 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 171116 kB
VmallocChunk: 34359563260 kB
HardwareCorrupted: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 614724 kB
DirectMap2M: 11956224 kB
total used free shared buffers cached
Mem: 12320084 8811452 3508632 0 121068 5832992
-/+ buffers/cache: 2857392 9462692
Swap: 9764856 21228 9743628
[email protected]:~$

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.