Re: kernel stack torture

Andreas Kostyrka (andreas@medman.ag.or.at)
Wed, 21 Feb 1996 09:29:40 +0100 (MET)


On 20 Feb 1996, Bernd Eckenfels wrote:

> Ulrich Windl (Ulrich.Windl@rz.uni-regensburg.de) wrote:
> > If we can't get more stack "post mortem", could we still allocate
> > stack "pre mortem"? That is some drivers could estimate how much
> > stack they will/might use, and then request it from the kernel mm.
>
> Every function which needs memory could alocate it statically. There should
> be never the Problem of short stack space. Short Stack space is a good Sign
> of missdesign/bug. All we need is a profiling feature for stack length.
I see, hmmm, .... how do you do recursion with static memory? Or do you
actually mean allocate it dynamically? (How does the SCSI driver how many
and what devices are on the SCSI-bus?)

Andreas

--
Andreas Kostyrka
Email: andreas@medman.ag.or.at
Fax: +43/1/7070750 Tel: +43/1/7077571, +43/664/3020166 (cellular)
Copyright 1996 Andreas Kostyrka.  Microsoft Network is prohibited from
redistributing this work in any form, in whole or in part.