Skip to contentSkip to conversation

vm: Document that setting vfs_cache_pressure to 0 isn't a good idea

PATCH New Jan Kara 1 participant 1 message Jul 16, 2009 Documentation

lore
Share & tools
lore

Jan Kara

author
#0 lore raw

PATCH 1/1 vm: Document that setting vfs_cache_pressure to 0 isn't a good idea

---
 Documentation/sysctl/vm.txt |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Andrew, would you merge this please? Thanks.

Documentation/sysctl/vm.txt +3 -1
index c4de635..76e8671 100644
@@ -585,7 +585,9 @@ caching of directory and inode objects.
 At the default value of vfs_cache_pressure=100 the kernel will attempt to
 reclaim dentries and inodes at a "fair" rate with respect to pagecache and
 swapcache reclaim.  Decreasing vfs_cache_pressure causes the kernel to prefer
-to retain dentry and inode caches.  Increasing vfs_cache_pressure beyond 100
+to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will
+never reclaim dentries and inodes due to memory pressure and this can easily
+lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond 100
 causes the kernel to prefer to reclaim dentries and inodes.
 
 ==============================================================
Signature · 1 line
1.6.0.2