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 <liumartin@google.com>
This commit is contained in:
Martin Liu 2024-07-11 17:11:59 +00:00
parent 1dfc189216
commit ae6907b6b8
4 changed files with 60 additions and 0 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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",