Process and apparatus to reduce declared capacity of a storage device by conditionally trimming
First Claim
1. A method of managing a storage system, the method comprising:
- detecting an amelioration trigger for reducing declared capacity of non-volatile memory of a storage device of the storage system; and
in accordance with the detected amelioration trigger, performing an amelioration process to reduce declared capacity of the non-volatile memory of the storage device, the performing including;
obtaining a target capacity of the non-volatile memory of the storage device and a current utilization of the non-volatile memory of the storage device, wherein the target capacity is lower than a current capacity of the non-volatile memory of the storage device and the current utilization corresponds to allocated logical addresses in a logical address space;
determining whether the target capacity of the non-volatile memory of the storage device is greater than the current utilization of the non-volatile memory of the storage device;
in accordance with a determination that the target capacity is greater than the current utilization, forgoing trimming of the allocated logical addresses;
in accordance with a determination that the target capacity is not greater than the current utilization, trimming at least a portion of the allocated logical addresses; and
reducing declared capacity of the non-volatile memory of the storage device.
2 Assignments
0 Petitions
Accused Products
Abstract
Systems, methods, and/or devices are used to reduce declared capacity of non-volatile memory of a storage device in a storage system. In one aspect, the method includes, detecting an amelioration trigger, and in accordance with the detected amelioration trigger, performing an amelioration process to reduce declared capacity of the non-volatile memory of the storage device, including: obtaining a target capacity of the non-volatile memory of the storage device and a current utilization of the non-volatile memory of the storage device, wherein the target capacity is lower than a current capacity of the non-volatile memory of the storage device and the current utilization corresponds to allocated logical addresses in a logical address space; in accordance with a determination that the target capacity is not greater than the current utilization, trimming at least a portion of the allocated logical addresses; and reducing declared capacity of the non-volatile memory of the storage device.
-
Citations
32 Claims
-
1. A method of managing a storage system, the method comprising:
-
detecting an amelioration trigger for reducing declared capacity of non-volatile memory of a storage device of the storage system; and in accordance with the detected amelioration trigger, performing an amelioration process to reduce declared capacity of the non-volatile memory of the storage device, the performing including; obtaining a target capacity of the non-volatile memory of the storage device and a current utilization of the non-volatile memory of the storage device, wherein the target capacity is lower than a current capacity of the non-volatile memory of the storage device and the current utilization corresponds to allocated logical addresses in a logical address space; determining whether the target capacity of the non-volatile memory of the storage device is greater than the current utilization of the non-volatile memory of the storage device; in accordance with a determination that the target capacity is greater than the current utilization, forgoing trimming of the allocated logical addresses; in accordance with a determination that the target capacity is not greater than the current utilization, trimming at least a portion of the allocated logical addresses; and reducing declared capacity of the non-volatile memory of the storage device. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A storage device, comprising:
-
non-volatile memory; one or more processors; and controller memory storing one or more programs, which when executed by the one or more processors cause the storage device to perform operations comprising; detecting an amelioration trigger for reducing declared capacity of non-volatile memory of the storage device; and in accordance with the detected amelioration trigger, performing an amelioration process to reduce declared capacity of the non-volatile memory of the storage device, the performing including; obtaining a target capacity of the non-volatile memory of the storage device and a current utilization of the non-volatile memory of the storage device, wherein the target capacity is lower than a current capacity of the non-volatile memory of the storage device and the current utilization corresponds to allocated logical addresses in a logical address space; determining whether the target capacity of the non-volatile memory of the storage device is greater than the current utilization of the non-volatile memory of the storage device; in accordance with a determination that the target capacity is greater than the current utilization, forgoing trimming of the allocated logical addresses; in accordance with a determination that the target capacity is not greater than the current utilization, trimming at least a portion of the allocated logical addresses; and reducing declared capacity of the non-volatile memory of the storage device. - View Dependent Claims (18, 26, 27, 28, 29, 30, 31, 32)
-
-
19. A non-transitory computer readable storage medium, storing one or more programs configured for execution by one or more processors of a storage device, the one or more programs including instructions for:
-
detecting an amelioration trigger for reducing declared capacity of non-volatile memory of the storage device; and in accordance with the detected amelioration trigger, performing an amelioration process to reduce declared capacity of the non-volatile memory of the storage device, the performing including; obtaining a target capacity of the non-volatile memory of the storage device and a current utilization of the non-volatile memory of the storage device, wherein the target capacity is lower than a current capacity of the non-volatile memory of the storage device and the current utilization corresponds to allocated logical addresses in a logical address space; determining whether the target capacity of the non-volatile memory of the storage device is greater than the current utilization of the non-volatile memory of the storage device; in accordance with a determination that the target capacity is greater than the current utilization, forgoing trimming of the allocated logical addresses; in accordance with a determination that the target capacity is not greater than the current utilization, trimming at least a portion of the allocated logical addresses; and reducing declared capacity of the non-volatile memory of the storage device. - View Dependent Claims (20, 21, 22, 23, 24, 25)
-
Specification