iLeichun

当前位置: 首页 > Linux

linux下查看内存使用情况

分类:Linux   来源:网络   时间:2010-11-20 15:15:31

1、free -m查看内存使用情况:
[root@mail root]# free -m
total used free shared buffers cached
Mem: 122 112 10 0 11 27
-/+ buffers/cache: 73 48
Swap: 2251 84 2167
2、ls -l -h /proc/kcore查看内存大小:
[root@mail root]# ls -l -h /proc/kcore
-r——– 1 root root 128M Jul 6 14:55 /proc/kcore
3 、cat /proc/meminfo查看内存情况:
[root@localhost ~]# cat /proc/meminfo
MemTotal: 1035904 kB
MemFree: 189096 kB
Buffers: 17844 kB
Cached: 225232 kB
SwapCached: 47820 kB
Active: 724512 kB
Inactive: 96132 kB
HighTotal: 131056 kB
HighFree: 252 kB
LowTotal: 904848 kB
LowFree: 188844 kB
SwapTotal: 2305288 kB
SwapFree: 2081592 kB
Dirty: 32 kB
Writeback: 0 kB
Mapped: 599748 kB
Slab: 14700 kB
Committed_AS: 3008852 kB
PageTables: 4472 kB
VmallocTotal: 106488 kB
VmallocUsed: 2556 kB
VmallocChunk: 103400 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 4096 kB

更多