Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and apparatus for writing data into cache

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

Active Publication Date: 2015-12-02
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF5 Cites 11 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 apparatus for writing data into cache
  • Method and apparatus for writing data into cache
  • Method and apparatus for writing data into cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] 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 making creative efforts belong to the protection scope of the present invention.

[0066] In order to facilitate the understanding of the embodiments of the present invention, further explanations will be given below with specific embodiments in conjunction with the accompanying drawings, which are not intended to limit the embodiments of the present invention.

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

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

An embodiment of the invention discloses a method and an apparatus for writing data into cache, wherein the method comprises: receiving a write IO request command; the write IO request command comprises metadata of data to be written; acquiring a first partner group from global partner lists and judge whether all of metadata of the data to be written can be written into the first partner group or not; if all of the metadata of the data to be written can be written into the first partner group, then all of the metadata of the data to be written are written into the first partner group; and all of the metadata of the data to be written are written into a metadata block corresponding to a metadata set to which the first partner group belongs. By adopting the method, the problem of Flash service life influenced by frequently writing the metadata into Flash is solved.

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 adopted are all based on non-volatile memory (ANon-VolatileDualIn-lineMemoryModule, NVDIMM) or non-volatile random access memory (Non-VolatileRandomAccessMemory, NVRAM) ), however, based on the above-mentioned 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 times of writing, for example, Multi-Level Cell (MLC) flash memory is u...

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): G06F12/08
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products