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

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 compression are equivalent to the size before compression. Compressing the memory pages cannot achieve the purpose of releasing the memory space as soon as possible, and also wastes CPU compression or decompression time

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

Embodiment Construction

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

[0031] The "plurality" mentioned herein means two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and / or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character " / " generally indicates that the contextual objects are an "or" relationship.

[0032] In related technologies, the memory compression mechanism is a mechanism for compressing memory pages and writing them into memory compression space. When the memory compression trigger condition is satisfied, for example, when the system memory is tight, select the memory page with the least number of usages from the target linked list for...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products