SSD (Solid State Drive) data migration method and device
A solid-state hard disk and data technology, applied in the storage field, can solve the problems of untimely replacement of hot data, long replacement time, and long access response time, so as to improve the response time and access rate, and improve the acceleration effect.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] see first figure 2 , figure 2 It is a schematic flowchart of a method for migrating solid-state hard disk data provided by an embodiment of the present invention. The embodiment of the present invention may include the following:
[0068] S201: Establish a cache queue and a pre-cache queue respectively in the cache data pool and the pre-cache data pool, the cache queue includes access heat information of cached data blocks, and the pre-cache queue includes access heat information of uncached data blocks; The level of the object corresponding to the data block in the queue increases as the access popularity increases.
[0069] The structure of the cache data pool (cache_pool) and the pre-cache data pool (pre_cache_pool) is as follows image 3 As shown, the data in the two pools can be stored in two consecutive memory segments. These two segments of memory can be divided into equal sizes and numbered according to the size of the object (entry). The number of entries i...
Embodiment 2
[0112] see Figure 7 , Figure 7 It is a schematic flowchart of another solid-state hard disk data migration method provided by the embodiment of the present invention, which may specifically include the following:
[0113] S701-S704: the details are consistent with the description of S201-S204 in Embodiment 1, and will not be repeated here.
[0114] S705: When the current level of the object in the cache queue reaches a second preset level, remove the object from the cache queue, and erase the corresponding data block from the cache.
[0115] Specifically, each of the objects in the updated cache queue is at a new level, which can be compared with the preset level. If it is lower than the preset level, it means that the data corresponding to the object in the current cache queue is not hot data. The object is removed from the cache queue, corresponding to the erasure of the data block from the cache. For example, suppose the entry level of the object in the cache queue is ...
Embodiment 3
[0119] see Figure 8 , Figure 8 A structural diagram of a solid-state hard disk data migration device provided by an embodiment of the present invention, the device may include:
[0120] The establishment module 801 is configured to respectively establish a cache queue and a pre-cache queue in the cache data pool and the pre-cache data pool, the cache queue includes access heat information of cached data blocks, and the pre-cache queue includes access heat information of uncached data blocks Information; the level of the object corresponding to the data block in the queue increases with the increase of access popularity.
[0121] Calculation module 802, configured to calculate the cache hit ratio of cached data in the current solid state disk.
[0122] The calculation module includes:
[0123] A judging unit 8021, configured to judge whether the currently accessed data block is the cache data;
[0124] The calculation unit 8022 is configured to calculate the cache hit rat...
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