Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2012 15:41:56 +0900
From:      Svyatoslav Lempert <svyatoslav.lempert@gmail.com>
To:        FreeBSD-Ports <freebsd-ports@freebsd.org>
Subject:   how to find the number of processor cores
Message-ID:  <CAERaTk_7s%2Bk-Z3fKr31uYf=ry0oio_qmgfJMKPACT0yK832qqg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

I need some patch for single core CPU (on VPS), but this construction
do not work


CPUS=           `${SYSCTL} -n kern.smp.cpus`

.if ${CPUS} == "1"
EXTRA_PATCHES=${FILESDIR}/extra-onecorecpu.patch
.endif


And for (but not true for me) if I use != it applyed, I think problem in CPUS=

How to get dubug what data record in CPUS?
How to get CPU core count?

In shell
# sysctl -n kern.smp.cpus
1

-- 
Svyatoslav



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAERaTk_7s%2Bk-Z3fKr31uYf=ry0oio_qmgfJMKPACT0yK832qqg>