Linux/Centos下释放内存和缓存方法

$ free -m 

运行sync将dirty的内容写回硬盘
$ sync

通过修改proc系统的drop_caches清理free的cache
$ echo 3 > /proc/sys/vm/drop_caches
 
$ free -m

相关文章:

  • 2021-12-03
  • 2021-11-11
  • 2021-11-26
  • 2021-10-05
  • 2021-11-21
  • 2021-07-31
  • 2021-12-06
  • 2021-12-05
猜你喜欢
  • 2021-12-06
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案