Method for writing data in storage device and storage device

A storage device and data writing technology, which is applied in the storage field and can solve problems such as write cache failure and excessive data

Active Publication Date: 2016-01-20
HUAWEI TECH CO LTD
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Embodiments of the present invention provide a method for writing data into a storage device and a storage device, wh

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the embodiments of the present invention.

[0058] In the following, some terms used in the embodiments of the present invention are explained to facilitate the understanding of those skilled in the art.

[0059] 1) Storage pool: a container for storing data. The storage space used by all application servers comes from the storage pool, and the storage resources of the st...

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 method for writing data in a storage device and the storage device, and aims to solve the technical problem that a write cache is invalid due to the fact that data stored in the write cache is too much. The method comprises the following steps: determining an available storage capacity in a first storage space, wherein the first storage space is used for storing data written in a write back mode and data written in a write through mode; and writing the data stored in the write cache in a second storage space if the available storage capacity in the first storage space is less than or equal to a pre-set capacity, wherein the second storage space is used for storing the data written from the write cache.

Description

technical field [0001] The invention relates to the field of storage technology, in particular to a method for writing data into a storage device and the storage device. Background technique [0002] At present, in order to shorten the response delay to the host, storage devices usually work in the write-back mode. The write-back mode is a caching technology, that is, first write data to the write cache, and then write data from the write cache. To the caching technology in SSD (Solid State Drive, solid state drive). In the write-back mode, data is first written to the write cache. Once the data is written to the write cache, the storage device sends a signal that the write request has been completed, and then writes the data in the write cache to the SSD. [0003] However, as the amount of written data increases, the space of the SSD will gradually be exhausted. When the space of the SSD is exhausted, if there is data in the write cache that has not been written to the SSD...

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
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