From owner-freebsd-current@FreeBSD.ORG Tue Apr 15 08:06:39 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9745B106566B; Tue, 15 Apr 2008 08:06:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 3E4FB8FC1F; Tue, 15 Apr 2008 08:06:39 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id D3F6D17107; Tue, 15 Apr 2008 08:06:36 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.2/8.14.2) with ESMTP id m3F86Yge003227; Tue, 15 Apr 2008 08:06:34 GMT (envelope-from phk@critter.freebsd.dk) To: Jeff Roberson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 14 Apr 2008 21:38:34 -1000." <20080414213656.Q959@desktop> Date: Tue, 15 Apr 2008 08:06:34 +0000 Message-ID: <3226.1208246794@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Andrew Reilly , Roman Divacky , Robert Watson , Julian Elischer , FreeBSD Current Subject: Re: stack hogs in kernel X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2008 08:06:39 -0000 In message <20080414213656.Q959@desktop>, Jeff Roberson writes: >> I've long wondered about the seemingly fanatical stack size concern in >> kernel space. In other domains (where I have more experience) you can >> get good performance benefits from the essentially free memory management >> and good cache re-use that comes from putting as much into the >> stack/call-frame as possible. > >There is a small fixed kernel stack per-thread. And in case anybody is about to forget: FreeBSD is still used on systems with a lot less than 1GB ram :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.