We use a 3 node Galera cluster with version 5.5.41-MariaDB-wsrep
MariaDB [(none)]> show engine innodb mutex;
+--------+---------------------------------+------------------+
| Type | Name | Status |
+--------+---------------------------------+------------------+
| InnoDB | &table->autoinc_mutex | os_waits=1 |
| InnoDB | &table->autoinc_mutex | os_waits=1 |
| InnoDB | &table->autoinc_mutex | os_waits=1 |
| InnoDB | &purge_sys->bh_mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=6 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=6 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=6 |
| InnoDB | &rseg->mutex | os_waits=5 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=5 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=4 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &rseg->mutex | os_waits=3 |
| InnoDB | &rseg->mutex | os_waits=1 |
| InnoDB | &rseg->mutex | os_waits=2 |
| InnoDB | &ibuf_mutex | os_waits=2548 |
| InnoDB | &ibuf_pessimistic_insert_mutex | os_waits=38 |
| InnoDB | &dict_sys->mutex | os_waits=3 |
| InnoDB | &trx_doublewrite->mutex | os_waits=809 |
| InnoDB | &recv_sys->mutex | os_waits=38 |
| InnoDB | &log_sys->log_flush_order_mutex | os_waits=79 |
| InnoDB | &log_sys->mutex | os_waits=21578 |
| InnoDB | &buf_pool->flush_list_mutex | os_waits=3833 |
| InnoDB | &buf_pool->free_list_mutex | os_waits=3 |
| InnoDB | &buf_pool->LRU_list_mutex | os_waits=4667 |
| InnoDB | &buf_pool->mutex | os_waits=22 |
| InnoDB | &fil_system->mutex | os_waits=435 |
| InnoDB | &kernel_mutex | os_waits=19340 |
| InnoDB | combined &block->mutex | os_waits=846 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=14 |
| InnoDB | &new_index->lock | os_waits=27 |
| InnoDB | &new_index->lock | os_waits=13 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=4 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=16 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=4 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=14 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=3 |
| InnoDB | &new_index->lock | os_waits=9 |
| InnoDB | &new_index->lock | os_waits=3 |
| InnoDB | &new_index->lock | os_waits=7 |
| InnoDB | &new_index->lock | os_waits=4 |
| InnoDB | &new_index->lock | os_waits=17 |
| InnoDB | &new_index->lock | os_waits=47 |
| InnoDB | &new_index->lock | os_waits=92 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=36 |
| InnoDB | &new_index->lock | os_waits=4 |
| InnoDB | &new_index->lock | os_waits=4 |
| InnoDB | &new_index->lock | os_waits=4 |
| InnoDB | &new_index->lock | os_waits=100 |
| InnoDB | &new_index->lock | os_waits=8 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=3 |
| InnoDB | &new_index->lock | os_waits=3 |
| InnoDB | &new_index->lock | os_waits=2 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=15 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=7 |
| InnoDB | &new_index->lock | os_waits=25 |
| InnoDB | &new_index->lock | os_waits=11 |
| InnoDB | &new_index->lock | os_waits=3 |
| InnoDB | &new_index->lock | os_waits=1 |
| InnoDB | &new_index->lock | os_waits=242 |
| InnoDB | &purge_sys->latch | os_waits=5 |
| InnoDB | &new_index->lock | os_waits=21739 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=61 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=27 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=1 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=7 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=1 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=4 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=4 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=30 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=3 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=17 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=3 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=1 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=76 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=1 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=25 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=3 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=63 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=1 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=16 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=1 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=6 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=11 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=17 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=17 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=13 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=2 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=9 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=4 |
| InnoDB | &dict_table_stats_latches[i] | os_waits=11 |
| InnoDB | &dict_operation_lock | os_waits=7 |
| InnoDB | &space->latch | os_waits=261 |
| InnoDB | &log_sys->checkpoint_lock | os_waits=463904 |
| InnoDB | &btr_search_latch_arr[i] | os_waits=1051300 |
| InnoDB | &buf_pool->page_hash_latch | os_waits=5543 |
| InnoDB | combined &block->lock | os_waits=390124 |
+--------+---------------------------------+------------------+
219 rows in set (0.01 sec)
Howto interpret and diagnose this output? Is this a healthy DB? I found no explanations howto read this table.
With what other data I need to correlate this values?
memory on all 3 nodes
# free -h
total used free shared buff/cache available
Mem: 3.7G 529M 272M 155M 2.9G 2.8G
Swap: 2.0G 134M 1.9G
We use HAProxy that writes and read only to one node.
See Gist for SHOW VARIABLES
and SHOW GLOBAL STATUS
output.
SHOW VARIABLES;
and/orSHOW GLOBAL STATUS;
to understand the scale. Can you provide such in a postit/postbin/whatever page? Also, how much RAM? Are you writing to all nodes? Or pretending it is Master+Slaves? How far apart (in milliseconds) are the nodes? – Rick James May 31 '16 at 2:10