# Page cleaner took x ms to flush x pages

**URL:** https://forums.percona.com/t/page-cleaner-took-x-ms-to-flush-x-pages/17486
**Category:** Uncategorized
**Created:** [September 15, 2022, 12:18pm UTC](https://forums.percona.com/t/page-cleaner-took-x-ms-to-flush-x-pages/17486 "2022-09-15T12:18:29Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![danarashad](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@danarashad](https://forums.percona.com/u/danarashad)
#### Post date: [September 15, 2022, 12:18pm UTC](https://forums.percona.com/t/page-cleaner-took-x-ms-to-flush-x-pages/17486/1 "2022-09-15T12:18:29Z")

</div>

My log is filled with Page cleaner took 4471ms to flush 200 pages and I think this is causing stability issues with the node. Is there any setting I should change.

Here is my my.cnf file.

```
log-error=/var/log/mysql/error.log
default_storage_engine=InnoDB
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

innodb_buffer_pool_size = 20G
innodb_buffer_pool_instances = 8
innodb_lock_wait_timeout = 100 #default is 50 seconds
wait_timeout = 86400 #was 86400 defaut is 28800 seconds
interactive_timeout = 86400 #was 86400 default is 28800 seconds

max_heap_table_size = 96M
sort_buffer_size = 16M
join_buffer_size = 16M
tmp_table_size = 96M
max_sort_length = 8K

max_allowed_packet = 16M
group_concat_max_len = 16M
max_connections = 200
max_connect_errors = 10
max_binlog_size = 128M

log-bin=binlog
log_replica_updates

#Binary log expiration period is 604800 seconds, which equals 7 days
binlog_expire_logs_seconds=604800

wsrep_provider=/usr/lib/galera4/libgalera_smm.so
wsrep_provider_options="gcache.size = 5G; gcache.dir = /db2/cache"
wsrep_cluster_address=gcomm://192.168.2.59,192.168.2.60,192.168.2.62
binlog_format=ROW
wsrep_applier_threads=8
wsrep_log_conflicts
innodb_autoinc_lock_mode=2
wsrep_node_address=192.168.2.64
wsrep_cluster_name=Web-Cluster
pxc_strict_mode=PERMISSIVE

```

Any help would be appreciated.

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [September 15, 2022, 5:41pm UTC](https://forums.percona.com/t/page-cleaner-took-x-ms-to-flush-x-pages/17486/2 "2022-09-15T17:41:41Z")

</div>

Hello, those kind of messages are usually related to slow IO subsystem. I suggest you check your storage performance with PMM and/or pt-diskstats.

---

<div class="post-metadata">

### Author: ![danarashad](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@danarashad](https://forums.percona.com/u/danarashad)
#### Post date: [September 15, 2022, 6:19pm UTC](https://forums.percona.com/t/page-cleaner-took-x-ms-to-flush-x-pages/17486/3 "2022-09-15T18:19:00Z")

</div>

Ok thank you for the suggestion.

---

<div class="post-metadata">

### Author: ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)
#### Post date: [September 15, 2022, 6:46pm UTC](https://forums.percona.com/t/page-cleaner-took-x-ms-to-flush-x-pages/17486/4 "2022-09-15T18:46:51Z")

</div>

You can increase `innodb_io_capacity` to 400 and see if that helps.
