From owner-freebsd-current@FreeBSD.ORG Tue Apr 7 12:48:50 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A9C5106574B for ; Tue, 7 Apr 2009 12:48:50 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 205478FC1C for ; Tue, 7 Apr 2009 12:48:50 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id B768746C0B; Tue, 7 Apr 2009 08:48:49 -0400 (EDT) Date: Tue, 7 Apr 2009 13:48:49 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: =?ISO-2022-JP?Q?=1B$BVC4d=1B=28Jccuiyyan=40sina=2Ecom?= In-Reply-To: <4451ccf20904062332y677d32a2q683d48c39762a857@mail.gmail.com> Message-ID: References: <4451ccf20904062332y677d32a2q683d48c39762a857@mail.gmail.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="621616949-2101459188-1239108529=:45341" Cc: freebsd-current@freebsd.org Subject: Disabling CPUs at boot (was: Re: CPU hotplug) 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, 07 Apr 2009 12:48:52 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --621616949-2101459188-1239108529=:45341 Content-Type: TEXT/PLAIN; charset=ISO-2022-JP; format=flowed On Tue, 7 Apr 2009, 崔岩ccuiyyan@sina.com wrote: > Are there any methods to control the number of CPUs online or CPU > hotplug in FreeBSD? > > I want to shutdown some CPUs in the experiments. Hi Yah: Currently, we really only support fully disabling CPUs at boot-time by forcing the CPU's local APIC not to probe: hint.lapic.X.disabled=1 Replace X with the CPU ID, I believe. And don't apply it to the boot processor. :-) Robert N M Watson Computer Laboratory University of Cambridge --621616949-2101459188-1239108529=:45341--