Joe McDonnell has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/25149 )
Change subject: IMPALA-15585: Detect fast CLOCK_MONOTONIC on ARM ...................................................................... IMPALA-15585: Detect fast CLOCK_MONOTONIC on ARM In IMPALA-2407, Impala added logic to detect whether clock_gettime's CLOCK_MONOTONIC has a fast implementation. At the time, some clock implementations like Xen were very slow. To avoid the performance penalty, it uses CLOCK_MONOTONIC_COARSE when the clock source is not known to be fast. ARM has a fast clock source for CLOCK_MONOTONIC, but it is not being detected properly because it has a different name than x86_64. ARM currently uses CLOCK_MONOTONIC_COARSE, which makes profile time counters considerably less useful. This adds detection for the ARM fast time counter (arch_sys_counter) in addition to the x86_64 version (tsc). Testing: - Ran a perf-AB-test on ARM and verified that the profiles have more exact time values (without performance regression) Change-Id: I6512e5dbbb11c4816716deccce3c0e212f73cf33 Reviewed-on: http://gerrit.cloudera.org:8080/25149 Tested-by: Impala Public Jenkins <[email protected]> Reviewed-by: Yida Wu <[email protected]> Reviewed-by: Jason Fehr <[email protected]> --- M be/src/util/os-info.cc 1 file changed, 10 insertions(+), 3 deletions(-) Approvals: Impala Public Jenkins: Verified Yida Wu: Looks good to me, but someone else must approve Jason Fehr: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/25149 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I6512e5dbbb11c4816716deccce3c0e212f73cf33 Gerrit-Change-Number: 25149 Gerrit-PatchSet: 3 Gerrit-Owner: Joe McDonnell <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Yida Wu <[email protected]>
