[SERVER-5557] Timer class and curTime* on Linux are too slow. Created: 09/Apr/12  Updated: 24/Jul/18  Resolved: 26/Feb/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 2.2.0

Type: Improvement Priority: Major - P3
Reporter: Andy Schwerin Assignee: Andy Schwerin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux, all non-Windows.


Backwards Compatibility: Fully Compatible
Participants:

 Description   

currentTimeMillis, and the timer class use a get-time-of-day related syscall to find out what time it is. This is too slow for high performance timers.



 Comments   
Comment by Andy Schwerin [ 31/May/12 ]

The Timer class is remedied on Linux, and curTime* aren't causing regressions, so further work is postponed.

Comment by auto [ 23/Apr/12 ]

Author:

{u'login': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-5557: Higher performance timer on Linux.

Also supports systems that implement POSIX's clock_gettime() (i.e., FreeBSD).
Branch: master
https://github.com/mongodb/mongo/commit/84614c30a3cf272c6ca2a975421a445b026915c2

Comment by auto [ 19/Apr/12 ]

Author:

{u'login': u'andy10gen', u'name': u'Andy Schwerin', u'email': u'schwerin@10gen.com'}

Message: SERVER-5557: Rearrange mongo::Timer implementation, for clarity, code reuse.
Branch: master
https://github.com/mongodb/mongo/commit/d187a30e162ee2b4fb050916b5558f7825155281

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