Effective data bitmap creation method and device, storage medium and electric equipment
An effective data and bitmap technology, applied in the input/output process of data processing, electrical digital data processing, instruments, etc., can solve the problems of low efficiency of garbage collection and achieve the effect of improving efficiency and fast access speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] Please refer to figure 1 , a method for creating an effective data bitmap, comprising steps:
[0073] S1. Load the valid data bitmap corresponding to each super block in the flash memory of the solid-state hard disk into the host memory buffer of the solid-state hard disk;
[0074] When the SSD card is activated successfully, it will initialize the VBMP (valid data bitmap) corresponding to each super block. The VBMP corresponding to each super block is expressed in the form of a bit array, and each bit corresponds to the 4k storage space of a specific page. Set all the bits in VBMP to be invalid. You can set a specific value to be invalid according to your needs. For example, you can set it to be invalid when it is 0 and valid when it is 1. You can also set it to be invalid when it is 1 and valid when it is 0. ;
[0075] For example, if there are 10,000 4K data on each super block, bit data can be used as the VBMP corresponding to the super block, bit 0 means the firs...
Embodiment 2
[0106] The difference between this embodiment and Embodiment 1 is that it further defines how to rebuild the mapping table and valid data bitmap after abnormal power failure:
[0107] Write the valid data bitmap in the host memory buffer to the flash memory of the solid-state hard disk while writing the updated mapping table to the flash memory of the solid-state hard disk each time;
[0108] After updating the mapping table and writing the updated mapping table to the flash memory of the solid-state hard disk each time, the last physical address of the updated mapping table is determined as a boundary point, and the boundary point is stored In the flash memory of the solid-state hard disk, through the boundary point, you can know that the physical address corresponding to the data written before the boundary point has been updated in the mapping table and written into the flash memory. The boundary point is read from the flash memory of the hard disk, and then the data page a...
Embodiment 3
[0118] Please refer to figure 2 , a device for creating an effective data bitmap, comprising:
[0119] A loading module, configured to load the valid data bitmap corresponding to each super block in the flash memory of the solid-state hard disk into the host memory buffer of the solid-state hard disk;
[0120] An update module, configured to update the corresponding valid data bitmap in the host memory buffer when updating the mapping table;
[0121] A receiving module, configured to receive a garbage collection request, and determine a target super block corresponding to garbage collection according to the garbage collection request;
[0122] The creation module is used to load the effective data bitmap corresponding to the target super block in the memory buffer of the host into the controller memory of the solid-state hard disk.
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