Method for reducing fragments of log structure file system and flash memory storage system
A file system and log technology, applied to the file system, file system functions, instruments, etc., can solve the problems of increasing overhead, endangering the life of flash memory, etc., and achieve the effect of reducing file fragmentation and logical space fragmentation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0060] A way to reduce fragmentation of log-structured filesystems such as figure 1 As shown, it includes: separating temporary write data at the logical layer, specifically including the following steps:
[0061] When writing the target data block into the log-structured file system, extract the characteristics of the file to which the target data block belongs, and identify whether the file is a temporary write file based on the extracted characteristics;
[0062] If the file to which the target data block belongs is a temporary write file, after setting the type flag for the target data block, write the target data block into the pre-allocated temporary logical log segment; The hot and cold attributes of the block, after setting the type mark for the target data block, write the target data block to the corresponding logical log segment;
[0063] Wherein, the type mark of the data block is used to indicate the type of the logical log segment to which the data block belongs...
Embodiment 2
[0089] A method for reducing fragmentation of a log-structured file system. This embodiment is similar to the above-mentioned Embodiment 1, except that in this embodiment, the characteristics of the file include the life cycle of the file, and whether the file is identified based on the extracted characteristics For temporary writing files, including:
[0090] Judging whether the life cycle of the file is less than a preset first threshold, if yes, then judging that the file is a temporary writing file; if not, then judging that the file is not a temporary writing file.
[0091] Temporary write files have the characteristics of short life cycle. In this embodiment, the file life cycle is used as the feature for identifying temporary write files, which can accurately identify temporary write files and realize the separation of temporary write file data from other file data; the specific value of the first threshold The value can be obtained after collecting and analyzing the da...
Embodiment 3
[0093] A method for reducing fragmentation of a log-structured file system. This embodiment is similar to the above-mentioned Embodiment 1, except that in this embodiment, the characteristics of the file include the frequency of file creation and deletion, and the file is identified based on the extracted characteristics. Whether to write files temporarily, including:
[0094] It is judged whether the creation and deletion frequency of the file is higher than the preset second threshold, if yes, it is determined that the file is a temporary write file; if not, it is determined that the file is not a temporary write file.
[0095] Temporary write files have the characteristics of frequent creation and deletion. The present invention takes the creation and deletion frequency of files as the feature of identifying temporary write files, can accurately identify temporary write files, and realizes the separation of temporary write file data from other file data; the second threshold...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com