A temperature control method and device of a storage device, a storage medium and a storage device
By dividing the storage device into storage pools with different power consumption levels and selecting the storage pool to write data based on the internal temperature value, the problem of temperature control strategies affecting SSD performance in existing technologies is solved, achieving efficient temperature control and performance improvement of SSDs.
Patent Information
- Application Number
- CN202311809327.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-12-26
AI Technical Summary
In existing technologies, the temperature control strategies of storage devices, while reducing the overall power consumption of SSDs, severely affect the data write speed, leading to a decline in the overall performance of SSDs.
By acquiring the read current, write current, and erase current of the storage blocks in the storage device, storage pools of different power consumption levels are divided according to a preset current range, and the appropriate storage pool is selected to write data based on the internal temperature value, thereby achieving dynamic temperature control.
While ensuring data write speed, it effectively improves the overall performance of the SSD and avoids performance degradation caused by excessive reduction in write speed.
Smart Images

Figure CN117785044B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of storage device technology, and in particular relates to a temperature control method, apparatus, device and storage medium for a storage device. Background Technology
[0002] Storage devices, as the medium for data storage, are a crucial component of computer systems. In the era of big data and information explosion, higher demands are placed on the capacity, read / write speed, and reliability of storage devices. Solid State Drives (SSDs), with their advantages of fast read / write performance, large capacity, shock and drop resistance, and small size, are becoming the mainstream devices in the storage industry. Because SSDs need to adopt the most advanced technologies to achieve extremely high integration density in a very short time, their heat generation per unit area is usually relatively large. Therefore, temperature control strategies are needed to ensure that SSDs can operate normally.
[0003] In existing technologies, the temperature control strategy for SSDs generally involves first obtaining the temperature of the storage blocks and the controller in the SSD, and then, based on the obtained temperatures of the storage blocks and the controller, reducing the overall power consumption of the SSD by limiting the speed at which data is written to the storage blocks, thereby achieving the effect of cooling the SSD. However, this temperature control strategy will severely reduce the speed at which data is written to the storage blocks, which will seriously affect the overall performance of the SSD. Summary of the Invention
[0004] The purpose of this application is to provide a temperature control method, apparatus, device, and storage medium for a storage device. The temperature control method, apparatus, device, and storage medium for a storage device provided by this application can effectively control the temperature of an SSD, ensuring the speed of data writing to the storage block while effectively improving the overall performance of the SSD.
[0005] The technical solution provided in this application is as follows:
[0006] A method for temperature control of a storage device, comprising:
[0007] Obtain the read current, write current, and erase current of each storage block in the storage device;
[0008] Based on the read current, write current, erase current and preset current range of each memory block, the power consumption type of each memory block is obtained, and based on the power consumption type of each memory block, each memory block is divided to obtain multiple memory pools with different power consumption levels.
[0009] Upon receiving a data write request, the internal temperature value of the storage device is obtained;
[0010] Based on the internal temperature value and the preset temperature range, the requested data is written to the storage block in the storage pool of the corresponding power consumption level.
[0011] Optionally, the preset current range includes a preset read current range, a preset write current range, and a preset erase current range. The step involves obtaining the power consumption type of each memory block based on its read current, write current, erase current, and the preset current range, and then dividing the memory blocks according to their power consumption types to obtain multiple memory pools with different power consumption levels, including:
[0012] The preset read current range, the preset write current range, and the preset erase current range are divided to obtain multiple read current ranges, multiple write current ranges, and multiple erase current ranges of different current levels.
[0013] Based on the read current of each memory block and the multiple read current ranges, the read power consumption type of each memory block is obtained;
[0014] The write power consumption type of each memory block is obtained based on the write current of each memory block and the multiple write current ranges.
[0015] The erase power consumption type of each memory block is obtained based on the erase current of each memory block and the multiple erase current ranges;
[0016] Based on the read power consumption type, write power consumption type, and erase power consumption type of each storage block, the power consumption type of each storage block is obtained. Based on the power consumption type of each storage block, the storage blocks are divided to obtain multiple storage pools with different power consumption levels.
[0017] Optionally, the read power consumption type, the write power consumption type, and the erase power consumption type respectively include a first power consumption, a second power consumption, and a third power consumption. The step of obtaining the power consumption type of each storage block based on its read power consumption type, write power consumption type, and erase power consumption type, and then dividing the storage blocks according to their power consumption types to obtain multiple storage pools with different power consumption levels, includes:
[0018] Select the current storage block from among the aforementioned storage blocks;
[0019] Determine whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are of the first power consumption type. If so, the current storage block is determined to be a first power consumption storage block. If not, continue to determine whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are of the third power consumption type. If so, the current storage block is determined to be a third power consumption storage block. If not, the current storage block is determined to be a second power consumption storage block.
[0020] Until the power consumption type corresponding to each of the storage blocks is obtained, a first power consumption storage pool is constructed using multiple first power consumption storage blocks, a second power consumption storage pool is constructed using multiple second power consumption storage blocks, and a third power consumption storage pool is constructed using multiple third power consumption storage blocks.
[0021] Optionally, the step of writing the requested data to a storage block in a storage pool of the corresponding power consumption level based on the internal temperature value and a preset temperature range includes:
[0022] If the internal temperature value is greater than the maximum value of the preset temperature range, the data to be written will be written to the storage block in the first power consumption storage pool.
[0023] If the internal temperature value is within the preset temperature range, the data to be written will be written to the storage block in the second power consumption storage pool.
[0024] If the internal temperature value is less than the minimum value of the preset temperature range, the data to be written will be written to the storage block in the third power consumption storage pool.
[0025] Optionally, the step of writing the requested data to a storage block in a storage pool of the corresponding power consumption level based on the internal temperature value and a preset temperature range includes:
[0026] Based on the internal temperature value and the preset temperature range, the data to be written is written to the storage block with the fewest erase / write cycles in the storage pool corresponding to the power consumption level.
[0027] Optionally, after determining the power consumption type of each memory block based on its read current, write current, erase current, and a preset current range, and dividing the memory blocks into multiple memory pools with different power consumption levels based on their power consumption types, the method further includes:
[0028] Get the write current of the storage block where data is being written, and update the write current of the storage block where data is being written.
[0029] The number of erase / write cycles for the storage block after data has been written to it;
[0030] Upon receiving a data read request, the requested data is read from the corresponding storage block.
[0031] Get the read current of the storage block containing the data being read, and update the read current of the storage block containing the data being read;
[0032] Upon receiving a data erase request, erase the data to be erased from the corresponding storage block;
[0033] Get the erase current of the storage block containing the data to be erased, and update the erase current of the storage block containing the data to be erased;
[0034] Update the number of erase / write cycles for the storage block after the data has been erased.
[0035] Optionally, after determining the power consumption type of each memory block based on its read current, write current, erase current, and a preset current range, and dividing the memory blocks into multiple memory pools with different power consumption levels based on their power consumption types, the method further includes:
[0036] Upon receiving a storage pool management request, it is determined whether there are any storage blocks in each of the storage pools whose write / erase counts exceed a preset threshold.
[0037] If so, the updated power consumption type of each storage block is obtained based on the updated read current, updated write current, updated erase current and the preset current range of each storage block, and the storage blocks are re-divided according to the updated power consumption type of each storage block to obtain multiple updated storage pools with different power consumption levels.
[0038] This application also provides a temperature control device for a storage device, comprising:
[0039] The first acquisition module is used to acquire the read current, write current and erase current of each storage block in the storage device;
[0040] The processing module is used to obtain the power consumption type of each memory block based on the read current, write current, erase current and preset current range of each memory block, and to divide each memory block according to the power consumption type of each memory block to obtain multiple memory pools with different power consumption levels.
[0041] The second acquisition module is used to acquire the internal temperature value of the storage device after receiving a data write request;
[0042] The write module is used to write the requested data into the storage block of the storage pool of the corresponding power consumption level according to the internal temperature value and the preset temperature range.
[0043] This application also provides an electronic device, including: a processor, a memory, and a communication bus;
[0044] The communication bus is used to realize the connection and communication between the processor and the memory;
[0045] The processor is configured to execute a temperature control program for a storage device stored in the memory, to implement the steps of the temperature control method for the storage device as described in any of the preceding claims.
[0046] This application also provides a readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the temperature control method for the storage device as described in any of the preceding claims.
[0047] Compared with existing technologies, the temperature control method, apparatus, device, and storage medium for storage devices provided in this application obtain the read current, write current, and erase current of each storage block in the storage device. Then, based on the read current, write current, erase current, and preset current range of each storage block, the power consumption type of each storage block is determined. Based on the power consumption type of each storage block, the storage blocks are divided into multiple storage pools with different power consumption levels. When a data write request is received, the internal temperature value of the storage device is obtained. Then, based on the internal temperature value and preset temperature range, the requested data is written to the storage block in the corresponding power consumption level storage pool. In this application, by pre-dividing the storage blocks into multiple storage pools with different power consumption levels, and upon receiving a data write request, the storage pool corresponding to the internal temperature value of the SSD is selected from multiple storage pools based on the real-time obtained internal temperature value of the SSD and the preset temperature range, and the data is written to the storage block in the selected storage pool. This achieves dynamic selection of storage blocks based on the internal temperature value of the SSD, enabling effective control of the SSD temperature and ensuring the speed of data writing to the storage block while effectively improving the overall performance of the SSD. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is a schematic flowchart of a temperature control method for a storage device provided in an embodiment of this application;
[0050] Figure 2This is a schematic diagram of the structure of a temperature control device for a storage device provided in an embodiment of this application;
[0051] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0052] To enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0053] It should be noted that when a component is referred to as "fixed to" or "set on" another component, it can be directly on or indirectly set on the other component; when a component is referred to as "connected to" another component, it can be directly connected to or indirectly connected to the other component.
[0054] It should be understood that the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0055] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "a plurality of" or "several" means two or more, unless otherwise explicitly specified.
[0056] It should be noted that the structures, proportions, sizes, etc., shown in the accompanying drawings of this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed in the specification, and are not intended to limit the conditions under which this application can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size should still fall within the scope of the technical content disclosed in this application, provided that they do not affect the effects and purposes that this application can produce.
[0057] like Figure 1As shown in the figure, this application provides a temperature control method for a storage device, including:
[0058] S11. Obtain the read current, write current and erase current of each storage block in the storage device;
[0059] In this embodiment, during the RDT (Reliability Demonstration Testing) phase of the SSD, tests can be performed on both SLC (Single-Level Cell) and TLC (Triple-Level Cell). The read current of each storage page within a storage block during data read operations can be obtained, and the average read current of each storage page can be calculated to obtain the read current of the storage block. The read current of a storage page can be Icc1, or it can include both Icc1 and Iccq1. Similarly, the write current of each storage page within a storage block during data write operations can be obtained, and the average write current of each storage page can be calculated to obtain the write current of each storage block. The write current of a storage page can be Icc2, or it can include both Icc2 and Iccq2. Finally, the erase current of each storage block during erase operations can be directly obtained. The erase current of a storage block can be Icc3, or it can include both Icc3 and Iccq3.
[0060] In this embodiment, a 3D TLC (Triple-Level Cell) type Nand Flash was used as an example for testing. The minimum value of the read current Icc1 of the memory block was 50mA, and the maximum value of the read current Icc1 of the memory block was 55mA. The minimum value of the write current Icc2 of the memory block was 43mA, and the maximum value of the write current Icc2 of the memory block was 48mA. The minimum value of the erase current Icc3 of the memory block was 23mA, and the maximum value of the erase current Icc3 of the memory block was 28mA.
[0061] S12. Based on the read current, write current, erase current and preset current range of each memory block, obtain the power consumption type of each memory block, and divide each memory block according to the power consumption type of each memory block to obtain multiple memory pools with different power consumption levels.
[0062] In this embodiment, the preset current range is a pre-set current range. The preset read current range, preset write current range, and preset erase current range can be divided to obtain multiple read current ranges, multiple write current ranges, and multiple erase current ranges of different current levels. Then, based on the read current of the storage block, the read current of the storage block is determined to fall within the corresponding current level of the multiple read current ranges, thus obtaining the read power consumption type of the storage block. Next, based on the write current of each storage block, the write current of the storage block is determined to fall within the corresponding current level of the multiple write current ranges, thus obtaining the write power consumption type of the storage block. Then, based on the erase current of the storage block, the erase current of the storage block is determined to fall within the corresponding current level of the multiple erase current ranges, thus obtaining the erase power consumption type of the storage block. Finally, based on the read power consumption type, write power consumption type, and erase power consumption type of the storage block, the power consumption type of the storage block is obtained. This process is repeated to obtain the power consumption type corresponding to each storage block. Then, based on the power consumption type of each storage block, the storage blocks are divided to obtain multiple storage pools with different power consumption levels.
[0063] S13. Upon receiving a data write request, obtain the internal temperature value of the storage device;
[0064] In this embodiment, the data write request can be a data write request input by the front-end host through an interface (such as a SATA interface), the storage device can be an SSD, and the internal temperature value of the SSD can be collected in real time by a temperature sensor. When the data write request sent by the front-end host through the interface is received, the internal temperature value of the SSD collected in real time by the temperature sensor is obtained.
[0065] S14. Based on the internal temperature value and the preset temperature range, write the requested data to the storage block in the storage pool of the corresponding power consumption level.
[0066] In this embodiment, the preset temperature range is a pre-set temperature range. Specifically, based on the internal temperature value and the preset temperature range, the data to be written can be written to the storage block with the fewest erase / write cycles in the storage pool of the corresponding power consumption level.
[0067] Compared with existing technologies, the temperature control method, apparatus, device, and storage medium for storage devices provided in this application obtain the read current, write current, and erase current of each storage block in the storage device. Then, based on the read current, write current, erase current, and preset current range of each storage block, the power consumption type of each storage block is determined. Based on the power consumption type of each storage block, the storage blocks are divided into multiple storage pools with different power consumption levels. When a data write request is received, the internal temperature value of the storage device is obtained. Then, based on the internal temperature value and preset temperature range, the requested data is written to the storage block in the corresponding power consumption level storage pool. In this application, by pre-dividing the storage blocks into multiple storage pools with different power consumption levels, and upon receiving a data write request, the storage pool corresponding to the internal temperature value of the SSD is selected from multiple storage pools based on the real-time obtained internal temperature value of the SSD and the preset temperature range, and the data is written to the storage block in the selected storage pool. This achieves dynamic selection of storage blocks based on the internal temperature value of the SSD, enabling effective control of the SSD temperature and ensuring the speed of data writing to the storage block while effectively improving the overall performance of the SSD.
[0068] As one implementation method, in this embodiment of the application, the preset current range includes a preset read current range, a preset write current range, and a preset erase current range. Step S12 includes:
[0069] S121. Divide the preset read current range, preset write current range and preset erase current range to obtain multiple read current ranges, multiple write current ranges and multiple erase current ranges of different current levels.
[0070] In this embodiment, the preset read current range can be divided to obtain multiple read current ranges of different current levels, the preset write current range can be divided to obtain multiple write current ranges of different current levels, and the preset erase current range can be divided to obtain multiple erase current ranges of different current levels.
[0071] For example, the preset read current range is [50,55] mA, which is divided into three levels: the first level read current range is [50,51] mA, the second level read current range is [52,53] mA, and the third level read current range is [54,55] mA; the preset write current range is [43,48] mA, which is divided into three levels: the first level write current range is [43,44] mA, the second level write current range is [45,46] mA, and the third level write current range is [47,48] mA; the preset erase current range is [23,28] mA, which is divided into three levels: the first level erase current range is [23,24] mA, the second level erase current range is [25,26] mA, and the third level erase current range is [27,28] mA.
[0072] S122. Based on the read current of each memory block and multiple read current ranges, obtain the read power consumption type of each memory block.
[0073] In this embodiment, the read power consumption type of the memory block can be determined based on whether the read current of the memory block belongs to the first level of read current range, the second level of read current range, or the third level of read current range.
[0074] For example, if the read current of a memory block is 50mA, then the read current of the memory block belongs to the first level of read current range, and the read power consumption type of the memory block is determined to be the first power consumption (or low power consumption).
[0075] S123. Based on the write current of each memory block and multiple write current ranges, obtain the write power consumption type of each memory block.
[0076] In this embodiment, the write power consumption type of the memory block can be determined based on whether the write current of the memory block belongs to the first level of write current range, the second level of write current range, or the third level of write current range.
[0077] For example, if the write current of a memory block is 45mA, then the write current of the memory block belongs to the second level of write current range, and the write power consumption type of the memory block is determined to be the second power consumption (or general power consumption).
[0078] S124. Based on the erase current of each memory block and multiple erase current ranges, obtain the erase power consumption type of each memory block.
[0079] In this embodiment, the erase power consumption type of the memory block can be determined based on whether the erase current of the memory block belongs to the first level erase current range, the second level erase current range, or the third level erase current range.
[0080] For example, if the erase current of a memory block is 27mA, then the erase current of the memory block belongs to the third level of erase current range, and the erase power consumption type of the memory block is determined to be third power consumption (or high power consumption).
[0081] S125. Based on the read power consumption type, write power consumption type and erase power consumption type of each storage block, obtain the power consumption type of each storage block, and divide each storage block according to the power consumption type of each storage block to obtain multiple storage pools with different power consumption levels.
[0082] In this embodiment, the current storage block can be selected from various storage blocks. Based on the read power consumption type, write power consumption type, and erase power consumption type of the current storage block, the power consumption type of the current storage block is obtained. In this way, the power consumption type corresponding to each storage block is obtained. Then, based on the power consumption type of each storage block, the storage blocks are divided to obtain multiple storage pools with different power consumption levels. The power consumption type of the storage block can include a first power consumption (or low power consumption), a second power consumption (or normal power consumption), and a third power consumption (or high power consumption). Based on the specific power consumption type of each storage block, the storage blocks can be divided to obtain a first power consumption (or low power consumption) storage pool, a second power consumption (or normal power consumption) storage pool, and a third power consumption (or high power consumption) storage pool. Specifically, multiple first power consumption storage blocks can be used to construct a first power consumption storage pool, multiple second power consumption storage blocks can be used to construct a second power consumption storage pool, and multiple third power consumption storage blocks can be used to construct a third power consumption storage pool.
[0083] As one implementation method, in this embodiment of the application, the read power consumption type, write power consumption type, and erase power consumption type respectively include a first power consumption, a second power consumption, and a third power consumption. Step S125 includes:
[0084] S1251. Select the current storage block from among the storage blocks;
[0085] In this embodiment, a storage block can be selected from each storage block as the current storage block. Specifically, the first storage block can be selected from each storage block as the current storage block.
[0086] S1252. Determine whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are first power consumption types. If yes, determine that the current storage block is a first power consumption storage block. If no, continue to determine whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are third power consumption types. If yes, determine that the current storage block is a third power consumption storage block. If no, determine that the current storage block is a second power consumption storage block.
[0087] In this embodiment, it is determined whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are first power consumption types. If the read power consumption type and write power consumption type of the current storage block are first power consumption types and the erase power consumption type is second power consumption type or third power consumption type, or the read power consumption type and erase power consumption type of the current storage block are first power consumption types and the write power consumption type is second power consumption type or third power consumption type, or the read power consumption type and erase power consumption type of the current storage block are second power consumption type or third power consumption type and the write power consumption type and erase power consumption type are first power consumption type, or the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are all first power consumption types, then the current storage block is determined to be a first power consumption storage block.
[0088] If only one of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is the first power consumption, or if none of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is the first power consumption, then it is further determined whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is the third power consumption. If the read power consumption type and write power consumption type of the current storage block are the third power consumption and the erase power consumption type is the first or second power consumption, or the read power consumption type and erase power consumption type of the current storage block are the third power consumption and the write power consumption type is the first or second power consumption, or the read power consumption type and erase power consumption type of the current storage block are the first or second power consumption and the write power consumption type and erase power consumption type are the third power consumption, or all of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are the third power consumption, then the current storage block is determined to be a third power consumption storage block.
[0089] If only one of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is a first power consumption type, or if none of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is a first power consumption type, and only one of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is a third power consumption type, or if none of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is a third power consumption type, then it means that at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is a second power consumption type, or if one of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block is a first power consumption type, one is a second power consumption type, and one is a third power consumption type, then the current storage block is determined to be a second power consumption storage block.
[0090] For example, if the current read current of the current memory block is 50mA, the current write current of the current memory block is 43mA, and the current erase current of the current memory block is 25mA, then the current memory block's read power consumption type is the first power consumption, the current memory block's write power consumption type is the first power consumption, and the current memory block's erase power consumption type is the second power consumption. Therefore, the current memory block is determined to be a memory block with the first power consumption (or low power consumption).
[0091] S1253. Until the power consumption type corresponding to each storage block is obtained, a first power consumption storage pool is constructed using multiple first power consumption storage blocks, a second power consumption storage pool is constructed using multiple second power consumption storage blocks, and a third power consumption storage pool is constructed using multiple third power consumption storage blocks.
[0092] In this embodiment, steps S1251 and S1252 are repeated until the power consumption type corresponding to each storage block is obtained. Then, a first power consumption storage pool is constructed using multiple first power consumption storage blocks, a second power consumption storage pool is constructed using multiple second power consumption storage blocks, and a third power consumption storage pool is constructed using multiple third power consumption storage blocks.
[0093] As one implementation method, in this embodiment of the application, the data to be written is written to the storage block in the storage pool of the corresponding power consumption level according to the internal temperature value and the preset temperature range. Step S14 includes:
[0094] S141. If the internal temperature value is greater than the maximum value of the preset temperature range, the data to be written is written to the storage block in the first power storage pool.
[0095] In this embodiment, the first power consumption can be low power consumption, the second power consumption can be normal power consumption, and the third power consumption can be high power consumption. Each storage block in the low power consumption storage pool can be a low power consumption storage block, each storage block in the normal power consumption storage pool can be a normal power consumption storage block, and each storage block in the high power consumption storage pool can be a high power consumption storage block. The preset temperature range can be [-20, 75] degrees. If the internal temperature value is greater than the maximum value of the preset temperature range (e.g., 75 degrees), it indicates that the SSD is in a high temperature state. Since the low power consumption storage block releases less heat when writing data, by continuously writing the requested data into one of the low power consumption storage blocks in the low power consumption storage pool, the power consumption during data writing can be effectively reduced, thereby reducing the internal temperature of the SSD and keeping the internal temperature of the SSD within the normal temperature range. This can effectively improve the speed of writing data into the storage block and effectively improve the overall performance of the SSD. Furthermore, to avoid the SSD operating at high temperatures for extended periods, when the SSD operates continuously for a predetermined duration (the specific duration is set according to the actual application scenario and is not specifically limited) when the internal temperature exceeds 105 degrees Celsius (or 125 degrees Celsius, other values can be set according to the actual scenario), a write speed reduction strategy is adopted. After the temperature drops to the preset temperature range, the data to be written is written to the storage block in the storage pool of the corresponding power consumption level according to the internal temperature value and the preset temperature range.
[0096] S142. If the internal temperature value is within the preset temperature range, the data to be written is written to the storage block in the second power storage pool.
[0097] In this embodiment, if the internal temperature value is within the preset temperature range (e.g., [-20, 75] degrees), it indicates that the SSD is in a normal temperature state. Since the heat released by the storage block during data writing is relatively normal, by writing the requested data into one of the general power storage blocks in the general power storage pool, the internal temperature of the SSD can be kept within the normal range, thereby effectively improving the speed of data writing into the storage block and effectively improving the overall performance of the SSD.
[0098] S143. If the internal temperature value is less than the minimum value of the preset temperature range, the data to be written will be written to the storage block in the third power storage pool.
[0099] In this embodiment, if the internal temperature value is less than the minimum value of the preset temperature range (e.g., -20 degrees Celsius), it indicates that the SSD is in a low-temperature environment. Since the high-power storage block releases more heat when writing data, writing the requested data into one of the high-power storage blocks in the high-power storage pool can effectively raise the internal temperature of the SSD, keeping the internal temperature of the SSD within the normal temperature range. This can effectively improve the speed of writing data into the storage block and effectively improve the overall performance of the SSD.
[0100] As one implementation method, in this embodiment of the application, the data to be written is written to a storage block in a storage pool of the corresponding power consumption level according to the internal temperature value and a preset temperature range, including:
[0101] Based on the internal temperature value and the preset temperature range, the requested data is written to the storage block with the fewest erase / write cycles in the storage pool corresponding to the power consumption level.
[0102] In this embodiment, by writing the requested data to the storage block with the fewest erase / write cycles in the storage pool according to the internal temperature value and the preset temperature range, wear leveling between storage blocks can be achieved, effectively avoiding uneven wear between storage blocks.
[0103] In one embodiment of this application, after step S12, the method further includes:
[0104] S21. Obtain the write current of the storage block to which data is being written, and update the write current of the storage block to which data is being written.
[0105] In this embodiment, step S21 can be executed after step S14 or step S143. By obtaining the write current of the storage block to which data is being written when the storage block is being written, and updating the write current of the storage block to which data is being written, dynamic updating and adjustment of the write current of the storage block can be achieved.
[0106] S22. Update the erase / write count of the storage block after the data has been written;
[0107] In this embodiment, the write / erase count of the storage block can be dynamically updated by updating the write / erase count of the storage block after data has been written.
[0108] S23. Upon receiving a data read request, read the requested data from the corresponding storage block;
[0109] In this embodiment, the data read request can be a data read request input by the front-end host through an interface (such as a SATA interface). After receiving the data read request sent by the front-end host through the interface, the data requested to be read is read from the corresponding storage block. Step S23 can be executed after step S22, or after step S12 or step S14. The specific execution step is determined according to the type of request input through the interface.
[0110] S24. Obtain the read current of the storage block containing the data being read, and update the read current of the storage block containing the data being read.
[0111] In this embodiment, by obtaining the read current of the storage block when the storage block is reading data and updating the read current of the storage block, the dynamic updating and adjustment of the read current of the storage block can be achieved.
[0112] S25. Upon receiving a data erase request, erase the data to be erased from the corresponding storage block;
[0113] In this embodiment, the data read request can be a data erase request input by the front-end host through the interface. The data read request can be a security erase command or a trim command input by the front-end host through the interface. After receiving the data erase request sent by the front-end host through the interface, the data to be erased in the corresponding storage block is erased. Step S25 can be executed after step S24, or after step S12 or step S14. The specific execution step is determined according to the type of request input through the interface.
[0114] S26. Obtain the erase current of the storage block containing the data to be erased, and update the erase current of the storage block containing the data to be erased.
[0115] In this embodiment, by obtaining the erasure current of the storage block whose data is being erased when the storage block is erased, and updating the erasure current of the storage block whose data is being erased, dynamic updating and adjustment of the erasure current of the storage block can be achieved.
[0116] S27. Update the number of erase / write cycles for the storage block after the data has been erased.
[0117] In this embodiment, the write / erase count of the storage block can be dynamically updated by updating the write / erase count of the storage block after the data has been erased.
[0118] In one embodiment of this application, after step S12, the method further includes:
[0119] S31. Upon receiving a storage pool management request, determine whether there are any storage blocks in each storage pool whose erase / write counts exceed a preset threshold.
[0120] In this embodiment, the preset number threshold is a pre-set erase / write number threshold, which can be 1000 times. When a storage pool management request is received through the interface, it is determined whether there are storage blocks in each storage pool or in an idle storage pool that have an erase / write number exceeding the preset number threshold. Step S31 can be executed after step S22, or after step S24 or step S27, depending on the type of request input through the interface.
[0121] S32. If so, then based on the updated read current, updated write current, updated erase current and preset current range of each storage block, the updated power consumption type of each storage block is obtained, and based on the updated power consumption type of each storage block, each storage block is re-divided to obtain multiple updated storage pools with different power consumption levels.
[0122] In this embodiment, if there are memory blocks in each memory pool or in an idle memory pool that have exceeded the preset number of erase / write cycles, the updated power consumption type of each memory block is obtained based on the updated read current, updated write current, updated erase current and preset current range of each memory block. Then, based on the updated power consumption type of each memory block, each memory block is re-divided to obtain multiple updated memory pools with different power consumption levels, thereby realizing the dynamic division and dynamic adjustment of memory pools.
[0123] like Figure 2 As shown in the illustration, this application embodiment also provides a temperature control device for a storage device, comprising:
[0124] The first acquisition module 201 is used to acquire the read current, write current and erase current of each storage block in the storage device;
[0125] The processing module 202 is used to obtain the power consumption type of each memory block based on the read current, write current, erase current and preset current range of each memory block, and to divide each memory block according to the power consumption type of each memory block to obtain multiple memory pools with different power consumption levels.
[0126] The second acquisition module 203 is used to acquire the internal temperature value of the storage device after receiving a data write request;
[0127] The write module 204 is used to write the requested data into the storage block of the storage pool of the corresponding power consumption level according to the internal temperature value and the preset temperature range.
[0128] like Figure 3 As shown, this application embodiment also provides an electronic device, including: a processor 301, a memory 302, and a communication bus 303;
[0129] Communication bus 303 is used to realize the connection and communication between processor 301 and memory 302;
[0130] Processor 301 is configured to execute a temperature control program for a storage device stored in memory 302 to implement the steps of the temperature control method for the storage device as described above.
[0131] This application also provides a readable storage medium storing computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the temperature control method of any of the storage devices described above.
[0132] It should be understood that the use of terms such as "system," "device," "unit," and / or "module" in this application is merely one method of distinguishing multiple components, elements, parts, sections, or assemblies at multiple levels. However, if other terms can achieve the same purpose, they may be replaced by other expressions.
[0133] The embodiments in this specification are described in a progressive manner. Each embodiment focuses on the multiple aspects that are different from other embodiments. The same or similar parts between the embodiments can be referred to each other.
[0134] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A temperature control method for a storage device, characterized in that, include: Obtain the read current, write current, and erase current of each storage block in the storage device; Based on the read current, write current, erase current, and preset current range of each memory block, the power consumption type of each memory block is obtained. Based on the power consumption type of each memory block, each memory block is divided into multiple memory pools with different power consumption levels. The multiple memory pools include a first power consumption memory pool, a second power consumption memory pool, and a third power consumption memory pool. The first power consumption memory pool is a low power consumption memory pool, the second power consumption memory pool is a general power consumption memory pool, and the third power consumption memory pool is a high power consumption memory pool. Upon receiving a data write request, the internal temperature value of the storage device is obtained; Based on the internal temperature value and the preset temperature range, the data to be written is written to the storage block in the storage pool of the corresponding power consumption level; The step of writing the requested data to a storage block in the storage pool of the corresponding power consumption level based on the internal temperature value and the preset temperature range includes: If the internal temperature value is greater than the maximum value of the preset temperature range, the data to be written will be written to the storage block in the first power consumption storage pool. If the internal temperature value is within the preset temperature range, the data to be written will be written to the storage block in the second power consumption storage pool. If the internal temperature value is less than the minimum value of the preset temperature range, the data to be written will be written to the storage block in the third power consumption storage pool.
2. The method according to claim 1, characterized in that, The preset current range includes a preset read current range, a preset write current range, and a preset erase current range. Based on the read current, write current, erase current, and preset current range of each memory block, the power consumption type of each memory block is obtained. Then, based on the power consumption type of each memory block, the memory blocks are divided into multiple memory pools with different power consumption levels, including: The preset read current range, the preset write current range, and the preset erase current range are divided to obtain multiple read current ranges, multiple write current ranges, and multiple erase current ranges of different current levels. Based on the read current of each memory block and the multiple read current ranges, the read power consumption type of each memory block is obtained; The write power consumption type of each memory block is obtained based on the write current of each memory block and the multiple write current ranges. The erase power consumption type of each memory block is obtained based on the erase current of each memory block and the multiple erase current ranges; Based on the read power consumption type, write power consumption type, and erase power consumption type of each storage block, the power consumption type of each storage block is obtained. Based on the power consumption type of each storage block, the storage blocks are divided to obtain multiple storage pools with different power consumption levels.
3. The method according to claim 2, characterized in that, The read power consumption type, the write power consumption type, and the erase power consumption type respectively include a first power consumption, a second power consumption, and a third power consumption. The power consumption type of each storage block is obtained based on its read power consumption type, write power consumption type, and erase power consumption type. Then, based on the power consumption type of each storage block, the storage blocks are divided to obtain multiple storage pools with different power consumption levels, including: Select the current storage block from among the aforementioned storage blocks; Determine whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are first power consumption types. If so, determine that the current storage block is a first power consumption storage block. If not, continue to determine whether at least two of the read power consumption type, write power consumption type, and erase power consumption type of the current storage block are third power consumption types. If so, determine that the current storage block is a third power consumption storage block. If not, determine that the current storage block is a second power consumption storage block. Until the power consumption type corresponding to each of the storage blocks is obtained, the first power consumption storage pool is constructed using multiple first power consumption storage blocks, the second power consumption storage pool is constructed using multiple second power consumption storage blocks, and the third power consumption storage pool is constructed using multiple third power consumption storage blocks.
4. The method according to claim 1, characterized in that, The step of writing the requested data to a storage block in the storage pool of the corresponding power consumption level based on the internal temperature value and the preset temperature range includes: Based on the internal temperature value and the preset temperature range, the data to be written is written to the storage block with the fewest erase / write cycles in the storage pool corresponding to the power consumption level.
5. The method according to any one of claims 1 to 4, characterized in that, After determining the power consumption type of each memory block based on its read current, write current, erase current, and a preset current range, and dividing the memory blocks into multiple memory pools with different power consumption levels based on their power consumption types, the method further includes: Get the write current of the storage block where data is being written, and update the write current of the storage block where data is being written. The number of erase / write cycles for the storage block after data has been written to it; Upon receiving a data read request, the requested data is read from the corresponding storage block. Get the read current of the storage block containing the data being read, and update the read current of the storage block containing the data being read; Upon receiving a data erase request, erase the data requested to be erased from the corresponding storage block; Get the erase current of the storage block containing the data to be erased, and update the erase current of the storage block containing the data to be erased; Update the number of erase / write cycles for the storage block after the data has been erased.
6. The method according to claim 5, characterized in that, After determining the power consumption type of each memory block based on its read current, write current, erase current, and a preset current range, and dividing the memory blocks into multiple memory pools with different power consumption levels based on their power consumption types, the method further includes: Upon receiving a storage pool management request, it is determined whether there are any storage blocks in each of the storage pools whose write / erase counts exceed a preset threshold. If so, the updated power consumption type of each storage block is obtained based on the updated read current, updated write current, updated erase current and the preset current range of each storage block, and the storage blocks are re-divided according to the updated power consumption type of each storage block to obtain multiple updated storage pools with different power consumption levels.
7. A temperature control device for a storage device, characterized in that, include: The first acquisition module is used to acquire the read current, write current and erase current of each storage block in the storage device; The processing module is used to obtain the power consumption type of each memory block based on the read current, write current, erase current and preset current range of each memory block, and to divide each memory block into multiple memory pools with different power consumption levels based on the power consumption type of each memory block. The multiple memory pools include a first power consumption memory pool, a second power consumption memory pool and a third power consumption memory pool. The first power consumption memory pool is a low power consumption memory pool, the second power consumption memory pool is a general power consumption memory pool and the third power consumption memory pool is a high power consumption memory pool. The second acquisition module is used to acquire the internal temperature value of the storage device after receiving a data write request; The writing module is used to write the requested data into the storage block of the storage pool of the corresponding power consumption level according to the internal temperature value and the preset temperature range. When the write module executes the step of writing the requested data to a storage block in the storage pool of the corresponding power consumption level based on the internal temperature value and the preset temperature range, it is specifically used for: If the internal temperature value is greater than the maximum value of the preset temperature range, the data to be written will be written to the storage block in the first power consumption storage pool. If the internal temperature value is within the preset temperature range, the data to be written will be written to the storage block in the second power consumption storage pool. If the internal temperature value is less than the minimum value of the preset temperature range, the data to be written will be written to the storage block in the third power consumption storage pool.
8. An electronic device, characterized in that, include: Processor, memory, and communication bus; The communication bus is used to realize the connection and communication between the processor and the memory; The processor is configured to execute a temperature control program for a storage device stored in the memory, to implement the steps of the temperature control method for a storage device as described in any one of claims 1-6.
9. A readable storage medium, characterized in that, The readable storage medium stores computer-executable instructions, which, when loaded and executed by a processor, implement the steps of the temperature control method for the storage device as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Apparatus for detecting remanent stored energy in a storage battery and for warning of reduction in remanent stored energy
EP0519460A1
Method and system for block allocation for hybrid drives
US20090089343A1
