Date: Mon, 03 Apr 2000 15:20:57 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: hm@hcs.de Cc: garyj@muc.de, bright@wintelcom.net, freebsd-current@FreeBSD.ORG Subject: Re: MLEN and crashes Message-ID: <21185.954768057@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 03 Apr 2000 15:17:57 %2B0200." <20000403131757.4F48238FA@hcswork.hcs.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20000403131757.4F48238FA@hcswork.hcs.de>, Hellmuth Michaelis writes : >>From the keyboard of Poul-Henning Kamp: > >> We need to be frugal about the kernel stack, for a lot of reasons, >> that's just the way it is, and as far as I know it is the way >> it will continue to be. > >Good. I'd like to learn something from it: Shall i avoid allocating >structs on the kernel stack at all or is it just bad to allocate >big structs ? My own rule of thumb is "about 60 bytes or so", but it also depends on the lifetime of the function. If it is a leaf function which doesn't call anything else I'll let it use more stack, if it is a function which is burried at the bottom (top really) of the stack all the time I'm less tolerant. -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21185.954768057>