Re: Stack size

From: Jörn Engel
Date: Fri Sep 12 2003 - 16:39:19 EST


On Fri, 12 September 2003 12:11:19 -0700, Chris Wright wrote:
>
> * Breno (brenosp@xxxxxxxxxxxxxxxx) wrote:
> > Is there a test in kernel to know how much memory is consumed by stack ?
>
> Have you looked at the CONFIG_DEBUG_STACKOVERFLOW code?

Just a band aid, not more. If you want to be sure, poison the stack
on fork and check the poison on exit.

Jörn

--
Do not stop an army on its way home.
-- Sun Tzu
-
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/