New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPUTimer: switch to clock_gettime #4667
Conversation
A new Pull Request was created by @fwyzard (Andrea Bocci) for CMSSW_7_2_X. CPUTimer: switch to clock_gettime It involves the following packages: FWCore/Utilities @cmsbuild, @Degano, @Dr15Jones, @ktf, @nclopezo can you please review it and eventually sign? Thanks. |
Here is the speed and resolution of the real-time and cpu-time clocks used by CPUTimer, as measured by CMSSW 7.2.x on lxplus (SLC6, virtual machine)
CMSSW 7.1.1 on an HLT machine (SLC6, Sandy Bridge Xeon)
|
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes or unless it breaks tests. |
-1 Tested at: cc3b07d ---> test TestFWCoreServicesDriver had ERRORS you can see the results of the tests here: |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (but tests are reportedly failing). |
- switch from gettimeofday/getrusage to clock_gettime, with the same speed but better accuracy (at least on x86_64 Linux) - switch from clock_gettime(CLOCK_REALTIME) to clock_gettime(CLOCK_MONOTONIC) with a very similar performance, but conceptually more sound
Fixed (and tested) - sorry about that. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes or unless it breaks tests. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes or unless it breaks tests. |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_2_X IBs unless changes (tests are also fine). |
gettimeofday
/getrusage
toclock_gettime
, with the same speed but better accuracy (at least on x86_64 Linux)clock_gettime(CLOCK_REALTIME)
toclock_gettime(CLOCK_MONOTONIC)
, with a very similar performance, but conceptually more sound