当前位置:网站首页>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 边栏推荐
- Ice, protobuf, thrift -- Notes
- Section VI UART of zynq
- asp. Net datalist to display product information and pictures
- 挖财注册开户靠谱吗?安全吗?
- Flex layout
- Study notes 22/1/11
- Host is not allowed to connect to this MySQL server
- Ambari (VIII) --- ambari integrated impala document (valid for personal test)
- sql分析(查询截取分析做sql优化)
- 7-2 Finnish wooden chess structure Sorting
猜你喜欢

Cloud native: cloud computing technology is upgraded again to open an era of comprehensive cloud development

kubernetes集群命令行工具kubectl

Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)

SOC serial port configuration

【js】-【DFS、BFS应用】-学习笔记

Configuring MySQL multi instance master-slave synchronization for Linux

flex布局

Static resource compression reduces bandwidth pressure and increases access speed

asp. Net datalist when there are multiple data displays

Soft test -- software designer -- database design of afternoon questions
随机推荐
Installing redis on Linux
券商注册开户靠谱吗?安全吗?
A single node obtains the lock lock of the order number
asp. Net datalist to display product information and pictures
SOC serial port configuration
SQL master-slave replication setup
软件测试与质量期末复习
HJ delete the character with the least number of occurrences in the string
Airflow2 configuration windows azure SSO details based on oauth2 protocol
Ambari (V) ---ambari integrated Azkaban (valid for personal test)
Spark 离线开发框架设计与实现
flex布局
Section VI UART of zynq
Study notes 22/1/11
分析 NFT 项目的 5 个指标
Kubelet garbage collection (exiting containers and unused images) source code analysis
ACM笔记
sql主從複制搭建
HJ质数因子
Generation and verification of JWT token