Innodb_current_row_locks shows very high but other Innodb_* looks normal
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | |||
5.5 |
Expired
|
Undecided
|
Unassigned | |||
5.6 |
Expired
|
Undecided
|
Unassigned | |||
5.7 |
Expired
|
Undecided
|
Unassigned |
Bug Description
Running SHOW GLOBAL STATUS shows that Innodb_
Innodb_
However, the other Innodb_* values looks normal and are not super high in comparison with Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_data_fsyncs 2197879
Innodb_
Innodb_
Innodb_
Innodb_data_read 10789720064
Innodb_data_reads 659042
Innodb_data_writes 19080736
Innodb_data_written 394192715776
Innodb_
Innodb_dblwr_writes 175755
Innodb_deadlocks 0
Innodb_dict_tables 680
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_ibuf_merges 63621
Innodb_
Innodb_ibuf_size 1
Innodb_log_waits 0
Innodb_
Innodb_log_writes 7658005
Innodb_lsn_current 805657508770
Innodb_lsn_flushed 805657505972
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_max_trx_id 753654949
Innodb_
Innodb_
Innodb_mem_total 3306160128
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_page_size 16384
Innodb_
Innodb_pages_read 658418
Innodb_
Innodb_purge_trx_id 753654927
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_rows_deleted 6112984
Innodb_
Innodb_rows_read 36552938
Innodb_rows_updated 1313482
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Innodb_
Uptime is not so long as well having,
Uptime 1411925
i.e. 16.3 days.
Innodb_
"Number of current row locks on InnoDB tables as shown in the TRANSACTIONS section of the SHOW ENGINE INNODB STATUS output. Renamed from InnoDB_
Wondering what happened how come it's so very high.
Version used is actually PXC (5.5.34-log Percona XtraDB Cluster (GPL), wsrep_23.
Tried to reproduce with 5.5.36 and sysbench but unable to find high value.
Can you provide more specific steps or instructions on how to repeat?
nilnandan@ nilnandan- Dell-XPS: ~/sandboxes/ msb_5_5_ 36$ sysbench --test=oltp --oltp- table-size= 1000000 --oltp- test-mode= complex --oltp- read-only= off --num-threads=12 --max-time=60 --max-requests=0 --mysql-db=dbtest --mysql- user=msandbox --mysql- password= msandbox --mysql- socket= /tmp/mysql_ sandbox5536. sock run
sysbench 0.4.12: multi-threaded system evaluation benchmark
No DB drivers specified, using mysql
Running the test with following options:
Number of threads: 12
Doing OLTP test.
Running mixed OLTP test
Using Special distribution (12 iterations, 1 pct of values are returned in 75 pct cases)
Using "BEGIN" for starting transactions
Using auto_inc on the id column
Threads started!
Time limit exceeded, exiting...
(last message repeated 11 times)
Done.
OLTP test statistics:
queries performed:
read: 798140
write: 285050
other: 114020
total: 1197210
transactions: 57010 (950.12 per sec.)
deadlocks: 0 (0.00 per sec.)
read/write requests: 1083190 (18052.33 per sec.)
other operations: 114020 (1900.25 per sec.)
Test execution summary:
total time: 60.0028s
total number of events: 57010
total time taken by event execution: 719.4837
per-request statistics:
min: 3.15ms
avg: 12.62ms
max: 445.79ms
approx. 95 percentile: 27.68ms
Threads fairness:
events (avg/stddev): 4750.8333/12.42
execution time (avg/stddev): 59.9570/0.00
nilnandan@ nilnandan- Dell-XPS: ~/sandboxes/ msb_5_5_ 36$
During test, it was 4,6 and after test it become 0.
Innodb_ current_ row_locks | 4 current_ row_locks | 6 current_ row_locks | 0
Innodb_
Innodb_