[SERVER-7918] Linux page_faults as reported by ProcessInfo::getExtraInfo should be 64bit, not 32 bit Created: 13/Dec/12  Updated: 11/Jul/16  Resolved: 26/Dec/12

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: 2.2.2
Fix Version/s: 2.3.2

Type: Bug Priority: Major - P3
Reporter: Andre de Frere Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Operating System: Linux
Participants:

 Description   

ProcessInfo::getExtraInfo will return an integer for page_faults. In some cases, the number of page_faults returned is greater than an integer, causing serverStatus to report negative page fault values:

MongoDB shell version: 2.2.2
connecting to: test
rs:PRIMARY> db.serverStatus().extra_info
{
    "note" : "fields vary by platform",
    "heap_usage_bytes" : 337326056,
    "page_faults" : -2142822936
}
rs:PRIMARY> 
bye
$ cat /proc/4369/stat | awk '{print $2 " " $12}'
(mongod) 2152145842



 Comments   
Comment by auto [ 26/Dec/12 ]

Author:

{u'date': u'2012-12-26T21:07:14Z', u'email': u'eliot@10gen.com', u'name': u'Eliot Horowitz'}

Message: SERVER-7918 Linux page_faults as reported by ProcessInfo::getExtraInfo should be 64bit, not 32 bit
Branch: master
https://github.com/mongodb/mongo/commit/242af4e3999d1f326128c55e9686dc9c522bb00b

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