[RHEL7,COMMIT] Revert "mm, fs: make vfs_cache_min_ratio=0 by default"

Submitted by Konstantin Khorenko on Oct. 26, 2017, 3:16 p.m.

Details

Message ID 201710261516.v9QFGZTT029050@finist_ce7.work
State New
Series "Revert "mm, fs: make vfs_cache_min_ratio=0 by default""
Headers show

Commit Message

Konstantin Khorenko Oct. 26, 2017, 3:16 p.m.
The commit is pushed to "branch-rh7-3.10.0-693.1.1.vz7.37.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.1.1.vz7.37.19
------>
commit a7a195e77ed661d8d92d81fda7e4f9e47e9df3f7
Author: Konstantin Khorenko <khorenko@virtuozzo.com>
Date:   Thu Oct 26 18:13:02 2017 +0300

    Revert "mm,fs: make vfs_cache_min_ratio=0 by default"
    
    This reverts commit 592e27fa3be43f9a54b1d24751da764dc332591e.
    
    It was shown this tweak with 2% dcache savings does increase
    the performance, so return the old default value back.
    
    https://jira.sw.ru/browse/PSBM-75862
    
    Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 fs/dcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/fs/dcache.c b/fs/dcache.c
index ce8e24f..2cb018a 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -86,7 +86,7 @@ 
 int sysctl_vfs_cache_pressure __read_mostly = 100;
 EXPORT_SYMBOL_GPL(sysctl_vfs_cache_pressure);
 
-int sysctl_vfs_cache_min_ratio __read_mostly = 0;
+int sysctl_vfs_cache_min_ratio __read_mostly = 2;
 
 __cacheline_aligned_in_smp DEFINE_SEQLOCK(rename_lock);