From owner-freebsd-ports@FreeBSD.ORG Wed May 16 08:33:48 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E59271065676 for ; Wed, 16 May 2012 08:33:48 +0000 (UTC) (envelope-from scheidell@FreeBSD.org) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [204.89.241.253]) by mx1.freebsd.org (Postfix) with ESMTP id B51158FC16 for ; Wed, 16 May 2012 08:33:48 +0000 (UTC) Received: from mx1.secnap.com.ionspam.net (mx1.secnap.com.ionspam.net [10.70.1.253]) by mx1.secnap.com.ionspam.net (Postfix) with ESMTP id 6C568621C0F for ; Wed, 16 May 2012 04:33:48 -0400 (EDT) X-Virus-Scanned: SpammerTrap(r) VPS-1500 2.18 at mx1.secnap.com.ionspam.net Received: from USBCTDC001.secnap.com (usbctdc001.secnap.com [10.70.1.1]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.secnap.com.ionspam.net (Postfix) with ESMTPS id CF301621C0E for ; Wed, 16 May 2012 04:33:47 -0400 (EDT) Message-ID: <4FB36669.8060803@FreeBSD.org> Date: Wed, 16 May 2012 04:33:45 -0400 From: Michael Scheidell Organization: SECNAP Network Security Corp User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.20) Gecko/20110804 Thunderbird/3.1.12 MIME-Version: 1.0 To: References: In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: how to find the number of processor cores X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 08:33:49 -0000 On 5/16/12 2:41 AM, Svyatoslav Lempert wrote: > Hello, > > I need some patch for single core CPU (on VPS), but this construction > do not work > Try to describe why/ and why you want to do this. Why not a knob? WITH_ONE_CPU > CPUS= `${SYSCTL} -n kern.smp.cpus` Try: CPUS!= ${SYSCTL} -n kern.smp.cpus (but, run portlint -abt after and see warning). This spawns extra processes in make INDEX, and will bring the wrath of the ports auditors down on you. -- Michael Scheidell, CTO >*| * SECNAP Network Security Corporation d: +1.561.948.2259 w: http://people.freebsd.org/~scheidell