Hello,
Asking for help as to how I troubleshoot this.
When I play a radio stream, in particular LBC my LMS service ramps up to take all CPU and then it is unresponsive to changes like volume up/down.
It's running on a PI 4 and TOP shows 100% CPU.
How do I dig into what is consuming the CPU?
Thanks
Tom
Results 1 to 10 of 12
-
2022-05-26, 02:52 #1
- Join Date
- Jan 2007
- Location
- Plymouth, UK
- Posts
- 115
LMS takes all COU and becomes unresponsive
-
2022-05-26, 03:57 #2
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 5,715
I think this has come up in the last year or so and there was a fix to one of the audio handlers.
Which version of LMS are you running?Paul Webster
Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin
-
2022-05-27, 01:03 #3
- Join Date
- Jan 2007
- Location
- Plymouth, UK
- Posts
- 115
Currently 8.2 it did the same on 8.1
-
2022-05-27, 01:27 #4
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 5,715
So that leaves you 8.2.1 and perhaps 8.3 to try.
Paul Webster
Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin
-
2022-05-27, 01:51 #5
- Join Date
- Apr 2005
- Location
- UK/London
- Posts
- 5,715
I just tried LBC ( https://media-ssl.musicradio.com/LBCLondon ) on SqueezePlay (old - on Joggler) with LMS running on a 4-CPU Raspberry Pi (pCP).
Logitech Media Server Version: 8.2.1 - 1644703015 @ Sun 13 Feb 2022 01:08:32 AM CET
"top" shows 24.6% utilisation ... but that is one CPU running at 90%+ ... which I presume means LMS (single threaded) is stressed.
However, my player cannot handle it natively so it is being transcoded.
"top" shows that faad and flac are involved but those two applications are only using 0.2-1.5% CPU.
Perhaps someone with a recent 8.3 can report how it is for them.
When running "top" the "c" key will show performance per CPU at the top of the screen.
"q" to quit.Paul Webster
Author of "Now Playing" plugins covering Radio France (FIP etc), PlanetRadio (Bauer - Kiss, Absolute, Scala, JazzFM etc), KCRW, ABC Australia and CBC/Radio-Canada
and, via the extra "Radio Now Playing" plugin lots more - see https://forums.slimdevices.com/showt...Playing-plugin
-
2022-05-27, 02:28 #6
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 9,083
-
2022-05-27, 04:01 #7
- Join Date
- Jan 2007
- Location
- Plymouth, UK
- Posts
- 115
-
2022-05-27, 05:00 #8
- Join Date
- Jan 2010
- Location
- Hertfordshire
- Posts
- 9,083
-
2022-05-27, 05:10 #9
- Join Date
- Jan 2007
- Location
- Plymouth, UK
- Posts
- 115
-
2022-05-27, 05:37 #10
The default process tools are provided by busybox, so they are a bit limited.
you can add extensions with more full featured tools.
htop (Has a little better thread and subprocess view capabilities.)
procps-ng (provides full versions of top and ps)
But likely its something in LMS itself. So logging is likely the best options. If I recall the cpu utilization issue and unresponsive was related to tmp file handing. LMS was generating a ton of tmp files and keeping the file handles open. This issue was seen after LMS was running for a while, and restarting LMS would solve the problem for a while. I forget which versions of LMS has this correction, likely only 8.3piCorePlayer a small player for the Raspberry Pi in RAM.
Homepage: https://www.picoreplayer.org
Please donate if you like the piCorePlayer