Unlock instant, AI-driven research and patent intelligence for your innovation.

Memory pool managing method

A memory pool and memory technology, applied in the field of memory management, can solve the problems of system memory waste, application modules cannot apply for memory system, exceptions, etc., and achieve the effect of avoiding fragmentation

Inactive Publication Date: 2007-03-07
HUAWEI TECH CO LTD
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The defect of the existing memory management mechanism is that the number of each type of memory pool and the number of memory blocks in each memory pool are pre-divided before the virtual operating system runs, so that when the application module applies for memory, if a certain size If the memory block has been consumed, the system may be abnormal because the application module cannot apply for memory. Even if the virtual operating system can allocate a memory block to the application module from a larger memory pool, the system memory will be wasted; if If the application module wants to apply for a super large memory block that cannot be provided by all memory pools, the system will be abnormal because the application module cannot apply for memory

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 pool managing method
  • Memory pool managing method
  • Memory pool managing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] 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.

[0023] FIG. 1 is a schematic diagram of applying the memory pool management method of the present invention. The virtual operating system sets up several sub-memory pools (Subpool), and applies a certain number of unit memory blocks (gen) of the same size for each sub-memory pool from the underlying operating system memory, and further divides the gen into several sub-pools of the same size. A block of storage memory (mem). Among them, the sub-memory pool is divided into two types: one is control block memory (CB POOL), which is used to store relatively permanent data such as control blocks of application modules; the other is buffer memory (BUF POOL), which is used Stores message data passed between application modules. Simultaneously, in order to realize the management method of the present invention, som...

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 internal memory pool managing method includes the following steps: setting son memory pools, requesting certain amount of gen memory blocks in the same size for each of the son memory pools, dividing each of the gen memory blocks into several mem memory blocks in the same size and setting the un-divided memory units as OS memory pools. When some application module requests memory, the virtual operation system judges first whether the requested memory size is larger than the size of one mem memory block. If so, the memory blocks are distributed directly from the OS memory pool for the application module; or else, corresponding son memory pool is found out and judged for whether to exist idle mem. If so, the idle mem in the son memory pool is assigned to the application module; or else, the virtual operation system requests first one gen dynamically from the OS memory pool for the son memory pool, assigns the idle mem in the gen to the application module and marks the assigned mem as being occupied.

Description

technical field [0001] The invention relates to the technical field of memory management, in particular to a memory pool management method. Background technique [0002] At present, in order to avoid memory fragmentation caused by directly using system calls to allocate memory, existing virtual operating systems have a set of memory management mechanisms. The memory management mechanism generally divides all the memory of the underlying operating system into memory pools of different sizes at one time, and then divides the memory in each memory pool into fixed memory blocks of the same size. Normally, the size of a memory pool is a power of 2 bytes, and the size of a memory pool is twice the size of its left neighbor's memory pool. For example, a virtual operating system has N memory pools. Generally, each memory pool The sizes of the memory blocks in are 2, 4, 8, 16, 32, 64...1024, 2048 bytes.... Since the parameters such as the number of memory pools, the size of memory ...

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/08G06F3/06
Inventor 石兴华
Owner HUAWEI TECH CO LTD