Method and apparatus with improved speed in data write-in
AssigneeLenovo (Beijing) Limited
InventorsAili Yao, Bo Li
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a data write-in method and apparatus. The method includes: generating, by a first storage module, a dataset to be written into a second storage module, where first data in the dataset is sorted according to destination storage addresses of the first data; and sequentially sending, by the first storage module, the first data in the dataset to the second storage module. The embodiments of the present disclosure may increase the speed at which the first storage module writes data into the second storage module.
Claims17
A method, comprising:
- selecting, by a first storage module, being a cache device, a plurality of first data from a cached dataset in the first storage module, wherein the first data in the dataset is sorted according to destination storage addresses of the first data in a second storage module;
- generating, by the first storage module, a magnetic disk zone queue, and sorting magnetic disk zones in the magnetic disk zone queue according to the destination storage addresses of the magnetic disk zones, wherein each magnetic disk zone stores at least two second data;
- generating, by the first storage module, a plurality of the first data from the cached dataset in the first storage module the dataset according to an order of the selected plurality of first data and the corresponding magnetic disk zone in the magnetic disk zone queue;
- and
- sequentially sending, by the first storage module, the sorted first data to the second storage module to be written into the second storage module.
A method, comprising:
- selecting, by a first storage module, being a cache device, a plurality of first data from a cached dataset in the first storage module, wherein destination storage addresses of the first data in the second storage module are in a pre-set address range;
- determining whether the first storage module meets a cache refresh condition, wherein the cache refresh condition corresponds to an amount of data in the cached dataset reaches a cache saturation threshold;
- generating, by the first storage module, a plurality of the first data from the cached dataset in the first storage module the dataset according to an order of the selected plurality of first data;
- and
- sequentially sending, by the first storage module, the dataset to the second storage module to be written into the second storage module.
An apparatus, comprising:
- a processing module configured to:
- select, by a first storage module, being a cache device, a plurality of first data from a cached dataset in the first storage module, wherein the first data in the dataset is sorted according to destination storage addresses of the first data in a second storage module;
- generate, by the first storage module, a magnetic disk zone queue, and sorting magnetic disk zones in the magnetic disk zone queue according to the destination storage addresses of the magnetic disk zones, wherein each magnetic disk zone stores at least two second data;
- generate, by the first storage module, a plurality of the first data from the cached dataset in the first storage module the dataset according to an order of the selected plurality of first data and the corresponding magnetic disk zone in the magnetic disk zone queue;
- and
- a sending module configured to sequentially send the sorted first data to a second storage module to be written into the second storage module.
An apparatus, comprising:
- a processing module configured to:
- select, by a first storage module, being a cache device, a plurality of first data from a cached dataset in the first storage module wherein destination storage addresses of the first data in the second storage module are in a pre-set address range;
- determine whether the first storage module meets a cache refresh condition, wherein the cache refresh condition corresponds to an amount of data in the cached dataset reaches a cache saturation threshold;
- generating, by the first storage module, a plurality of the first data from the cached dataset in the first storage module the dataset according to the selected plurality of first data;
- and
- a sending module configured to sequentially send the first data in the dataset to a second storage module to be written into the second storage module.
Dependencies are inferred from the claim text.