Method and device for writing data

A technology for writing data and data, which is applied in the field of writing data, can solve the problems of storage system reading and writing performance degradation, IO cannot be aligned in strips, etc., and achieve the effect of reducing the number of writing IOs and reducing the pressure of reading and writing

Active Publication Date: 2016-12-07
HUAWEI TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] In view of this, the technical problem to be solved by the present invention is that because the IOs of the RAID issued by the cache cannot be aligned in stripes, it is necessary to first read data from the disk to the cache when performing writing, which leads to the problem of degraded read and write performance of the storage system

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
  • Method and device for writing data
  • Method and device for writing data
  • Method and device for writing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] Various exemplary embodiments, features, and aspects of the invention will be described in detail below with reference to the accompanying drawings. The same reference numbers in the figures indicate functionally identical or similar elements. While various aspects of the embodiments are shown in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.

[0055] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as superior or better than other embodiments.

[0056] In addition, in order to better illustrate the present invention, numerous specific details are given in the specific embodiments below. It will be understood by those skilled in the art that the present invention may be practiced without certain of the specific details. In some instances, methods, means, components and circuits well kn...

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

A data writing method and device, comprising: determining the number of first sub data chunk sets in the data chunks, all data stored in each sub data chunk in the first sub data chunk sets being corrupted data; when the number of first sub data chunk sets exceeds a threshold, determining second sub data chunk sets, a second sub data chunk set being a set of continuous sub data chunks with all data stored in the first and last sub data chunks being corrupted data; when the number of second sub data chunk sets does not exceed the threshold, generating a first data writing request respectively for each second sub data chunk set in the data chunks, and sending the first data writing request to storage; and when the number of second sub data chunk sets exceeds a threshold, generating a second data writing request for data chunks and sending the second data writing request to storage. The data writing method and device do not allow data to be read from a disk to a cache when writing the data, thus reducing the read and write pressure on the RAID.

Description

technical field [0001] The invention relates to the field of storage, in particular to a method and device for writing data. Background technique [0002] High-speed cache (English: cache) and cheap redundant disk array (English: Redundant Arrayof Inexpensive Drivers, abbreviation: RAID) are two important modules in the storage system. Among them, the cache, as the performance accelerator of the storage system, can well shield the array delay and make the host input and output (English: Input and Output, abbreviation: IO) more friendly to access the hard disk. The principle of RAID is to combine multiple relatively cheap hard disks to form a hard disk array group, so that the performance can reach or even exceed that of an expensive hard disk with huge capacity, and cooperate with the design of scattered data arrangement to improve data security. According to the selected version, compared with a single hard disk, RAID can not only increase the storage capacity, but also en...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/0877G06F12/0871
CPCG06F12/0871G06F2212/1024
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