Re: CFT: src/tools/tools/npcus



On Friday 24 February 2006 16:24, Sam Leffler wrote:
I need folks to test some code committed recently for identifying the
number of cpu's on a machine. The plan is to use this code to choose an
SMP or UP kernel during an install.

cd /usr/src/tools/tools/ncpus
make
su
./ncpus

You should get output like this:

trouble# ./ncpus
acpi0_check: nexus0 attached
acpi0_check: legacy0 not-present
acpi0_check: npx0 attached
acpi0_check: acpi0 attached
ncpus: MADT: Found CPU APIC ID 1 enabled
ncpus: MADT: Found CPU APIC ID 2 disabled
acpi: 1
ncpus: MPTable: Found CPU APIC ID 0 enabled
mptable: 1

acpi: 1 means checking ACPI configuration info we found 1 cpu. mptable:
1 means MPTable indicated there was 1 cpu. The rest of the stuff
printed out is for debugging.

If you run this test and DON'T see the correct number of cpus for your
machine please mail me (directly) with the output and dmesg output from
booting your kernel. FWIW acpi info is considered more definitive than
MPTable so if acpi gives you the right answer but MPTable does not
that's ok.

Specifically, MPTable is likely (except on a few early Xeon's with HTT) to
not include enabled HTT CPUs in its count. The ACPI count should reflect
any HTT CPUs if and only if HTT is enabled in the BIOS.

--
John Baldwin <jhb@xxxxxxxxxxx> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages