Memory management method and system

A memory management and memory technology, applied in the field of memory, can solve the problems of many memory fragments, difficult to locate memory faults, and low memory application and release rates, so as to avoid memory fragmentation, quickly apply for memory and release memory, and achieve simple management. Effect

Active Publication Date: 2017-05-17
北京康吉森技术有限公司
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a memory management method and system, which are used to solve the problems existing in the prior art, such as low memory application and release rate, many memory fragments, and difficulty in locating memory faults.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0082] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0083] The invention discloses a memory management method. The first embodiment of the method includes an application method and a release method, specifically:

[0084] S10 memory application method, such as Figure 1a shown, including:

[0085] S110, according to the requirements of the business information to apply for memory, search whether there is a free memory block in the free memory list of the corresponding specification, if so, ...

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 memory management method comprises the steps that according to a memory applying method, whether free memory blocks exist in a memory free chain table of corresponding specification or not is looked up according to the memory applying demand in service information, if yes, one free memory block is removed from the memory free chain table, and if not, one free memory block is removed from the memory free chain table; the corresponding free memory block is applied from a system; the free memory block is allocated to memory storage data information and is added to a memory usage chain table of a module number service belongs to; according to a memory releasing method, the memory blocks to be released are removed from the memory usage chain table of the module number; the memory blocks are emptied and reduced to be in a free memory block state; according to the sizes of the memory blocks, the memory blocks are linked to the memory free chain table of corresponding specification. In addition, the invention further provides a memory management system. By adopting the method and the system, the memory fragmentation problem is avoided, and the memory applying release efficiency is improved.

Description

technical field [0001] The invention relates to the field of memory, in particular to a memory management method and system. Background technique [0002] In the field of industrial control and embedded applications, the real-time performance of the system is highly required. Since the memory resources of the system are limited, when the application software occupies too much memory, the real-time performance of the system will be reduced, which may bring serious problems to the entire system. Therefore, in order to ensure the real-time performance of the system, the memory usage of the application system must be controlled, and at the same time, the memory must be quickly applied and released. [0003] At present, the commonly used memory application interface is to directly allocate memory blocks from the system heap. Specifically, the operating system first finds a memory space larger than the required memory size from the managed memory to the user, then builds an index,...

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
CPCG06F9/5016G06F9/5022
Inventor 王成长
Owner 北京康吉森技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products