From owner-freebsd-current Tue Jan 28 1:55:26 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C812D37B401 for ; Tue, 28 Jan 2003 01:55:24 -0800 (PST) Received: from ns2.wananchi.com (ns2.wananchi.com [62.8.64.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F05B843F75 for ; Tue, 28 Jan 2003 01:55:22 -0800 (PST) (envelope-from wash@wananchi.com) Received: from wash by ns2.wananchi.com (Exim 4.12 #4 (FreeBSD)) protocol: local id 18dSRB-00047E-00 ; Tue, 28 Jan 2003 12:53:49 +0300 Date: Tue, 28 Jan 2003 12:53:49 +0300 From: Odhiambo Washington To: Ceri Davies Cc: Adam Migus , current@FreeBSD.org Subject: Re: Force 1 CPU on SMP kernel? Message-ID: <20030128095349.GK36536@ns2.wananchi.com> References: <49857.192.168.4.2.1043728382.squirrel@mail.migus.org> <20030128095107.GA2628@submonkey.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030128095107.GA2628@submonkey.net> X-Disclaimer: Any views expressed in this message,where not explicitly attributed otherwise, are mine alone!. X-Fortune: Take my word for it, the silliest woman can manage a clever man, but it needs a very clever woman to manage a fool. -- Kipling X-Operating-System: FreeBSD 4.7-STABLE i386 X-Best-Window-Manager: Blackbox X-Mailer: Mutt 1.5.1i (2002-05-02) X-Designation: Systems Administrator, Wananchi Online Ltd. X-Location: Nairobi, KE, East Africa. X-Uptime: 12:52PM up 4 days, 17:31, 3 users, load averages: 0.23, 0.56, 0.60 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Ceri Davies [20030128 12:50]: wrote: > On Mon, Jan 27, 2003 at 11:33:02PM -0500, Adam Migus wrote: > > Hi, > > I'm doing some performance analysis on FreeBSD. I would like to > > be able to make an SMP kernel use only one CPU. Of course I > > realize running GENERIC would only use 1 CPU but the concern is > > that the overhead assoicated with SMP will skew the statistics. > > So my question is what would be the 'best' way to make an SMP > > kernel only start/use CPU0? > > Yank the others ? > What about building two kernels, one SMP, the other non-SMP, then just boot wheichever kernel you want? Doesn't it server same purpose? Better than Ceri's idea ;) -Wash -- Odhiambo Washington "The box said 'Requires Wananchi Online Ltd. www.wananchi.com Windows 95, NT, or better,' Tel: +254 2 313985-9 +254 2 313922 so I installed FreeBSD." GSM: +254 72 743223 +254 733 744121 This sig is McQ! :-) "I'd love to go out with you, but I'm converting my calendar watch from Julian to Gregorian." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message