« ユーザ参加型のブログ 食ベログ 東京のレストラン | メイン | 痔の治療は痛くないらしい。 »
2005年4月 6日
icc を使ってみる
intel compiler で Apache が 400% 高速化 を読んでやってみることにしました。
1. http://www.intel.com/software/products/compilers/downloads/clin.htm から l_cc_pc_8.1.028.tar.gz をダウンロード
2. gzip -d l_cc_pc_8.1.028.tar.gz
3. tar cvf l_cc_pc_8.1.028.tar
ライセンスの登録が必要なので、登録して、
4. cp ~/*lic .
su して ./install.sh
選択を順番でしてインストールします。
~/.bash_profile に追加
source /opt/intel_cc_80/bin/iccvars.sh
source /opt/intel_idb_80/bin/idbvars.sh
apache2.53
CC=icc CFLAGS="-O3 -tpp7 -xWNB -axWNB -ip" LIBS=-lpthread ./configure --enable-so --enable-shared --enable-rewrite
make
make install
php4.3.11
CC=icc CFLAGS="-O3 -tpp7 -xWNB -axWNB -ip" LIBS=-lpthread ./configure
--with-apxs2=/usr/local/apache2/bin/apxs
--enable-mbstring
--enable-mbstr-enc-trans
--enable-mbregex
--enable-trans-sid
--with-zlib-dir=/usr/local/lib
--with-gd
--with-jpeg-dir=/usr/local/lib
--with-png-dir=/usr/local/lib
--with-freetype-dir=/usr/local/lib
make
make install
とかしてインストール。確かに早いような気がするヽ(´ー`)ノ
投稿者 hideki : 2005年4月 6日 01:30
トラックバック
このエントリーのトラックバックURL:
http://zephel.com/hideki/cgi-bin/mt/mt-tb.fcgi/80