Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


[split] WebUI performance
#1
(12-09-2023, 06:47 PM)TheOldPresbyope Wrote:
(12-09-2023, 05:28 PM)ycnalgm Wrote: @TheOldPresbyope do you have a view on the optimal memory for a Raspberry Pi 4 Model B - 1,2, 4 or 8GB?
Thanks

For the most part, I'm running vanilla moOde players with either DAC HATs or USB DACs and not making extraordinary demands in terms of CamillaDSP processing or other memory-intensive tasks. I find even the 512MB model Pis, such as my favorite, the 3A+, are adequate.

A Pi 4B 1GB model works for me; a Pi 4B 2GB model has more than enough headroom; and the 4GB and 8GB models are overkill for playing music IMHO.

I do not try to make the Pis serve multiple purposes by loading other programs to run along-side moOde. That could increase the demand for memory but how much depends on specifics.

I'm running moOde on a Pi 3B, using a USB DAC, connected over WiFi, and no Bluetooth (I use the SMSL C200's bluetooth as needed instead). 

It's working fine - no audio drop outs or anything.

Only *very* minor issue is a slight lag in the web interface. I have a 120GB music collection stored on a NAS. 

Would a Pi 4B have a slightly faster / no-lag web interface?
TrueNAS scale -> Pi 3B -> SMSL C200 -> Naim NAIT 2 -> Theophany M4 -> ears
Reply
#2
How many tracks in your collection?
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(12-09-2023, 11:18 PM)Tim Curtis Wrote: How many tracks in your collection?

22788 tracks, spread across 1580 albums, lasting 9 weeks 1 day, 4 hours, 54 minutes and 54 seconds Smile

It really isn't laggy in any meaningful way: scrolling through the album covers is smooth, it takes about 5 seconds when clearing a search for the full library to redisplay, and ~2 seconds to search for 'Knopfler' and get results displayed.

To be honest I couldn't ask for better & I'm probably just itching for an excuse to buy a Pi 4.
TrueNAS scale -> Pi 3B -> SMSL C200 -> Naim NAIT 2 -> Theophany M4 -> ears
Reply
#4
(12-10-2023, 04:01 AM)sultanoswing Wrote:
(12-09-2023, 11:18 PM)Tim Curtis Wrote: How many tracks in your collection?

22788 tracks, spread across 1580 albums, lasting 9 weeks 1 day, 4 hours, 54 minutes and 54 seconds Smile

It really isn't laggy in any meaningful way: scrolling through the album covers is smooth, it takes about 5 seconds when clearing a search for the full library to redisplay, and ~2 seconds to search for 'Knopfler' and get results displayed.

To be honest I couldn't ask for better & I'm probably just itching for an excuse to buy a Pi 4.

This seems about right for my library....(buy a pi5 and never worry again :-)   cheers Bob NZ)
Reply
#5
(12-10-2023, 04:01 AM)sultanoswing Wrote:
(12-09-2023, 11:18 PM)Tim Curtis Wrote: How many tracks in your collection?

22788 tracks, spread across 1580 albums, lasting 9 weeks 1 day, 4 hours, 54 minutes and 54 seconds Smile

It really isn't laggy in any meaningful way: scrolling through the album covers is smooth, it takes about 5 seconds when clearing a search for the full library to redisplay, and ~2 seconds to search for 'Knopfler' and get results displayed.

To be honest I couldn't ask for better & I'm probably just itching for an excuse to buy a Pi 4.

The number of tracks is pretty typical for an "enthusiast" collection. If you would have added a zero on the end then :-0
Those times aren't too bad.

Overall throughput with moOde is determined by the combined throughputs of:

1. Client/Browser
2. Server/moOde
3. Network
4. Server/Storage medium for collection

Improving throughput is a matter of improving the throughput of any 1 - 4 above but the challenge is to isolate which of them is causing a bottleneck.

Couple things to try are:

1. Clear/empty the client Browser cache. Really large Browser caches can cause slow Browser performance.
2. Upgrade to a faster Pi. In this case try a Pi-4. 
    Note: that moOde is not available for pi-5 yet (timeframe TBD).
3. Use Ethernet connection if slow WiFi is suspected
4. Move collection to USB attached storage if it's currently on a NAS and slow NAS is suspected
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
New thread started with yesterday posts split from the "RPi hardware requirements" thread in FAQ and Guides https://moodeaudio.org/forum/showthread....4#pid48074
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#7
Thanks Tim - good tips.

I'm sure I won't be able to resist a Pi5 once the compatible version of moOde is released, so will have a play then Smile
TrueNAS scale -> Pi 3B -> SMSL C200 -> Naim NAIT 2 -> Theophany M4 -> ears
Reply
#8
Two thoughts spawned from Tim's list of things to try-

1. Regarding the browser accessing the moOde WebUI, you didn't mention which browser (and on which OS) you're using. Try different browsers---e.g., Chromium, Firefox, Edge, Safari, etc., whatever is available. They behave differently at different tasks. Also, if you're using privacy/security add-ons, try disabling any checking of your moOde player "site".

2. Regarding WiFi, go to the 5 GHz band if you're still using 2.4 GHz. Fundamentally, the throughput will be better and there's likely to be less interference which also affects throughput.

3. On the moOde side, using an SSD on one of the USB3.0 interfaces of an RPi4B should give very good Library performance. The RPi5B may yield even faster performance but it's a matter of diminishing returns and, for me, increasing cost/performance ratio. This is especially so since the RPi5B will almost always need active cooling and a more muscular power source, which also add to the cost.

Meanwhile, enjoy the music Smile 

Regards,
Kent
Reply
#9
(12-11-2023, 02:35 PM)TheOldPresbyope Wrote: 1. Regarding the browser accessing the moOde WebUI, you didn't mention which browser (and on which OS) you're using. Try different browsers---e.g., Chromium, Firefox, Edge, Safari, etc., whatever is available. They behave differently at different tasks. Also, if you're using privacy/security add-ons, try disabling any checking of your moOde player "site".

2. Regarding WiFi, go to the 5 GHz band if you're still using 2.4 GHz. Fundamentally, the throughput will be better and there's likely to be less interference which also affects throughput.

3. On the moOde side, using an SSD on one of the USB3.0 interfaces of an RPi4B should give very good Library performance. The RPi5B may yield even faster performance but it's a matter of diminishing returns and, for me, increasing cost/performance ratio. This is especially so since the RPi5B will almost always need active cooling and a more muscular power source, which also add to the cost.

Also thanks! Smile

1. Brave browser, on Android phone & iPad4. When I use the desktop PC with Brave the library refreshes in around 3 seconds, and does the 'Knopfler' search also in 3 seconds - very speedy, and slightly quicker than on the phone or iPad.

2. I'm stuck on 2.4Ghz due to the location of the Pi & my AP's.

3. As above - the performance is probably limited by phone / iPad browser related based on #1, rather than my otherwise speedy NAS. 

TLDR; am therefore happy with the Pi 3B after all Heart . Especially since I had been concerned about the USB-network shared BUS, but it's not a practical concern.
TrueNAS scale -> Pi 3B -> SMSL C200 -> Naim NAIT 2 -> Theophany M4 -> ears
Reply
#10
I am on a Pi4 4GB, about 15k tracks in 1k2 albums, and on my 7'' display, reloading the entire library takes about 3/4 seconds; the search results are returned within 2/3 seconds.
It depends for sure on the Pi horsepower, but also on the SD card read speed (and my current one is not high-performance)... I don't remember what were the timings when I had moOde running on a Pi3, and anyway, at that time my CD library was not yet completely transferred to it, so the volume of information was way too little to compare with yours.

Maybe today I'll reflash the 8.3.7 onto a high-speed video-grade SD card (I think it's about time, almost one year has passed since when I first considered doing it...), perform some searches, and try to see if any speed gain can be achieved.
Reply


Forum Jump: