Forum
[SOLVED] How to limit cache (or caching) size (solved) - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Kodi (/forum-18.html)
+---- Forum: Kodi Settings (/forum-36.html)
+---- Thread: [SOLVED] How to limit cache (or caching) size (solved) (/thread-2269.html)



How to limit cache (or caching) size (solved) - Exnor - 6th May, 2014 04:05 AM

Hi guys,

I want to limit my caching / cache size so a specific value when streaming from Http (using plug-ins like 1channel).

Is that possible? If so what file or files i need to edit?

Running the latest Xbian RC (always updated)
Pi model B, 512 RAM.

Thanks.


RE: How to limit cache (or caching) size ? - rikardo1979 - 6th May, 2014 05:07 AM

if you would like to play with buffer size of cache you find it in advancedsettings.xml file


RE: How to limit cache (or caching) size ? - Exnor - 7th May, 2014 12:38 AM

(6th May, 2014 05:07 AM)rikardo1979 Wrote:  if you would like to play with buffer size of cache you find it in advancedsettings.xml file

Ok thks, but my file only contains the following:

"""
<advancedsettings>
<network>
<cachemembuffersize>0</cachemembuffersize>
<curlclienttimeout>45</curlclienttimeout>
</network>
<gui>
</gui>
<videoscanner>
<ignoreerrors>true</ignoreerrors>
</videoscanner>
<gui>
<algorithmdirtyregions>3</algorithmdirtyregions>
<nofliptimeout>0</nofliptimeout>
<visualizedirtyregions>false</visualizedirtyregions>
</gui>
<destroywindowcontrols>0</destroywindowcontrols>
<useddsfanart>0</useddsfanart>
</advancedsettings>
"""

Besides the cachemembuffersize (that is already at zero) i dont know what to do to limit the cache...


RE: How to limit cache (or caching) size ? - IriDium - 7th May, 2014 01:32 AM

I think you should be using <buffermode>3</buffermode> which is no buffer for video files.

<cachemembuffersize>0</cachemembuffersize> is used to cache to the local disk (No RAM used)
Mine is 20971520 <cachemembuffersize>20971520</cachemembuffersize>


RE: How to limit cache (or caching) size ? - Smultie - 7th May, 2014 01:42 AM

http://wiki.xbmc.org/index.php?title=HOW-TO:Modify_the_video_cache

Lots of info there.

I have mine set as:
<network>
<buffermode>1</buffermode> <!-- Comment: Default is 1 -->
<cachemembuffersize>0</cachemembuffersize> <!-- Comment: Default is 20971520 bytes or 20 MB -->
<readbufferfactor>4.0</readbufferfactor> <!-- Comment: Default is 1.0 -->
</network>


RE: How to limit cache (or caching) size ? - Exnor - 7th May, 2014 02:29 AM

(7th May, 2014 01:32 AM)IriDium Wrote:  I think you should be using <buffermode>3</buffermode> which is no buffer for video files.

<cachemembuffersize>0</cachemembuffersize> is used to cache to the local disk (No RAM used)
Mine is 20971520 <cachemembuffersize>20971520</cachemembuffersize>

So if i use <cachemembuffersize>value</cachemembuffersize> it will use the RAM instead of the SDcard? does this have any impact pn local shares (NFS,SMB,Upnp)? Because i dont want caching on local shares...

If i use Buffermode 3 will i loose all caching abilities for HTTP video stream?

Thks .

(7th May, 2014 01:42 AM)Smultie Wrote:  http://wiki.xbmc.org/index.php?title=HOW-TO:Modify_the_video_cache

Lots of info there.

I have mine set as:
<network>
<buffermode>1</buffermode> <!-- Comment: Default is 1 -->
<cachemembuffersize>0</cachemembuffersize> <!-- Comment: Default is 20971520 bytes or 20 MB -->
<readbufferfactor>4.0</readbufferfactor> <!-- Comment: Default is 1.0 -->
</network>


Thks for the link mate. Going to read and see if i can find what i want Smile

Edit: ok thks for the help Big Grin. i was able to limit the cache to 20MB on internet files and disable for local shares Smile