Open pspot2 opened 1 month ago
Today the CPU usage went up to 5% and stayed there:
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
fd62f1b06917 addon_a0d7b954_vscode 0.01% 141.7MiB / 3.789GiB 3.65% 12MB / 57.5MB 0B / 0B 29
b11b983dcc35 hassio_supervisor 0.00% 184.4MiB / 3.789GiB 4.75% 209MB / 712MB 0B / 0B 32
b7a36cfe077a hassio_cli 0.00% 1.289MiB / 3.789GiB 0.03% 105kB / 0B 0B / 0B 6
967296532b50 homeassistant 0.02% 287.9MiB / 3.789GiB 7.42% 0B / 0B 0B / 0B 24
0da538e4068b addon_core_configurator 0.01% 24.88MiB / 3.789GiB 0.64% 1.31GB / 48.3MB 0B / 0B 8
0be40ff63796 hassio_multicast 0.00% 3.715MiB / 3.789GiB 0.10% 0B / 0B 0B / 0B 8
8a8098b5adcc hassio_audio 5.37% 42.85MiB / 3.789GiB 1.10% 240kB / 0B 0B / 0B 13
8b9358433e15 hassio_dns 0.01% 19.32MiB / 3.789GiB 0.50% 1.23MB / 653kB 0B / 0B 16
bbe586023102 hassio_observer 0.00% 18.22MiB / 3.789GiB 0.47% 2.46MB / 1.54MB 0B / 0B 5
The power consumption went from 12W to 21W without the system playing any audio.
After unplugging the device the CPU went back to 0%.
Hi,
I have a USB sound card (Plantronics headset for testing) that I passed through in Proxmox to the VM with HA supervised installation. Everything works well, I can play sound. However, I noticed that when nothing is played and the whole system is idling around, the power consumption jumps from ca. 7W (on my particular mini-PC) to around 13W when the headset is plugged in. This is quite a lot for idle mode, so I did some digging around.
Stopping HA (e.g. disabling it in systemd and booting the VM without it) seems to solve the issue - there is now a difference of maybe 0.5W between the headset plugged and unplugged.
Running
docker stats
, I noticed that thehassio_audio
container is constantly consuming 0.5-0.6% CPU with the headset plugged. This drops to zero when the headset is unplugged.Below are more details about my environment:
cat /etc/os-release
uname -a
ha info
ha audio info
pactl info
journalctl
log when the headset is plugged:journalctl
log when the headset is unplugged: