Cc: Arjan van de Ven <arjan@...>, Adrian Bunk <bunk@...>, Alan Cox <alan@...>, Shawn Bohrer <shawn.bohrer@...>, Ingo Molnar <mingo@...>, Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>, Thomas Gleixner <tglx@...>
On Sunday 20 April 2008 16:01:46 Andi Kleen wrote:
At 12 threads per request it'd only take about 4200 outstanding requests. That
is high, but I can see it happening. At 24 threads per request the number of
outstanding requests it takes to reach that is cut in half, to about 2100.
That number is more realistic. Since all outstanding requests aren't going to
be at the extremes, let us assume that it's a mid-point between the two for
the number of outstanding requests - say somewhere around 3150 outstanding
requests.
While that is a rather high number, if a company - a decently sized one - is
using a piece of Java code internally for some reason they could easily have
that level of requests coming in from the users. For a website with a decent
load that routes a common request to the machine running the code it'd be
even easier to hit that limit. So yes, 50K threads *IS* actually pretty easy
to reach and could be a common workload.
Just makes you sound foolish. Run the numbers yourself and you'll see that it
is easy for a machine running highly threaded code to easily hit 50K threads.
<snip>
Due to me screwing up the configuration of Apache (2) and MySQL I have seen a
machine I own hit problems with memory fragmentation - and it's running a 2.6
series kernel (a distro 2.6.17)
Because I was able to see that it was a problem I caused I didn't even *THINK*
about posting information about it to LKML. I didn't keep the logs of that
around - it happened more than three months ago and I clean the logs out
every three months or so.
DRH
--
Dialup is like pissing through a pipette. Slow and excruciatingly painful.
--