From owner-freebsd-current@FreeBSD.ORG Tue Jan 20 13:56:13 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 16655106567B for ; Tue, 20 Jan 2009 13:56:13 +0000 (UTC) (envelope-from astrodog@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id DF43F8FC14 for ; Tue, 20 Jan 2009 13:56:12 +0000 (UTC) (envelope-from astrodog@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so3528180wfg.7 for ; Tue, 20 Jan 2009 05:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=+nh+z+1gveW8nirSdnu1v3fXwaWW35pbc1ksDnulfWM=; b=m5LKRQ9IoYGPEncJblW69hkNXbdE2nuQkKRIP/QufEHj1AvY2a5dx/EdipabhkH6OY eaUiGtpcC6hOf0LIyOQX8ETerjSjJ6DFUy5riwi35svZCWdM5hjx/PwN//d2u61lmzNi AuUwLGGlC6aoVV4s4O4WNOFiReG/rBXj2ZTjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mPlZ5+fxLQeQuWN3N/vCybDsNrwvzF8aN0V2XimJ5AelPqR99qYf+JpguSgr95FTsg nO8+XNvUd668Dq+aPa/CSReVifGsa8bgm+fhSiL/tmaZYL7hwyU6xJx7rZNGm2Pa8nIy r4JytitDbI414kNsjITFf5vSbW5ezLBXO/Fwk= MIME-Version: 1.0 Received: by 10.142.57.19 with SMTP id f19mr2873579wfa.80.1232457807699; Tue, 20 Jan 2009 05:23:27 -0800 (PST) In-Reply-To: <10041.11443.qm@web63907.mail.re1.yahoo.com> References: <4975B49A.5060205@gmx.de> <10041.11443.qm@web63907.mail.re1.yahoo.com> Date: Tue, 20 Jan 2009 07:23:27 -0600 Message-ID: <2fd864e0901200523q5559f301qa0475983d6e6deb1@mail.gmail.com> From: Astrodog To: barney_cordoba@yahoo.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Christoph Mallon , freebsd-current@freebsd.org Subject: Re: Running on only some cores 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, 20 Jan 2009 13:56:13 -0000 You can set MAXCPU in the kernel config, if nothing else... On Tue, Jan 20, 2009 at 6:27 AM, Barney Cordoba wrote: > > > > --- On Tue, 1/20/09, Christoph Mallon wrote: > >> From: Christoph Mallon >> Subject: Re: Running on only some cores >> To: barney_cordoba@yahoo.com >> Cc: freebsd-current@freebsd.org >> Date: Tuesday, January 20, 2009, 6:25 AM >> Barney Cordoba schrieb: >> > 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. >> >> man 4 smp >> look for machdep.hlt_cpus > > Ok, I see this does something when run after boot. So there is no way to get the OS to simply not launch the CPU? We have something that reads the number of cpus, which doesn't seem to change. > > Barney > > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- "A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects." --- Robert A. Heinlein