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

A cache data processing method and device

A caching data and caching technology, which is applied in the computer field, can solve problems such as increased system burden and high overhead, and achieve the effect of reducing system burden

Active Publication Date: 2022-04-29
GUANGZHOU HUADUO NETWORK TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But when there are too many files, the overhead of traversing the specified directory will be very high, so that every time the cache is cleaned, the system burden will be increased

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
  • A cache data processing method and device
  • A cache data processing method and device
  • A cache data processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0022] See figure 1 , is a schematic flowchart of a buffer data processing method provided by an embodiment of the present invention, and the method may include:

[0023] S101. Detect disk space usage and index node usage;

[0024] Specifically, the disk space usage rate and the index node (inode) usage rate are checked regularly, for example, the disk space usage rate and the index node usage rate are checked every 10 seconds by default. After the disk space usa...

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 present invention discloses a cache data processing method and device, wherein the method includes: detecting disk space usage and index node usage; when the disk space usage exceeds the first usage threshold and / or the index node When the usage rate exceeds the second usage rate threshold, a preset file management list is obtained; wherein, the file usage information corresponding to each target file information in the file management list is updated in real time; Among the target file information to be sorted, at least one target file information is obtained in sequence as at least one file information to be cleaned, and the cache data respectively corresponding to the at least one file information to be cleaned is cleaned. By adopting the present invention, the system load can be reduced when cleaning the cache.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a cache data processing method and device. Background technique [0002] Linux is a set of unix-like operating systems that are free to use and spread freely. , central processing unit) operating system. [0003] Applications based on the Linux operating system often use the file system as a data cache, but when the application uses a large number of files as a data cache, it will face cache management problems. At this time, the files need to be cleaned up regularly to avoid disk not enough space. Common cache cleaning algorithms include LFU (least frequently used, least recently used algorithm) and LRU (Least Recently Used, least recently used algorithm). [0004] The current common file cleaning method is to traverse through the shell script to find the specified directory, and clean up according to the file access time, editing time and other information. Howeve...

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 Patents(China)
IPC IPC(8): G06F12/121
Inventor 黄伟
Owner GUANGZHOU HUADUO NETWORK TECH