Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2015 09:50:43 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Sven Brehmer <sven.brehmer@polycoresoftware.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Booting < 4 SMP cores on Wandboard-Quad?
Message-ID:  <1427039443.49126.2.camel@freebsd.org>
In-Reply-To: <000001d0642f$56f59540$04e0bfc0$@polycoresoftware.com>
References:  <000001d0642f$56f59540$04e0bfc0$@polycoresoftware.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2015-03-21 at 16:32 -0700, Sven Brehmer wrote:
> Hello,
> 
>  
> 
> We are working with FreeBSD on the Wandboard and we are trying to boot less
> than 4 cores in SMP mode. We have tried a number of way's with settings in
> sysctl.conf, loader.conf and  customizing the kernel build with "options
> MAXCPU=2", but without success.
> 
>  
> 
> Any advice would be appreciated.

Set the hw.ncpu tunable to the number you want.  If you have forth
enabled add to loader.conf:

  hw.ncpu=2

otherwise (no forth) add to loader.rc:

  set hw.ncpu=2

I'm not sure there's good error checking, so don't set it to more cores
than you actually have. :)

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1427039443.49126.2.camel>