Minor speed tweak tip

Shern, Benjamin J ShernBJ at LOUISVILLE.STORTEK.COM
Mon Feb 10 15:20:04 GMT 2003


For those of you with a decent size chunk of RAM:
I've benchmarked 5-10% improvement in compile times by caching /usr/bin into
memory.  The best way I've found to do this is:

mkdir /usr/bin_ram
mount -t tmpfs tmpfs /usr/bin_ram
cp -a /usr/bin/* /usr/bin_ram

Edit /etc/profile and put /usr/bin_ram before /usr/bin.

Only caveat is that you're mindful to re-mirror the tmpfs after removing
packages.

Even on systems with less memory I'm guessing some performance could be
added during compiling by caching individual binaries such as gcc, binutils,
make, install etc...

regards,
Ben


Curious if anyone else has tested this and seem similar or better results...


More information about the Lunar mailing list