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

Commit 567dd77c authored by Rick Yiu's avatar Rick Yiu
Browse files

init.rc: Create a new group for dex2oat

Create a new group for dex2oat in cpu cgroup, which is dedicated for
dex2oat processes. Also modify task profiles for this change.

Bug: 201223712
Test: dex2oat group created
Change-Id: Ic61f4b8a64d01c03549b680970805e12b9ce4fcc
Merged-In: Ic61f4b8a64d01c03549b680970805e12b9ce4fcc
parent 89d67fb4
Loading
Loading
Loading
Loading
+14 −2
Original line number Diff line number Diff line
@@ -183,7 +183,19 @@
        }
      ]
    },

    {
      "Name": "Dex2oatPerformance",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "cpu",
            "Path": "dex2oat"
          }
        }
      ]
    },
    {
      "Name": "CpuPolicySpread",
      "Actions": [
@@ -638,7 +650,7 @@
    },
    {
      "Name": "Dex2OatBootComplete",
      "Profiles": [ "SCHED_SP_BACKGROUND" ]
      "Profiles": [ "Dex2oatPerformance", "LowIoPriority", "TimerSlackHigh" ]
    }
  ]
}
+13 −1
Original line number Diff line number Diff line
@@ -104,7 +104,19 @@
        }
      ]
    },

    {
      "Name": "Dex2oatPerformance",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Path": "background"
          }
        }
      ]
    },
    {
      "Name": "CpuPolicySpread",
      "Actions": [
+13 −1
Original line number Diff line number Diff line
@@ -104,7 +104,19 @@
        }
      ]
    },

    {
      "Name": "Dex2oatPerformance",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Path": "background"
          }
        }
      ]
    },
    {
      "Name": "CpuPolicySpread",
      "Actions": [
+13 −1
Original line number Diff line number Diff line
@@ -104,7 +104,19 @@
        }
      ]
    },

    {
      "Name": "Dex2oatPerformance",
      "Actions": [
        {
          "Name": "JoinCgroup",
          "Params":
          {
            "Controller": "schedtune",
            "Path": "background"
          }
        }
      ]
    },
    {
      "Name": "CpuPolicySpread",
      "Actions": [
+4 −0
Original line number Diff line number Diff line
@@ -155,6 +155,7 @@ on init
    mkdir /dev/cpuctl/rt
    mkdir /dev/cpuctl/system
    mkdir /dev/cpuctl/system-background
    mkdir /dev/cpuctl/dex2oat
    chown system system /dev/cpuctl
    chown system system /dev/cpuctl/foreground
    chown system system /dev/cpuctl/background
@@ -162,6 +163,7 @@ on init
    chown system system /dev/cpuctl/rt
    chown system system /dev/cpuctl/system
    chown system system /dev/cpuctl/system-background
    chown system system /dev/cpuctl/dex2oat
    chown system system /dev/cpuctl/tasks
    chown system system /dev/cpuctl/foreground/tasks
    chown system system /dev/cpuctl/background/tasks
@@ -169,6 +171,7 @@ on init
    chown system system /dev/cpuctl/rt/tasks
    chown system system /dev/cpuctl/system/tasks
    chown system system /dev/cpuctl/system-background/tasks
    chown system system /dev/cpuctl/dex2oat/tasks
    chmod 0664 /dev/cpuctl/tasks
    chmod 0664 /dev/cpuctl/foreground/tasks
    chmod 0664 /dev/cpuctl/background/tasks
@@ -176,6 +179,7 @@ on init
    chmod 0664 /dev/cpuctl/rt/tasks
    chmod 0664 /dev/cpuctl/system/tasks
    chmod 0664 /dev/cpuctl/system-background/tasks
    chmod 0664 /dev/cpuctl/dex2oat/tasks

    # Create a cpu group for NNAPI HAL processes
    mkdir /dev/cpuctl/nnapi-hal