13 messages in ru.sysoev.nginxRe: PHP-FPM Performance
FromSent OnAttachments
Mathew DaviesDec 20, 2008 10:37 am 
Sergio BruderDec 20, 2008 4:04 pm 
Mathew DaviesDec 20, 2008 4:46 pm 
Marcos NevesDec 21, 2008 1:20 am 
Mathew DaviesDec 21, 2008 7:22 am 
Marcos NevesDec 21, 2008 4:59 pm 
Reinis RozitisDec 22, 2008 6:00 am 
Marcos NevesDec 22, 2008 4:06 pm 
Mathew DaviesDec 29, 2008 7:46 am 
Mathew DaviesDec 29, 2008 7:48 am 
Marcos NevesDec 29, 2008 8:00 am 
mikeDec 29, 2008 1:18 pm 
Reinis RozitisDec 29, 2008 1:32 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: PHP-FPM PerformanceActions...
From:Marcos Neves (marc@gmail.com)
Date:Dec 21, 2008 1:20:54 am
List:ru.sysoev.nginx

I think your performance is correct. On my machine phpinfo() is taking 2.8 seconds to complete, and that will result in 300 req/s Try with this script: http://gist.github.com/38628

What location @dynamic does?

2008/12/20 Mathew Davies <thep@googlemail.com>:

I currently have APC installed and it's caching the pages correctly. I did experiment with the nginx memcached module where nginx would simply bypass the php altogther, this massively improved performance to the sound of 1,200 req/s, but it's not easy to implement into my current web application.

I'm quite new to nginx so I've attached my configs incase I've missed something.

nginx.conf http://pastie.org/private/q2eqdofkwf2fqahl4xjqpa

php-fpm.conf http://pastie.org/private/mvitmolavbcqfwpp944xfq

On Sun, Dec 21, 2008 at 12:05 AM, Sergio Bruder <bru@haxent.com.br> wrote:

Em 20/12/2008, às 16:37, Mathew Davies escreveu:

Hi,

I'm currently using nginx/0.7.27 + PHP 5.2.8 with the fpm patch on Ubuntu Server 8.10 with 256 MB RAM. Nginx is serving static files very fast at 1,500 req/s while serving a phpinfo(); page will drop right down to 300 req/s. This performance is nothing to be sniffed at with the current specifications of the machine, but I'm wandering if there is any room to squeeze more performance from the php side of things.

Kind Regards, -Mathew Davies.

You are using some accelerator? PHP acelerators brings a moderate gain of performance and a better gain in parallelism in my humble experience (because of gains in memory allocation per process).

Sergio Devojno Bruder bru@haxent.com.br