FROM: http://cqfish.blog.51cto.com/622299/197230
linux 清除系统cached
top查看系统内存使用情况
Mem: 16432180k total, 13737848k used, 2694332k free, 945396k buffers
freem -m
[[email protected] ~]# free -m
total used free shared buffers cached
Mem: 16047 13415 2631 0 923 10735
-/+ buffers/cache: 1756 14290
Swap: 39997 0 39997
系统缓存了10735K
使用以下命令清除系统cached
sync;echo 3 > /proc/sys/vm/drop_caches
在使用freem -m查看
[[email protected] ~]# free -m
total used free shared buffers cached
Mem: 16047 1195 14851 0 2 15
-/+ buffers/cache: 1177 14869
Swap: 39997 0 39997
时间: 2024-11-09 01:56:52