Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2079c5f0 authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

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: default avatarSuren Baghdasaryan <surenb@google.com>
Change-Id: I945c634dfa7621437d8ea3981bce370d680b7371
parent 56a05e1f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,4 +5,4 @@ service tombstoned /system/bin/tombstoned
    socket tombstoned_crash seqpacket 0666 system system
    socket tombstoned_intercept seqpacket 0666 system system
    socket tombstoned_java_trace seqpacket 0666 system system
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
+1 −1
Original line number Diff line number Diff line
service gatekeeperd /system/bin/gatekeeperd /data/misc/gatekeeper
    class late_start
    user system
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
+1 −1
Original line number Diff line number Diff line
@@ -16,4 +16,4 @@ service llkd-1 /system/bin/llkd
    capabilities KILL IPC_LOCK SYS_PTRACE DAC_OVERRIDE SYS_ADMIN
    file /dev/kmsg w
    file /proc/sysrq-trigger w
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
+1 −1
Original line number Diff line number Diff line
@@ -42,4 +42,4 @@ service llkd-0 /system/bin/llkd
    capabilities KILL IPC_LOCK
    file /dev/kmsg w
    file /proc/sysrq-trigger w
    writepid /dev/cpuset/system-background/tasks
    task_profiles ServiceCapacityLow
+1 −1
Original line number Diff line number Diff line
@@ -12,5 +12,5 @@ service zygote /system/bin/app_process -Xzygote /system/bin --zygote --start-sys
    onrestart restart media
    onrestart restart netd
    onrestart restart wificond
    writepid /dev/cpuset/foreground/tasks
    task_profiles ProcessCapacityHigh
    critical window=${zygote.critical_window.minute:-off} target=zygote-fatal
Loading