(09-25-2022, 12:21 AM)Tim Curtis Wrote: Here's a top snapshot of one of my systems that has an attached HDMI display. Its playing a radio station and displaying the main UI with the knobs, queue covers and the now playing icon.
CPU utilization looks reasonable across the 4 cores ~ 25%
Code:top - 20:17:39 up 2:40, 1 user, load average: 0.88, 1.07, 0.90
Tasks: 157 total, 1 running, 156 sleeping, 0 stopped, 0 zombie
%Cpu0 : 28.5 us, 3.6 sy, 0.0 ni, 67.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 20.1 us, 5.8 sy, 0.0 ni, 74.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 28.8 us, 4.4 sy, 0.0 ni, 66.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 19.3 us, 3.4 sy, 0.0 ni, 77.0 id, 0.0 wa, 0.0 hi, 0.3 si, 0.0 st
MiB Mem : 909.6 total, 180.4 free, 257.8 used, 471.4 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 566.0 avail Mem
Those are my conditions, except for using the HDMI as the "DAC", or more accurately, using the HDMI as a data output to the AV amp DAC, while it displays the screen. I'm not sure if that makes a difference yet... I do have a monitor I could try.
This is what I get, using plain top -1, like you did:
Code:
top - 20:11:49 up 6 min, 1 user, load average: 2.05, 1.19, 0.55
Tasks: 162 total, 2 running, 160 sleeping, 0 stopped, 0 zombie
%Cpu0 : 6.8 us, 4.8 sy, 0.0 ni, 88.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu1 : 17.3 us, 2.3 sy, 0.0 ni, 80.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu2 : 43.4 us, 3.4 sy, 0.0 ni, 53.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
%Cpu3 : 27.6 us, 3.9 sy, 0.0 ni, 68.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 923.5 total, 276.5 free, 201.1 used, 445.9 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 630.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1418 pi 20 0 414180 125804 95224 R 83.5 13.3 1:57.46 chromium-browse
1463 pi 20 0 463428 86960 75928 S 12.5 9.2 0:23.20 chromium-browse
1172 mpd 20 0 204508 31368 22272 S 3.0 3.3 0:03.91 mpd
This is a Pi3, wondering if you have a Pi4, and we're looking at the relative compute power difference. It also looks more drastic in htop, with many more chromium-browse threads visible. Overall average CPU% per core floats around the hi 20's to 30's on the average.
The odd thing that stands out for me, is the huge difference between the playing audio and not playing audio cases. And underlining that, while I was gathering top measurements to respond, I found my TV Moode box in the "broken display" state again (the blank white screen with the "Aw Snap.." on it) so I tried to bump it back with the "Restart LocalUI" button, which works, but it came back at some lower, narrower resolution than the full 1900x1080 it usually puts out. The interesting thing... in that resolution and playing music, there was no noticeable increase from not playing... just a fraction of what we're seeing here. Maybe there's something wrong with the full HD mode, or lower modes are disproportionally much better? Rebooting got it back to 1900x1080... and the above top results when playing.
I'll try to verifiy that, problem is I have to wait till it fails again, or, how do I change resolutions, in HDMI display mode?
Do'h.. I see a HDMI Resolution thread here... that's a start...