Re: x86: 4kstacks default

From: Andi Kleen
Date: Mon Apr 21 2008 - 03:45:55 EST


> Never said it worked on a 32bit system. I was pointing out that there can be
> workloads that do reach

Ah your point was that people might do this on 64bit systems?

They could indeed. It would not be very efficient but it should work
in theory at least with enough memory. Of course they don't need 4k
stacks for it. They can also try it on 32bit and it will work
to some extent too, just not scale very far. And 4k stack more or less
won't make much difference for that because the stack is only
a small part of the lowmem needed for a blocked thread with
open sockets.

But this thread clearly was about 32bit systems only.

> that 50K thread-count that you seem to be
> calling "stupid".

Note I didn't come up with that number, it was quoted to me earlier
(but one of its authors has distanced itself from it now, so it
seems to becoming more and more irrelevant indeed now)

Stupid in this case just refers to the general observation that
it is quite inefficient to do one thread per request on servers
who are expected to process lots of long running connections.

Perhaps I could have put that better I will give you that. Please
assume I always meant "inefficient" when I wrote "stupid".

> 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

Now that is a very doubtful claim. You realize that a functional network
server thread needs a lot more lowmem than just the stack?

-Andi

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/