Storage management method, electronic device and computer readable medium
First Claim
Patent Images
1. In electronic equipment, a storage management method, comprising:
- maintaining a set of on-disk indicators and a cache indicator for a group of storage blocks in a disk, the on-disk indicators including per-block mapping indicators each indicating a mapping state of a respective storage block of the group, the cache indicator indicating an overall mapping state for the group of storage blocks, the overall mapping state selected from (1) an all-mapped state when all the storage blocks of the group are mapped, (2) an all-unmapped state when all the storage blocks of the group are unmapped, and (3) a hybrid state when some of the storage blocks of the group are mapped and others of the storage blocks of the group are unmapped;
receiving a request for a target storage block of the group of storage blocks;
obtaining, from a cache, the cache indicator indicating the state of the group of storage blocks including the target storage block; and
responding to the request based on the cache indicator, by (1) when the cache indicator indicates the all-mapped state and when it indicates the all-unmapped state, then responding to the request without accessing the per-block mapping indicator for the target block, and (2) when the cache indicator indicates the hybrid state, then first obtaining the per-block mapping indicator for the target block and then responding to the request based on the per-block mapping indicator.
3 Assignments
0 Petitions
Accused Products
Abstract
Various techniques are directed to a storage management method, an electronic device and a computer readable medium. Such techniques may involve: receiving a request for a target storage block in a disk; obtaining, from a cache, a cache indicator indicating a state of a group of storage blocks including the target storage block, the number of bits occupied by the cache indicator in the cache being less than the number of storage blocks in the group of storage blocks; and responding to the request based on the cache indicator. Such techniques can reduce times of access to the disk and thereby enhancing input/output performance.
5 Citations
21 Claims
-
1. In electronic equipment, a storage management method, comprising:
-
maintaining a set of on-disk indicators and a cache indicator for a group of storage blocks in a disk, the on-disk indicators including per-block mapping indicators each indicating a mapping state of a respective storage block of the group, the cache indicator indicating an overall mapping state for the group of storage blocks, the overall mapping state selected from (1) an all-mapped state when all the storage blocks of the group are mapped, (2) an all-unmapped state when all the storage blocks of the group are unmapped, and (3) a hybrid state when some of the storage blocks of the group are mapped and others of the storage blocks of the group are unmapped; receiving a request for a target storage block of the group of storage blocks; obtaining, from a cache, the cache indicator indicating the state of the group of storage blocks including the target storage block; and responding to the request based on the cache indicator, by (1) when the cache indicator indicates the all-mapped state and when it indicates the all-unmapped state, then responding to the request without accessing the per-block mapping indicator for the target block, and (2) when the cache indicator indicates the hybrid state, then first obtaining the per-block mapping indicator for the target block and then responding to the request based on the per-block mapping indicator. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. An electronic device, comprising:
-
a processor; and a memory storing instructions therein, the instructions, when executed by the processor, causing the electronic device to perform the following acts; maintaining a set of on-disk indicators and a cache indicator for a group of storage blocks in a disk, the on-disk indicators including per-block mapping indicators each indicating a mapping state of a respective storage block of the group, the cache indicator indicating an overall mapping state for the group of storage blocks, the overall mapping state selected from (1) an all-mapped state when all the storage blocks of the group are mapped, (2) an all-unmapped state when all the storage blocks of the group are unmapped, and (3) a hybrid state when some of the storage blocks of the group are mapped and others of the storage blocks of the group are unmapped; receiving a request for a target storage block of the group of storage blocks; obtaining, from a cache, the cache indicator indicating the state of the group of storage blocks including the target storage block; and responding to the request based on the cache indicator, by (1) when the cache indicator indicates the all-mapped state and when it indicates the all-unmapped state, then responding to the request without accessing the per-block mapping indicator for the target block, and (2) when the cache indicator indicates the hybrid state, then first obtaining the per-block mapping indicator for the target block and then responding to the request based on the per-block mapping indicator. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
-
21. A computer program product having a non-transitory computer readable medium which stores a set of instructions to perform storage management;
- the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of;
maintaining a set of on-disk indicators and a cache indicator for a group of storage blocks in a disk, the on-disk indicators including per-block mapping indicators each indicating a mapping state of a respective storage block of the group, the cache indicator indicating an overall mapping state for the group of storage blocks, the overall mapping state selected from (1) an all-mapped state when all the storage blocks of the group are mapped, (2) an all-unmapped state when all the storage blocks of the group are unmapped, and (3) a hybrid state when some of the storage blocks of the group are mapped and others of the storage blocks of the group are unmapped; receiving a request for a target storage block of the group of storage blocks; obtaining, from a cache, the cache indicator indicating the state of the group of storage blocks including the target storage block; and responding to the request based on the cache indicator, by (1) when the cache indicator indicates the all-mapped state and when it indicates the all-unmapped state, then responding to the request without accessing the per-block mapping indicator for the target block, and (2) when the cache indicator indicates the hybrid state, then first obtaining the per-block mapping indicator for the target block and then responding to the request based on the per-block mapping indicator.
- the set of instructions, when carried out by computerized circuitry, causing the computerized circuitry to perform a method of;
Specification