当前位置:网站首页>Buffer pool in MySQL
Buffer pool in MySQL
2022-06-28 07:56:00 【star++】
summary
innodb The storage engine loads data in page units . When we add, delete, and modify a table ,mysql Will find the corresponding table space , Find the segment according to the index , Find the page or area according to the segment , And then 16k The whole page of data is loaded into memory , Then modify the records in the page , Save to disk . Actually, this is not the case , The last step is not to write back to the disk immediately , It's about writing first Buffer Pool in , When the time comes , Will be unified to brush the disk , such mysql Can save some io operation , Especially hot data that is frequently operated . In other words, data modification is temporarily written to memory (Buffer Pool) Of , In fact, there will be persistence problems , Follow up discussion redo,undo The log details how to solve the persistence problem .
Buffer Pool principle

1. To cache pages in memory , When the system starts, a certain amount of continuous memory space will be allocated , This space will
Cut it into n and 16k Page of , The control block is not counted in it .
2. To distinguish between blank cache pages and modified dirty pages , Two lists are opened. One is free Linked list and flush Linked list
When a cache page is occupied by data, it will start from free List removal , At the same time insert into flush Linked list
3. To improve cache hit rate , Have a LUR Linked list , If a page is accessed , Then it will be referred to the head node ,
such 边栏推荐
- Explanation and application of instr() function in Oracle
- [JS] - [DFS, BFS application] - learning notes
- asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...
- es数据导出csv文件
- Ambari (VI) -- ambari API use
- SQL Master slave Replication Build
- 7-2 Finnish wooden chess structure Sorting
- HJ string sort
- Rediscluster cluster mode capacity expansion node
- 同花顺注册开户靠谱吗?安全吗?
猜你喜欢

GoLand IDE and delve debug Go programs in kubernetes cluster

你了解TCP协议吗(二)?

Disposition Flex

Three step problem of leetcode

Redis persistence problem and final solution

SQL Master slave Replication Build

推荐系统系列精讲(第五讲): 排序模型的调优实践

asp. Net upload image path and image name

The solution of "user account control to continue, please enter administrator user name and password" appears in win10 Professional Edition

Host is not allowed to connect to this MySQL server
随机推荐
Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
Idea package together, using compact middle packages to solve &
Ambari (VIII) --- ambari integrated impala document (valid for personal test)
Study notes 22/1/18
kubernetes集群命令行工具kubectl
Implementation of commit message standardized control in large projects
Spark 离线开发框架设计与实现
asp. Net to search products and realize paging function
8 figures | analyze Eureka's first synchronization registry
Porting ucosiii to stm32f429
flex布局
HJ进制转换
Co process, asyncio, asynchronous programming
Section 9: dual core startup of zynq
Ice - resources
券商注册开户靠谱吗?安全吗?
HJ character count
Leetcode learning records
HJ字符串排序
Airflow2.1.1 summary of the pits stepped on in actual combat!!