Method and device for writing data into cache

A technology for writing data and data, which is applied in the input/output process of data processing, electrical digital data processing, memory systems, etc., and can solve problems affecting the life of Flash

Active Publication Date: 2018-07-03
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The embodiment of the present invention provides a method and device for writing data into the cache, which can solve the problem of frequently writing metadata into the Flash and affecting the life of the Flash

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0066] In order to facilitate the understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the drawings, and the embodiments do not constitute a limitation to the embodiments of the present invention.

[0067] figure 1 It is a schematic diagram of a data layout o...

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 embodiment of the present invention discloses a method and device for writing data into a cache. The method includes: receiving a write IO request command, the write IO request command includes metadata of the data to be written; Obtain the first partner group, judge whether all the metadata of the data to be written can be written in the first partner group; if so, write all the metadata of the data to be written into the first partner group, and All metadata of the data to be written is written in the metadata block corresponding to the metadata group to which the partner group belongs. The invention can solve the problem of frequently writing metadata into the Flash and affecting the life of the Flash.

Description

Technical field [0001] The embodiments of the present invention relate to the field of data storage, and in particular, to a method and device for writing data into a cache. Background technique [0002] In the existing read-write cache (Cache) in the industry, the storage media generally used are based on non-volatile memory (A Non-Volatile Dual In-line Memory Module, NVDIMM) or non-volatile random access memory ( Non-Volatile Random Access Memory, NVRAM), however, based on the above devices, the capacity of the write cache is usually relatively small, and it is difficult to cope with a large number of random write pressure scenarios. [0003] In the prior art, a flash memory (Flash) device is used as the Cache. To ensure data security, each write request requires two IOs, one for writing data IO, and the other for writing metadata IO. The lifespan of Flash is directly related to the number of writes. For example, Multi-Level Cell (MLC) is usually only about 5000-10000 times. T...

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/0802
CPCG06F12/08G06F12/023G06F12/0246G06F2212/214G06F12/0815G06F12/0866G06F3/064G06F3/0656G06F3/0616G06F3/0659G06F3/0679G06F12/084G06F2212/222G06F2212/604
Inventor 黄福堂
Owner HUAWEI CLOUD COMPUTING 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