A mapping method and device for organizing virtual memory and storage based on hash table
A technology of virtual memory and mapping method, applied in the direction of memory address/allocation/relocation, special data processing applications, instruments, etc., can solve the problems of increased memory usage of hash table, affecting efficiency, increasing concurrent conflicts, etc., to improve the system Resource utilization and the effect of performance tuning
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] The inventor of the present application proposes to create multiple hash tables, so as to map each LUN with different hash tables, so as to improve the utilization rate of system resources.
[0031] Based on the above ideas, this embodiment provides a mapping method for organizing virtual memory and storage based on a hash table, including the following steps, such as figure 1 Shown:
[0032] Step 100, initialize the number threshold of the hash table;
[0033] Step 200, when adding a logical unit number (LUN), judge whether the number of hash tables currently created by the system is less than the initialized number threshold, if yes, execute step 300, otherwise execute step 400;
[0034] Step 300, create a new hash table, and map the data of the added LUN to the new hash table;
[0035] Step 400, map the data of the added LUN to the hash table with the least number of mapped LUNs among the created hash tables.
[0036] Wherein, when initializing the number threshol...
Embodiment 2
[0047] This embodiment introduces a mapping device that organizes virtual memory and storage based on a hash table, and the device can implement the method in Embodiment 1 above. Specifically, the device at least includes a first module, a second module and a third module.
[0048] The first module initializes the number threshold of the hash table;
[0049] The second module, when adding a LUN, judges whether the number of hash tables currently created by the system is less than the number threshold;
[0050]The third module, when the number of hash tables currently created by the system is less than the number threshold, create a new hash table, and map the data of the added LUN to the new hash table, when the system currently If the number of the created hash tables is equal to the number threshold, the data of the added LUN is mapped to the hash table with the least number of mapped LUNs among the created hash tables.
[0051] In addition, the above-mentioned device may ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 