Joe McDonnell has uploaded this change for review. ( 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 --- M be/src/util/os-info.cc 1 file changed, 10 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/49/25149/1 -- 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: newchange Gerrit-Change-Id: I6512e5dbbb11c4816716deccce3c0e212f73cf33 Gerrit-Change-Number: 25149 Gerrit-PatchSet: 1 Gerrit-Owner: Joe McDonnell <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
