Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: gavinmc42 on May 12, 2017, 10:06:24 PM

Title: zRam for building
Post by: gavinmc42 on May 12, 2017, 10:06:24 PM
Came across this.
http://geektillithertz.com/wordpress/index.php/2017/03/16/raspberry-pi-zram/

We all know Pi3's only have 1GB, compiling big stuff takes a long time as stuff is swapped to SDcard.
Bela talks of overnight type build times :o

Since I am very new to using piCore for compiling I want to know if this is already part of  piCore?
I have seen the zram0 stuff on boot but never really paid attention to it.

Is anyone else doing long build time stuff with piCore?
Title: Re: zRam for building
Post by: Paul_123 on May 13, 2017, 05:00:16 AM
Zram is enabled by default.  But the size of the ram disk is predetermined during the boot cycle.  The size is a percentage of the total memory.   I forget the actual percentage, but if you look at /etc/init.d/tc-config, you will see it.

If you want to play with increasing the size.....add "nozswap" to the command line, then you can setup by yourself in bootlocal.sh