Method for internal memory allocation in the embedded real-time operation system

A real-time operating system and memory allocation technology, applied in the computer field, can solve problems such as inability to dynamically adjust, memory allocation methods are not considered, and achieve the effects of ensuring real-time performance, improving reliability and stability, and reducing system performance degradation

Inactive Publication Date: 2006-01-18
GLOBAL INNOVATION AGGREGATORS LLC
View PDF0 Cites 46 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The deficiencies of this prior art mainly contain two points: 1. The number of memory blocks in each memory pool is determined statically, often according to the statistics and experience values ​​accumulated previously, and cannot be

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 internal memory allocation in the embedded real-time operation system
  • Method for internal memory allocation in the embedded real-time operation system
  • Method for internal memory allocation in the embedded real-time operation system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical scheme of the present invention can be divided into three stages of initialization, memory allocation and memory release.

[0031] Phase 1 initialization

[0032] The first step is to apply for a large memory area to the operating system in advance.

[0033] The second step statically divides the memory pools from the large memory area allocated in the first step and initializes the control headers of each memory pool. In order to improve the retrieval performance, the memory pool control headers are generally stored collectively by an array, and are stored in an orderly manner according to the size of the memory block corresponding to each memory pool control header. The main management information included in the memory pool control header is: the size of memory blocks in the pool (bs), the total amount of current memory blocks (cbcnt), the number of free memory blocks (fbcnt), the first pointer of the free block queue (pfbhead), and the free block queu...

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 a method for allocating internal memory of real time operating system, which comprises the following steps: applying a big internal memory area from operating system, dividing the big internal memory area into internal memory polls with different sizes and the same internal memory poll comprises internal memory block with the same size, initialing each internal memory poll controlling bar. When it needs internal memory block, it finds the corresponding internal memory poll according to the size of internal memory block, and quotes weather the internal memory poll has free block, if it has free block, it fetches a block from the head of the team and modifies the referent information of internal memory poll controlling bar, and then the allocation finishes; if not, it dose dynamic adjustment to internal memory; when it releases the internal memory, it finds the corresponding internal memory poll according to the size of internal memory and returns it into the tail of the team and rewrites the referent information of internal memory poll controlling bar.

Description

technical field [0001] The invention relates to the field of computers, in particular to memory allocation in an embedded real-time multitasking operating system in the field of computers. Background technique [0002] The memory management in the embedded real-time operating system is an important factor to ensure the real-time performance of the application. In applications in the communication field, memory applications often present a large number of applications for the same data structure (that is, memory blocks of the same size). In order to improve real-time performance, the simple memory allocation mechanism provided by the real-time operating system is generally "encapsulated" as follows: [0003] Step 1: Apply for a large memory area to the operating system in advance. [0004] Step 2: The memory area is divided into several subareas (referred to as memory pools herein), and the same memory pool is composed of several memory blocks of the same size. The number ...

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): G06F12/00G06F9/46
Inventor 何先波张芝萍徐立锋
Owner GLOBAL INNOVATION AGGREGATORS LLC
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