A method and system for controlling energy consumption of a solid-state hard disk throughout its life cycle
By performing write durability evaluation and timing usage detection on solid-state drives, the life cycle phase is divided, and the energy consumption adaptive strategy is implemented, the energy consumption management problem of solid-state drives throughout their life cycle is solved, and efficient energy management and hard disk life extension are achieved.
Patent Information
- Application Number
- CN202510199594.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-24
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2045-02-24
AI Technical Summary
The prior art is difficult to effectively manage the full life cycle energy consumption of solid-state drives, especially in the problem of flash memory wear caused by write operations, resulting in low energy efficiency control efficiency.
By obtaining solid-state drive structure data for write durability evaluation and timing usage detection, the life cycle phase is divided, and external sensors are used to collect energy consumption throughout the life cycle. Depending on the characteristics of different stages, write storage optimization, wear equalization optimization and low-power operation modes are implemented to achieve energy-consuming adaptive strategies.
It realizes precise management of the energy consumption of solid-state drives throughout the life cycle, extends the service life of the hard drive, improves energy efficiency, and reduces energy waste.
Smart Images

Figure CN119690356B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of hard disk energy consumption control, and in particular to a full life cycle energy consumption control method and system for a solid state hard disk. Background Art
[0002] In the early days, energy efficiency research on SSDs mainly focused on optimizing hardware architectures, such as low-power design of flash memory chips and energy efficiency improvement of controller algorithms. With the widespread application of SSDs, especially in data centers, cloud computing and big data, the requirements for their energy consumption are getting higher and higher. In order to meet this challenge, researchers have proposed energy efficiency management methods for the entire life cycle of SSDs, from material selection in the production process, to load scheduling in the use process, to recycling and reuse in the waste stage, and gradually built a set of systematic energy efficiency management strategies. In recent years, with the development of artificial intelligence, big data analysis and Internet of Things technologies, energy efficiency management of SSDs has gradually developed in the direction of intelligence and automation. By dynamically adjusting the working mode, optimizing data access strategies, and adopting low-power modes, the energy consumption of SSDs during use can be significantly reduced. However, traditional SSD energy efficiency research currently focuses on a single use stage and lacks comprehensive management of the entire life cycle. At the same time, during the use of SSDs, write operations will cause flash memory wear, which in turn affects the performance and energy efficiency of the device, resulting in low efficiency of energy efficiency management of solid-state drives. Summary of the invention
[0003] Based on this, it is necessary to provide a method and system for controlling energy consumption of a solid-state drive throughout its life cycle to solve at least one of the above technical problems.
[0004] To achieve the above object, a method for controlling energy consumption of a solid state drive throughout its life cycle is provided, the method comprising the following steps:
[0005] Step S1: acquiring solid-state hard disk structure data; performing hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; performing timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; performing solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes a first life cycle stage of the solid-state hard disk, a second life cycle stage of the solid-state hard disk, and a third life cycle stage of the solid-state hard disk;
[0006] Step S2: Based on the solid-state hard disk life cycle division data, the solid-state hard disk is subjected to full life cycle energy consumption collection using an external sensor, thereby obtaining the solid-state hard disk full life cycle energy consumption collection data; according to the first life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to write storage optimization, and the solid-state hard disk write cache optimization data is generated; according to the second life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to wear leveling optimization, and the solid-state hard disk load leveling optimization data is generated;
[0007] Step S3: performing low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing low-power operation mode on the solid-state hard disk according to the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generating low-power optimization data of the solid-state hard disk;
[0008] Step S4: According to the SSD write cache optimization data, the SSD load balancing optimization data and the SSD low power optimization data, the SSD life cycle division data is respectively executed with a stage energy consumption adaptive strategy to perform energy consumption control operation operations for the entire life cycle of the SSD.
[0009] The present invention can deeply understand the actual use and remaining life of the hard disk by evaluating the write durability of the solid-state hard disk structure data, and provide an accurate basis for subsequent energy efficiency control. Through the combination of time-series usage monitoring data and durability evaluation, the solid-state hard disk can be reasonably divided into life cycles, so that different optimization strategies can be adopted according to the characteristics of different stages to extend the service life of the hard disk and improve energy efficiency. Through the external sensor to collect energy consumption of the hard disk throughout its life cycle, the energy consumption changes of the hard disk at each life cycle stage can be grasped in real time, helping to discover potential energy efficiency problems. Through write storage optimization (such as optimizing write cache), data storage efficiency can be improved and unnecessary energy consumption can be reduced. Through wear leveling optimization (load balancing), premature wear of certain areas can be prevented, thereby extending the life of the hard disk and improving overall performance, and reducing additional energy consumption caused by uneven wear. After the hard disk enters the third life cycle stage, low-speed read and write energy consumption control helps to save energy by reducing unnecessary high-energy consumption operations. Through the execution of low-power operation mode, the energy consumption of the hard disk when idle or under load can be reduced, further optimizing the overall energy efficiency of the system. Execute adaptive strategies according to the energy efficiency requirements of different life cycle stages to ensure that the energy consumption of the hard disk is optimized at each stage, avoiding the situation where fixed strategies cannot adapt to different workloads. The energy efficiency management scheme can be dynamically adjusted according to the real-time status of the hard disk and changes in the life cycle stage, so as to more accurately control energy consumption and improve the long-term energy efficiency and service life of the hard disk. Therefore, the present invention provides a full life cycle adaptive energy efficiency management method by combining the life cycle division of solid-state hard disks, write endurance evaluation and real-time energy consumption optimization strategy, thereby improving the efficiency of solid-state hard disk energy efficiency management.
[0010] Preferably, step S1 comprises the following steps:
[0011] Step S11: Acquire the solid state hard disk structure data;
[0012] Step S12: performing a SSD flash memory unit level analysis on the SSD structure data to generate SSD flash memory unit level data; performing a hard disk write durability evaluation on the SSD based on the SSD flash memory unit level data to generate SSD write durability evaluation data;
[0013] Step S13: performing a time sequence usage detection on the solid state drive based on the solid state drive write endurance evaluation data to generate solid state drive time sequence usage monitoring data; performing data preprocessing on the solid state drive time sequence usage monitoring data to generate standard solid state drive time sequence usage monitoring data, wherein the data preprocessing includes data cleaning, data denoising, data missing value filling and data standardization;
[0014] Step S14: divide the SSD life cycle by using the standard SSD timing usage monitoring data to write the SSD endurance assessment data, and generate SSD life cycle division data, wherein the SSD life cycle division data includes the first life cycle stage of the SSD, the second life cycle stage of the SSD, and the third life cycle stage of the SSD.
[0015] The present invention lays the foundation for subsequent analysis by acquiring the structural data of the solid-state hard disk, ensuring that the analysis is based on the real device structure. Flash memory unit hierarchical analysis deeply explores the internal structure of the solid-state hard disk, generates flash memory unit hierarchical data, and performs hard disk write durability evaluation. This evaluation data can be used to predict hard disk performance and life, and improve management accuracy. The use status of the hard disk is dynamically monitored through time-series usage detection, and the monitoring data is cleaned, denoised, filled and standardized. These steps ensure the accuracy and consistency of the data, reduce noise interference, and improve analysis efficiency. According to the standard time-series usage monitoring data and write durability evaluation results, the solid-state hard disk life cycle stage is accurately divided. This detailed division makes life cycle management more scientific, which helps to predict hard disk performance at different stages, optimize resource allocation and plan replacement time. Through the full process of structural data acquisition, hierarchical analysis, durability evaluation, time-series monitoring and life cycle division, comprehensive data support and analysis methods are provided for the intelligent management of solid-state hard disks.
[0016] Preferably, step S14 includes the following steps:
[0017] Step S141: using a controller in the solid state drive to periodically scan the solid state drive to obtain solid state drive periodic scanning data; comparing the solid state drive periodic scanning data with the standard solid state drive timing usage monitoring data to perform a comparison of the number of storage units in the hard disk to generate a solid state drive storage unit comparison value;
[0018] Step S142: determining the periodic variation trend of the comparison value of the solid state disk storage unit to obtain the floating data of the solid state disk storage unit; marking the floating area of the solid state disk periodic scan data based on the floating data of the solid state disk storage unit to obtain the floating area of the solid state disk storage unit;
[0019] Step S143: performing a hard disk storage bad block evaluation on the solid state disk periodic scanning data according to the floating area of the solid state disk storage unit to generate hard disk storage bad block evaluation data; performing a solid state disk actual use durability calculation on the solid state disk write durability evaluation data based on the hard disk storage bad block evaluation data using a hard disk use durability evaluation formula to obtain the solid state disk actual use durability data;
[0020] Step S144: comparing the actual use durability data of the solid state drive with the preset standard use durability range, when the actual use durability data of the solid state drive is greater than the preset standard use durability range, the first life cycle stage of the solid state drive is generated; when the actual use durability data of the solid state drive is within the preset standard use durability range, the second life cycle stage of the solid state drive is generated;
[0021] Step S145: When the actual usage endurance data of the solid state drive is less than the preset standard usage endurance range, the third life cycle stage of the solid state drive is generated.
[0022] The present invention uses a built-in controller of a solid-state hard disk to periodically scan the hard disk, and combines standard time series monitoring data to generate a comparison value of the solid-state hard disk storage unit. This process lays the foundation for dynamic monitoring of the health status of the hard disk, and can timely discover potential abnormalities of the storage unit. Through the analysis of the periodic change trend, the floating data of the storage unit is obtained and the floating area is marked. This precise marking technology can locate the specific area where the hard disk storage performance fluctuates, and provide targeted data support for subsequent bad block evaluation. The bad block is evaluated through the floating area, and the actual use durability is calculated in combination with the hard disk using the durability evaluation formula. This process not only improves the accuracy of bad block detection, but also provides a scientific quantitative basis for the actual use durability of the hard disk. The actual use durability is compared with the standard range, and the life cycle of the solid-state hard disk is refined and divided into three stages. Each stage corresponds to a different hard disk state: the first stage: the hard disk is healthy and has excellent performance. The second stage: the hard disk enters the durability range, and the performance gradually decreases but is still usable. The third stage: the hard disk is close to its service life, and it is necessary to consider replacement or take data protection measures. Through accurate floating area marking and durability assessment, potential problems of hard disks can be identified and handled before entering the second or third life cycle stage, extending the service life of hard disks and reducing the risk of sudden failures. The precise division of hard disk life cycle provides data support for equipment replacement planning, resource allocation and optimization of maintenance strategies.
[0023] Preferably, the hard disk usage durability evaluation formula in step S143 is as follows:
[0024] ;
[0025] In the formula, Expressed as time The actual durability of the SSD at all times. Expressed as time The number of bad blocks at the moment, Indicates the maximum bad block capacity of the solid state drive. Indicated as SSD time The total amount of writes at the moment, Indicates the maximum write capacity of the SSD. Expressed as time The temperature of the moment, It is expressed as the weight of the bad block's impact on the hard disk life. It is expressed as the weight of the impact of write load on hard disk life. It is expressed as the weight of the impact of temperature on hard disk life. It is expressed as the rate at which bad blocks affect the life of the SSD. It is expressed as the rate at which the write load affects the life of the SSD. Expressed as the exponential decay effect coefficient of temperature change on hard disk endurance.
[0026] The present invention analyzes and integrates a hard disk durability evaluation formula, and the overall form of the formula adopts integral operation: ; The points indicate that during the entire use process, the durability of the SSD is gradually affected by these factors. As the number of SSDs increases, these factors change, and their effects are not linear. Each term in the integral represents the impact of different factors on the life of the SSD. Over time, the impact will gradually accumulate, and finally a complete durability evaluation will be obtained. Each term in the formula represents a specific influencing factor of the SSD. Each influencing factor not only works alone, but also interacts with each other in the accumulation process, thus producing a beneficial predictive effect on the life of the SSD. Number of bad blocks Maximum number of bad blocks The role of is: Bad blocks are one of the main signs of SSD aging. The increase in the number of bad blocks means that the storage unit is damaged more, which leads to a reduction in the available storage space of the SSD and even affects the read and write performance. To indicate the relative severity of the bad blocks. Controlling the nonlinear effect of the number of bad blocks on the life of the SSD means that as the number of bad blocks increases, the decay of the SSD life accelerates. Less than 1 means that the increase in the number of bad blocks has a decreasing effect on the durability, but it still plays an important role. By tracking the number of bad blocks as a dynamic factor, the health of the SSD during use can be reflected in real time, which helps to provide early warning and predict the remaining life. Write load Maximum write capacity The role of is: Write operation is the key factor affecting the life of SSD. The flash memory cell of SSD will experience a certain degree of wear every time it is written. As the number of writes increases, the durability of the flash memory cell decreases, eventually leading to the end of the life of the hard disk. The write ratio in the formula Used to indicate the relative proportion of data written. Controls the nonlinear effect of write load on durability, usually Less than 1 means that when the write load increases, the rate of hard disk life decay also increases, but in a decreasing effect. By dynamically tracking the amount of SSD writes, the intensity of hard disk usage can be evaluated, which helps predict how long the hard disk can last under future write loads. Temperature and temperature coefficient The role of is: Temperature is an important external factor that affects the life of SSD. Too high temperature will accelerate the aging process of flash memory cells, increase electron migration and loss, so the life of SSD is shorter in high temperature environment. The formula is through the exponential decay model To express the effect of temperature on durability. The degree of influence of temperature on SSD life is usually a positive value, which means that for every unit increase in temperature, the life of the SSD will decrease according to an exponential decay law. This effect will become more significant as the temperature rises. The influence of temperature cannot be ignored in actual use. By dynamically monitoring the operating temperature of the SSD and taking it into account, it is possible to more accurately predict the damage that the SSD will encounter when the temperature is too high, and take corresponding cooling measures to extend the life of the hard disk. Weight coefficient , , They respectively represent the weights of the number of bad blocks, write load, and temperature on the life of the hard disk. The importance of each factor can be adjusted according to the actual application scenario. For example, in some high-load applications, the number of writes has a more important impact on the life, while for SSDs used in high-temperature environments, the impact of temperature is more prominent. These weight coefficients allow the degree of influence of each factor on the life to be adjusted according to the specific situation, so that the formula can be flexibly adapted to the working environment and usage scenarios of different hard disks, thereby providing a more accurate durability evaluation. When using the conventional hard disk durability evaluation formula in the field, it can be obtained in time The actual durability of the solid state drive at the time can be more accurately calculated by applying the hard disk durability evaluation formula provided by the present invention. The actual durability of the SSD at all times. The various factors in the formula accumulate over time and can reflect the health of the SSD in real time. By tracking changes in bad blocks, write volume, and temperature, the system can predict the remaining life of the SSD and provide a reliable durability assessment. Different factors (number of bad blocks, write load, temperature) affect the service life of the hard drive in different ways. By introducing nonlinear relationships (such as exponential decay terms), the formula can more accurately characterize the impact of these factors on life, especially in complex usage environments (such as high temperature or high write load scenarios).
[0027] Preferably, step S2 comprises the following steps:
[0028] Step S21: Based on the solid state drive life cycle division data, an external sensor is used to collect energy consumption of the solid state drive throughout its life cycle, thereby obtaining energy consumption collection data of the solid state drive throughout its life cycle;
[0029] Step S22: performing hard disk write feature analysis on the solid state disk according to the first life cycle stage of the solid state disk to generate solid state disk write feature data; performing write storage optimization on the solid state disk full life cycle energy consumption collection data using the solid state disk write feature data to generate solid state disk write cache optimization data;
[0030] Step S23: performing hard disk usage thermal management on the solid state hard disk timing usage monitoring data according to the second life cycle stage of the solid state hard disk to generate hard disk usage thermal management data; performing temperature control diagram conversion on the solid state hard disk using the hard disk usage thermal management data to generate a solid state hard disk usage temperature control diagram;
[0031] Step S24: extracting the temperature gradient characteristics of the temperature control diagram of the solid state drive, and performing wear leveling optimization on the energy consumption data collected over the entire life cycle of the solid state drive through the temperature gradient characteristics to generate load leveling optimization data for the solid state drive.
[0032] The present invention collects the energy consumption data of the hard disk at different life cycle stages through an external sensor, and provides accurate basic data for comprehensive analysis of energy consumption characteristics. This method can help identify energy consumption peaks and potential waste, and support energy consumption optimization strategies. Through hard disk write feature analysis, the performance bottleneck in the hard disk write process is identified, and the results are used to optimize the energy consumption data of the entire life cycle. The generated write cache optimization data can reduce unnecessary write operations, thereby reducing hard disk power consumption and improving storage efficiency. Through thermal management analysis of timing usage monitoring data, a temperature control map is generated and dynamic temperature control is realized to prevent performance degradation or hard disk damage due to overheating. This real-time temperature control technology provides a stable environment for hard disk operation. By extracting temperature gradient features, wear leveling optimization of energy consumption data of the entire life cycle is realized. This optimization strategy reduces excessive wear in high-frequency write areas, improves the overall life of the hard disk, and ensures the reliability of data access. Step S2 provides a complete set of optimization methods from energy consumption monitoring, write optimization to thermal management and wear leveling. These steps work together to effectively extend the service life of the hard disk, reduce energy waste, and improve operating performance.
[0033] Preferably, using the solid state drive writing characteristic data to write and store the solid state drive full life cycle energy consumption collection data to optimize the writing includes:
[0034] Performing write mode analysis on the solid state hard disk write characteristic data through a hard disk controller to generate hard disk write mode data, wherein the write mode analysis includes a sequential write mode and a random write mode;
[0035] Based on the hard disk write mode data, the hard disk write feature data is used to identify the hard disk write hotspot area, and the hard disk write hotspot area and the hard disk write non-hotspot area are generated; the write load of the hard disk write hotspot area is calculated to obtain the hard disk write hotspot area load data;
[0036] Adjust the writing frequency of the hard disk writing hotspot area according to the hard disk writing hotspot area load data, and generate the hard disk writing hotspot area cache data; use the first-in-first-out strategy to perform regional common cache on the hard disk writing non-hotspot area, and generate the writing non-hotspot area cache data;
[0037] Based on the hard disk write hot spot area load data and write non-hot spot area cache data, the solid state drive full life cycle energy consumption collection data is optimized for write storage area allocation to generate solid state drive write cache optimization data.
[0038] The present invention can dynamically adjust the write strategy and improve storage efficiency by identifying and analyzing the sequential write mode and the random write mode. For high-frequency write hotspot areas, a precise optimization strategy is provided to effectively reduce write conflicts and performance bottlenecks, and significantly improve the overall performance of the hard disk. By calculating the load of the hotspot area and adjusting the frequency, high-frequency use of a single area is avoided, and the power consumption and excessive wear risk are reduced. A first-in-first-out (FIFO) strategy is applied to non-hotspot areas to improve cache efficiency and balance energy consumption distribution, thereby achieving full life cycle energy consumption optimization. Based on the cache data written to the hotspot area and the non-hotspot area, the write area allocation is optimized to prevent excessive concentration of write hotspot areas or waste of resources in non-hotspot areas, thereby achieving more balanced storage resource utilization. Through the separate management of hotspot area cache and ordinary area cache, the stability of data writing is improved and the potential risk of data loss is reduced. The hard disk controller dynamically adjusts the write area allocation according to the load data, which helps to adapt to different workloads in real time and improve the reliability of the hard disk. Based on the write mode data and the hotspot area load data, intelligent management of write behavior is achieved. Modules such as write mode analysis, load calculation, frequency adjustment, and cache management work together to form a complete optimization closed loop. Combined with the energy consumption data collected during the entire life cycle of the solid-state drive, the optimization strategy is dynamically adjusted according to the write characteristics of different life cycle stages to reduce energy waste in high-energy consumption stages and extend the service life of the hard drive. Through load data analysis and regional optimization, potential performance issues can be identified to provide data support for predictive maintenance.
[0039] Preferably, step S24 includes the following steps:
[0040] Step S241: extracting cells of the solid state drive temperature control diagram and marking them as solid state drive storage block temperature units; mapping temperature values of the solid state drive storage block temperature units to obtain temperature gradient characteristics of the solid state drive temperature control diagram;
[0041] Step S242: performing temperature change analysis on the temperature control map of the solid state drive based on the temperature gradient characteristics to generate temperature change data of the solid state drive; marking the high temperature gradient area on the temperature control map of the solid state drive based on the temperature change data of the solid state drive to generate the high temperature gradient area of the solid state drive;
[0042] Step S243: performing hard disk write load identification on the high temperature gradient area of the solid state disk to obtain write load data of the high temperature gradient area; performing write rotation of adjacent storage blocks on the solid state disk using a temperature control map according to the write load data of the high temperature gradient area to generate a write shunt area of the solid state disk;
[0043] Step S244: Utilize the SSD write diversion area and the SSD high temperature gradient area to perform write redirection on the SSD full life cycle energy consumption collection data, thereby generating SSD load balancing optimization data.
[0044] The present invention can realize refined monitoring of the thermal distribution of solid state hard disks by extracting storage block temperature units and generating temperature gradient features, and can detect high temperature areas in advance, thereby reducing the risk of heat accumulation. By clearly marking the high temperature areas, the risk areas can be accurately identified in the thermal management process, providing a basis for the optimization strategy. The high temperature gradient area is analyzed by the temperature control map and the adjacent storage blocks are written in rotation, so as to avoid the high temperature area from bearing the write load for a long time and reduce the impact of local thermal stress on the life of the hard disk. The write task is redirected, and some tasks are diverted to the low temperature area, which effectively balances the temperature distribution of the hard disk and prevents performance degradation or hardware damage caused by overheating. The write load data is used to dynamically adjust the write intensity of the high temperature area to reduce the peak energy consumption. Through the write diversion and redirection strategy, the energy consumption distribution is optimized throughout the life cycle, the hard disk operation efficiency is improved, and a longer efficient working state is achieved. Based on the real-time temperature control map data, the solid state hard disk can dynamically adjust the write behavior to ensure that the temperature and load of different areas are always in the best state. Using the temperature control map and load data, the write task is automatically assigned to the appropriate area, reducing manual intervention and improving management efficiency. By marking high-temperature areas and writing diversion, hard disk performance degradation caused by overheating is avoided, ensuring consistency in data writing and reading speeds. Efficient temperature control and load balancing strategies are suitable for high-intensity, continuous writing scenarios, such as data centers and servers.
[0045] Preferably, step S3 comprises the following steps:
[0046] Step S31: performing a remaining durability analysis on the SSD write durability evaluation data according to the third life cycle stage of the SSD to generate SSD remaining durability data;
[0047] Step S32: performing low-speed reading and writing energy consumption control on the solid-state hard disk based on the remaining endurance data of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing reading and writing energy-saving optimization on the low-speed reading and writing energy consumption control data of the hard disk and the energy consumption collection data of the whole life cycle of the solid-state hard disk, and generating solid-state hard disk writing energy-saving optimization data;
[0048] Step S33: using the energy-saving optimization data written into the solid-state hard disk to isolate the bad block area of the floating area of the solid-state hard disk storage unit, and generating bad block area isolation data;
[0049] Step S34: writing energy-saving optimization data to the solid-state hard disk is executed in a low-power operation mode through bad block area isolation data, thereby generating low-power optimization data for the solid-state hard disk.
[0050] The present invention generates remaining durability data by analyzing the durability evaluation data written to the solid-state hard disk, providing an accurate reference for subsequent optimization of the hard disk and extending the service life of the hard disk. The bad block area in the floating area of the storage unit is isolated, effectively reducing the impact of the bad block on the storage system, and improving the stability and data security of the hard disk. The read and write speed of the hard disk is dynamically adjusted based on the remaining durability data, effectively reducing the energy waste caused by high-intensity work, and reducing the mechanical loss of the hard disk. Combined with the bad block area isolation data, the low-power operation strategy is optimized to ensure that the hard disk operates efficiently under low load conditions, greatly reducing the total energy consumption in the entire life cycle. By performing read and write energy-saving optimization on energy consumption control data and full life cycle energy consumption collection data, the generated write energy-saving optimization data helps to improve the overall energy efficiency of the hard disk and meets the green storage requirements. On the basis of energy-saving optimization, the low-power operation mode is further promoted to ensure that the hard disk achieves the best balance between energy consumption and performance. The remaining durability of the hard disk is dynamically evaluated to keep the hard disk operation mode consistent with the current usage status and improve resource utilization. Through the combination of bad block isolation and low-power operation mode, high-risk areas are automatically avoided to improve the intelligent management capability of the hard disk. The remaining durability analysis and bad block isolation work together to significantly reduce hard drive failures caused by damaged areas and increase the overall service life of the hard drive. By optimizing read and write energy saving and low power operation strategies, the frequency of hard drive wear is reduced, thereby reducing hard drive replacement and maintenance costs.
[0051] Preferably, step S4 comprises the following steps:
[0052] Step S41: executing the phase energy consumption adaptive strategy for the solid state drive life cycle division data respectively according to the solid state drive write cache optimization data, the solid state drive load balancing optimization data and the solid state drive low power consumption optimization data, thereby generating the solid state drive full life cycle energy consumption optimization data;
[0053] Step S42: Visualize the energy consumption control of the energy consumption optimization data of the solid-state drive throughout its life cycle to execute energy consumption control operation operations for the solid-state drive throughout its life cycle.
[0054] The present invention combines the solid-state hard disk write cache optimization data, load balancing optimization data and low power optimization data to perform adaptive energy consumption optimization strategies for different stages of the life cycle, effectively reduce the energy consumption of the hard disk at each stage, and ensure the maximum resource utilization. By integrating multi-dimensional optimization data, the generated full life cycle energy consumption optimization data provides a unified energy consumption management reference for the hard disk operation, and improves the accuracy and efficiency of energy consumption control. The full life cycle energy consumption optimization data is intuitively displayed, and the hard disk energy consumption state can be grasped in real time, so as to better monitor and adjust the hard disk operation strategy. Based on the energy consumption management visualization data, the automatic energy consumption management operation is performed, which reduces the management cost caused by human intervention and improves the management efficiency. Through stage energy consumption optimization, the hard disk operation parameters are adaptively adjusted to effectively avoid the situation of hard disk overload or over-operation, and ensure that it maintains an efficient and stable working state at different life cycle stages. Integrate multiple optimization data sources, improve the systematicness and consistency of hard disk energy consumption optimization, and further improve the hard disk operation performance. The introduction of load balancing optimization strategy avoids excessive use of single-point storage units, thereby reducing hard disk loss and extending service life. Through full life cycle energy consumption optimization, the total energy consumption of the hard disk is reduced, helping users save operation and maintenance costs.
[0055] In this specification, a full life cycle energy consumption control system for a solid state drive is provided, which is used to execute the above-mentioned full life cycle energy consumption control method for a solid state drive. The full life cycle energy consumption control system for a solid state drive includes:
[0056] A cycle division module is used to obtain solid-state hard disk structure data; perform hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; perform timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; perform solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes the first life cycle stage of the solid-state hard disk, the second life cycle stage of the solid-state hard disk and the third life cycle stage of the solid-state hard disk;
[0057] The read-write storage optimization module is used to collect the energy consumption of the solid-state hard disk throughout its life cycle using an external sensor based on the solid-state hard disk life cycle division data, thereby obtaining the energy consumption collection data of the solid-state hard disk throughout its life cycle; write storage optimization is performed on the energy consumption collection data of the solid-state hard disk throughout its life cycle according to the first life cycle stage of the solid-state hard disk, and the write cache optimization data of the solid-state hard disk is generated; wear leveling optimization is performed on the energy consumption collection data of the solid-state hard disk throughout its life cycle according to the second life cycle stage of the solid-state hard disk, and the load leveling optimization data of the solid-state hard disk is generated;
[0058] The power optimization module is used to perform low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generate low-speed reading and writing energy consumption control data of the solid-state hard disk; perform low-power operation mode on the solid-state hard disk through the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generate low-power optimization data of the solid-state hard disk;
[0059] The adaptive execution module is used to execute the stage energy consumption adaptive strategy for the solid-state drive life cycle division data according to the solid-state drive write cache optimization data, the solid-state drive load balancing optimization data and the solid-state drive low power consumption optimization data, so as to perform the energy consumption control operation of the solid-state drive throughout its life cycle.
[0060] The beneficial effect of the present invention is that by evaluating the write durability and monitoring the timing of the solid-state hard disk, the life cycle of the solid-state hard disk can be accurately divided. This refined life cycle division can adjust the operation mode and management strategy of the hard disk according to different life cycle stages (first, second, and third stages), thereby ensuring the efficiency and durability of the hard disk at each stage. The solid-state hard disk is collected through an external sensor for full life cycle energy consumption, thereby obtaining comprehensive energy consumption data, which enables energy consumption management to be accurate to each use stage and minimize energy consumption. Based on the life cycle division data, write cache optimization is implemented for the first stage (high-intensity write stage) of the hard disk, unnecessary write operations are reduced, and energy consumption is reduced. In the second stage, energy consumption is optimized through wear leveling technology, the load of each storage unit of the hard disk is balanced, and excessive use of specific areas is avoided, energy consumption is reduced, and storage stability is improved. According to the third life cycle stage (low endurance stage) of the solid-state hard disk, the module reduces energy consumption through low-speed read and write energy consumption control and low-power operation mode. By reducing the working intensity of the hard disk, it not only helps to extend the service life of the hard disk, but also reduces the heat generated by the hard disk during operation, further reducing the risk of failure. By precisely controlling the execution of low-speed reading and writing and low-power consumption modes, the hard disk can achieve more efficient energy consumption control in the third life cycle stage and avoid losses caused by excessive operation. Based on the solid-state hard disk life cycle division data, combined with write cache optimization, load balancing optimization and low-power consumption optimization data, the module executes a phase performance consumption adaptive strategy. This dynamically adjusted strategy can automatically adjust the energy consumption management strategy according to the working characteristics of the hard disk at different stages to ensure that the energy efficiency of the hard disk is maximized. By dynamically adjusting the energy consumption management strategy according to the working status of the hard disk, the adaptability of energy efficiency is improved and the excessive energy consumption of the hard disk is reduced. Therefore, the present invention provides a full life cycle adaptive energy efficiency management method by combining the life cycle division of the solid-state hard disk, write endurance evaluation and real-time energy consumption optimization strategy, which improves the efficiency of solid-state hard disk energy efficiency management. BRIEF DESCRIPTION OF THE DRAWINGS
[0061] Figure 1 A schematic diagram of the steps of a method for controlling energy consumption during the entire life cycle of a solid-state drive;
[0062] Figure 2 for Figure 1 Detailed implementation steps of step S2 in the flowchart;
[0063] Figure 3 for Figure 1 Detailed implementation steps of step S3 in FIG.
[0064] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0065] The technical method of the present invention is described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0066] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0067] It should be understood that although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another. For example, without departing from the scope of the exemplary embodiments, a first unit may be referred to as a second unit, and similarly, a second unit may be referred to as a first unit, and the term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0068] To achieve this, please refer to Figures 1 to 3 A method for controlling energy consumption during the entire life cycle of a solid-state drive comprises the following steps:
[0069] Step S1: acquiring solid-state hard disk structure data; performing hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; performing timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; performing solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes a first life cycle stage of the solid-state hard disk, a second life cycle stage of the solid-state hard disk, and a third life cycle stage of the solid-state hard disk;
[0070] Step S2: Based on the solid-state hard disk life cycle division data, the solid-state hard disk is subjected to full life cycle energy consumption collection using an external sensor, thereby obtaining the solid-state hard disk full life cycle energy consumption collection data; according to the first life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to write storage optimization, and the solid-state hard disk write cache optimization data is generated; according to the second life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to wear leveling optimization, and the solid-state hard disk load leveling optimization data is generated;
[0071] Step S3: performing low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing low-power operation mode on the solid-state hard disk according to the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generating low-power optimization data of the solid-state hard disk;
[0072] Step S4: According to the SSD write cache optimization data, the SSD load balancing optimization data and the SSD low power optimization data, the SSD life cycle division data is respectively executed with a stage energy consumption adaptive strategy to perform energy consumption control operation operations for the entire life cycle of the SSD.
[0073] The present invention can deeply understand the actual use and remaining life of the hard disk by evaluating the write durability of the solid-state hard disk structure data, and provide an accurate basis for subsequent energy efficiency control. Through the combination of time-series usage monitoring data and durability evaluation, the solid-state hard disk can be reasonably divided into life cycles, so that different optimization strategies can be adopted according to the characteristics of different stages to extend the service life of the hard disk and improve energy efficiency. Through the external sensor to collect energy consumption of the hard disk throughout its life cycle, the energy consumption changes of the hard disk at each life cycle stage can be grasped in real time, helping to discover potential energy efficiency problems. Through write storage optimization (such as optimizing write cache), data storage efficiency can be improved and unnecessary energy consumption can be reduced. Through wear leveling optimization (load balancing), premature wear of certain areas can be prevented, thereby extending the life of the hard disk and improving overall performance, and reducing additional energy consumption caused by uneven wear. After the hard disk enters the third life cycle stage, low-speed read and write energy consumption control helps to save energy by reducing unnecessary high-energy consumption operations. Through the execution of low-power operation mode, the energy consumption of the hard disk when idle or under load can be reduced, further optimizing the overall energy efficiency of the system. Execute adaptive strategies according to the energy efficiency requirements of different life cycle stages to ensure that the energy consumption of the hard disk is optimized at each stage, avoiding the situation where fixed strategies cannot adapt to different workloads. The energy efficiency management scheme can be dynamically adjusted according to the real-time status of the hard disk and changes in the life cycle stage, so as to more accurately control energy consumption and improve the long-term energy efficiency and service life of the hard disk. Therefore, the present invention provides a full life cycle adaptive energy efficiency management method by combining the life cycle division of solid-state hard disks, write endurance evaluation and real-time energy consumption optimization strategy, thereby improving the efficiency of solid-state hard disk energy efficiency management.
[0074] In the embodiment of the present invention, reference Figure 1 FIG. 1 is a schematic diagram of a process flow of a solid state drive full life cycle energy consumption control method according to the present invention. In this example, the solid state drive full life cycle energy consumption control method includes the following steps:
[0075] Step S1: acquiring solid-state hard disk structure data; performing hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; performing timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; performing solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes a first life cycle stage of the solid-state hard disk, a second life cycle stage of the solid-state hard disk, and a third life cycle stage of the solid-state hard disk;
[0076] In an embodiment of the present invention, the structural data of the solid-state hard disk is collected through a hard disk controller or solid-state hard disk management software. These data include the capacity of the solid-state hard disk, the number of storage units, the type (such as MLC, TLC, SLC), the layout of the storage block, the number of block erases, the flash chip information, etc. These data can be obtained through the SMART (Self-Monitoring, Analysis, and Reporting Technology) protocol, the API provided by the manufacturer, or the solid-state hard disk diagnostic tool. The acquired solid-state hard disk structural data provides a basis for subsequent analysis, including the capacity of the hard disk, the number of erases and writes of the storage unit, the amount of read / write data, etc. Based on the acquired structural data, a certain evaluation model is used to calculate the write durability of the solid-state hard disk. This model generally considers the following factors: the maximum number of erases and writes that each storage unit can support (for example, the number of erases and writes of SLC is usually greater than that of MLC and TLC). The data in the writing process is repeatedly written, so that the actual write is more than the original written data. How does the solid-state hard disk handle the allocation, replacement and recovery of bad blocks. According to the actual use of the solid-state hard disk, the write durability evaluation data is generated by analyzing the number of write operations, the number of bad blocks, and the write amplification effect of the hard disk. Use the SMART data, operation log, usage history and other information of the solid-state drive to monitor the working mode and usage frequency of the hard drive. Perform periodic detection of the hard drive write volume, read volume, temperature change, etc. in each time period to evaluate the use of the hard drive. Count the read and write operations of the hard drive by setting a time window (such as every hour, every day, and every week). Convert the monitoring data into time series data, such as the write / read volume, temperature, power consumption, etc. at each moment. Preprocess the time series data, including data cleaning (removing outliers), data standardization (adapting the data to the model input), and noise removal. Smoothing algorithms (such as sliding average) can be used to filter the data for noise. Based on the aforementioned write endurance evaluation data and time series usage monitoring data, the solid-state drive can be divided into different life cycle stages according to its durability, working time, and usage mode: In the early stage of the hard drive, the write endurance is good, the number of writes is low, and it is in a high-performance state. The hard drive gradually approaches its write endurance limit, the number of writes gradually increases, and the performance decreases slightly, but it can still be used normally. The hard disk is close to or has reached the maximum write endurance, the number of writes is very high, the performance is significantly reduced, and bad blocks will appear. Based on the write endurance and timing usage data, the solid-state drive is divided into three life cycle stages: the first stage (new hard disk), the second stage (mid-term use), and the third stage (aging hard disk). These data are used for subsequent maintenance strategies and preventive replacement decisions.
[0077] Step S2: Based on the solid-state hard disk life cycle division data, the solid-state hard disk is subjected to full life cycle energy consumption collection using an external sensor, thereby obtaining the solid-state hard disk full life cycle energy consumption collection data; according to the first life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to write storage optimization, and the solid-state hard disk write cache optimization data is generated; according to the second life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to wear leveling optimization, and the solid-state hard disk load leveling optimization data is generated;
[0078] In an embodiment of the present invention, external sensors such as power meters, temperature sensors, current and voltage sensors, etc. are installed in the solid-state hard disk and its working environment. These sensors can monitor the energy consumption of the solid-state hard disk in different working states in real time. The sensor transmits the collected data to the central control system for processing. Through the external sensor, the power consumption of the solid-state hard disk in the entire life cycle is monitored in real time, including the energy consumption during read and write operations, the energy consumption during standby, and the power consumption under different workloads. Data collection can be divided into several different stages, such as: Initialization stage: energy consumption at startup. Working stage: energy consumption during read and write operations. Idle stage: energy consumption during idle or standby. Fault stage: energy consumption when the device fails or enters low-energy protection mode. The real-time energy consumption data collected by the sensor is stored and classified and summarized according to the life cycle stage (first stage, second stage, third stage), and the energy consumption collection data of the solid-state hard disk throughout the life cycle is generated, including total energy consumption, periodic energy consumption changes, etc., which is convenient for subsequent energy efficiency analysis. In the first life cycle stage of the solid-state hard disk, the hard disk performance is good, and the write operation is frequent and stable. The goal at this time is to reduce energy consumption by optimizing the storage write mode. Based on the energy consumption data collected during the entire life cycle, the energy consumption of the SSD during the writing process is analyzed, and high-energy consumption operations during the writing process are identified. When writing to high-frequency areas (such as hot spots), the direct writing of the flash memory unit is reduced through the cache mechanism, thereby reducing energy consumption. For example, a larger capacity write cache area is used to reduce the number of writes to the flash memory chip. The write mode of the SSD and the ratio of sequential writes to random writes are adjusted, and sequential writes are prioritized to reduce the write amplification effect (Write Amplification) and energy consumption caused by random writes. Combined with the write characteristics of the SSD, a similar write delay strategy (Write Behind) or write compression strategy is used to merge multiple small write operations into larger sequential writes to reduce overall power consumption. Through the above write cache optimization, the total energy consumption of the hard disk in the first life cycle stage is reduced, the efficiency of the write operation is improved, and the SSD write cache optimization data is generated to guide the energy consumption management and optimization in the subsequent stages. When entering the second life cycle stage, some storage units of the hard disk gradually age and the write endurance decreases. Therefore, it is necessary to focus on how to extend the effective use period of the hard disk and optimize energy efficiency through wear leveling technology. Based on the energy consumption data collected during the entire life cycle, the usage frequency of each storage unit of the hard disk is analyzed to identify high-load and high-temperature areas and optimize the energy consumption of these areas. By allocating write operations to unused storage blocks, the write load is evenly distributed to prevent some storage blocks from being damaged prematurely. The usage of storage units in the hard disk is monitored in real time, and the location of write operations is dynamically adjusted to ensure balanced load and avoid excessive writing of a single storage unit.For areas with frequent writes, the write speed can be appropriately reduced, or frequent writes to high-load areas can be reduced by dynamically adjusting cache strategies and hot data migration to reduce power consumption. After implementing wear leveling, write operations in high-load areas are reduced, thereby reducing energy consumption and extending the service life of the SSD. SSD load balancing optimization data is generated for further adjustment of energy efficiency optimization.
[0079] Step S3: performing low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing low-power operation mode on the solid-state hard disk according to the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generating low-power optimization data of the solid-state hard disk;
[0080] In the embodiment of the present invention, in the third life cycle stage of the solid-state hard disk, since the write durability of the hard disk has significantly decreased, most operations will turn to the low-speed read and write mode. At this time, the hard disk performance is reduced, and frequent write operations will consume more energy, especially in the random write mode. Sensors and performance monitoring tools are used to collect and analyze indicators such as the read and write operation frequency, data transmission speed, and power consumption of the solid-state hard disk, especially for the energy consumption changes in the low-speed read and write mode. According to the analysis results, the low-speed read and write mode of the solid-state hard disk is started, that is, the power consumption is reduced by slowing down the speed of the read and write operations. This mode is particularly suitable for a large number of low-frequency and low-speed read and write tasks that appear in the third life cycle stage of the solid-state hard disk. For example, the number and frequency of each read and write operation are reduced, and strategies such as write-on-demand or batch read and write are adopted to reduce the overall energy consumption. Through data collection and energy consumption monitoring in the low-speed read and write mode, the low-speed read and write energy consumption control data of the solid-state hard disk is generated, including specific energy consumption data of low-speed operations, energy efficiency comparison before and after optimization, etc. In the third life cycle of SSDs, as their performance and durability gradually decline, the overall power consumption needs to be further reduced. By analyzing the hard disk's read and write tasks and remaining life data, combined with actual energy consumption control data, the trigger conditions for low-power operation mode are determined. For example, when the remaining endurance of the hard disk reaches a certain threshold, it automatically switches to low-power mode. In this mode, the SSD will reduce power consumption, including: reducing the operating voltage when the hard disk is operating, thereby reducing energy loss. Reducing the operating frequency of the hard disk controller and flash memory chip to reduce energy consumption during operation. When not performing read and write operations, the hard disk enters a deeper sleep mode, significantly reducing energy consumption during standby. In low-power mode, an intelligent cache mechanism is used to reduce power consumption for data transmission and processing. In low-power mode, the performance, energy consumption and temperature fluctuations of the hard disk are monitored to ensure that the hard disk can still maintain basic read and write operations without excessive performance loss. Fine-tune the low-power mode based on real-time feedback, such as further reducing the frequency and voltage under low load to further reduce energy consumption. After the SSD enters the low-power operation mode, its energy consumption data is continuously collected and compared with the data before entering the low-power mode, the energy consumption reduction is analyzed, and the SSD low-power optimization data is generated, including: energy consumption comparison before and after the low-power mode is started. Key indicators such as average power consumption, peak power consumption, and load response time in low-power mode.
[0081] Step S4: According to the SSD write cache optimization data, the SSD load balancing optimization data and the SSD low power optimization data, the SSD life cycle division data is respectively executed with a stage energy consumption adaptive strategy to perform energy consumption control operation operations for the entire life cycle of the SSD.
[0082] In the embodiment of the present invention, the energy consumption adaptive strategy of each life cycle stage of the solid-state drive is executed by integrating the solid-state drive life cycle division data, the solid-state drive write cache optimization data, the solid-state drive load balancing optimization data and the solid-state drive low power consumption optimization data. In the first life cycle stage of the solid-state drive, the focus is on write cache optimization, and the energy consumption in the writing process is reduced by improving the write efficiency and optimizing the cache mechanism; in the second life cycle stage, the focus is on load balancing optimization, and the frequent writing of local areas is avoided by balancing the load of each storage unit of the hard disk, and the energy consumption is reduced; in the third life cycle stage, low power mode management is adopted, and the operating frequency and voltage of the hard disk are adjusted to ensure that the hard disk continues to operate efficiently while reducing unnecessary energy waste. Next, based on the optimization data of each stage, the system generates energy consumption optimization data for the entire life cycle of the solid-state drive, and displays it through a visualization platform. Users can monitor the energy efficiency performance of each stage in real time and view the effects of write cache optimization, load balancing optimization and low power optimization. The platform provides an intelligent adaptive strategy. When it is detected that the energy consumption of a certain stage exceeds the standard, the system will automatically recommend and execute corresponding optimization measures, such as enabling low power mode or adjusting cache and load balancing strategies. Through this series of adaptive strategies, the energy efficiency of the solid-state drive is optimized to the maximum extent, ensuring its minimum energy consumption and optimal performance at each stage of its life cycle. At the same time, the system supports automatic execution of energy efficiency optimization tasks, reducing the user's operating burden and greatly improving the service life and energy utilization efficiency of the solid-state drive.
[0083] Preferably, step S1 comprises the following steps:
[0084] Step S11: Acquire the solid state hard disk structure data;
[0085] Step S12: performing a SSD flash memory unit level analysis on the SSD structure data to generate SSD flash memory unit level data; performing a hard disk write durability evaluation on the SSD based on the SSD flash memory unit level data to generate SSD write durability evaluation data;
[0086] Step S13: performing a time sequence usage detection on the solid state drive based on the solid state drive write endurance evaluation data to generate solid state drive time sequence usage monitoring data; performing data preprocessing on the solid state drive time sequence usage monitoring data to generate standard solid state drive time sequence usage monitoring data, wherein the data preprocessing includes data cleaning, data denoising, data missing value filling and data standardization;
[0087] Step S14: divide the SSD life cycle by using the standard SSD timing usage monitoring data to write the SSD endurance assessment data, and generate SSD life cycle division data, wherein the SSD life cycle division data includes the first life cycle stage of the SSD, the second life cycle stage of the SSD, and the third life cycle stage of the SSD.
[0088] In an embodiment of the present invention, by obtaining detailed structural data of a solid-state drive, these data include but are not limited to: the model, capacity, interface type, flash memory type (such as SLC, MLC, TLC, QLC) and internal controller information of the solid-state drive. The acquired data can be used as the basic input for subsequent analysis. According to the solid-state drive structural data, the flash memory unit distribution and hierarchy of the solid-state drive are deeply analyzed to generate hierarchical data of the flash memory unit, such as the number of flash memory blocks, the number of pages, the number of erase times and other parameters, which are used to build a detailed flash memory hierarchy model. Based on the flash memory unit hierarchy data, the durability of the solid-state drive in different write scenarios is calculated. The evaluation indicators include the change trend of the write life (P / E cycle number), the wear leveling state and the number of bad blocks. Finally, the write durability evaluation data is generated to provide a basis for the health status evaluation of the solid-state drive. Using the write durability evaluation data, the use of the solid-state drive in different time periods is monitored, including the write volume, the read volume, the remaining available life, etc. The solid-state drive timing usage monitoring data is output to form a time series record. The following preprocessing is performed on the time series usage monitoring data: remove abnormal data and duplicate records; use filtering algorithms (such as moving average filtering) to remove random noise; use interpolation algorithms or historical data to fill missing values; normalize the data to a unified range for subsequent analysis. Output standard SSD time series usage monitoring data to ensure data quality. Design a life cycle division algorithm based on the standard SSD time series usage monitoring data and write endurance evaluation data. The algorithm considers the following indicators: remaining P / E cycle number, average erase and write number, bad block ratio, and performance degradation rate. The SSD life cycle is divided into the following stages: The first life cycle stage: the performance is better, the erase and write number is lower, and the bad block ratio is lower; the second life cycle stage: the performance begins to decline, the erase and write number gradually increases, and the number of bad blocks increases significantly; the third life cycle stage: close to the end of life, the performance is severely degraded, and the number of bad blocks is close to the threshold. Output the SSD life cycle division data.
[0089] Preferably, step S14 includes the following steps:
[0090] Step S141: using a controller in the solid state drive to periodically scan the solid state drive to obtain solid state drive periodic scanning data; comparing the solid state drive periodic scanning data with the standard solid state drive timing usage monitoring data to perform a comparison of the number of storage units in the hard disk to generate a solid state drive storage unit comparison value;
[0091] Step S142: determining the periodic variation trend of the comparison value of the solid state disk storage unit to obtain the floating data of the solid state disk storage unit; marking the floating area of the solid state disk periodic scan data based on the floating data of the solid state disk storage unit to obtain the floating area of the solid state disk storage unit;
[0092] Step S143: performing a hard disk storage bad block evaluation on the solid state disk periodic scanning data according to the floating area of the solid state disk storage unit to generate hard disk storage bad block evaluation data; performing a solid state disk actual use durability calculation on the solid state disk write durability evaluation data based on the hard disk storage bad block evaluation data using a hard disk use durability evaluation formula to obtain the solid state disk actual use durability data;
[0093] Step S144: comparing the actual use durability data of the solid state drive with the preset standard use durability range, when the actual use durability data of the solid state drive is greater than the preset standard use durability range, the first life cycle stage of the solid state drive is generated; when the actual use durability data of the solid state drive is within the preset standard use durability range, the second life cycle stage of the solid state drive is generated;
[0094] Step S145: When the actual usage endurance data of the solid state drive is less than the preset standard usage endurance range, the third life cycle stage of the solid state drive is generated.
[0095] In the embodiment of the present invention, by utilizing the function of the solid state drive controller, the hard disk storage unit is scanned regularly, and the storage unit status information, including the health status, the number of bad blocks, the degree of wear, etc., is recorded to generate the solid state drive periodic scanning data as the basic data source for dynamic detection. The periodic scanning data is compared with the standard solid state drive timing usage monitoring data to analyze the change in the number of storage units. The difference in the number of storage units is calculated, and the solid state drive storage unit comparison value is output to provide a basis for the subsequent floating trend analysis. The storage unit comparison value is analyzed for the periodic change trend, and the change amplitude and direction are extracted to obtain the solid state drive storage unit floating data. The change trend can be analyzed by a sliding window or a time series model to identify potential abnormal behaviors. Based on the storage unit floating data, the floating area is marked in the periodic scanning data, the key position of the abnormal fluctuation of the storage unit is highlighted, and the solid state drive storage unit floating area is generated to provide a positioning basis for the bad block evaluation. According to the storage unit floating area, the distribution and number of bad blocks are calculated in the periodic scanning data, and the hard disk storage bad block evaluation data is generated to evaluate the health status of the storage unit. The actual usage durability of the SSD is calculated by using the hard disk usage durability evaluation formula based on the hard disk storage bad block evaluation data and the solid state disk write durability evaluation data to obtain the actual usage durability data of the SSD; the actual usage durability data is compared with the preset standard usage durability range: Greater than the standard range: the SSD is in a healthy state and has good performance, which is divided into the first life cycle stage. If the actual usage durability data is within the standard range, it means that the hard disk performance is gradually declining, but it is still within an acceptable range. It is divided into the second life cycle stage, and the user is prompted to pay appropriate attention. If the actual usage durability data is less than the standard range, it means that the hard disk performance is seriously degraded and is close to the end of its life. It is divided into the third life cycle stage, and it is prompted to back up data immediately or replace the hard disk.
[0096] Preferably, the hard disk usage durability evaluation formula in step S143 is as follows:
[0097] ;
[0098] In the formula, Expressed as time The actual durability of the SSD at all times. Expressed as time The number of bad blocks at the moment, Indicates the maximum bad block capacity of the solid state drive. Indicated as SSD time The total amount of writes at the moment, Indicates the maximum write capacity of the SSD. Expressed as time The temperature of the moment, It is expressed as the weight of the bad block's impact on the hard disk life. It is expressed as the weight of the impact of write load on hard disk life. It is expressed as the weight of the impact of temperature on hard disk life. It is expressed as the rate at which bad blocks affect the life of the SSD. It is expressed as the rate at which the write load affects the life of the SSD. Expressed as the exponential decay effect coefficient of temperature change on hard disk endurance.
[0099] The present invention analyzes and integrates a hard disk durability evaluation formula, and the overall form of the formula adopts integral operation: ; The points indicate that during the entire use process, the durability of the SSD is gradually affected by these factors. As the number of SSDs increases, these factors change, and their effects are not linear. Each term in the integral represents the impact of different factors on the life of the SSD. Over time, the impact will gradually accumulate, and finally a complete durability evaluation will be obtained. Each term in the formula represents a specific influencing factor of the SSD. Each influencing factor not only works alone, but also interacts with each other in the accumulation process, thus producing a beneficial predictive effect on the life of the SSD. Number of bad blocks Maximum number of bad blocks The role of is: Bad blocks are one of the main signs of SSD aging. The increase in the number of bad blocks means that the storage unit is damaged more, which leads to a reduction in the available storage space of the SSD and even affects the read and write performance. To indicate the relative severity of the bad blocks. Controlling the nonlinear effect of the number of bad blocks on the life of the SSD means that as the number of bad blocks increases, the decay of the SSD life accelerates. Less than 1 means that the increase in the number of bad blocks has a decreasing effect on the durability, but it still plays an important role. By tracking the number of bad blocks as a dynamic factor, the health of the SSD during use can be reflected in real time, which helps to provide early warning and predict the remaining life. Write load Maximum write capacity The role of is: Write operation is the key factor affecting the life of SSD. The flash memory cell of SSD will experience a certain degree of wear every time it is written. As the number of writes increases, the durability of the flash memory cell decreases, eventually leading to the end of the life of the hard disk. The write ratio in the formula Used to indicate the relative proportion of data written. Controls the nonlinear effect of write load on durability, usually Less than 1 means that when the write load increases, the rate of hard disk life decay also increases, but in a decreasing effect. By dynamically tracking the amount of SSD writes, the intensity of hard disk usage can be evaluated, which helps predict how long the hard disk can last under future write loads. Temperature and temperature coefficient The role of is: Temperature is an important external factor that affects the life of SSD. Too high temperature will accelerate the aging process of flash memory cells, increase electron migration and loss, so the life of SSD is shorter in high temperature environment. The formula is through the exponential decay model To express the effect of temperature on durability. The degree of influence of the control temperature on the life of the SSD is usually a positive value, which means that for every unit increase in temperature, the life of the SSD will decrease according to an exponential decay law. This effect will become more significant as the temperature rises. The influence of temperature cannot be ignored in actual use. By dynamically monitoring the operating temperature of the SSD and taking it into account, it is possible to more accurately predict the damage that the SSD will encounter when the temperature is too high, and take corresponding cooling measures to extend the life of the hard disk. Weight coefficient , , They respectively represent the weights of the number of bad blocks, write load, and temperature on the life of the hard disk. The importance of each factor can be adjusted according to the actual application scenario. For example, in some high-load applications, the number of writes has a more important impact on the life, while for SSDs used in high-temperature environments, the impact of temperature is more prominent. These weight coefficients allow the degree of influence of each factor on the life to be adjusted according to the specific situation, so that the formula can be flexibly adapted to the working environment and usage scenarios of different hard disks, thereby providing a more accurate durability evaluation. When using the conventional hard disk durability evaluation formula in the field, it can be obtained in time The actual durability of the solid state drive at the time can be more accurately calculated by applying the hard disk durability evaluation formula provided by the present invention. The actual durability of the SSD at all times. The various factors in the formula accumulate over time and can reflect the health of the SSD in real time. By tracking changes in bad blocks, write volume, and temperature, the system can predict the remaining life of the SSD and provide a reliable durability assessment. Different factors (number of bad blocks, write load, temperature) affect the service life of the hard drive in different ways. By introducing nonlinear relationships (such as exponential decay terms), the formula can more accurately characterize the impact of these factors on life, especially in complex usage environments (such as high temperature or high write load scenarios).
[0100] As an example of the present invention, refer to Figure 2 As shown, in this example, step S2 includes:
[0101] Step S21: Based on the solid state drive life cycle division data, an external sensor is used to collect energy consumption of the solid state drive throughout its life cycle, thereby obtaining energy consumption collection data of the solid state drive throughout its life cycle;
[0102] Step S22: performing hard disk write feature analysis on the solid state disk according to the first life cycle stage of the solid state disk to generate solid state disk write feature data; performing write storage optimization on the solid state disk full life cycle energy consumption collection data using the solid state disk write feature data to generate solid state disk write cache optimization data;
[0103] Step S23: performing hard disk usage thermal management on the solid state hard disk timing usage monitoring data according to the second life cycle stage of the solid state hard disk to generate hard disk usage thermal management data; performing temperature control diagram conversion on the solid state hard disk using the hard disk usage thermal management data to generate a solid state hard disk usage temperature control diagram;
[0104] Step S24: extracting the temperature gradient characteristics of the temperature control diagram of the solid state drive, and performing wear leveling optimization on the energy consumption data collected over the entire life cycle of the solid state drive through the temperature gradient characteristics to generate load leveling optimization data for the solid state drive.
[0105] In an embodiment of the present invention, external sensors (such as current, voltage sensors, temperature sensors, etc.) are deployed to monitor the solid-state hard disk in real time, and energy consumption data of the hard disk at different life cycle stages are collected. The collected energy consumption data includes but is not limited to: power consumption during operation, energy consumption fluctuation during write operation, energy consumption in standby mode, etc. According to the life cycle division data of the solid-state hard disk, energy consumption data is regularly acquired, and finally the energy consumption collection data of the solid-state hard disk in the whole life cycle is generated. For the first life cycle stage of the solid-state hard disk, the hard disk write operation feature analysis is performed. The analysis content includes: write load, write frequency, fluctuation of the amount of written data, write delay, etc. The solid-state hard disk write feature data is generated by using these write features to provide a basis for subsequent optimization. Write storage optimization is performed based on the solid-state hard disk write feature data. The optimization goal is to reduce energy consumption during writing, extend the service life of the hard disk, and improve the overall performance. According to the optimization strategy, the solid-state hard disk cache is adjusted to improve the cache efficiency and reduce frequent write operations. The solid-state hard disk write cache optimization data is output to provide support for the energy efficiency management of the hard disk. In the second life cycle stage of the solid-state hard disk, the hard disk use thermal management is performed based on the time sequence usage monitoring data. By analyzing the heat generated by the hard disk during use, combined with the hard disk load data, overheating areas and high temperature trends are identified, and hard disk thermal management data is generated to avoid the impact of high temperature on hard disk performance and ensure the stability of the hard disk. By analyzing the hard disk thermal management data, a temperature control map of the hard disk is generated. The temperature control map shows the temperature changes of the hard disk at different stages of use in the form of heat distribution, helping to identify hot spots. Output the solid-state hard disk temperature control map to provide a basis for subsequent optimization. Extract the temperature gradient characteristics from the generated temperature control map to analyze the rate and distribution of hard disk surface temperature changes. Through the temperature gradient characteristics, identify areas with heat accumulation and insufficient heat dissipation for optimization intervention. Use the temperature gradient characteristics to optimize the wear leveling of the solid-state hard disk's full life cycle energy consumption collection data. The optimization goals are: reduce the energy loss in the overheating area, balance the temperature distribution of each area inside the hard disk, delay the wear caused by overheating, generate solid-state hard disk load balancing optimization data, and optimize energy efficiency and reduce overall energy consumption by reasonably allocating hard disk internal resources.
[0106] Preferably, using the solid state drive writing characteristic data to write and store the solid state drive full life cycle energy consumption collection data to optimize the writing includes:
[0107] Performing write mode analysis on the solid state hard disk write characteristic data through a hard disk controller to generate hard disk write mode data, wherein the write mode analysis includes a sequential write mode and a random write mode;
[0108] Based on the hard disk write mode data, the hard disk write feature data is used to identify the hard disk write hotspot area, and the hard disk write hotspot area and the hard disk write non-hotspot area are generated; the write load of the hard disk write hotspot area is calculated to obtain the hard disk write hotspot area load data;
[0109] Adjust the writing frequency of the hard disk writing hotspot area according to the hard disk writing hotspot area load data, and generate the hard disk writing hotspot area cache data; use the first-in-first-out strategy to perform regional common cache on the hard disk writing non-hotspot area, and generate the writing non-hotspot area cache data;
[0110] Based on the hard disk write hot spot area load data and write non-hot spot area cache data, the solid state drive full life cycle energy consumption collection data is optimized for write storage area allocation to generate solid state drive write cache optimization data.
[0111] In an embodiment of the present invention, the hard disk controller is used to periodically read and analyze write feature data to identify the write mode of the hard disk. The analysis of the write mode includes: sequential write mode: the write operation is performed sequentially, which is suitable for continuous storage of large files, and the access to the hard disk storage unit during the write process is linear. Random write mode: the write operation is randomly distributed at different locations of the hard disk, which is suitable for frequent reading and writing of small files, and the access to the hard disk during the write process is nonlinear. The hard disk controller obtains information such as the timestamp, data block size, and write position of the write operation to identify the write mode of each data block. The sequentiality of the write address is detected. When the storage addresses of multiple write operations are compact and arranged in sequence, it is considered to be a sequential write. When the write address interval is large and there is no obvious order, it is considered to be a random write. Based on the hard disk write mode data, the write heat of the hard disk storage unit is counted to identify the hot spot area (frequently written area) and the non-hot spot area (less written area). By counting the write frequency of each storage unit, a threshold is defined, and the storage unit exceeding the threshold is the write hot spot area. The hot spot area has a high write frequency and is usually used in application scenarios where data is frequently read and written. The non-hot spot area has a low write frequency and is suitable for cold data storage. Mark out areas with frequent writes (hotspots) and areas with less frequent writes (non-hotspots). Calculate the write load of each hard disk write hotspot area. The load is mainly affected by the number of writes and the amount of data written. For each hotspot area, count the number of writes and the amount of data in the specified time period. For the identified hard disk write hotspot areas, adjust the frequency to reduce the physical write operations of the hard disk and improve the efficiency of cache usage. Increase the cache access frequency of the hotspot area to reduce direct writes to the hard disk and extend the service life of the hard disk. Frequently cache the write operations of the hotspot area instead of physically writing them every time. Analyze the write load of each hotspot area and optimize the write process by adjusting the cache strategy. Adjust the cache ratio of the hotspot area through the hard disk controller to reduce unnecessary write operations. Avoid overuse of a part of the hard disk by evenly distributing the write operations to multiple storage units. Adopt a conventional cache management strategy for non-hotspot areas, that is, adopt a first-in-first-out (FIFO) cache strategy. For areas with low write frequency, the FIFO strategy can be used to ensure that data enters the cache in order and is properly cleared. Perform FIFO cache management on non-hotspot areas to keep the cache area dynamically updated: Whenever new data is written, remove the earliest written data from the cache to ensure efficient use of the cache. Optimize the allocation of the overall storage area based on the load data of the hotspot area and the cache data of the non-hotspot area. Prioritize more cache resources to improve the write efficiency of the hotspot area. Reduce physical writes to non-hotspot areas to ensure that they are in a low-load state. Use dynamic storage area allocation strategies to allocate more write operations to hotspot areas and reduce the load on non-hotspot areas.
[0112] Preferably, step S24 includes the following steps:
[0113] Step S241: extracting cells of the solid state drive temperature control diagram and marking them as solid state drive storage block temperature units; mapping temperature values of the solid state drive storage block temperature units to obtain temperature gradient characteristics of the solid state drive temperature control diagram;
[0114] Step S242: performing temperature change analysis on the temperature control map of the solid state drive based on the temperature gradient characteristics to generate temperature change data of the solid state drive; marking the high temperature gradient area on the temperature control map of the solid state drive based on the temperature change data of the solid state drive to generate the high temperature gradient area of the solid state drive;
[0115] Step S243: performing hard disk write load identification on the high temperature gradient area of the solid state disk to obtain write load data of the high temperature gradient area; performing write rotation of adjacent storage blocks on the solid state disk using a temperature control map according to the write load data of the high temperature gradient area to generate a write shunt area of the solid state disk;
[0116] Step S244: Utilize the SSD write diversion area and the SSD high temperature gradient area to perform write redirection on the SSD full life cycle energy consumption collection data, thereby generating SSD load balancing optimization data.
[0117] In an embodiment of the present invention, each cell data is extracted from a temperature control diagram of a solid state drive, and each cell is represented as a "temperature unit". Each cell represents a storage block area of a solid state drive, and the temperature value is obtained through sensor data or a built-in temperature control system. These temperature values are mapped into gradient feature data for subsequent analysis. The temperature information of each storage block in the temperature control diagram is obtained using a hard disk controller or a monitoring system, and divided into small areas or cells. According to the real-time temperature data, the temperature range of each storage block is mapped and marked as high temperature, medium temperature or low temperature. For example, low temperature can be defined as 20°C-40°C, medium temperature is 40°C-60°C, high temperature is 60°C-80°C, etc. According to the temperature gradient characteristics extracted from the temperature control diagram, the temperature change is dynamically analyzed. According to the temperature change data, high temperature gradient areas are identified and marked, which are usually subject to higher loads, resulting in damage to the storage block. The temperature fluctuation of each storage block area is analyzed using the rate of change of the temperature gradient. Generally, the temperature gradient (▽T) is calculated as follows: (temperature at the current moment - temperature at the previous moment) ÷ time interval. Set a temperature gradient threshold. When the temperature gradient exceeds the set threshold, the area is marked as a high temperature gradient area. Generally speaking, areas with rapid temperature changes are marked as high temperature gradient areas. Perform write load analysis on high temperature gradient areas to identify which storage blocks are experiencing excessive write operations. Based on load data, write loads are transferred from high temperature areas to other areas with lower temperatures through write rotation to avoid excessive wear. Based on the hard disk controller or monitoring data, the number of writes, amount of written data, etc. for each area are counted to analyze the load. Areas with high write loads generate too much heat. The formula for calculating the load can be based on the number of writes or the amount of data, similar to: ; In this formula, Expressed as hard disk load, Expressed as The frequency of write operations, Expressed as the amount of data, Expressed as the number of writes. Based on the load data, the write operations in the high temperature gradient area are dispersed to other areas with lower temperatures. This strategy helps reduce the heat load in the hot spot area and extend the service life of the hard disk. The write operations of the solid-state drive are redirected by using the load data of the write diversion area and the high temperature gradient area. The redirected data writing process will be more balanced, avoiding concentration in the hot spot area and optimizing the overall energy consumption. Based on the load data of the high temperature gradient area, the write task is transferred to the area with lower temperature and lighter load. This operation can reduce the load in the hot spot area, improve the write efficiency and reduce energy consumption. For example, a threshold for writing the diversion area is set. When the load of a certain area exceeds the threshold, the write operation is automatically transferred to other areas to ensure load balance. Using the diversion area and temperature control data, the workload of each storage block is adjusted, so that the temperature distribution and write load distribution of the entire solid-state drive during operation are more balanced, reducing energy consumption and thermal damage in the hot spot area.
[0118] As an example of the present invention, refer to Figure 3 As shown, in this example, step S3 includes:
[0119] Step S31: performing a remaining durability analysis on the SSD write durability evaluation data according to the third life cycle stage of the SSD to generate SSD remaining durability data;
[0120] Step S32: performing low-speed reading and writing energy consumption control on the solid-state hard disk based on the remaining endurance data of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing reading and writing energy-saving optimization on the low-speed reading and writing energy consumption control data of the hard disk and the energy consumption collection data of the whole life cycle of the solid-state hard disk, and generating solid-state hard disk writing energy-saving optimization data;
[0121] Step S33: using the energy-saving optimization data written into the solid-state hard disk to isolate the bad block area of the floating area of the solid-state hard disk storage unit, and generating bad block area isolation data;
[0122] Step S34: writing energy-saving optimization data to the solid-state hard disk is executed in a low-power operation mode through bad block area isolation data, thereby generating low-power optimization data for the solid-state hard disk.
[0123] In an embodiment of the present invention, data such as the number of writes and write durability of each storage block are collected based on the third life cycle stage of the solid-state hard disk, and these data can be obtained through the SMART (Self-Monitoring, Analysis and Reporting Technology) system of the hard disk controller. The remaining durability of each storage block is evaluated by using factors such as the number of writes and the frequency of use. Generally, the solid-state hard disk will begin to experience performance degradation when it reaches a certain number of writes. Therefore, analyzing its remaining durability is crucial for further energy efficiency optimization. The calculation formula for the remaining durability is: Remaining durability ratio = (maximum durability - current total write amount) ÷ maximum durability, where the maximum durability is usually the total write amount limit of the solid-state hard disk, in units of TBW, the total number of bytes written. By calculating the remaining durability of each storage block, the remaining durability data of the entire hard disk is obtained. According to the remaining durability data, a low-speed read and write strategy is formulated. For areas with low remaining durability, a lower speed read and write operation is adopted to extend their service life, reduce excessive wear and optimize energy consumption. The low-speed read and write energy consumption control data is integrated with the energy consumption collection data of the entire life cycle to formulate a write energy-saving strategy. For example, write operations in a specific area are set to be performed in a low-speed mode to reduce energy consumption. Based on the endurance analysis, the appropriate read and write speeds for each storage block are calculated. Blocks with low remaining endurance are written at a low speed (for example, using a lower write / read rate limit) to reduce power consumption. For example, a minimum write rate Rmin is set, and when the remaining endurance is lower than the set threshold, the rate is forced to be used: Ewrite=Pwrite×Rmin; where Pwrite is the power consumption of the write operation and Rmin is the minimum write rate. Combine the remaining endurance and the full life cycle energy consumption data to optimize the write and read strategies and reduce unnecessary high-power operations. Use the write energy saving optimization data to identify storage units that have bad block areas due to excessive writing or other reasons. Physically or logically isolate the bad block areas to ensure that write operations will no longer access these areas, thereby avoiding further damage to the hard disk and reducing energy consumption. Use the remaining endurance data and write history to identify storage areas with faults or bad sectors. Bad block areas are usually characterized by a remaining endurance lower than a set threshold and data corruption. Once a bad block is identified, it can be marked as an area that is no longer used and further write operations can be avoided. Perform logical isolation or adjust the storage mapping table in the system through the hard disk controller. Isolate data based on the bad block area and adjust the SSD to low power mode. By adjusting the hard disk operating mode, such as reducing the write frequency, reducing unnecessary hard disk activities, thereby reducing overall energy consumption. In low power mode, optimize data transmission strategies and reduce unnecessary high-speed read and write operations to further reduce energy consumption. Set the hard disk to enter low power mode when it is under low load. In low power mode, the hard disk controller reduces power consumption operations such as limiting clock frequency and reducing operating voltage.For example, when the hard disk is set to enter low power mode, the power consumption (Plow) of the hard disk can be expressed as: Plow=Pidle+α×Pwrite; where Pidle is the power consumption in idle mode, Pwrite is the power consumption during write operation, and α is the power adjustment coefficient. The optimized low power working mode data of the solid state drive, including the power reduction strategy and implementation effect, ensures that the hard disk consumes the least amount of power when high-performance operation is not required.
[0124] Preferably, step S4 comprises the following steps:
[0125] Step S41: executing the phase energy consumption adaptive strategy for the solid state drive life cycle division data respectively according to the solid state drive write cache optimization data, the solid state drive load balancing optimization data and the solid state drive low power consumption optimization data, thereby generating the solid state drive full life cycle energy consumption optimization data;
[0126] Step S42: Visualize the energy consumption control of the energy consumption optimization data of the solid-state drive throughout its life cycle to execute energy consumption control operation operations for the solid-state drive throughout its life cycle.
[0127] In the embodiment of the present invention, by writing cache optimization data, load balancing optimization data and low power optimization data of the solid state drive, these optimization results are integrated with the life cycle data (such as writing, reading, temperature, load, etc.) of the solid state drive. Based on the integrated data, according to different life cycle stages (such as the first, second and third life cycle stages), the corresponding energy consumption adaptive strategy is formulated and executed. By writing characteristic data, the writing mode of the storage block is optimized, redundant writing is reduced, the writing mode is optimized, and the energy consumption during writing is reduced. By using load balancing optimization technology, the load of the write hotspot area is reasonably distributed, the excessive use of the local area is reduced, the distribution of the write load is optimized, and energy consumption is reduced. By adjusting the working mode of the hard disk, the optimal operation in the low power mode is achieved. According to the current load and usage status of the solid state drive, it is dynamically switched to the low power operation mode. The first stage (write cache optimization): when the write load is high, the fast write cache is enabled, and random writing is minimized to reduce the energy consumption during writing. The second stage (load balancing optimization): in the stage with high usage load, the load of each storage unit is balanced to reduce temperature hot spots and energy consumption. Phase 3 (Low Power Mode Optimization): When the remaining durability of the hard disk is low, the low power mode is forced to be used to reduce frequent read and write operations, extend the life of the hard disk, and reduce power consumption. Using the generated full life cycle energy consumption optimization data, develop corresponding energy consumption management and control visualization tools to display the energy consumption of each stage. Visual presentation can include: energy consumption change curves at each stage; energy efficiency comparison of different optimization strategies; temperature distribution, write frequency and power consumption of each storage unit and other data. Through real-time data collection and display functions, users can dynamically view the current energy consumption status, remaining durability, temperature changes and other information of the solid-state drive. Provide an interactive control interface to allow users to adjust energy consumption strategies and parameters as needed (for example, adjust the low power mode enablement conditions, load balancing strategies, etc.).
[0128] In this specification, a full life cycle energy consumption control system for a solid state drive is provided, which is used to execute the above-mentioned full life cycle energy consumption control method for a solid state drive. The full life cycle energy consumption control system for a solid state drive includes:
[0129] A cycle division module is used to obtain solid-state hard disk structure data; perform hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; perform timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; perform solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes the first life cycle stage of the solid-state hard disk, the second life cycle stage of the solid-state hard disk and the third life cycle stage of the solid-state hard disk;
[0130] The read-write storage optimization module is used to collect the energy consumption of the solid-state hard disk throughout its life cycle using an external sensor based on the solid-state hard disk life cycle division data, thereby obtaining the energy consumption collection data of the solid-state hard disk throughout its life cycle; write storage optimization is performed on the energy consumption collection data of the solid-state hard disk throughout its life cycle according to the first life cycle stage of the solid-state hard disk, and the write cache optimization data of the solid-state hard disk is generated; wear leveling optimization is performed on the energy consumption collection data of the solid-state hard disk throughout its life cycle according to the second life cycle stage of the solid-state hard disk, and the load leveling optimization data of the solid-state hard disk is generated;
[0131] The power optimization module is used to perform low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generate low-speed reading and writing energy consumption control data of the solid-state hard disk; perform low-power operation mode on the solid-state hard disk through the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generate low-power optimization data of the solid-state hard disk;
[0132] The adaptive execution module is used to execute the stage energy consumption adaptive strategy for the solid-state drive life cycle division data according to the solid-state drive write cache optimization data, the solid-state drive load balancing optimization data and the solid-state drive low power consumption optimization data, so as to perform the energy consumption control operation of the solid-state drive throughout its life cycle.
[0133] The beneficial effect of the present invention is that by evaluating the write durability and monitoring the timing of the solid-state hard disk, the life cycle of the solid-state hard disk can be accurately divided. This refined life cycle division can adjust the operation mode and management strategy of the hard disk according to different life cycle stages (first, second, and third stages), thereby ensuring the efficiency and durability of the hard disk at each stage. The solid-state hard disk is collected through an external sensor for full life cycle energy consumption, thereby obtaining comprehensive energy consumption data, which enables energy consumption management to be accurate to each use stage and minimize energy consumption. Based on the life cycle division data, write cache optimization is implemented for the first stage (high-intensity write stage) of the hard disk, unnecessary write operations are reduced, and energy consumption is reduced. In the second stage, energy consumption is optimized through wear leveling technology, the load of each storage unit of the hard disk is balanced, and excessive use of specific areas is avoided, energy consumption is reduced, and storage stability is improved. According to the third life cycle stage (low endurance stage) of the solid-state hard disk, the module reduces energy consumption through low-speed read and write energy consumption control and low-power operation mode. By reducing the working intensity of the hard disk, it not only helps to extend the service life of the hard disk, but also reduces the heat generated by the hard disk during operation, further reducing the risk of failure. By precisely controlling the execution of low-speed reading and writing and low-power consumption modes, the hard disk can achieve more efficient energy consumption control in the third life cycle stage and avoid losses caused by excessive operation. Based on the solid-state hard disk life cycle division data, combined with write cache optimization, load balancing optimization and low-power consumption optimization data, the module executes a phase performance consumption adaptive strategy. This dynamically adjusted strategy can automatically adjust the energy consumption management strategy according to the working characteristics of the hard disk at different stages to ensure that the energy efficiency of the hard disk is maximized. By dynamically adjusting the energy consumption management strategy according to the working status of the hard disk, the adaptability of energy efficiency is improved and the excessive energy consumption of the hard disk is reduced. Therefore, the present invention provides a full life cycle adaptive energy efficiency management method by combining the life cycle division of the solid-state hard disk, write endurance evaluation and real-time energy consumption optimization strategy, which improves the efficiency of solid-state hard disk energy efficiency management.
[0134] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0135] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be 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 the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for controlling energy consumption of a solid state drive throughout its life cycle, characterized in that: The following steps are involved: Step S1: acquiring solid-state hard disk structure data; performing hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; performing timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; performing solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes a first life cycle stage of the solid-state hard disk, a second life cycle stage of the solid-state hard disk, and a third life cycle stage of the solid-state hard disk; Step S2: Based on the solid-state hard disk life cycle division data, the solid-state hard disk is subjected to full life cycle energy consumption collection using an external sensor, thereby obtaining the solid-state hard disk full life cycle energy consumption collection data; according to the first life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to write storage optimization, and the solid-state hard disk write cache optimization data is generated; according to the second life cycle stage of the solid-state hard disk, the solid-state hard disk full life cycle energy consumption collection data is subjected to wear leveling optimization, and the solid-state hard disk load leveling optimization data is generated; Step S2 includes the following steps: Step S21: Based on the solid state drive life cycle division data, an external sensor is used to collect energy consumption of the solid state drive throughout its life cycle, thereby obtaining energy consumption collection data of the solid state drive throughout its life cycle; Step S22: performing hard disk write feature analysis on the solid state disk according to the first life cycle stage of the solid state disk to generate solid state disk write feature data; performing write storage optimization on the solid state disk full life cycle energy consumption collection data using the solid state disk write feature data to generate solid state disk write cache optimization data; Step S23: performing hard disk usage thermal management on the SSD timing usage monitoring data according to the second life cycle stage of the SSD to generate hard disk usage thermal management data; performing temperature control diagram conversion on the SSD using the hard disk usage thermal management data to generate a solid state hard disk usage temperature control diagram; Step S24: extracting the temperature gradient characteristics of the temperature control diagram of the solid state drive, and performing wear leveling optimization on the energy consumption data collected over the life cycle of the solid state drive through the temperature gradient characteristics, and generating load leveling optimization data for the solid state drive; Step S24 includes the following steps: Step S241: extracting cells of the solid state drive temperature control diagram and marking them as solid state drive storage block temperature units; mapping the temperature values of the solid state drive storage block temperature units to obtain temperature gradient characteristics of the solid state drive temperature control diagram; Step S242: performing temperature change analysis on the temperature control map of the solid state drive based on the temperature gradient characteristics to generate temperature change data of the solid state drive; marking the high temperature gradient area on the temperature control map of the solid state drive based on the temperature change data of the solid state drive to generate the high temperature gradient area of the solid state drive; Step S243: performing hard disk write load identification on the high temperature gradient area of the solid state disk to obtain write load data of the high temperature gradient area; performing write rotation of adjacent storage blocks on the solid state disk using a temperature control map according to the write load data of the high temperature gradient area to generate a write shunt area of the solid state disk; Step S244: using the SSD write diversion area and the SSD high temperature gradient area to perform write redirection on the SSD full life cycle energy consumption collection data, thereby generating SSD load balancing optimization data; Step S3: performing low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing low-power operation mode on the solid-state hard disk according to the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generating low-power optimization data of the solid-state hard disk; Step S4: According to the SSD write cache optimization data, the SSD load balancing optimization data and the SSD low power optimization data, the SSD life cycle division data is respectively executed with a stage energy consumption adaptive strategy to perform energy consumption control operation operations for the entire life cycle of the SSD.
2. The method for controlling energy consumption of a solid state drive throughout its life cycle according to claim 1, characterized in that: Step S1 includes the following steps: Step S11: Acquire the solid state hard disk structure data; Step S12: performing a SSD flash memory unit level analysis on the SSD structure data to generate SSD flash memory unit level data; performing a hard disk write durability evaluation on the SSD based on the SSD flash memory unit level data to generate SSD write durability evaluation data; Step S13: performing a time sequence usage detection on the solid state drive based on the solid state drive write endurance evaluation data to generate solid state drive time sequence usage monitoring data; performing data preprocessing on the solid state drive time sequence usage monitoring data to generate standard solid state drive time sequence usage monitoring data, wherein the data preprocessing includes data cleaning, data denoising, data missing value filling and data standardization; Step S14: divide the SSD life cycle by using the standard SSD timing usage monitoring data to write the SSD endurance assessment data, and generate SSD life cycle division data, wherein the SSD life cycle division data includes the first life cycle stage of the SSD, the second life cycle stage of the SSD, and the third life cycle stage of the SSD.
3. The method for controlling energy consumption of a solid state drive throughout its life cycle according to claim 2, wherein: Step S14 includes the following steps: Step S141: using a controller in the solid state drive to periodically scan the solid state drive to obtain solid state drive periodic scanning data; comparing the solid state drive periodic scanning data with the standard solid state drive timing usage monitoring data to perform a comparison of the number of storage units in the hard disk to generate a solid state drive storage unit comparison value; Step S142: determining the periodic variation trend of the comparison value of the solid state disk storage unit to obtain the floating data of the solid state disk storage unit; marking the floating area of the solid state disk periodic scan data based on the floating data of the solid state disk storage unit to obtain the floating area of the solid state disk storage unit; Step S143: performing a hard disk storage bad block evaluation on the solid state disk periodic scanning data according to the floating area of the solid state disk storage unit to generate hard disk storage bad block evaluation data; performing a solid state disk actual use durability calculation on the solid state disk write durability evaluation data based on the hard disk storage bad block evaluation data using a hard disk use durability evaluation formula to obtain the solid state disk actual use durability data; Step S144: comparing the actual use durability data of the solid state drive with the preset standard use durability range, when the actual use durability data of the solid state drive is greater than the preset standard use durability range, the first life cycle stage of the solid state drive is generated; when the actual use durability data of the solid state drive is within the preset standard use durability range, the second life cycle stage of the solid state drive is generated; Step S145: When the actual usage endurance data of the solid state drive is less than the preset standard usage endurance range, the third life cycle stage of the solid state drive is generated.
4. The method for controlling energy consumption of a solid-state drive throughout its life cycle according to claim 3, wherein: The hard disk usage durability evaluation formula in step S143 is as follows: ; In the formula, Expressed as time The actual durability of the SSD at all times. Expressed as time The number of bad blocks at the moment, Indicates the maximum bad block capacity of the solid state drive. Indicated as SSD time The total amount of writes at the moment, Indicates the maximum write capacity of the SSD. Expressed as time The temperature of the moment, It is expressed as the weight of the bad block's impact on the hard disk life. It is expressed as the weight of the impact of write load on hard disk life. It is expressed as the weight of the impact of temperature on hard disk life. It is expressed as the rate at which bad blocks affect the life of the SSD. It is expressed as the rate at which the write load affects the life of the SSD. Expressed as the exponential decay effect coefficient of temperature change on hard disk endurance.
5. The method for controlling energy consumption of a solid state drive throughout its life cycle according to claim 1, characterized in that: Using the SSD write characteristic data to write and store the SSD full life cycle energy consumption data includes: Performing write mode analysis on the solid state hard disk write characteristic data through a hard disk controller to generate hard disk write mode data, wherein the write mode analysis includes a sequential write mode and a random write mode; Based on the hard disk write mode data, the hard disk write feature data is used to identify the hard disk write hotspot area, and the hard disk write hotspot area and the hard disk write non-hotspot area are generated; the write load of the hard disk write hotspot area is calculated to obtain the hard disk write hotspot area load data; Adjust the writing frequency of the hard disk writing hotspot area according to the hard disk writing hotspot area load data, and generate the hard disk writing hotspot area cache data; use the first-in-first-out strategy to perform regional common cache on the hard disk writing non-hotspot area, and generate the writing non-hotspot area cache data; Based on the hard disk write hot spot area load data and write non-hot spot area cache data, the solid state drive full life cycle energy consumption collection data is optimized for write storage area allocation to generate solid state drive write cache optimization data.
6. The method for controlling energy consumption of a solid state drive throughout its life cycle according to claim 1, characterized in that: Step S3 includes the following steps: Step S31: performing a remaining durability analysis on the endurance evaluation data written to the solid state drive according to the third life cycle stage of the solid state drive to generate remaining endurance data of the solid state drive; Step S32: performing low-speed reading and writing energy consumption control on the solid-state hard disk based on the remaining endurance data of the solid-state hard disk, and generating low-speed reading and writing energy consumption control data of the solid-state hard disk; performing reading and writing energy-saving optimization on the low-speed reading and writing energy consumption control data of the hard disk and the energy consumption collection data of the whole life cycle of the solid-state hard disk, and generating solid-state hard disk writing energy-saving optimization data; Step S33: using the energy-saving optimization data written into the solid-state hard disk to isolate the bad block area of the floating area of the solid-state hard disk storage unit, and generating bad block area isolation data; Step S34: writing energy-saving optimization data to the solid-state hard disk is executed in a low-power operation mode through bad block area isolation data, thereby generating low-power optimization data for the solid-state hard disk.
7. The method for controlling energy consumption of a solid state drive throughout its life cycle according to claim 1, characterized in that: Step S4 includes the following steps: Step S41: executing the phase energy consumption adaptive strategy for the solid state drive life cycle division data respectively according to the solid state drive write cache optimization data, the solid state drive load balancing optimization data and the solid state drive low power consumption optimization data, thereby generating the solid state drive full life cycle energy consumption optimization data; Step S42: Visualize the energy consumption control of the energy consumption optimization data of the solid-state drive throughout its life cycle to execute energy consumption control operation operations for the solid-state drive throughout its life cycle.
8. A full life cycle energy consumption control system for a solid state drive, characterized in that: The method for controlling the energy consumption of a solid-state drive during its entire life cycle as claimed in claim 1 comprises: A cycle division module is used to obtain solid-state hard disk structure data; perform hard disk write durability evaluation on the solid-state hard disk structure data to generate solid-state hard disk write durability evaluation data; perform timing usage detection on the solid-state hard disk based on the solid-state hard disk write durability evaluation data to generate solid-state hard disk timing usage monitoring data; perform solid-state hard disk life cycle division on the solid-state hard disk write durability evaluation data through the solid-state hard disk timing usage monitoring data to generate solid-state hard disk life cycle division data, wherein the solid-state hard disk life cycle division data includes the first life cycle stage of the solid-state hard disk, the second life cycle stage of the solid-state hard disk and the third life cycle stage of the solid-state hard disk; The read-write storage optimization module is used to collect the energy consumption of the solid-state hard disk throughout its life cycle using an external sensor based on the solid-state hard disk life cycle division data, thereby obtaining the energy consumption collection data of the solid-state hard disk throughout its life cycle; write storage optimization is performed on the energy consumption collection data of the solid-state hard disk throughout its life cycle according to the first life cycle stage of the solid-state hard disk, and the write cache optimization data of the solid-state hard disk is generated; wear leveling optimization is performed on the energy consumption collection data of the solid-state hard disk throughout its life cycle according to the second life cycle stage of the solid-state hard disk, and the load leveling optimization data of the solid-state hard disk is generated; The power optimization module is used to perform low-speed reading and writing energy consumption control on the solid-state hard disk according to the third life cycle stage of the solid-state hard disk, and generate low-speed reading and writing energy consumption control data of the solid-state hard disk; perform low-power operation mode on the solid-state hard disk through the low-speed reading and writing energy consumption control data of the solid-state hard disk, and generate low-power optimization data of the solid-state hard disk; The adaptive execution module is used to execute the stage energy consumption adaptive strategy for the solid-state drive life cycle division data according to the solid-state drive write cache optimization data, the solid-state drive load balancing optimization data and the solid-state drive low power consumption optimization data, so as to perform the energy consumption control operation of the solid-state drive throughout its life cycle.
Citation Information
Patent Citations
Method and equipment of writing data into solid state disk
CN107102819A
Testing method of solid state disk and storage medium
CN116705138A