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

Method and device for storing data

A technology of data storage and storage device, which is applied in the direction of electrical digital data processing, input/output process of data processing, instruments, etc., can solve the problems of short lifespan of SSD and reduced storage efficiency of SSD

Active Publication Date: 2015-04-29
HUAWEI TECH CO LTD
View PDF8 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a data storage method and device, which solves the problem that the life of the SSD becomes very short and the storage efficiency of the SSD is reduced due to the frequent writing of data into the SSD.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0067] Embodiments of the present invention provide a data storage method, such as figure 1 shown, including:

[0068] 101. The data storage device counts the number of visits of any data in the data storage device within N cycles, N>0.

[0069] 102. The data storage device determines the SSD feature of the data according to the access volume of the data in N cycles, and the SSD feature is used to reflect the activity of the data in N cycles.

[0070] 103. If it is determined that the data satisfies at least one SSD feature, the data storage device stores the data in the SSD.

[0071] In a data storage system or a database system, memory, SSD, and hard disk can be used as storage media to store various data, so that users can access various data from the storage media. Further, the order of access speed of these three storage media is: memory>SSD>disk, and the order of capacity of these three storage media is: memory<SSD<disk, it can be seen that due to the large capacity of...

Embodiment 2

[0089] Embodiments of the present invention provide a data storage method, such as image 3 shown, including:

[0090] 201. The data storage device counts the number of visits of any data in the data storage device within N periods respectively, where N>0.

[0091] 202. The data storage device determines the number of SSD features that the data satisfies according to the access volume of the data in N cycles, and the SSD features include access volume features, activity proportion features, and continuous activity features.

[0092] 203. The data storage device determines the priority of writing the data to the SSD according to the number of SSD characteristics that the data satisfies, and puts the data into a candidate queue.

[0093] 204. The data storage device selects the first K data at the head of the candidate queue, and writes them into the LRU queue in the SSD according to the priority of each data.

[0094] 205. The data storage device updates the LRU queue to whic...

Embodiment 3

[0122] attached Figure 6 What is shown is a hardware schematic diagram of the data storage device of the present invention.

[0123] Such as Figure 6 , the data storage device includes a processor 11 , a communication interface 12 , a memory 13 , an SSD 14 and a bus 15 .

[0124] Wherein, the processor 11 , the communication interface 12 , the memory 13 and the SSD 14 are communicatively connected through the bus 15 .

[0125] The processor 11 is the control center of the data storage device. The processor 11 processes the data received by the communication interface 12 and invokes software or programs in the memory 13 to execute various functions of the data storage device.

[0126] The communication interface 12 may be realized by an optical communication interface 12, an electrical communication interface 12, a wireless communication interface 12 or any combination thereof. For example, the optical communication interface can be a small form-factor pluggable (English: ...

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 invention provides a method and device for storing data, relating to the field of data storage and solving the problems that the service life of an SSD (Solid State Drive) becomes short and the storing efficiency of the SSD is reduced because of frequently writing data to the SSD. The scheme comprises the following steps of: respectively counting the visiting volume of any data in the device for storing data in N periods, and N is greater than 0; determining whether the data meet the features of the solid state drive SSD according to the visiting volume of the data in the N periods, wherein the features of the SSD are used for reflecting the liveness of the data in the N periods; storing the data in the SSD if the data meet at least one feature of the SSD.

Description

technical field [0001] The invention relates to the field of data storage, in particular to a data storage method and device. Background technique [0002] At present, commonly used storage media in data storage systems include memory (Memory), SSD (Solid State Drives, solid state drive) and disk (Disk), where the access speed of these three storage media is sorted as: memory>SSD>disk, The capacity of these three storage media is sorted as follows: memory < SSD < disk. It can be seen that compared with disk, memory and SSD have smaller capacity but faster access speed. Therefore, memory is usually used as a first-level cache to store some access More frequent popular data, when the memory capacity is insufficient, the least used data in the memory for a period of time can be written into the SSD as the second-level cache according to the LRU (Least Recently Used, least recently used algorithm) mechanism. At the same time, the SSD Based on the same LRU mechanism,...

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 Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/061G06F3/0616
Inventor 柴云鹏孙东旺
Owner HUAWEI 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