Most distros should already has google performance tools prepackaged. Installation of ICC is slightly more complicated, you can download it directly from intel’s website which is free download for non-commercial use. Archlinux and Gentoo both have packaged installer. On ubuntu/debian system you probably also need build-essential and apt-build to rebuilt packages. On archlinux you will need base-devel and abs.
For most packages, the following bash script can be used before configuration/make step. Don’t ommit the dot on first line and change the path of iccvars.sh to your installation directory.
. /opt/intel/Compiler/11.0/081/bin/iccvars.sh intel64 CC=icc CFLAGS="-xHOST -O3 -no-prec-div " LD=xild AR=xiar CXX=icpc CXXFLAGS="-xHOST -O3 -no-prec-div " LDFLAGS=-ltcmalloc_minimal export CC CFLAGS LD AR CXX CXXFLAGS LDFLAGS
These setting seems safe for all packages. Here is a summary of package specific cflags setting.
|configure option||–disable-shared –with-mysqld-libs=-ltcmalloc_minimal||None||None||–disable-jemalloc||Failed with ICC||None|
This might disappoint you. But the rebuilt software stacks show no improvement whatsoever in my benchmark.