Plexamp headless laggy behavior issue on raspberry pi 3

Hello everybody, I have a question on the performance of plexamp. I am currently using plexamp headless on raspberry pi 3 and instllation had been done by using the guide on howtohifi. I am frequently updating the plexamp and linux, so you can assume that they are up to date. My plex library is at the i7 nuc mini pc. Both systems are conencted to the network via ethernet cable.

My problem is the slow response of the plexamp. When I started a song, on the plex dashboard I have noticed that plexamp starts to download next song to plexamp headless and I assume that it caches the next song. But whenever I press the next song/skip button on the headless setup via browser or plexamp app on ios the system respond after about 20 seconds or more and then skip to the next song. But sometimes it skip after 1 second. It looks like slow response occurs after starting a new album. The downloading of the songs on the up next list looks like causing a lagginess. Is there any tweak or adjustment for this behavior ?
or is the performance of my raspberry pi 3 is not enough?

On the plex dashboard I can see that plexamp download songs on the queue.

plex server version: 1.41.3.9314-a0bfb8370
plexamp headless version: 4.11.5 (I guess, updated 2 weeks ago to the latest version)

LOG files:
Plexamp.1 (1).log (758.3 KB)

thanks

I’ve seen evidence of underflow both on the network side and on the audio stack side. Seems like the Pi either has slow network, is over-taxed, or both.

What model of Raspberry Pi 3 is it, and how much RAM?

Dear @elan it is raspberry pi 3 model b v1.2 and it has 1 gb RAM

Do you have swap? If so, consider turning it off.

from the log it looks like headless is set to cache ahead 10 tracks

does it help if you change this setting to only get the next track ?
(settings > playback > caching > wifi caching)

another setting for headless under caching is network speed … what do you have this set to now ?

Dear @elan , I am sorry but I have no idea what swap is ? could you please explain or describe what it is or how can I get this information

I will try only next track caching this weekend. I will let you know @tgp-2.

Network speed is set to unlimited

you might want to set the speed to something lower. with a slow SD card it can be helpful.

swap memory is something that can be configured on the command line, you can google around for it.

dear @elan I have reduced the caching only next song and also reduced the network speed to 50mbit which is half of the total network speed of raspberry pi 3. my cache size is set to 256 mb but still having this lag issue. What I noticed that whenever I start an album it start to play normally. sometimes skip few songs without hassle but whenever I experience the lag on the web interface, I also having a problem with the web service. Let me explain like that, while playing a song when I press next song, if I experience a lag or if the song is nnot changed I refresh the browser and also refreshing take some time. But as soon as page is refreshed, song is also skipped.

I am putting another log file and in this log file you can check the logs after jan 12, after 19:00:00. After that time stamp I experienced that situation.

I did not have time to check swap but i will tomorrow.
Plexamp.log (320.8 KB)

log shows the cache getting cleared around that time, but normally that alone shouldn’t cause big problems … caching to the pi3’s SD card should be able to keep up with 50Mbps incoming network data … but maybe an even lower network speed setting might help? 5-10Mbps is enough to keep up with most flac files (1Mbps, maybe not)

I installed ropiee with plexamp enabled today and my problem was solved. There is no laggy behavior even though the hardware is the same. What I noticed that is in the original setup of ropiee, caching is disabled, maybe this helped me to solve

if i recall correctly, headless defaults will cache ahead 1 track at network speed 5 Mbps … both of those are probably helping to avoid or minimize the lag you described previously

(note, these defaults are active but there’s no check mark next to the item in settings until/unless you change something)

glad it’s working better now, ropieee is great, easy to setup :+1:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.