当前位置:网站首页>GBASE 8s 共享内存缓冲池介绍
GBASE 8s 共享内存缓冲池介绍
2022-04-23 01:17:00 【八珍豆腐】
| Shared Mem Header |
||||
| LRU Queues |
Lock Table |
Buffer-header Table |
Logical log Buffer |
Physical log Buffer |
| Buffer pool |
||||
共享内存常驻段包含以下几个部分:
Shared Mem Header 共享内存头
共享内存头包含了共享内存其他部分的信息,且包括指向各部分的指针。当虚拟处理器首次连接到共享内存时,它会对共享内存头进行访问,读取个部分的位置信息以便引导到其他部分。
LRU Queues 最近最久未使用页面置换算法队列
LRU:最近最久未使用页面置换算法。指的是当CPU想要调用某一页时,此页若不在内存中,操作系统会以一定的算法来决定将哪一页调出内存,以空出空间将需求页调入内存。页面调度算法有先进先出调度算法、随机调度算法、最近最少使用调度算法等。
Lock Table 锁表
LOCK TABLE 语句可以用来锁定表、表分区或表子分区,以实现进程对共享内存的互斥访问。锁占用的内存区域在数据库启动时已经确定,使用常驻内存段部分的内存。当锁资源不够用时,虚拟服务器将在虚拟内存段自动扩展新的锁。
GBASE 8s中的锁定可以分为几类:
1、DML lock(data lock)
2、DDL lock(dictionary lock)
3、internal lock/latch
Buffer-header Table 缓冲池头表
每个缓冲池也会有头指针指向其首地址,而缓冲池头表就用来存储所有缓冲池的头指针地址,其作用更像是用于缓冲池的索引表。
Logical log Buffer 逻辑日志缓冲区
逻辑日志缓冲区用来将数据库处理过程中生成的逻辑日志缓存在内存中,在某一特定事件发生后,再一次性写入逻辑日志文件,通过逻辑日志缓存可以有效减少I/O次数,提高逻辑日志写入性能。
Physical log Buffer 物理日志缓冲区
物理日志缓冲区用来将数据库处理过程中生成的物理日志缓存在内存中,在某一特定事件发生后,再一次性写入物理日志文件,通过物理日志缓存可以有效减少I/O次数,提高物理日志写入性能。
Buffer pool 共享内存缓冲池
共享内存缓冲池是从磁盘读取的数据库空间页的缓冲区,用来缓存数据库表从磁盘读取的数据,数据库在内存中对数据进行访问和修改,当数据发生变化后,将写回磁盘。其中每个缓冲区就是数据库服务器页的大小。
版权声明
本文为[八珍豆腐]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_57486087/article/details/124345946
边栏推荐
- In the second half of the smart watch, opportunities and challenges coexist
- The code bought from the salted fish | SSM hotel room management system | whether the purchased source code can really be used | confusion from the programmer | Yu Nianyu Hui | Wu Minghui, dachou Vill
- IMX6ULL裸机开发之硬件IIC分析及配置过程
- 【以太网交换安全】--- 交换机流量控制/DHCP Snooping/IP Source Guard
- 换个姿势看 hooks,灵感来源组合和 HOC 模式下逻辑视图分离新创意
- Real time monitoring and management of distribution circuit power consumption of acrel-2000 power monitoring system in xingqingfang Xinxing square distribution substation
- gin -get请求的小示例2-Handle处理post请求
- Acrel-3200远程预付费电能管理系统 在福州万宝产业园的应用
- Fault analysis | federated storage engine table causes the monitoring thread to be in the opening table state
- Articles for May
猜你喜欢

Innovative practice of short video content understanding and generation technology in meituan

How to become a real digital enterprise? Ruijie network releases the digital force awakening plan

10月24号是什么?中国的高级程序员为什么没有五六十岁的,而国外人、、、,玉念聿辉带你过1024程序员节日

换个姿势看 hooks,灵感来源组合和 HOC 模式下逻辑视图分离新创意

Is 2022 software testing easy to learn? How long will it take? (learning roadmap attached)

Detailed explanation of the usage of C language getchar

Detailed explanation of Milvus 2.0 quality assurance system

Basic knowledge of software testing (detailed version) collection of this article is enough

The origin explanation and use example of image pre training model

Acrel-3200远程预付费电能管理系统 在福州万宝产业园的应用
随机推荐
What does Huiliang technology rely on to "build a bridge" for enterprises to go to sea?
From construction to governance, the industry's first white paper on microservice governance technology was officially released (including a free download link)
Open WebRTC Toolkit(OWT) Server User Guide
Is 2022 software testing easy to learn? How long will it take? (learning roadmap attached)
[HCTF 2018]admin
Small example of gin - get request 2-handle handles post requests
智能手表的下半场,机遇与挑战并存
Text justify, orientation, combine text attributes
【Android工程师与智能家居产品的第一次接触③】SmartConfig一键配网在硬件端的具体实现|ESP8266一键配网在Arduino的具体实现|玉念聿辉
DCB "first brother" xianruida, what does it rely on to raise the value curve?
gin -get请求的小示例2-Handle处理post请求
Practice and exploration of knowledge map visualization technology in meituan
德勤2022技术趋势:IT自我颠覆、技术跨界融合创新
JD side: how can a child thread get the value of the parent thread ThreadLocal? I got...
Deloitte 2022 technology trend: it self subversion, technology cross-border integration and innovation
Change your posture to look at hooks, the combination of inspiration sources and the separation of new ideas from logical view in hoc mode
Free trial for the first three months! Borui data alarm platform onealert is in progress
Cloud native Virtualization: building edge computing instances based on kubevirt
What is tooljet and how about it—— Evaluation of low code development platform
After ten years of testing experience, I have sorted out the most suitable software testing learning guide for you