home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
5.03k stars 985 forks source link

CPU usage bumped from 2% to 10% after Operating System 10.0 upgrade (caused by containerd) #2476

Closed elmr91 closed 1 year ago

elmr91 commented 1 year ago

Describe the issue you are experiencing

I have juste upgraded my proxmox HAOS VM to OS 10 I immediately noticed CPU usage raising from around 2% to 10% after upgrade.

"docker stats" shows a normal container usage / nearly no load.

CONTAINER ID   NAME                      CPU %     MEM USAGE / LIMIT     MEM %     NET I/O           BLOCK I/O        PIDS
4448c00d8d7e   addon_core_configurator   0.03%     30.43MiB / 1.925GiB   1.54%     892kB / 843B      23.9MB / 307kB   8
01cb0b8343ce   addon_core_ssh            0.00%     27.51MiB / 1.925GiB   1.40%     943kB / 31.7kB    25.4MB / 393kB   12
7920e2a0c17a   hassio_multicast          0.20%     848KiB / 1.925GiB     0.04%     0B / 0B           61.4kB / 102kB   4
f7aefac69874   hassio_audio              0.00%     23.89MiB / 1.925GiB   1.21%     911kB / 0B        21.3MB / 315kB   13
1d6b8aefd115   hassio_dns                0.00%     29.41MiB / 1.925GiB   1.49%     935kB / 26.7kB    24.8MB / 106kB   11
a4872c2f1be6   hassio_cli                0.00%     13.92MiB / 1.925GiB   0.71%     917kB / 4.07kB    13.2MB / 283kB   9
04f375c2f3cd   hassio_supervisor         0.00%     106.5MiB / 1.925GiB   5.40%     1.31MB / 1.07MB   61.5MB / 958kB   24
13b89612a676   homeassistant             0.80%     354.9MiB / 1.925GiB   18.00%    0B / 0B           203MB / 116MB    33
47dda87b99d2   hassio_observer           0.00%     13.68MiB / 1.925GiB   0.69%     927kB / 9.84kB    12MB / 106kB     8 

"top" shows containerd is using a consistent 6-8% CPU (this is the only process using significant CPU load)

   349 root      20   0 1394.2m  43.1m   7.2   2.2   5:04.68 S  `- /usr/bin/containerd

I rebooted the VM, but CPU load stays the same:
2023-04-18 18_12_20-Clipboard

What operating system image do you use?

ova (for Virtual Machines)

What version of Home Assistant Operating System is installed?

10

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

1.Install 9.5 ova image in proxmox 2.Upgrade to Operating System 10 3. ...

Anything in the Supervisor logs that might be useful for us?

23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.hostname] Load dbus interface org.freedesktop.hostname1
23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.logind] Load dbus interface org.freedesktop.login1
23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.network] Load dbus interface org.freedesktop.NetworkManager
23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.rauc] Load dbus interface de.pengutronix.rauc
23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.resolved] Load dbus interface org.freedesktop.resolve1
23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.systemd] Load dbus interface org.freedesktop.systemd1
23-04-18 18:22:24 INFO (MainThread) [supervisor.dbus.timedate] Load dbus interface org.freedesktop.timedate1
23-04-18 18:22:24 INFO (MainThread) [supervisor.host.services] Updating service information
23-04-18 18:22:24 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-04-18 18:22:24 INFO (MainThread) [supervisor.host.network] Updating local network information
23-04-18 18:22:24 INFO (MainThread) [supervisor.host.apparmor] Loading AppArmor Profiles: {'hassio-supervisor'}
23-04-18 18:22:24 INFO (MainThread) [supervisor.docker.monitor] Started docker events monitor
23-04-18 18:22:24 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-cli with version 2022.11.0
23-04-18 18:22:24 INFO (MainThread) [supervisor.plugins.cli] Starting CLI plugin
23-04-18 18:22:24 INFO (SyncWorker_1) [supervisor.docker.interface] Cleaning hassio_cli application
23-04-18 18:22:25 INFO (SyncWorker_1) [supervisor.docker.cli] Starting CLI ghcr.io/home-assistant/amd64-hassio-cli with version 2022.11.0 - 172.30.32.5
23-04-18 18:22:25 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-dns with version 2022.04.1
23-04-18 18:22:25 INFO (MainThread) [supervisor.plugins.dns] Starting CoreDNS plugin
23-04-18 18:22:25 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning hassio_dns application
23-04-18 18:22:25 INFO (SyncWorker_0) [supervisor.docker.dns] Starting DNS ghcr.io/home-assistant/amd64-hassio-dns with version 2022.04.1 - 172.30.32.3
23-04-18 18:22:25 INFO (MainThread) [supervisor.plugins.dns] Updated /etc/resolv.conf
23-04-18 18:22:25 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-audio with version 2022.07.0
23-04-18 18:22:25 INFO (MainThread) [supervisor.plugins.audio] Starting Audio plugin
23-04-18 18:22:25 INFO (SyncWorker_1) [supervisor.docker.interface] Cleaning hassio_audio application
23-04-18 18:22:26 INFO (SyncWorker_1) [supervisor.docker.audio] Starting Audio ghcr.io/home-assistant/amd64-hassio-audio with version 2022.07.0 - 172.30.32.4
23-04-18 18:22:26 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-observer with version 2021.10.0
23-04-18 18:22:26 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/amd64-hassio-multicast with version 2022.02.0
23-04-18 18:22:26 INFO (MainThread) [supervisor.plugins.multicast] Starting Multicast plugin
23-04-18 18:22:26 INFO (SyncWorker_1) [supervisor.docker.interface] Cleaning hassio_multicast application
23-04-18 18:22:26 INFO (SyncWorker_1) [supervisor.docker.multicast] Starting Multicast ghcr.io/home-assistant/amd64-hassio-multicast with version 2022.02.0 - Host
23-04-18 18:22:26 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-18 18:22:26 INFO (MainThread) [supervisor.homeassistant.secrets] Loaded 1 Home Assistant secrets
23-04-18 18:22:26 INFO (SyncWorker_0) [supervisor.docker.interface] Attaching to ghcr.io/home-assistant/qemux86-64-homeassistant with version 2023.4.5
23-04-18 18:22:26 INFO (MainThread) [supervisor.os.manager] Detect Home Assistant Operating System 10.0 / BootSlot B
23-04-18 18:22:27 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/5c53de3b repository
23-04-18 18:22:27 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/core repository
23-04-18 18:22:27 INFO (MainThread) [supervisor.store.git] Loading add-on /data/addons/git/a0d7b954 repository
23-04-18 18:22:27 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 69 new - 0 remove
23-04-18 18:22:27 INFO (MainThread) [supervisor.addons] Found 2 installed add-ons
23-04-18 18:22:27 INFO (SyncWorker_1) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-ssh with version 9.6.1
23-04-18 18:22:27 INFO (SyncWorker_2) [supervisor.docker.interface] Attaching to homeassistant/amd64-addon-configurator with version 5.5.0
23-04-18 18:22:27 INFO (MainThread) [supervisor.backups.manager] Found 5 backup files
23-04-18 18:22:27 INFO (MainThread) [supervisor.discovery] Loaded 0 messages
23-04-18 18:22:27 INFO (MainThread) [supervisor.ingress] Loaded 0 ingress sessions
23-04-18 18:22:27 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.SETUP
23-04-18 18:22:27 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-04-18 18:22:27 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
23-04-18 18:22:27 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 18:22:27 INFO (MainThread) [supervisor.jobs] 'ResolutionFixup.run_autofix' blocked from execution, system is not running - CoreState.SETUP
23-04-18 18:22:27 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.SETUP
23-04-18 18:22:27 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 18:22:27 INFO (MainThread) [__main__] Running Supervisor
23-04-18 18:22:27 INFO (MainThread) [supervisor.os.manager] Rauc: B - marked slot kernel.1 as good
23-04-18 18:22:27 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.INITIALIZE' starting 0 add-ons
23-04-18 18:22:27 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SYSTEM' starting 0 add-ons
23-04-18 18:22:27 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.SERVICES' starting 1 add-ons
23-04-18 18:22:27 INFO (SyncWorker_2) [supervisor.docker.interface] Cleaning addon_core_ssh application
23-04-18 18:22:28 INFO (SyncWorker_2) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-ssh with version 9.6.1
23-04-18 18:22:33 INFO (MainThread) [supervisor.core] Start Home Assistant Core
23-04-18 18:22:33 INFO (SyncWorker_3) [supervisor.docker.interface] Starting homeassistant
23-04-18 18:22:33 INFO (MainThread) [supervisor.homeassistant.core] Wait until Home Assistant is ready
23-04-18 18:22:36 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.STARTUP
23-04-18 18:22:36 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 18:22:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/home-assistant/addons repository
23-04-18 18:22:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/hassio-addons/repository repository
23-04-18 18:22:37 INFO (MainThread) [supervisor.store.git] Update add-on https://github.com/esphome/home-assistant-addon repository
23-04-18 18:22:38 INFO (MainThread) [supervisor.homeassistant.api] Updated Home Assistant API token
23-04-18 18:22:38 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-18 18:22:38 INFO (MainThread) [supervisor.store] Loading add-ons from store: 69 all - 0 new - 0 remove
23-04-18 18:23:09 INFO (MainThread) [supervisor.homeassistant.core] Detect a running Home Assistant instance
23-04-18 18:23:09 INFO (MainThread) [supervisor.addons] Phase 'AddonStartup.APPLICATION' starting 1 add-ons
23-04-18 18:23:09 INFO (SyncWorker_0) [supervisor.docker.interface] Cleaning addon_core_configurator application
23-04-18 18:23:09 INFO (SyncWorker_0) [supervisor.docker.addon] Starting Docker add-on homeassistant/amd64-addon-configurator with version 5.5.0
23-04-18 18:23:14 INFO (MainThread) [supervisor.misc.tasks] All core tasks are scheduled
23-04-18 18:23:14 INFO (MainThread) [supervisor.core] Supervisor is up and running
23-04-18 18:23:14 INFO (MainThread) [supervisor.host.info] Updating local host information
23-04-18 18:23:14 INFO (MainThread) [supervisor.updater] Fetching update data from https://version.home-assistant.io/stable.json
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.check] Starting system checks with state CoreState.RUNNING
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_IPV6_ERROR/ContextType.DNS_SERVER
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.SECURITY/ContextType.CORE
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.FREE_SPACE/ContextType.SYSTEM
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.DNS_SERVER_FAILED/ContextType.DNS_SERVER
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.MULTIPLE_DATA_DISKS/ContextType.SYSTEM
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.TRUST/ContextType.SUPERVISOR
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.PWNED/ContextType.ADDON
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.NO_CURRENT_BACKUP/ContextType.SYSTEM
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.module] Create new suggestion SuggestionType.CREATE_FULL_BACKUP - ContextType.SYSTEM / None
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.module] Create new issue IssueType.NO_CURRENT_BACKUP - ContextType.SYSTEM / None
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.checks.base] Run check for IssueType.IPV4_CONNECTION_PROBLEM/ContextType.SYSTEM
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.check] System checks complete
23-04-18 18:23:14 INFO (MainThread) [supervisor.resolution.evaluate] Starting system evaluation with state CoreState.RUNNING
23-04-18 18:23:15 INFO (MainThread) [supervisor.resolution.evaluate] System evaluation complete
23-04-18 18:23:15 INFO (MainThread) [supervisor.resolution.fixup] Starting system autofix at state CoreState.RUNNING
23-04-18 18:23:15 INFO (MainThread) [supervisor.resolution.fixup] System autofix complete
23-04-18 18:23:15 INFO (MainThread) [supervisor.host.services] Updating service information
23-04-18 18:23:15 INFO (MainThread) [supervisor.host.network] Updating local network information
23-04-18 18:23:15 INFO (MainThread) [supervisor.host.sound] Updating PulseAudio information
23-04-18 18:23:15 INFO (MainThread) [supervisor.host.manager] Host information reload completed

Anything in the Host logs that might be useful for us?

Apr 18 16:22:27 homeassistant bluetoothd[2232]: Bluetooth daemon 5.66
Apr 18 16:22:27 homeassistant systemd[1]: Started Bluetooth service.
Apr 18 16:22:27 homeassistant bluetoothd[2232]: Starting SDP server
Apr 18 16:22:27 homeassistant kernel: Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Apr 18 16:22:27 homeassistant kernel: Bluetooth: BNEP filters: protocol multicast
Apr 18 16:22:27 homeassistant kernel: Bluetooth: BNEP socket layer initialized
Apr 18 16:22:27 homeassistant bluetoothd[2232]: Bluetooth management interface 1.22 initialized
Apr 18 16:22:27 homeassistant os-agent[104]: INFO: 2023/04/18 16:22:27 main.go:94: Diagnostics is now true
Apr 18 16:22:27 homeassistant systemd[1]: var-lib-docker-overlay2-2eaf0ad15fa660ee1b2604082b0b49856c12481a72f486c60fa2a9d809f4a7ed\x2dinit-merged.mount: Deactivated successfully.
Apr 18 16:22:27 homeassistant systemd[1]: mnt-data-docker-overlay2-2eaf0ad15fa660ee1b2604082b0b49856c12481a72f486c60fa2a9d809f4a7ed\x2dinit-merged.mount: Deactivated successfully.
Apr 18 16:22:27 homeassistant systemd[1]: var-lib-docker-overlay2-2eaf0ad15fa660ee1b2604082b0b49856c12481a72f486c60fa2a9d809f4a7ed-merged.mount: Deactivated successfully.
Apr 18 16:22:27 homeassistant systemd[1]: mnt-data-docker-overlay2-2eaf0ad15fa660ee1b2604082b0b49856c12481a72f486c60fa2a9d809f4a7ed-merged.mount: Deactivated successfully.
Apr 18 16:22:27 homeassistant kernel: hassio: port 6(vethf8c4077) entered blocking state
Apr 18 16:22:27 homeassistant kernel: hassio: port 6(vethf8c4077) entered disabled state
Apr 18 16:22:27 homeassistant kernel: device vethf8c4077 entered promiscuous mode
Apr 18 16:22:27 homeassistant NetworkManager[319]: <info>  [1681834947.8072] manager: (vethba72fe7): new Veth device (/org/freedesktop/NetworkManager/Devices/17)
Apr 18 16:22:27 homeassistant NetworkManager[319]: <info>  [1681834947.8085] manager: (vethf8c4077): new Veth device (/org/freedesktop/NetworkManager/Devices/18)
Apr 18 16:22:27 homeassistant systemd[1]: Started libcontainer container 585c29bcc7be293d23741540dbb4cc2af1bd3a22b3685bc4f02f04248e9b9f09.
Apr 18 16:22:28 homeassistant kernel: eth0: renamed from vethba72fe7
Apr 18 16:22:28 homeassistant kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethf8c4077: link becomes ready
Apr 18 16:22:28 homeassistant kernel: hassio: port 6(vethf8c4077) entered blocking state
Apr 18 16:22:28 homeassistant kernel: hassio: port 6(vethf8c4077) entered forwarding state
Apr 18 16:22:28 homeassistant NetworkManager[319]: <info>  [1681834948.0849] device (vethf8c4077): carrier: link connected
Apr 18 16:22:33 homeassistant systemd[1]: run-docker-runtime\x2drunc-moby-13b89612a676908649a9c53efe151781e6267309bfde99934415abd8ec969c83-runc.mHMj5m.mount: Deactivated successfully.
Apr 18 16:22:33 homeassistant systemd[1]: Started libcontainer container 13b89612a676908649a9c53efe151781e6267309bfde99934415abd8ec969c83.
Apr 18 16:22:33 homeassistant kernel: kauditd_printk_skb: 128 callbacks suppressed
Apr 18 16:22:33 homeassistant kernel: audit: type=1334 audit(1681834953.354:193): prog-id=49 op=LOAD
Apr 18 16:22:33 homeassistant kernel: audit: type=1300 audit(1681834953.354:193): arch=c000003e syscall=321 success=yes exit=15 a0=5 a1=c00018d7f8 a2=78 a3=0 items=0 ppid=2520 pid=2531 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
Apr 18 16:22:33 homeassistant kernel: audit: type=1327 audit(1681834953.354:193): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F31336238393631326136373639303836343961396335336566
Apr 18 16:22:33 homeassistant kernel: audit: type=1334 audit(1681834953.355:194): prog-id=50 op=LOAD
Apr 18 16:22:33 homeassistant kernel: audit: type=1300 audit(1681834953.355:194): arch=c000003e syscall=321 success=yes exit=17 a0=5 a1=c00018d590 a2=78 a3=0 items=0 ppid=2520 pid=2531 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
Apr 18 16:22:33 homeassistant kernel: audit: type=1327 audit(1681834953.355:194): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F31336238393631326136373639303836343961396335336566
Apr 18 16:22:33 homeassistant kernel: audit: type=1334 audit(1681834953.355:195): prog-id=50 op=UNLOAD
Apr 18 16:22:33 homeassistant kernel: audit: type=1334 audit(1681834953.356:196): prog-id=49 op=UNLOAD
Apr 18 16:22:33 homeassistant kernel: audit: type=1334 audit(1681834953.356:197): prog-id=51 op=LOAD
Apr 18 16:22:33 homeassistant kernel: audit: type=1300 audit(1681834953.356:197): arch=c000003e syscall=321 success=yes exit=15 a0=5 a1=c00018da50 a2=78 a3=0 items=0 ppid=2520 pid=2531 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
Apr 18 16:22:37 homeassistant systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Apr 18 16:22:54 homeassistant systemd[1]: systemd-timedated.service: Deactivated successfully.
Apr 18 16:22:54 homeassistant kernel: kauditd_printk_skb: 1 callbacks suppressed
Apr 18 16:22:54 homeassistant kernel: audit: type=1334 audit(1681834974.177:198): prog-id=26 op=UNLOAD
Apr 18 16:22:54 homeassistant kernel: audit: type=1334 audit(1681834974.177:199): prog-id=25 op=UNLOAD
Apr 18 16:22:54 homeassistant kernel: audit: type=1334 audit(1681834974.177:200): prog-id=24 op=UNLOAD
Apr 18 16:22:57 homeassistant systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Apr 18 16:22:57 homeassistant kernel: audit: type=1334 audit(1681834977.264:201): prog-id=14 op=UNLOAD
Apr 18 16:22:57 homeassistant kernel: audit: type=1334 audit(1681834977.264:202): prog-id=13 op=UNLOAD
Apr 18 16:22:57 homeassistant kernel: audit: type=1334 audit(1681834977.264:203): prog-id=12 op=UNLOAD
Apr 18 16:23:09 homeassistant systemd[1]: var-lib-docker-overlay2-7d815f3ad31630b9e27b12657d4e783170bec95b305873ed51056f3844933e1f\x2dinit-merged.mount: Deactivated successfully.
Apr 18 16:23:09 homeassistant systemd[1]: mnt-data-docker-overlay2-7d815f3ad31630b9e27b12657d4e783170bec95b305873ed51056f3844933e1f\x2dinit-merged.mount: Deactivated successfully.
Apr 18 16:23:09 homeassistant systemd[1]: var-lib-docker-overlay2-7d815f3ad31630b9e27b12657d4e783170bec95b305873ed51056f3844933e1f-merged.mount: Deactivated successfully.
Apr 18 16:23:09 homeassistant systemd[1]: mnt-data-docker-overlay2-7d815f3ad31630b9e27b12657d4e783170bec95b305873ed51056f3844933e1f-merged.mount: Deactivated successfully.
Apr 18 16:23:09 homeassistant NetworkManager[319]: <info>  [1681834989.5172] manager: (vethaf7f565): new Veth device (/org/freedesktop/NetworkManager/Devices/19)
Apr 18 16:23:09 homeassistant kernel: hassio: port 7(vethe13a13f) entered blocking state
Apr 18 16:23:09 homeassistant kernel: hassio: port 7(vethe13a13f) entered disabled state
Apr 18 16:23:09 homeassistant kernel: device vethe13a13f entered promiscuous mode
Apr 18 16:23:09 homeassistant kernel: audit: type=1700 audit(1681834989.517:204): dev=vethe13a13f prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
Apr 18 16:23:09 homeassistant kernel: audit: type=1300 audit(1681834989.517:204): arch=c000003e syscall=44 success=yes exit=40 a0=c a1=c000a38690 a2=28 a3=0 items=0 ppid=1 pid=397 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="dockerd" exe="/usr/bin/dockerd" subj=unconfined key=(null)
Apr 18 16:23:09 homeassistant kernel: audit: type=1327 audit(1681834989.517:204): proctitle=2F7573722F62696E2F646F636B657264002D480066643A2F2F002D2D636F6E7461696E6572643D2F72756E2F636F6E7461696E6572642F636F6E7461696E6572642E736F636B
Apr 18 16:23:09 homeassistant NetworkManager[319]: <info>  [1681834989.5216] manager: (vethe13a13f): new Veth device (/org/freedesktop/NetworkManager/Devices/20)
Apr 18 16:23:09 homeassistant systemd[1]: Started libcontainer container 481308628ffcd074969046225f8a9435aea56255ad7b6d1eb690b2e3f270004e.
Apr 18 16:23:09 homeassistant kernel: audit: type=1334 audit(1681834989.625:205): prog-id=52 op=LOAD
Apr 18 16:23:09 homeassistant kernel: audit: type=1334 audit(1681834989.625:206): prog-id=53 op=LOAD
Apr 18 16:23:09 homeassistant kernel: audit: type=1300 audit(1681834989.625:206): arch=c000003e syscall=321 success=yes exit=16 a0=5 a1=c00018d7f8 a2=78 a3=0 items=0 ppid=2881 pid=2890 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
Apr 18 16:23:09 homeassistant kernel: audit: type=1327 audit(1681834989.625:206): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F34383133303836323866666364303734393639303436323235
Apr 18 16:23:09 homeassistant kernel: audit: type=1334 audit(1681834989.625:207): prog-id=54 op=LOAD
Apr 18 16:23:09 homeassistant kernel: audit: type=1300 audit(1681834989.625:207): arch=c000003e syscall=321 success=yes exit=18 a0=5 a1=c00018d590 a2=78 a3=0 items=0 ppid=2881 pid=2890 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="runc" exe="/usr/bin/runc" subj=unconfined key=(null)
Apr 18 16:23:09 homeassistant kernel: audit: type=1327 audit(1681834989.625:207): proctitle=72756E63002D2D726F6F74002F7661722F72756E2F646F636B65722F72756E74696D652D72756E632F6D6F6279002D2D6C6F67002F72756E2F636F6E7461696E6572642F696F2E636F6E7461696E6572642E72756E74696D652E76322E7461736B2F6D6F62792F34383133303836323866666364303734393639303436323235
Apr 18 16:23:09 homeassistant kernel: eth0: renamed from vethaf7f565
Apr 18 16:23:09 homeassistant kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethe13a13f: link becomes ready
Apr 18 16:23:09 homeassistant kernel: hassio: port 7(vethe13a13f) entered blocking state
Apr 18 16:23:09 homeassistant kernel: hassio: port 7(vethe13a13f) entered forwarding state
Apr 18 16:23:09 homeassistant NetworkManager[319]: <info>  [1681834989.7906] device (vethe13a13f): carrier: link connected
Apr 18 16:23:14 homeassistant kernel: kauditd_printk_skb: 29 callbacks suppressed
Apr 18 16:23:14 homeassistant kernel: audit: type=1334 audit(1681834994.860:219): prog-id=56 op=LOAD
Apr 18 16:23:14 homeassistant kernel: audit: type=1334 audit(1681834994.861:220): prog-id=57 op=LOAD
Apr 18 16:23:14 homeassistant kernel: audit: type=1334 audit(1681834994.861:221): prog-id=58 op=LOAD
Apr 18 16:23:14 homeassistant systemd[1]: Starting Hostname Service...
Apr 18 16:23:14 homeassistant systemd[1]: Started Hostname Service.
Apr 18 16:23:15 homeassistant kernel: audit: type=1334 audit(1681834995.000:222): prog-id=59 op=LOAD
Apr 18 16:23:15 homeassistant kernel: audit: type=1334 audit(1681834995.001:223): prog-id=60 op=LOAD
Apr 18 16:23:15 homeassistant kernel: audit: type=1334 audit(1681834995.001:224): prog-id=61 op=LOAD
Apr 18 16:23:15 homeassistant systemd[1]: Starting Time & Date Service...
Apr 18 16:23:15 homeassistant systemd[1]: Started Time & Date Service.
Apr 18 16:23:45 homeassistant systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Apr 18 16:23:45 homeassistant kernel: audit: type=1334 audit(1681835025.038:225): prog-id=58 op=UNLOAD
Apr 18 16:23:45 homeassistant kernel: audit: type=1334 audit(1681835025.038:226): prog-id=57 op=UNLOAD
Apr 18 16:23:45 homeassistant kernel: audit: type=1334 audit(1681835025.038:227): prog-id=56 op=UNLOAD
Apr 18 16:23:45 homeassistant systemd[1]: systemd-timedated.service: Deactivated successfully.
Apr 18 16:23:45 homeassistant kernel: audit: type=1334 audit(1681835025.161:228): prog-id=61 op=UNLOAD
Apr 18 16:23:45 homeassistant kernel: audit: type=1334 audit(1681835025.161:229): prog-id=60 op=UNLOAD
Apr 18 16:23:45 homeassistant kernel: audit: type=1334 audit(1681835025.161:230): prog-id=59 op=UNLOAD
Apr 18 16:32:42 homeassistant dropbear[3091]: [3091] Apr 18 16:32:42 Child connection from 192.168.0.12:50710
Apr 18 16:32:42 homeassistant dropbear[3091]: [3091] Apr 18 16:32:42 Pubkey auth succeeded for 'root' with ssh-rsa key SHA256:5KG9InxtuSAC5RtRQ/pdqJU5u4duuGFcXq+KRToAnQc from 192.168.0.12:50710
Apr 18 16:37:22 homeassistant systemd[1]: Starting Cleanup of Temporary Directories...
Apr 18 16:37:22 homeassistant systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully.
Apr 18 16:37:22 homeassistant systemd[1]: Finished Cleanup of Temporary Directories.
Apr 18 16:37:22 homeassistant systemd[1]: run-credentials-systemd\x2dtmpfiles\x2dclean.service.mount: Deactivated successfully.
Apr 18 16:37:38 homeassistant kernel: audit: type=1334 audit(1681835858.696:231): prog-id=62 op=LOAD
Apr 18 16:37:38 homeassistant systemd-timesyncd[1197]: Network configuration changed, trying to establish connection.
Apr 18 16:37:38 homeassistant systemd-timesyncd[1197]: Contacted time server 192.168.0.254:123 (192.168.0.254).
Apr 18 16:37:38 homeassistant systemd[1]: Started Journal Gateway Service.
Apr 18 16:37:38 homeassistant systemd-journal-gatewayd[3113]: microhttpd: MHD_OPTION_EXTERNAL_LOGGER is not the first option specified for the daemon. Some messages may be printed by the standard MHD logger.

System information

`## System Information

version core-2023.4.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 6.1.24
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4975 Installed Version | 1.32.1 Stage | running Available Repositories | 1274 Downloaded Repositories | 3
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.0 -- | -- update_channel | stable supervisor_version | supervisor-2023.04.0 agent_version | 1.5.1 docker_version | 23.0.3 disk_total | 30.8 GB disk_used | 3.9 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | Terminal & SSH (9.6.1), File editor (5.5.0)
Dashboards dashboards | 2 -- | -- resources | 1 views | 5 mode | storage
Recorder oldest_recorder_run | 12 avril 2023 à 19:39 -- | -- current_recorder_run | 18 avril 2023 à 18:22 estimated_db_size | 179.41 MiB database_engine | sqlite database_version | 3.38.5 [
`](url) ### Additional information _No response_
agners commented 1 year ago

On my machine with KVM hypervisor (which is also used by Proxmox) containerd uses about 0.7% on HAOS 10. But I am running on a rather new AMD CPU.

What type of system are you running on?

Is maybe journalctl -f -u containerd showing something?

elmr91 commented 1 year ago

No particular log since boot:

Apr 18 16:22:27 homeassistant containerd[349]: time="2023-04-18T16:22:27.878453230Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/585c29bcc7be293d23741540dbb4cc2af1bd3a22b3685bc4f02f04248e9b9f09 pid=2290 runtime=io.containerd.runc.v2
Apr 18 16:22:33 homeassistant containerd[349]: time="2023-04-18T16:22:33.269643073Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
Apr 18 16:22:33 homeassistant containerd[349]: time="2023-04-18T16:22:33.269729478Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
Apr 18 16:22:33 homeassistant containerd[349]: time="2023-04-18T16:22:33.269749452Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Apr 18 16:22:33 homeassistant containerd[349]: time="2023-04-18T16:22:33.270792200Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/13b89612a676908649a9c53efe151781e6267309bfde99934415abd8ec969c83 pid=2520 runtime=io.containerd.runc.v2
Apr 18 16:23:09 homeassistant containerd[349]: time="2023-04-18T16:23:09.585064770Z" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
Apr 18 16:23:09 homeassistant containerd[349]: time="2023-04-18T16:23:09.585120961Z" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
Apr 18 16:23:09 homeassistant containerd[349]: time="2023-04-18T16:23:09.585137376Z" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Apr 18 16:23:09 homeassistant containerd[349]: time="2023-04-18T16:23:09.585665355Z" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/481308628ffcd074969046225f8a9435aea56255ad7b6d1eb690b2e3f270004e pid=2881 runtime=io.containerd.runc.v2

Last log line was 30 minutes ago

agners commented 1 year ago

Also logs in general (using journalctl -f) is there some logging going on?

elmr91 commented 1 year ago

Nothing particular:

Apr 18 17:00:40 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:00:51 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:01:01 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:01:12 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:01:22 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:01:33 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:01:43 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:02:23 homeassistant hassio_supervisor[397]: Apr 18 17:03:06 homeassistant qemu-ga[346]: info: guest-ping called Apr 18 17:03:06 homeassistant qemu-ga[346]: info: guest-fsfreeze called

Last line is related to a VM backup I made few minutes ago.

elmr91 commented 1 year ago

System is running a low power but quite efficient CPU: 4 x Intel(R) Core(TM) i5-7500T CPU @ 2.70GHz (1 Socket) 24 GB RAM (2 GB allocated for HAOS VM)

elmr91 commented 1 year ago

I restored backup taken during last night (HAOS 9.5 / before upgrade) CPU is back to normal (2%)

No containerd process using CPU

wokkeltje13 commented 1 year ago

See same behavior but not so big, probably a bit more powerful CPU image

The spikes jou see is from the update and corresponding reboot, but after the upgrade you see a slightly higher CPU usage and MEM usage (should be lower after a fresh reboot, but is higher)

dsolva commented 1 year ago

Im using proxmox and also experienced an increase from 6% to 9% on cpu but i dont think I have a more powerful cpu. containerd using 3-4%. Cpu is 2x Intel J4025.

agners commented 1 year ago

Higher RAM usage is somewhat expected as we tuned VM swapiness to use less swap (since we use zswap now, which is stored on the data disk).

As for CPU load: I can't really reproduce this here on my KVM installation, it seems to be about the same on HAOS 9.5 and 10.0: When running top, it appears and disappears from the list, when it appears it is at just 0.7%.

I've also seen that CPU frequency scaling is behaving differently on the new kernel version. Maybe this influences the reported CPU load, not sure. However, since this is virtualization, maybe unlikely :thinking:

evilspoons commented 1 year ago

Similar results here. Host is Proxmox VE 7.4-3, i5-7500. Went from 3.73 GiB to 4.11 GiB RAM (no big deal), CPU went from 2.4-2.5% before upgrade to 3.5% after upgrade.

Virtual machine configuration is 8 GB RAM, 4 processors with "host" as CPU type setting, OVMF (UEFI), i440fx, virtio scsi and LAN, and one USB device passed through.

wokkeltje13 commented 1 year ago

Not sure if CPU is more powerful 4 x Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (1 Socket)

Did a rollback You can see CPU is like before and MEM is a lot lower than before (system had an uptime of 5 days when running 9.5) So 10.0 after the reboot used 900MB more mem image

agners commented 1 year ago

So 10.0 after the reboot used 900MB more mem

As I've said before, this is expected: Home Assistant OS 9.5 used a different swapiness value, meaning it more happily swapped things out (to zram, means part of the memory will get compressed and swapped out). With OS 10.0 it will swap out much later, use more RAM as long as available. Overall, this should not change much, maybe some tasks will now be a bit faster (since the system doesn't need to decompress pages swapped out to zram), or a bit slower (since we work with a slightly smaller page cache), YMMV.

pickonedev commented 1 year ago

CPU and MEMORY 100% usage with the new update...

There is any way to downgrade?

elmr91 commented 1 year ago

@evilspoons & @wokkeltje13, we have very similar CPU. I think I know why upgrade from 9.5 to 10 shows a different CPU behavior on my system: I'm using "powersave" CPU governor on host system.

I switched back to "performance" on host : echo "performance" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

CPU usage on HAOS 10 decreases to 4.5 % (same increase as other have seen): 2023-04-18 20_12_58-Clipboard

Using powersave host governor magnifies CPU usage difference between HAOS 9.5 & 10

Upgrade from HAOS 9.5 to 10 increases CPU usage. It has a direct impact on energy usage. My system rose from 6-7 Watt to 8-9 Watt after upgrade

2023-04-18 20_17_58-Clipboard

Less than 10W is still a very good value for a hosting system, but HAOS 10 is less energy efficient than 9.5. It seems related to the new docker version.

wokkeltje13 commented 1 year ago

mine is also on powersave, did not change during tests with 10.0

pickonedev commented 1 year ago

image

Mine 100% CPU and Memory. Anyone knows how to downgrade the OS version?

dsolva commented 1 year ago

@elmr91 makes sense why your cpu increase seemed greater due to power safe. I have powersafe turned off and the upgrade caused around 0.8watt increase only (i assume because my processor tdp is just 10W). Almost a watt is a lot for my "power efficient" NUC.

elmr91 commented 1 year ago

@elmr91 makes sense why your cpu increase seemed greater due to power safe. I have powersafe turned off and the upgrade caused around 0.8watt increase only (i assume because my processor tdp is just 10W). Almost a watt is a lot for my "power efficient" NUC.

mine (i5-7500T) is a 35W TDP processor @wokkeltje13's (i5-6500) and @evilspoons's (i5-7500) are 65W TDP processors They should have also few Watt more on HAOS 10

agners commented 1 year ago

Mine 100% CPU and Memory. Anyone knows how to downgrade the OS version?

Use this command in the command line:

ha os update --version 9.5
pickonedev commented 1 year ago

@agners Thank you!

Any idea why my CPU it is going to full 100 percentage? Memory as well... I use a PC Dell OptiPlex 3090 MFF, Intel® Core™ i7-10700T @4.50 GHz, 32GB DDR4

agners commented 1 year ago

Any idea why my CPU it is going to full 100 percentage? Memory as well... I use a PC Dell OptiPlex 3090 MFF, Intel® Core™ i7-10700T @4.50 GHz, 32GB DDR4

Are you using the motionEye add-on?

Taronaga commented 1 year ago

nuc Intel® Celeron® Processor N3060 after 80% update also problem with mqtt, rolled back to 9.5, loading became 10-12%, MQTT 6.1.3 - normal flight. p.s. How did the problems start with updating Mosquitto broker to 6.2.0 - I'm already afraid to update, and so I sat without light for half a day image

pickonedev commented 1 year ago

Any idea why my CPU it is going to full 100 percentage? Memory as well... I use a PC Dell OptiPlex 3090 MFF, Intel® Core™ i7-10700T @4.50 GHz, 32GB DDR4

Are you using the motionEye add-on?

Yes, I use MotionEye addon as well as other addons.

pickonedev commented 1 year ago

nuc Intel® Celeron® Processor N3060 after 80% update also problem with mqtt, rolled back to 9.5, loading became 10-12%, MQTT 6.1.3 - normal flight. p.s. How did the problems start with updating Mosquitto broker to 6.2.0 - I'm already afraid to update, and so I sat without light for half a day image

For me, MQTT 6.20 doesn't have any problem. Only the new OS update made my CPU and MEM going like crazy :-)

elmr91 commented 1 year ago

After few hours idling, I can confirm OS10 has a direct impact on host CPU usage (linked to containerd daemon CPU in HAOS VM)

2023-04-19 09_39_27-Clipboard

gfn256 commented 1 year ago

Running Proxmox on i5-6500T 8gb ram with HASSOS vm on 2 cores 4gb ram Increased VM CPU usage from ver 9.5 to 10.0 more than 3% Proxmox node itself (above machine - all 4 cores) shows increase of about 1% (sometimes even less). Not seeing much changed RAM use on either.

CPU temp on average gone up 2°C (to 39°C) - This could probably be used to show increased energy cost!

Also of interest, the upgrade was completely seamless, with NO errors what so ever, the whole thing took maybe 1-2 minutes.

Edit: After running system for about 8 hours, I'm actually observing an increased temp average of about 5°C (to 42°C), this in my book is WASTED energy, and SHOULD be addressed. Other stats seem as above in OP. I'll also note, that as a whole I find the system snappier and generally faster, such as boot-up time, web browser response etc.. This is welcome! Thanks team.

pickonedev commented 1 year ago

Maybe the next update, will have some better optimisations...

danielholm commented 1 year ago

My unit went from 20% to 100%. I disabled some docker containers and now it's a bit lower than before, but still much higher spikes than using 9.5. Very smooth upgrade, though.

Screenshot_2023-04-19-12-08-19-85_c3a231c25ed346e59462e84656a70e50

Galapalos commented 1 year ago

Hi,

After upgrade, my HA prosessor use went from 30% --> 100%, some thin is not right

here info about prosessor use and memory before and after upgrade

image

image

Here is system information if it helps

System Information

version core-2023.4.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.10
os_name Linux
os_version 6.1.21-v8
arch aarch64
timezone Europe/Helsinki
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.32.1 Stage | running Available Repositories | 1267 Downloaded Repositories | 28
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | 30 April 2023 at 03:00 relayer_connected | true relayer_region | eu-central-1 remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true remote_server | eu-central-1-12.ui.nabu.casa can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 10.0 -- | -- update_channel | stable supervisor_version | supervisor-2023.04.0 agent_version | 1.5.1 docker_version | 23.0.3 disk_total | 109.3 GB disk_used | 52.3 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | FTP (4.6.3), AirCast (3.5.2), File editor (5.5.0), Samba share (10.0.0), Node-RED (14.1.4), Studio Code Server (5.5.6), Grafana (8.2.1), Duck DNS (1.15.0), NGINX Home Assistant SSL proxy (3.2.0), InfluxDB (4.6.0), Home Assistant Google Drive Backup (0.110.3), motionEye (0.18.0), Mosquitto broker (6.2.0), MariaDB (2.5.2), Spotify Connect (0.12.3), SSH & Web Terminal (13.1.0), SQLite Web (3.7.1), Google Assistant SDK (2.5.0), ESPHome (2023.3.2), Let's Encrypt (4.12.8), ZeroTier One (0.16.2)
Dashboards dashboards | 3 -- | -- resources | 15 views | 11 mode | storage
Recorder oldest_recorder_run | 9 April 2023 at 15:31 -- | -- current_recorder_run | 19 April 2023 at 11:47 estimated_db_size | 1524.48 MiB database_engine | mysql database_version | 10.6.10
Sonoff version | 3.5.1 (122751c) -- | -- cloud_online | 1 / 1 local_online | 1 / 1
Spotify api_endpoint_reachable | ok -- | --
elmr91 commented 1 year ago

I tried to simply restart containerd service: systemctl restart containerd

CPU used by containerd was divided by 3 after service restart (from 7-8% to less than 2%). Host CPU dropped from 6-7 to 4-5 %

Edit: CPU used by containerd returned slowly to its initial value 6-7% after one hour.

Some error message related to RO filesystem show during initial service start at boot are not shown anymore while restarting containerd service:

Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622559719Z" level=warning msg="failed to load plugin io.containerd.internal.v1.opt" error="mkdir /opt: read-only file system"
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622640728Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622716682Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622778815Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622841541Z" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622902489Z" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.622960860Z" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.623040770Z" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
Apr 19 11:28:52 homeassistant containerd[353]: time="2023-04-19T11:28:52.623220915Z" level=info msg="loading plugin \"io.containerd.grpc.v1.cri\"..." type=io.containerd.grpc.v1
agners commented 1 year ago

@Galapalos @danielholm @pickonedev the very high CPU load is most likely related to motionEye. Frenck is working on an upgrade, it should be available soon. However, this is kinda off-topic here, as this issue is about a a slightly higher CPU usage due to containerd. If the issue persists after the motionEye update, please open a new issue so we can track it separately.

geobogb commented 1 year ago

I'm not running motionEye but have the same problem with high CPU usage on 10.0. I'm running Home Assistant in a headless Virtual Box machine. On 9.5 it uses around 5% CPU on the host machine (Debian/bullseye). After upgrading to 10.0. the CPU usage rose to over 25%. After downgrading to 9.5, everything is back to normal.

Please let me know if I can provide any help in resolving this issue!

agners commented 1 year ago

@Galapalos @danielholm @pickonedev @geobogb please make sure to run motionEye 0.19.0, it should resolve the high CPU usage problem by that add-on. If not, please disable the add-on and see if something else is using more CPU. If it is down to motionEye, we should continue tracking the problem in motionEye's issue tracker: https://github.com/hassio-addons/addon-motioneye/issues.

gfn256 commented 1 year ago

Thought I'd share my CPU temps graph since updating to 10.0 - and I don't like the look of it, see my post above - I'm going to get my Tasmota energy measuring socket out to check the wattage usage now. Screenshot 2023-04-20 104304

Info is sent from Proxmox VE by mqtt every 5 mins (cronjob) to HA I marked for reference, the 2 spikes - which are the nightly PVE VM HAOS backups. Checked the ambient temp and its pretty stable for period.

geobogb commented 1 year ago

@Galapalos @danielholm @pickonedev @geobogb please make sure to run motionEye 0.19.0,

But I'm not using/running motionEye at all!

andrazek commented 1 year ago

I experience the same problem. My temps went up by about 5°C with this upgrade. For passive mini PCs that's definitely too much. It will wear out sooner. How can we find the cause of this problem? I'm not using motionEye.

pickonedev commented 1 year ago

@agners I made the new update for motionEye and OS and everything is ok now. The CPU and MEM have the same values as before the issue :-) Thank you!

lyricnz commented 1 year ago

I have the same problem as reported multiple times above. High CPU usage since 10.0, VM hosted on proxmox, with plenty of CPU + RAM available. Screenshots of HA and proxmox below

Screenshot 2023-04-21 at 1 45 57 pm Screenshot 2023-04-21 at 12 16 42 pm

CPU usage appears to be in homeassistant container (according to "top" and "docker stats"). I'm not running motioneye.

lyricnz commented 1 year ago

Reverting to 9.5 caused an immediate lowering of CPU usage

image

FWIW I don't appear to be using swap at all

➜  ~ free
              total        used        free      shared  buff/cache   available
Mem:        2472664      755520      841720        5132      875424     1683284
Swap:        618164           0      618164
SeByDocKy commented 1 year ago

For me I jumped from 6% to 30% (Hassio Odroid C4)

image

SeByDocKy commented 1 year ago

@Galapalos @danielholm @pickonedev the very high CPU load is most likely related to motionEye. Frenck is working on an upgrade, it should be available soon. However, this is kinda off-topic here, as this issue is about a a slightly higher CPU usage due to containerd. If the issue persists after the motionEye update, please open a new issue so we can track it separately.

I even uninstall motioneye and still x 5 more usage.... for me it's not related....

Edit : I returned to 9.5 everything returned to normal ... I will wait for the 10.x :) fix

pickonedev commented 1 year ago

For me it is even better than before... In the past, CPU was 4%, MEM 8% and TEMP 38 C ... After the OS update, I had problems with CPU & MEM at 100%, but after I have updated MotionEye and again OS, the CPU is at 3%, mem at 7,2% and temp at 32 C

....

jlunz commented 1 year ago

I am seeing a similar behavior on a Raspberry Pi Zero 2 W (I know, not recommended ;-)) Load (15m) jumped from almost zero to ~0.5

image

geobogb commented 1 year ago

Still same problem running Home Assistant in Virtual Box. Upgraded to 10.0 around 15:30 and reverted back to 9.5 around 18:30. From the inside, the CPU increase might not be so dramatic:

Screenshot from 2023-04-22 19-36-52

But seen from the host it is!

Screenshot from 2023-04-22 19-37-28

And, with the risk of repeating myself, I'm not using motionEye.

wokkeltje13 commented 1 year ago

I think there are enough people who showed evidence that version 10 has an impact on resource usage. Increased mem usage is by design, but I do not see any reason why CPU and related to that heat and power consumption should be higher (The MotionEye thing is not relevant to this issue since most people even don't have it installed).

I also see no steps in troubleshooting or remediation appear. Is there something we can do to help since most people just like I did, returned to 9.5. But this is also no long-term solution.

lyricnz commented 1 year ago

Nothing in current 10.1 beta appears to relate to this issue https://github.com/home-assistant/operating-system/releases/tag/10.1

lyricnz commented 1 year ago

I tested upgrade, followed by some usage, followed by HAOS revert. CPU vs versions.

Screenshot 2023-04-26 at 2 48 42 pm Screenshot 2023-04-26 at 2 03 56 pm Screenshot 2023-04-26 at 2 36 41 pm

HA core version, and all integrations, remain unchanged.

jandado commented 1 year ago

I can confirm on my somewhat new AMD Ryzen 7 5800H, the VM has 2 cores allocated to it. CPU usage doubled, containerd appears to be behind it. upgrade_to_haos10

dsolva commented 1 year ago

OS 10.1 oficial release is out. I'm curious if the problem persists.

jandado commented 1 year ago

Yes it does persist @dsolva. I have upgraded over an hour ago, I see no change compared to 10.0