SSD ?μ? MySQL IO ???????
???????????? ???????[ 2015/9/1 11:39:42 ] ?????????????
????5.6 ??? innodb_adaptive_flushing
?????????????£?
????SET GLOBAL innodb_adaptive_flushing = OFF;
??????????? MySQL ?????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 1500
????innodb_max_dirty_pages_pct 25
????innodb_adaptive_flushing OFF
????innodb_write_io_threads 4
????innodb_read_io_threads 4
?????????????????????????????????? innodb_adaptive_flushing?????? MySQL ?????????????????????????????????????????? I/O ???????????????????Ч??
????5.7 ?? innodb_adaptive_flushing
?????????????£?
????SET GLOBAL innodb_adaptive_flushing = ON;
??????????? MySQL ?????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 1500
????innodb_max_dirty_pages_pct 25
????innodb_adaptive_flushing ON
????innodb_write_io_threads 4
????innodb_read_io_threads 4
???????????????????? innodb_adaptive_flushing ???Ч??????????????????????????????????eɡ?
????5.8 ???? innodb_max_dirty_pages_pct = 20
?????????????????
??????????? MySQL ?????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 1500
????innodb_max_dirty_pages_pct 20
????innodb_adaptive_flushing ON
????innodb_write_io_threads 4
????innodb_read_io_threads 4
????????????? innodb_max_dirty_pages_pct ?μ?? 20???????????????????? InnoDB Buffer Pool ????? 40G??20% ??? 8G????????????????????????????????????Ч?????????????????????Ч????????????????
????5.9 ???? innodb_io_capacity = 1000
?????????????????
??????????? MySQL ?????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 1000
????innodb_max_dirty_pages_pct 20
????innodb_adaptive_flushing ON
????innodb_write_io_threads 4
????innodb_read_io_threads 4
???????????????????????????????????? IO?????????????Щ????????? innodb_io_capacity ????? 1000???????????? I/O until ????? 10% ?????????????????????????
???????????????????????????????????????
????6?? ?????л???????
??????????壬?賿 1 ???????????з??????л????л??????????????????????
????6.1 ???? innodb_max_dirty_pages_pct = 30??innodb_io_capacity = 1500
?????????????????
??????????? MySQL ?????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 1500
????innodb_max_dirty_pages_pct 30
????innodb_adaptive_flushing ON
????innodb_write_io_threads 4
????innodb_read_io_threads 4
?????? innodb_io_capacity ? 1000??innodb_max_dirty_pages_pct ? 20 ??????£?I/O until ??С?????????????????????????棬????????????????????innodbBuffPoolPagesFlushed ?????????? innodbBuffPoolPagesDirty ???????????????????????????????μ?????innodb_max_dirty_pages_pct = 30??innodb_io_capacity = 1500??????????innodbBuffPoolPagesDirty ?????????I/O until ?????????
????6.2 ???? innodb_max_dirty_pages_pct = 40??innodb_io_capacity = 2000
?????????????????
??????????? MySQL ?????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 2000
????innodb_max_dirty_pages_pct 40
????innodb_adaptive_flushing ON
????innodb_write_io_threads 4
????innodb_read_io_threads 4
????????????? I/O ????????????μ?????innodb_max_dirty_pages_pct = 40??innodb_io_capacity = 2000??
????6.3 ????
??????????????????????????????????????????? I/O ????
???????????????????????????????????????
??????? ??????????????
??????????????????????????????
??????? ?????????????????
????28 ???? 8 ?????? 7 ?????????????????????????е????????????????????????????????????????????????????????????? innodb_max_dirty_pages_pct ?????innodb_buffer_pool_size ? 40G??innodb_max_dirty_pages_pct ? 40%???????????е????????? 16G????? Page 16K???? innodbBufferPoolDirtyPages ??? 1000K???????????????????????????????????????????е??????
???????????????
????innodb_buffer_pool_size 42949672960
????innodb_log_file_size 1342177280
????innodb_io_capacity 2000
????innodb_max_dirty_pages_pct 40
????innodb_adaptive_flushing ON
????innodb_write_io_threads 4
????innodb_read_io_threads 4
????7??С??
?????????? SSD ??? MySQL InnoDB ???????????????????????????????
????????? I/O ????????
???????? I/O ???????????? innodb_io_capacity ?? innodb_max_dirty_pages_pct??
??????????? innodb_adaptive_flushing????Ч????
??????? innodb_write_io_threads ?? innodb_read_io_threads ???????????????????????????? 8 ???? 16???? I/O ???????á?
???????У??????????????
????????????????????о????????????????????????????????κε?????????????????????????????в??????????????????Σ?
?????κ?????????????????????????????????????????????????????
??????????????????????????????????????????????????1???????????????????????????????
???????????????????????????????????? SSDB??SSDB ?????? Google ?? LevelDB??????? Redis Э?顣LevelDB ?????????????? SSD ??????????????????????????????д????Σ???????????????????????λ?ò????д??????SSDB ???????????????????????????????????????????????? SSDB ????? SSD ??ɡ?
????8???ο?
????MySQL ????? 8.5 Optimizing for InnoDB Tables
??????????????pachosting.hk??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11