v19 RBPI4 4GB unstable performance from NAS SMB share (80mb/s read)
#1
Hello forummers! I only got my RBPI4 two weeks ago so I'm all very new to this. I am running a 4GB model with LibreELEC in Noobs connected to a little gigabit switch. My main goal is to watch movies from the public SMB share of my NAS, which is connected to the same switch so I can leave my laptop connected in my studio.

My NAS isn't the fastest out there, but I'm measuring read/write speeds around 80/40mb/s when I connect my Macbook to the same switch with an ethernet cable.

I thought that should be plenty for 15 to 20gig 2,5h movie files, but from time to time Kodi simply can't play these without buffering every 2 to 10 minutes. With VLC in Raspbian, the files play without any hiccups.  

I have already added the advancedsettings.xml file in the "Userdata" folder through SMB, with no succes. Here's how it looks:
<advancedsettings>
<network>
<buffermode> 1 </buffermode>

<readbufferfactor> 10 </readbufferfactor> <!-- Comment: Default is 4.0 -->

<!-- (comment) Set buffersize to 750mb // Default is 20971520 bytes or 20 MB -->
<cachemembuffersize> 786432000 </cachemembuffersize> 

</network>
</advancedsettings>
Reply
#2
IMHO, when you already need such buffer settings in your setup for a local NAS, then something is wrong elsewhere in your network connection. Or some internal SMB bug in Kodi is still active. Try NFS instead of SMB. You may have to enter the connection details manually in the sources.xml file, as NFS browsing can have its own quirk. NFS throughput is fine.

Alternatively, you could try creating system SMB connections (outside of Kodi), and see if that way is better.

(2020-01-16, 05:46)pieterv1 Wrote: <buffermode> 1 </buffermode>
It's best to avoid spaces when entering values between tags.

(2020-01-16, 05:46)pieterv1 Wrote: My NAS isn't the fastest out there, but I'm measuring read/write speeds around 80/40mb/s
You have to be specific: MB, Mb , mb ... can all mean different things. 80/40 Mb/s => 10/6 MB/s, which is not awfully fast compared to proper gigabit speeds. Which NAS is it? Does it have a proper gigabit connection? The wrong UTP cable may give you only a 100Mb/s connection... Double-check that, just in case.

(2020-01-16, 05:46)pieterv1 Wrote: I am running a 4GB model with LibreELEC in Noobs
If you use NOOBS only for LibreELEC, i recommend installing solely LibreELEC onto the SDcard.
Got a Kodi problem? Provide us with a full Debug log (wiki) || Usefull pages: First time user (wiki) || Troubleshooting (wiki) || Free content (wiki) || Forum rules (wiki) || VPN policy (wiki)
Reply
#3
Hi Klojum, yes the NAS speed is in megabytes using the blackmagic diskspeed test for a 5gb file. It is a Seagate 2Bay with 2x 2TB which I was able to pick up new for 175€ almost 3 years ago. 
Of course it does have a gigabit connection and I can confirm on the switch that I'm using a gigabit cable.

I'm using Noobs to switch between Lakka and Kodi.

It seems like the Seagate supports NFS so I'm going to give that a try! Thank you for your suggestion
Reply
#4
No more issues through NFS! Are there any drawbacks on keeping my advanced settings file? Or can I just keep it since I do have the extra headroom with the 4GB ram?
Reply
#5
(2020-01-21, 05:28)pieterv1 Wrote: Are there any drawbacks on keeping my advanced settings file?
If things also work without it, I'd remove the buffer settings.
A good-working local network shouldn't need them.
Got a Kodi problem? Provide us with a full Debug log (wiki) || Usefull pages: First time user (wiki) || Troubleshooting (wiki) || Free content (wiki) || Forum rules (wiki) || VPN policy (wiki)
Reply
#6
Some issues have been found recently with file caching in Kodi 19 when using Samba shares (see PR17042) and it's not entirely likely at this time that the fixes will be backported to Kodi 18.x, in which case using NFS in place of Samba is the best solution with Kodi 18.x.

Currently there are no official or community test builds of LibreELEC with Kodi 19 for RPi4 (there will be such releases in future, once all the software pieces are in place etc.)
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
RBPI4 4GB unstable performance from NAS SMB share (80mb/s read)00