Posts: 567
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-21-2022, 10:49 AM)Tim Curtis Wrote: What Radio station?
Are there any MPD options enabled for example resampling, Camilla, HTTP server, etc?
Hello Tim,
as you probably remember, I already ask about this issue, but you, unfortunatly, were not able to replicate it (probably because a reboot missed after the loopback set).
I have tryed with any radio station and the initial load of 1-2%, after 40 minutes became 30% and so on.
I have just tested again with a scratch system (8.2.0) with: Jazz.24 (44.1KHz) and Swiss Jazz (48 KHz).
Please do not hesitate to ask me any additional information.
Thank you very much and best regards,
Francesco
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
I'm still not able to repro any issues with having Loopback on but I don't have your exact config since I don't have an OLED or run mpd_oled etc
The 90 minute test below was run on a system that has Loopback on to run the Multiroom sender daemon playing Jazz 24 station. CPU utilization avg 2%.
Code: Authenticated to trx ([192.168.1.199]:22).
Linux: 11.5 | 5.15.61-v8+ #1579 | aarch64 (64-bit)
Raspi: Pi-3B+ 1.3 1GB
Audio: Pi HDMI 1
____ __ ___
__ _ ___ / __ \___/ /__ ( _ )
/ ' \/ _ \/ /_/ / _ / -_) / _ |
/_/_/_/\___/\____/\_,_/\__/ \___/
moOde audio player
Release 8.2.1 2022-MM-DD
(C) 2014 Tim Curtis
The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.
To set a new password for the user 'pi' type 'passwd'.
pi@trx:~ $ date
Wed 21 Sep 2022 05:37:33 PM EDT
pi@trx:~ $ moodeutl -m
^CU: 1.4 GHz, LOAD: 2% 51C | MEM: 22% used | DISK: 9% used, 26G free | PHP: 5 workers
pi@trx:~ $ date
Wed 21 Sep 2022 07:03:21 PM EDT
pi@trx:~ $
I would troubleshoot by starting with fresh 820 and Loopback on and see what happens to CPU utiiization. Then add the other components one by one and retest to try and isolate the issue.
Posts: 567
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-21-2022, 11:13 PM)Tim Curtis Wrote: I'm still not able to repro any issues with having Loopback on but I don't have your exact config since I don't have an OLED or run mpd_oled etc
The 90 minute test below was run on a system that has Loopback on to run the Multiroom sender daemon playing Jazz 24 station. CPU utilization avg 2%.
Code: Authenticated to trx ([192.168.1.199]:22).
Linux: 11.5 | 5.15.61-v8+ #1579 | aarch64 (64-bit)
Raspi: Pi-3B+ 1.3 1GB
Audio: Pi HDMI 1
____ __ ___
__ _ ___ / __ \___/ /__ ( _ )
/ ' \/ _ \/ /_/ / _ / -_) / _ |
/_/_/_/\___/\____/\_,_/\__/ \___/
moOde audio player
Release 8.2.1 2022-MM-DD
(C) 2014 Tim Curtis
The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.
To set a new password for the user 'pi' type 'passwd'.
pi@trx:~ $ date
Wed 21 Sep 2022 05:37:33 PM EDT
pi@trx:~ $ moodeutl -m
^CU: 1.4 GHz, LOAD: 2% 51C | MEM: 22% used | DISK: 9% used, 26G free | PHP: 5 workers
pi@trx:~ $ date
Wed 21 Sep 2022 07:03:21 PM EDT
pi@trx:~ $
I would troubleshoot by starting with fresh 820 and Loopback on and see what happens to CPU utiiization. Then add the other components one by one and retest to try and isolate the issue.
Hello Tim,
Thanks again for the time spent.
Below you can find the result of a test I just made on a scratch 8.2.0 Pi 4 system, without anything (HW and SW) and configuration changes.
The only two things changed are:
- Audio/Audio Output/output device - from Pi HDMI 1 (default) to Pi Headphone jack
- Audio/ALSA Options/Loopback - from OFF to ON
I avoid to change even personalization parameters like: Timezone, host name, etc.
The results are:
Code: pi@moode:~ $ sudo reboot
login as: pi
pi@172.21.200.47's password:
Linux: 11.5 | 5.15.61-v8+ #1579 | aarch64 (64-bit)
Raspi: Pi-4B 1.1 4GB
Audio: Pi Headphone jack
____ __ ___
__ _ ___ / __ \___/ /__ ( _ )
/ ' \/ _ \/ /_/ / _ / -_) / _ |
/_/_/_/\___/\____/\_,_/\__/ \___/
moOde audio player
Release 8.2.0 2022-09-16
(C) 2014 Tim Curtis
The programs included with moOde are free software; the
exact distribution terms for each program are described
in the individual files in /usr/share/doc/*/copyright or
in the moOde source files. moOde comes with absolutely
no warranties either expressed or implied, or any other
such guarantees.
To set a new password for the user 'pi' type 'passwd'.
Last login: Thu Sep 22 04:55:27 2022 from 172.21.200.121
pi@moode:~ $ date
Thu 22 Sep 2022 04:58:48 AM EDT
pi@moode:~ $ moodeutl -m
CPU: 1.5 GHz, 1% load, 36C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wor
CPU: 1.5 GHz, 1% load, 36C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wor
CPU: 1.5 GHz, 4% load, 36C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wor
^Crs
pi@moode:~ $ date
Thu 22 Sep 2022 04:59:05 AM EDT
pi@moode:~ $ date
Thu 22 Sep 2022 05:28:47 AM EDT
pi@moode:~ $ moodeutl -m
CPU: 1.5 GHz, 7% load, 38C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wor
CPU: 1.5 GHz, 7% load, 37C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wor
CPU: 1.5 GHz, 6% load, 36C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wor
^Crs
pi@moode:~ $ date
Thu 22 Sep 2022 05:29:00 AM EDT
pi@moode:~ $ date
Thu 22 Sep 2022 05:58:44 AM EDT
pi@moode:~ $ moodeutl -m
CPU: 1.0 GHz, 14% load, 38C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
CPU: 1.5 GHz, 14% load, 39C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
CPU: 1.5 GHz, 15% load, 39C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
^Cers
pi@moode:~ $ date
Thu 22 Sep 2022 05:58:56 AM EDT
pi@moode:~ $ date
Thu 22 Sep 2022 06:28:47 AM EDT
pi@moode:~ $ moodeutl -m
CPU: 1.5 GHz, 24% load, 40C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
CPU: 1.5 GHz, 23% load, 41C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
CPU: 1.5 GHz, 24% load, 39C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
^Cers
pi@moode:~ $ date
Thu 22 Sep 2022 06:28:59 AM EDT
pi@moode:~ $ top
top - 06:29:09 up 1:32, 3 users, load average: 1.04, 0.92, 0.79
Tasks: 144 total, 1 running, 143 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.3 us, 15.5 sy, 0.0 ni, 77.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3794.4 total, 3440.9 free, 118.8 used, 234.7 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 3605.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1212 mpd 20 0 532920 33184 25848 S 87.0 0.9 34:49.48 mpd
87 root 1 -19 0 0 0 S 0.3 0.0 0:03.85 vchiq-r+
383 avahi 20 0 7128 3448 2912 S 0.3 0.1 0:03.78 avahi-d+
537 root 20 0 74088 14984 8752 S 0.3 0.4 0:02.75 worker.+
4844 pi 20 0 9936 3356 2744 S 0.3 0.1 0:13.52 top
14071 pi 20 0 9936 3392 2776 R 0.3 0.1 0:00.03 top
1 root 20 0 166128 10208 7352 S 0.0 0.3 0:03.23 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par+
5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
9 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_perc+
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
13 root 20 0 0 0 0 S 0.0 0.0 0:00.65 ksoftir+
14 root 20 0 0 0 0 I 0.0 0.0 0:01.35 rcu_pre+
pi@moode:~ $ date
Thu 22 Sep 2022 06:29:14 AM EDT
pi@moode:~ $ date
Thu 22 Sep 2022 06:58:17 AM EDT
pi@moode:~ $ top
top - 06:58:22 up 2:01, 3 users, load average: 1.29, 1.25, 1.12
Tasks: 145 total, 1 running, 144 sleeping, 0 stopped, 0 zombie
%Cpu(s): 7.5 us, 17.6 sy, 0.0 ni, 74.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3794.4 total, 3439.0 free, 117.7 used, 237.6 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 3606.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1212 mpd 20 0 532920 33184 25848 S 96.7 0.9 62:38.28 mpd
1361 pi 20 0 16036 4936 3692 S 0.7 0.1 0:00.04 sshd
4844 pi 20 0 9936 3356 2744 S 0.3 0.1 0:19.47 top
17337 pi 20 0 9936 3348 2728 R 0.3 0.1 0:00.02 top
1 root 20 0 166128 10208 7352 S 0.0 0.3 0:03.36 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.03 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par+
5 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 netns
9 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_perc+
10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_tas+
13 root 20 0 0 0 0 S 0.0 0.0 0:00.84 ksoftir+
14 root 20 0 0 0 0 I 0.0 0.0 0:01.60 rcu_pre+
15 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migrati+
16 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
pi@moode:~ $
pi@moode:~ $
pi@moode:~ $ moodeutl -m
CPU: 1.5 GHz, 25% load, 42C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
CPU: 1.5 GHz, 25% load, 42C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
CPU: 1.5 GHz, 26% load, 42C | MEM: 5% used | DISK: 9% used, 26G free | PHP: 4 wo
^Cers
pi@moode:~ $ date
Thu 22 Sep 2022 06:58:39 AM EDT
pi@moode:~ $ moodeutl -s
Gathering info...
S Y S T E M P A R A M E T E R S
moOde release = 8.2.0 2022-09-16
RaspiOS = 11.5
Linux kernel = 5.15.61-v8+ #1579
Platform = Pi-4B 1.1 4GB
Architecture = aarch64 (64-bit)
System uptime = up 2 hours, 47 minutes
Timezone = America/Detroit
Current time = 2022-09-22 07:44:24
Host name = moode
Ethernet address = 172.21.200.47
Ethernet MAC = dc:a6:32:3a:68:5d
WLAN address = 172.24.1.1
WLAN MAC = dc:a6:32:3a:68:5e
WLAN country = US
WLAN AP SSID = Moode
WLAN AP chan = 6
WLAN AP router = Off
SoC identifier = bcm2711
Core count = 4
Kernel timer freq = 250 Hz
SDCard freq = 50 MHz
USB boot = enabled
Warranty = OK
Root size = 29G
Root used = 9%
Root available = 26G
Root expand = expanded
Memory total = 3885 MB
Memory free = 3691 MB
Memory used = 194 MB
SoC temperature = 42.8°C
Throttled bitmask = 0x0
Throttled text = No throttling has occurred
CPU governor = ondemand
Onboard WiFi = On
Onboard BT = On
HDMI output = On
LED state = 1,1
IP addr timeout = 90 (secs)
Ethernet check = No
USB auto-mounter = udisks-glue
SSH term server = Off
SMB file sharing = Off
NFS file sharing = Off
NFS access =
NFS options = rw,sync,no_subtree_check,no_root_squash
PHP-FPM version = 7.4.30
NGINX version = 1.18.0
SQLite3 version = 3.34.1
Hostapd version = 2.9
RPi.GPIO version = 0.7.0
A U D I O P A R A M E T E R S
Audio device = Pi Headphone jack
Interface = SOC
Mixer name = Headphone
Hardware mixer = Yes
Supported formats = U8, S16_LE
ALSA max volume = 100
ALSA output mode = Default (plughw)
ALSA loopback = On
MPD max volume = 100
Volume step limit = 10
Display dB volume = Off
Audio source = Local
Output device = Local
Resume MPD = No
Volume knob = 93
Volume mute = Unmuted
Saved MPD vol = 0
Preamp volume = 0
ALSA version = 1.2.4-1.1+rpt2
SoX version = 0.1.3-4
Bluetooth controller = Off
Pairing agent = Off
Airplay receiver = Off
Spotify receiver = Off
Squeezelite = Off
RoonBridge = Not installed
UPnP client = Off
DLNA server = Off
GPIO button handler = Off
Multiroom sender = Off
Multiroom receiver = Disabled
Auto-shuffle = Off
Ashuffle mode = Track
Ashuffle filter = None
Autoplay = Off
Rotary encoder = Off
Encoder params = 100 2 3 23 24
USB volume knob = Off
Polarity inversion = Off
Crossfeed = Off
Crossfade = Off
Parametric EQ = Off
Graphic EQ = Off
CamillaDSP = off
MPD httpd = Off
Ignore CUE files = Yes
P R E F E R E N C E S
Appearance
----------------------
Theme = Default
Accent color = Carrot
Alpha blend = 1.0
Adaptive background = No
Background image = No
Cover backdrop = No
Cover blur = 20px
Cover scale = 1.25
Renderer backdrop = No
Font size = Normal
Native lazyload = Yes
Playback
----------------------
Show Queue thumbs = Yes
Show Now-playing icon = Yes
Show CoverView playbar = Yes
Show extra metadata = album,genre,track,disc,date,composer,conductor,performer,encoded
Search site = Google
Playback history log = No
Library
----------------------
One touch album = Play
One touch radio = Play
One touch playlist = No action
Albumview sort order = by Artist
Tagview sort order = by Artist
Track play = Track
Recently added = 1 Month
Show sample rate = No
Cover search pri = Embedded cover
Pixel ratio = 1
Thumbnail resolution = Auto
Thumbnail columns = 6/2 (Default)
Library (Advanced)
----------------------
Tag view genre = Genres
Tag view artist = Artist
Album key = Album@Artist (Default)
Include comment tag = No
Library filter = full_lib
Library filter str =
Ignore articles = a,an,the
Show tagview genres = Yes
Show tagview covers = Yes
Ellipsis limited text = No
UTF8 character filter = No
CoverView
----------------------
Timed display = Never
Automatic display = -off
Backdrop style = Gradient (Linear)
Display mode = Cover
Display layout = Default
R A D I O M A N A G E R S E T T I N G S
Sort tag = Name
Group method = No grouping
Show moOde stations = No action
Show other stations = No action
P L A Y L I S T M A N A G E R S E T T I N G S
Sort tag = Name
Group method = No grouping
M P D S E T T I N G S
Version = 0.23.5
Volume type = hardware
SoX resampling = disabled
Selective resampling = disabled
SoX quality = high
SoX multithreading = off
DSD over PCM (DoP) = no
Replaygain = off
Replaygain preamp = 0
Volume normalization = no
Audio buffer = 4 (MB)
Output buffer size = 128 (MB)
Max playlist items = 16384
Input cache = Disabled
B L U E T O O T H S E T T I N G S
Version = 5.55
Bluealsa = v3.0.0
Pairing agent = 1.0.0
Pi-Bluetooth = 0.1.19
Speaker sharing = No
Resume MPD = No
PCM buffer time = 500000 (μs)
A I R P L A Y S E T T I N G S
Version = 3.3.8
Friendly name = Moode Airplay
Interpolation = soxr
Output bit depth = S16
Output sample rate = 44100
Session interruption = no
Session timeout = 120 (ms)
Latency offset = 0.0 (secs)
Audio buffer = 0.2 (secs)
Resume MPD = No
S P O T I F Y S E T T I N G S
Version = 0.4.2
Friendly name = Moode Spotify
Bitrate (kbps) = 160
Format = S16
Dither = Automatic (Default)
Volume curve = log
Volume range (dB) = 60
Initial volume (%) = 0
Volume normalization = No
Method = dynamic
Gain type = auto
Pregain (dB) = 0
Threshold (dBFS) = -2
Attack (ms) = 5
Release (ms) = 100
Knee = 1
Autoplay = No
Resume MPD = No
S Q U E E Z E L I T E S E T T I N G S
Version = 1.9.8-1317 "DSD/SRC enabled"
Friendly name = Moode
ALSA device = hw:0
ALSA params = 80:4::1
Output buffers = 40000:100000
Task priority = 45
Codec list = flac,pcm,mp3,ogg,aac,alac,dsd
Other options = -W -D 500 -R E -S /var/local
Resume MPD = No
L O C A L D I S P L A Y S E T T I N G S
Local UI display = Off
Mouse cursor = On
Screen blank = 600 Secs
Wake display on play = Off
Brightness = 255
Pixel aspect ratio = Default
Rotate screen = 0 Deg
M O O D E S T A R T U P L O G
20220922 045635 worker: --
20220922 045635 worker: -- Start moOde 8 series
20220922 045635 worker: --
20220922 045635 worker: Successfully daemonized
20220922 045637 worker: File check (OK)
20220922 045638 worker: Session vacuumed
20220922 045638 worker: Session loaded
20220922 045638 worker: Debug logging (OFF)
20220922 045638 worker: --
20220922 045638 worker: -- Audio debug
20220922 045638 worker: --
20220922 045638 worker: ALSA cards: (0:b1 | 1:Headphones | 2:empty | 3:empty
20220922 045638 worker: MPD config: (1:Pi Headphone jack | mixer:(Headphone) | card:1)
20220922 045638 worker: ALSA mixer actual (Headphone)
20220922 045638 worker: ALSA Headphone volume set to (0%)
20220922 045638 worker: --
20220922 045638 worker: -- System
20220922 045638 worker: --
20220922 045639 worker: Host (moode)
20220922 045639 worker: moOde (8.2.0 2022-09-16)
20220922 045639 worker: RaspiOS (11.5)
20220922 045639 worker: Kernel (5.15.61-v8+ #1579)
20220922 045639 worker: Platform (Pi-4B 1.1 4GB)
20220922 045639 worker: ARM arch (aarch64, 64-bit)
20220922 045639 worker: MPD ver (0.23.5)
20220922 045639 worker: CPU gov (ondemand)
20220922 045639 worker: USB boot (enabled)
20220922 045639 worker: File sys (expanded)
20220922 045639 worker: HDMI port (On)
20220922 045639 worker: Sys LED0 (On)
20220922 045639 worker: Sys LED1 (On)
20220922 045639 worker: --
20220922 045639 worker: -- Network
20220922 045639 worker: --
20220922 045639 worker: eth0 adapter exists
20220922 045639 worker: eth0 check for address (No)
20220922 045639 worker: eth0 address not assigned
20220922 045639 worker: wlan0 adapter exists
20220922 045639 worker: wlan0 country (US)
20220922 045639 worker: wlan0 SSID is "None (activates AP mode)"
20220922 045639 worker: wlan0 AP mode started
20220922 045702 worker: wlan0 check 0 for IP address
20220922 045704 worker: wlan0 check 1 for IP address
20220922 045706 worker: wlan0 check 2 for IP address
20220922 045708 worker: IP addr (172.24.1.1)
20220922 045708 worker: Netmask (255.255.255.0)
20220922 045708 worker: Gateway (172.21.200.1)
20220922 045709 worker: Pri DNS (127.0.0.1)
20220922 045709 worker: Domain (homenet.telecomitalia.it)
20220922 045709 worker: wlan0 power save disabled
20220922 045709 worker: apd0 router mode (Off)
20220922 045709 worker: --
20220922 045709 worker: -- Software update
20220922 045709 worker: --
20220922 045709 worker: Automatic check (Off)
20220922 045709 worker: --
20220922 045709 worker: -- Audio config
20220922 045709 worker: --
20220922 045709 worker: MPD conf updated
20220922 045709 worker: ALSA card number (1)
20220922 045709 worker: MPD audio output (Pi Headphone jack)
20220922 045709 worker: Audio formats (U8, S16_LE)
20220922 045709 worker: ALSA mixer name (Headphone)
20220922 045709 worker: MPD mixer type (hardware)
20220922 045709 worker: Hdwr volume controller exists
20220922 045709 worker: Max ALSA volume (100%)
20220922 045709 worker: ALSA output mode (Default: plughw)
20220922 045709 worker: ALSA loopback (On)
20220922 045709 worker: Reset renderer active flags
20220922 045709 worker: CamillaDSP (off)
20220922 045709 worker: --
20220922 045709 worker: -- File sharing
20220922 045709 worker: --
20220922 045709 worker: SMB file sharing (Off)
20220922 045709 worker: NFS file sharing (Off)
20220922 045709 worker: --
20220922 045709 worker: -- MPD startup
20220922 045709 worker: --
20220922 045710 worker: MPD started
20220922 045710 worker: MPD accepting connections
20220922 045710 worker: MPD output 1 ALSA Default (On)
20220922 045710 worker: MPD output 2 ALSA Bluetooth (Off)
20220922 045710 worker: MPD output 3 HTTP Server (Off)
20220922 045710 worker: MPD crossfade (off)
20220922 045710 worker: MPD ignore CUE files (yes)
20220922 045710 worker: --
20220922 045710 worker: -- Music sources
20220922 045710 worker: --
20220922 045710 worker: USB sources (none attached)
20220922 045710 worker: NAS sources (none configured)
20220922 045710 worker: --
20220922 045710 worker: -- Feature availability
20220922 045710 worker: --
20220922 045710 worker: Source select (available)
20220922 045710 worker: Source select (source: MPD)
20220922 045710 worker: Source select (output: Pi Headphone jack)
20220922 045710 worker: Bluetooth (available)
20220922 045710 worker: Airplay renderer (available)
20220922 045710 worker: Spotify renderer (available)
20220922 045710 worker: Squeezelite (available)
20220922 045710 worker: RoonBridge renderer (not installed)
20220922 045710 worker: Multiroom sender (available)
20220922 045710 worker: Multiroom receiver (available)
20220922 045710 worker: UPnP renderer (available)
20220922 045710 worker: DLNA server (available)
20220922 045710 worker: GPIO button handler (available)
20220922 045710 worker: Stream recorder (n/a)
20220922 045710 worker: --
20220922 045710 worker: -- Other
20220922 045710 worker: --
20220922 045710 worker: USB volume knob (Off)
20220922 045710 worker: USB auto-mounter (udisks-glue)
20220922 045710 worker: Saved MPD vol level (0)
20220922 045710 worker: Preamp volume level (0)
20220922 045710 worker: MPD volume level (93) restored
20220922 045710 worker: ALSA Headphone volume (98%)
20220922 045710 worker: Auto-play (Off)
20220922 045710 worker: CoverView toggle (-off)
20220922 045710 worker: Maintenance interval (120 minutes)
20220922 045710 worker: Screen saver activation (Never)
20220922 045710 worker: Session permissions (OK)
20220922 045710 worker: Watchdog started
20220922 045710 worker: Ready
pi@moode:~ $
pi@moode:~ $
Please note that it is my opinion that when arrived at 97% of load (on TOP - and 25% on moodeutl -m) of one cpu it does not increment anymore.
I am ready to any additional test or information you wish.
Best regards and thanks again,
Francesco
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
In my tests Headphone device and Loopback causes MPD to error and fail to play 44.1K rate. I always have to turn MPD resampling on and set it to any rate other than 44.1K.
Here are the test results after about 1.5 hours with Headphone + Loopback + MPD 48K resampling. I'm not seeing any unusual CPU utilization.
Code: pi@moode:~ $ date
Thu 22 Sep 2022 10:08:37 AM EDT
pi@moode:~ $ moodeutl -m
^CU: 1.4 GHz, LOAD: 11% 57C | MEM: 20% used | DISK: 18% used, 12G free | PHP: 4 workers
pi@moode:~ $ date
Thu 22 Sep 2022 11:22:57 AM EDT
HTOP snapshot
Posts: 567
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-22-2022, 03:33 PM)Tim Curtis Wrote: In my tests Headphone device and Loopback causes MPD to error and fail to play 44.1K rate. I always have to turn MPD resampling on and set it to any rate other than 44.1K.
Here are the test results after about 1.5 hours with Headphone + Loopback + MPD 48K resampling. I'm not seeing any unusual CPU utilization.
Code: pi@moode:~ $ date
Thu 22 Sep 2022 10:08:37 AM EDT
pi@moode:~ $ moodeutl -m
^CU: 1.4 GHz, LOAD: 11% 57C | MEM: 20% used | DISK: 18% used, 12G free | PHP: 4 workers
pi@moode:~ $ date
Thu 22 Sep 2022 11:22:57 AM EDT
HTOP snapshot
Hi Tim,
I have used a radio station at 48KHz (radio swiss jazz).
I don't know why: I tryed several systems, several microSD, several device (even headphone only) and I got, after 2 hours 97% on TOP and 26% on MOODEUTL -M.
I am going to test with 32 bits system too.
I will keep you informed.
Thanks again and regards,
Francesco
Posts: 567
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-22-2022, 03:51 PM)fdealexa Wrote: (09-22-2022, 03:33 PM)Tim Curtis Wrote: In my tests Headphone device and Loopback causes MPD to error and fail to play 44.1K rate. I always have to turn MPD resampling on and set it to any rate other than 44.1K.
Here are the test results after about 1.5 hours with Headphone + Loopback + MPD 48K resampling. I'm not seeing any unusual CPU utilization.
Code: pi@moode:~ $ date
Thu 22 Sep 2022 10:08:37 AM EDT
pi@moode:~ $ moodeutl -m
^CU: 1.4 GHz, LOAD: 11% 57C | MEM: 20% used | DISK: 18% used, 12G free | PHP: 4 workers
pi@moode:~ $ date
Thu 22 Sep 2022 11:22:57 AM EDT
HTOP snapshot
Hi Tim,
I have used a radio station at 48KHz (radio swiss jazz).
I don't know why: I tryed several systems, several microSD, several device (even headphone only) and I got, after 2 hours 97% on TOP and 26% on MOODEUTL -M.
I am going to test with 32 bits system too.
I will keep you informed.
Thanks again and regards,
Francesco
This is another system, on another network, controlled by another PC.
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
I'll try a longer duration test tomorrow to see if I can get a repro.
Posts: 567
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-22-2022, 07:56 PM)Tim Curtis Wrote: I'll try a longer duration test tomorrow to see if I can get a repro.
Hi Tim,
I will not stop thanking you for your interest in the issue I proposed.
I personally think that however, even if to a lesser extent, the increase from 3% to 37% (on HTOP) that you also noticed (with the use of "loopback"), compared to the stability at 3% (without the " loopback "), is still an issue to be investigated in terms of understanding whether it might be an issue of MPD or ALSA bugs, rather than an improvement in the customization of these two sets.
Thanks again and best regards,
Francesco
Posts: 13,420
Threads: 304
Joined: Mar 2018
Reputation:
545
Typically when MPD starts hogging the CPU its due to bug in MPD or one of the plugins that does format decoding, et, but it could be more complex and involve MPD/ALSA interaction when the Loopback device is present..
Did you notice the issue happening with only the Headphone device or does it also occur with other audio device interfaces for example HDMI, I2S, USB?
Here is a command you can use to see which part of MPD is banging the CPU.
Code: ps H -q `pidof -s mpd` -o 'pid,tid,cls,rtprio,comm,pcpu'
# Also in a watch context
watch "ps H -q `pidof -s mpd` -o 'pid,tid,cls,rtprio,comm,pcpu'"
Posts: 567
Threads: 5
Joined: Mar 2020
Reputation:
31
(09-22-2022, 09:08 PM)Tim Curtis Wrote: Typically when MPD starts hogging the CPU its due to bug in MPD or one of the plugins that does format decoding, et, but it could be more complex and involve MPD/ALSA interaction when the Loopback device is present..
Did you notice the issue happening with only the Headphone device or does it also occur with other audio device interfaces for example HDMI, I2S, USB?
Here is a command you can use to see which part of MPD is banging the CPU.
Code: ps H -q `pidof -s mpd` -o 'pid,tid,cls,rtprio,comm,pcpu'
# Also in a watch context
watch "ps H -q `pidof -s mpd` -o 'pid,tid,cls,rtprio,comm,pcpu'"
Hi Tim,
regarding the first question:
- Yes, I have tried several I2S HATs and they all give the same results. If you want I can try HDMI (using a monitor) but, unfortunately, I don't have any devices to connect via USB.
Regarding the commands to use:
- they are the same.
Thank you and regards,
Francesco
|