Selecting data relocation operations based on an energy threshold and a performance threshold
A data storage device includes a relocation management system that determines whether to perform a relocation operation based on an operating temperature, performance metrics and/or energy metrics associated with the data storage device. The relocation management system uses the operating temperature to identify a performance threshold and an energy threshold. Each threshold indicates whether the relocation operation is a first relocation method or a second relocation method. If the validity count of a memory block included in the relocation operation is below each threshold, the first relocation method is selected. If the validity count of the memory block is above both thresholds, the second relocation method is selected. However, if the validity count of the memory block is in a tradeoff range, the relocation management system selects a relocation method based on a tradeoff between performance metrics and energy consumption metrics.
1 . A method, comprising:
detecting initiation of a data relocation event in which data in a data storage device is to be moved from at least one of a first type of memory block to at least one of a second type of memory block;
determining an operating temperature of the data storage device;
identifying a performance threshold and an energy consumption threshold associated with the operating temperature of the data storage device, the performance threshold and the energy consumption threshold being associated with a validity count;
determining the validity count associated with the at least one of the first type of memory block;
selecting a data relocation method for the data relocation event based, at least in part, on at least one of the validity count, the performance threshold and the energy consumption threshold; and
executing the selected data relocation method.
2 . The method of claim 1 , wherein the data relocation method is a folding operation.
3 . The method of claim 1 , wherein the data relocation method is a compaction operation followed by a folding operation.
4 . The method of claim 1 , further comprising:
determining whether the data storage device has entered a thermal power bound state; and
based, at least in part, on determining the data storage device has entered the thermal power bound state, selecting the data relocation method based, at least in part, on the energy consumption threshold.
5 . The method of claim 1 , wherein selecting the data relocation method is based, at least in part, on a tradeoff between energy metrics associated with the energy consumption threshold and performance metrics associated with the performance threshold.
6 . The method of claim 1 , wherein the operating temperature is a temperature range.
7 . A data storage device, comprising:
a controller; and
a relocation management system associated with the controller and operable to:
determine an operating temperature of the data storage device;
identify a performance threshold and an energy consumption threshold associated with the operating temperature of the data storage device, the performance threshold and the energy consumption threshold being associated with a validity count;
determine the validity count associated with at least one of a first type of memory block that is subject to a data relocation operation in which data stored by the at least one of the first type of memory block is relocated to a second type of memory block;
select a data relocation method for the data relocation operation based, at least in part, on at least one of the validity count, the performance threshold and the energy consumption threshold; and
cause the controller to execute the selected data relocation method.
8 . The data storage device of claim 7 , wherein the operating temperature of the data storage device is determined based, at least in part, on a determination that a relocation operation is to be executed.
9 . The data storage device of claim 7 , wherein the data relocation method is a folding operation.
10 . The data storage device of claim 7 , wherein the data relocation method is a compaction operation followed by a folding operation.
11 . The data storage device of claim 7 , wherein the relocation management system is further operable to:
determine whether the data storage device has entered a thermal power bound state; and
based, at least in part, on determining the data storage device has entered the thermal power bound state, select the data relocation method based, at least in part, on the energy consumption threshold.
12 . The data storage device of claim 7 , wherein the data relocation method is selected based, at least in part, on a tradeoff between energy metrics associated with the energy consumption threshold and performance metrics associated with the performance threshold.
13 . The data storage device of claim 7 , wherein the operating temperature is a temperature range.
14 . A data storage device, comprising:
means for determining an operating temperature of the data storage device;
means for identifying a performance threshold and an energy consumption threshold associated with the operating temperature of the data storage device, the performance threshold and the energy consumption threshold being associated with a validity count;
means for determining the validity count associated with at least one of a first type of memory block that is subject to a data relocation operation in which data stored by the at least one of the first type of memory block is relocated to a second type of memory block;
means for selecting a data relocation method for the data relocation operation based, at least in part, on at least one of the validity count, the performance threshold and the energy consumption threshold; and
means for causing a controller means to execute the selected data relocation method.
15 . The data storage device of claim 14 , further comprising means for determining a relocation operation is to be executed on the at least one of the first type of memory block.
16 . The data storage device of claim 14 , wherein the data relocation method is a folding operation.
17 . The data storage device of claim 14 , wherein the data relocation method is a compaction operation followed by a folding operation.
18 . The data storage device of claim 14 , further comprising:
means for determining whether the data storage device has entered a thermal power bound state; and
wherein the means for selecting the data relocation method selects the data relocation method based, at least in part, on the energy consumption threshold when it is determined the data storage device has entered the thermal power bound state.
19 . The method of claim 1 , wherein the energy consumption threshold optimizes an amount of energy used by the data storage device based, at least in part, on the operating temperature of the data storage device.
20 . The data storage device of claim 7 , wherein the energy consumption threshold optimizes an amount of energy used by the data storage device based, at least in part, on the operating temperature of the data storage device.