为什么Innodb的Innodb_dblwr_pages_write不等于Innodb_pages_write?

时间:2019-09-18 07:18:19

标签: mysql

它说Mysql innodb的“ Innodb_dblwr_pages_writing”始终等于“ Innodb_pages_write”,但看起来却不一样。为什么?

MySQL版本:

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.7.17    |
+-----------+
1 row in set (0.00 sec)

我的doublewrite已打开:

mysql> show global variables like '%innodb_doublewrite%';
+--------------------+-------+
| Variable_name      | Value |
+--------------------+-------+
| innodb_doublewrite | ON    |
+--------------------+-------+
1 row in set (0.01 sec)

值如下:

mysql> show status like '%Innodb_dblwr_pages_written%';
+----------------------------+-------+
| Variable_name              | Value |
+----------------------------+-------+
| Innodb_dblwr_pages_written | 2     |
+----------------------------+-------+
1 row in set (0.00 sec)

mysql> show status like '%Innodb_pages_written%';
+----------------------+-------+
| Variable_name        | Value |
+----------------------+-------+
| Innodb_pages_written | 46    |
+----------------------+-------+
1 row in set (0.00 sec)

mysql> show status like '%innodb_buffer_pool_pages_flushed%';
+----------------------------------+-------+
| Variable_name                    | Value |
+----------------------------------+-------+
| Innodb_buffer_pool_pages_flushed | 46    |
+----------------------------------+-------+
1 row in set (0.00 sec)

参考: enter image description here

0 个答案:

没有答案