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

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

 



On Tue, Jan 12, 2016 at 06:56:40PM +0000, Rose, John B wrote:
> For event ...
> 
> <IfModule event.c>
>     StartServers            3
>     MinSpareThreads         20
>     MaxSpareThreads         25
>     ServerLimit             16
>     ThreadsPerChild         16
>     MaxRequestWorkers       256
>     MaxConnectionsPerChild   0
> </IfModule>

Those numbers don't make a great deal of sense. You have:

	MaxSpareThreads - MinSpareThreads < ThreadsPerChild

So your server can easily get into a flip-flopping state of creating and
reaping a process to satisfy these requirements.

I suggest you set MinSpareThreads and MaxSpareThreads as integral
multiples of ThreadsPerChild and keep them fairly widely spaced. Try

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

This should make things a bit more stable (and easier for the
administrator to envisage). That's for the general case of event/worker
and unrelated to whether or not you use php-fpm.

Pete
-- 
Openstrike - improving business through open source
http://www.openstrike.co.uk/ or call 01722 770036

Attachment: pgpg3_R_EiyMd.pgp
Description: PGP signature


[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