[SERVER-27075] should specify --hash-style=gnu when using gold linker Created: 16/Nov/16  Updated: 05/Apr/17  Resolved: 29/Nov/16

Status: Closed
Project: Core Server
Component/s: Performance
Affects Version/s: None
Fix Version/s: 3.5.1

Type: Improvement Priority: Major - P3
Reporter: Geert Bosch Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2017-01-23
Participants:

 Description   

Specifying --hash-style=gnu when using --link-model=dynamic speeds up load time of the mongod executable by a factor 3: 1.1 seconds instead of 3.3 seconds, measured as the time taken for time mongod --bad-option. We should specify this by default when using the gold linker.



 Comments   
Comment by Githook User [ 29/Nov/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: Revert "Revert "SERVER-27075 Link with hash-style=gnu when available""

This reverts commit 0edb03f021bad065d132f579d35fad21abf09212.
Branch: master
https://github.com/mongodb/mongo/commit/8f1e9cb99d511d154dc33473d46795161594e4ce

Comment by Dianna Hohensee (Inactive) [ 29/Nov/16 ]

Reverted the commit and reopened the ticket. The commit broke the fuzzer: https://evergreen.mongodb.com/version/mongodb_mongo_master_1834a0f8425a94cfee80cb212bf831bdac200934

 [2016/11/29 12:36:33.489] Running "..\mongod.exe --version" failed.
 [2016/11/29 12:36:33.501] npm ERR! Windows_NT 6.1.7601
 [2016/11/29 12:36:33.502] npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start" "--" "--jsTestsDir" "../jstests"
 [2016/11/29 12:36:33.502] npm ERR! node v6.2.2
 [2016/11/29 12:36:33.502] npm ERR! npm  v3.9.5
 [2016/11/29 12:36:33.502] npm ERR! code ELIFECYCLE
 [2016/11/29 12:36:33.503] npm ERR! jstestfuzz@0.0.188 start: `node jstestfuzz.js "--jsTestsDir" "../jstests"`
 [2016/11/29 12:36:33.503] npm ERR! Exit status 1
 [2016/11/29 12:36:33.503] npm ERR!
 [2016/11/29 12:36:33.503] npm ERR! Failed at the jstestfuzz@0.0.188 start script 'node jstestfuzz.js "--jsTestsDir" "../jstests"'.
 [2016/11/29 12:36:33.503] npm ERR! Make sure you have the latest version of node.js and npm installed.
 [2016/11/29 12:36:33.503] npm ERR! If you do, this is most likely a problem with the jstestfuzz package,
 [2016/11/29 12:36:33.503] npm ERR! not with npm itself.
 [2016/11/29 12:36:33.503] npm ERR! Tell the author that this fails on your system:
 [2016/11/29 12:36:33.503] npm ERR!     node jstestfuzz.js "--jsTestsDir" "../jstests"
 [2016/11/29 12:36:33.503] npm ERR! You can get information on how to open an issue for this project with:
 [2016/11/29 12:36:33.504] npm ERR!     npm bugs jstestfuzz
 [2016/11/29 12:36:33.504] npm ERR! Or if that isn't available, you can get their info via:
 [2016/11/29 12:36:33.504] npm ERR!     npm owner ls jstestfuzz
 [2016/11/29 12:36:33.504] npm ERR! There is likely additional logging output above.
 [2016/11/29 12:36:33.510] npm ERR! Please include the following file with any support request:
 [2016/11/29 12:36:33.510] npm ERR!     C:\data\mci\967864f91a2597f61901b423180f7703\src\jstestfuzz\npm-debug.log
 [2016/11/29 12:36:33.520] Command failed: exit status 1

Comment by Githook User [ 29/Nov/16 ]

Author:

{u'username': u'DiannaHohensee', u'name': u'Dianna Hohensee', u'email': u'dianna.hohensee@10gen.com'}

Message: Revert "SERVER-27075 Link with hash-style=gnu when available"

This reverts commit 1834a0f8425a94cfee80cb212bf831bdac200934.
Branch: master
https://github.com/mongodb/mongo/commit/0edb03f021bad065d132f579d35fad21abf09212

Comment by Githook User [ 29/Nov/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: SERVER-27075 Link with hash-style=gnu when available
Branch: master
https://github.com/mongodb/mongo/commit/1834a0f8425a94cfee80cb212bf831bdac200934

Generated at Thu Feb 08 04:14:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.