1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-32841 Provide Innodb async IO statistics

Provide some statistics about asynchronous IO reads and writes:
 - number of pending operations
 - number of completion callbacks that are currently being executed
 - number of completion callbacks that are currently queued
   (due to restriction on number of IO threads)
 - total number of IOs finished
 - total time to wait for free IO slot
 - total number of completions that were queued.

Also revert tpool InnoDB perfschema instrumentation (MDEV-31048)
That instrumentation of cache mutex did not bring any revelation (
the mutex is taken for a couple of instructions), and made it impossible
to use tpool outside of the server (e.g in mariadbimport/dump)
This commit is contained in:
Vladislav Vaintroub
2024-01-09 10:47:33 +01:00
parent 374783c3d9
commit 01466adc13
9 changed files with 190 additions and 55 deletions

View File

@@ -5,6 +5,18 @@ AND variable_name NOT IN
'INNODB_MEM_ADAPTIVE_HASH',
'INNODB_BUFFERED_AIO_SUBMITTED','INNODB_BUFFER_POOL_PAGES_LATCHED');
variable_name
INNODB_ASYNC_READS_PENDING
INNODB_ASYNC_READS_TASKS_RUNNING
INNODB_ASYNC_READS_TOTAL_COUNT
INNODB_ASYNC_READS_TOTAL_ENQUEUES
INNODB_ASYNC_READS_QUEUE_SIZE
INNODB_ASYNC_READS_WAIT_SLOT_SEC
INNODB_ASYNC_WRITES_PENDING
INNODB_ASYNC_WRITES_TASKS_RUNNING
INNODB_ASYNC_WRITES_TOTAL_COUNT
INNODB_ASYNC_WRITES_TOTAL_ENQUEUES
INNODB_ASYNC_WRITES_QUEUE_SIZE
INNODB_ASYNC_WRITES_WAIT_SLOT_SEC
INNODB_BACKGROUND_LOG_SYNC
INNODB_BUFFER_POOL_DUMP_STATUS
INNODB_BUFFER_POOL_LOAD_STATUS