How to Clear Memory Cache on Linux
|
|
|
Comments (2)
Writing to drop_caches is a single-shot action, and then the cache starts re-filling. There are other tunables to alter ongoing behavior of the caching system.
For my own testing, I prefer to just dirty the caches with a single, un-measured run, followed by how ever many measured runs I need, with no cache-clearing in between.
For my own testing, I prefer to just dirty the caches with a single, un-measured run, followed by how ever many measured runs I need, with no cache-clearing in between.
Post a comment
A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.
Your message:Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help
Sign up and post (it is free) or Log in and post

Also, drop_caches should be reset back to zero after testing. I could not find any info whether setting drop_caches to 3 only clears the cache, or whether it clears and disables it altogether. Any knowledgeable forum reader ? Thx.