当前位置:网站首页>mysql刷脏的几种场景以及相关参数
mysql刷脏的几种场景以及相关参数
2022-07-30 17:35:00 【陈平安】
1.什么是刷脏
2.刷脏的场景
- 1.redolog日志满
- 2.bufferpool满
- 3.间歇性flush
- 4.关闭实例flush
3.刷脏频率跟什么参数有关?
- 实时刷脏算法 主要与如下参数有关: Innodb_io_capcity 是代表全力刷脏的速度 Innodb_max_dirty_pages_pct 代表默认脏页最大占比 Innodb_buffer_pool_pages_dirty / Innodb_buffer_pool_pages_total :当前脏页占比 log_lsn_current - log_lsn_checkpoint:差值代表没有刷脏的数据量
flush_dirty_ratio = innodb_io_capacity * R%
R = Max(f1,f2)
f1:
M = Innodb_buffer_pool_pages_dirty / Innodb_buffer_pool_pages_total
if M >= Innodb_max_dirty_pages_pct then
return 100
return 100*M/innodb_max_dirty_pages_pct
f2:
x = log_lsn_current - log_lsn_checkpoint
f2 = F(x) (f2: 0-100)
边栏推荐
猜你喜欢
[Geek Challenge 2020] Roamphp1-Welcome
测试.net文字转语音模块System.Speech
知识蒸馏3:YOLOV5项目准备
FastJson反序列化漏洞(复现)
Py程序员的七夕情人节
Tensorflow中实现正则化
Excel导入和导出
Daily practice------Generate 13-digit bar, Ean-13 code rule: The thirteenth digit is the check code obtained by the calculation of the first twelve digits.
从零开始的Multi-armed Bandit
LeetCode318:单词长度的最大乘积
随机推荐
Google earth engine如何实现我们时间列表的排列和选取
论文阅读之《Color Constancy Using CNNs》
Servo System of Hydraulic Steering Gear Based on Fuzzy PID
JMeter笔记3 | JMeter安装和环境说明
Daily practice------Generate 13-digit bar, Ean-13 code rule: The thirteenth digit is the check code obtained by the calculation of the first twelve digits.
数据库系统原理与应用教程(065)—— MySQL 练习题:操作题 62-70(九):分组查询与子查询
公司部门来了个00后测试卷王之王,老油条表示真干不过,已经...
UE5第一人称射击游戏蓝图教程
华为无线设备配置Mesh业务
KDD‘21推荐系统离散特征表征无embedding table Learning to Embed Categorical Features without Embedding Tables for
数据库系统原理与应用教程(069)—— MySQL 练习题:操作题 95-100(十三):分组查询与聚合函数的使用
(18)[系统调用]追踪系统调用(服务表)
记者卧底
微信小程序picker滚动选择器使用详解
Error occurred while trying to proxy request项目突然起不来了
华为无线设备Mesh配置命令
X射线的应用是什么?
浅谈在线编辑器中增量编译技术的应用
C陷阱与缺陷 第7章 可移植性缺陷 7.1 应对C语言标准变更
Logback的使用