Linux 释放 内存
[ 2009/11/24 10:58 | by selboo ]
释放前
[root@selboo ~]# free -m
total used free shared buffers cached
Mem: 3042 2939 103 0 157 1571
-/+ buffers/cache: 1209 1832
Swap: 2047 0 2047
[root@selboo ~]# sync
[root@selboo ~]# echo 3 > /proc/sys/vm/drop_caches
释放后
[root@selboo ~]# free -m
total used free shared buffers cached
Mem: 3042 1142 1900 0 0 22
-/+ buffers/cache: 1119 1922
Swap: 2047 0 2047
[root@selboo ~]# echo 0 > /proc/sys/vm/drop_caches
最后编辑: selboo 编辑于2009/11/24 11:44