Re: Circumstances when mod_php would run faster than PHP-FPM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The default settings were used for php-fpm.

For event …

<IfModule event.c>
    StartServers            3
    MinSpareThreads         20 
    MaxSpareThreads         25
    ServerLimit             16
    ThreadsPerChild         16
    MaxRequestWorkers       256 
    MaxConnectionsPerChild   0
</IfModule>


From: Daniel <dferradal@xxxxxxxxx>
Reply-To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Date: Tuesday, January 12, 2016 12:00 PM
To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Subject: Re: Circumstances when mod_php would run faster than PHP-FPM?

What is the configuration in both cases? php-fpm pool included. How did you measure?

El lun., 11 ene. 2016 a las 22:52, Rose, John B (<jbrose@xxxxxxx>) escribió:
After switching to mod_php from php-fpm we are told the site is working 4x faster using mod_php instead of php-fpm.

Any explanation?

Thanks

From: William A Rowe Jr <wrowe@xxxxxxxxxxxxx>
Reply-To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Date: Saturday, January 9, 2016 1:58 PM
To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
Subject: Re: Circumstances when mod_php would run faster than PHP-FPM?

Mod_proxy_fcgi + php-fpm or mod_fcgid with php fcgi sapi should both be equivalent when tuned correctly.

Your only option for running php in process efficiently is to use the non-threadsafe php in the httpd preform module.  Your only option for running httpd efficiently is the event, or at least the worker mpm.

Since usually only a subset of the http requests are to a php resource, the answer is almost always 'no'.

On Jan 8, 2016 16:48, "Rose, John B" <jbrose@xxxxxxx> wrote:
Apache 2.4

On the same system, same web site, are there circumstances when Apache using mod_php would run faster than Apache using PHP-FPM?

Thanks

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux