AGL was migrate to cgroup v2 integration from cgroup v1 and v2
mixin integration. Existing container-manager does not support
cgroupv2 based resource control.
This patch change resource control settings from cgroup v1 base
to cgroup v2 base.
Bug-AGL: SPEC-5284
Change-Id: I91761248f36b78b4ae4936d54d60acb92366f999
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
},
"resource": [
{
- "type": "cgroup",
+ "type": "cgroupv2",
"object": "cpuset.cpus",
- "value": "0-6"
+ "value": "1-7"
+ },
+ {
+ "type": "cgroupv2",
+ "object": "memory.max",
+ "value": "8G"
},
{
"type": "prlimit",
"HOME=/home/root"
]
},
+ "resource": [
+ {
+ "type": "cgroupv2",
+ "object": "cpuset.cpus",
+ "value": "1-7"
+ },
+ {
+ "type": "prlimit",
+ "object": "rtprio",
+ "value": "50"
+ }
+ ],
"fs": {
"mount": [
{
},
"resource": [
{
- "type": "cgroup",
+ "type": "cgroupv2",
"object": "cpuset.cpus",
- "value": "0-6"
+ "value": "1-7"
+ },
+ {
+ "type": "cgroupv2",
+ "object": "memory.max",
+ "value": "8G"
},
{
"type": "prlimit",
"HOME=/home/root"
]
},
+ "resource": [
+ {
+ "type": "cgroupv2",
+ "object": "cpuset.cpus",
+ "value": "1-7"
+ },
+ {
+ "type": "prlimit",
+ "object": "rtprio",
+ "value": "50"
+ }
+ ],
"fs": {
"mount": [
{
},
"resource": [
{
- "type": "cgroup",
+ "type": "cgroupv2",
"object": "cpuset.cpus",
- "value": "0-6"
+ "value": "1-7"
+ },
+ {
+ "type": "cgroupv2",
+ "object": "memory.max",
+ "value": "8G"
},
{
"type": "prlimit",
"HOME=/home/root"
]
},
+ "resource": [
+ {
+ "type": "cgroupv2",
+ "object": "cpuset.cpus",
+ "value": "1-7"
+ },
+ {
+ "type": "prlimit",
+ "object": "rtprio",
+ "value": "50"
+ }
+ ],
"fs": {
"mount": [
{
},
"resource": [
{
- "type": "cgroup",
+ "type": "cgroupv2",
"object": "cpuset.cpus",
"value": "0"
},
"HOME=/home/root"
]
},
+ "resource": [
+ {
+ "type": "cgroupv2",
+ "object": "cpuset.cpus",
+ "value": "0"
+ },
+ {
+ "type": "prlimit",
+ "object": "rtprio",
+ "value": "50"
+ }
+ ],
"fs": {
"mount": [
{