码迷,mamicode.com
首页 > 系统相关 > 详细

如何释放linux cache占用的内存

时间:2016-11-29 07:06:45      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:cat   shared   c/s   linux   sys   linu   span   linux c   buffers   

[root@prd-fygl-app-01 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3792       3663        128        184        148       3003
-/+ buffers/cache:        511       3280
Swap:            0          0          0

[root@prd-fygl-app-01 ~]#  cat /proc/sys/vm/drop_caches
0

[root@prd-fygl-app-01 ~]# sync

[root@prd-fygl-app-01 ~]# echo 3 > /proc/sys/vm/drop_caches
[root@prd-fygl-app-01 ~]#  cat /proc/sys/vm/drop_caches
3

[root@prd-fygl-app-01 ~]# free -m
             total       used       free     shared    buffers     cached
Mem:          3792        395       3397        184          2         19
-/+ buffers/cache:        372       3419
Swap:            0          0          0

 

如何释放linux cache占用的内存

标签:cat   shared   c/s   linux   sys   linu   span   linux c   buffers   

原文地址:http://www.cnblogs.com/lavezhang/p/6111917.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!