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

Method for enhancing memory pool utilization ratio

A memory pool and utilization technology, applied in the direction of memory address/allocation/relocation, etc., can solve the problem of unusable and insufficient memory blocks, avoid memory fragmentation, alleviate memory waste, and alleviate memory application failures Effect

Inactive Publication Date: 2010-05-19
ZTE CORP
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The technical problem to be solved by the present invention is to provide a new method for improving the utilization rate of the memory pool, which can greatly reduce the situation that the memory blocks that may exist in the general memory pool are either not used or not used enough

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 enhancing memory pool utilization ratio
  • Method for enhancing memory pool utilization ratio
  • Method for enhancing memory pool utilization ratio

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be described in detail below in conjunction with the accompanying drawings.

[0030] The following is a specific example of the practical application of the present invention, assuming that the size of each memory block adopts the commonly used 2 1 size in bytes, 2 2 byte size...2 n Size in bytes (n is any integer).

[0031] To achieve this purpose of increasing the utilization of the memory pool, this example requires the following steps (taking the embedded real-time operating system as an example):

[0032] Step 1: According to the memory allocation requirements of the embedded software system, a large memory pool is allocated in memory resources, which is exclusively used for users to apply for (release) memory. For example, in the VxWorks operating system, the memory of User Reserved (equal to sysPhsMemTop()-sysMemTop()) is a user reserved area, which can be allocated as the total memory pool. Its allocation uses the dynamic memory al...

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 method for increasing the use ratio of the memory pool, the method comprises the following steps: step 1: allocating a big memory pool in the memory resource, which is used for the user's application or freemem; setting a pointer variable ptAddrToUse, used to indicate a starting address for allocating the memory blocks in the memory pool; building varisized first memory information list, initialization is empty; step 2: applying for the user's memory, determining the bulk of the memory block first, then finding a memory block in free state which is equal to the memoryblock in the bulk in the memory pool; step 3: if the ptAddrToUse is effective, the bulk of the ptAddrToUse, the first memory and the memory block act as the memory block with the same bulk. The invention not only greatly satisfies the requirement of the memory block with needed bulk, but also effectively relieves and avoids the memory wasting and the case of failing in the memory applying.

Description

technical field [0001] The invention belongs to the field of embedded real-time operating systems, and in particular relates to a method for improving the utilization rate of memory pools of embedded real-time operating systems. Background technique [0002] The application of embedded software is more and more extensive, and how to improve the speed, reliability and efficiency of memory allocation under the premise of meeting the real-time requirements of the system is a topic that needs to be studied in the embedded software system. The rapidity of embedded software memory allocation starts from the real-time requirements of embedded systems, and requires that the memory allocation process be as fast as possible. Therefore, in embedded systems, it is impossible to use complex and cumbersome memory allocation in general-purpose operating systems. Strategies generally adopt simple and fast memory allocation schemes; the reliability of embedded software memory allocation requ...

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 Patents(China)
IPC IPC(8): G06F12/06
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