Commit 55c37a840d9ec0ebed5c944355156d490b1ad5d1

Authored by Jan Kara
Committed by Linus Torvalds
1 parent 5a2ae913f5

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

Reported-by: Christian Thaeter <ct@pipapo.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

Documentation/sysctl/vm.txt
... ... @@ -585,7 +585,9 @@
585 585 At the default value of vfs_cache_pressure=100 the kernel will attempt to
586 586 reclaim dentries and inodes at a "fair" rate with respect to pagecache and
587 587 swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer
588   -to retain dentry and inode caches. Increasing vfs_cache_pressure beyond 100
  588 +to retain dentry and inode caches. When vfs_cache_pressure=0, the kernel will
  589 +never reclaim dentries and inodes due to memory pressure and this can easily
  590 +lead to out-of-memory conditions. Increasing vfs_cache_pressure beyond 100
589 591 causes the kernel to prefer to reclaim dentries and inodes.
590 592  
591 593 ==============================================================