Re: x86: 4kstacks default

From: Ingo Molnar
Date: Mon Apr 21 2008 - 10:32:19 EST



* Eric Sandeen <sandeen@xxxxxxxxxxx> wrote:

> > and we've conducted tens of thousands of bootup tests with all sorts
> > of drivers and kernel options enabled and have yet to see a single
> > crash due to 4K stacks.
>
> Really, not one?
>
> https://bugzilla.redhat.com/show_bug.cgi?id=247158
> https://bugzilla.redhat.com/show_bug.cgi?id=227331
> https://bugzilla.redhat.com/show_bug.cgi?id=240077
>
> (hehe, ok, xfs is a common component there...)
>
> and it's not always obvious that you've overflowed the stack.
>
> CONFIG_DEBUG_STACKOVERFLOW isn't ery useful because the warning printk
> it generates uses the remaining amount of stack, and tips the box.

note that in -rt we have an ftrace plugin that measures _precise_ stack
footprint, when it happens.

so it's possible to measure exact stack footprint and save a stack trace
when that happens.

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