Forum

Full Version: Disk Video Cache location (using NFS root)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'd like to test the following setting:
Quote:cachemembuffersize
Value: 0 - we can use the local disk memory (typically your hard drive)

But my setup is using root on NFS so the video cache will use NFS disk... very bad Sad

I have plenty of unused space on my class 10 sd card: can I remap video cache on some folder/partition on my sd card?
Should be able to symlink the cache folder to local disk using bind.
(24th Feb, 2015 09:48 PM)f1vefour Wrote: [ -> ]Should be able to symlink the cache folder to local disk using bind.

Yes, I can symlink or mount bind, but I don't know which folder is used as cache
I think it's in ~/.kodi/temp
I tried ~/.kodi/temp

I'm unhappy to not have any more kodi.log on nfs.
It was nice to examine the log file offline. Even after a xbian crash
(obviously nfs is on my main server)

This evening I will try playback of some monster 10G mkv
I don't suggest you constantly write (i.e. caching) to a SD card.
RAM is also a lot faster.
What are you trying to achieve?
(25th Feb, 2015 04:05 AM)menakite Wrote: [ -> ]I don't suggest you constantly write (i.e. caching) to a SD card.
RAM is also a lot faster.
What are you trying to achieve?

Experimenting Wink
My media are on my NFS server. Some very big mkv sometimes stutters. I think my server is a bit overloaded cause it's also doing video surveillance and motion detection with zoneminder. I'm trying if disk cache can do better.
Using NFS root my SD card is only used for the /boot partition, so I don't care so much of abusing it as bit

As I could see, disk cache is growing a lot during playback.
I can see some files in ~/.kodi/temp
filecache000.cache
filecache001.cache
...

I think kodi start to download locally the stream, as fast as network can achieve. Probably if I pause for enough time I will get a local mirror of the whole file.

From the log file I get many
Quote: WARNING: Close: failed to delete temporary file ""
but playback seem fine
Ahh ok, experimenting is fine.
All my media are on NFS too, even over wifi, and I can't see any stutter. Are you using Kodi's internal NFS implementation?
I was experiencing stuttering with it, so I'm mounting my shares at the OS level (fstab) with the following flags: hard,noatime,rsize=32768,wsize=32768,nolock,async,bg (pick the maximum rsize and wsize your NFS server allows - you need to verify with "cat /proc/mounts").

I'm also using this trick in advancedsettings.xml, because Kodi does not buffer local files by default (it doesn't know it's actually a network share mounted locally):
Code:
<network>
    <buffermode>1</buffermode>
</network>
what kind of media you playing? do you have pass through sound or downmix?
I can easily play full hd 1080p DTS over NFS or even SMB but pass through. haven't tested downmix for very long time
I'm using this in fstab
rw,nolock,async,nfsvers=3,actimeo=0,udp,soft,intr,rsize=65536,wsize=65536,noatim​e

but my server is VERY busy

load average: 4.85, 4.92, 4.18 with dual core atom
6 ip cam with zoneminder
mysql with php data logging from some arduino
apache (with some reverse proxy option)
bind
fail2ban
rtorrent
cifs/nfs
ftp
softraid 5

and some tarpit honeypot with iptables
Reference URL's