On Thu, 25 Jul 2002, James Olin Oden wrote: > Hi, > > A while back we had a discusion about how to detect the number > of cpu's that were really on the system. The previous discussion > was centered around hyperthreading, but I am not really concerned > with that aspect of the problem. What I would like to be able to > do is be able to know how many cpus are physically on the box > as opposed to how many are being used. > > For instance, if I booted a duel processor box with the > boot parameter: > > maxcpus=1 > > and then looked at the file /proc/cpuinfo there would only be > information concerning the one used cpu. Is it possible to find > out how many cpu's are actually on the box while it is > in this state? I'd guess the information is available in the MP-tables and x86info (http://sourceforge.net/projects/x86info/) seems to confirm my guess: On a dual P IV box 'x86info --mptable' produces the following: --- Found 4 CPUs # Processors: APIC ID Version State Family Model Step Flags # 0 0x14 BSP, usable 15 2 4 0x3febfbff # 2 0x14 AP, usable 15 2 4 0x3febfbff CPU #1 Family: 15 Model: 2 Stepping: 4 Type: 0 [Unknown CPU Original OEM] Processor name string: Intel(R) XEON(TM) CPU 2.40GHz CPU #2 Family: 15 Model: 2 Stepping: 4 Type: 0 [Unknown CPU Original OEM] Processor name string: Intel(R) XEON(TM) CPU 2.40GHz CPU #3 Family: 15 Model: 2 Stepping: 4 Type: 0 [Unknown CPU Original OEM] Processor name string: Intel(R) XEON(TM) CPU 2.40GHz CPU #4 Family: 15 Model: 2 Stepping: 4 Type: 0 [Unknown CPU Original OEM] Processor name string: Intel(R) XEON(TM) CPU 2.40GHz --- So the Processors-list in the beginning has the correct information about the number of physical CPU's. - Panu - _______________________________________________ Redhat-devel-list mailing list Redhat-devel-list@redhat.com https://listman.redhat.com/mailman/listinfo/redhat-devel-list