From aragon at phat.za.net Fri Sep 26 12:13:51 2008 From: aragon at phat.za.net (Aragon Gouveia) Date: Fri Sep 26 12:13:57 2008 Subject: Figuring out how many real cpus, cpu cores, and logical cpus Message-ID: <20080926115645.GA97322@phat.za.net> Hi, I'm struggling to figure out if my BSD system is detecting the correct properties about my CPU. What I've figured out so far is that FreeBSD is seeing 1 physical CPU, with 1 core, and 2 logical CPUs. However, I am fairly certain this CPU should have multiple cores (atleast two). How do I check how many cores a CPU has vs. how many are actually detected? I do not have physical access to the machine nor any record of this system's purchase invoice, so I need to go on what software tells me. Bootup dmesg is below. Thanks, Aragon Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 6.3-RELEASE #1: Tue Mar 25 08:57:59 UTC 2008 root@pavlov.xxxxx:/usr/obj/usr/src/sys/PAVLOV Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 3.40GHz (3391.74-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf4a Stepping = 10 Features=0xbfebfbff Features2=0x649d AMD Features=0x20100000 AMD Features2=0x1 Logical CPUs per core: 2 real memory = 3757834240 (3583 MB) avail memory = 3682926592 (3512 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic1: Changing APIC ID to 3 ioapic2: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 32-55 on motherboard ioapic2 irqs 64-87 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 cpu1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: at device 0.0 on pci1 pci2: on pcib2 amr0: mem 0xf80f0000-0xf80fffff,0xfe9e0000-0xfe9fffff irq 46 at device 14.0 on pci2 amr0: delete logical drives supported by controller amr0: Firmware 521X, BIOS H430, 256MB RAM pcib3: at device 0.2 on pci1 pci3: on pcib3 pcib4: at device 4.0 on pci0 pci4: on pcib4 pcib5: at device 5.0 on pci0 pci5: on pcib5 pcib6: at device 0.0 on pci5 pci6: on pcib6 em0: port 0xecc0-0xecff mem 0xfe6e0000-0xfe6fffff irq 64 at device 7.0 on pci6 em0: Ethernet address: 00:13:72:5a:cd:6a pcib7: at device 0.2 on pci5 pci7: on pcib7 em1: port 0xdcc0-0xdcff mem 0xfe4e0000-0xfe4fffff irq 65 at device 8.0 on pci7 em1: Ethernet address: 00:13:72:5a:cd:6b pcib8: at device 6.0 on pci0 pci8: on pcib8 pci0: at device 29.0 (no driver attached) pci0: at device 29.1 (no driver attached) pci0: at device 29.2 (no driver attached) pci0: at device 29.7 (no driver attached) pcib9: at device 30.0 on pci0 pci9: on pcib9 pci9: at device 13.0 (no driver attached) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.1 on pci0 ata0: on atapci0 ata1: on atapci0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A orm0: at iomem 0xc0000-0xcafff,0xcb000-0xcbfff,0xcc000-0xccfff,0xec000-0xeffff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 atkbd0: [GIANT-LOCKED] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 10.000 msec acd0: CDROM at ata0-master UDMA33 amr0: delete logical drives supported by controller amrd0: on amr0 amrd0: 69880MB (143114240 sectors) RAID 1 (optimal) SMP: AP CPU #1 Launched! From jhb at freebsd.org Fri Sep 26 14:05:11 2008 From: jhb at freebsd.org (John Baldwin) Date: Fri Sep 26 14:05:20 2008 Subject: Figuring out how many real cpus, cpu cores, and logical cpus In-Reply-To: <20080926115645.GA97322@phat.za.net> References: <20080926115645.GA97322@phat.za.net> Message-ID: <200809260957.04628.jhb@freebsd.org> On Friday 26 September 2008 07:56:45 am Aragon Gouveia wrote: > Hi, > > I'm struggling to figure out if my BSD system is detecting the correct > properties about my CPU. > > What I've figured out so far is that FreeBSD is seeing 1 physical CPU, with > 1 core, and 2 logical CPUs. However, I am fairly certain this CPU should > have multiple cores (atleast two). Are you sure this isn't a Xeon processor with 2 hyperthreads? amr(4) is a PERC4 RAID controller, and the dual-core Dell boxes I know of all have PERC5/6 (mfi) RAID controllers. -- John Baldwin From ivoras at freebsd.org Fri Sep 26 14:06:02 2008 From: ivoras at freebsd.org (Ivan Voras) Date: Fri Sep 26 14:06:10 2008 Subject: Figuring out how many real cpus, cpu cores, and logical cpus In-Reply-To: <20080926115645.GA97322@phat.za.net> References: <20080926115645.GA97322@phat.za.net> Message-ID: Aragon Gouveia wrote: > Hi, > > I'm struggling to figure out if my BSD system is detecting the correct > properties about my CPU. > > What I've figured out so far is that FreeBSD is seeing 1 physical CPU, with > 1 core, and 2 logical CPUs. However, I am fairly certain this CPU should > have multiple cores (atleast two). > > How do I check how many cores a CPU has vs. how many are actually detected? > I do not have physical access to the machine nor any record of this > system's purchase invoice, so I need to go on what software tells me. > > Bootup dmesg is below. > Origin = "GenuineIntel" Id = 0xf4a Stepping = 10 > Features=0xbfebfbff > Features2=0x649d > AMD Features=0x20100000 > AMD Features2=0x1 > Logical CPUs per core: 2 > real memory = 3757834240 (3583 MB) > avail memory = 3682926592 (3512 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 This is most likely a hyperthreaded CPU from an older NetBurst (pentium 4-style) Xeon generation, so the displayed information is correct: you have one socket, with single core CPU in it, which supports hyperthreading so it presents itself as two CPUs. You probably also need to enable machdep.hyperthreading_allowed sysctl (if you have it). If you still doubt it, you can send the model number or look it up yourself in http://en.wikipedia.org/wiki/List_of_Intel_Xeon_microprocessors . sysutils/dmidecode utility could also help you. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 252 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-smp/attachments/20080926/e3383f7a/signature.pgp From aragon at phat.za.net Fri Sep 26 21:42:33 2008 From: aragon at phat.za.net (Aragon Gouveia) Date: Fri Sep 26 21:42:40 2008 Subject: Figuring out how many real cpus, cpu cores, and logical cpus In-Reply-To: <200809260957.04628.jhb@freebsd.org> References: <20080926115645.GA97322@phat.za.net> <200809260957.04628.jhb@freebsd.org> Message-ID: <20080926214231.GA38518@phat.za.net> | By John Baldwin | [ 2008-09-26 16:05 +0200 ] > On Friday 26 September 2008 07:56:45 am Aragon Gouveia wrote: > > Hi, > > > > I'm struggling to figure out if my BSD system is detecting the correct > > properties about my CPU. > > > > What I've figured out so far is that FreeBSD is seeing 1 physical CPU, with > > 1 core, and 2 logical CPUs. However, I am fairly certain this CPU should > > have multiple cores (atleast two). > > Are you sure this isn't a Xeon processor with 2 hyperthreads? amr(4) is a > PERC4 RAID controller, and the dual-core Dell boxes I know of all have > PERC5/6 (mfi) RAID controllers. I installed dmidecode from ports which was very useful. It showed only 1 core per chip and got me the Dell service tag for the machine, which I looked up online to check further. Your suspicions confirm everything too, and seems I was wrong - only 1 core per chip. :) Thanks for responding! Regards, Aragon