From owner-freebsd-smp Wed Aug 27 06:22:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA02674 for smp-outgoing; Wed, 27 Aug 1997 06:22:18 -0700 (PDT) Received: from icicle.winternet.com (adm@icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id GAA02669 for ; Wed, 27 Aug 1997 06:22:14 -0700 (PDT) Received: (from adm@localhost) by icicle.winternet.com (8.8.7/8.8.6) id IAA20010; Wed, 27 Aug 1997 08:22:03 -0500 (CDT) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma019973; Wed, 27 Aug 97 08:21:51 -0500 Received: from localhost (mestery@localhost) by tundra.winternet.com (8.8.4/8.8.4) with SMTP id IAA07201; Wed, 27 Aug 1997 08:21:51 -0500 (CDT) X-Authentication-Warning: tundra.winternet.com: mestery owned process doing -bs Date: Wed, 27 Aug 1997 08:21:50 -0500 (CDT) From: Kyle Mestery Reply-To: Kyle Mestery To: Peter Stubbs cc: smp@FreeBSD.ORG Subject: Re: A how does it work question. In-Reply-To: <199708271236.WAA17211@iccu6.ipswich.gil.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Wed, 27 Aug 1997, Peter Stubbs wrote: > I've been forced to sell my soul lately by doing a couple of MS Win > NT courses ( mouths to feed etc.. ). It seems that NT runs a > seperate instance of the kernel on each CPU present to provide it's > SMP support. > > Is this the way FBSD smp does it? As far as I know, no. There is only one copy of the kernel running. At present, access to the kernel is only allowed for one CPU (except for a few areas), Steve has been working on making it reentrant. > Is this the only way to do it? No. Having the kernel be reentrant is another way. This requires the correct lock "pushdown" into the kernel. Instead of one giant lock, subsystems can each have their own lock, allowing multiple processors to be in different sections of the kernel. This allows for increased parallelism. > Doesn't this mean that lots more memory would be used keeping data > for 2 kernels? > I would assume so, but I dont know for sure. Kyle Mestery StorageTek's Network Systems Group 7600 Boone Ave. N., Brooklyn Park, MN 55428 mesteka@anubis.network.com, mestery@winternet.com