From b7286088dcb789970073d8be363b0523b5e86961 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Fri, 2 Aug 2024 02:57:03 +0000 Subject: [PATCH] Boosting kswapd uclamp min value when the panel is on Boosting kswapd's uclamp minimum value in the scheduler allows kswapd more opportunities to remain in middle cores. This change enhances kswapd's memory reclamation efficiency. Bug: 351708752 Test: check kbnob value when the panel is on/off Flag: EXEMPT device policy tuning Change-Id: Ibed13a63237a4eb69392955cbb5f038b7c1e4501 Signed-off-by: Martin Liu --- perf/powerhint-tegu.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/perf/powerhint-tegu.json b/perf/powerhint-tegu.json index 1ef994b..2f4cadc 100644 --- a/perf/powerhint-tegu.json +++ b/perf/powerhint-tegu.json @@ -951,6 +951,15 @@ "0" ], "ResetOnInit": false + }, + { + "Name": "KswapdUclaimMin", + "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", + "Values": [ + "0", + "200" + ], + "ResetOnInit": true } ], "Actions": [ @@ -1423,6 +1432,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "KswapdUclaimMin", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_PA_KILL_BOOST", "Node": "PA_KILL",