Now THIS is cool. I can't wait to try it!<br>
<br>
On 10/04/2013 04:25 AM, Ben West wrote:<br>
> Likewise, leading from chatting briefly with Dan here, I suggested<br>
> adding the "zram-swap" package presently in OpenWRT trunk to the<br>
> commotion packages feed, and then enabling swap in kernelconfig. This<br>
> would let you enable compressed swap memory on nodes, and ideally make<br>
> the memory limit somewhat softer (i.e. help nodes avoid OOM errors and<br>
> processes crashing).<br>
> <br>
> So, specifically, do make kernel_menuconfig and make these selections:<br>
> General Setup -> Support for paging of anonymous memory (swap) *<br>
> Device Drivers -> Staging drivers -> Compressed RAM block device support *<br>
> <br>
> This kernel config change can also be done via a patch, and such a patch<br>
> is buried somewhere in openwrt-devel listserv archives (i.e. when the<br>
> zram package was originally announced).<br>
> <br>
> Then copy the zram_swap package from trunk into commotionfeed and enable it.<br>
> <br>
> For my nodes with 32MB of RAM, I specify 6MB swap in /etc/config/system:<br>
> <br>
> |config system<br>
>     ...<br>
>     option 'zram_size_mb' '6'<br>
> |<br>
> <br>
> You can periodically check swap usage to ensure nothing is using<br>
> excessive RAM:<br>
> <br>
> |root@nsm5-b:~# free<br>
>              total         used         free       shared      buffers<br>
> Mem:         29184        24100         5084            0         2752<br>
> -/+ buffers:              21348         7836<br>
> Swap:         6140            0         6140<br>
> |<br>
> <br>
> —<br>
> Reply to this email directly or view it on GitHub<br>
> <https://github.com/opentechinstitute/commotion-openwrt/issues/40#issuecomment-25683085>.<br>
>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/commotion-openwrt/issues/40#issuecomment-25709834'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/HSS0tS4nfORw_XnPQF8f0SpjGpYv_prl9qYmfYTxwcDTK3rYv4A64CZ0a9PM_sMU.gif' height='1' width='1'></p>