From 87e04cace20a02a96b9fafd56a4c06c8305cfb36 Mon Sep 17 00:00:00 2001 From: Lei Feng Date: Fri, 19 May 2023 13:01:06 +0800 Subject: [PATCH] EX-7544 lipe: set lpcc interval to 30 by default set the default value of interval lpcc.conf and lpcc_purge to 30 seconds everywhere. Test-Parameters: trivial testlist=sanity-pcc Signed-off-by: Lei Feng Change-Id: Iaee812bdc0d3c4d04549092e5c8aa78b0a2f1dbd Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51058 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- lipe/lpcc | 2 +- lipe/man/lpcc.conf.5 | 2 +- lipe/src/lpcc_purge.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lipe/lpcc b/lipe/lpcc index 3d6901a..eaaa42c 100755 --- a/lipe/lpcc +++ b/lipe/lpcc @@ -44,7 +44,7 @@ class LpccService: lpcc_purge_high_usage = 90 lpcc_purge_low_usage = 75 - lpcc_purge_interval = 5 + lpcc_purge_interval = 30 lpcc_purge_force_scan_interval = 1800 lpcc_purge_scan_threads = 1 lpcc_purge_log_level = None diff --git a/lipe/man/lpcc.conf.5 b/lipe/man/lpcc.conf.5 index f0c500d..1e1a976 100644 --- a/lipe/man/lpcc.conf.5 +++ b/lipe/man/lpcc.conf.5 @@ -39,7 +39,7 @@ If the disk usage of cache device is lower than \fBpurge.low_usage\fR, stop purging. It is 75 (means 75% disk/inode usage) by default. .TP .BR purge.interval -The interval for lpcc_purge to check cache device usage, in seconds. It is 5 +The interval for lpcc_purge to check cache device usage, in seconds. It is 30 seconds by default. .TP .BR purge.force_scan_interval diff --git a/lipe/src/lpcc_purge.c b/lipe/src/lpcc_purge.c index 3735b4d..892bc65 100644 --- a/lipe/src/lpcc_purge.c +++ b/lipe/src/lpcc_purge.c @@ -27,7 +27,7 @@ #define DEF_HIGH_USAGE 90 #define DEF_LOW_USAGE 75 -#define DEF_INTERVAL 5 +#define DEF_INTERVAL 30 #define DEF_SCAN_THREADS 1 #define DEF_CANDIDATE_NUM (128 * 1024) #define MIN_CANDIDATE_NUM 1024 -- 1.8.3.1