它说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)