Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-863

Fact processorcount wrong on Raspberry Pi 2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Affects Version/s: FACT 2.4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 14.04 LTS 'trusty' on Raspberry Pi 2 (armhf armv7l)

    • Template:

      Description

      Incorrect fact processorcount on quad-core armv7l Raspberry Pi 2
      Expect 4, got 3.

      root@xxxxxxx:~# facter -p | grep processor
      physicalprocessorcount => 1
      processorcount => 3
      processors =>

      {"models"=>[nil, nil, nil], "count"=>3, "physicalcount"=>1}

      root@xxxxxxx:~# facter architecture
      armv7l

      root@xxxxxxx:~# cat /proc/cpuinfo
      processor : 0
      model name : ARMv7 Processor rev 5 (v7l)
      BogoMIPS : 57.60
      Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant : 0x0
      CPU part : 0xc07
      CPU revision : 5

      processor : 1
      model name : ARMv7 Processor rev 5 (v7l)
      BogoMIPS : 57.60
      Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant : 0x0
      CPU part : 0xc07
      CPU revision : 5

      processor : 2
      model name : ARMv7 Processor rev 5 (v7l)
      BogoMIPS : 57.60
      Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant : 0x0
      CPU part : 0xc07
      CPU revision : 5

      processor : 3
      model name : ARMv7 Processor rev 5 (v7l)
      BogoMIPS : 57.60
      Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
      CPU implementer : 0x41
      CPU architecture: 7
      CPU variant : 0x0
      CPU part : 0xc07
      CPU revision : 5

      Hardware : BCM2709
      Revision : a21041
      Serial : 00000000b0024841

      Line 252 in file ..../facter/util/processor.rb
      ignores the first processor core where $proc_num == 0

      Presumably this was to accommodate a different arm cpu but miscounts on quad-core RPi 2 .

      regards,

      Drew

        Attachments

          Activity

            People

            • Assignee:
              eric.sorenson Eric Sorenson
              Reporter:
              greenogre Drew Gibson
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support