关于linux:Ubuntu-清空文件系统缓存qbit

2次阅读

共计 197 个字符,预计需要花费 1 分钟才能阅读完成。

  • 本文内的办法对 Ubuntu 20.04 无效
  • 只清空 PageCache

    sync; echo 1 > /proc/sys/vm/drop_caches
  • 只清空 dentries 和 inodes

    sync; echo 2 > /proc/sys/vm/drop_caches
  • 同时清空 PageCache, dentries 和 inodes.

    sync; echo 3 > /proc/sys/vm/drop_caches 

本文出自 qbit snap

正文完
 0