From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 13 17:43:11 2012 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 756401065670; Fri, 13 Apr 2012 17:43:11 +0000 (UTC) (envelope-from flo@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6898FC12; Fri, 13 Apr 2012 17:43:11 +0000 (UTC) Received: from nibbler-wlan.fritz.box (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q3DHh8jJ052156; Fri, 13 Apr 2012 17:43:10 GMT (envelope-from flo@FreeBSD.org) Message-ID: <4F8865AB.10504@FreeBSD.org> Date: Fri, 13 Apr 2012 19:43:07 +0200 From: Florian Smeets User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120410 Thunderbird/12.0 MIME-Version: 1.0 To: Alexander Best References: <1334333913.65753.YahooMailNeo@web193204.mail.sg3.yahoo.com> <20120413173440.GA48030@freebsd.org> In-Reply-To: <20120413173440.GA48030@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" , Mahesh Babu Subject: Re: Regarding core disable in FreeBSD 9 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2012 17:43:11 -0000 On 13.04.12 19:34, Alexander Best wrote: > On Sat Apr 14 12, Mahesh Babu wrote: >> How to disable a particular core in FreeBSD 9? >> How to enable it again? > > i don't think it's possible to do that in freebsd. what you can do is to > disable SMP oder hyperthreading. alternatively you can assign a certain process > to a certain core. > > i think there's a project to disable and enable specific cores on the fly. > freebsd is pretty far behind regarding this feature. beos was able to do this > anno 1998 or so afair. > You can set the following in /boot/loader.conf hint.lapic.128.disabled=1 hint.lapic.130.disabled=1 Where 128 and 130 are IDs of cores you want to disable, you can find the IDs for your CPUs/cores in dmesg or /var/log/messages e.g. cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 2 cpu2 (AP): APIC ID: 4 cpu3 (AP): APIC ID: 16 Enabling and disabling on the fly is not possible. Florian