Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for managing memory pools

A management method and memory pool technology, applied in the field of memory pool management, can solve the problem of high server memory usage

Active Publication Date: 2018-07-06
WUHAN DOUYU NETWORK TECH CO LTD
View PDF8 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a memory pool management method to solve the technical problem in the prior art that the server has a high memory occupation because the chunk addresses of the memory pool are not continuous and the entire block cannot be released.

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 for managing memory pools
  • Method for managing memory pools
  • Method for managing memory pools

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to enable those skilled in the technical field to which the application belongs to understand the application more clearly, the technical solutions of the application will be described in detail below through specific embodiments in conjunction with the accompanying drawings.

[0038] The present invention provides a memory pool management method to solve the technical problem in the prior art that the memory occupation of the server is high because the chunk addresses of the memory pool are not continuous and the entire block cannot be released.

[0039] Please refer to figure 1 , figure 1 It is a flow chart of a memory pool management method provided by an embodiment of the present invention, and the management method includes:

[0040] S1: Control the first memory pool to provide dynamic memory allocation operations and memory release operations, and control the second memory pool not to provide dynamic memory allocation operations and memory release operat...

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 discloses a method for managing memory pools. The method comprises the step of controlling the first memory pool to provide a dynamic memory allocation operation and a memory release operation, and controlling the second memory pool not to provide a dynamic memory allocation operation or a memory release operation; when the number of memories allocated in the first memory pool is greater than a first threshold value and the number of memories used in the first memory pool is smaller than a second threshold value, controlling the first memory pool only to provide the memory release operation, and controlling the second memory pool to provide the dynamic memory allocation operation and the memory release operation; after the memories in the first memory pool are all released, clearing the first memory pool, controlling the second memory pool to provide the dynamic memory allocation operation and the memory release operation, and controlling the first memory pool not to provide the dynamic memory allocation operation or the memory release operation. The method for managing the memory pools solves the technical problem that in the prior art, since chunk addresses of memory pools are not continuous and entire blocks cannot be released, the memory occupancy is high, and achieves the technical effect that idle memories are automatically recycled.

Description

technical field [0001] The present application relates to the field of computers, in particular to a method for managing a memory pool. Background technique [0002] During server development, sometimes you will encounter scenarios that require frequent applications to release memory. If you apply directly to the operating system every time, it will not only be inefficient, but also cause memory fragmentation. Many libraries have implemented memory pools for this. , That is to apply for a large block of memory (block) from the operating system, and then divide it into small blocks (chunk) for management. The user applies for memory from the memory pool, and returns it to the memory pool when it is released. The memory pool always retains a large block of memory, reducing and The interaction of the operating system improves the efficiency of dynamic memory allocation. [0003] In practical applications, in order to meet the high-efficiency characteristics of dynamic memory a...

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/50G06F12/02
CPCG06F9/5016G06F9/5022G06F12/0223
Inventor 张梦涵张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products