[RHEL7,COMMIT] tcache: Increase seeks more

Submitted by Konstantin Khorenko on Nov. 13, 2017, 8:30 a.m.

Details

Message ID 201711130830.vAD8U24Y016428@finist_ce7.work
State New
Series "tcache: Increase seeks more"
Headers show

Commit Message

Konstantin Khorenko Nov. 13, 2017, 8:30 a.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.26
------>
commit 8e1f4aef14d0149513cd079a4811e4b5c52391d6
Author: Kirill Tkhai <ktkhai@virtuozzo.com>
Date:   Mon Nov 13 11:30:02 2017 +0300

    tcache: Increase seeks more
    
    One node from the test plan showed, number of seeks still is not enough.
    Increase it again twice more to fit new formula introduced in commit
    e008b95a28ef ("ms/mm: use sc->priority for slab shrink targets").
    
    https://jira.sw.ru/browse/PSBM-77015
    
    Fixes: d6cdd02 ("tswap, tcache: Increase shrinkers seeks")
    
    Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
---
 mm/tcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/mm/tcache.c b/mm/tcache.c
index 8b893e6..b5157d9 100644
--- a/mm/tcache.c
+++ b/mm/tcache.c
@@ -1202,7 +1202,7 @@  static unsigned long tcache_shrink_scan(struct shrinker *shrink,
 struct shrinker tcache_shrinker = {
 	.count_objects		= tcache_shrink_count,
 	.scan_objects		= tcache_shrink_scan,
-	.seeks			= 4,
+	.seeks			= 8,
 	.batch			= TCACHE_SCAN_BATCH,
 	.flags			= SHRINKER_NUMA_AWARE,
 };