Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 8
    Setting vfs_cache_pressure too high (I would consider 2000 too high) will cause unnecessary disk access even for simple stuff such as directory listings which should easily fit in cache. How much RAM do you have and what are you doing with the system? As I wrote in my answer, using high value for this setting makes sense for e.g. HD video editing with limited RAM. Commented Sep 30, 2014 at 10:51
  • 8
    Note that the referenced documentation continues: "Increasing vfs_cache_pressure significantly beyond 100 may have negative performance impact. Reclaim code needs to take various locks to find freeable directory and inode objects. With vfs_cache_pressure=1000, it will look for ten times more freeable objects than there are." Commented Mar 14, 2018 at 7:02
  • Sorry, but doesn't the documentation provided here contradict this answer? It says that increasing this value (especially as high as 2000 instead of 100) would cause the kernel to aggressively remove the listed structures from RAM, meaning you will be bottlenecked by your hard drive more often. Commented Feb 22, 2024 at 17:06