From ae6907b6b8d4172f26c01605c2c39e05c995d7e6 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Thu, 11 Jul 2024 17:11:59 +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: I4b75016aa3f2de22b0b9e46d8e594d4042124a04 Signed-off-by: Martin Liu --- perf/powerhint-caiman.json | 15 +++++++++++++++ perf/powerhint-komodo.json | 15 +++++++++++++++ perf/powerhint-ripcurrentpro.json | 15 +++++++++++++++ perf/powerhint-tokay.json | 15 +++++++++++++++ 4 files changed, 60 insertions(+) diff --git a/perf/powerhint-caiman.json b/perf/powerhint-caiman.json index 7921a5b3..c37dfca6 100644 --- a/perf/powerhint-caiman.json +++ b/perf/powerhint-caiman.json @@ -940,6 +940,15 @@ "0" ], "ResetOnInit": false + }, + { + "Name": "KswapdUclaimMin", + "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", + "Values": [ + "0", + "200" + ], + "ResetOnInit": true } ], "Actions": [ @@ -1406,6 +1415,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "KswapdUclaimMin", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_PA_KILL_BOOST", "Node": "PA_KILL", diff --git a/perf/powerhint-komodo.json b/perf/powerhint-komodo.json index a0eab166..36f11adb 100644 --- a/perf/powerhint-komodo.json +++ b/perf/powerhint-komodo.json @@ -940,6 +940,15 @@ "0" ], "ResetOnInit": false + }, + { + "Name": "KswapdUclaimMin", + "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", + "Values": [ + "0", + "200" + ], + "ResetOnInit": true } ], "Actions": [ @@ -1406,6 +1415,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "KswapdUclaimMin", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_PA_KILL_BOOST", "Node": "PA_KILL", diff --git a/perf/powerhint-ripcurrentpro.json b/perf/powerhint-ripcurrentpro.json index cb48d792..1cdeea01 100644 --- a/perf/powerhint-ripcurrentpro.json +++ b/perf/powerhint-ripcurrentpro.json @@ -866,6 +866,15 @@ "0" ], "ResetOnInit": false + }, + { + "Name": "KswapdUclaimMin", + "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", + "Values": [ + "0", + "200" + ], + "ResetOnInit": true } ], "Actions": [ @@ -1326,6 +1335,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "KswapdUclaimMin", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_PA_KILL_BOOST", "Node": "PA_KILL", diff --git a/perf/powerhint-tokay.json b/perf/powerhint-tokay.json index 7921a5b3..c37dfca6 100644 --- a/perf/powerhint-tokay.json +++ b/perf/powerhint-tokay.json @@ -940,6 +940,15 @@ "0" ], "ResetOnInit": false + }, + { + "Name": "KswapdUclaimMin", + "Path": "/sys/kernel/vendor_mm/kswapd_uclamp_min", + "Values": [ + "0", + "200" + ], + "ResetOnInit": true } ], "Actions": [ @@ -1406,6 +1415,12 @@ "Duration": 0, "Value": "0" }, + { + "PowerHint": "DISPLAY_INACTIVE", + "Node": "KswapdUclaimMin", + "Duration": 0, + "Value": "0" + }, { "PowerHint": "CAMERA_PA_KILL_BOOST", "Node": "PA_KILL",