Hi,
I have Plexamp running on a Raspberry Pi, using this guide:
(Making this a pinned thread until we have better instructions/links on the website.)
OK, ready to have some fun?
Make sure you have a 64-bit capable Raspberry Pi and node v16 installed.
Download the headless package from https://plexamp.com
Extract in the pi home directory.
Run from terminal to start (and ignore anything which is printed after you enter the code):
$ node js/index.js
Starting Plexamp.
Please visit https://plex.tv/claim and enter the claim token:
You should now…
It’s working well, but CPU usage keeps on going up and up, over time even when I don’t use Plexamp:
There’s nothing else installed on the Pi, it’s only used for Plexamp. Is this normal behavior for nodejs?
Setup:
RaspberryPi 3b+
Plexamp 4.4.0 (installed from “Plexamp-Linux-headless-v4.4.0.tar.bz2”)
OS: Raspberry OS 64 bit VERSION=“11 (bullseye)” - fully updated
Node: v12.22.12
elan
October 2, 2022, 5:29pm
2
not normal at all, consider posting logs so we might be able to see what’s going on.
Thanks @elan
Can you let me know which logs you need?
To visualize the issue more, this is the Pi:s CPU usage. At the red arrow is a manual reboot:
elan
October 2, 2022, 6:19pm
4
The files in ~/.cache/Plexamp/log/
Thanks, I have attached the logs here and pm:ed you its password
log.zip (67.7 KB)
elan
October 2, 2022, 7:06pm
6
The last entry in your logs is 8:35 am.
It looks like you have play queue caching set to 15 tracks ahead, that can cause CPU usage on lower powered devices and/or slow SD cards. You can also make sure you have a network speed limit set (advanced / caching / network speed).
elan
October 2, 2022, 7:08pm
7
Happy to get you into Slack for more support, give me your email.
I have set one track ahead queue (seems to be lowest possible) and 10Mbit network limit
I start a stream and see if the problem comes back.
Following the modifications the load looks more reasonable:
(this is metrics from the PI)
elan
October 2, 2022, 7:22pm
11
OK, glad to hear! For some reason on the Pi (esp slower + with slow SD) I/O is expensive.
Indeed, just 3 IOPS at 800ms - let’s say it’s quite slow …
elan
October 2, 2022, 7:43pm
13
did you get your SD card out of a child’s toy?
Hey it was probably very cheap at least
system
Closed
January 1, 2023, 6:13pm
15
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.