so bringing this up again.
since there was effort to bring zram to libreelec with: https://github.com/LibreELEC/LibreELEC.tv/pull/6499
but it was closed because of missing activity.
i'm still interested in this since its vital for the use of kodi on 1GB RAM devices.
my story is: i have some PI 3 running kodi. but over the reas kodi gets more and more RAM hunrgy. which brings dead/stuck PI's from time to time. i'm using a sdcard to 8GB mmc flash adpater on my units which would allow swaping but since sd is terrible slow this is no option. so the best solution to "expand" RAM is zram.
currently i run OSMC (debian) which is a quiet RAM hungry installation per default. but time being the only way to bring zram to kodi.
i configured zram to 50% of RAM with lz4 (performance wise the best selection) and set swapiness to the most agressive setting (swapiness=100) in sysctl. my thought was: CPU cycles are really NO problem on the unit running kodi. kodi takes about 30-max 70% (spiking while IPTV streaming) cpu time, so there is plenty of cpu cycles left for compression. so swap early, swap hard to my free RAM. and to my surprise it works quiet well for some time now.
so this should be a blueprint for bringing zram supprort to low RAM units powerful cpu units supported (PI 2/3/4[1GB], ?) by libreelec