Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-20264

jstests/core/hostinfo.js fails on s390x

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.2
    • Affects Version/s: 3.1.7
    • Component/s: Portability
    • Labels:
    • Fully Compatible
    • ALL
    • Platforms 10 (02/19/16)

      src/mongo/util/processinfo_linux.cpp counts the number of cores on a system by looking at /proc/cpuinfo, the format of which is architecture-dependent. On s390x, it looks like this:

      $ cat /proc/cpuinfo
      vendor_id       : IBM/S390
      # processors    : 8
      bogomips per cpu: 18115.00
      features        : esan3 zarch stfle msa ldisp eimm dfp etf3eh highgprs
      cache0          : level=1 type=Data scope=Private size=96K line_size=256 associativity=6
      cache1          : level=1 type=Instruction scope=Private size=64K line_size=256 associativity=4
      cache2          : level=2 type=Data scope=Private size=1024K line_size=256 associativity=8
      cache3          : level=2 type=Instruction scope=Private size=1024K line_size=256 associativity=8
      cache4          : level=3 type=Unified scope=Shared size=49152K line_size=256 associativity=12
      cache5          : level=4 type=Unified scope=Shared size=393216K line_size=256 associativity=24
      processor 0: version = FF,  identification = 09E977,  machine = 2827
      processor 1: version = FF,  identification = 09E977,  machine = 2827
      processor 2: version = FF,  identification = 09E977,  machine = 2827
      processor 3: version = FF,  identification = 09E977,  machine = 2827
      processor 4: version = FF,  identification = 09E977,  machine = 2827
      processor 5: version = FF,  identification = 09E977,  machine = 2827
      processor 6: version = FF,  identification = 09E977,  machine = 2827
      processor 7: version = FF,  identification = 09E977,  machine = 2827
      

      Currently the code cannot parse this, and the number of cores remain zero, causing jstests/core/hostinfo.js to fail.

            Assignee:
            waley.chen Waley Chen
            Reporter:
            bryanpkc Bryan Chan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: