WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: zRam for building  (Read 1886 times)

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
zRam for building
« 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?

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1072
Re: zRam for building
« Reply #1 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