当前位置:网站首页>MySQL is dirty
MySQL is dirty
2022-07-04 03:11:00 【AbtYee】
MySQL Brushwork
Generation of dirty pages
- When updating data , Only the data pages in memory are updated , No disk updates
- The data page in memory is inconsistent with the data page in disk , It's called dirty pages
Brushwork
- Save data pages in memory to disk
- meanwhile , Delete... Related to this page redo log, advance check point
Why brush dirty ?
- There are too many dirty pages in memory , Out of memory ( There will be performance problems )
- redo log The file is full , Need to advance check point( There will be performance problems )
- The system is idle , Brush dirty in advance , Prevent the above situation
- MySQL Before closing , Save the data
Avoid being forced to brush dirty
- Correctly inform InnoDB, Hard disk performance of the server
- Configure a reasonable upper limit of dirty pages
- control " Brush the dirt by the way " Strategy
The server IO To configure
- Configuration item :innodb_io_capacity
- It is used to inform the server of the hard disk performance
fio -filename=iotest_file -direct=1 -iodepth 1 -thread -rw=randrw -ioengine=psync -bs=16k -size=500M -numjobs=10 -runtime=10 -group_reporting -name=mytest
- common IOPS:(I/O per second)
- 7200 rpm SATA,70IOPS
- 10000 rpm FC,125IOPS
- SSD SATA,3000~4000IOPS
Configure a reasonable upper limit of dirty pages
- Configuration item :innodb_max_dirty_pages_pct: The ratio of the number of pages in the disk to the number of dirty pages
- When the dirty page ratio approaches this value , It will speed up the cleaning
- It is recommended to keep the default value 75
control " Brush the dirt by the way " Strategy
- Configuration item :innodb_flush_neighbors
- Traditional disks have the best continuous read and write performance , Try to brush consecutive pages
- SSD It is recommended to set 0(8.0 It has been acquiesced that 0)
边栏推荐
- Network communication basic kit -- IPv4 socket structure
- Basé sur... Netcore Development blog Project Starblog - (14) Implementation of theme switching function
- Contest3145 - the 37th game of 2021 freshman individual training match_ E: Eat watermelon
- GUI Graphical user interface programming (XIV) optionmenu - what do you want your girlfriend to wear on Valentine's day
- Practical multifunctional toolbox wechat applet source code / support traffic master
- Redis transaction
- Unity controls the selection of the previous and next characters
- Network byte order
- I stepped on a foundation pit today
- Global and Chinese market for travel wheelchairs 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
Package and download 10 sets of Apple CMS templates / download the source code of Apple CMS video and film website
I stepped on a foundation pit today
Www 2022 | taxoenrich: self supervised taxonomy complemented by Structural Semantics
Imperial cms7.5 imitation "D9 download station" software application download website source code
Buuctf QR code
Teach you how to optimize SQL
false sharing
The 37 year old programmer was laid off, and he didn't find a job for 120 days. He had no choice but to go to a small company. As a result, he was confused
AI 助力藝術設計抄襲檢索新突破!劉芳教授團隊論文被多媒體頂級會議ACM MM錄用
Johnson–Lindenstrauss Lemma
随机推荐
GUI Graphical user interface programming (XIV) optionmenu - what do you want your girlfriend to wear on Valentine's day
Solve the problem that the tabbar navigation at the bottom of vantui does not correspond to the page (window.loading.hash)
VRRP+BFD
ZABBIX API batch delete a template of the host
Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog
Add token validation in swagger
Contest3145 - the 37th game of 2021 freshman individual training match_ E: Eat watermelon
Bugku Zhi, you have to stop him
Li Chuang EDA learning notes IX: layers
Experience summary of the 12th Blue Bridge Cup (written for the first time)
[latex] production of complex tables: excel2latex and detail adjustment
The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
MySQL query
Unity knapsack system (code to center and exchange items)
1day vulnerability pushback skills practice (3)
1day vulnerability pushback skills practice (3)
SQL injection (1) -- determine whether there are SQL injection vulnerabilities
What are the conditions for the opening of Tiktok live broadcast preview?
[software implementation series] software implementation interview questions with SQL joint query diagram