Data writing device and method for key value storage system
A data writing and storage system technology, applied in the input/output process of data processing, electrical digital data processing, input/output to record carrier, etc. Protect disk fragmentation and other issues, achieve the effect of preventing improper rewriting, improving garbage collection efficiency, and alleviating the degree of hard disk fragmentation
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Such as figure 1As shown, the present embodiment provides a data writing device for a key-value storage system, the key-value storage system is built in a shingled magnetic recording SMR hard disk, including an instruction receiving unit 1 for receiving a write instruction, for Judging unit 2 and writing unit 3 for judging whether the location to be written to the key-value data object is located in the protected area. The write instruction received by the receiving unit 1 is used to instruct to write the key-value data object into the SMR hard disk. The SMR hard disk includes multiple hard disk partitions and a protected area, and the protected area stores a firmware. The protected area includes the controller program code and a main program code of the firmware, and the main program code of the firmware includes a configuration address data, wherein the configuration address data records the address range of the protected area in the firmware memory . If the judging...
Embodiment 2
[0029] Such as figure 2 As shown, the data writing device for the key-value storage system also includes a moving unit 4, and at least one sub-data object included in the key-value data object corresponds to the object identifier of the key-value data object. On the basis of Embodiment 1, in When the invalid data in the SMR hard disk is garbage collected, the judging unit 2 is also used to judge whether each valid sub-data object of the corresponding object identifier is stored in the same hard disk partition, and the invalid data is a part or part of the subsequent deleted key-value data object. All child data objects are formed. If the judging result of judging unit is that each effective sub-data object is not stored in the same hard disk partition, then determine the second target partition in a plurality of hard disk partitions; moving unit 4 is used to move each effective sub-data object to the first Two adjacent tracks in the target partition.
[0030] When determini...
Embodiment 3
[0032] Such as image 3 As shown, the present embodiment provides a data writing method for a data writing device of a key-value storage system. The key-value storage system is built in a shingled magnetic recording SMR hard disk, including the following steps:
[0033] S1: Receive a write command, the write command is used to indicate that the key-value data object is written into the SMR hard disk, the SMR hard disk includes a plurality of hard disk partitions and a protected area, and the protected area stores a firmware; the protected area includes the controller program code and a main program code of the firmware, and the main program code of the firmware includes a configuration address data, wherein the configuration address data records the address range of the protected area in the firmware memory;
[0034] S2: Determine whether the location where the key-value data object is to be written is located in the protected area,
[0035] If the location to be written is l...
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