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

From: Jan Engelhardt
Date: Fri Jul 13 2007 - 05:19:49 EST



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