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 · 5 comments
Open

high CPU usage #60

luka6000 opened this issue Mar 24, 2021 · 5 comments

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?

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

No branches or pull requests

5 participants