[转载]linux 清除系统cached

FROM: http://cqfish.blog.51cto.com/622299/197230

linux 清除系统cached
top查看系统内存使用情况
 
Mem:    16432180k total, 13737848k used,    2694332k free,     945396k buffers
 
freem -m
[root@mysql ~]# 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查看
[root@mysql ~]# free -m 
       total         used        free    shared        buffers         cached 
Mem: 16047      1195       14851      0              2             15 
-/+ buffers/cache: 1177   14869 
Swap:  39997       0         39997
posted @ 2014-11-28 13:26  wmx3ng  阅读(1196)  评论(0编辑  收藏  举报