Sunday, October 24, 2010

Re: CakePHP high CPU utilization

Hello again,


so, I've installed an nginx and php5-cgi, and configured cake access
through this scenario - before nginx there is an apache proxy.

I _can't_ increment the CPU usage with ab!!! I tried to increment the
number of request:

ab -n 10000 -c 100 http://mysite/foo

but the max CPU usage was like these:

20.26.53 CPU %user %nice %system %iowait %steal %idle
20.26.54 all 0,35 0,00 0,35 0,12 0,00 99,19
20.26.54 0 0,00 0,00 0,00 0,00 0,00 100,00
20.26.54 1 2,00 0,00 0,00 0,00 0,00 98,00
20.26.54 2 0,00 0,00 0,88 0,00 0,00 99,12
20.26.54 3 0,00 0,00 0,00 0,00 0,00 100,00
20.26.54 4 0,00 0,00 0,00 0,00 0,00 100,00
20.26.54 5 0,00 0,00 0,93 0,00 0,00 99,07
20.26.54 6 0,00 0,00 0,98 0,00 0,00 99,02
20.26.54 7 0,00 0,00 0,00 0,00 0,00 100,00

In first point of this, I think this is extremely high performance increasing...

But I don't understand, why it so bad the results when I measured it
through apache2 and mod-php, cause another frameworks gives same
results like this above - a few percent on few cores.


Any ideas?


thanks:


a.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: