Change container manager configs from cgroupv1 to v2 04/30604/2
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 1 Dec 2024 06:40:34 +0000 (15:40 +0900)
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Sun, 1 Dec 2024 07:06:21 +0000 (16:06 +0900)
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>
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-agl-flutter-ivi-demo/nanopct6/agl-flutter-ivi-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-agl-flutter-ivi-demo/rcar-gen3/agl-flutter-ivi-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-agl-momi-ivi-demo/nanopct6/agl-momi-ivi-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-agl-momi-ivi-demo/rcar-gen3/agl-momi-ivi-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-agl-qt-ivi-demo/nanopct6/agl-qt-ivi-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-agl-qt-ivi-demo/rcar-gen3/agl-qt-ivi-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-cluster-demo/nanopct6/cluster-demo.json
meta-agl-ic-container/recipes-container/container-manager-config/cm-config-cluster-demo/rcar-gen3/cluster-demo.json

index 3066c4d..fc063db 100644 (file)
        },
        "resource": [
                {
-                       "type":         "cgroup",
+                       "type":         "cgroupv2",
                        "object":       "cpuset.cpus",
-                       "value":        "0-6"
+                       "value":        "1-7"
+               },
+               {
+                       "type":         "cgroupv2",
+                       "object":       "memory.max",
+                       "value":        "8G"
                },
                {
                        "type":         "prlimit",
index 78a03ef..f879973 100644 (file)
                        "HOME=/home/root"
                ]
        },
+       "resource": [
+               {
+                       "type":         "cgroupv2",
+                       "object":       "cpuset.cpus",
+                       "value":        "1-7"
+               },
+               {
+                       "type":         "prlimit",
+                       "object":       "rtprio",
+                       "value":        "50"
+               }
+       ],
        "fs": {
                "mount": [
                        {
index 25caed4..c88426f 100644 (file)
        },
        "resource": [
                {
-                       "type":         "cgroup",
+                       "type":         "cgroupv2",
                        "object":       "cpuset.cpus",
-                       "value":        "0-6"
+                       "value":        "1-7"
+               },
+               {
+                       "type":         "cgroupv2",
+                       "object":       "memory.max",
+                       "value":        "8G"
                },
                {
                        "type":         "prlimit",
index 97f3c3d..f48664d 100644 (file)
                        "HOME=/home/root"
                ]
        },
+       "resource": [
+               {
+                       "type":         "cgroupv2",
+                       "object":       "cpuset.cpus",
+                       "value":        "1-7"
+               },
+               {
+                       "type":         "prlimit",
+                       "object":       "rtprio",
+                       "value":        "50"
+               }
+       ],
        "fs": {
                "mount": [
                        {
index b74170e..ef92b4c 100644 (file)
        },
        "resource": [
                {
-                       "type":         "cgroup",
+                       "type":         "cgroupv2",
                        "object":       "cpuset.cpus",
-                       "value":        "0-6"
+                       "value":        "1-7"
+               },
+               {
+                       "type":         "cgroupv2",
+                       "object":       "memory.max",
+                       "value":        "8G"
                },
                {
                        "type":         "prlimit",
index ccbf66b..bf01e0e 100644 (file)
                        "HOME=/home/root"
                ]
        },
+       "resource": [
+               {
+                       "type":         "cgroupv2",
+                       "object":       "cpuset.cpus",
+                       "value":        "1-7"
+               },
+               {
+                       "type":         "prlimit",
+                       "object":       "rtprio",
+                       "value":        "50"
+               }
+       ],
        "fs": {
                "mount": [
                        {
index 90a9b0a..7058f5a 100644 (file)
@@ -28,7 +28,7 @@
        },
        "resource": [
                {
-                       "type":         "cgroup",
+                       "type":         "cgroupv2",
                        "object":       "cpuset.cpus",
                        "value":        "0"
                },
index c0bff97..2aa0dcf 100644 (file)
                        "HOME=/home/root"
                ]
        },
+       "resource": [
+               {
+                       "type":         "cgroupv2",
+                       "object":       "cpuset.cpus",
+                       "value":        "0"
+               },
+               {
+                       "type":         "prlimit",
+                       "object":       "rtprio",
+                       "value":        "50"
+               }
+       ],
        "fs": {
                "mount": [
                        {