Improve use of memory and increase stability of the Internet Radio by using Zram.zram (also called zRAM and, initially, compcache) is a Linux kernel feature that provides a form of virtual memory compression. zram increases performance by avoiding paging to disk and using a compressed block device in RAM instead, inside which paging takes place until it is necessary to use the swap space on a hard disk drive. Since using zram is an alternative way to provide swapping on RAM, zram allows Linux to make a better use of RAM when swapping/paging is required, especially on older computers with less RAM installed.
zram offers advantages for low-end hardware devices such as embedded devices, such devices usually use flash-based storage, which has limited lifespan due to write amplification, and also use it to provide swap space. The reduction in swap usage as a result of using zram effectively reduces the amount of wear placed on such flash-based storage, resulting in prolonging its usable life. Also, using zram results in a significantly reduced I/O for Linux systems that require swapping.
Google uses zram in Android since its version 4.4
In our case it stops the router from beeing reset by watchdog/low memory and "virtually" increase the total free RAM available

Zram uses a little CPU power but in our case we have no problem with CPU, we have shortage of RAM instead, so it's a perfect solution!
-----------------------------------------------
OpenWRT Barrier Breaker install instructions:
prerequisites: you need at least 300 Kbytes of free flash space, check it with "
df" command.
opkg update
opkg install zram-swapthen reboot.
After reboot you'll have a device called /dev/zram0
check free memory with "free" command, you should get something like this:
root@(none):/dev#
free total used free shared buffers
Mem: 28860 27724 1136 0 1244
-/+ buffers: 26480 2380
Swap: 0 0 0now insert the following lines right at the begginning of the file "/etc/rc.local" to activate a Zram of 10 Megabytes:
/bin/echo $((10*1024*1024)) > /sys/block/zram0/disksize
/usr/sbin/mkswap /dev/zram0
/usr/sbin/swapon /dev/zram0Reboot the router and check again with "free" command:
root@(none):/dev#
free total used free shared buffers
Mem: 28860 27376 1484 0 1248
-/+ buffers: 26128 2732
Swap: 10236 0 10236That's all

Note, if your router has more of 32 Mbytes of RAM, you may increase the Zram size, the best choice is about 30% of total ram.