[SERVER-20264] jstests/core/hostinfo.js fails on s390x Created: 02/Sep/15  Updated: 08/Jan/24  Resolved: 08/Feb/16

Status: Closed
Project: Core Server
Component/s: Portability
Affects Version/s: 3.1.7
Fix Version/s: 3.3.2

Type: Bug Priority: Minor - P4
Reporter: Bryan Chan Assignee: Waley Chen
Resolution: Done Votes: 0
Labels: z
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Platforms 10 (02/19/16)
Participants:

 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.



 Comments   
Comment by Githook User [ 16/Feb/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley Chen', u'email': u'waleycz@gmail.com'}

Message: SERVER-20264 jstests/core/hostinfo.js fails on s390x
Branch: master
https://github.com/mongodb/mongo/commit/bbaa3c38d9c525611f1006edb12686ca8aa697de

Comment by Githook User [ 08/Feb/16 ]

Author:

{u'username': u'WaleyChen', u'name': u'Waley', u'email': u'waley.chen@10gen.com'}

Message: SERVER-20264 jstests/core/hostinfo.js fails on s390x
Branch: master
https://github.com/mongodb/mongo/commit/21d4e1be28ac08bb4c8bea1b6f5cd733e0b27a17

Comment by Waley Chen [ 08/Feb/16 ]

master@21d4e1be28ac08bb4c8bea1b6f5cd733e0b27a17

Comment by Waley Chen [ 25/Jan/16 ]

mira.carey@mongodb.com
Would I need the IBM machine to be able to complete this?

Generated at Thu Feb 08 03:53:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.