Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Apr 2001 13:18:36 -0600
From:      "Drew Eckhardt" <drew@poohsticks.org>
To:        Amy Fong <afong@furryterror.org>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: stack/memory usage in kernel related question 
Message-ID:  <200104041918.NAA12926@schizoid.village.org>
In-Reply-To: Your message of "Wed, 04 Apr 2001 14:12:00 EDT."

next in thread | raw e-mail | index | archive | help
On Wed, 04 Apr 2001 14:12:00 EDT, Amy Fong <afong@furryterror.org> wrote:
>Query: I've noticed that if I use up too much stack space, the freebsd
>kernel (4.2) seems to crash very easily. 

Single page sized kernel stacks aren't uncommon (I don't recall what 
FreeBSD uses, but have found the "it's small, don't allocate arrays there"
strategy to work well).

>Specially, if I create an
>array of size N within a function, 

Don't put arrays on the stack.  Use kernel malloc instead.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104041918.NAA12926>