Compiling in RAM

I like to speed up the compiling process by compiling in RAM. Almost all additional software that I use is installed from Scripts from there use /tmp/SBo for compiling, as can be seen from the templates files.

So, I made sure that /tmp/SBo exists and is empty. Then, I just added the following row in my /etc/fstab file:

devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
SBo              /tmp/SBo         tmpfs   nodev,nosuid,size=7G 0   0

Reboot. I have 8GB of RAM, so I set 7GB for the size.

I got the idea from the time I used CRUX and reading their wiki. Another way is to just mount the whole /tmp folder in RAM.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s