Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2004 16:46:18 -0500
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        freebsd-hackers@freebsd.org
Subject:   Questions about CPU related sysctls
Message-ID:  <20040225214618.GA60156@crodrigues.org>

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

I want to write some C code to get a count of the number of
CPU's on a running system.

What is the difference between these two sysctls?

kern.smp.cpus: Number of CPUs online
hw.ncpu: Number of active CPUs

Also, can someone give a brief description of these sysctls (sysctl -d
doesn't show anything for them).

Would it be a good idea to add some text to these syctls?

kern.ccpu:
hw.acpi.cpu.cx_history:
machdep.hlt_cpus:

-- 
Craig Rodrigues        
http://crodrigues.org
rodrigc@crodrigues.org



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