当前位置:网站首页>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)
边栏推荐
- Jenkins configures IP address access
- Backpropagation formula derivation [Li Hongyi deep learning version]
- what does ctrl + d do?
- Global and Chinese market of digital impression system 2022-2028: Research Report on technology, participants, trends, market size and share
- Slurm view node configuration information
- Bugku Zhi, you have to stop him
- static hostname; transient hostname; pretty hostname
- 7 * 24-hour business without interruption! Practice of applying multiple live landing in rookie villages
- C learning notes: C foundation - Language & characteristics interpretation
- Comment la transformation numérique du crédit d'information de la Chine passe - t - elle du ciel au bout des doigts?
猜你喜欢
3D game modeling is in full swing. Are you still confused about the future?
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
Unity controls the selection of the previous and next characters
I stepped on a foundation pit today
Ningde times and BYD have refuted rumors one after another. Why does someone always want to harm domestic brands?
In my spare time, I like to write some technical blogs and read some useless books. If you want to read more of my original articles, you can follow my personal wechat official account up technology c
Redis notes (I) Linux installation process of redis
Stm32bug [the project references devices, files or libraries that are not installed appear in keilmdk]
Backpropagation formula derivation [Li Hongyi deep learning version]
Redis transaction
随机推荐
Li Chuang EDA learning notes 13: electrical network for drawing schematic diagram
Kiss number + close contact problem
Site favorites
Design and implementation of redis 7.0 multi part AOF
@Scheduled scheduled tasks
[latex] production of complex tables: excel2latex and detail adjustment
1day vulnerability pushback skills practice (3)
Crawler practice website image batch download
Global and Chinese market for travel wheelchairs 2022-2028: Research Report on technology, participants, trends, market size and share
Latex tips slash \backslash
Mysql to PostgreSQL real-time data synchronization practice sharing
Cache general management class + cache httpcontext Current. Cache and httpruntime Differences between caches
Ai aide à la recherche de plagiat dans le design artistique! L'équipe du professeur Liu Fang a été embauchée par ACM mm, une conférence multimédia de haut niveau.
PMP 考試常見工具與技術點總結
Osnabrueck University | overview of specific architectures in the field of reinforcement learning
Pagoda SSL can't be accessed? 443 port occupied? resolvent
中電資訊-信貸業務數字化轉型如何從星空到指尖?
Sword finger offer:55 - I. depth of binary tree
Keepalived set the master not to recapture the VIP after fault recovery (it is invalid to solve nopreempt)
I stepped on a foundation pit today