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/18 21:45:43 UTC

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

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!

Regards,
Abby

---------------------------------------------------------------------
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


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

Posted by 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


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

Posted by Kurtis Rader <kr...@skepticism.us>.
On Wed, Nov 25, 2015 at 7:14 PM, Jim Paniagua <ji...@gmail.com>
wrote:

> no im not drinking but getting ready to work in the morning .. i work for
> the largest internet retailer and these next few daze will leave me with
> out time .. just to work and eat and sleep .. thank you for your concern
> tho .. I would like to donate as well as learn how to get rid of some of
> these server limits ... threads per child thank you ... sorry this is new
> to m learning this community ..
>

Do not reply to this message. Send a new message to users@httpd.apache.org
with description of your problem. Include any relevant configuration
options, error messages, and how to reproduce the problem.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

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

Posted by Jim Paniagua <ji...@gmail.com>.
no im not drinking but getting ready to work in the morning .. i work for
the largest internet retailer and these next few daze will leave me with
out time .. just to work and eat and sleep .. thank you for your concern
tho .. I would like to donate as well as learn how to get rid of some of
these server limits ... threads per child thank you ... sorry this is new
to m learning this community ..

On Wed, Nov 25, 2015 at 6:48 PM, Kurtis Rader <kr...@skepticism.us> wrote:

> On Wed, Nov 25, 2015 at 6:32 PM, Jim Paniagua <ji...@gmail.com>
> wrote:
>
>> im having serious problems please help lost apache connection now i dont
>> have a fire wall i can get to just for starters // help please
>>
>
> You will have to provide some details about the "serious problems" you are
> seeing with Apache HTTPD server. Your message makes it sound like you are
> drunk which is not anything we can do about other than to tell you to stop
> drinking alcohol. Also, please don't hijack an existing thread. Your
> message does not appear to have anything to do with the original question
> about configurable values for ServerLimit, ThreadsPerChild, etc.
>
> --
> Kurtis Rader
> Caretaker of the exceptional canines Junior and Hank
>

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

Posted by Kurtis Rader <kr...@skepticism.us>.
On Wed, Nov 25, 2015 at 6:32 PM, Jim Paniagua <ji...@gmail.com>
wrote:

> im having serious problems please help lost apache connection now i dont
> have a fire wall i can get to just for starters // help please
>

You will have to provide some details about the "serious problems" you are
seeing with Apache HTTPD server. Your message makes it sound like you are
drunk which is not anything we can do about other than to tell you to stop
drinking alcohol. Also, please don't hijack an existing thread. Your
message does not appear to have anything to do with the original question
about configurable values for ServerLimit, ThreadsPerChild, etc.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

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

Posted by Jim Paniagua <ji...@gmail.com>.
im having serious problems please help lost apache connection now i dont
have a fire wall i can get to just for starters // help please

On Mon, Nov 23, 2015 at 3:04 AM, Abby Normal <br...@gmail.com> wrote:

> On 20.11.2015 17:20, Eric Covener wrote:
>
>> On Wed, Nov 18, 2015 at 3:45 PM, Abby Normal <br...@gmail.com>
>> wrote:
>>
>>> 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?
>>>
>>
>> None of it's related. Pick a few ratios and performance test them.
>> You'll find it doesn't matter.
>>
>>
> Thank you all for response. I tought so it is not related but I will go
> toward raising ThreadsPerChild more than ServerLimit :)
>
> Regards,
> Abby
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

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

Posted by Abby Normal <br...@gmail.com>.
On 20.11.2015 17:20, Eric Covener wrote:
> On Wed, Nov 18, 2015 at 3:45 PM, Abby Normal <br...@gmail.com> wrote:
>> 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?
>
> None of it's related. Pick a few ratios and performance test them.
> You'll find it doesn't matter.
>

Thank you all for response. I tought so it is not related but I will go 
toward raising ThreadsPerChild more than ServerLimit :)

Regards,
Abby


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


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

Posted by Eric Covener <co...@gmail.com>.
On Sat, Dec 5, 2015 at 11:10 PM, Jim Paniagua
<ji...@gmail.com> wrote:
> If you dont mind helping me get started here .. I presently am working for
> AMAZON Prime Fulfillment I dont receive that large of a income .. As being
> part of the Amazon team would i be able to connect to there account or make
> one of my own.. since i dont dont get paid very much I would sure enjoy
> helping out in payment .  if you can help me i sure would appreciate it and
> i will be heading into the Amazon IT department monday to discuss this ... i
> have time to speak one on one with the General Manager since my B-Day is
> December the 12th .. .. Thank you once again ..

Please stop sending nonsense emails to this list.

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


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

Posted by Jim Paniagua <ji...@gmail.com>.
If you dont mind helping me get started here .. I presently am working for
AMAZON Prime Fulfillment I dont receive that large of a income .. As being
part of the Amazon team would i be able to connect to there account or make
one of my own.. since i dont dont get paid very much I would sure enjoy
helping out in payment .  if you can help me i sure would appreciate it and
i will be heading into the Amazon IT department monday to discuss this ...
i have time to speak one on one with the General Manager since my B-Day is
December the 12th .. .. Thank you once again ..

On Wed, Nov 25, 2015 at 11:10 PM, Rose, John B <jb...@utk.edu> wrote:

> What sort of performance testing do you do?
>
> Sent from my iPad
>
> > On Nov 20, 2015, at 11:20 AM, Eric Covener <co...@gmail.com> wrote:
> >
> >> On Wed, Nov 18, 2015 at 3:45 PM, Abby Normal <br...@gmail.com>
> wrote:
> >> 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?
> >
> > None of it's related. Pick a few ratios and performance test them.
> > You'll find it doesn't matter.
> >
> > ---------------------------------------------------------------------
> > 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
>
>

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

Posted by "Rose, John B" <jb...@utk.edu>.
What sort of performance testing do you do?

Sent from my iPad

> On Nov 20, 2015, at 11:20 AM, Eric Covener <co...@gmail.com> wrote:
> 
>> On Wed, Nov 18, 2015 at 3:45 PM, Abby Normal <br...@gmail.com> wrote:
>> 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?
> 
> None of it's related. Pick a few ratios and performance test them.
> You'll find it doesn't matter.
> 
> ---------------------------------------------------------------------
> 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


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

Posted by Eric Covener <co...@gmail.com>.
On Wed, Nov 18, 2015 at 3:45 PM, Abby Normal <br...@gmail.com> wrote:
> 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?

None of it's related. Pick a few ratios and performance test them.
You'll find it doesn't matter.

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