LibreELEC is not fully using available bandwidth when streaming via NFS share

  • Hello everyone.

    When I'm streaming a file from my NFS share Kodi keeps buffering it even with enough bandwidth available.
    Swapping the RPI with a laptop and using VLC to stream the file works fine without buffering.
    I've also noticed that streaming via VLC fully utilizes the available bandwidth but streaming via Kodi only uses about 13 Mbit/s instead of 28 Mbit/s.

    My setup
    * RPI 4 B 4GB RAM
    * LibreELEC 12.2.1
    * 40 Mbit/s connection (net rate is ~28 Mbit/s)
    * 21 Mbit/s bitrate of the file
    * "Caching" set to "Buffer all network filesystems, including: SMB, NFS, etc."

    What I tried so far
    * Settings/Services/Caching: Changing Memory Size, Read Factor and Chunk Size
    * Settings/Services/NFS Client: Changing Chunk Size

    Using the "Player Debug Info" I still can see that Kodi is unable to fill the buffer fast enough, even though there is plenty of bandwidth available.

  • Most users wrongly believe caching to be a good thing. It is not, and if bandwidth is truly adequate, it should be disabled or at least minimised. The description and low Mbps rates makes it sound like you are using NFS over an internet connection ??