Linux下内存管理
[root@serA ~]# free -k total used free shared buffers cached Mem: 15992832 7665216 8327616 0 387420 5703232 -/+ buffers/cache: 1574564 14418268 Swap: 32764556 0 32764556 [root@serA ~]# free -m total used free shared buffers cached Mem: 15618 7485 8132 0 378 5569 -/+ buffers/cache: 1538 14079 Swap: 31996 0 31996 [root@serA ~]# free -g total used free shared buffers cached Mem: 15 7 7 0 0 5 -/+ buffers/cache: 1 13 Swap: 31 0 31 [root@serA ~]#
free -k 以K为单位查看内存信息
free -m 以M为单位查看内存信息
free -g 以G为单位查看内存信息