Add cgroups.json and task_profiles.json file to be places under /etc/ on the device to describe cgroups to be mounted and task profiles that processes can request. This adds additional layer of abstraction between what a process wants to achieve and how system implements that request. Bug: 111307099 test: builds, boots Change-Id: If92f011230ef5d24750e184bad776f30ba226f86 Merged-In: If92f011230ef5d24750e184bad776f30ba226f86 Signed-off-by: Suren Baghdasaryan <surenb@google.com>
43 lines
756 B
JSON
43 lines
756 B
JSON
{
|
|
"Cgroups": [
|
|
{
|
|
"Controller": "cpu",
|
|
"Path": "/dev/cpuctl",
|
|
"Mode": 0755,
|
|
"UID": "system",
|
|
"GID": "system"
|
|
},
|
|
{
|
|
"Controller": "cpuacct",
|
|
"Path": "/acct",
|
|
"Mode": 0555
|
|
},
|
|
{
|
|
"Controller": "cpuset",
|
|
"Path": "/dev/cpuset",
|
|
"Mode": 0755,
|
|
"UID": "system",
|
|
"GID": "system"
|
|
},
|
|
{
|
|
"Controller": "memory",
|
|
"Path": "/dev/memcg",
|
|
"Mode": 0700,
|
|
"UID": "root",
|
|
"GID": "system"
|
|
},
|
|
{
|
|
"Controller": "schedtune",
|
|
"Path": "/dev/stune",
|
|
"Mode": 0755,
|
|
"UID": "system",
|
|
"GID": "system"
|
|
}
|
|
],
|
|
"Cgroups2": {
|
|
"Path": "/dev/cg2_bpf",
|
|
"Mode": 0600,
|
|
"UID": "root",
|
|
"GID": "root"
|
|
}
|
|
}
|