How to purge disk I/O caches on Linux?

后端 未结 5 1940
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 01:41

I need to do it for more predictable benchmarking.

5条回答
  •  迷失自我
    2021-01-30 02:09

    Sounds like you want the sync command, or the sync() function.

    If you want disk cache flushing: echo 3 | sudo tee /proc/sys/vm/drop_caches

提交回复
热议问题