![共享内存数据库的内存管理方法及装置](/CN/2015/1/124/images/201510622060.jpg)
基本信息:
- 专利标题: 共享内存数据库的内存管理方法及装置
- 专利标题(英):Memory management method and device for shared memory database
- 申请号:CN201510622060.1 申请日:2015-09-25
- 公开(公告)号:CN106557427A 公开(公告)日:2017-04-05
- 发明人: 耿常才 , 李响 , 葛聪
- 申请人: 中兴通讯股份有限公司
- 申请人地址: 广东省深圳市南山区高新技术产业园科技南路中兴通讯大厦
- 专利权人: 中兴通讯股份有限公司
- 当前专利权人: 中兴通讯股份有限公司
- 当前专利权人地址: 广东省深圳市南山区高新技术产业园科技南路中兴通讯大厦
- 代理机构: 北京银龙知识产权代理有限公司
- 代理人: 黄灿; 张博
- 主分类号: G06F12/02
- IPC分类号: G06F12/02 ; G06F17/30
The invention provides a memory management method and device of a shared memory database. The method comprises the following steps of: in a space for creating the database, according to the preset maximum value of database capacity, distributing a virtual memory space to the database; distributing a first physical memory to the database, setting the beginning address of the first physical memory as the beginning address of the virtual memory space so as to bring convenience for inserting or revising data in the first physical memory; judging whether the idle memory of the database is smaller than a preset threshold value or not so as to obtain a first judgment result; when the first judgment result shows that the idle memory of the database is smaller than the preset threshold value, adding a second physical memory with a preset dilatation step size into the virtual memory space of the database, and setting the beginning address of the second physical memory as the tail address of the previous physical memory; and expanding the available memory space of the database. By use of the method, the problem that the address of a multistage shared memory database is discontinuous can be solved, and management complexity caused in a way that the shared memory needs to be remapped when the multistage shared memory database is subjected to dilatation is simplified.
公开/授权文献:
- CN106557427B 共享内存数据库的内存管理方法及装置 公开/授权日:2021-11-12
IPC结构图谱:
G | 物理 |
--G06 | 计算;推算;计数 |
----G06F | 电数字数据处理 |
------G06F12/00 | 在存储器系统或体系结构内的存取、寻址或分配 |
--------G06F12/02 | .寻址或地址分配;地址的重新分配 |