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

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 composed of random access memory in the prior art, the process of mirroring is added, which increases the complexity of the storage system

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

Embodiment 1

[0024] see figure 1 , figure 1 It is a schematic flowchart of a data storage method provided by Embodiment 1 of the present invention. Such as figure 1 As shown, the method may include:

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

[0026] Wherein, the solid-state hard disk array is composed of several rows and several columns of solid-state memory chips, and compared with the volatility of data in random access memory, the solid-state hard disk has non-volatility. Even if the SSD array is powered off, the stored data will not be lost.

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

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

[0029] Statistics of the current data volume of the SSD array;

[0030] Judging whether the current dat...

Embodiment 2

[0034] see figure 2 , figure 2 It is a schematic flowchart of a data storage method provided by Embodiment 2 of the present invention. Such as figure 2 As shown, the method may include:

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

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

[0037] Obtaining the physical address of the solid-state disk array according to the logical address of the solid-state disk array carried in the data write request;

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

[0039] The purpose of scheduling data write requests is 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 may not be scheduled, and the data input by the host may be directly written into the solid-state disk array according to the physical address corresponding to the logi...

Embodiment 3

[0061] see image 3 , image 3 It is a schematic flowchart of a data acquisition method provided by Embodiment 3 of the present invention. Such as image 3 As shown, the method may include:

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

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

[0064] Since the SSD array is used as 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 disk array is greater than or equal to the preset threshold, it is necessary to transfer the data of the solid-state disk array to the local hard disk, so as to make room for continuing to receive data sent by the host.

[0065] When the current data volume of the SSD array is less than the preset threshold, it means that the SSD array can still continue to store the data sent by the host. In order ...

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
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More