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

Memory management method and system

A memory management and memory technology, applied in the computer field, can solve problems such as memory exhaustion, a large number of memory fragments, and affecting the time to apply for memory, so as to improve efficiency and avoid memory fragmentation

Inactive Publication Date: 2011-05-18
SHENZHEN GOLDEN HIGHWAY TECH CO LTD
View PDF4 Cites 50 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Long-term uninterrupted application and release of memory will inevitably generate a large number of memory fragments in the end, which not only affects the time required to apply for memory, but also leads to memory exhaustion. There is not enough free memory for large memory allocation.

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

[0019] The embodiment of the present invention provides a memory management method for the VxWorks system, which adopts the technical scheme of dividing the memory into several memory groups in advance, and the sizes of the memory blocks in different memory groups are different from each other. The size of the allocated memory, select the first memory block in the free memory block linked list in the corresponding memory group to allocate; when releasing the memory, link the released memory to the free memory block linked list in the corresponding memory group head. By adopting the method of the embodiment of the present invention, the generation of memory fragments can be avoided, and the efficiency of memory allocation can be improved. The embodiment of the present invention also provides a corresponding memory management system. Each will be described in detail below.

[0020] Please refer to figure 1 , the present embodiment provides a memory management method for the V...

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: creating a memory pool comprising a plurality of memory groups, wherein the memory blocks in the same memory group are the same in size and idle memory blocks are sequentially linked into an idle memory linked list, and memory blocks in different memory groups are different in size; selecting a first memory group according to the size of a requested memory when a memory allocation request is received, and allocating a first memory block in the idle memory linked list of the selected first memory group to a memory requester; and selecting a second memory group according to the address of a memory required to be released when a memory release request is received, and linking the memory block which is required to be released and is taken as the first memory block into the idle memory linked list of the second memory group. The embodiment of the invention also provides a corresponding memory management system. In the method disclosed by the invention, the memory is allocated or released in the corresponding memory group, thus no memory fragment is produced and the memory allocation efficiency can be improved.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a memory management method and system. Background technique [0002] At present, embedded system applications have penetrated into various fields of our lives. Mobile phones, set-top boxes, MP4 players, switches, routers, etc. can all be attributed to embedded devices. Among these embedded devices, some devices require powerful and real-time operating systems. VxWorks launched by American Wind River System Company (namely WRS Company) is the leader of this type of operating system. VxWorks is a real-time operating system, and its application examples include the famous Mars exploration vehicle, Patriot missile and so on. Since VxWorks 5.4 entered China for more than ten years, it has presented the characteristics of multi-framework, wide application range, and civilian use. More and more embedded devices have turned to VxWorks for implementation. [0003] In order to improve...

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/08G06F12/02
Inventor 梁志宝
Owner SHENZHEN GOLDEN HIGHWAY TECH CO LTD
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