lighttpd forum lighty > Benchmark: irqbalance X "max-procs"

Posted by Tiago Fischer (Guest)
on 10.05.2008 23:27
Hi everyone!

System:
Processores: (4x) Intel(R) Xeon(R) CPU E5430  @ 2.66GHz
Lighttpd: 1.4.19
PHP: 5.2.0-8+etch10 (cgi-fcgi)
With APC: 3.0.18

First case:
"max-procs" => 1 AND irqbalance on
"PHP_FCGI_CHILDREN" => "52"

Time per request:       1122.583 [ms] (mean)
Time per request:       1148.055 [ms] (mean)
Time per request:       1143.948 [ms] (mean)

"max-procs" => 4 irqbalance off
"PHP_FCGI_CHILDREN" => "13",

Time per request:       1207.086 [ms] (mean)
Time per request:       1192.972 [ms] (mean)
Time per request:       1202.770 [ms] (mean)

In all case the processor goes to top.
This show it is better to put max-procs equals to one and start the 
irqbalance then use one max-procs per processor with irqbalance off.
And it's good to APC memory cache! :)

Obs.: note that you need a kernel compiled with SMP option.
Posted by Olaf van der Spek
on 12.05.2008 14:12
Tiago Fischer wrote:
> First case:
> "max-procs" => 1 AND irqbalance on
> "PHP_FCGI_CHILDREN" => "52"

> "max-procs" => 4 irqbalance off
> "PHP_FCGI_CHILDREN" => "13",

Why do you change two settings at once?
Now it's not clear what the cause of the differences is. Is it 
procs/children or irqbalance?

BTW, 1150 ms per requests seems extremely high.