lkml.org 
[lkml]   [2008]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: x86: 4kstacks default
Date
On Sunday 20 April 2008 17:40:42 Andi Kleen wrote:
> Daniel Hazelton wrote:
> > At 12 threads per request it'd only take about 4200 outstanding requests.
> > That is high, but I can see it happening.
>
> If it happens it just won't work on 32bit.

No, it won't. Which is what I was pointing out. You're hitting a different
wall there.

> > 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.
>
> I ran the numbers and the numbers showed that you need > 1.5GB of lowmem
> with a somewhat realistic scenario (32K per thread) at 50k threads. And
> subtracting 4k from that 32k number won't make any significant
> difference (still 1.3GB)
>
> If you claim that works on a 32bit system with typically 300-600MB
> lowmem available (which is also shared by other subsystem) I know who
> sounds foolish.

Never said it worked on a 32bit system. I was pointing out that there can be
workloads that do reach that 50K thread-count that you seem to be
calling "stupid".

As I pointed out later in the message, I *HAVE* run into lowmem starvation on
a 32bit x86 system. You thoughtfully removed this, perhaps because you felt
it damaged your argument. The machine in question is an old P3 box with less
than 1G of memory in it. (Phys+Swap on that machine is only about 1.4G)

So yes, on a 32bit machine you run into problems at much, much less of a
workload and a much lower thread-count than the magic 50K you are so fond of
talking about. If I had been running 4K stacks on that machine I probably
would have survived the mis-configuration without the reboot it took to make
the machine functional again - I probably would still have reconfigured
Apache and MySQL, though - the machine still would have gone largely
unresponsive.

DRH

--
Dialup is like pissing through a pipette. Slow and excruciatingly painful.


\
 
 \ /
  Last update: 2008-04-21 03:49    [W:0.146 / U:12.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site