LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Development Forums » Kloxo Development » [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event)
[TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84860] Wed, 08 June 2011 05:54 Go to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Steps:

1. Read http://forum.lxcenter.org/index.php?t=msg&th=16222 and http://forum.lxcenter.org/index.php?t=msg&th=16232 to make mod_ruid2 and httpd-itk ready

2. If /etc/sysconfig/httpd exist 'HTTPD=/usr/sbin/httpd.itk' then copy to 'httpd.itk'. Delete 'HTTPD=/usr/sbin/httpd.itk' line and then copy file to 'httpd.prefork'. Now, we have 3 file ('httpd', 'httpd.itk' and 'httpd.prefork')

3. Copy httpd.prefork to httpd and then login to kloxo to change to 'suphp' and change again to 'mod_suphp' on 'Switch Program'.

4. Now, in '/etc/httpd/conf.d' we have file php, ruid2, itk and suphp (with file extension as '.conf' or 'nonconf')

5. Testing for:

5.1. mod_php, run:
service httpd stop
cp /etc/sysconfig/httpd.prefork /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.conf /etc/httpd/conf.d/itk.nonconf
mv /etc/httpd/conf.d/suphp.conf /etc/httpd/conf.d/suphp.nonconf
mv /etc/httpd/conf.d/ruid2.conf /etc/httpd/conf.d/ruid2.nonconf
mv /etc/httpd/conf.d/php.nonconf /etc/httpd/conf.d/php.conf


5.2. mod_ruid2, run:
service httpd stop
cp /etc/sysconfig/httpd.prefork /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.conf /etc/httpd/conf.d/itk.nonconf
mv /etc/httpd/conf.d/suphp.conf /etc/httpd/conf.d/suphp.nonconf
mv /etc/httpd/conf.d/ruid2.nonconf /etc/httpd/conf.d/ruid2.conf
mv /etc/httpd/conf.d/php.nonconf /etc/httpd/conf.d/php.conf


5.3. httpd-itk, run:
service httpd stop
cp /etc/sysconfig/httpd.itk /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.nonconf /etc/httpd/conf.d/itk.conf
mv /etc/httpd/conf.d/suphp.conf /etc/httpd/conf.d/suphp.nonconf
mv /etc/httpd/conf.d/ruid2.conf /etc/httpd/conf.d/ruid2.nonconf
mv /etc/httpd/conf.d/php.nonconf /etc/httpd/conf.d/php.conf


5.4. mod_suphp, run:
service httpd stop
cp /etc/sysconfig/httpd.prefork /etc/sysconfig/httpd
mv /etc/httpd/conf.d/itk.conf /etc/httpd/conf.d/itk.nonconf
mv /etc/httpd/conf.d/suphp.nonconf /etc/httpd/conf.d/suphp.conf
mv /etc/httpd/conf.d/ruid2.conf /etc/httpd/conf.d/ruid2.nonconf
mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.nonconf


5.5. mod_suphp + httpd-worker

- Beside step 5.4, also change /etc/sysconfig/httpd from:
# HTTPD=/usr/sbin/httpd.worker
HTTPD=/usr/sbin/httpd.itk

to
HTTPD=/usr/sbin/httpd.worker
# HTTPD=/usr/sbin/httpd.itk


5.6. mod_suphp + httpd-event

- Beside step 5.4 and 5.5, also change /etc/sysconfig/httpd from:
# HTTPD=/usr/sbin/httpd.event
# HTTPD=/usr/sbin/httpd.worker
HTTPD=/usr/sbin/httpd.itk

to
HTTPD=/usr/sbin/httpd.event
# HTTPD=/usr/sbin/httpd.worker
# HTTPD=/usr/sbin/httpd.itk

and add '<IfModule event.c></IfModule>' with the same value/content of '<IfModule worker.c></IfModule>' in '/etc/httpd/conf/httpd.conf'

6. make file 'ab.sh' with content
echo "----------------------------"
service mysqld restart
service httpd restart
echo "----------------------------"

ab -n 1000 -c 5 http://96.44.188.123/test/snkpage.html

echo "  "
echo "----------------------------"
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/test/phpmysqld.php

echo "  "
echo "----------------------------"
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/cgi-bin/test.pl

echo "  "
echo "----------------------------"
service httpd restart
echo "----------------------------"
ab -n 1000 -c 5 http://96.44.188.123/test/phpinfo.php


7. Make file:

7.1. /home/<client>/<domain>/test/snkpage.html with content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Webserver test</title>
</head>
<body>
This is a webserver test page.
</body>
</html>


7.2. /home/<client>/<domain>/test/phpmysql.php with content:
<html>
<head><title>Php+MySQL</title></head>
<body>
<?php
   $link = mysql_connect("localhost", "root", "password");
   mysql_select_db("kloxo");
 
   $query = "SELECT * FROM web";
   $result = mysql_query($query);
 
   while ($line = mysql_fetch_array($result))
   {
      foreach ($line as $value)
       {
         print "$value\n";
      }
   }
 
    mysql_close($link);
?>
</body>
</html>


7.3. /home/<client>/<domain>/test/phpinfo.php with content:
<?php 

/*
echo "<p align=\"center\">";
system("id");
echo "</p>";
*/

phpinfo(); 

?>


7.4. /home/<client>/<domain>/cgi-bin/test.pl with content:
#!/usr/bin/perl
$command=`perl -v`;
$title = "Perl Version";
 
print "Content-type: text/html\n\n";
print "<html><head><title>$title</title></head>\n<body>\n\n";
 
print "
<h1>$title</h1>
 
\n";
print $command;
 
print "\n\n</body></html>";


8. Assign IP for domain then run 'ab.sh'


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Sat, 13 August 2011 11:52]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84861 is a reply to message #84860] Wed, 08 June 2011 05:55 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

1. mod_php

----------------------------
Stopping MySQL:  [OK]
Starting MySQL:  [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/snkpage.html
Document Length:        168 bytes

Concurrency Level:      5
Time taken for tests:   1.922 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      421000 bytes
HTML transferred:       168000 bytes
Requests per second:    520.20 [#/sec] (mean)
Time per request:       9.612 [ms] (mean)
Time per request:       1.922 [ms] (mean, across all concurrent requests)
Transfer rate:          213.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       1
Processing:     2    9  77.4      4    1102
Waiting:        2    9  77.4      4    1102
Total:          2   10  77.4      4    1102

Percentage of the requests served within a certain time (ms)
  50%      4
  66%      4
  75%      4
  80%      5
  90%      5
  95%      6
  98%      8
  99%      9
 100%   1102 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpmysqld.php
Document Length:        270 bytes

Concurrency Level:      5
Time taken for tests:   1.977 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      434000 bytes
HTML transferred:       270000 bytes
Requests per second:    505.74 [#/sec] (mean)
Time per request:       9.886 [ms] (mean)
Time per request:       1.977 [ms] (mean, across all concurrent requests)
Transfer rate:          214.35 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       1
Processing:     1   10  66.5      5     948
Waiting:        1   10  66.5      5     948
Total:          1   10  66.5      5     948

Percentage of the requests served within a certain time (ms)
  50%      5
  66%      5
  75%      6
  80%      6
  90%      7
  95%      8
  98%     10
  99%     12
 100%    948 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /cgi-bin/test.pl
Document Length:        597 bytes

Concurrency Level:      5
Time taken for tests:   5.222 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      773000 bytes
HTML transferred:       597000 bytes
Requests per second:    191.50 [#/sec] (mean)
Time per request:       26.110 [ms] (mean)
Time per request:       5.222 [ms] (mean, across all concurrent requests)
Transfer rate:          144.56 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       6
Processing:     5   26  80.3     18    1162
Waiting:        2   25  80.3     18    1162
Total:          6   26  80.3     19    1162

Percentage of the requests served within a certain time (ms)
  50%     19
  66%     23
  75%     26
  80%     29
  90%     33
  95%     36
  98%     41
  99%     45
 100%   1162 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpinfo.php
Document Length:        56501 bytes

Concurrency Level:      5
Time taken for tests:   5.339 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      56681000 bytes
HTML transferred:       56501000 bytes
Requests per second:    187.31 [#/sec] (mean)
Time per request:       26.694 [ms] (mean)
Time per request:       5.339 [ms] (mean, across all concurrent requests)
Transfer rate:          10368.14 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       7
Processing:     5   26  82.5     15    1167
Waiting:        0   25  82.4     15    1166
Total:          5   27  82.5     15    1167

Percentage of the requests served within a certain time (ms)
  50%     15
  66%     21
  75%     30
  80%     32
  90%     36
  95%     39
  98%     69
  99%    164
 100%   1167 (longest request)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:48]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84862 is a reply to message #84861] Wed, 08 June 2011 05:59 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

2. mod_ruid2

----------------------------
Stopping MySQL:  [OK]
Starting MySQL:  [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/snkpage.html
Document Length:        168 bytes

Concurrency Level:      5
Time taken for tests:   2.101 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      421000 bytes
HTML transferred:       168000 bytes
Requests per second:    475.99 [#/sec] (mean)
Time per request:       10.504 [ms] (mean)
Time per request:       2.101 [ms] (mean, across all concurrent requests)
Transfer rate:          195.70 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       2
Processing:     2   10  76.4      5    1088
Waiting:        2   10  76.4      5    1088
Total:          3   10  76.4      5    1089

Percentage of the requests served within a certain time (ms)
  50%      5
  66%      5
  75%      6
  80%      6
  90%      7
  95%      8
  98%      9
  99%     10
 100%   1089 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpmysqld.php
Document Length:        270 bytes

Concurrency Level:      5
Time taken for tests:   2.042 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      434000 bytes
HTML transferred:       270000 bytes
Requests per second:    489.82 [#/sec] (mean)
Time per request:       10.208 [ms] (mean)
Time per request:       2.042 [ms] (mean, across all concurrent requests)
Transfer rate:          207.60 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       1
Processing:     2   10  70.8      5    1010
Waiting:        1   10  70.8      5    1009
Total:          2   10  70.8      5    1010

Percentage of the requests served within a certain time (ms)
  50%      5
  66%      5
  75%      6
  80%      6
  90%      7
  95%      8
  98%      9
  99%     10
 100%   1010 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /cgi-bin/test.pl
Document Length:        597 bytes

Concurrency Level:      5
Time taken for tests:   4.897 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      773000 bytes
HTML transferred:       597000 bytes
Requests per second:    204.22 [#/sec] (mean)
Time per request:       24.484 [ms] (mean)
Time per request:       4.897 [ms] (mean, across all concurrent requests)
Transfer rate:          154.16 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       5
Processing:     6   24  70.8     18    1030
Waiting:        2   24  70.8     17    1029
Total:          6   24  70.8     18    1030

Percentage of the requests served within a certain time (ms)
  50%     18
  66%     21
  75%     24
  80%     27
  90%     32
  95%     34
  98%     37
  99%     41
 100%   1030 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpinfo.php
Document Length:        56509 bytes

Concurrency Level:      5
Time taken for tests:   4.850 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      56689000 bytes
HTML transferred:       56509000 bytes
Requests per second:    206.21 [#/sec] (mean)
Time per request:       24.248 [ms] (mean)
Time per request:       4.850 [ms] (mean, across all concurrent requests)
Transfer rate:          11415.61 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       2
Processing:     4   24  78.8     16    1127
Waiting:        0   23  78.8     16    1126
Total:          5   24  78.8     16    1127

Percentage of the requests served within a certain time (ms)
  50%     16
  66%     19
  75%     22
  80%     24
  90%     32
  95%     36
  98%     40
  99%    161
 100%   1127 (longest request)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:48]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84863 is a reply to message #84862] Wed, 08 June 2011 06:00 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

3. httpd-itk

----------------------------
Stopping MySQL:  [OK]
Starting MySQL:  [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/snkpage.html
Document Length:        168 bytes

Concurrency Level:      5
Time taken for tests:   6.940 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      421000 bytes
HTML transferred:       168000 bytes
Requests per second:    144.10 [#/sec] (mean)
Time per request:       34.699 [ms] (mean)
Time per request:       6.940 [ms] (mean, across all concurrent requests)
Transfer rate:          59.24 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.6      0      10
Processing:     6   34  78.7     25    1148
Waiting:        6   34  78.7     25    1148
Total:          7   34  78.7     26    1148

Percentage of the requests served within a certain time (ms)
  50%     26
  66%     31
  75%     34
  80%     38
  90%     50
  95%     62
  98%     74
  99%     82
 100%   1148 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpmysqld.php
Document Length:        270 bytes

Concurrency Level:      5
Time taken for tests:   6.852 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      434000 bytes
HTML transferred:       270000 bytes
Requests per second:    145.95 [#/sec] (mean)
Time per request:       34.259 [ms] (mean)
Time per request:       6.852 [ms] (mean, across all concurrent requests)
Transfer rate:          61.86 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   1.4      0      15
Processing:     6   33  71.8     25    1051
Waiting:        3   33  71.9     24    1051
Total:          6   34  71.8     25    1051

Percentage of the requests served within a certain time (ms)
  50%     25
  66%     31
  75%     34
  80%     37
  90%     49
  95%     68
  98%     74
  99%     76
 100%   1051 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /cgi-bin/test.pl
Document Length:        597 bytes

Concurrency Level:      5
Time taken for tests:   9.072 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      773000 bytes
HTML transferred:       597000 bytes
Requests per second:    110.23 [#/sec] (mean)
Time per request:       45.360 [ms] (mean)
Time per request:       9.072 [ms] (mean, across all concurrent requests)
Transfer rate:          83.21 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.7      0      11
Processing:    14   45  76.0     36    1120
Waiting:       13   44  76.0     35    1120
Total:         15   45  76.0     36    1120

Percentage of the requests served within a certain time (ms)
  50%     36
  66%     42
  75%     47
  80%     50
  90%     61
  95%     83
  98%     94
  99%    100
 100%   1120 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpinfo.php
Document Length:        56505 bytes

Concurrency Level:      5
Time taken for tests:   49.517 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      56685000 bytes
HTML transferred:       56505000 bytes
Requests per second:    20.20 [#/sec] (mean)
Time per request:       247.583 [ms] (mean)
Time per request:       49.517 [ms] (mean, across all concurrent requests)
Transfer rate:          1117.94 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.7      0      13
Processing:   108  247 141.8    206    1696
Waiting:      107  246 141.7    205    1696
Total:        108  247 141.9    206    1696

Percentage of the requests served within a certain time (ms)
  50%    206
  66%    240
  75%    279
  80%    300
  90%    402
  95%    513
  98%    585
  99%    668
 100%   1696 (longest request)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:47]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84864 is a reply to message #84863] Wed, 08 June 2011 06:01 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

4. suphp

----------------------------
Stopping MySQL:  [OK]
Starting MySQL:  [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/snkpage.html
Document Length:        168 bytes

Concurrency Level:      5
Time taken for tests:   1.576 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      421000 bytes
HTML transferred:       168000 bytes
Requests per second:    634.50 [#/sec] (mean)
Time per request:       7.880 [ms] (mean)
Time per request:       1.576 [ms] (mean, across all concurrent requests)
Transfer rate:          260.87 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       0
Processing:     2    8  64.5      3     918
Waiting:        2    8  64.5      3     918
Total:          2    8  64.5      3     918

Percentage of the requests served within a certain time (ms)
  50%      3
  66%      3
  75%      4
  80%      4
  90%      4
  95%      5
  98%      6
  99%      7
 100%    918 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpmysqld.php
Document Length:        270 bytes

Concurrency Level:      5
Time taken for tests:   1.750 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      434000 bytes
HTML transferred:       270000 bytes
Requests per second:    571.33 [#/sec] (mean)
Time per request:       8.751 [ms] (mean)
Time per request:       1.750 [ms] (mean, across all concurrent requests)
Transfer rate:          242.15 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.0      0       1
Processing:     2    9  69.2      3     985
Waiting:        2    8  69.2      3     985
Total:          2    9  69.2      4     985

Percentage of the requests served within a certain time (ms)
  50%      4
  66%      4
  75%      4
  80%      4
  90%      5
  95%      6
  98%      6
  99%      8
 100%    985 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /cgi-bin/test.pl
Document Length:        562 bytes

Concurrency Level:      5
Time taken for tests:   7.286 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      714000 bytes
HTML transferred:       562000 bytes
Requests per second:    137.24 [#/sec] (mean)
Time per request:       36.432 [ms] (mean)
Time per request:       7.286 [ms] (mean, across all concurrent requests)
Transfer rate:          95.70 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       3
Processing:    11   36  69.2     27    1013
Waiting:       11   36  69.2     27    1013
Total:         11   36  69.2     27    1013

Percentage of the requests served within a certain time (ms)
  50%     27
  66%     31
  75%     35
  80%     39
  90%     60
  95%     69
  98%     74
  99%     96
 100%   1013 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpinfo.php
Document Length:        57138 bytes

Concurrency Level:      5
Time taken for tests:   75.444 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      57318000 bytes
HTML transferred:       57138000 bytes
Requests per second:    13.25 [#/sec] (mean)
Time per request:       377.221 [ms] (mean)
Time per request:       75.444 [ms] (mean, across all concurrent requests)
Transfer rate:          741.93 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       2
Processing:   197  377 162.1    326    1839
Waiting:      197  376 162.1    325    1838
Total:        197  377 162.1    326    1839

Percentage of the requests served within a certain time (ms)
  50%    326
  66%    373
  75%    421
  80%    459
  90%    569
  95%    683
  98%    855
  99%    920
 100%   1839 (longest request)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:47]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84865 is a reply to message #84864] Wed, 08 June 2011 06:03 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Recap:

               Connection Times (ms) for 1000 request and 5 concurrent
             ---------------------------------------------------------------
                 snkpage.html   phpmysqld.php  test.pl        phpinfo.php
----------------------------------------------------------------------------
  mod_php        1102 (100%)     948 (100%)    1162 (100%)    1167 (100%)

  mod_ruid2      1089  (99%)    1010 (107%)    1030  (89%)    1127  (97%)

  httpd-itk      1148 (104%)    1051 (110%)    1120  (96%)    1696 (145%)

  mod_suphp       918  (83%)     985 (104%)    1013  (87%)    1839 (158%)
----------------------------------------------------------------------------

* Lower is better


- Benchmark for mysql may not accurate because too small content.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:46]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84901 is a reply to message #84865] Wed, 08 June 2011 22:04 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

5. suphp + httpd-worker --> NEW!!!

----------------------------
Stopping MySQL:  [OK]
Starting MySQL:  [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/snkpage.html
Document Length:        168 bytes

Concurrency Level:      5
Time taken for tests:   1.372 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      421000 bytes
HTML transferred:       168000 bytes
Requests per second:    728.71 [#/sec] (mean)
Time per request:       6.861 [ms] (mean)
Time per request:       1.372 [ms] (mean, across all concurrent requests)
Transfer rate:          299.60 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.4      1       2
Processing:     0    6  68.8      1     976
Waiting:        0    6  68.8      1     976
Total:          0    7  68.7      2     976

Percentage of the requests served within a certain time (ms)
  50%      2
  66%      2
  75%      2
  80%      3
  90%      3
  95%      3
  98%      3
  99%      4
 100%    976 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpmysqld.php
Document Length:        270 bytes

Concurrency Level:      5
Time taken for tests:   1.414 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1000
Total transferred:      434000 bytes
HTML transferred:       270000 bytes
Requests per second:    707.28 [#/sec] (mean)
Time per request:       7.069 [ms] (mean)
Time per request:       1.414 [ms] (mean, across all concurrent requests)
Transfer rate:          299.77 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.5      1       3
Processing:     0    6  69.4      1     986
Waiting:        0    6  69.4      1     986
Total:          1    7  69.4      2     986

Percentage of the requests served within a certain time (ms)
  50%      2
  66%      2
  75%      3
  80%      3
  90%      3
  95%      3
  98%      4
  99%      4
 100%    986 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /cgi-bin/test.pl
Document Length:        562 bytes

Concurrency Level:      5
Time taken for tests:   4.867 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      714000 bytes
HTML transferred:       562000 bytes
Requests per second:    205.47 [#/sec] (mean)
Time per request:       24.334 [ms] (mean)
Time per request:       4.867 [ms] (mean, across all concurrent requests)
Transfer rate:          143.27 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       4
Processing:    12   24  64.5     19     937
Waiting:       11   24  64.5     19     937
Total:         12   24  64.5     19     937

Percentage of the requests served within a certain time (ms)
  50%     19
  66%     21
  75%     22
  80%     23
  90%     25
  95%     27
  98%     32
  99%     34
 100%    937 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpinfo.php
Document Length:        57139 bytes

Concurrency Level:      5
Time taken for tests:   48.003 seconds
Complete requests:      1000
Failed requests:        3
   (Connect: 0, Receive: 0, Length: 3, Exceptions: 0)
Write errors:           0
Non-2xx responses:      3
Total transferred:      57149362 bytes
HTML transferred:       56969374 bytes
Requests per second:    20.83 [#/sec] (mean)
Time per request:       240.016 [ms] (mean)
Time per request:       48.003 [ms] (mean, across all concurrent requests)
Transfer rate:          1162.63 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       3
Processing:    74  240  97.6    215    1356
Waiting:       74  239  97.6    214    1356
Total:         74  240  97.6    215    1357

Percentage of the requests served within a certain time (ms)
  50%    215
  66%    239
  75%    265
  80%    281
  90%    319
  95%    368
  98%    428
  99%    482
 100%   1357 (longest request)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:46]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84902 is a reply to message #84901] Wed, 08 June 2011 22:14 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

RECAP 2:

                 Connection Times (ms) for 1000 request and 5 concurrent
             ---------------------------------------------------------------
                 snkpage.html   phpmysqld.php  test.pl        phpinfo.php
----------------------------------------------------------------------------
  mod_php        1102 (100%)     948 (100%)    1162 (100%)    1167 (100%)

  mod_ruid2      1089  (99%)    1010 (107%)    1030  (89%)    1127  (97%)

  httpd-itk      1148 (104%)    1051 (110%)    1120  (96%)    1696 (145%)

  mod_suphp       918  (83%)     985 (104%)    1013  (87%)    1839 (158%)

  mod_suphp +     976  (89%)     986 (104%)     937  (81%)    1357 (118%)
  httpd-worker
----------------------------------------------------------------------------

* Lower is better


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:45]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84930 is a reply to message #84902] Thu, 09 June 2011 08:34 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

6. suphp + httpd-event --> NEW!!!

----------------------------
Stopping MySQL:  [OK]
Starting MySQL:  [OK]
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/snkpage.html
Document Length:        168 bytes

Concurrency Level:      5
Time taken for tests:   1.398 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      421421 bytes
HTML transferred:       168168 bytes
Requests per second:    715.43 [#/sec] (mean)
Time per request:       6.989 [ms] (mean)
Time per request:       1.398 [ms] (mean, across all concurrent requests)
Transfer rate:          294.43 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.5      1       3
Processing:     0    6  67.7      1     962
Waiting:        0    6  67.7      1     961
Total:          1    7  67.7      2     962

Percentage of the requests served within a certain time (ms)
  50%      2
  66%      2
  75%      3
  80%      3
  90%      3
  95%      3
  98%      4
  99%      5
 100%    962 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpmysqld.php
Document Length:        270 bytes

Concurrency Level:      5
Time taken for tests:   1.391 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Non-2xx responses:      1001
Total transferred:      434434 bytes
HTML transferred:       270270 bytes
Requests per second:    719.13 [#/sec] (mean)
Time per request:       6.953 [ms] (mean)
Time per request:       1.391 [ms] (mean, across all concurrent requests)
Transfer rate:          305.09 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   0.4      1       3
Processing:     1    6  63.8      1     905
Waiting:        0    5  63.8      1     905
Total:          1    7  63.7      2     906

Percentage of the requests served within a certain time (ms)
  50%      2
  66%      3
  75%      3
  80%      3
  90%      3
  95%      3
  98%      4
  99%      4
 100%    906 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /cgi-bin/test.pl
Document Length:        562 bytes

Concurrency Level:      5
Time taken for tests:   5.826 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      714000 bytes
HTML transferred:       562000 bytes
Requests per second:    171.64 [#/sec] (mean)
Time per request:       29.131 [ms] (mean)
Time per request:       5.826 [ms] (mean, across all concurrent requests)
Transfer rate:          119.68 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       4
Processing:    11   29  75.6     18    1072
Waiting:        9   23  74.0     17    1072
Total:         11   29  75.6     18    1073

Percentage of the requests served within a certain time (ms)
  50%     18
  66%     20
  75%     22
  80%     24
  90%     62
  95%     76
  98%     83
  99%     88
 100%   1073 (longest request)
  
----------------------------
Stopping httpd: [OK]
Starting httpd: [OK]
----------------------------
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 96.44.188.123 (be patient)


Server Software:        Apache
Server Hostname:        96.44.188.123
Server Port:            80

Document Path:          /test/phpinfo.php
Document Length:        57163 bytes

Concurrency Level:      5
Time taken for tests:   48.218 seconds
Complete requests:      1000
Failed requests:        2
   (Connect: 0, Receive: 0, Length: 2, Exceptions: 0)
Write errors:           0
Non-2xx responses:      2
Total transferred:      57229860 bytes
HTML transferred:       57049868 bytes
Requests per second:    20.74 [#/sec] (mean)
Time per request:       241.092 [ms] (mean)
Time per request:       48.218 [ms] (mean, across all concurrent requests)
Transfer rate:          1159.07 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.1      0       1
Processing:    74  240  88.6    217    1203
Waiting:       74  240  88.4    216    1203
Total:         74  241  88.6    217    1203

Percentage of the requests served within a certain time (ms)
  50%    217
  66%    247
  75%    266
  80%    280
  90%    327
  95%    369
  98%    413
  99%    466
 100%   1203 (longest request)


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Fri, 10 June 2011 08:41]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84931 is a reply to message #84930] Thu, 09 June 2011 08:42 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

RECAP 3:

                 Connection Times (ms) for 1000 request and 5 concurrent
             ---------------------------------------------------------------
                 snkpage.html   phpmysqld.php  test.pl        phpinfo.php
----------------------------------------------------------------------------
  mod_php        1102 (100%)     948 (100%)    1162 (100%)    1167 (100%)

  mod_ruid2      1089  (99%)    1010 (107%)    1030  (89%)    1127  (97%)

  httpd-itk      1148 (104%)    1051 (110%)    1120  (96%)    1696 (145%)

  mod_suphp       918  (83%)     985 (104%)    1013  (87%)    1839 (158%)

  mod_suphp +     976  (89%)     986 (104%)     937  (81%)    1357 (118%)
  httpd-worker

  mod_suphp +     962  (97%)     906  (96%)    1073  (92%)    1203 (103%)
  httpd-event
----------------------------------------------------------------------------

* Lower is better


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Thu, 09 June 2011 08:44]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84940 is a reply to message #84931] Thu, 09 June 2011 12:37 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

More reference for comparison mod_php with others:

1. http://www.gnegg.ch/2006/08/mod_php-lighttpd-fastcgi-whats-f astest/


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #84956 is a reply to message #84940] Fri, 10 June 2011 05:04 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Need members to test also, especially suphp versus suphp+httpd-worker versus suphp+httpd-event.

How to make httpd-worker and httpd-event ready on kloxo panel, please read http://project.lxcenter.org/issues/571

All my 'production' servers set to suphp+httpd-worker now. No complain from customers until this time.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png

[Updated on: Fri, 10 June 2011 08:42]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #85730 is a reply to message #84956] Thu, 23 June 2011 17:49 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
Is chmod 777 running is such environment ?
ao nguc do boi nam xe day doi cao cap cho be ao so mi cong so ban buon quan ao cac loai chup anh da ngoai o ha noi
Switching from mod_php to suphp is really terrible on millions of files.

[Updated on: Fri, 03 May 2013 14:48]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #85956 is a reply to message #84860] Tue, 28 June 2011 10:25 Go to previous messageGo to next message
lupetalo is currently offline lupetalo  Serbia
Messages: 252
Registered: April 2011
Senior Member
mod_ruid2 uses a lot of operating memory... But speed is good...
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #85958 is a reply to message #85730] Tue, 28 June 2011 10:59 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Spacedust wrote on Fri, 24 June 2011 04:49
Is chmod 777 running is such environment ?

Switching from mod_php to suphp is really terrible on millions of files.

I hope in version 6.1.7 also including options to 'apache memory usage optimize', 'mysql skip-innodb enable' and 'fix ownership and permission for domain'.

So, with this options will be minimizing 'complains'.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #90280 is a reply to message #85958] Mon, 24 October 2011 06:18 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
My results on lighttpd (production machine with almost no load) :
quan ao tre em do lot nam dep num vu gia ao so mi cong so ban buon cho thue trang phuc re dep
1138 1143 1828 1154
1343 1148 1515 1161
1137 1150 1933 1149

[Updated on: Fri, 03 May 2013 14:46]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #90454 is a reply to message #84860] Sat, 29 October 2011 08:45 Go to previous messageGo to next message
lupetalo is currently offline lupetalo  Serbia
Messages: 252
Registered: April 2011
Senior Member
Here are some realworld production server results.

I have tested with loadimpact(1-50 users) site which is normal loading time around 4 sec. (medium WP site)

in all tests load times did not go above 6 sec but I was monitoring CPU usage during testing and it shows this:

mod_php - did not test since is not ok for shared setup
mod_ruid2 - max CPU at 30
httpd-itk - max CPU at 51
mod_suphp - max CPU at 76
mod_suphp + httpd-worker - max CPU 63
mod_suphp + httpd-event - max CPU 58

ruid2 have serious memory leak issues and is filling memory all the way... Not god at all but fastest

edit: CPU is in average 1 min load with 0. in front... 4 cores

[Updated on: Wed, 02 November 2011 08:14]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #90456 is a reply to message #90454] Sat, 29 October 2011 09:10 Go to previous messageGo to next message
prandah is currently offline prandah  Indonesia
Messages: 491
Registered: March 2011
Location: indonesia
Master
Indonesian Forum Moderator

i have question
how about forum ( especially vBulletin )
what should u use the ?

btw any indonesian language sir ?


ready
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #94629 is a reply to message #90454] Fri, 27 January 2012 18:12 Go to previous messageGo to next message
Reverendspam is currently offline Reverendspam  United States
Messages: 5
Registered: January 2012
Member
Has anyone figured out why switching to ruid2 is causing memory leak issues?

I had to switch back to mod_php because when I switch to ruid2 apche processes kept opening up and using all my memory and thus causing my server to crash constantly. There is no DOD going on and everything runs fine under mod_php
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #94641 is a reply to message #94629] Sat, 28 January 2012 15:51 Go to previous messageGo to next message
lupetalo is currently offline lupetalo  
Messages: 252
Registered: April 2011
Senior Member
Reverendspam wrote on Fri, 27 January 2012 18:12
Has anyone figured out why switching to ruid2 is causing memory leak issues?

I had to switch back to mod_php because when I switch to ruid2 apche processes kept opening up and using all my memory and thus causing my server to crash constantly. There is no DOD going on and everything runs fine under mod_php


I posted same here http://forum.lxcenter.org/index.php?t=msg&goto=94046& ;amp ;#msg_94046

edit: at end

[Updated on: Sat, 28 January 2012 15:51]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #94804 is a reply to message #94641] Fri, 03 February 2012 03:11 Go to previous messageGo to next message
Tha_Duck is currently offline Tha_Duck  Netherlands
Messages: 84
Registered: December 2010
Location: Utrecht
Valuable Member
I assume it is possible on 6.1.10 to just switch the PHP type? You don't have to install all stuff by hand as stated in the starting post?
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #94890 is a reply to message #94629] Tue, 07 February 2012 15:04 Go to previous messageGo to next message
Spacedust is currently offline Spacedust  Poland
Messages: 1233
Registered: October 2007
Location: Poland
Senior Master
Reverendspam wrote on Sat, 28 January 2012 00:12
Has anyone figured out why switching to ruid2 is causing memory leak issues?

I had to switch back to mod_php because when I switch to ruid2 apche processes kept opening up and using all my memory and thus causing my server to crash constantly. There is no DOD going on and everything runs fine under mod_php


Please report a bug.
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #94892 is a reply to message #94890] Tue, 07 February 2012 16:23 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
Reverendspam - Don't report a bug. Create a new thread and I will help you figure out what is going on first. Most likely you have the MaxClients set to 256 which will cause OOM on almost any server under 4 GB of memory and even possible on a server with 8 GB. In this new thread post all of ps aux and free -m and the prefork portion of httpd.conf ~lxcenter.conf which is in the conf.d directory.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95826 is a reply to message #94892] Sun, 04 March 2012 08:20 Go to previous messageGo to next message
lupetalo is currently offline lupetalo  
Messages: 252
Registered: April 2011
Senior Member
And on server with 16gb?
Same...
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95921 is a reply to message #94892] Mon, 05 March 2012 13:40 Go to previous messageGo to next message
Reverendspam is currently offline Reverendspam  United States
Messages: 5
Registered: January 2012
Member
shazar wrote on Tue, 07 February 2012 16:23
Most likely you have the MaxClients set to 256 which will cause OOM on almost any server under 4 GB of memory and even possible on a server with 8 GB.


Thanks that was it.

I'm on a 2gb vps.

I am not exactly sure what makes mod_php_ruid2 so much different from mod_php in kloxo that I have to go in and set limits in the apache config file.

It works, but I am still scratching my head as to why the apache processes continue to open on a rolling basis and are not appearing to close automatically with ruid2.

for example - the apache processes are remaining open even if there is no trafic coming in - when new trafic comes in it opens more processes - this maxes out memory until a hard limit is hit in the apache config file and then the older processes appear to close/roll off when the hard limit is hit. I am investigating this further and it may be an issue with the apache fork.

For those who need some understanding of tuning the MaxClients parameter here is an older article, but it explains how to claculate and fine tune your apache.

http://2bits.com/articles/tuning-the-apache-maxclients-param eter.html

-joe





Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95924 is a reply to message #95921] Mon, 05 March 2012 14:06 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
The opening and closing of the apache forked processes shouldn't concern you. I actually perfer my spare settings to match my MaxClients. This way all of my apache processes stay open and are ready to work instead of being spawned as needed and closed when not needed. Basically it seems the ruid2 module keeps it open longer. This should not be a bad thing, it means the process can be up and waiting instead of being killed and respawned when later needed. It should be easier to see the maximum you can set MaxClients to after a week as well. Don't use up all of your memory as spare memory will be used for file caching and write buffering, which should improve performance.

https://www.mercuryvps.com
HyperVM Xen VPS hosting

[Updated on: Mon, 05 March 2012 14:07]

Report message to a moderator

Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95971 is a reply to message #95924] Mon, 05 March 2012 21:37 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

I found mod_ruid2 issue on my dedis and xen vpses. Running well on openvz.

Doesn't matter how to set maxclient and etc.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95973 is a reply to message #95971] Mon, 05 March 2012 22:01 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

Atomic repo have various version of mod_ruid2. But so hard to upgrade/downgrade because so many dependencies.

Centalt repo have mod_ruid and mod_ruid2 latest version.


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95978 is a reply to message #95971] Mon, 05 March 2012 22:30 Go to previous messageGo to next message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
mustafaramadhan wrote on Mon, 05 March 2012 21:37
I found mod_ruid2 issue on my dedis and xen vpses. Running well on openvz.

Doesn't matter how to set maxclient and etc.



I've asked you many times and you still have not proven this.


https://www.mercuryvps.com
HyperVM Xen VPS hosting
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #95979 is a reply to message #95978] Mon, 05 March 2012 23:18 Go to previous messageGo to next message
mustafaramadhan is currently offline mustafaramadhan  Indonesia
Messages: 5676
Registered: December 2010
Location: Yogyakarta
Super Grandmaster
Forum Moderator

shazar wrote on Tue, 06 March 2012 10:30
mustafaramadhan wrote on Mon, 05 March 2012 21:37
I found mod_ruid2 issue on my dedis and xen vpses. Running well on openvz.

Doesn't matter how to set maxclient and etc.



I've asked you many times and you still have not proven this.


I can give you access to my xen vps. And you can see day-by-day what happen. OK?


http://download.lxcenter.org/kdev.png
..:: MRatWork ::..
Server/Web-integrator - perfect not always more useful

--- Need KVM/OpenVZ VPS? - click here (Kloxo-MR READY!) ---

For bug/feature/security - Member rank status

http://download.lxcenter.org/hdev.png
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #96086 is a reply to message #95924] Wed, 07 March 2012 07:58 Go to previous messageGo to next message
Reverendspam is currently offline Reverendspam  United States
Messages: 5
Registered: January 2012
Member
thanks Shazar - that makes sense.

It appears when I optimized memory through kloxo cp it resets ~lxcenter.config settings which then changes the maxclients and ends up using all my memory. This seems to be counter intuitive and I'm guessing the settings do not optimize because I am on a shared host running a vps?


Anyhow - all is good now that you pointed me in the right direction.

-joe
Re: [TEST] Benchmarks for mod_php vs mod_ruid2 vs httpd-itk vs mod_suphp (+ httpd-worker/event) [message #96087 is a reply to message #96086] Wed, 07 March 2012 08:29 Go to previous message
shazar is currently offline shazar  United States
Messages: 1856
Registered: May 2011
Grandmaster
LxCenter Core Team Member
LxCenter Representative
Yes you can see another thread of mine where I slam the apache optimization script:) The apache optimization script should never be run.

https://www.mercuryvps.com
HyperVM Xen VPS hosting
Previous Topic:What is going on with Kloxo?
Next Topic:64bit Kloxo
Goto Forum:
  


Current Time: Fri May 24 05:18:18 EDT 2013

Total time taken to generate the page: 0.01703 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software