Browse Source
MDEV-14482 - Cache line contention on ut_rnd_interval()
MDEV-14482 - Cache line contention on ut_rnd_interval()
InnoDB RNG maintains global state, causing otherwise unnecessary bus
traffic. Even worse, this is cross-mutex traffic. That is, different
mutexes suffer from contention.
Fixed delay of 4 was verified to give best throughput by OLTP update
index and read-write benchmarks on Intel Broadwell (2/20/40) and
ARM (1/46/46).
This is a backport of ce04790065 from
MariaDB Server 10.3.
bb-10.2-MDEV-21335
5 changed files with 20 additions and 33 deletions
-
16mysql-test/suite/sys_vars/r/innodb_spin_wait_delay_basic.result
-
4mysql-test/suite/sys_vars/r/sysvars_innodb.result
-
4storage/innobase/handler/ha_innodb.cc
-
6storage/innobase/include/ib0mutex.h
-
23storage/innobase/sync/sync0rw.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue