Make SHOW MUTEX STATUS more useful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona patches |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Can we make SHOW MUTEX STATUS more useful by default? As it currently is, it's just a good way to make your terminal scroll for 15 minutes.
mysql> SHOW MUTEX STATUS;
+------
| File | Line | OS_waits |
+------
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
| trx0trx.c | 147 | 0 |
... snip ....
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
...snip...
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 498 | 0 |
| buf0buf.c | 558 | 13908 |
| buf0buf.c | 556 | 233 |
| buf0buf.c | 552 | 232373 |
| buf0buf.c | 549 | 9926 |
| fil0fil.c | 1294 | 89451 |
| srv0start.c | 1211 | 0 |
| srv0start.c | 1204 | 0 |
| srv0start.c | 1182 | 0 |
| dict0mem.c | 90 | 0 |
| dict0mem.c | 90 | 0 |
| srv0srv.c | 962 | 2 |
| srv0srv.c | 959 | 13740566 |
| thr0loc.c | 232 | 163 |
| mem0pool.c | 204 | 0 |
| sync0sync.c | 1327 | 0 |
+------
3014975 rows in set (1.33 sec)
Can this be done in a hash table and pre-aggregated?
I think aggregating is non-sense... They are different mutex/lock. They cannot be compared with the other un-aggregated values.
Do you like "mutex status" of InnoDB Plugin or XtraDB?
It skips "0" items and block->mutex. It seems enough for me.