4 ms·
on modern system with a lot of RAM I found myself doing the opposite of swap to speed up development : mount disk on RAM using tmpfs [1] and then change the cca
by vmarsy 10y ago
on modern system with a lot of RAM I found myself doing the opposite of swap to speed up development : mount disk on RAM using tmpfs [1] and then change the ccache [2] directory to that ram disk. With that setup, I obviously don't want swap to kick-in :) It can make the compilation of C++ programs much faster.
[1] http://ubuntublog.org/tutorials/how-to-create-ramdisk-linux.htm http://ubuntublog.org/tutorials/how-to-create-ramdisk-linux....
[2] https://linux.die.net/man/1/ccache https://linux.die.net/man/1/ccache
- pavanky 10y agoI have had /tmp as tmpfs for a couple of years since arch switched to this layout. I ended up having the opposite problem, probably because I never had enough RAM. I have only ever enabled swap when compiling a few projects with "-j8" would take up all the memory. Using fewer threads would usually end up being slower than more threads + swap.