Memory management method and device for shared memory database
A technology of memory management and shared memory, which is applied in the field of memory database management, can solve problems such as address discontinuity, memory database access performance degradation, etc., and achieve the effect of increasing memory capacity without performance degradation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] like Figure 4 As shown, the memory management method of the shared memory database of the present embodiment includes:
[0048] Step 11: Allocate virtual memory space for the database according to the preset maximum value of the database capacity in the space for creating the database;
[0049] Step 12: Allocating a first physical memory for the database, setting the start address of the first physical memory as the start address of the virtual memory space, and inserting or modifying data in the first physical memory;
[0050] Step 13: judging whether the free memory of the database is less than a preset threshold, and obtaining a first judging result;
[0051]Step 14: When the first judgment result is yes, add the second physical memory with the preset expansion step size to the virtual memory space of the database, and set the start address of the second physical memory to The tail address of the previous physical memory;
[0052] Step 15: expand the available me...
Embodiment 2
[0063] This embodiment also provides a memory management device for a shared memory database, including:
[0064] Create a module for allocating virtual memory space for the database according to the preset maximum value of the database capacity in the space for creating the database;
[0065] The first allocation module is configured to allocate a first physical memory for the database, set the start address of the first physical memory as the start address of the virtual memory space, and insert or modify the first physical memory data;
[0066] A first judging module, configured to judge whether the free memory of the database is less than a preset threshold, and obtain a first judging result;
[0067] The second allocating module is configured to add a second physical memory with a preset expansion step size to the virtual memory space of the database when the first judgment result is yes, and add the second physical memory to the virtual memory space of the database. Th...
Embodiment 3
[0079] The memory management method of the shared memory database of the present embodiment comprises the following steps:
[0080] Step A: Set the initial value of the database capacity on the starting database node as required, the unit is M;
[0081] Step B: Set the maximum value of the database capacity on the starting database node as required, the unit is M;
[0082] Step C: Set the size of each expansion step of the database on the starting database node as required, and the unit is M;
[0083] Step D: Start the shared memory database. At this time, the virtual memory space is allocated according to the maximum capacity of the database in the space for creating the database (note: at this time, the physical memory of the maximum capacity of the database is not occupied, but so much is occupied in the process space. Virtual memory space, excess physical memory can be used by other processes);
[0084] Step E: Allocate physical memory with the size of the initial value ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com