diff options
author | Jan Kara <jack@suse.cz> | 2009-09-21 20:01:40 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-22 10:17:30 -0400 |
commit | 55c37a840d9ec0ebed5c944355156d490b1ad5d1 (patch) | |
tree | 5544b93b41133b85f7f825e61fe3583fb39ff211 /Documentation | |
parent | 5a2ae913f5229d6e1d4a666f0477350789d5128e (diff) |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/sysctl/vm.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/sysctl/vm.txt b/Documentation/sysctl/vm.txt index c4de6359d440..e6fb1ec2744b 100644 --- a/Documentation/sysctl/vm.txt +++ b/Documentation/sysctl/vm.txt | |||
@@ -585,7 +585,9 @@ caching of directory and inode objects. | |||
585 | At the default value of vfs_cache_pressure=100 the kernel will attempt to | 585 | At the default value of vfs_cache_pressure=100 the kernel will attempt to |
586 | reclaim dentries and inodes at a "fair" rate with respect to pagecache and | 586 | reclaim dentries and inodes at a "fair" rate with respect to pagecache and |
587 | swapcache reclaim. Decreasing vfs_cache_pressure causes the kernel to prefer | 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 | causes the kernel to prefer to reclaim dentries and inodes. | 591 | causes the kernel to prefer to reclaim dentries and inodes. |
590 | 592 | ||
591 | ============================================================== | 593 | ============================================================== |