cpu count in maas listed as 1 for qual core processor in moonshot

Bug #1272326 reported by Narinder Gupta
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Committed
High
Raphaël Badin

Bug Description

I have ilo4 moonshot chassis and MAAS lsit the nodes fine. But CPU counts are listed as 1 while server is having quad core processor.

Here are cat proc/cpuinfo and lshw infomraiton.

ubuntu@ypayq:~$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
stepping : 9
microcode : 0x10b
cpu MHz : 600.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority
bogomips : 4000.43
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
stepping : 9
microcode : 0x10b
cpu MHz : 600.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority
bogomips : 4000.19
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
stepping : 9
microcode : 0x10b
cpu MHz : 2000.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 2
apicid : 1
initial apicid : 1
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority
bogomips : 4000.25
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 54
model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
stepping : 9
microcode : 0x10b
cpu MHz : 600.000
cache size : 512 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 2
apicid : 3
initial apicid : 3
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority
bogomips : 4000.19
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:

ubuntu@ypayq:~$

ubuntu@ypayq:~$ sudo lshw
ypayq
    description: Multi-system
    product: ProLiant Moonshot Cartridge (700352-B21)
    vendor: HP
    serial: 1234567890
    width: 64 bits
    capabilities: smbios-2.7 dmi-2.7 vsyscall32
    configuration: boot=normal chassis=multi-system family=ProLiant sku=700352-B21 uuid=95EACFC4-C35F-9A57-86C0-522BDAE1FA59
  *-core
       description: Motherboard
       vendor: HP
       physical id: 0
       serial: 1234567890
       slot: NODE 15
     *-firmware
          description: BIOS
          vendor: HP
          physical id: 0
          version: H01
          date: 06/11/2013
          size: 64KiB
          capacity: 4032KiB
          capabilities: pci pnp upgrade shadowing escd cdboot bootselect edd int13floppy360 int13floppy1200 int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi biosbootspecification
     *-cpu
          description: CPU
          product: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
          vendor: Intel Corp.
          physical id: 400
          bus info: cpu@0
          version: Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
          slot: Proc 1
          size: 600MHz
          capacity: 600MHz
          width: 64 bits
          clock: 100MHz
          capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx constant_tsc arch_perfmon pebs bts rep_good nopl nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat dtherm tpr_shadow vnmi flexpriority cpufreq
          configuration: cores=2 enabledcores=2 threads=4
        *-cache:0
             description: L1 cache
             physical id: 710
             slot: Processor 1 Internal L1 Cache
             size: 48KiB
             capacity: 192KiB
             capabilities: burst internal write-back data
        *-cache:1
             description: L2 cache
             physical id: 720
             slot: Processor 1 Internal L2 Cache
             size: 1MiB
             capacity: 1536KiB
             capabilities: burst internal write-back
     *-memory
          description: System Memory
          physical id: 1000
          slot: System board or motherboard
          size: 8GiB
        *-bank
             description: DIMM DDR3 Synchronous 1333 MHz (0.8 ns)
             physical id: 0
             slot: PROC 1 DIMM 1
             size: 8GiB
             width: 64 bits
             clock: 1333MHz (0.8ns)
     *-pci
          description: Host bridge
          product: Atom Processor S1200 Internal
          vendor: Intel Corporation
          physical id: 100
          bus info: pci@0000:00:00.0
          version: 01
          width: 32 bits
          clock: 33MHz
        *-pci:0
             description: PCI bridge
             product: Atom Processor S1200 PCI Express Root Port 1
             vendor: Intel Corporation
             physical id: 1
             bus info: pci@0000:00:01.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pci pciexpress pm msi normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:16 memory:fbee0000-fbefffff ioport:3000(size=4096) memory:fbf00000-fbffffff ioport:f0000000(size=1048576)
           *-storage
                description: SATA controller
                product: 88SE9125 PCIe SATA 6.0 Gb/s controller
                vendor: Marvell Technology Group Ltd.
                physical id: 0
                bus info: pci@0000:01:00.0
                logical name: scsi0
                version: 11
                width: 32 bits
                clock: 33MHz
                capabilities: storage pm msi pciexpress ahci_1.0 bus_master cap_list rom emulated
                configuration: driver=ahci latency=0
                resources: irq:40 ioport:3000 ioport:3001 ioport:3002 ioport:3003 ioport:3004 memory:fbff0000-fbff07ff memory:f0000000-f000ffff
              *-disk
                   description: ATA Disk
                   product: MM0500GBKAK
                   physical id: 0.0.0
                   bus info: scsi@0:0.0.0
                   logical name: /dev/sda
                   version: HPGB
                   serial: 9XF1V3W2
                   size: 465GiB (500GB)
                   capabilities: partitioned partitioned:dos
                   configuration: ansiversion=5
                 *-volume
                      description: EXT4 volume
                      vendor: Linux
                      physical id: 1
                      bus info: scsi@0:0.0.0,1
                      logical name: /dev/sda1
                      logical name: /
                      version: 1.0
                      serial: b162db5b-ffbe-47c0-8464-f89c5478ceb0
                      size: 465GiB
                      capacity: 465GiB
                      capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover extents ext4 ext2 initialized
                      configuration: created=2014-01-24 13:01:48 filesystem=ext4 label=cloudimg-rootfs lastmountpoint=/ modified=2014-01-24 13:02:36 mount.fstype=ext4 mount.options=rw,relatime,user_xattr,barrier=1,data=ordered mounted=2014-01-24 13:05:23 state=mounted
        *-pci:1
             description: PCI bridge
             product: Atom Processor S1200 PCI Express Root Port 2
             vendor: Intel Corporation
             physical id: 2
             bus info: pci@0000:00:02.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pci pciexpress pm msi normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:16 memory:fbec0000-fbedffff memory:f0100000-f01fffff ioport:fbd00000(size=1048576)
           *-network:0 DISABLED
                description: Ethernet interface
                product: NetXtreme BCM5720 Gigabit Ethernet PCIe
                vendor: Broadcom Corporation
                physical id: 0
                bus info: pci@0000:04:00.0
                logical name: eth0
                version: 00
                serial: 38:ea:a7:0f:0d:38
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm vpd msi msix pciexpress bus_master cap_list rom ethernet physical fibre 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.121 firmware=5720-v1.30 NCSI v1.0.72.0 latency=0 link=no multicast=yes port=fibre
                resources: irq:16 memory:fbdf0000-fbdfffff memory:fbde0000-fbdeffff memory:fbdd0000-fbddffff memory:fbd00000-fbd1ffff
           *-network:1
                description: Ethernet interface
                product: NetXtreme BCM5720 Gigabit Ethernet PCIe
                vendor: Broadcom Corporation
                physical id: 0.1
                bus info: pci@0000:04:00.1
                logical name: eth1
                version: 00
                serial: 38:ea:a7:0f:0d:39
                size: 1Gbit/s
                capacity: 1Gbit/s
                width: 64 bits
                clock: 33MHz
                capabilities: pm vpd msi msix pciexpress bus_master cap_list rom ethernet physical fibre 1000bt 1000bt-fd autonegotiation
                configuration: autonegotiation=on broadcast=yes driver=tg3 driverversion=3.121 duplex=full firmware=5720-v1.30 NCSI v1.0.72.0 ip=10.18.1.82 latency=0 link=yes multicast=yes port=fibre speed=1Gbit/s
                resources: irq:16 memory:fbdc0000-fbdcffff memory:fbdb0000-fbdbffff memory:fbda0000-fbdaffff memory:fbd20000-fbd3ffff
        *-pci:2
             description: PCI bridge
             product: Atom Processor S1200 PCI Express Root Port 3
             vendor: Intel Corporation
             physical id: 3
             bus info: pci@0000:00:03.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pci pciexpress pm msi normal_decode bus_master cap_list
             configuration: driver=pcieport
             resources: irq:16 memory:fbea0000-fbebffff
        *-generic:0 UNCLAIMED
             description: IOMMU
             product: Atom Processor S1200 Internal
             vendor: Intel Corporation
             physical id: e
             bus info: pci@0000:00:0e.0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: pciexpress pm msi bus_master cap_list
             configuration: latency=0
        *-generic:1 UNCLAIMED
             description: System peripheral
             product: Atom Processor S1200 SMBus 2.0 Controller 0
             vendor: Intel Corporation
             physical id: 13
             bus info: pci@0000:00:13.0
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress pm msi bus_master cap_list
             configuration: latency=0
             resources: memory:fbe90000-fbe903ff
        *-generic:2 UNCLAIMED
             description: System peripheral
             product: Atom Processor S1200 SMBus 2.0 Controller 1
             vendor: Intel Corporation
             physical id: 13.1
             bus info: pci@0000:00:13.1
             version: 01
             width: 64 bits
             clock: 33MHz
             capabilities: pciexpress pm msi bus_master cap_list
             configuration: latency=0
             resources: memory:fbe80000-fbe803ff
        *-communication
             description: Modem
             product: Atom Processor S1200 UART
             vendor: Intel Corporation
             physical id: 14
             bus info: pci@0000:00:14.0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: msi pm hayes_16550 bus_master cap_list
             configuration: driver=serial latency=0
             resources: irq:16 ioport:3f8(size=8) memory:fbe70000-fbe700ff
        *-isa
             description: ISA bridge
             product: Atom Processor S1200 Integrated Legacy Bus
             vendor: Intel Corporation
             physical id: 1f
             bus info: pci@0000:00:1f.0
             version: 01
             width: 32 bits
             clock: 33MHz
             capabilities: isa
             configuration: latency=0
  *-power:0 UNCLAIMED
       description: Power Supply 1
       vendor: HP
       physical id: 1
       capacity: 32768mWh
  *-power:1 UNCLAIMED
       description: Power Supply 2
       vendor: HP
       physical id: 2
       capacity: 32768mWh
  *-power:2 UNCLAIMED
       description: Power Supply 3
       vendor: HP
       physical id: 3
       capacity: 32768mWh
  *-power:3 UNCLAIMED
       description: Power Supply 4
       vendor: HP
       physical id: 4
       capacity: 32768mWh
ubuntu@ypayq:~$

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

We might be able to fix this with just the output of "sudo lshw" that you already provided; but if you have it handy, the output of "sudo lshw -xml" would be useful: that's the data on which MAAS operates and having the exact output will enable us to properly test your use-case once the code is be fixed.

Changed in maas:
status: New → Triaged
importance: Undecided → High
tags: added: hardware-detection
Revision history for this message
Narinder Gupta (narindergupta) wrote : Re: [Bug 1272326] Re: cpu count in maas listed as 1 for qual core processor in moonshot
  • lshwxml.txt Edit (26.5 KiB, text/plain; charset=US-ASCII; name="lshwxml.txt")
Download full text (18.0 KiB)

please find it attached. As i can see the core marked as 2 and thread as 4
total.

  <node id="cpu" claimed="true" class="processor" handle="DMI:0400">
     <description>CPU</description>
     <product>Intel(R) Atom(TM) CPU S1260 @ 2.00GHz</product>
     <vendor>Intel Corp.</vendor>
     <physid>400</physid>
     <businfo>cpu@0</businfo>
     <version>Intel(R) Atom(TM) CPU S1260 @ 2.00GHz</version>
     <slot>Proc 1</slot>
     <size units="Hz">600000000</size>
     <capacity units="Hz">600000000</capacity>
     <width units="bits">64</width>
     <clock units="Hz">100000000</clock>
     <configuration>

* <setting id="cores" value="2" /> <setting id="enabledcores"
value="2" /> <setting id="threads" value="4" />*
     </configuration>

Thanks and Regards,
Narinder Gupta (PMP) <email address hidden>
Canonical, Ltd. narindergupta [irc.freenode.net]
+1.281.736.5150 narindergupta2007[skype]

Ubuntu- Linux for human beings | www.ubuntu.com | www.canonical.com

On Mon, Jan 27, 2014 at 8:06 AM, Raphaël Badin
<email address hidden>wrote:

> We might be able to fix this with just the output of "sudo lshw" that
> you already provided; but if you have it handy, the output of "sudo lshw
> -xml" would be useful: that's the data on which MAAS operates and having
> the exact output will enable us to properly test your use-case once the
> code is be fixed.
>
> ** Changed in: maas
> Status: New => Triaged
>
> ** Changed in: maas
> Importance: Undecided => High
>
> ** Tags added: hardware-detection
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1272326
>
> Title:
> cpu count in maas listed as 1 for qual core processor in moonshot
>
> Status in MAAS:
> Triaged
>
> Bug description:
> I have ilo4 moonshot chassis and MAAS lsit the nodes fine. But CPU
> counts are listed as 1 while server is having quad core processor.
>
> Here are cat proc/cpuinfo and lshw infomraiton.
>
> ubuntu@ypayq:~$ cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 6
> model : 54
> model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
> stepping : 9
> microcode : 0x10b
> cpu MHz : 600.000
> cache size : 512 KB
> physical id : 0
> siblings : 4
> core id : 0
> cpu cores : 2
> apicid : 0
> initial apicid : 0
> fpu : yes
> fpu_exception : yes
> cpuid level : 10
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> lm constant_tsc arch_perfmon pebs bts rep_good nopl nonstop_tsc aperfmperf
> pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm
> arat dtherm tpr_shadow vnmi flexpriority
> bogomips : 4000.43
> clflush size : 64
> cache_alignment : 64
> address sizes : 36 bits physical, 48 bits virtual
> power management:
>
> processor : 1
> vendor_id : GenuineInt...

tags: added: trivial
Revision history for this message
Raphaël Badin (rvb) wrote :

Currently, MAAS only counts the number of physical processors. It doesn't take into account the number of cores or hyper-threading (i.e. the "<setting id="cores" value="2" /> <setting id="enabledcores" value="2" /> <setting id="threads" value="4" />" bit in lshw's output).

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Raphael,

I think we need to start considering that many systems will have hyperthreading and that actual CPUS in MAAS with those reported by /proc/cpoinfo will differ. This, I believe, can be a problem in the long term when it comes to trying to allocate services to specific nodes based on tags/number of CPUS.

I think we should either consider counting cores as CPU's, or add another section that display the number of actual cores, rather than only CPU;s.

Revision history for this message
Raphaël Badin (rvb) wrote :

@Andres: I agree that the current behavior is less than ideal.

I think MAAS should report the number of cores in the same way than the OS sees them, i.e. taking into account multiple cores and hyperthreading.

Revision history for this message
Raphaël Badin (rvb) wrote :
Revision history for this message
Narinder Gupta (narindergupta) wrote :
Download full text (17.0 KiB)

cool thanks All and really this will be helpful.

Thanks and Regards,
Narinder Gupta (PMP) <email address hidden>
Canonical, Ltd. narindergupta [irc.freenode.net]
+1.281.736.5150 narindergupta2007[skype]

Ubuntu- Linux for human beings | www.ubuntu.com | www.canonical.com

On Tue, Jan 28, 2014 at 10:39 AM, Raphaël Badin
<email address hidden>wrote:

> @Andres: care to have a look at: https://code.launchpad.net/~rvb/maas
> /cpu_count-bug-1272326/+merge/203503 ?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1272326
>
> Title:
> cpu count in maas listed as 1 for qual core processor in moonshot
>
> Status in MAAS:
> Triaged
>
> Bug description:
> I have ilo4 moonshot chassis and MAAS lsit the nodes fine. But CPU
> counts are listed as 1 while server is having quad core processor.
>
> Here are cat proc/cpuinfo and lshw infomraiton.
>
> ubuntu@ypayq:~$ cat /proc/cpuinfo
> processor : 0
> vendor_id : GenuineIntel
> cpu family : 6
> model : 54
> model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
> stepping : 9
> microcode : 0x10b
> cpu MHz : 600.000
> cache size : 512 KB
> physical id : 0
> siblings : 4
> core id : 0
> cpu cores : 2
> apicid : 0
> initial apicid : 0
> fpu : yes
> fpu_exception : yes
> cpuid level : 10
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> lm constant_tsc arch_perfmon pebs bts rep_good nopl nonstop_tsc aperfmperf
> pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm
> arat dtherm tpr_shadow vnmi flexpriority
> bogomips : 4000.43
> clflush size : 64
> cache_alignment : 64
> address sizes : 36 bits physical, 48 bits virtual
> power management:
>
> processor : 1
> vendor_id : GenuineIntel
> cpu family : 6
> model : 54
> model name : Intel(R) Atom(TM) CPU S1260 @ 2.00GHz
> stepping : 9
> microcode : 0x10b
> cpu MHz : 600.000
> cache size : 512 KB
> physical id : 0
> siblings : 4
> core id : 1
> cpu cores : 2
> apicid : 2
> initial apicid : 2
> fpu : yes
> fpu_exception : yes
> cpuid level : 10
> wp : yes
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx
> lm constant_tsc arch_perfmon pebs bts nopl nonstop_tsc aperfmperf pni
> dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm movbe lahf_lm arat
> dtherm tpr_shadow vnmi flexpriority
> bogomips : 4000.19
> clflush size : 64
> cache_alignment : 64
> address sizes : 36 bits physical, 48 bits virtual
> power management:
>
> processor : 2
> vendor_id : GenuineIntel
> cpu family : 6
> model : 54
> ...

Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
milestone: none → 14.04
Raphaël Badin (rvb)
Changed in maas:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.