当前位置:网站首页>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)
边栏推荐
- [untitled] the relationship between the metauniverse and digital collections
- [untitled]
- 3D game modeling is in full swing. Are you still confused about the future?
- Dans la recherche de l'intelligence humaine ai, Meta a misé sur l'apprentissage auto - supervisé
- I stepped on a foundation pit today
- what does ctrl + d do?
- Comment la transformation numérique du crédit d'information de la Chine passe - t - elle du ciel au bout des doigts?
- How to use STR function of C language
- static hostname; transient hostname; pretty hostname
- ZABBIX API pulls the values of all hosts of a monitoring item and saves them in Excel
猜你喜欢
Command Execution Vulnerability - command execution - vulnerability sites - code injection - vulnerability exploitation - joint execution - bypass (spaces, keyword filtering, variable bypass) - two ex
I stepped on a foundation pit today
Solve the problem that the tabbar navigation at the bottom of vantui does not correspond to the page (window.loading.hash)
Buuctf QR code
I stepped on a foundation pit today
[Yugong series] February 2022 attack and defense world advanced question misc-84 (MySQL)
Stm32bug [the project references devices, files or libraries that are not installed appear in keilmdk]
Kiss number + close contact problem
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
MySQL workbench use
随机推荐
Pagoda SSL can't be accessed? 443 port occupied? resolvent
Baijia forum the founding of the Eastern Han Dynasty
The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
Lichuang EDA learning notes 14: PCB board canvas settings
Osnabrueck University | overview of specific architectures in the field of reinforcement learning
2022 registration examination for safety production management personnel of fireworks and firecracker production units and examination skills for safety production management personnel of fireworks an
[database I] database overview, common commands, view the table structure of 'demo data', simple query, condition query, sorting data, data processing function (single row processing function), groupi
Optimization theory: definition of convex function + generalized convex function
Crawler practice website image batch download
Have you entered the workplace since the first 00???
How to use websocket to realize simple chat function in C #
Zblog collection plug-in does not need authorization to stay away from the cracked version of zblog
中電資訊-信貸業務數字化轉型如何從星空到指尖?
Setting methods, usage methods and common usage scenarios of environment variables in postman
C learning notes: C foundation - Language & characteristics interpretation
2022 examination summary of quality controller - Equipment direction - general basis (quality controller) and examination questions and analysis of quality controller - Equipment direction - general b
Unspeakable Prometheus monitoring practice
PID of sunflower classic
POSTECH | option compatible reward reverse reinforcement learning
Leetcode 110 balanced binary tree