Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for managing storage space

A storage space and management method technology, applied in the field of storage space management methods and devices, can solve the problems of inability to ensure full utilization of slab space, waste of memory resources, inability to guarantee immediate availability, etc., so as to improve memory utilization and speed up. Effect

Active Publication Date: 2019-07-30
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] First of all, the traditional slab cache allocation algorithm divides the memory requested from the cache pool into three groups: slab_full, slab_partial, and slab_empty; each group is implemented in the form of a linked list, which leads to the need to traverse the linked list to find the available space slab, which cannot guarantee that the process requests allocation for the first time Available slabs can be obtained immediately when the object memory space
[0004] Secondly, the traditional slab cache allocation algorithm cannot guarantee the full utilization of each slab space, and a slab may be used up quickly due to the allocation of several large objects and the cache line alignment requirements
[0005] Finally, when the slab_partial group in the traditional slab cache allocation algorithm is not enough, it needs to apply to the partner system, but does not make full use of the slab in the slab_empty group, which causes a great waste of memory resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for managing storage space
  • Method and device for managing storage space
  • Method and device for managing storage space

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Hereinafter, the present invention will be described in detail with reference to the drawings and in conjunction with the embodiments. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other if there is no conflict.

[0024] figure 1 Shown is a processing flowchart of a storage space management method according to Embodiment 1 of the present invention, including the following steps:

[0025] Step 101: Obtain a buffer pool and divide and group the memory space in the buffer pool according to a preset division strategy;

[0026] Further, the process of obtaining the buffer pool and dividing and grouping the memory space in the buffer pool according to a preset division strategy is as follows:

[0027] Obtain the buffer pool by applying to the memory management device;

[0028] The memory space in the buffer pool is divided into four memory management groups; among them, the memory size of each memory management...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a storage space management method and device. The method comprises the following steps: obtaining a caching pool, and grouping a memory space in the caching pool according to a division strategy; and according to the size of an object, distributing the object to a corresponding group, and regulating the memory space among the groups according to a preset regulation strategy. Therefore, the memory space is fully utilized, speed for distributing objects in the memory is quickened, and a memory use ratio is improved.

Description

Technical field [0001] The invention belongs to the field of storage control, and in particular relates to a storage space management method and device. Background technique [0002] With the development of the Linux operating system, applications have higher and higher requirements for memory, which require both faster memory allocation speed and larger memory. Since the 2.6 kernel, Linux has adopted a partner system and memory allocation algorithm. The slab cache allocation algorithm completes the memory allocation. The slab cache allocation algorithm can reduce the generation of memory fragments and ensure the allocation speed and access speed of small objects (<512 bytes), but the existing slab cache allocation algorithm has the following shortcomings. [0003] First of all, the traditional slab cache allocation algorithm divides the memory applied for from the buffer pool into 3 groups: slab_full, slab_partial, slab_empty; each group is implemented in a linked list, which l...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/50
CPCG06F9/5016G06F2209/5011G06F2209/503
Inventor 邓宇羽
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND