Server Load
ElFishi opened this issue · 8 comments
Slimmer keeps the LMS server which is hosted on a different rpi1 fairly busy. So much so that the core temperature of the server is 4 deg higher when slimmer is running on the client.
Can slimmer be more efficient with the server?
Slimmer retrieves the player status infos 2 times per seconds. This is a short text data in JSON. I don't think it makes sense. It does that also when playing is stopped/paused.
Does this happen also when playing (music streaming to squeezelite) is stopped? Streaming the music requires much more resources.
on 21:10, off 21:30, on 21:55
I checked this on my development machine. Slimmer (without music streaming) made the cpu utilization of slimserver from the idle 0-0.3% to 0.6%. I will check what a real Squeezebox does, and what kind of traffic it generates on the network.
It could be lowered by programming:
- Doing it only once per second, but that makes displaying the changes a bit sluggish
- Doing less frequently when playing is paused/stopped or the player is off.
I am happy to learn what is wrong with my slimserver if it is so sensitive to json requests : )
I was thinking about upgrading to a rpi3 anyway...
I am hardly concerned about the server load while playing music. The idle load should be low, ideally.
Is there a way that LMS is sending out a signal when it starts to get interesting for a client to listen?
would be interesting what a real SB does.
Btw the data above I took while one SB3 was connected to the server.
I checked now a Squeezebox Boom with tcpdump. It sends on the proprietary protocol (port 3483 not JSON) a status query at 4 seconds interval while not playing or turned off.
I will implement some kind of "green" method for this when the player is idle or off.
cewl. thx.