Skip to content

Commit

Permalink
Use Control Group v2 (#1329)
Browse files Browse the repository at this point in the history
* Disable real-time scheduling

It seems that Linux' cgroup v2 currenlty does not support RT scheduling.

* Remove Supervisor RT support flag

With CGroups v2 we can no longer support CPU resource allocation for
realtime scheduling.

* Bump OS Agent to 1.3.0 for CGroups v2 support
  • Loading branch information
agners authored Aug 9, 2022
1 parent 7409be7 commit 4d9b604
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion buildroot-external/board/asus/tinker/kernel.config
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_CFS_BANDWIDTH=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_RDMA=y
CONFIG_CGROUP_FREEZER=y
Expand Down
1 change: 0 additions & 1 deletion buildroot-external/kernel/docker.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CONFIG_POSIX_MQUEUE=y
CONFIG_CFQ_GROUP_IOSCHED=y
CONFIG_CFS_BANDWIDTH=y
CONFIG_FAIR_GROUP_SCHED=y
CONFIG_RT_GROUP_SCHED=y
CONFIG_NET_SCHED=y

CONFIG_CGROUPS=y
Expand Down
2 changes: 1 addition & 1 deletion buildroot-external/package/os-agent/os-agent.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

OS_AGENT_VERSION = 1.2.1
OS_AGENT_VERSION = 1.3.0
OS_AGENT_SITE = $(call github,home-assistant,os-agent,$(OS_AGENT_VERSION))
OS_AGENT_LICENSE = Apache License 2.0
OS_AGENT_LICENSE_FILES = LICENSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ RequiresMountsFor=/etc/docker /mnt/data /var/lib/docker

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --cpu-rt-runtime=950000 --storage-driver=overlay2 --log-driver=journald --log-opt tag="{{.ImageName}}/{{.Name}}" --data-root /mnt/data/docker
ExecStart=/usr/bin/dockerd -H fd:// --storage-driver=overlay2 --log-driver=journald --log-opt tag="{{.ImageName}}/{{.Name}}" --data-root /mnt/data/docker
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ if [ -z "${SUPERVISOR_CONTAINER_ID}" ]; then
-v ${SUPERVISOR_DATA}:/data:rw \
-e SUPERVISOR_SHARE=${SUPERVISOR_DATA} \
-e SUPERVISOR_NAME=hassio_supervisor \
-e SUPERVISOR_CPU_RT=1 \
-e SUPERVISOR_MACHINE=${SUPERVISOR_MACHINE} \
"${SUPERVISOR_IMAGE}:latest"

Expand Down

0 comments on commit 4d9b604

Please sign in to comment.