powered by simpleCommunicator - 2.0.61     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / MySQL [игнор отключен] [закрыт для гостей] / MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
5 сообщений из 5, страница 1 из 1
MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
    #39338919
darkfox
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Вопрос что называется в лоб.

Вот такие сообщения возникают при загрузке больших объёмов из дампов, с нуля, либо через load infile или при Mysql_upgrade 5.7
После чего нагрузка на ресурсы резко падает и процесс загрузки/апгрейда начинает дико тупить.

2016-11-01T10:44:31.206025Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 5904ms. The settings might not be optimal. (flushed=74, during the time.)
2016-11-01T10:45:17.232637Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4674ms. The settings might not be optimal. (flushed=116, during the time.)
2016-11-01T10:45:32.572635Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4981ms. The settings might not be optimal. (flushed=91, during the time.)
2016-11-01T10:46:00.043937Z 0 [Note] InnoDB: page_cleaner: 1000ms intended loop took 4006ms. The settings might not be optimal. (flushed=303, during the time.)



my.cnf
Код: plsql
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
[mysqld]

tmp_table_size              = 1G
max_tmp_tables              = 32

skip-external-locking
bind-address            = 0.0.0.0

# * Fine Tuning
max_allowed_packet      = 1G
thread_stack            = 256K
thread_cache_size       = 256

auto-increment-increment = 1
auto-increment-offset    = 1

max_connections         = 200
max_connect_errors      = 100
wait_timeout            = 10
net_read_timeout        = 30
net_write_timeout       = 30
back_log                = 128
max_heap_table_size     = 2G
myisam_sort_buffer_size = 2G
concurrent_insert = 1
low-priority-updates = 0
myisam_max_sort_file_size= 2G

# * Query Cache Configuration
query_cache_limit       = 28M
query_cache_size        = 512M

open-files-limit = 40000

# * Logging and Replication
log-error = /var/log/mysql/error.log
read_rnd_buffer_size = 256M
log-slow-admin-statements = 1

# Here you can see queries with especially long duration
long_query_time         = 2
log-queries-not-using-indexes


server-id               = 100110
log_bin                 = /var/lib/mysql/mysql-bin
log_slave_updates       = false
expire_logs_days        = 5
max_binlog_size         = 100M
binlog_format           = ROW
sync_binlog             = 0


# * InnoDB

innodb_buffer_pool_size         = 4G
innodb_log_file_size            = 5M
innodb_data_file_path           = ibdata1:10M:autoextend
innodb_flush_log_at_trx_commit  = 1
innodb_flush_method             = O_DIRECT
innodb_log_buffer_size          = 32M
innodb_thread_concurrency       = 32

innodb_file_per_table           = 1
innodb_log_files_in_group       = 2
innodb_force_recovery           = 0
innodb_support_xa               = 0

# tuning
innodb_purge_threads            = 4
flush                           = 1
flush_time                      = 10
innodb_flush_log_at_trx_commit  = 0
innodb_max_dirty_pages_pct      = 90
innodb_max_dirty_pages_pct_lwm  = 0

innodb_log_buffer_size          = 3M # equals half of innodb_log_file_size


...
Рейтинг: 0 / 0
MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
    #39339115
miksoft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
darkfox,

Сколько оперативки? Точные версии и разрядность ОС и MySQL ?
...
Рейтинг: 0 / 0
MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
    #39339146
miksoft
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
darkfox,

Код: sql
1.
2.
3.
4.
5.
innodb_flush_log_at_trx_commit  = 0
innodb_flush_log_at_trx_commit  = 1
...
innodb_log_buffer_size          = 32M
innodb_log_buffer_size          = 3M # equals half of innodb_log_file_size

Вы уж определитесь...
...
Рейтинг: 0 / 0
MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
    #39339212
darkfox
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
miksoftdarkfox,

Код: sql
1.
2.
3.
4.
5.
innodb_flush_log_at_trx_commit  = 0
innodb_flush_log_at_trx_commit  = 1
...
innodb_log_buffer_size          = 32M
innodb_log_buffer_size          = 3M # equals half of innodb_log_file_size

Вы уж определитесь...
Намек понял, пошёл вдумчиво читать документацию.
...
Рейтинг: 0 / 0
MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
    #39339213
darkfox
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
miksoftdarkfox,

Сколько оперативки? Точные версии и разрядность ОС и MySQL ?

Виртуалка на AWS, m4.2xlarge: 8core/32GB RAM/SSD EBS
...
Рейтинг: 0 / 0
5 сообщений из 5, страница 1 из 1
Форумы / MySQL [игнор отключен] [закрыт для гостей] / MySQL 5.7: InnoDB: page_cleaner: 1000ms The settings might not be optimal
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]