Supercharge Your Innovation With Domain-Expert AI Agents!

Memory block calling method and memory block releasing method for memory pool and server

A memory block and memory pool technology, applied in resource allocation, multi-programming devices, etc., can solve the problems of high memory consumption and low memory allocation efficiency, and achieve the effect of reducing memory overhead and improving memory allocation efficiency

Inactive Publication Date: 2017-04-26
SHENZHEN ZHONGKE XUNLIAN TECH
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method needs to search the linked list one by one, consumes a lot of extra memory, and there is still room for improvement when dealing with the connection of linked list nodes
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art: in the existing memory pool management method, the application program needs to search the entire linked list every time it applies for memory, the extra memory consumption is high, and the memory allocation efficiency is low

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
  • Memory block calling method and memory block releasing method for memory pool and server
  • Memory block calling method and memory block releasing method for memory pool and server
  • Memory block calling method and memory block releasing method for memory pool and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] Such as figure 1 As shown in , it is a schematic diagram of the composition and structure of a memory pool provided by an embodiment of the present invention. When the memory pool 100 is initialized, several free memory blocks 10 of the same size and a circular queue 20 are generated. The circular queue 20 is used to manage the plurality of memory blocks 10. When the memory pool 100 is initialized, the addresses of the above-mentioned several memory blocks 10 are sequentially put into the circular queue 20. The first to be taken out for use. After the memory block 10 is released, the address corresponding to the memory block 10 is put back at the tail of the queue. The number of memory block addresses in the circular queue 20 is consistent with the number of memory blocks 10 . When the application program applies for memory, it takes out the memory block address put in first from the circular queue 20, and puts the memory block address into the tail of the circular q...

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 embodiment of the invention discloses a memory block calling method and a memory block releasing method for a memory pool and a server. The memory block calling method for the memory pool comprises the following steps: applying memory blocks in the memory pool, wherein the memory pool comprises a plurality of idle memory blocks with the same size and a round-robin queue during initialization, and the round-robin queue is stored with a plurality of memory block addresses corresponding to the memory blocks; taking out the firstly accessed memory block address from the round-robin queue; and calling the corresponding memory block according to the memory block address which is taken out. By adopting the memory block calling method for the memory pool, extra memory consumption can be reduced, and the memory allocation efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer applications, in particular to a memory block calling method and a memory block releasing method of a memory pool and a server. Background technique [0002] In the process of computer software development and application, it is often used to dynamically apply for memory and release memory. When the software is frequently used, it will cause a large number of memory fragments and reduce the efficiency of memory allocation. At present, the memory pool is a special memory management method. Compared with conventional memory management, its characteristic is that the size of the memory block used for each allocation is the same. This memory management method has high allocation efficiency and does not generate memory. The advantages of fragmentation are often used in occasions that require high memory allocation efficiency and the size of the requested memory is fixed. Its main purp...

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 Applications(China)
IPC IPC(8): G06F9/50
Inventor 蒋晓岗张明宇
Owner SHENZHEN ZHONGKE XUNLIAN TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More