Nov 15 2008
Speed up your Compile Times
Having loads of apps to compile, I worked on improving times.
I wasn’t getting the best performances out of my Linux Redhat, so I turned off the cpuspeed service. I don’t know what’s up with cpuspeed, but it doesn’t release the full cpu capabilities.
Then I took benefits of the server’s 4 processors running "make command" in parallel mode with -j option. Looks like setting the jobs to the number of CPUs gives the best results.
compile server# make
5m7s
compile server# /etc/init.d/cpuspeed stop
compile server# make
4m30s
compile server# make -j 4 # number of CPUs
2m22s
Combining the two, compiling PHP is more than twice as fast!