Details
-
Bug
-
Resolution: Done
-
Minor - P4
-
3.1.7
-
Fully Compatible
-
ALL
-
Platforms 10 (02/19/16)
Description
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.