-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
Platforms 2017-07-10
-
15
In order to return the "page faults" field of serverStatus.extra_info, the /proc/self/stat file is read, and parsed for just a single field. Its cheaper to simply call getrusage instead.
This should eliminate the stalls seen while collecting "extra_info".
Example stall:
[js_test:fsm_all_sharded_replication_with_balancer] 2017-02-13T19:17:48.812+0000 d20010| 2017-02-13T19:17:48.811+0000 I COMMAND [ftdc] serverStatus was very slow: { after basic: 0, after asserts: 0, after backgroundFlushing: 0, after connections: 0, after dur: 0, after encryptionAtRest: 0, after extra_info: 2546, after globalLock: 2546, after locks: 2546, after network: 2546, after opLatencies: 2546, after opcounters: 2546, after opcountersRepl: 2546, after repl: 2546, after security: 2546, after storageEngine: 2546, after tcmalloc: 2546, after wiredTiger: 2546, at end: 2546 }
- is related to
-
SERVER-28712 serverStatus collect extraInfo may be slow?
- Closed