Memory allocation management system of heap space and embedded chip

A memory allocation and management system technology, applied in the field of memory allocation management systems and embedded chips, can solve the problems of low time-consuming efficiency, serious fragmentation, and difficult maintenance for users, so as to reduce time-consuming, improve efficiency, increase The effect of reliability

Inactive Publication Date: 2017-06-16
BEIJING XINWEI TELECOM TECH
View PDF2 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, there will be many problems, such as the efficiency cannot meet the high-performance requirements of the memory heap in the real-time embedded operating system, for example, on the heap, when releasing the memory, the memory is released to the entire memory pool, and when it is applied again, it is still passed malloc, such fragmentation is more serious, and this process is time-consuming and inefficient, it is also difficult for users to maintain, for example, during the operation of the system, memory applications will be continuously released, and the heap cannot be monitored in real time usage of

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 allocation management system of heap space and embedded chip
  • Memory allocation management system of heap space and embedded chip
  • Memory allocation management system of heap space and embedded chip

Examples

Experimental program
Comparison scheme
Effect test

example 1

[0041] Such as Figure 8 Example 1 shown: Taking the creation of the heap space in the application of a multi-core DSP chip as an example, it is implemented according to the following steps:

[0042] (101), according to the private or shared attributes set by the application, to define a global array variable in the core private space by dividing the memory as the heap space, and the size of the array is the size of the heap space to be created;

[0043] (102), according to the heap attribute structure provided by this scheme, define a structure variable, which is to record and create the relevant attribute parameters of the heap;

[0044] (103), setting the quantity of typical length block of heap, and the size of each typical length;

[0045] (104), define the name of the heap;

[0046] (105), with steps (101), (102), (103), (104) and private or shared heap attribute mark as creation function input parameter, call heap creation function;

[0047] (106), judge the legitima...

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 provides a memory allocation management system of a heap space and an embedded chip. The system comprises a heap space creation unit used for creating the heap space, a memory pool creation unit used for creating a memory pool in the heap space according to at least one typical length configured by an application and the number of data blocks of the typical lengths, and a dynamic and static attribute unit, wherein the memory pool is internally provided with nodes and chain table sets of the typical lengths, the nodes are provided with at least one typical length memory space corresponding to the number of the data blocks, and node heads of the nodes in the memory pool are pressed into the chain table sets corresponding to the typical lengths; the dynamic and static attribute unit is used for determining static or dynamic attributes of the nodes according to static or dynamic attributes configured by the application, and each chain table set of the memory pool comprise a dynamic node chain table which is in use, a static node chain table which is in use and a released dynamic node chain table. The system solves the problem of fragmentization in heap space management, and reduces the probability that system tasks are modified by other border-crossing memories.

Description

technical field [0001] The invention relates to the field of memory heaps, in particular to a memory allocation management system of heap space and an embedded chip. Background technique [0002] At present, embedded has been widely used in digital signal processing systems, especially multi-core DSP chips. How to realize efficient management and reliable application of multi-core DSP memory stacks has become a technical point in the development of multi-core DSP real-time embedded systems. At present, most of the memory heaps used in embedded systems use the malloc / free function in the C language standard library to implement memory application or release. However, there will be many problems, such as the efficiency cannot meet the high-performance requirements of the memory heap in the real-time embedded operating system, for example, on the heap, when releasing the memory, the memory is released to the entire memory pool, and when it is applied again, it is still passed ...

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 & AuthorityApplications(China)
IPC IPC(8): G06F12/02
CPCG06F12/02
Inventor宋春光
OwnerBEIJING XINWEI TELECOM TECH