You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Abby Normal <br...@gmail.com> on 2015/11/20 16:53:36 UTC

[users@httpd] Re: mpm-event, ServerLimit and ThreadsPerChild on multicore systems

No one for this simple question? :)

Regards,
Abby

 >On 18.11.2015 21:45, Abby Normal wrote:
> Hello people,
>
> I hope someone can help me with this simple question. I searched the net
> but could not find a proper answer.
>
> Default event configuration is this:
>
> MaxRequestWorkers 400 =ThreadsPerChild x ServerLimit
> ServerLimit 16
> ThreadsPerChild 25
> ThreadLimit 64
>
>
> So ie. I have a dedicated server with single cpu with 4 cores with
> hyperthreading and 32GB of ram. What is the best way to raise
> MaxRequestWorkers to 800? Should I go with raising ServerLimit to 32 so
> I can have 800 MaxRequestWorkers or should I rather raise
> ThreadsPerChild to 50?
>
> I ask this simple question because I could not find the relation to cpu
> cores and threads of CPU. If ServerLimit is for child processes than I
> do not see the point raising it above 8 because I have one cpu with 4
> cores with hyperthreading... Is this related? If it is related than the
> final settup would be:
>
> ServerLimit 8
> ThreadsPerChild 100
> ThreadLimit 101
> MaxRequestWorkers 800
>
> Can someone confirm or give an advice?
>
> Thank you!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: mpm-event, ServerLimit and ThreadsPerChild on multicore systems

Posted by Daniel <df...@gmail.com>.
you have enough processes already, too many if you ask me (spawning
processes is more costly than threads), increase the number of threads per
child to do the math.

2015-11-20 16:53 GMT+01:00 Abby Normal <br...@gmail.com>:

> No one for this simple question? :)
>
> Regards,
> Abby
>
>
> >On 18.11.2015 21:45, Abby Normal wrote:
>
>> Hello people,
>>
>> I hope someone can help me with this simple question. I searched the net
>> but could not find a proper answer.
>>
>> Default event configuration is this:
>>
>> MaxRequestWorkers 400 =ThreadsPerChild x ServerLimit
>> ServerLimit 16
>> ThreadsPerChild 25
>> ThreadLimit 64
>>
>>
>> So ie. I have a dedicated server with single cpu with 4 cores with
>> hyperthreading and 32GB of ram. What is the best way to raise
>> MaxRequestWorkers to 800? Should I go with raising ServerLimit to 32 so
>> I can have 800 MaxRequestWorkers or should I rather raise
>> ThreadsPerChild to 50?
>>
>> I ask this simple question because I could not find the relation to cpu
>> cores and threads of CPU. If ServerLimit is for child processes than I
>> do not see the point raising it above 8 because I have one cpu with 4
>> cores with hyperthreading... Is this related? If it is related than the
>> final settup would be:
>>
>> ServerLimit 8
>> ThreadsPerChild 100
>> ThreadLimit 101
>> MaxRequestWorkers 800
>>
>> Can someone confirm or give an advice?
>>
>> Thank you!
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


-- 
*Daniel Ferradal*
IT Specialist

email         dferradal at gmail.com
linkedin     es.linkedin.com/in/danielferradal

Re: [users@httpd] Re: mpm-event, ServerLimit and ThreadsPerChild on multicore systems

Posted by Yann Ylavic <yl...@gmail.com>.
Hello,

it probably depends on your workload and stability/scalability expectations.

>From my testing, the more threads vs processes, the better for
performances and memory footprint.
But also more impacted connections when a problem occurs (process crash)...

Regards,
Yann.

On Fri, Nov 20, 2015 at 4:53 PM, Abby Normal <br...@gmail.com> wrote:
> No one for this simple question? :)
>
> Regards,
> Abby
>
>
>>On 18.11.2015 21:45, Abby Normal wrote:
>>
>> Hello people,
>>
>> I hope someone can help me with this simple question. I searched the net
>> but could not find a proper answer.
>>
>> Default event configuration is this:
>>
>> MaxRequestWorkers 400 =ThreadsPerChild x ServerLimit
>> ServerLimit 16
>> ThreadsPerChild 25
>> ThreadLimit 64
>>
>>
>> So ie. I have a dedicated server with single cpu with 4 cores with
>> hyperthreading and 32GB of ram. What is the best way to raise
>> MaxRequestWorkers to 800? Should I go with raising ServerLimit to 32 so
>> I can have 800 MaxRequestWorkers or should I rather raise
>> ThreadsPerChild to 50?
>>
>> I ask this simple question because I could not find the relation to cpu
>> cores and threads of CPU. If ServerLimit is for child processes than I
>> do not see the point raising it above 8 because I have one cpu with 4
>> cores with hyperthreading... Is this related? If it is related than the
>> final settup would be:
>>
>> ServerLimit 8
>> ThreadsPerChild 100
>> ThreadLimit 101
>> MaxRequestWorkers 800
>>
>> Can someone confirm or give an advice?
>>
>> Thank you!
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org