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

Memory dynamic management method and device

A dynamic management and memory technology, applied in the field of memory management, can solve problems such as resource waste, affecting the overall performance of the system, and insufficient large memory pools, and achieve the effect of improving efficiency and making full use of it

Active Publication Date: 2019-02-22
NEW H3C TECH CO LTD
View PDF9 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The existing technology adopts the memory pool technology to effectively solve the problem of memory fragmentation, but because the memory pool technology allocates the memory pool at the time of initialization, it does not take into account the business model of using memory in the specific business
For example, when the business is always applying for a large block of memory, the small block memory pool is rarely used, which causes the small block memory pool to be idle, while the large block memory pool is not enough, resulting in a waste of resources and affecting overall system performance

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 dynamic management method and device
  • Memory dynamic management method and device
  • Memory dynamic management method and device

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0022] Please refer to figure 2 , figure 2 A flow chart of the memory dynamic management method provided by the embodiment of the present invention is shown. The processing method includes the following steps:

[0023] Step S101 , responding to a memory application request, and determining a target memory linked list from multiple memory linked lists according to the memory application request, wherein each memory linked list is composed of memory blocks with the same preset specification.

[0024] In the embodiment of the present invention, the memory resources are pre-applied, and part of the applied memory resources will be divided as the spare memory, and the remaining part except the spare memory will be divided into multiple memory blocks according to multiple preset specifications. Memory blocks of the same preset specification are organized in the same memory linked list. When an application program that needs to apply for memory initiates a memory application req...

Embodiment approach

[0031] As an implementation manner, the method for determining the memory block to be organized may be:

[0032] First, determine the memory linked list to be organized from other memory linked lists with free space.

[0033] In the embodiment of the present invention, the memory linked list where the memory block to be organized is the memory linked list to be organized, and the method for determining the memory linked list to be organized from other memory linked lists with free space may be: select from other memory linked lists with free space One or more memory linked lists are used as memory linked lists to be organized. In order to achieve simplicity, the method of determining the memory linked list to be organized from other memory linked lists with free space can also be: when the preset specification of the memory linked list with free space is greater than the target When the preset specification of the memory linked list is used, the memory linked list with the lea...

no. 2 example

[0055] Please refer to Figure 4 , Figure 4 A schematic block diagram of the memory dynamic management device 200 provided by the embodiment of the present invention is shown. The memory dynamic management apparatus 200 is applied to the storage space management device 100 and includes a response module 201 ; an update module 202 ; a merge module 203 ; an application module 204 ; and a clear module 205 .

[0056] The response module 201 is configured to respond to a memory application request, and determine a target memory linked list from multiple memory linked lists according to the memory application request, wherein each memory linked list is composed of memory blocks with the same preset specification.

[0057]In the embodiment of the present invention, the response module 201 is configured to execute step S101.

[0058] The update module 202 is configured to perform overcount accumulation on the target memory linked list when there is no idle state memory block in the...

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 relates to the technical field of memory management, and provides a memory dynamic management method and device. The method comprises: responding to a memory application request, determining a target memory link list from a plurality of memory link lists according to the memory application request, wherein, each memory link list is composed of memory blocks with the same preset specification; When there is no free memory block in the target memory link list, the target memory link list is accumulated by over-counting. When the excess count of the target memory linked list is larger than the preset threshold, the memory block to be organized is determined from other memory linked lists with free space, and the memory block to be organized is reorganized according to the presetspecification of the target memory linked list and merged into the target memory linked list to satisfy the memory application request. Compared with the prior art, the invention dynamically adjuststhe memory link list in the memory pool according to the requirements of the actual business scene, so as to fully utilize the memory resources and improve the efficiency of memory allocation.

Description

technical field [0001] The present invention relates to the technical field of memory management, in particular to a method and device for dynamic memory management. Background technique [0002] The existing technology adopts the memory pool technology to effectively solve the problem of memory fragmentation, but because the memory pool technology allocates the memory pool at the time of initialization, it does not take into account the business model of using memory in specific services. For example, when the business is always applying for a large block of memory, the small block memory pool is rarely used, which causes the small block memory pool to be idle, while the large block memory pool is not enough, resulting in a waste of resources and affecting overall performance of the system. Contents of the invention [0003] The purpose of the embodiments of the present invention is to provide a method and device for dynamic memory management, which dynamically adjusts t...

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
IPC IPC(8): G06F9/455G06F9/50
CPCG06F9/45558G06F9/5016G06F2009/45583G06F2209/5011
Inventor 刘浩
Owner NEW H3C 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