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

Memory management method and device

A memory management and memory technology, applied in the field of memory management, can solve the problems of occupying memory blocks, increasing the operating burden of system resources, and poor flexibility.

Inactive Publication Date: 2013-05-01
ZTE CORP
View PDF4 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The static memory management method divides the memory into several areas in advance, and then divides the areas into multiple memory blocks of equal size; when there is a memory application, if the pre-applied memory size is equal to the memory block or area memory size or Similar, the memory utilization rate is high; however, if the pre-applied memory is small, the small pre-applied memory occupies a large memory block, and the memory utilization rate is low due to poor flexibility.
[0005] The dynamic memory management method is usually implemented by a linked list or a stack method; among them, the linked list method uses a linked list to arrange free memory blocks. When a process needs to apply for memory, it searches for free memory blocks from the head of the linked list until it finds a suitable size. memory block, which allocates the searched memory block to the process applying for memory; when a memory block is released, the linked list method puts the released memory block, that is, the free memory block, at the end of the linked list; the stack method is similar to the linked list method. Free memory blocks are arranged on the top of the stack. When a process applies for memory, it searches from the top of the stack until a memory block of a suitable size is found; when a memory block is released, the released memory block, that is, the free memory block, is placed on the stack Top; In embedded systems, dynamic memory management methods are widely used. However, because embedded systems need to continuously apply for and release memory, that is, embedded systems need to continuously allocate memory dynamically, which increases the resources of the system itself. operating burden

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] Before describing the memory management method of the present invention, the memory pool management list of the present invention is described first, such as figure 1 As shown, the highest-order memory pool is the twelfth-order memory pool as an example for illustration. The memory pool management list divides the memory into 0-order (Order) memory pools - 12-order memory pools, a total of 13-order memory pools, Each level of memory pool has at least one management node, and each management node manages 256 memory blocks; in essence, the memory application is at least one of the 256 memory blocks managed by the management node. After the application is successful, the occupied memory A block is called an applied memory block; releasing memory means releasing at least one of the 256 memory blocks managed by the management node. The released memory block is called a free memory block, and the free memory block can be used for the next memory application.

[0068] Here, in...

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 memory management method. The method comprises the following steps of: dividing a memory into memory pools of more than one order, wherein each memory pool is provided with at least one management node; during the application of the memory, determining order memory pools according to the size of the applied memory, and allocating the memory to memory application according to the occupation situation of the order memory pools in a memory pool management list; and during the release of the memory, releasing the memory according to the mark information of the memory required to be released. Meanwhile, the invention also discloses a memory management device. The invention has the advantages of changeability in basic length of memory blocks, high flexibility and high utilization rate of memory resources, and can be applied to an embedded system or an operating system with different memory resource requirements.

Description

technical field [0001] The invention relates to memory management technology, in particular to a memory management method and device. Background technique [0002] Due to the wide application of embedded systems, how to efficiently manage the memory of embedded systems has become a research hotspot. [0003] At present, in the embedded system, there are mainly two memory management methods: one is a static memory management method, and the other is a dynamic memory management method; here, memory management mainly involves memory application and memory release; among them, [0004] The static memory management method divides the memory into several areas in advance, and then divides the areas into multiple memory blocks of equal size; when there is a memory application, if the pre-applied memory size is equal to the memory block or area memory size or Similarly, the memory utilization rate is high; however, if the pre-applied memory is small, the small pre-applied memory oc...

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): G06F12/08G06F17/30
CPCG06F12/0223
Inventor 刘强
Owner ZTE CORP
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