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

  • 相关阅读:
    c语言中的数据变量类型,大小
    表达式* ptr ++和++ * ptr是否相同?
    再论i++ ++i
    Chapter 1 First Sight——2
    如何修改博客样式
    PAT1011
    Chapter 1 First Sight——1
    Preface
    L11,one good turn deserves another
    PAT1010
  • 原文地址:https://www.cnblogs.com/lavezhang/p/6111917.html
Copyright © 2011-2022 走看看