Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

high CPU usage #60

Open
luka6000 opened this issue Mar 24, 2021 · 9 comments
Open

high CPU usage #60

luka6000 opened this issue Mar 24, 2021 · 9 comments
Labels

Comments

@luka6000
Copy link

I'm not using audio on hass. At all. How can I disable audio container? It is using a lot of CPU

ha > audio info
audio:
application: []
card: []
input: []
output:

  • applications: []
    card: null
    default: true
    description: Dummy Output
    index: 0
    mute: false
    name: auto_null
    volume: 1
    host: 172.30.32.4
    update_available: false
    version: 2021.02.1
    version_latest: 2021.02.1

It is the most CPU hungry process of all containers

PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND
1169 root 20 0 87.8m 39.3m 0.0 2.1 24:01.66 S python3 -m supervisor
1760 root 20 0 789.6m 17.6m 0.7 0.9 9:04.55 S coredns -conf /etc/corefile
2499 root 9 -11 77.2m 4.7m 8.7 0.2 594:06.99 S pulseaudio --system -vvv --disallow-exit --exit-idle-time=-+
2761 root 20 0 0.7m 0.0m 0.0 0.0 3:10.00 S mdns-repeater -f eth0 hassio
3163 root 20 0 16.5m 15.8m 0.7 0.8 4:52.70 S mosquitto -c /etc/mosquitto.conf
3875 root 20 0 265.7m 67.9m 9.3 3.6 399:23.11 S deCONZ -platform xcb --auto-connect=1 --dbg-info=1 --dbg-ap+
2936 root 20 0 430.9m 270.0m 9.3 14.1 41:33.77 S python3 -m homeassistant --config /config

Every second it takes 100% CPU core for a short while. It's 10x the actual homeassistant core process.
And I don't even need it. So, how to disable audio support on hass?

@cogneato
Copy link

Can you include your system details? Is this HA OS? Debian?

@frenck
Copy link
Member

frenck commented Mar 25, 2021

(please post the output of ha info as that helps us reproducing). Thanks 👍

@luka6000
Copy link
Author

This is hass os

ha > info
arch: armv7
channel: stable
docker: 19.03.13
features:

  • reboot
  • shutdown
  • services
  • network
  • hostname
  • hassos
    hassos: "5.12"
    homeassistant: 2021.3.4
    hostname: homeassistant
    logging: info
    machine: raspberrypi4
    operating_system: Home Assistant OS 5.12
    state: running
    supervisor: 2021.03.6
    supported: true
    supported_arch:
  • armv7
  • armhf
    timezone: Europe/Warsaw

@radicalmachine
Copy link

I too, am suffering with this issue. Running supervised in docker on a Pi4. Please advise what logs would be helpful in troubleshooting

output of 'docker stats'

CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
2c019c589295 hassio_audio 20.79% 0B / 0B 0.00% 59.9kB / 690B 0B / 57.3kB 9
45ba8d058a82 addon_core_configurator 0.02% 0B / 0B 0.00% 2.67MB / 1.29MB 15.2MB / 24.6kB 4
a1f72d777087 addon_core_duckdns 0.00% 0B / 0B 0.00% 2.82MB / 131kB 8.21MB / 20.5kB 7
d02c7c16fe31 hassio_multicast 0.00% 0B / 0B 0.00% 0B / 0B 4.15MB / 16.4kB 4
1c6b8a3ea3c8 hassio_cli 0.00% 0B / 0B 0.00% 2.43MB / 494B 152kB / 0B 5
43486b98bc20 hassio_dns 0.03% 0B / 0B 0.00% 2.79MB / 710kB 18.5MB / 20.5kB 13
3d81d13d6291 homeassistant 1.70% 0B / 0B 0.00% 0B / 0B 28.7kB / 149MB 17
f77cc835e228 hassio_observer 0.00% 0B / 0B 0.00% 2.57MB / 36.1kB 11.9MB / 4.1kB 8
81f23424dd4c hassio_supervisor 0.00% 0B / 0B 0.00% 5.81MB / 4.57MB 145MB / 381kB 13

output of 'ha info'

$ ha info
arch: armv7
channel: stable
docker: 20.10.7
features:

  • reboot
  • shutdown
  • services
  • network
  • hostname
  • timedate
    hassos: null
    homeassistant: 2021.6.6
    hostname: raspberrypi
    logging: info
    machine: raspberrypi4
    operating_system: Raspbian GNU/Linux 10 (buster)
    state: running
    supervisor: 2021.06.6
    supported: false
    supported_arch:
  • armv7
  • armhf
    timezone: Europe/London

@soeffi
Copy link

soeffi commented Dec 23, 2022

Did anyone solve this yet?

I have the same problem on a fresh hass os install.
(Home Assistant 2022.12.8 Supervisor 2022.11.2 Operating System 9.4 Frontend 20221213.1 - latest)

image

Any means to disable the audio container for now?

Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 18, 2024
@robotpandarocket
Copy link

Still happens to me on 2024.12.4 and OS 14.0

@agners
Copy link
Member

agners commented Dec 19, 2024

@robotpandarocket can you share details about your system? E.g. the output of ha info.

There have been some PRs which do address high CPU usage at least in certain situations.

@robotpandarocket
Copy link

Sure. I'm running HA inside of Proxmox on a Trigkey Mini PC with a 8th Gen Intel 8109U. Sporadically (once a week or so), the cpu usage spikes from an average of 5-8% to 60+% and will not come back down with a regular Hassio restart. Instead, I need to restart the VM. I dug into the logs a while back, it's pulse audio related by the looks of it (I don't have the logs handy right now, but will post next time it spikes again)

➜ ~ ha info
arch: amd64
channel: stable
docker: 27.2.0
features:

  • reboot
  • shutdown
  • services
  • network
  • hostname
  • timedate
  • os_agent
  • haos
  • resolved
  • journal
  • disk
  • mount
    hassos: "14.1"
    homeassistant: 2024.12.4
    hostname: homeassistant
    logging: info
    machine: qemux86-64
    operating_system: Home Assistant OS 14.1
    state: running
    supervisor: 2024.12.0
    supported: true
    supported_arch:
  • amd64
  • i386
    timezone: Africa/Johannesburg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants