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

File page processing method and device, terminal equipment and storage medium

A file page and processing method technology, applied in the field of page access, can solve problems such as system performance deterioration and waste of memory space

Pending Publication Date: 2020-12-11
OPPO CHONGQING INTELLIGENT TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Although, the zcache mechanism makes it possible to save file pages in memory when the system memory is tight, reduce the number of times to read data from the disk, and optimize system performance, especially when the cached file pages can be accessed. Using the zcache mechanism will undoubtedly Improve the performance of the system; however, if the cached file pages will not be accessed, or are accessed with a very low probability, then such pages will be resident in memory, which will waste memory space and deteriorate system performance

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
  • File page processing method and device, terminal equipment and storage medium
  • File page processing method and device, terminal equipment and storage medium
  • File page processing method and device, terminal equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0027] The main solution of the embodiment of the present application is: when the current trigger is detected to determine whether to compress the file page cache, or when the current system memory usage reaches the trigger condition for reclaiming the file page cache, obtain the The state of the file page; when the state of the file page is a preset inactive state, it is determined not to compress the file page cache, and the file page cache is moved out of the system memory. Therefore, through this solution, when the system memory is tight, when compressing file pages through zcache, those file pages with a high probability of being accessed only once in the life cycle are excluded, and these file pages are directly eliminated from the memory without cache compression. After this optimization, ...

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 file page processing method and device, terminal equipment and a storage medium. The method comprises the steps of obtaining the state of a file page when a current trigger is monitored to judge whether to carry out the compression processing of a file page cache or not; and when the state of the file page is a preset inactive state, determining that the file page cache is not compressed, and moving the file page cache out of a system memory. Therefore, through the scheme, when the system memory is in shortage and the file pages are compressed through the compressionmechanism, the file pages with large life cycle and low probability are excluded, and the file pages are directly eliminated from the memory without cache compression. Therefore, the file page cache with low use probability is prevented from being compressed and staying in the memory, memory waste is avoided, and system performance is prevented from being affected.

Description

technical field [0001] The present application relates to the technical field of page access, and in particular to a file page processing method, device, terminal device and storage medium. Background technique [0002] Linux zcache is a mechanism for compressing filecache (file page cache). If there is no zcache mechanism, follow the least-recently-used principle for page elimination, and the least-recently-used file page cache will be eliminated from the memory. When the file page is accessed next time, the file page needs to be read from the disk into the memory. , this process is time-consuming and has a great impact on system performance. If the zcache mechanism is used, when the memory of the Linux system is tight and the least recently used filecache is recovered, the filecache that was originally to be eliminated from the memory will be compressed, and then the compressed data will be placed in the memory. When the file page is revisited, As long as the compressed ...

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): G06F16/957G06F16/958
CPCG06F16/9574G06F16/958
Inventor 李培锋
Owner OPPO CHONGQING INTELLIGENT TECH CO 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