Re: [PATCH][RFC] 4K stacks default, not a debug thing any more...?

Jan Engelhardt
2007-07-13T09:19:41Z

On Jul 12 2007 21:14, Jeremy Fitzhardinge wrote:
>
> Well, smaller stacks are better where possible, but there's nothing magic about
> 4k.

There is. It is exactly one page on x86. I cannot remember who said it when,
but anything greater than a page implies some penalty.

> Sure, its mostly enough, but there's no particular reason to believe it
> will be enough for everything. You could state a priori that all kernel
> code paths must fit into 4k of stack, but that's pretty arbitrary.

Jan
--