mariadb/storage/innobase/sync
Marko Mäkelä 807bfd05d8 MDEV-39040 log_sys.latch performance lost to PERFORMANCE_SCHEMA
log_sys.latch: Remove the PERFORMANCE_SCHEMA instrumentation.
We already know that this is a very busy latch. All code paths
where a shared log_sys.latch is being held should already be
highly optimized. The few paths where an exclusive log_sys.latch
is being held are known to be potentially problematic, but rare.

Removing the PERFORMANCE_SCHEMA instrumentation for this latch
is expected to improve performance. On a quick Sysbench run with

	performance_schema_instrument=wait/synch/rwlock/%=on

I observed an 2.9% improvement on throughput.

srw_lock_debug_simple: A non-instrumented version of srw_lock_debug,
to allow PERFORMANCE_SCHEMA to work WITH_INNODB_EXTRA_DEBUG=ON.

Reviewed by: Alessandro Vetere
2026-03-19 14:18:01 +02:00
..
cache.cc MDEV-35566 Ensure compatibility with ARMv9 by updating .arch directive 2025-08-15 09:47:40 +03:00
srw_lock.cc MDEV-39040 log_sys.latch performance lost to PERFORMANCE_SCHEMA 2026-03-19 14:18:01 +02:00