From owner-freebsd-current Mon Apr 3 6:18:10 2000 Delivered-To: freebsd-current@freebsd.org Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (Postfix) with SMTP id D09A637BFB1 for ; Mon, 3 Apr 2000 06:18:04 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (1946 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Mon, 3 Apr 2000 15:17:47 +0200 (CEST) (Smail-3.2.0.104 1998-Nov-20 #1 built 1998-Dec-11) Received: by hcswork.hcs.de (Postfix, from userid 200) id 4F48238FA; Mon, 3 Apr 2000 15:17:57 +0200 (METDST) Subject: Re: MLEN and crashes In-Reply-To: <19865.954756081@critter.freebsd.dk> from Poul-Henning Kamp at "Apr 3, 0 12:01:21 pm" To: phk@critter.freebsd.dk (Poul-Henning Kamp) Date: Mon, 3 Apr 2000 15:17:57 +0200 (METDST) Cc: garyj@muc.de, bright@wintelcom.net, hm@hcs.de, freebsd-current@FreeBSD.ORG Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 982 Message-Id: <20000403131757.4F48238FA@hcswork.hcs.de> From: hm@hcs.de (Hellmuth Michaelis) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ? If the latter is true, what number is big ? I've scanned a bit through the kernel sources to find the constant which defines the length of the kernel stack but i was not able to find anything (which then could be used at compile time to detect a potentially too large struct). > Get used to it. Will do ;-) hellmuth -- Hellmuth Michaelis Tel +49 40 55 97 47-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 55 97 47-77 Oldesloer Strasse 97-99 Mail hm [at] hcs.de D-22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message