Memory compression method and device, terminal and storage medium

A compression method and memory technology, applied in the memory system, memory address/allocation/relocation, instruments, etc., can solve the problems of wasting CPU compression or decompression time, consuming memory central processing unit, etc., to improve the overall compression rate , to avoid the effect of decompression and release of memory space

Active Publication Date: 2019-11-15
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF12 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Using the memory compression mechanism requires a certain amount of memory, central processing unit (Central Processing Unit, CPU) and input/output interface (Input/Output, I/O), but some memory pages after com

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 compression method and device, terminal and storage medium
  • Memory compression method and device, terminal and storage medium
  • Memory compression method and device, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0030] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in further detail below in conjunction with the accompanying drawings.

[0031] The "plurality" mentioned herein means two or more. "And / or" describes the association relationship of the associated object, indicating that there can be three types of relationships, for example, A and / or B, which can mean: A alone exists, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0032] In related technologies, the memory compression mechanism is a mechanism that compresses memory pages and writes them into the memory compression space. When the memory compression trigger condition is met, for example, when the system memory is tight, select the least used memory page from the target linked list for memory compression, and then ...

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 embodiment of the invention discloses a memory compression method and device, a terminal and a storage medium, and belongs to the field of memory compression. The method comprises the following steps: when a memory compression triggering condition is met, performing memory compression on a target memory page in a memory space to obtain a compressed target memory page; determining the compression rate of the target memory page according to the data volume of the target memory page before and after compression; if the compression rate indicates that the target memory page meets a writing condition, writing the compressed target memory page into a memory compression space in the memory space; and if the compression rate indicates that the target memory page does not meet the writing condition, stopping writing the target memory page into the memory compression space. By setting the write-in condition and refusing to write the memory pages which do not meet the write-in condition intothe memory compression space, the useless decompression process of the CPU is reduced, and the overall compression ratio of the memory compression space is further improved.

Description

technical field [0001] The embodiments of the present application relate to the field of memory compression, and in particular to a memory compression method, device, terminal, and storage medium. Background technique [0002] The terminal will allocate certain memory pages according to the needs of the application. Even if the application is not running, it will occupy a part of the memory page. When the terminal memory is tight, it will use the memory compression mechanism to reduce the memory occupied by the application. The page is compressed, and the compressed memory page is first written into the compressed space, which can release a part of the memory space. When the data is needed again, it is decompressed and then called. [0003] Using the memory compression mechanism requires a certain amount of memory, central processing unit (Central Processing Unit, CPU) and input / output interface (Input / Output, I / O), but some memory pages after compression are equivalent to t...

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/02
CPCG06F12/023
Inventor 周华材
Owner GUANGDONG OPPO MOBILE TELECOMM CORP 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