]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - Documentation/sysctl/vm.txt
vm: document that setting vfs_cache_pressure to 0 isn't a good idea
[karo-tx-linux.git] / Documentation / sysctl / vm.txt
index c4de6359d440e4dbf92d585e8a7e577d62d475c1..e6fb1ec2744b180d25bd41e6a672e5627dd8e971 100644 (file)
@@ -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.
 
 ==============================================================