Since I upgraded to Kodi 18, kodi seems to crash frequently. After a bit of hunting, most crashes are related to out of memory condition. I am not running extra processes beside openVPN (eating a couple of megabytes only). No extra addons beside a screensaver. My Raspberry Pi 3B+ has 1GB or RAM and no SWAP configured. It runs 24/7.
Apparently, Kodi (or some standard addon, I only use the standard repository) is leaking memory.
I have evolved this OSMC instance since 2015 (?), doing the monthly upgrades. Never reinstalled it again.
I wonder why nobody else is complaining about this :-?
In any case, I wonder if anybody is running OSMC on the Raspberry PI with ZRAM or similar technology. I would rather not do swap over the microSD.
Would you mind to share your Kodi memory usage after booting and after a few hours sitting idle, just for comparison?
My last Kodi instance was killed by the OOM when it was using 685MB. After 8 hours being idle (only screensaver showing a slideshow with personal pics), Kodi is using 258MB. Growing slowly. My Raspberry reports 230MB free RAM (using “free”). There is nothing else sucking memory.
Kodi is being killed by the OOM because it is too big (almost 700 MB) after a few hours of operation. According to your reply, this is unexpected and I have something fishy in my OSMC instance. Since I don’t use any fancy addon, only a screensaver (the stock image slideshow), I wonder what is going on.
My library is quite huge, around 25.000 media files.
Since my first post, my kodi process grew from 258 to 262 MB.
I have a Raspberry Pi 3 Model B Rev 1.2 according to dmesg.
It is running OSMC w/ Kodi v18. The package according to dpkg is
rbp2-mediacenter-osmc 18.3.0-11
I runs 24/7 and I can’t remember the last time it crashed.
No swap here according to free
$ free -mh
total used free shared buff/cache available
Mem: 730M 193M 74M 14M 462M 475M
Swap: 0B 0B 0B
I don’t remember the skin, but it isn’t the default. I miss Confluence which worked great before v18. The OSD stuff is really obnoxious and the caching of media files from DLNA sources has been a problem recently.
For a VPN, I have an Ubuntu VM running under KVM, but generally use ssh, ssh-proxy or x2go into my normal desktop when I’m travelling. The r-pis in the house aren’t used for that.
I’ve setup zram on other laptops before and it did help, but on a Pi, I wouldn’t want to destroy the microSD cards nearly that fast. I’ve never had a microSD fail due to write endurance issues in a Pi, but there is a 32G flash card in it with only about 16G used.
I don’t have a screen saver enabled either. It is a media player connected to a projector and receiver for audio and nothing more. Besides OSMC, sometimes I’ll use cmus to playback audio when the projector isn’t on.
Anyway, it is stable. I haven’t done a full re-install in years. Just do a dist-upgrade every 6 months or so when the timing won’t get me into trouble with the wife, she who must be obeyed.
With my lazy patching, I wouldn’t want it available to the internet. I’ve been running internet servers for over 25 yrs now.