Cache writing method, device, apparatus, and readable storage medium
A storage medium and cache technology, applied in the storage field, can solve the problems of insufficient utilization of HDD bandwidth and high cost of SSD
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] Please refer to figure 1 , figure 1It is a flow chart of a cache writing method in an embodiment of the present invention, and the method can be applied to a distributed block storage system. The method includes the following steps:
[0054] S101. Read the cached target stripe file from the SSD according to the file index arrangement sequence in the LRU table.
[0055] Among them, LRU is the abbreviation of Least Recently Used, that is, the least recently used; its purpose is to arrange cold data at the end of the queue and hot data at the beginning of the table. Among them, the hot and cold data can be divided according to the access heat of the data. In a distributed block storage system, blocks are usually divided into stripes of 4MB. At this time, the size of each file is 4MB. In the downlink (download in this article refers to writing the cached data in the SSD to the HDD In the middle), the LRU table formed according to the order in which the files are accesse...
Embodiment 2
[0095] Corresponding to the above method embodiments, an embodiment of the present invention further provides a cache writing device, and the cache writing device described below and the cache writing method described above may be referred to in correspondence.
[0096] see image 3 As shown, the device includes the following modules:
[0097] The file analysis module 101 is used to read the target stripe file of the cache from the SSD according to the order of the file index in the LRU table, and judge whether the number of file fragments of the target stripe file is greater than a preset threshold;
[0098] Aggregation module 102 is used for, if yes, aggregates the target stripe file to obtain an aggregated data block;
[0099] The next brushing module 103 is used to write aggregated data blocks in the HDD at one time through an IO;
[0100] The space reclamation module 104 is configured to delete the target stripe file from the SSD.
[0101] Apply the device provided by ...
Embodiment 3
[0111] Corresponding to the above method embodiments, an embodiment of the present invention further provides a cache writing device, and a cache writing device described below and a cache writing method described above may be referred to in correspondence.
[0112] see Figure 4 As shown, the cache write device includes:
[0113] memory D1 for storing computer programs;
[0114] The processor D2 is configured to implement the steps of the cache writing method in the above method embodiment when executing the computer program.
[0115] Specifically, please refer to Figure 5 , which is a specific structural diagram of a cache writing device provided in this embodiment. The cache writing device may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) ) 322 (eg, one or more processors) and memory 332, one or more storage media 330 (eg, one or more mass storage devices) for storing applic...
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