Memory management method and device, electronic equipment and storage medium

A memory management and memory technology, applied in the field of memory management, can solve problems such as memory quantitative determination, system memory recovery lag, and ignoring the impact of ION pool volume, etc., to ease the pressure of shortage and avoid delays

Pending Publication Date: 2022-03-01
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, the amount of memory occupied by the ION pool cannot be quantitatively determined by the operating system. Generally, only when the system memory is seriously insufficient will memory reclamation be triggered. At this time, the memory resources occupied by the ION pool can be released to the operating system.
The problem with this is that the impact of the large size of the ION pool on the operating system is not considered, and the system memory recovery lags behind.

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 device, electronic equipment and storage medium
  • Memory management method and device, electronic equipment and storage medium
  • Memory management method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0050] As mentioned in the background technology, the amount of memory occupied by the ION pool cannot be determined quantitatively by the operating system. After the data cached in the ION memory is used, a qualitative decision can be made on whether the used memory should be put into the pool or directly released to the operating system. , usually only when the system memory is sever...

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 memory management method and device, electronic equipment and a storage medium, and the method comprises the steps: after data cached in a current ION memory is used, judging whether the total amount of the ION memory occupied by an ION pool is greater than or equal to a memory release threshold value or not; and if the total amount of the ION memory occupied by the ION pool is greater than or equal to the memory release threshold, releasing the current ION memory to an operating system. Therefore, a series of problems caused by excessive memory occupation of the ION pool can be effectively prevented, the pressure of system memory shortage is relieved, meanwhile, the memory is actively released to the operating system, and delay caused by waiting for memory recovery is also avoided.

Description

technical field [0001] The present disclosure relates to the technical field of memory management, and in particular to a memory management method, device, electronic equipment and storage medium. Background technique [0002] ION, a set of mechanisms for Linux large block memory allocation management, is a general memory manager introduced to solve memory fragmentation management. The Android (Android) operating system introduces the ION memory manager on the basis of the memory management mechanism based on the Linux kernel. The goal of ION design is to avoid memory fragmentation, or for some applications with special memory requirements, such as cameras, video players, etc., when the system starts, some memory pools will be reserved for them, called ION pools, ION The ION memory of the pool is managed by ION. [0003] However, the amount of memory occupied by the ION pool cannot be determined quantitatively by the operating system. Generally, only when the system 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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5016G06F9/5022
Inventor 赵林
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD
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