Method for reading file, storage device and reading system

A storage device and file reading technology, which is applied in the direction of file system, memory system, file access structure, etc., can solve the problems of increasing hardware cost and expensive SSD

Active Publication Date: 2014-02-26
HUAWEI TECH CO LTD
View PDF5 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Due to the large amount of data in the backup duplicate data blocks, the capacity of the storage device used is also large, and in order to ensure the reading speed, the performance of the storage device needs to be higher than that of the hard disk, and the additional storage device usually used is a solid state Hard disk (Solid State Disk, referred to as SSD), and the SSD is expensive, which increases the hardware cost

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 for reading file, storage device and reading system
  • Method for reading file, storage device and reading system
  • Method for reading file, storage device and reading system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0154] An embodiment of the present invention provides a file reading method, which is suitable for reading files stored on a storage device. see figure 2 , the method flow includes:

[0155]Step 101: the storage device receives a first read request sent by a client (client), the data requested by the first read request is called data to be read, and the data to be read is a part of a file. The reading of the file can be completed in multiple times or at one time. When it is completed in multiple times, a read request is sent each time, requesting to read a part of the file, and the first read request is one of these requests.

[0156] Wherein, the storage device includes a first storage medium and a cache, the access speed of the cache is higher than that of the first storage medium, and there are multiple containers on the first storage medium. The file includes a plurality of file fragments, and the file fragments constituting the file are all stored in the first storage...

Embodiment 2

[0166] In this embodiment, a deduplicated file is taken as an example to describe a file reading method provided by the present invention in detail. The following briefly introduces the application scenarios of the embodiments of the present invention, but is not limited thereto. The embodiments of the present invention are applicable to any scenario where deduplicated files need to be read. A deduplicated file is usually used for backup and is a backup file of an original file, and the content of the deduplicated file is at least the same as most of the content of the corresponding original file. During the process of backing up the original file, the corresponding relationship between the deduplicated file and the backed up original file will be established.

[0167] Assuming that the original file is damaged, the user intends to read the backup deduplicated file to restore the original file. At this time, the user starts the user interface of the client (such as a backup a...

Embodiment 3

[0216] An embodiment of the present invention provides a file reading method. This embodiment differs from Embodiment 2 of the present invention in that (1) the way of pre-reading data of at least one container from the first storage medium is different, and (2) the pre-reading trigger condition is different. see Figure 5 , the method flow includes:

[0217] Step 301: the client receives a user's original file restoration request, and generates multiple read requests according to the original file restoration request.

[0218] This step 301 is the same as step 201 in the second embodiment, and will not be described in detail here.

[0219] Step 302: the client sends a read request to the storage device, and the data to be read requested by the read request is a part of the file.

[0220] This step 302 is the same as step 202 in the second embodiment, and will not be described in detail here.

[0221] Step 303: the storage device receives a read request sent by the client,...

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

Embodiments of the invention provide a method for reading a file, a storage device and a reading system. The invention relates to the field of file read. The method comprises that the storage device receives a first read request sent by a client, to-be-read data requested by the first read request being one part of the file; data of the to-be-read data in a buffer memory is read from the buffer memory; data of the to-be-read data out of the buffer memory is read from a first storage medium; data of at least one container is pre-read from the first storage medium; and that the pre-read data is stored in the buffer memory. The pre-read container comprises at least one unread file fragment of the file. The storage device comprises a receiving module, a reading module and a pre-reading module. The reading system comprises user equipment and the storage device. According to the invention, time consumption for reading the data can be reduced; no additional hardware cost is needed; and hardware costs can be saved.

Description

technical field [0001] The invention relates to the field of file reading and writing, in particular to a file reading method, a storage device and a reading system. Background technique [0002] Data De-duplication (data deduplication) technology is widely used in the storage field. Taking the backup system as an example, the Data De-duplication technology sequentially reads data blocks of a certain size in the file to be backed up, and retrieves whether the same data block already exists in the previously backed up data block. If there is a backed-up data block identical to the data block to be backed up, it is not backed up, and the file to be backed up refers to the previously backed-up data block; only the unretrieved data block is backed up. Here, a file that references a data block that has been backed up before is referred to as a deduplicated file (hereinafter referred to as a deduplicated file). Data blocks that have been backed up in the storage system are also ...

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): G06F12/08G06F3/06G06F12/0862
CPCG06F16/13G06F16/172G06F16/1752G06F12/0862G06F2212/602
Inventor 吴剑
Owner HUAWEI 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