zoukankan      html  css  js  c++  java
  • 如何释放linux cache占用的内存

    [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 or unit 连接 windows的远程桌面-rdesktop(略有修改)
    Excel技巧
    Linux实用配置(ubuntu)
    转载:VMware linux 虚拟机中修改MAC地址
    windows技巧
    cdoj1099
    hdu1160(问题)
    c#学习笔记
    hdu1176
    qsort(),sort() scanf();
  • 原文地址:https://www.cnblogs.com/lavezhang/p/6111917.html
Copyright © 2011-2022 走看看