Data processing method and apparatus, and flash device
AssigneeHuawei Technologies Co., Ltd.
InventorsJianhua Zhou, Po Zhang
Life of this patent
Estimating the term…
Abstract
A flash device includes user storage space for storing user data and over provisioning space for garbage collection within the flash device. The flash device receives an operation instruction, and then performs an operation on user data stored in the user storage space based on the operation instruction. Further, the flash device identifies a changed size of user data after performing the operation. Based on the changed size of data, a target adjustment parameter is identified. Further, the flash device adjusts the capacity of the over provisioning space according to the target adjustment parameter.
Claims20
A method for adjusting over provisioning space in a storage system, implemented by the storage system, and comprising:
- providing a flash device for communication with a host in the storage system, wherein the flash device is in the storage system;
- obtaining a first capacity of all free space in a user storage space, wherein the free space is empty, wherein the user storage space is in a physical storage space of the flash device, and wherein the user storage space is for storing user data from the host;
- and
- adjusting a second capacity of over-provisioning (OP) space by adding all the first capacity to the OP space to obtain an adjusted second capacity,
- wherein the OP space is in the physical storage space, and
- wherein the OP space is for wear leveling (WL), garbage collection (GC), and bad block mapping.
A storage system comprising:
- a host;
- and
- a flash device configured to communicate with the host and comprising:
- a physical storage space comprising:
- a user storage space configured to store user data from the host;
- and
- an over provisioning (OP) space configured to provide wear leveling (WL), garbage collection (GC), or bad block mapping;
- and
- a primary controller configured to:
- obtain a first capacity of all free space in the user storage space, wherein the free space is empty;
- and
- adjust a second capacity of the OP space by adding all the first capacity to the OP space to obtain an adjusted second capacity.
A flash device in a storage system, configured to communicate with a host in the storage system, and comprising:
- a physical storage space comprising:
- a user storage space configured to store user data from the host;
- and
- an over provisioning (OP) space configured to provide wear leveling (WL), garbage collection (GC), or bad block mapping;
- and
- a primary controller configured to:
- obtain a first capacity of all free space in the user storage space, wherein the free space is empty;
- and
- adjust a second capacity of the OP space by adding all the first capacity to the OP space to obtain an adjusted second capacity.
Dependencies are inferred from the claim text.