Function procfs::sys::vm::drop_caches[][src]

pub fn drop_caches(drop: DropCache) -> ProcResult<()>
Expand description

Causes the kernel to drop clean caches, dentries, and inodes from memory, causing that memory to become free.

This can be useful for memory management testing and performing reproducible filesystem benchmarks. Because writing to this file causes the benefits of caching to be lost, it can degrade overall system performance.