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

Method for clearing off scratch files

A technology for expired files and files, which is applied in the fields of electronic digital data processing, special data processing applications, instruments, etc., can solve problems such as the difficulty of cleaning up expired files, the difficulty of script control, and the inability to effectively guarantee the running space of the working partition of the server, etc. , to achieve good promotion and application value, and simplify the effect of regular inspection

Inactive Publication Date: 2017-10-20
SHANDONG INSPUR COMML SYST CO LTD
View PDF4 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, it is difficult to control the simple cleanup script based on date and time, which brings difficulties to the cleanup of expired files, so it cannot effectively ensure that the working partition of the server has enough running space

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
  • Method for clearing off scratch files

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0028] The method for clearing expired files of the present invention cleans up expired files according to the remaining space of the working partition and the file modification time, and the method is applicable to common operating systems of Windows and Linux servers.

[0029] First, specify the path to monitor and clean up expired files, and set the time interval to scan the space occupation percentage of the specified work partition. If the space occupation percentage of the work partition exceeds the threshold percentage, it will traverse all the files in the working directory, and the modification time of the file will be set earlier. Files on the expiration threshold date are deleted. After completing a traversal, re-count the space usage percentage of the working partition. If the space usage percentage of the working partition after the re-statistic is lower than the threshold percentage, the clearing is completed. If the space usage percentage of the working partition...

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 method for clearing off scratch files, and belongs to the technical field of maintenance of server systems. A route for monitoring and clearing the scratch files is appointed, the space occupation percentage of an appointed working partition is scanned by a preset time interval, all files in a working log are traversed if the space occupation percentage of the working partition exceeds a percentage threshold value, the space occupation percentage of the working partition is counted again after traversing is completed, clearing is ended if the space occupation percentage of the working partition after recounting is smaller than the percentage threshold value, and otherwise an expire threshold date is delayed. With the method for clearing off the scratch files, it is guaranteed that sufficient operation space is kept in the working partition of a server, useful files are stored as many as possible, meanwhile, the work of regular check, follow-up, treatment and others can be simplified for operation and maintenance staff, and the method has quite good application and popularization value.

Description

technical field [0001] The invention relates to the technical field of server system maintenance, and specifically provides a method for clearing outdated files. Background technique [0002] For files such as server running logs, temporary files generated by program operations, cache files generated by downloading or running, and data backups and snapshots, these files tend to accumulate more and more as the business operation time goes by. Although the above-mentioned files themselves may have the function of regular clearing, when clearing expired files, residual junk files may also appear due to file clearing failures. There are even some files that do not have an active periodic clearing function, but require regular maintenance or write certain cleanup scripts to be executed regularly by operation and maintenance personnel, which will increase operating costs. [0003] The increase process of some temporary or cache files is non-linear, that is, the increase speed, th...

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): G06F17/30
CPCG06F16/1727G06F16/162
Inventor 赵明刘永辉房兰涛张宇
Owner SHANDONG INSPUR COMML SYST 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