1
2
3
| # cat /proc/swaps
Filename Type Size Used Priority
/dev/dm-1 partition 4194300 0 -2
|
1
2
3
4
| # grep Swap /proc/meminfo
SwapCached: 0 kB
SwapTotal: 4194300 kB
SwapFree: 4194300 kB
|
1
2
3
| # swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 4194300 0 -2
|
free -g/-k/-m
1
2
3
4
| # free -g
total used free shared buff/cache available
Mem: 1 0 0 0 1 1
Swap: 3 0 3
|
1
2
3
4
| # vmstat
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
r b swpd free buff cache si so bi bo in cs us sy id wa st
1 0 0 130536 172 1654888 0 0 0 3 1 23 0 0 100 0 0
|
参考引用#
How To Check Swap Usage Size and Utilization in Linux