Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Is there any way to make linux remove from memory all cached disk data? Our goal is to time some performance tests on various storage configurations and have each one start with a clean slate cache-wise.
How about this:
$ sync ; echo 3 > /proc/sys/vm/drop_caches
Required, but never shown
9 years, 3 months ago
7 years, 4 months ago