Compile faster throught a RAM disk

Compile programs takes a long time.
Do you have an SSD and it takes more time than with your old HDD? A good solution is create a RAM disk and compile on them.
First, you need to create a disk on your RAM (I chose 1Gb size)

sudo mkdir /mnt/tmpfs
sudo mount -o size=1G -t tmpfs none /mnt/tmpfs

Now, for test the speed, procced to create a file on it with dd:

dd if=/dev/zero of=file bs=1M count=100

On Ram disk (1.8 GB/s):



On SSD disk (172 MB/s):



It's a great difference!
Enjoy it!

Comments

Popular posts from this blog

from: can't read /var/mail/ in Python scripts

How to fix Android when developer options are not available for this user

Fix "Set scan parameters failed: Input/output error" on Ubuntu 16.04