Bug #81899 | InnoDB: page_cleaner: 1000ms intended loop took 27876ms. The settings mig | ||
---|---|---|---|
Submitted: | 17 Jun 2016 6:54 | Modified: | 22 Jun 2016 18:41 |
Reporter: | igchang choi | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | MySQL Server | Severity: | S5 (Performance) |
Version: | 5.7.11 | OS: | CentOS (6.5) |
Assigned to: | CPU Architecture: | Any | |
Tags: | flush page option |
[17 Jun 2016 6:54]
igchang choi
[21 Jun 2016 17:14]
MySQL Verification Team
Hi! In order to get rid of that message you need to better tune InnoDB SE. This is a forum for reporting bugs with repeatable test cases. What you are asking for is a free support. This is not a free support forum. You can get free support in the MySQL groups on Facebook, Twitter and some other social networks. I can only tell you that you can set number of specialized threads in InnoDB.
[22 Jun 2016 18:41]
MySQL Verification Team
Actually, it turns out this is a duplicate of the bug # 76661.
[21 Oct 2016 20:19]
Dmitriy Dobrovolskiy
Have same issue And I really thinks in is not an ask for free support as this in produces by fresh mysql installed from oracle repo and then it produces this error mysql do not process requests and goes timeout. I have to roll back to 5.6 due to this issue PS innodb_buffer_pool_instances is 1 innodb_page_cleaners is 1 2016-10-21T18:45:38.712305Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4452ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.) 2016-10-21T18:45:52.569978Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4386ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.) 2016-10-21T18:47:52.403963Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 7081ms. The settings might not be optimal. (flushed=0 and evicted=0, during the time.)
[13 Nov 2016 10:25]
Brian Fenech
We experienced the same problem across various clients and found out that the problem was due to setting the value of innodb_lru_scan_depth from the default of 1024 to as low as 128. Although lowering the value reduces the time taken to process a transaction especially in write bound workloads I believe that setting the value too low would make the buffer pool to not able to keep up in clearing some of its buffers and buffer pool dirty pages. In our case we have seen a drastic improvement by increasing the value from 128 to 256 but the right value depends on the hardware and the type of load. The trick is to find the right value between increasing OLTP performance and letting MySQL keep the buffer pool clean as not to have the page_cleaner needing to do a lot of work as stated by the above message: "InnoDB: page_cleaner: 1000ms intended loop took *****ms" The value cane be changed dynamically without restarting MySQL e.g. SET GLOBAL innodb_lru_scan_depth=256;
[27 Sep 2017 13:54]
Jac Abraham
Encountering the same issue on v5.7.18. Tried setting innodb_buffer_pool_size to 80% of available RAM .. it didn't help. Then changed innodb_lru_scan_depth = 256. Didn't resolve this issue.