Relax SurfaceFlinger cpuset and adding uclamp.min for RenderEngine am: 028c5241b0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/14950241 Change-Id: I4ffd0a68a0b8aabfc08fb9dd54a7d5c17d7425e6
This commit is contained in:
commit
02a04efcb2
2 changed files with 47 additions and 0 deletions
|
@ -664,6 +664,9 @@ on property:sys.boot_completed=1
|
||||||
|
|
||||||
write /sys/kernel/vendor_sched/bg_group_throttle 512
|
write /sys/kernel/vendor_sched/bg_group_throttle 512
|
||||||
|
|
||||||
|
# Skip little core for RT vendor_grp
|
||||||
|
write /sys/kernel/vendor_sched/rt_uclamp_min 125
|
||||||
|
|
||||||
# Setup cpu.shares to throttle background group at 5%
|
# Setup cpu.shares to throttle background group at 5%
|
||||||
write /dev/cpuctl/background/cpu.shares 1024
|
write /dev/cpuctl/background/cpu.shares 1024
|
||||||
write /dev/cpuctl/system/cpu.shares 20480
|
write /dev/cpuctl/system/cpu.shares 20480
|
||||||
|
|
|
@ -175,6 +175,50 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SFMainPolicy",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "top-app"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "WriteFile",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"FilePath": "/sys/kernel/vendor_sched/set_task_group_fg",
|
||||||
|
"Value": "<pid>",
|
||||||
|
"LogFailures": "false"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "SFRenderEnginePolicy",
|
||||||
|
"Actions": [
|
||||||
|
{
|
||||||
|
"Name": "JoinCgroup",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"Controller": "cpuset",
|
||||||
|
"Path": "top-app"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name": "WriteFile",
|
||||||
|
"Params":
|
||||||
|
{
|
||||||
|
"FilePath": "/sys/kernel/vendor_sched/set_task_group_rt",
|
||||||
|
"Value": "<pid>",
|
||||||
|
"LogFailures": "false"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue