BUILDED APACHE 2.2.10,POSTGRESQL 8.2.10 ,CGI PROGRAMMING COMPILER INTEL ICC (11) O/S LINUX OPENSUSE 11 AND DEBIAN 4.0 R2

BUILDED APACHE 2.2.10,POSTGRESQL 8.2.10 ,CGI PROGRAMMING COMPILER INTEL ICC (11) O/S LINUX OPENSUSE 11 AND DEBIAN 4.0 R2

imagem de bustaf

Hi to all

Remarks: Choice option --with-mpm=worker or --with-mpm=prefork
1(worker) Apache as mother control to multiple tree process (better you having large plug charge (several users))
2(prefork) (required if you using PHP or multiply thread instanced with CGI)
also if you having to use module (deflate) to decrease weight (compressed exchange pipe (in out) to stream socket)
differencing (1-2) can be no result benefit.
3(perchild) (see Apache2 documentation)

(./configure ...) all in 1 line not CR)
Extend or changing -axSSE2 in relation your hardware I have take this choice (-axSSE2) for my computer is Pentium 4
(Sorry for all users would have practice with an describe functions in detail)

LD_LIBRARY_PATH=/opt/intel/Compiler/11.0/069/lib/ia32;export LD_LIBRARY_PATH
CC='icc';export CC
CFLAGS='-O3 -axSSE2 -mtune=pentium4 -march=pentium4';export CFLAGS (can be better optimized must several test)

./configure --with-mpm=worker --enable-rewrite=shared --enable-speling=shared --enable-deflate=shared --enable-cache=shared --enable-disk-cache=shared --enable-mem-cache=shared --enable-headers=shared --enable-proxy-balancer=shared --enable-proxy-connect=shared -enable-proxy-http=shared --enable-proxy=shared --enable-ssl=shared

gmake
gmake install

cp /opt/intel/Compiler/11.0/069/lib/ia32/libimf.so /usr/local/apache2/lib
cp /opt/intel/Compiler/11.0/069/lib/ia32/libsvml.so /usr/local/apache2/lib
cp /opt/intel/Compiler/11.0/069/lib/ia32/libintlc.so /usr/local/apache2/lib
cp /opt/intel/Compiler/11.0/069/lib/ia32/libintlc.so.5 /usr/local/apache2/lib

Open /usr/local/apache2/conf and inform correctly headers (modules) and your network parameters in httpd.conf
/usr/local/apache2/bin/apachectl start

How to make rsa key for users not initiated. (https://)
Remark:(if you have extend money make as mandatory (Thawte certificate is better way)

move to repertory /usr/local/apache2
openssl req -config /etc/ssl/openssl.cnf -new -out trustonme.csr
answer questions certificat that you want users connected can see and string to create your secret key

openssl rsa -in privkey.pem -out trustonme.key
openssl x509 -in trustonme.csr -out trustonme.crt -req -signkey trustonme.key -days 3650
openssl x509 -in trustonme.crt -out trustonme.der.crt -outform DER

open /usr/local/apache2/conf/httpd.conf
remove # to enable line Include conf/extra/httpd-ssl.conf
open /usr/local/apache2/conf/extra/httpd-ssl.conf
disable #SSLCertificateFile '/usr/local/apache2/conf/server.crt'
and change to SSLCertificateFile '/usr/local/apache2/conf/trustonme.crt'
disable#SSLCertificateKeyFile '/usr/local/apache2/conf/server.key'
and change to SSLCertificateKeyFile '/usr/local/apache2/conf/trustonme.key'

/usr/local/apache2/bin/apachectl start (to open process) (http and https are effective result only choice in URL)
/usr/local/apache2/bin/apachectl stop (to close process)

Now you having all for work Apache Intel penguin oriented
(certificate have 10 years life)
just append your files in folder htdocs..

linux-de4c:/usr/local/apache2/bin # ./httpd -V
Server version: Apache/2.2.10 (Unix)
Server built: Nov 20 2008 02:37:30
Server's Module Magic Number: 20051115:18
Server loaded: APR 1.3.3, APR-Util 1.3.4
Compiled using: APR 1.3.3, APR-Util 1.3.4
Architecture: 32-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR='server/mpm/worker'
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT='/usr/local/apache2'
-D SUEXEC_BIN='/usr/local/apache2/bin/suexec'
-D DEFAULT_SCOREBOARD='logs/apache_runtime_status'
-D DEFAULT_ERRORLOG='logs/error_log'
-D AP_TYPES_CONFIG_FILE='conf/mime.types'
-D SERVER_CONFIG_FILE='conf/httpd.conf'

linux-de4c:/usr/local/apache2/bin # ./httpd -l
Compiled in modules:
core.c
mod_authn_file.c
mod_authn_default.c
mod_authz_host.c
mod_authz_groupfile.c
mod_authz_user.c
mod_authz_default.c
mod_auth_basic.c
mod_include.c
mod_filter.c
mod_log_config.c
mod_env.c
mod_setenvif.c
worker.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgid.c
mod_negotiation.c
mod_dir.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_so.c

To build Postgresql is same apache
./configure --with-CC='icc -lm -axSSE2'
gmake
gmake install
result success

Move lib to lib repertory postgresql

cp /opt/intel/Compiler/11.0/069/lib/ia32/libimf.so /usr/local/pgsql/lib
cp /opt/intel/Compiler/11.0/069/lib/ia32/libsvml.so /usr/local/pgsql/lib
cp /opt/intel/Compiler/11.0/069/lib/ia32/libintlc.so /usr/local/pgsql/lib
cp /opt/intel/Compiler/11.0/069/lib/ia32/libintlc.so.5 /usr/local/pgsql/lib

Remark: you must create user postgres as system user (passwd shadow struct)
do not use repertory as linked users,remove existing and create new as empty
chmod -R 0700 postgres)
chown -R postgres postgres)
If you not make same can result ICC unable to run initdb (problem path lib)

Postgresql source used is 8.2.10

TEST GNU GCC 1
base=# explain analyze select * from e44;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------
Seq Scan on e44 (cost=0.00..1674.54 rows=34554 width=272) (actual time=0.013..62.204 rows=59218 loops=1)
Total runtime: 93.453 ms
(2 rows)

TEST GNU GCC 2
base=# explain analyze select * from e44;(Table * 2 )
QUERY PLAN
-------------------------------------------------------------------------------------------------------------
Seq Scan on e44 (cost=0.00..3347.82 rows=69082 width=272) (actual time=0.012..101.880 rows=118436 loops=1)
Total runtime: 164.303 ms
(2 rows)

TEST INTEL ICC 1
base=# explain analyze select * from e44;
QUERY PLAN
-----------------------------------------------------------------------------------------------------------
Seq Scan on e44 (cost=0.00..1674.54 rows=34554 width=272) (actual time=0.011..60.922 rows=59218 loops=1)
Total runtime: 88.604 ms
(2 rows)

TEST INTEL ICC 2
base=# explain analyze select * from e44; (Table * 2)
QUERY PLAN
-------------------------------------------------------------------------------------------------------------
Seq Scan on e44 (cost=0.00..3347.82 rows=69082 width=272) (actual time=0.011..102.892 rows=118436 loops=1)
Total runtime: 154.543 ms
(2 rows)

REPERTOIRY BIN BUILD INTEL ICC
postgres@linux-de4c:/usr/local/pgsql/bin> ls -l
total 34352
-rwxr-xr-x 1 root root 117714 nov. 22 01:08 clusterdb
-rwxr-xr-x 1 root root 117824 nov. 22 01:08 createdb
-rwxr-xr-x 1 root root 125415 nov. 22 01:08 createlang
-rwxr-xr-x 1 root root 118570 nov. 22 01:08 createuser
-rwxr-xr-x 1 root root 117466 nov. 22 01:08 dropdb
-rwxr-xr-x 1 root root 125658 nov. 22 01:08 droplang
-rwxr-xr-x 1 root root 117452 nov. 22 01:08 dropuser
-rwxr-xr-x 1 root root 553138 nov. 22 01:08 ecpg
-rwxr-xr-x 1 root root 155318 nov. 22 01:08 initdb
-rwxr-xr-x 1 root root 2989 nov. 22 01:08 ipcclean
-rwxr-xr-x 1 root root 27210563 nov. 22 14:47 newbase.sav
-rwxr-xr-x 1 root root 437825 nov. 22 14:47 newexam.sav
-rwxr-xr-x 1 root root 7541 nov. 22 14:47 newtadm.sav
-rwxr-xr-x 1 root root 43934 nov. 22 01:08 pg_config
-rwxr-xr-x 1 root root 42476 nov. 22 01:08 pg_controldata
-rwxr-xr-x 1 root root 95886 nov. 22 01:08 pg_ctl
-rwxr-xr-x 1 root root 385932 nov. 22 01:08 pg_dump
-rwxr-xr-x 1 root root 137086 nov. 22 01:08 pg_dumpall
-rwxr-xr-x 1 root root 85165 nov. 22 01:08 pg_resetxlog
-rwxr-xr-x 1 root root 206178 nov. 22 01:08 pg_restore
-rwxr-xr-x 1 root root 4239414 nov. 22 01:08 postgres
lrwxrwxrwx 1 root root 8 nov. 22 01:08 postmaster -> postgres
-rwxr-xr-x 1 root root 375710 nov. 22 01:08 psql
-rwxr-xr-x 1 root root 122098 nov. 22 01:08 reindexdb
-rwxr-xr-x 1 root root 84962 nov. 22 01:08 vacuumdb

REPERTOIRY BIN BUID GCC GNU
postgres@linux-de4c:/usr/local/oldpgsql/bin> ls -l
total 32020
-rwxr-xr-x 1 root root 43906 nov. 17 03:02 clusterdb
-rwxr-xr-x 1 root root 43867 nov. 17 03:02 createdb
-rwxr-xr-x 1 root root 52107 nov. 17 03:02 createlang
-rwxr-xr-x 1 root root 44151 nov. 17 03:02 createuser
-rwxr-xr-x 1 root root 39685 nov. 17 03:02 dropdb
-rwxr-xr-x 1 root root 52206 nov. 17 03:02 droplang
-rwxr-xr-x 1 root root 39687 nov. 17 03:02 dropuser
-rwxr-xr-x 1 root root 469745 nov. 17 03:02 ecpg
-rwxr-xr-x 1 root root 58484 nov. 17 03:02 initdb
-rwxr-xr-x 1 root root 2989 nov. 17 03:02 ipcclean
-rwxr-xr-x 1 root root 27210563 nov. 22 15:05 newbase.sav
-rwxr-xr-x 1 root root 437825 nov. 22 15:05 newexam.sav
-rwxr-xr-x 1 root root 7541 nov. 22 15:05 newtadm.sav
-rwxr-xr-x 1 root root 25138 nov. 17 03:02 pg_config
-rwxr-xr-x 1 root root 24686 nov. 17 03:02 pg_controldata
-rwxr-xr-x 1 root root 34662 nov. 17 03:02 pg_ctl
-rwxr-xr-x 1 root root 214992 nov. 17 03:02 pg_dump
-rwxr-xr-x 1 root root 57030 nov. 17 03:02 pg_dumpall
-rwxr-xr-x 1 root root 29393 nov. 17 03:02 pg_resetxlog
-rwxr-xr-x 1 root root 102974 nov. 17 03:02 pg_restore
-rwxr-xr-x 1 root root 3347911 nov. 17 03:02 postgres
lrwxrwxrwx 1 root root 8 nov. 17 03:02 postmaster -> postgres
-rwxr-xr-x 1 root root 254546 nov. 17 03:02 psql
-rwxr-xr-x 1 root root 43938 nov. 17 03:02 reindexdb
-rwxr-xr-x 1 root root 30108 nov. 17 03:02 vacuumdb

TEST REALISED IN SAME MACHINE
INFO ABOUT COMPUTER USED

<6>CPU: Trace cache: 12K uops, L1 D cache: 16K
<6>CPU: L2 cache: 1024K
<6>CPU: Hyper-Threading is disabled
<6>Intel machine check architecture supported.
<6>Intel machine check reporting enabled on CPU#0.
<6>CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
<6>CPU0: Thermal monitoring enabled
<6>using mwait in idle threads.
<4>Compat vDSO mapped to ffffe000.
<6>Checking 'hlt' instruction... OK.
<6>SMP alternatives: switching to UP code
<6>Freeing SMP alternatives: 18k freed
<6>ACPI: Core revision 20070126
<6>ACPI: Checking initramfs for custom DSDT
<4>Parsing all Control Methods:
<4>Table [DSDT](id 0001) - 303 Objects with 29 Devices 119 Methods 23 Regions
<4>Parsing all Control Methods:
<4>Table [SSDT](id 0002) - 7 Objects with 0 Devices 1 Methods 0 Regions
<4> tbxface-0598 [00] tb_load_namespace : ACPI Tables successfully acquired
<4>evxfevnt-0091 [00] enable : Transition to ACPI mode successful
<4>CPU0: Intel Pentium 4 CPU 2.80GHz stepping 01
<6>Total of 1 processors activated (5591.45 BogoMIPS).
<4>ENABLING IO-APIC IRQs
<6>..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
<6>Brought up 1 CPUs
<7>CPU0 attaching sched-domain:
<7> domain 0: span 00000000,00000000,00000000,00000001
<7> groups: 00000000,00000000,00000000,00000001

I am very satisfaction ICC compiler (optimized build is speed)
Compiling result short time , to use optimized options result really benefit.
Not leak memory to work type c++ without obligatory class string.

You can make test for evaluate to same program 1 is build icc(8082) and second is build gcc (8080).
C++ source with that i have build gcc and icc are exactly exactly same
Congratulations to engineers who have made this product

In two samples you having only small part of Wathread (300 binary GGI)
I have use two small machines just for observing.

I think install after server Proliant 8 x 900 Mhz Pentium Pro and server INTEL CORE 2 QUAD Q8200

http://82.127.82.195:8082/kalachniweb.html is INTEL ICC compiler (APACHE 2,POSTGRESQL,WARTHREAD)
for not confuse ICC Intel is wrote in background (8082)

http://82.127.82.195:8080/kalachniweb.html is GNU CGG Compiler (APACHE 2,POSTGRESQL,WARTHREAD)

Please do not compare performance 8080 and 8082 are not same computer.
:8080 is CELERON 2.6 Go (5216.32 BogoMIPS). GNU GCC (O/S is DEBIAN 4.0 R2)
:8082 IS PENTIUN 4 (5591.45 BogoMIPS). ICC INTEL (O/S is OPENSUSE (11))

I have add this easy sample gate service with that you can discovering how task process is drive asynchronous
c/c++ programming,

Some times to want make absolute programming threading side can be result not benefit,communication socket over several machine
is other way to drive charge. Two correctly merged to can be better result.
Now i learning how to take benefit processor Core quad Now reality is with hard drive capacity
now you having some management each tables having 30 millions recording and add. All people want make easy grouped without
dividing task ( crazy ...) Quad Core have really using..

Please if you not have to use databases that you have create one more time remove after your visit.
remember your string used in registering with that you must use for removing you account.

Sorry for all syntax faults (I'm from country's where it can eating rabbits and frogs...)

Best regards

1 post / 0 new
Para obter mais informações sobre otimizações de compiladores, consulte Aviso sobre otimizações.