Skip to content

Commit

Permalink
mysys: my_rdtsc note about ARM counter
Browse files Browse the repository at this point in the history
As reported in MariaDB/mariadb-docker#338
and later hardkernel/linux#423.

While modern kernels support this, it seems older hardware may be
stuck at kernel versions without this initialization.
  • Loading branch information
grooverdan committed Jan 5, 2022
1 parent d18f6f2 commit 4f4d958
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/my_rdtsc.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ C_MODE_START
ARM notes
---------
Userspace high precision timing on CNTVCT_EL0 requires that CNTKCTL_EL1
is set to 1 for each CPU in privileged mode.
During tests on ARMv7 Debian, perf_even_open() based cycle counter provided
too low frequency with too high overhead:
MariaDB [performance_schema]> SELECT * FROM performance_timers;
Expand Down

0 comments on commit 4f4d958

Please sign in to comment.