Method and system for storing and obtaining data

A data storage system and data storage technology, applied in the computer field, can solve problems such as data loss, increase mirroring process, etc., and achieve the effect of simplifying design and not easy to lose

Active Publication Date: 2009-06-03
CHENGDU HUAWEI TECH
View PDF2 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor found that in the process of creating the present invention, in order to solve the data loss problem of the cache co

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

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0023] Example one:

[0024] See figure 1 , figure 1 This is a schematic flowchart of a data storage method provided in Embodiment 1 of the present invention. Such as figure 1 As shown, the method can include:

[0025] Step 101: Write the data input by the host into the solid-state hard disk array.

[0026] Among them, the solid-state hard disk array is composed of several rows and several columns of solid-state storage chips. Compared with the volatility of data in random access memory, solid-state hard disks are non-volatile. Even if the solid-state drive array loses power, the data stored will not be lost.

[0027] Step 102: Compare whether the current data volume of the solid-state hard disk array is greater than or equal to a preset threshold, and if so, transfer the data of the solid-state hard disk array to the local hard disk.

[0028] Wherein, the method for implementing step 102 may specifically include:

[0029] Count the current data volume of the solid-state drive ...

Example Embodiment

[0033] Embodiment two:

[0034] See figure 2 , figure 2 This is a schematic flowchart of a data storage method provided in Embodiment 2 of the present invention. Such as figure 2 As shown, the method can include:

[0035] Step 201: Receive a data write request sent by the host, and schedule the data write request.

[0036] Among them, scheduling the data write request may specifically include:

[0037] Obtain the physical address of the SSD array according to the logical address of the SSD array carried in the data write request;

[0038] Sort the physical addresses of the SSD array in order of size.

[0039] The data write request is scheduled to facilitate writing the data input by the host into the solid state disk array in the order of physical addresses. Of course, the data write request can also be not scheduled, and the data input by the host can be directly written into the solid state disk array according to the physical address corresponding to the logical address of ...

Example Embodiment

[0060] Embodiment three:

[0061] See image 3 , image 3 This is a schematic flowchart of a data acquisition method provided in Embodiment 3 of the present invention. Such as image 3 As shown, the method can include:

[0062] Step 301: Determine whether the solid-state hard disk array currently stores the required data, if yes, execute step 302; if not, execute step 303.

[0063] Step 302: Obtain required data from the solid-state hard disk array.

[0064] Since the solid-state hard disk array is used as a part of the cache, its capacity is usually smaller than that of the local hard disk. When the current data volume of the solid-state hard disk array is greater than or equal to the preset threshold, the data of the solid-state hard disk array needs to be transferred to the local hard disk in order to make room to continue to receive the data sent by the host.

[0065] When the current data volume of the solid-state drive array is less than the preset threshold, it means that t...

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 methods and a system for storing and obtaining data, wherein the method for storing data includes the steps of: writting the data inputted by a host into a solid hard disk array; comparing whether the current data size of the solid hard disk array is larger than or is equal to a preset threshold value; and if so, transferring the data of the solid hard disk array into a local hard disc. The method for obtaining data includes the steps of: judging whether the solid hard disk array currently stores the required data or not; and if not, obtaining the required data from the local hard disc, or if so, obtaining the required data from the solid hard disk array. The embodiment of the invention guarantees that the data can not be easily lost, and reduces the complicated degree of a storage system.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a data storage and acquisition method and system. Background technique [0002] As we all know, due to the limited read and write speed of the hard disk device (the average response time is 10ms), in order to improve the access speed of the hard disk device, the concept of cache (Cache) is introduced into the computer system. The so-called cache, broadly speaking, refers to the buffer memory between high-speed and low-speed devices. Because the speed of the high-speed device is higher than that of the low-speed device, when the high-speed device directly accesses data from the low-speed device, it needs to wait for a certain period of time. The cache is used to save a part of the data that has just been used or recycled by the high-speed device. When the high-speed device uses this part of the data again, it can be directly called from the cache, which can reduce the w...

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/08G06F3/06
Inventor 吕先红张巍张粤
Owner CHENGDU HUAWEI TECH
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