Posts

Showing posts with the label tmpfs

Compile faster throught a RAM disk

Image
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!