NOTE: This post is just a FYI for future OSMC travellers who might need some direction. Comments, as always, are welcome.
One of my biggest lessons was to realize that you are dealing with a board that only has 1gb of ram on it. After loading OSMC only like 780mb.
Tip 1, if you choose a skin… Make sure you know what you are doing. A heavy skin, in my case Aeon Nox, will make your experience a frustrating one…
Tip 2, try and create a job to watch your memory usage. This is a process that I fire off every minute, simply checking the free memory, and if need be, I.e. 130mb or less, I free up the memory.
Tip 3, buy a FAST SD card. Look for one with 70mbps+ read speed.
Tip 4, use LAN, not WLAN. In my case, this was particularly important since I have a drive connected to my pc, so need a fast (min 100mb) connection. Lay those cables…
These things made my setup be a smooth running one after months of frustration…
My setup.
Rpi 3 with:
Cooling fan and heat syncs
16GB UHS-I micro SD card (Up to 95MB/s Read and 20MB/s Write speed with Class 10 and U1 compatibility.)
Skin: Arctic Zypher
My library is on a mysql db on my pc.
Currently over 1500 movies and close to 900 series episodes.
My most intensive addon is a live paid TV streaming app which loads 400 channels and populates the TV Guide.
I have created a cronjob that runs the below script, every minute:
var=$(free | awk '/^Mem:/{print $4}')
freem=$((var / 1024))
if [ $freem -lt 131 ]
then
sudo -s echo 3 > /proc/sys/vm/drop_caches
echo "Cache cleared. Was $freem $(date)"
fi
#check log file size... delete if over 400
file=/var/log/conclearmemout.log
minimumsize=400
actualsize=$(du -k "$file" | cut -f 1)
if [ $actualsize -ge $minimumsize ]
then
rm $file
fi
My advancedsettings file:
<?xml version="1.0" encoding="utf-8"?>
<advancedsettings>
<videolibrary>
<importwatchedstate>true</importwatchedstate><importresumepoint>true</importresumepoint>
</videolibrary>
<videodatabase>
<name>MyVideos</name>
<host>192.168.255.5</host>
<user>kodi</user>
<pass>passwww</pass>
<type>mysql</type>
<port>3306</port>
</videodatabase>
<cache>
<buffermode>1</buffermode>
<readfactor>4.0</readfactor>
<memorysize>62914560</memorysize>
</cache>
<video>
<excludefromscan>
<regexp>[-\._ ](sample|trailer)[-\._ ]</regexp>
</excludefromscan>
<excludefromlisting>
<regexp>[-\._ ](sample|trailer)[-\._ ]</regexp>
</excludefromlisting>
</video>
</advancedsettings>
Hope someone out there finds this helpful…
Finally, a word of thanks to Sam and the guys that put the hard work in for us.
Good luck with the new Vero+…