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

Memory pool management method, device, and computer-readable storage medium

A management method and memory pool technology are applied in the field of computer-readable storage media and memory pool management, and can solve the problems of slow search speed and low efficiency.

Active Publication Date: 2019-03-22
SHENZHEN PANGO MICROSYST CO LTD
View PDF9 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Technical problems to be solved by the present invention In the prior art, when searching for a memory unit to be released, it is usually judged sequentially whether the memory unit to be released belongs to a memory block in the memory pool, resulting in a problem that the search speed is too slow and the efficiency is low , aiming at this technical problem, a memory pool management method, device and computer-readable storage medium are provided

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 management method, device, and computer-readable storage medium
  • Memory pool management method, device, and computer-readable storage medium
  • Memory pool management method, device, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

no. 1 example

[0042] In order to solve the existing problem that when searching for the memory block to which the memory unit to be released belongs, it is usually sequentially judged whether the memory unit to be released belongs to the memory block in the memory pool, resulting in too slow search speed and low efficiency. A memory pool management method is provided. The size of the memory block that the memory pool applies to the operating system each time is N1, where N1 is an integer greater than or equal to 1, that is, the memory pool is a fixed memory pool. Wherein, N1 may be 2Kbit, 3Kbit, 4Kbit, etc. The details can be flexibly set according to actual needs. See figure 1 as shown, figure 1 The basic flowchart of the memory pool management method provided in this embodiment, the memory pool management method includes:

[0043] S101. Determine target subscripts in the management array corresponding to each memory block in the memory pool according to a preset rule.

[0044] It shou...

no. 2 example

[0077] In order to better understand the present invention, this embodiment will be described in conjunction with a more specific example, assuming that the application program to which the memory pool belongs is a 32-bit application program, the operating system is a 32-bit operating system, and the memory pool applied to the operating system each time The size of the block is N1, please refer to the figure, Figure 8 It is a detailed flow chart of the memory pool management method provided in the second embodiment of the present invention. The memory pool management method includes:

[0078] S801. Create a new management array.

[0079] Among them, the management array is a one-dimensional array, the initial value of each element in the management array is 0, and the number of elements in the management array is N2, where N2 is equal to the maximum virtual memory of the application program to which the memory pool belongs divided by the memory in the memory pool The resulti...

no. 3 example

[0119] This embodiment provides a device, as shown in the figure, the device includes a processor 901, a memory 902, and a communication bus 903, wherein:

[0120] The communication bus 903 is used to realize connection and communication between the processor 901 and the memory 902;

[0121] The processor 901 is configured to execute one or more programs stored in the memory 902, so as to implement the steps of the memory pool management method in the first embodiment and / or the second embodiment above.

[0122] It should be noted that the device in this embodiment may be implemented in various forms. For example, the devices described in this embodiment may include mobile phones, tablet computers, notebook computers, palmtop computers, personal digital assistants (Personal Digital Assistant, PDA), portable media players (Portable Media Player, PMP), navigation devices, portable Mobile devices such as wearable devices, smart bracelets, and pedometers, and stationary devices s...

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 m emory pool management method, device, and computer-readable storage medium., the method determines target subscripts corresponding to each memory block in the memory pool one by one in the management array according to preset rules, the mapping relationship between the target subscript and the memory block corresponding to the target subscript is established, so that when freeing memory cells to be freed, A memory block to which a memory unit to be release belongs is found accord to a preset rule, where the size of each memory block requested from the operating system by the memory pool is N1, N1 is an integer greater than or equal to 1, As that memory block to which the memory unit to be freed belong is searched in the prior art, Inefficient problems, The invention also discloses a device and a computer-readable storage medium. By implementing the scheme, the memory block to which the memory unit to be released belongs can be found according to preset rules, and the memory unit to be released does not need to be judged whether it belongs to each memory block in the memory pool in turn, so that the searching speed is improved and the searching efficiencyis higher.

Description

technical field [0001] The present invention relates to the field of memory pools, and more specifically, to a memory pool management method, device, and computer-readable storage medium. Background technique [0002] The memory pool (memory pool) technology is to pre-apply for an appropriate size of memory from the operating system, and then allocate and release memory on these memories; correspondingly, we call these memories that perform memory allocation and release memory pools . [0003] The memory pool is composed of a series of memory blocks. When the application applies for memory from the memory pool, the memory unit of the memory block will be allocated to the application. When the application deletes the memory, that is, when the memory unit needs to be released, it needs to first Find the memory block to which the memory unit to be released belongs, and then release the memory unit to be released in the memory block. In the prior art, when searching for the me...

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): G06F9/50
CPCG06F9/5016G06F9/5022
Inventor 欧顺银
Owner SHENZHEN PANGO MICROSYST CO LTD