Power consumption and energy efficiency test method, storage medium and program product for solid-state drives
By collecting and comprehensively analyzing the power consumption parameters and energy efficiency indicators of solid-state drives at multiple times, the problems of low efficiency and high cost in existing technologies are solved, and accurate testing and comprehensive evaluation of the power consumption and energy efficiency of solid-state drives are achieved.
Patent Information
- Application Number
- CN202411603075.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-11-11
AI Technical Summary
Existing solid-state drive power consumption and energy efficiency testing methods are inefficient, costly, and unable to meet testing requirements in complex scenarios.
By collecting the power consumption parameters and energy efficiency indicators of the solid-state drive at multiple collection times and sampling times, the power consumption and energy efficiency test results are obtained through comprehensive analysis, and a test device with a power consumption test module, an energy efficiency test module and a result determination module is used.
It achieves precise testing of solid-state drives under different test conditions and energy efficiency indicators, and provides a comprehensive and accurate evaluation of power consumption and energy efficiency.
Smart Images

Figure CN119517141B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of power consumption management technology, and in particular to a method for testing the power consumption and energy efficiency of a solid-state drive, a storage medium, and a program product. Background Art
[0002] In recent years, solid-state drive (SSD) technology has rapidly advanced toward larger capacity, higher speeds, and lower latency. While achieving high performance, SSDs have consistently reduced capacity costs, gradually replacing mechanical hard drives as the mainstream product in the high-performance, high-reliability storage market. However, as SSDs achieve these high-performance metrics, their power consumption also increases. Therefore, power consumption and energy efficiency testing has become a crucial component of SSD product testing.
[0003] Existing SSD power consumption and energy efficiency tests generally use devices such as multimeters or power meters. However, this method is relatively simple and is only suitable for SSD power consumption testing under static or steady-state conditions. Alternatively, it uses power consumption and energy efficiency test analysis devices specifically designed for SSDs. However, this method has a narrow compatibility range, low test efficiency, and high test costs, and cannot meet the testing requirements for SSD power consumption and energy efficiency under complex scenarios. Summary of the Invention
[0004] Based on this, it is necessary to provide a power consumption and energy efficiency testing method, storage medium and program product for solid-state drives to address the above technical problems, which can use a set of devices to simultaneously realize comprehensive and accurate testing of power consumption and energy efficiency of multiple types of solid-state drives in complex scenarios.
[0005] In a first aspect, the present application provides a method for testing the power consumption and energy efficiency of a solid-state drive, the method comprising:
[0006] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0007] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0008] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0009] In one embodiment, the plurality of test states include at least two of a non-operating state, an operating state, a switching state, or a bias state, and the switching state refers to a state after switching from one test state to another test state.
[0010] In one embodiment, each power consumption parameter includes a voltage parameter and a current parameter. The power consumption parameters at multiple acquisition moments are combined to obtain a power consumption test result of the solid-state drive in the test state, including:
[0011] For each acquisition moment, the voltage parameters and current parameters at the acquisition moment are used to calculate the power of the solid-state drive at the acquisition moment; the power consumption test result of the solid-state drive in the test state is obtained by integrating the power of the solid-state drive at each acquisition moment.
[0012] In one embodiment, when the solid-state hard disk meets the test status corresponding to the energy efficiency index, the method further includes:
[0013] For each of the multiple test states of the solid-state hard disk, power consumption parameters of the solid-state hard disk are collected at multiple sampling moments to obtain the power consumption parameters at each sampling moment;
[0014] The energy efficiency test results of the solid-state drive under the energy efficiency indicators are obtained by combining the index values of the energy efficiency indicators at multiple sampling times, including:
[0015] The energy efficiency test results of the solid-state drive under the energy efficiency index are obtained by comprehensively considering the index values of the energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment.
[0016] In one embodiment, the energy efficiency test results of the solid-state drive under the energy efficiency index are obtained by comprehensively analyzing the index values of the energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment, including:
[0017] For each sampling moment, the power of the solid-state drive at the sampling moment is determined based on the power consumption parameters at the sampling moment, and the energy efficiency ratio of the energy efficiency index at the sampling moment is calculated based on the index value of the energy efficiency index at the sampling moment and the power of the solid-state drive at the sampling moment; the energy efficiency ratio of the energy efficiency index at each sampling moment is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index.
[0018] In one embodiment, the multiple energy efficiency indicators include an input / output operations per second energy efficiency indicator and a bandwidth energy efficiency indicator.
[0019] In a second aspect, the present application further provides a performance testing device for a solid-state drive, the device comprising:
[0020] a power consumption test module configured to collect power consumption parameters of the solid-state drive at multiple collection moments for each of multiple test states of the solid-state drive, obtain the power consumption parameters at the multiple collection moments, and combine the power consumption parameters at the multiple collection moments to obtain a power consumption test result of the solid-state drive in the test state;
[0021] An energy efficiency testing module is used to collect the values of each of the multiple energy efficiency indicators of the solid-state drive at multiple sampling moments when the solid-state drive meets the test state corresponding to the energy efficiency indicator, obtain the index values of the energy efficiency indicator at the multiple sampling moments, and combine the index values of the energy efficiency indicator at the multiple sampling moments to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0022] The result determination module is used to obtain the power consumption and energy efficiency test results of the solid state drive based on the power consumption test results of the solid state drive in each test state and the energy efficiency test results of the solid state drive under each energy efficiency index.
[0023] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0024] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0025] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0026] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0027] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0028] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0029] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0030] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0031] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
[0032] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0033] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0034] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0035] The above-mentioned power consumption and energy efficiency testing method, storage medium and program product of the solid-state hard disk, when the solid-state hard disk meets the first test condition, collects the power consumption parameters of the solid-state hard disk at multiple collection times for each test state of the solid-state hard disk, thereby obtaining the power consumption parameters at multiple collection times, and then the power consumption parameters at multiple collection times can be combined to obtain the power consumption test results of the solid-state hard disk in each test state; further, for each energy efficiency indicator of the solid-state hard disk, when the solid-state hard disk meets the test state corresponding to each energy efficiency indicator, the value of each energy efficiency indicator is collected at multiple sampling times respectively, thereby obtaining the indicator value of each energy efficiency indicator at multiple sampling times, and the indicator value of each energy efficiency indicator at multiple sampling times is combined to obtain the energy efficiency test result of the solid-state hard disk under the energy efficiency indicator; thereby, based on the power consumption test result of the solid-state hard disk in each test state and the energy efficiency test result of the solid-state hard disk under each energy efficiency indicator, the power consumption and energy efficiency test result of the solid-state hard disk can be obtained. This solution pre-sets the various test conditions for the SSD under different test states, providing a data basis for accurately obtaining the results of power consumption and energy efficiency tests. Furthermore, by testing the two dimensions of SSD power consumption and energy efficiency, it lays the foundation for comprehensively and accurately determining the power consumption and energy efficiency of the SSD. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0037] Figure 1 This is an application environment diagram of a method for testing the power consumption and energy efficiency of a solid-state drive provided in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of a process for testing the power consumption and energy efficiency of a solid-state drive provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of a process for determining a power consumption test result of a solid-state drive provided in an embodiment of the present application;
[0040] Figure 4 This is a structural block diagram of a power consumption and energy efficiency testing device for a solid-state drive provided in an embodiment of the present application;
[0041] Figure 5 This is a diagram of the internal structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0043] The power consumption and energy efficiency testing method of the solid state drive provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the programmable DC power supply can communicate with the computer device through a data cable, the programmable DC power supply can be connected to the solid-state hard disk through the power interface channel, and the computer device is connected to the solid-state hard disk only through the data interface channel. The data storage system can store data that the computer device needs to process. The data storage system can be integrated on a server, or placed on a cloud or other network server. The programmable DC power supply can provide power input to the solid-state hard disk, and can obtain voltage, current and other data at multiple times through the communication control function and data recording function of the programmable DC power supply, and send the obtained data to the computer device, which analyzes the data and determines the power consumption and energy efficiency test results of the solid-state hard disk based on the analysis results. Among them, the computer device can be a terminal or a server, and the server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0044] In an exemplary embodiment, Figure 2 As shown, a method for testing the power consumption and energy efficiency of a solid state drive is provided. Figure 1 Taking the computer device in the example as an example, the following steps may be included:
[0045] S201, when the solid-state hard drive meets the first test condition, for each of the multiple test states of the solid-state hard drive, the power consumption parameters of the solid-state hard drive are collected at multiple collection times to obtain the power consumption parameters at the multiple collection times, and the power consumption parameters at the multiple collection times are combined to obtain the power consumption test results of the solid-state hard drive in the test state.
[0046] Among them, the first test condition can be that the solid-state hard drive enters a steady state; optionally, a test software tool can be used to perform continuous sequential write operations with a block size of 128KiB that is twice the capacity of the solid-state hard drive and continuous random write operations with a block size of 4KiB that is twice the capacity of the solid-state hard drive, thereby making the solid-state hard drive enter a steady state; multiple test states may include but are not limited to at least two of the non-working state, working state, switching state and bias state, and the switching state refers to the state after switching from one test state to another test state; the bias state is the solid-state hard drive in different voltage states; each power consumption parameter includes a voltage parameter and a current parameter; the power consumption test results may include but are not limited to the mean power consumption parameter of the solid-state hard drive in each test state, the peak power consumption parameter, the relationship curve between the power consumption parameter and time, the distribution diagram of the power consumption parameter, the power consumption parameter characteristics, and the power consumption parameter influencing factors and other information.
[0047] It should be noted that different bias states can be achieved by setting the constant voltage value of the programmable DC power supply and setting the output current limit, thereby preventing overvoltage and overcurrent damage to the SSD. The constant voltage output can be set to the nominal voltage value of the SSD. It can also be set to any value within the voltage range of ±10% or ±5% of the nominal value based on the SSD power supply design, such as SATA SSD power supply design of 5.0V, PCIE SSD of 12.0V, and NVME SSD of 3.3V, to simulate SSD testing under different power supply voltage conditions.
[0048] Exemplarily, when the solid-state hard drive meets the first test condition, it is necessary to perform power consumption tests on multiple test states of the solid-state hard drive; wherein, the test requirements corresponding to each test state may be different; further, in each test state of the solid-state hard drive, the power consumption parameters of the solid-state hard drive are collected at multiple collection moments, thereby obtaining the power consumption parameters at multiple collection moments, such as a sampling time of 5 minutes and a sampling interval of 1 second; further, a comprehensive analysis is performed on the power consumption parameters of the solid-state hard drive under multiple test states, and information such as the mean and peak values of the power consumption parameters of the solid-state hard drive, and the curve of the power consumption parameters changing with time can be determined, and finally the power consumption test results of the solid-state hard drive under the test state are obtained.
[0049] S202, for each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the values of the energy efficiency indicator are collected at multiple sampling moments respectively to obtain the indicator values of the energy efficiency indicator at the multiple sampling moments, and the indicator values of the energy efficiency indicator at the multiple sampling moments are combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator.
[0050] Among them, multiple energy efficiency indicators include the energy efficiency indicator of the number of input and output operations per second and the bandwidth energy efficiency indicator; the energy efficiency test results may include but are not limited to the average value of each energy efficiency indicator, the peak value of each energy efficiency indicator, the relationship curve between each energy efficiency indicator and time, the distribution diagram of each energy efficiency indicator, and information such as factors affecting power consumption parameters.
[0051] Exemplarily, when the solid-state hard drive meets the first test condition, it is necessary to perform energy efficiency tests on multiple energy efficiency indicators of the solid-state hard drive; wherein, the test conditions corresponding to each energy efficiency indicator may be different; further, when the test conditions corresponding to the energy efficiency indicator are met, the values of the energy efficiency indicator are collected at multiple collection times, thereby obtaining the indicator values of the energy efficiency indicator at multiple sampling times, such as the sampling time is 10 minutes and the sampling interval is 1 second; further, a comprehensive analysis is performed on the indicator values of each energy efficiency indicator at multiple sampling times, and information such as the mean and peak values of each energy efficiency indicator and the change curve of each energy efficiency indicator over time can be determined, and finally the energy efficiency test results of the solid-state hard drive under the energy efficiency indicator are obtained.
[0052] S203 , obtaining a power consumption and energy efficiency test result of the solid state drive based on the power consumption test result of the solid state drive in each test state and the energy efficiency test result of the solid state drive under each energy efficiency index.
[0053] Among them, the power consumption and energy efficiency test results may include but are not limited to the average power consumption parameters of the solid-state hard disk under each test state, the peak power consumption parameters, the relationship curve between the power consumption parameters and time, the distribution diagram of the power consumption parameters, the power consumption parameter characteristics, the influencing factors of the power consumption parameters, the average value of each energy efficiency indicator, the peak value of each energy efficiency indicator, the relationship curve between each energy efficiency indicator and time, the distribution diagram of each energy efficiency indicator, and other information such as the influencing factors of the power consumption parameters.
[0054] For example, the power consumption test results of the solid-state drive under each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index can be comprehensively analyzed and processed, and the power consumption energy efficiency test results of the solid-state drive can be determined based on the results of the comprehensive analysis and processing.
[0055] The above-mentioned power consumption and energy efficiency test method of the solid-state drive is to collect the power consumption parameters of the solid-state drive at multiple collection times for each test state of the solid-state drive when the solid-state drive meets the first test condition, thereby obtaining the power consumption parameters at multiple collection times, and then the power consumption parameters at multiple collection times can be combined to obtain the power consumption test results of the solid-state drive in each test state; further, for each energy efficiency index of the solid-state drive, when the solid-state drive meets the test state corresponding to each energy efficiency index, the value of each energy efficiency index is collected at multiple sampling times respectively, thereby obtaining the index value of each energy efficiency index at multiple sampling times, and then the index value of each energy efficiency index at multiple sampling times is combined to obtain the energy efficiency test results of the solid-state drive under the energy efficiency index; thus, based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive can be obtained. This solution provides a data basis for accurately obtaining the results of power consumption and energy efficiency tests by pre-setting the test states of the solid-state drive under different test requirements; furthermore, by testing the two dimensions of power consumption and energy efficiency of the solid-state drive, it lays the foundation for comprehensively and accurately determining the power consumption and energy efficiency of the solid-state drive.
[0056] Based on the above embodiment, the present application embodiment explains the above embodiment S201 in detail. Specifically, the test requirements corresponding to each test state may be different. For example, the test state of the non-working state may also include the idle state and the sleep state; the test requirements corresponding to the idle state may be to wait for the solid-state hard disk to be stable for 10 minutes, and then test the voltage parameters of the programmable DC power supply. and current parameters The data is collected and recorded, the sampling interval can be 1s, and the sampling time is not less than 5min; the test requirements for the dormant state can be that when the solid state drive is powered on but there is no read or write operation and the user operating system of the server enters sleep or hibernation, the solid state drive is stable for 10 minutes, and then the voltage of the programmable DC power supply is measured. and current Data is collected and recorded, the sampling interval can be 1s, and the sampling time is not less than 5min. Where i can represent the i-th sampling moment.
[0057] The test requirements corresponding to the working state test state can be to power on the solid-state drive and apply workload through the solid-state drive read and write software tool. Common working states include sequential read, sequential write, random read, random, mixed read and write, etc. For example, through the tool to perform high-pressure continuous read, write, read and write mixed operations on the solid-state drive, the typical random mixed read and write conditions are: read and write data block size is 4KiB, read and write ratio is 70 read 30% write, read and write mode is random read and write, the number of read and write threads is 1, and the queue depth is 32. After the workload is applied to the solid-state drive and it is stable for 10 minutes, the voltage parameters of the programmable DC power supply are tested. and current parameters Data is collected and recorded, with a sampling interval of 1 second and a sampling time of no less than 10 minutes. The workload conditions for the SSD read and write power consumption test can be set as needed, thereby simulating the power consumption of the SSD in different application scenarios, such as file copy scenarios that mainly write large blocks of data sequentially, and server access scenarios that mainly read small blocks of data randomly.
[0058] The test requirements for the switching state test state can be to power on the solid-state drive and change the operating mode of the solid-state drive through the solid-state drive read and write tool or command, such as switching the solid-state drive from a non-working state to a working state, from a sequential read state to a random read and write state, from a low-load read and write state to a high-pressure load read and write state, etc., to test and analyze the power consumption characteristics of the solid-state drive under the conditions of the operating state change. Within 5 minutes before and after the execution of the solid-state drive state change command, the voltage parameters of the programmable DC power supply are tested. and current parameters The data is collected and recorded, and the sampling time interval can be shorter, such as 0.1s, and the sampling time is not less than 10min.
[0059] The embodiment of the present application also involves a process of obtaining a power consumption test result of a solid-state hard disk in a test state, such as Figure 3 As shown, the specific steps include:
[0060] S301 , for each collection moment, using voltage parameters and current parameters at the collection moment, to calculate the power of the solid state drive at the collection moment.
[0061] For example, for sampling time i, the voltage parameter at sampling time i can be and current parameters The product of is determined as the power of the solid state drive at the acquisition time i .
[0062] S302 , comprehensively analyzing the power consumption of the solid-state hard disk at each acquisition moment to obtain a power consumption test result of the solid-state hard disk in a test state.
[0063] For example, at N sampling moments, based on the power of the solid-state drive at each sampling moment, the average power of the solid-state drive in the test state can be determined. , maximum power , power standard deviation , minimum power value and power coefficient of variation .
[0064] (1)
[0065] (2)
[0066] (3)
[0067] (4)
[0068] (5)
[0069] Furthermore, the voltage parameters of the solid state drive can also be used and current parameters , draw the curves of the voltage, current and power of the solid-state drive over time and the power consumption distribution diagram, etc., and according to different test requirements, analyze the relevant factors affecting the power consumption of the solid-state drive and the power consumption characteristics of the solid-state drive and other information.
[0070] In the embodiment of the present application, by determining the power of the solid-state drive at each acquisition moment, data support is provided for determining the power consumption performance of the solid-state drive under the test state, thereby obtaining accurate power consumption test results.
[0071] Based on the above embodiment, the present application embodiment explains the above embodiment S202 in detail. Specifically, when the solid state drive meets the test state corresponding to the energy efficiency index, the method further includes:
[0072] For each of the multiple test states of the solid state hard disk, the power consumption parameters of the solid state hard disk are collected at multiple sampling moments to obtain the power consumption parameters at each sampling moment.
[0073] For example, if the sampling time interval is 1s, the power consumption parameters of the solid-state hard disk need to be collected every 1s, such as the voltage parameters of the solid-state hard disk. and current parameters By collecting data, the power consumption parameters of the solid-state drive at each sampling moment can be obtained.
[0074] Correspondingly, the index values of the comprehensive energy efficiency index at multiple sampling moments are used to obtain the energy efficiency test results of the solid-state drive under the energy efficiency index, specifically including: the index values of the comprehensive energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment, to obtain the energy efficiency test results of the solid-state drive under the energy efficiency index.
[0075] An implementable method is to determine the power of the solid-state drive at each sampling moment based on the power consumption parameters at the sampling moment, and calculate the energy efficiency ratio of the energy efficiency index at the sampling moment based on the index value of the energy efficiency index at the sampling moment and the power of the solid-state drive at the sampling moment; and obtain the energy efficiency test result of the solid-state drive under the energy efficiency index by combining the energy efficiency ratio of the energy efficiency index at each sampling moment.
[0076] For example, in the process of energy efficiency test, a total of N samples are sampled, and the energy efficiency indicators include the energy efficiency index of the number of input and output operations per second and the bandwidth energy efficiency index. For any sampling time i, the power consumption parameters at the sampling time i are obtained, such as the voltage parameter and current parameters ; Then, the voltage parameter at sampling time i can be and current parameters , determine the power of the solid state drive at sampling time i, that is ; Further, the power of the solid state drive at the sampling time i can be And the performance data of the solid-state drive at sampling time i (such as random read IOPS i and / or random write IOPS i ), determine the energy efficiency ratio of the solid-state drive's input and output operations per second (IOPS) at sampling time i, such as ; Based on the power of the solid-state drive at sampling time i And the bandwidth performance data of the solid-state drive at sampling time i (such as sequential reading and / or sequential write ), determine the energy efficiency ratio of the bandwidth indicator Bandwidth of the solid-state drive at sampling time i, such as ; Furthermore, based on the IOPS energy efficiency ratio at each N sampling moment, the relationship curve and statistical distribution diagram of the IOPS energy efficiency ratio and time and other information can be determined, and based on the Bandwidth energy efficiency ratio at each N sampling moment, the relationship curve and statistical distribution diagram of the Bandwidth energy efficiency ratio and time and other information can be determined, so that the changes and stability of the energy efficiency indicators can be dynamically displayed, and finally the energy efficiency test results of the solid-state drive under the energy efficiency indicators can be obtained.
[0077] Another feasible method is to directly input the index values and power consumption parameters of the energy efficiency indicators at multiple sampling moments into the energy efficiency test model, which will perform data analysis and calculations on them, and finally obtain the energy efficiency test results of the solid-state drive under the energy efficiency indicators.
[0078] In the embodiment of the present application, by comprehensively analyzing the energy efficiency index and power consumption parameters, a data foundation is laid for comprehensively evaluating the energy efficiency index performance of the solid-state drive.
[0079] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0080] Based on the same inventive concept, the embodiments of the present application also provide a solid-state drive power consumption and energy efficiency testing device for implementing the above-mentioned solid-state drive power consumption and energy efficiency testing method. The implementation solution provided by the device is similar to the implementation solution described in the above-mentioned method. Therefore, the specific limitations of the embodiments of the power consumption and energy efficiency testing device for one or more solid-state drives provided below can be found in the above-mentioned limitations of the power consumption and energy efficiency testing method for solid-state drives, and will not be repeated here.
[0081] In an exemplary embodiment, Figure 4 As shown, a power consumption and energy efficiency test device 1 for a solid state drive is provided, comprising: a power consumption test module 10, an energy efficiency test module 20 and a result determination module 30, wherein:
[0082] The power consumption test module 10 is used to collect the power consumption parameters of the solid-state hard disk at multiple collection times for each of the multiple test states of the solid-state hard disk when the solid-state hard disk meets the first test condition, obtain the power consumption parameters at the multiple collection times, and combine the power consumption parameters at the multiple collection times to obtain the power consumption test results of the solid-state hard disk in the test state.
[0083] The energy efficiency testing module 20 is used to collect the values of the energy efficiency indicators at multiple sampling times for each of the multiple energy efficiency indicators of the solid-state hard disk, when the solid-state hard disk meets the test state corresponding to the energy efficiency indicator, to obtain the indicator values of the energy efficiency indicator at multiple sampling times, and to combine the indicator values of the energy efficiency indicator at multiple sampling times to obtain the energy efficiency test results of the solid-state hard disk under the energy efficiency indicator.
[0084] The result determination module 30 is configured to obtain a power consumption and energy efficiency test result of the solid state drive based on the power consumption test result of the solid state drive in each test state and the energy efficiency test result of the solid state drive under each energy efficiency index.
[0085] In one embodiment, the plurality of test states include at least two of a non-operating state, an operating state, a switching state, or a bias state. The switching state refers to a state after switching from one test state to another test state.
[0086] In one embodiment, the power consumption testing module 10 is further configured to:
[0087] For each acquisition moment, the voltage parameters and current parameters at the acquisition moment are used to calculate the power of the solid-state drive at the acquisition moment; the power consumption test result of the solid-state drive in the test state is obtained by integrating the power of the solid-state drive at each acquisition moment.
[0088] In one embodiment, the energy efficiency testing module 20 is further configured to:
[0089] The power consumption parameters of the solid-state drive are collected at multiple sampling moments to obtain the power consumption parameters at each sampling moment;
[0090] The energy efficiency test results of the solid-state drive under the energy efficiency index are obtained by comprehensively considering the index values of the energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment.
[0091] In one embodiment, the energy efficiency testing module 20 is further configured to:
[0092] For each sampling moment, the power of the solid-state drive at the sampling moment is determined based on the power consumption parameters at the sampling moment, and the energy efficiency ratio of the energy efficiency index at the sampling moment is calculated based on the index value of the energy efficiency index at the sampling moment and the power of the solid-state drive at the sampling moment; the energy efficiency ratio of the energy efficiency index at each sampling moment is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index.
[0093] In one embodiment, the multiple energy efficiency indicators include an input / output operations per second energy efficiency indicator and a bandwidth energy efficiency indicator.
[0094] Each module in the above-mentioned SSD power consumption and energy efficiency testing device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a computer device's memory in software form, so that the processor can call and execute the corresponding operations of each module.
[0095] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store test data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power consumption and energy efficiency test method for a solid-state hard drive is implemented.
[0096] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0097] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0098] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0099] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0100] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0101] In one embodiment, the plurality of test states include at least two of a non-operating state, an operating state, a switching state, or a bias state. The switching state refers to a state after switching from one test state to another test state.
[0102] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0103] For each acquisition moment, the voltage parameters and current parameters at the acquisition moment are used to calculate the power of the solid-state drive at the acquisition moment; the power consumption test result of the solid-state drive in the test state is obtained by integrating the power of the solid-state drive at each acquisition moment.
[0104] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0105] For each of the multiple test states of the solid-state hard drive, the power consumption parameters of the solid-state hard drive are collected at multiple sampling moments to obtain the power consumption parameters at each sampling moment; the index values of the comprehensive energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment are combined to obtain the energy efficiency test results of the solid-state hard drive under the energy efficiency index.
[0106] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0107] For each sampling moment, the power of the solid-state drive at the sampling moment is determined based on the power consumption parameters at the sampling moment, and the energy efficiency ratio of the energy efficiency index at the sampling moment is calculated based on the index value of the energy efficiency index at the sampling moment and the power of the solid-state drive at the sampling moment; the energy efficiency ratio of the energy efficiency index at each sampling moment is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index.
[0108] In one embodiment, the multiple energy efficiency indicators include an input / output operations per second energy efficiency indicator and a bandwidth energy efficiency indicator.
[0109] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0110] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0111] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0112] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0113] In one embodiment, the plurality of test states include at least two of a non-operating state, an operating state, a switching state, or a bias state. The switching state refers to a state after switching from one test state to another test state.
[0114] In one embodiment, the computer program, when executed by a processor, performs the following steps:
[0115] For each acquisition moment, the voltage parameters and current parameters at the acquisition moment are used to calculate the power of the solid-state drive at the acquisition moment; the power consumption test result of the solid-state drive in the test state is obtained by integrating the power of the solid-state drive at each acquisition moment.
[0116] In one embodiment, the computer program, when executed by a processor, performs the following steps:
[0117] For each of the multiple test states of the solid-state hard drive, the power consumption parameters of the solid-state hard drive are collected at multiple sampling moments to obtain the power consumption parameters at each sampling moment; the index values of the comprehensive energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment are combined to obtain the energy efficiency test results of the solid-state hard drive under the energy efficiency index.
[0118] In one embodiment, the computer program, when executed by a processor, performs the following steps:
[0119] For each sampling moment, the power of the solid-state drive at the sampling moment is determined based on the power consumption parameters at the sampling moment, and the energy efficiency ratio of the energy efficiency index at the sampling moment is calculated based on the index value of the energy efficiency index at the sampling moment and the power of the solid-state drive at the sampling moment; the energy efficiency ratio of the energy efficiency index at each sampling moment is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index.
[0120] In one embodiment, the multiple energy efficiency indicators include an input / output operations per second energy efficiency indicator and a bandwidth energy efficiency indicator.
[0121] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0122] When the solid-state hard drive meets the first test condition, for each of multiple test states of the solid-state hard drive, power consumption parameters of the solid-state hard drive are collected at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and the power consumption parameters at the multiple collection moments are combined to obtain a power consumption test result of the solid-state hard drive in the test state;
[0123] For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, the value of the energy efficiency indicator is collected at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and the indicator value of the energy efficiency indicator at the multiple sampling moments is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency indicator;
[0124] Based on the power consumption test results of the solid-state drive in each test state and the energy efficiency test results of the solid-state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid-state drive are obtained.
[0125] In one embodiment, the plurality of test states include at least two of a non-operating state, an operating state, a switching state, or a bias state. The switching state refers to a state after switching from one test state to another test state.
[0126] In one embodiment, the computer program, when executed by a processor, performs the following steps:
[0127] For each acquisition moment, the voltage parameters and current parameters at the acquisition moment are used to calculate the power of the solid-state drive at the acquisition moment; the power consumption test result of the solid-state drive in the test state is obtained by integrating the power of the solid-state drive at each acquisition moment.
[0128] In one embodiment, the computer program, when executed by a processor, performs the following steps:
[0129] For each of the multiple test states of the solid-state hard drive, the power consumption parameters of the solid-state hard drive are collected at multiple sampling moments to obtain the power consumption parameters at each sampling moment; the index values of the comprehensive energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment are combined to obtain the energy efficiency test results of the solid-state hard drive under the energy efficiency index.
[0130] In one embodiment, the computer program, when executed by a processor, performs the following steps:
[0131] For each sampling moment, the power of the solid-state drive at the sampling moment is determined based on the power consumption parameters at the sampling moment, and the energy efficiency ratio of the energy efficiency index at the sampling moment is calculated based on the index value of the energy efficiency index at the sampling moment and the power of the solid-state drive at the sampling moment; the energy efficiency ratio of the energy efficiency index at each sampling moment is combined to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index.
[0132] In one embodiment, the multiple energy efficiency indicators include an input / output operations per second energy efficiency indicator and a bandwidth energy efficiency indicator.
[0133] It should be noted that the information (including but not limited to solid-state drive information, etc.) and data (including but not limited to data used for analysis, storage, display, etc.) involved in this application are all information and data fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0134] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, distributed databases based on blockchains. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like.
[0135] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0136] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for testing the power consumption and energy efficiency of a solid-state drive, characterized in that: The method is applied to a computer device, wherein the solid-state hard disk is connected to a programmable DC power supply via a power interface channel and to the computer device via a data interface channel, and the programmable DC power supply is connected to the computer device via a data line. The method includes: When the solid-state drive meets the first test condition, for each of multiple test states of the solid-state drive, respectively collect power consumption parameters of the solid-state drive at multiple collection moments to obtain the power consumption parameters at the multiple collection moments, and combine the power consumption parameters at the multiple collection moments to obtain a power consumption test result of the solid-state drive in the test state; For each of the multiple energy efficiency indicators of the solid-state drive, when the solid-state drive meets the test state corresponding to the energy efficiency indicator, respectively collecting the value of the energy efficiency indicator at multiple sampling moments to obtain the indicator value of the energy efficiency indicator at the multiple sampling moments, and combining the indicator values of the energy efficiency indicator at the multiple sampling moments to obtain an energy efficiency test result of the solid-state drive under the energy efficiency indicator; Based on the power consumption test results of the solid state drive in each test state and the energy efficiency test results of the solid state drive under each energy efficiency index, the power consumption and energy efficiency test results of the solid state drive are obtained.
2. The method according to claim 1, characterized in that The multiple test states include at least two of a non-operating state, an operating state, a switching state, or a bias state, and the switching state refers to a state after switching from one test state to another test state.
3. The method according to claim 1, characterized in that Each of the power consumption parameters includes a voltage parameter and a current parameter. The power consumption parameters at multiple acquisition moments are integrated to obtain a power consumption test result of the solid-state drive in the test state, including: For each acquisition moment, the power of the solid-state drive at the acquisition moment is calculated using the voltage parameter and the current parameter at the acquisition moment; The power consumption test result of the solid-state hard disk in the test state is obtained by integrating the power of the solid-state hard disk at each acquisition moment.
4. The method according to claim 1, wherein When the solid-state hard disk meets the test conditions corresponding to the energy efficiency index, the method further includes: For each of the multiple test states of the solid-state hard disk, respectively collect the power consumption parameters of the solid-state hard disk at the multiple sampling moments to obtain the power consumption parameters at each sampling moment; The step of synthesizing the index values of the energy efficiency index at multiple sampling moments to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index includes: The index values of the energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment are combined to obtain the energy efficiency test result of the solid state drive under the energy efficiency index.
5. The method according to claim 4, characterized in that The step of synthesizing the index values of the energy efficiency index at multiple sampling moments and the power consumption parameters at each sampling moment to obtain the energy efficiency test result of the solid-state drive under the energy efficiency index includes: For each sampling moment, determining the power of the solid-state drive at the sampling moment based on the power consumption parameter at the sampling moment, and calculating the energy efficiency ratio of the energy efficiency indicator at the sampling moment based on the index value of the energy efficiency indicator at the sampling moment and the power of the solid-state drive at the sampling moment; The energy efficiency ratio of the energy efficiency index at each sampling moment is integrated to obtain the energy efficiency test result of the solid state drive under the energy efficiency index.
6. The method according to claim 1, characterized in that The multiple energy efficiency indicators include an energy efficiency indicator of the number of input and output operations per second and a bandwidth energy efficiency indicator.
7. A device for testing the power consumption and energy efficiency of a solid-state hard disk, characterized in that: The device comprises: a power consumption testing module configured to, when the solid-state drive meets a first test condition, respectively collect power consumption parameters of the solid-state drive at multiple collection moments for each of multiple test states of the solid-state drive, obtain the power consumption parameters at the multiple collection moments, and combine the power consumption parameters at the multiple collection moments to obtain a power consumption test result of the solid-state drive in the test state; an energy efficiency testing module for collecting, for each of the multiple energy efficiency indicators of the solid-state drive, values of the energy efficiency indicator at multiple sampling moments when the solid-state drive meets a test state corresponding to the energy efficiency indicator, obtaining indicator values of the energy efficiency indicator at the multiple sampling moments, and synthesizing the indicator values of the energy efficiency indicator at the multiple sampling moments to obtain an energy efficiency test result of the solid-state drive under the energy efficiency indicator; The result determination module is used to obtain the power consumption and energy efficiency test results of the solid state drive based on the power consumption test results of the solid state drive in each test state and the energy efficiency test results of the solid state drive under each energy efficiency index.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and device for adjusting power consumption level of solid state disk, equipment and medium
CN117590926A
Method and device for adjusting and testing power consumption of solid state disk, electronic equipment and medium
CN118445127A