发明名称 |
Pre-reading file containers storing unread file segments and segments that do not belong to the file |
摘要 |
A file reading method, storage device, and reading system, relating to the field of file reading. The method includes receiving, by a storage device, a first read request sent by a client, where to-be-read data requested by the first read request is a part of the file; reading, from a cache, data that is of the to-be-read data and located in the cache, and reading, from a first storage medium, data that is of the to-be-read data and not located in the cache; and pre-reading, from the first storage medium, data in at least one of the containers, and storing the pre-read data into the cache, where the pre-read container includes at least one unread file segment of the file. |
申请公布号 |
US9519587(B2) |
申请公布日期 |
2016.12.13 |
申请号 |
US201414524407 |
申请日期 |
2014.10.27 |
申请人 |
Huawei Technologies Co., Ltd. |
发明人 |
Wu Jian |
分类号 |
G06F12/00;G06F12/08;G06F17/30 |
主分类号 |
G06F12/00 |
代理机构 |
Conley Rose, P.C. |
代理人 |
Conley Rose, P.C. |
主权项 |
1. A file reading method applicable to reading of a file stored on a storage device, wherein the storage device comprises a first storage medium and a cache, wherein an access speed of the cache is greater than that of the first storage medium, wherein the first storage medium has a plurality of containers, wherein each container comprises a plurality of chunks, wherein the file comprises a plurality of file segments, and wherein one chunk is used for storing one file segment, the method comprising:
receiving, by the storage device, a first read request sent by a client, wherein to-be-read data requested by the first read request is a part of the file; reading, from the cache, data that is of the to-be-read data and located in the cache; reading, from the first storage medium, data that is of the to-be-read data and not located in the cache; pre-reading, from the first storage medium, all data of at least one container, wherein the pre-read container stores unread file segments belonging to the file and a plurality of the segments that do not belong to the file, and wherein the number of the unread file segments belonging to the file is greater than a threshold; and storing the pre-read data into the cache. |
地址 |
Shenzhen CN |