Thread Closed
OpenELEC Testbuilds for RaspberryPi Part 3 (Kodi 14.0)
(2014-07-06, 13:21)xer0 Wrote: Thanks Milhouse for adding Zram. Working here brilliantly. For anyone wanting to enable and try it here's my autostart.sh -

Code:
#!/bin/sh
#
# Autostart.sh

# Load Zram Module
modprobe zram

# Set Zram Compression (default lzo)
echo lz4 > /sys/block/zram0/comp_algorithm

# Set Zram Size
echo 64M > /sys/block/zram0/disksize

# Optimize Read Ahead (default 128)
echo 1024 > /sys/block/zram0/bdi/read_ahead_kb

# Enable Zram
mkswap /dev/zram0
swapon /dev/zram0

From my really quick test it looks like using LZ4 compression offers faster compression speeds but a lower compression ratio than LZO. I would rather have speed and performance over trying to squeeze as much into ram as I could.

One thing I might play around with later is the swappiness value. From what I understand, it's set low so not to swap as often to a physical swapfile to save on sd writes but that would not be a problem using Zram as the swap is contained entirely in ram so we can read/write as much as we want.

What kind of improvement did you noticed with that setup?

In the link you have:
3) Activate:
mkswap /dev/zram0
swapon /dev/zram0

mkfs.ext4 /dev/zram1
mount /dev/zram1 /tmp

In your post you do not speak of:
mkfs.ext4 /dev/zram1
mount /dev/zram1 /tmp

Isn't that needed?
  Thread Closed
 
Thread Rating:
  • 8 Vote(s) - 4.88 Average


Messages In This Thread
Re: RE: - by Mafarricos - 2014-06-04, 20:21
Live tv issues again - by pootler - 2014-06-04, 23:29
Re: RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by Mafarricos - 2014-07-06, 17:28
RE: OpenELEC Testbuilds for RaspberryPi Part 3, - by removed151214 - 2014-08-04, 23:38
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-08-19, 00:11
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-08-21, 20:42
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-22, 22:20
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-22, 22:34
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-22, 22:44
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-23, 01:12
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-23, 23:24
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-09-25, 01:38
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-01, 18:12
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-01, 18:26
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-05, 01:07
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-11, 03:48
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-11, 04:06
RE: OpenELEC Testbuilds for RaspberryPi Part 3 - by removed151214 - 2014-10-11, 11:29


Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi Part 3 (Kodi 14.0)4.888