Replace writepid with task_profiles command for cgroup migration
writepid command usage to join a cgroup has been deprecated in favor of a more flexible approach using task_profiles. This way cgroup path is not hardcoded and cgroup changes can be easily made. Replace writepid with task_profiles command to migrate between cgroups. Bug: 191283136 Test: build and boot Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I594a5fc5e988f812237bd226aaecefa5f1159d2d
This commit is contained in:
parent
c2fdae89e4
commit
1938f90eb8
2
lmkd.rc
2
lmkd.rc
|
|
@ -5,7 +5,7 @@ service lmkd /system/bin/lmkd
|
||||||
capabilities DAC_OVERRIDE KILL IPC_LOCK SYS_NICE SYS_RESOURCE
|
capabilities DAC_OVERRIDE KILL IPC_LOCK SYS_NICE SYS_RESOURCE
|
||||||
critical
|
critical
|
||||||
socket lmkd seqpacket+passcred 0660 system system
|
socket lmkd seqpacket+passcred 0660 system system
|
||||||
writepid /dev/cpuset/system-background/tasks
|
task_profiles ServiceCapacityLow
|
||||||
|
|
||||||
on property:lmkd.reinit=1
|
on property:lmkd.reinit=1
|
||||||
exec_background /system/bin/lmkd --reinit
|
exec_background /system/bin/lmkd --reinit
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue