From 5e879421a372717c2a21888b2f1079d01249aced Mon Sep 17 00:00:00 2001 From: Daeho Jeong Date: Tue, 15 Mar 2022 21:42:55 -0700 Subject: [PATCH] vold: switch f2fs gc_urgent_high to gc_urgent_mid We need to reduce F2FS GC intensity for smart idle maintenance service not to interfere with other I/O activities. Test: check smart idle maintenance log every hour Bug: 202283480 Bug: 181079477 Signed-off-by: Daeho Jeong Change-Id: Ideb1641a1539a23828bc8b00d9739c8128a984c0 --- IdleMaint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IdleMaint.cpp b/IdleMaint.cpp index 769d7a5..2fc0d4b 100644 --- a/IdleMaint.cpp +++ b/IdleMaint.cpp @@ -89,7 +89,7 @@ static const int KBYTES_IN_SEGMENT = 2048; static const int MIN_GC_URGENT_SLEEP_TIME = 500; static const int ONE_HOUR_IN_MS = 3600000; static const int GC_NORMAL_MODE = 0; -static const int GC_URGENT_HIGH_MODE = 1; +static const int GC_URGENT_MID_MODE = 3; static int32_t previousSegmentWrite = 0; @@ -596,7 +596,7 @@ void SetGCUrgentPace(int32_t neededSegments, int32_t minSegmentThreshold, float return; } - if (!WriteStringToFile(std::to_string(GC_URGENT_HIGH_MODE), gcUrgentModePath)) { + if (!WriteStringToFile(std::to_string(GC_URGENT_MID_MODE), gcUrgentModePath)) { PLOG(WARNING) << "Writing failed in " << gcUrgentModePath; return; }