时间:2021-07-01 10:21:17 帮助过:18人阅读
下面是部分输出:
show engine innodb status
--------
FILE I/O
--------
I/O thread 0 state: waiting for completed aio requests (insert buffer thread)
I/O thread 1 state: waiting for completed aio requests (log thread)
I/O thread 2 state: waiting for completed aio requests (read thread)
I/O thread 3 state: waiting for completed aio requests (read thread)
I/O thread 4 state: waiting for completed aio requests (read thread)
I/O thread 5 state: waiting for completed aio requests (read thread)
I/O thread 6 state: waiting for completed aio requests (write thread)
I/O thread 7 state: waiting for completed aio requests (write thread)
I/O thread 8 state: waiting for completed aio requests (write thread)
I/O thread 9 state: waiting for completed aio requests (write thread)
[mysqld]
innodb_purge_threads=1
从版本1.2开始,InnoDB支持多个Purge Thread,这样的目的是为了进一步加快undo页的回收。
通过下面命令可以查看InnoDB开启了多少个purge thread:
mysql> show variables like ‘innodb_purge_threads‘;
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| innodb_purge_threads | 0 |
+----------------------+-------+
1 row in set (0.00 sec)
可以看到我的没有配置purge thread为独立的线程。
InnoDB存储引擎——后台线程
标签:int cti size 数据结构 complete value span csdn buffer