当前位置:网站首页>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)
边栏推荐
- Talking about custom conditions and handling errors in MySQL Foundation
- Imperial cms7.5 imitation "D9 download station" software application download website source code
- Comment la transformation numérique du crédit d'information de la Chine passe - t - elle du ciel au bout des doigts?
- Is online futures account opening safe and reliable? Which domestic futures company is better?
- Record a problem that soft deletion fails due to warehouse level error
- Constantly changing harmonyos custom JS components during the Spring Festival - Smart Koi
- Contest3145 - the 37th game of 2021 freshman individual training match_ E: Eat watermelon
- System integration meets the three business needs of enterprises
- Handler source code analysis
- Jenkins configures IP address access
猜你喜欢

1day vulnerability pushback skills practice (3)

Cache general management class + cache httpcontext Current. Cache and httpruntime Differences between caches

false sharing

I stepped on a foundation pit today

Rhcsa day 2

No clue about the data analysis report? After reading this introduction of smartbi, you will understand!

Kiss number + close contact problem

There is no need to authorize the automatic dream weaving collection plug-in for dream weaving collection

I stepped on a foundation pit today

Problems and solutions of several concurrent scenarios of redis
随机推荐
7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
SQL injection (1) -- determine whether there are SQL injection vulnerabilities
How to use STR function of C language
Node solves cross domain problems
Johnson–Lindenstrauss Lemma
Unspeakable Prometheus monitoring practice
Problems and solutions of several concurrent scenarios of redis
Global and Chinese market of handheld melanoma scanners 2022-2028: Research Report on technology, participants, trends, market size and share
Hospital network planning and design document based on GLBP protocol + application form + task statement + opening report + interim examination + literature review + PPT + weekly progress + network to
Osnabrueck University | overview of specific architectures in the field of reinforcement learning
Is online futures account opening safe and reliable? Which domestic futures company is better?
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
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
WordPress collection WordPress hang up collection plug-in
Practical multifunctional toolbox wechat applet source code / support traffic master
What are the virtual machine software? What are their respective functions?
150 ppt! The most complete "fair perception machine learning and data mining" tutorial, Dr. AIST Toshihiro kamishima, Japan
Contest3145 - the 37th game of 2021 freshman individual training match_ J: Eat radish
Monitoring - Prometheus introduction
1day vulnerability pushback skills practice (3)