Re: Running on only some cores

From: Robert Watson <rwatson_at_FreeBSD.org>
Date: Tue, 20 Jan 2009 15:56:38 +0000 (GMT)
On Tue, 20 Jan 2009, Barney Cordoba wrote:

> Can FreeBSD be configured to only run on N cores? So for example, if I have 
> an 8 core system, can it be configured in loader.conf or through a simple 
> hack to only run on 2 cores?
>
> We're testing various configs, and its not terribly convenient to keep 
> swapping out CPUs.

You can use device.hints to disable specific CPUs using:

   hint.lapic.X.disabled=1

This prevents FreeBSD from probing the CPU.  If I had to guess, disabling the 
BSP would be a bad idea, but for the APs it should work fine. :-)

Robert N M Watson
Computer Laboratory
University of Cambridge
Received on Tue Jan 20 2009 - 14:56:39 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:40 UTC