Data writing device and method

A data writing and data technology, applied in the input/output process of data processing, electrical digital data processing, input/output to record carrier, etc., can solve problems affecting the efficiency of storage system garbage collection, hard disk fragmentation, etc. Achieve the effect of improving the efficiency of garbage collection and alleviating the degree of fragmentation

Active Publication Date: 2016-06-15
HUAWEI TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In order to solve the problem in the prior art that deleting key-value data objects will cause multiple holes on the SMR hard disk, causing serious fragmentation of the hard disk and affecting the efficiency of garbage collection in the storage sys

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data writing device and method
  • Data writing device and method
  • Data writing device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0024] Please refer to figure 1 It shows a schematic structural diagram of a storage device 100 provided by an exemplary embodiment of the present invention. The storage device 100 includes: a storage controller 110 and at least one hard disk 120 . Wherein, the storage device 100 runs a key-value storage system, and at least one hard disk 120 is an SMR hard disk.

[0025] Optionally, there are one or more storage controllers 110 in the storage device 100 . For example, there are two storage controllers 110, one of which is the main storage controller and the other is the backup storage controller. When the primary storage controller fails, the backup storage controller operates instead of the primary storage controller.

[0026] Th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a data writing method, and belongs to the technical field of data storage. The method is used for a key value storage system which is built in an imbricated type magnetic recording SMR hard disk. The method comprises the steps that a writing instruction is received and used for giving an instruction for writing a key value data object into the SMR hard disk, and the SMR hard disk comprises multiple hard disk partitions; a first target partition is determined from the hard disk partitions; the key value data object is segmented into at least one sub data object, and the sub data objects are sequentially written in adjacent magnetic rails in the first target partition. Accordingly, formed invalid data is relatively concentrated when part or all of the sub data objects in the key value data object are deleted in the subsequent process, too many cavities cannot be caused on the SMR hard disk, the fragmentation degree of the SMR hard disk is relieved, and then the garbage recycling efficiency of the system is improved.

Description

technical field [0001] The invention relates to the technical field of data storage, in particular to a data writing device and method. Background technique [0002] SMR (Shingled Magnetic Recording, Shingled Magnetic Recording) technology is a new hard disk storage technology. The current SMR hard disk is partitioned according to the magnetic track, and the end of each hard disk partition does not adopt the shingled layout. [0003] KV (Key-Value, key-value) storage is a commonly used non-relational storage method. When using key-value storage to store data, a key-value data object is usually divided into several sub-data objects, and then hashed (hash ) method to scatter all sub-data objects to the hard disk for storage. When the key-value data object is stored in the SMR hard disk, several sub-data objects of a key-value data object will be scattered in each hard disk partition, or in discontinuous physical areas on the same hard disk partition. [0004] In the process...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F3/06
CPCG06F3/06G06F3/0608G06F3/0644G06F3/0673
Inventor 薛贞文夏勇
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products