LMS-Community/plugin-Qobuz

CPU use

th2j opened this issue · 4 comments

th2j commented

Hello

When i compare the cpu use between the plugin and a play from disk, i notice that the plugin use so much cpu.
Sometime it reachs 100% use.

Here is the difference between a play of 10s from qobuz (first bloc) and a play from disk (second bloc)
https://i.ibb.co/1X5VWCt/Capture-d-cran-du-2023-03-31-22-56-56.png

Is it normal ?

Thanks

I could imagine that higher CPU usage was normal. Serving a file from disk has much less overhead than dealing with http, encryption and what not.

That said there are many more factors which can have an impact. Is the system idling otherwise when you're measuring the CPU load? Or is something else going on, like eg. resizing of the cover art (which for local media is done at scan time)? Is somebody navigating in LMS? Is a scan, a plugin installation, whatever else going on? What system are you running this on? I wouldn't expect a modern PC to use that much memory. But a Pi 0?

th2j commented

my cpu is a celeron j3455
logitechmediaserver is running on 1 core at 1,2GHz
nothing is running at the same time on the pc and logitechmediaserver is doing nothing else than playing

What player? Is transcoding involved? Any 3rd party plugins installed? Any controllers or web UIs running? And would the files compare wrt. file type (FLAC), bitrate etc.?

Any news? Or can we close this issue?