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

  • 相关阅读:
    ansible语法
    hadoop本地模式安装及配置
    linux免密钥登录
    ansible配置文件
    ansible(安装)
    elasticsearch基本概念
    elasticsearch基本概念
    elasticsearch倒排索引介绍
    Flex tree展开节点问题!
    Oracle-Trigger-Insert tableA and tableB
  • 原文地址:https://www.cnblogs.com/lavezhang/p/6111917.html
Copyright © 2011-2022 走看看