Re: [PATCH] slub: reduce total stack usage of slab_err & object_err

Richard Kennedy
2008-10-01T10:06:31Z

On Tue, 2008-09-30 at 21:33 +0200, Jörn Engel wrote:
> On Tue, 30 September 2008 16:15:36 +0100, Richard Kennedy wrote:
> >
> > I've been trying to build a tool to estimate the maximum stack usage in
> > the kernel, & noticed that most of the biggest stack users are the error
> > handling routines.
>
> Cool! I once did the same, although the code has severely bitrotted by
> now. Is the code available somewhere?
>
> Jörn

No I haven't made it available as it's really only a proof of concept,
and I still don't have any sensible ideas how to deal with pointers to
functions. Plus I'm still testing it to see if the results are anything
like reasonable.
Also it's finding lots of potentially recursive code paths and my
heuristic to deal with them is very basic. I'm just adding a feature so
that I can ignore some code paths, so maybe that will help.

Richard