osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: optimal settings for max-procs,
PHP_FCGI_CHILDREN... - msg#00033

List: web.lighttpd

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

On Mon, Feb 06, 2006 at 09:33:41PM +0800, Robert Locke wrote:
> Hello all,
>
> Is there a difference between:
> "max-procs" => 10,
> "PHP_FCGI_CHILDREN" => "16",
>
> and say:
> "max-procs" => 1,
> "PHP_FCGI_CHILDREN" => "170",
>
> or, say, this:
> "max-procs" => 2,
> "PHP_FCGI_CHILDREN" => "84",

This is the best setting.

For PHP you want to have a low max-procs value. The code-cache will use
the same shm-segment for all PHP_FCGI_CHILDREN processes. max-procs = 1
would lead to a loss of all children of the master process dies (e.g. out of
memory)

max-procs = 2 addes a safety guard, just in case.

> All will spawn 170 php processes...

> Thanks!


Jan

--
Jan Kneschke http://jan.kneschke.de/
Perhaps you want to say 'thank you, jan': http://jk.123.org/wishlist/




Thread at a glance:

Previous Message by Date:

optimal settings for max-procs, PHP_FCGI_CHILDREN...

Hello all, Is there a difference between: "max-procs" => 10, "PHP_FCGI_CHILDREN" => "16", and say: "max-procs" => 1, "PHP_FCGI_CHILDREN" => "170", or, say, this: "max-procs" => 2, "PHP_FCGI_CHILDREN" => "84", All will spawn 170 php processes... But is there any real advantage to setting max-procs to a low number vs. a higher one or vice versa? Thanks!

Next Message by Date:

Re: optimal settings for max-procs, PHP_FCGI_CHILDREN...

Jan, We've noticed that the master PHP process does not seem to process requests. It seems to only sit around and take care of its children. Because of this, we've switched to max-procs => 1 and never seen a failure as a result. We make this assumption because of the very small memory usage of the parent, which would in our case increase greatly if it were receiving requests: nobody 15489 0.0 0.3 43344 3924 ? Ss 06:28 0:00 /php-5.1/bin/php-cgi ... nobody 28746 2.2 2.3 55108 24864 ? S 15:39 2:38 /php-5.1/bin/php-cgi nobody 28771 2.3 2.4 55284 25204 ? S 15:40 2:38 /php-5.1/bin/php-cgi nobody 28781 2.2 2.7 59308 28836 ? R 15:40 2:33 /php-5.1/bin/php-cgi ... Is this behavior expected? Thanks, James http://www.wikispaces.com Jan Kneschke wrote: "max-procs" => 2, "PHP_FCGI_CHILDREN" => "84", This is the best setting. For PHP you want to have a low max-procs value. The code-cache will use the same shm-segment for all PHP_FCGI_CHILDREN processes. max-procs = 1 would lead to a loss of all children of the master process dies (e.g. out of memory) max-procs = 2 addes a safety guard, just in case.

Previous Message by Thread:

optimal settings for max-procs, PHP_FCGI_CHILDREN...

Hello all, Is there a difference between: "max-procs" => 10, "PHP_FCGI_CHILDREN" => "16", and say: "max-procs" => 1, "PHP_FCGI_CHILDREN" => "170", or, say, this: "max-procs" => 2, "PHP_FCGI_CHILDREN" => "84", All will spawn 170 php processes... But is there any real advantage to setting max-procs to a low number vs. a higher one or vice versa? Thanks!

Next Message by Thread:

Re: optimal settings for max-procs, PHP_FCGI_CHILDREN...

Jan, We've noticed that the master PHP process does not seem to process requests. It seems to only sit around and take care of its children. Because of this, we've switched to max-procs => 1 and never seen a failure as a result. We make this assumption because of the very small memory usage of the parent, which would in our case increase greatly if it were receiving requests: nobody 15489 0.0 0.3 43344 3924 ? Ss 06:28 0:00 /php-5.1/bin/php-cgi ... nobody 28746 2.2 2.3 55108 24864 ? S 15:39 2:38 /php-5.1/bin/php-cgi nobody 28771 2.3 2.4 55284 25204 ? S 15:40 2:38 /php-5.1/bin/php-cgi nobody 28781 2.2 2.7 59308 28836 ? R 15:40 2:33 /php-5.1/bin/php-cgi ... Is this behavior expected? Thanks, James http://www.wikispaces.com Jan Kneschke wrote: "max-procs" => 2, "PHP_FCGI_CHILDREN" => "84", This is the best setting. For PHP you want to have a low max-procs value. The code-cache will use the same shm-segment for all PHP_FCGI_CHILDREN processes. max-procs = 1 would lead to a loss of all children of the master process dies (e.g. out of memory) max-procs = 2 addes a safety guard, just in case.
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!