Re: [2.6 patch] i386: always use 4k stacks

From: Adrian Bunk
Date: Thu Dec 15 2005 - 19:46:43 EST


On Thu, Dec 15, 2005 at 06:15:38PM -0500, Dave Jones wrote:
> On Thu, Dec 15, 2005 at 11:30:00PM +0100, Adrian Bunk wrote:
>
> > An how many weird crashes with _different_ causes have you seen?
> > It could be that there are only _very_ few problems that noone really
> > debugs brcause disabling 4k stacks fixes the issue.
>
> the block layer issue that Neil had patches for was the only one
> that rings any bells for me[*] (and the only one in Fedora bugzilla
> that anyone has actually hit -- and that's 2-3 people out of
> a *lot* of users).

Neil's patch is required, and since it's not in 2.6.15-rc we might still
get bug reports with 4k stacks that are fixed by his patch.

Do we have any bug reports due to 4k stacks against -mm since Neil's
patch was included?

People were able to convince me in the past to delay my patch to always
use 4k stacks by pointing to unsolved problems (or I pointed them like
in the reiser4 case) - and these were constructive delays since the code
was fixed. So if someone wants to convince me that it's too early for my
patch, simply send me some pointers to 4k stack issues still present in
a recent -mm. :-)

Hm, I just found two serious stack usage regressions in 2.6.15-rc (bug
report will be in a separate email), but allocating arrays with more
than 2000 elements on the stack is always wrong in the kernel
independent of the stack size...

> Dave
>
> [*] Plus a few XFS ones, but that's been a lost cause wrt stack usage
> for a long time -- people were reporting overflows there before we
> enabled 4K stacks.

I remember someone from the XFS maintainers (Nathan?) saying they
believe having solved all XFS stack issues.

If there are any XFS issues left, do you have a pointer to them?

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

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