intel compiler ¤Ç Apache ¤¬ 400% ¹â®²½

Drk7jp¥È¥Ã¥× > £É£î£ó£ô£á£ì£ì >

Linux ·Ï¤Î³Æ¼ï¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¥¤¥ó¥¹¥È¡¼¥ë¥á¥â¤ä¥Á¥å¡¼¥Ë¥ó¥°¾ðÊó

intel compiler ¤Ç Apache ¤¬ 400% ¹â®²½

¡Ö̵ÎÁ¤Ç30%¤Î¥Ñ¥Õ¥©¡¼¥Þ¥ó¥¹UP!! - intel compiler¡×¤Ç¤â½ñ¤¤¤¿ intel compiler ¤Ç¤¹¤¬¡¢apache1.3.33 + mod_perl 1.29 ¤òºÆ¹½ÃÛ¤·¤Æ¤ß¤Þ¤·¤¿¡£apache bench ¤Ç®ÅÙ¤ò¬¤Ã¤Æ¤ß¤¿¤é¡¢¥Ê¥ó¥È 400% ¤â¹â®²½¤·¤Æ¤¤¤Þ¤·¤¿¡£­ô(¡±¢¢¡±;)ŽÅŽÝŽÄ!!¡¡ËÜÅö¤«¤¡¡©¡©¤È»×¤Ã¤Æ¿ô²ó»î¤·¤Æ¤ß¤Þ¤·¤¿¤¬¡¢·ë²Ì¤ÏƱ¤¸¤Ç¤·¤¿¡£¥¹¥´¥¤¡ª

°Ê²¼¡¢¥¤¥ó¥¹¥È¡¼¥ë¥á¥â¤Èapache bench ¤Î¥í¥°¤Ç¤¹¡£
mv /usr/bin/gcc /usr/bin/gcc.bk
ln -s /opt/intel_cc_80/bin/icc /usr/bin/gcc

mkdir /usr/local/src/icc
cd /usr/local/src/icc
wget http://www.meisei-u.ac.jp/mirror/apache/dist/httpd/apache_1.3.33.tar.gz
tar xvfz apache_1.3.33.tar.gz

cd /usr/local/src/icc
wget http://perl.apache.org/dist/mod_perl-1.0-current.tar.gz
tar xvfz mod_perl-1.0-current.tar.gz
cd mod_perl-1.29
perl Makefile.PL USE_APXS=1 WITH_APXS=/usr/local/apache/bin/apxs EVERYTHING=1 OPTIMIZE="-O3 -tpp7 -xWNB -axWNB -ip"

make
make install

cd /usr/local/src/icc
cd apache_1.3.33

CC=icc CFLAGS="-O3 -tpp7 -xWNB -axWNB -ip" LIBS=-lpthread ./configure --prefix=/usr/local/apache --enable-module=so \
--enable-module=rewrite \
--disable-module=userdir \
--disable-module=status \
--disable-module=asis \
--disable-module=imap \
--disable-module=auth \
--disable-module=include \
--disable-module=setenvif \
--disable-module=negotiation

make
make install

rm -rf /usr/bin/gcc
mv /usr/bin/gcc.bk /usr/bin/gcc

¤Ç apache + mod_perl ¤òºÆ¹½ÃÛ¡£
¡¡
echo 'print "Location: http://www.drk7.jp/MT/\n\n";' > index.cgi
chmod 755 index.cgi

¡¡¤Ç¥ê¥À¥¤¥ì¥¯¥È CGI ¤òºîÀ®¤·¤Æ¡¢/usr/local/apache/bin/ab -n 100 -c 10 http://localhost/index.cgi ¤ò¼Â¹Ô¡£
¡¡
gcc ¥Ð¡¼¥¸¥ç¥ó
Requests per second: 129.98 [#/sec] (mean)
Time per request: 76.933 [ms] (mean)
Time per request: 7.693 [ms] (mean, across all concurrent requests)
Transfer rate: 57.19 [Kbytes/sec] received

icc¥Ð¡¼¥¸¥ç¥ó
Requests per second: 473.69 [#/sec] (mean)
Time per request: 21.111 [ms] (mean)
Time per request: 2.111 [ms] (mean, across all concurrent requests)
Transfer rate: 208.42 [Kbytes/sec] received
05.03.18 Äɵ­ ¡§ /etc/init.d/httpd ¤Ë /opt/intel_cc_80/bin/iccvars.sh ¤Ç icc ¤Ç¥³¥ó¥Ñ¥¤¥ë¤·¤¿¥â¥Î¤òư¤«¤¹ºÝ¤ËɬÍפȤʤë´Ä¶­ÊÑ¿ô¤òÀßÄꤷ¤Ê¤¤¤È¡¢
/usr/local/apache/bin/httpd: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory
¤È¤¤¤¦¥¨¥é¡¼¤Ç¥×¥í¥»¥¹¤¬Íî¤Á¤Þ¤¹¤Î¤Ç¤´Ãí°Õ¤ò¡£


Posted by drk at 2005年03月17日 23:46 | ¤ª¤¹¤¹¤á¾ðÊó | Comments (2) | ¤Ï¤Æ¤Ê¥Ö¥Ã¥¯¥Þ¡¼¥¯¤ËÄɲà |
¤³¤Î¥¨¥ó¥È¥ê¡¼¤Ë´ØÏ¢¤¹¤ë¥­¡¼¥ï¡¼¥É¤È¥¨¥ó¥È¥ê°ìÍ÷

°Ê²¼¤Î½ñÀÒ¤¬»²¹Í¤Ë¤Ê¤ê¤Þ¤¹

¥³¥á¥ó¥È¤ò¤ª´ó¤»¤¯¤À¤µ¤¤










ËÜ·ï¤ËÂФ¹¤ë¥³¥á¥ó¥È(2·ï)
¢¬ Linux¥«¡¼¥Í¥ë¤Ã¤Æ¡¢¾¯¤Ê¤¯¤È¤â¥Æ¥¹¥È¤Ï¥³¥ó¥Ñ¥¤¥é°Í¸¡¢¥Ð¡¼¥¸¥ç¥ó°Í¸¤¬¤¢¤ë¤«¤éÂç¾æÉפʤΤ«¡©¤Ã¤Æµ¤¤¬¤·¤Þ¤¹¤¬¡£
¤Ç¤â¤³¤ó¤Ê¤ËÊѤï¤ë¤Î¤«¡£¤¦¤Á¤Ç¤â¥Æ¥¹¥È¤·¤Æ¤ß¤è¤¦¤«¤Ê¡£
Posted by ¤«¤¤¤¾¡¼ at 2005年04月24日 13:54
linux¥«¡¼¥Í¥ë¤È¤«°ìÄ̤ꥳ¥ó¥Ñ¥¤¥ë¤·¤Ê¤ª¤·¤¿¤é¤µ¤é¤Ë¹â®²½¤¹¤ë¤ó¤Ç¤·¤ç¤¦¤Í¡£
Posted by ¤¢¤ó¤Ç¤ë¤É¤ó at 2005年03月18日 09:04

[¢¤top]

¥µ¥¤¥ÈÆâ¸¡º÷


¥¹¥Ý¥ó¥µ¡¼¥É¥ê¥ó¥¯


¤³¤Î¥Ö¥í¥°Ãæ¤Î¿Í¤ËÏ¢Íí¤ò¼è¤ê¤¿¤¤

¥Ö¥í¥°¡¦¥¢¥Õ¥£¥ê¥¨¥¤¥È支援¥Ä¡¼¥ë

³ÚÅ·¤Î¿Íµ¤¾¦Éʤò¥Ô¥Ã¥¯¥¢¥Ã¥×

ºÇ¶á¤Îµ­»ö

Archives(·îÊÌ)