Solid state disk-based maximum power consumption test verification method, system and computer device
By obtaining the maximum power consumption test request of the solid-state drive, disabling the APST function, setting the PS0, PS1 and PS2 states, performing sequential write and read operations and recording the time, and using a high-precision power consumption data acquisition instrument to acquire power consumption data and visualize it, the low precision and lack of graphical representation in the existing power consumption test are solved, and efficient and accurate power consumption data acquisition and display are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SUZHOU UNIONMEMORY INFORMATION SYST LTD
- Filing Date
- 2023-11-27
- Publication Date
- 2026-07-31
AI Technical Summary
Existing technologies struggle to provide accurate and rapid data on the maximum power consumption of solid-state drives (SSDs) under PS0, PS1, and PS2 operating conditions, and the test results lack graphical representation, impacting the accuracy and efficiency of the optimization process.
By obtaining a maximum power consumption test request for the solid-state drive, disabling the APST function, setting the PS0, PS1, and PS2 states, performing sequential write and read operations and recording the time, acquiring power consumption data using a high-precision power data acquisition instrument, and then visualizing the data.
It achieves efficient and high-precision acquisition of the maximum power consumption of solid-state drives, and provides a detailed graphical display of power consumption change trends, thereby improving the accuracy and efficiency of the optimization process.
Smart Images

Figure CN117594111B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of solid-state drive (SSD) testing technology, and in particular to a method, system, computer device, and storage medium for testing and verifying the maximum power consumption of SSDs. Background Technology
[0002] In the storage industry, the maximum power consumption of solid-state drives (SSDs) has always been a crucial testing parameter, closely related to the power consumption rating in the SSD product manual. When SSDs are used in mobile devices such as laptops, users are particularly concerned about power consumption; lower power consumption improves overall battery life, but lower isn't always better, as excessively low power consumption can suppress product performance. Therefore, SSD development often requires a balance between power consumption and performance, involving repeated optimization of both. During optimization, power consumption may vary with each firmware update, making accurate and timely measurement of the maximum power consumption of the SSD in the PS0 (Power State), PS1, and PS2 states, along with rapid provision of graphical data, a significant challenge in SSD power consumption testing.
[0003] Currently, the industry practice is to use laptops and DriveMaster hardware and software to test and evaluate the power consumption of solid-state drives (SSDs). These evaluations primarily cover power consumption under specific block sizes, queue depths, and thread counts. However, these testing software and software cannot provide high-precision power consumption data, and the test data is limited and lacks intuitive graphical representation. Summary of the Invention
[0004] Therefore, it is necessary to provide a method, system, computer equipment, and storage medium for testing and verifying the maximum power consumption of solid-state drives (SSDs) to address the aforementioned technical issues.
[0005] A method for testing and verifying the maximum power consumption of a solid-state drive (SSD), the method comprising:
[0006] Get the maximum power consumption test request of the solid-state drive and determine whether the APST function of the solid-state drive under test is turned off. If the APST function is turned on, turn off the APST function.
[0007] Set the power status of the solid-state drive under test to PS0, PS1 and PS2 respectively;
[0008] Perform sequential write operations for a certain period of time in PS0, PS1 and PS2 states respectively, and record the test start time and test end time. Perform sequential read operations for a certain period of time, and record the test start time and test end time.
[0009] Based on the recorded test start time and test end time, the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client is obtained, and the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states are obtained.
[0010] Import the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states into the power consumption data template for visualization.
[0011] In one embodiment, the method further includes:
[0012] Set up the test environment by inserting the solid-state drive under test into the host's power board, connecting the power board to the high-precision power data acquisition instrument, and connecting the high-precision power data acquisition instrument to the client computer with power data acquisition software installed via the network.
[0013] In one embodiment, the method further includes:
[0014] Before testing, synchronize the time of the device under test and the client computer of the power consumption data acquisition software to ensure data consistency.
[0015] In one embodiment, the steps of performing sequential write operations for a certain period of time in PS0, PS1, and PS2 states respectively and recording the test start time and test end time, and performing sequential read operations for a certain period of time and recording the test start time and test end time, further include:
[0016] Perform a sequential write operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds;
[0017] Perform a sequential read operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds.
[0018] A maximum power consumption testing and verification system based on solid-state drives, the system comprising:
[0019] The judgment module is used to obtain the maximum power consumption test request of the solid-state drive and determine whether the APST function of the solid-state drive under test has been turned off. If the APST function has been turned on, the APST function is turned off.
[0020] The setting module is used to set the power state of the solid-state drive under test to PS0, PS1 and PS2 respectively.
[0021] The test module is used to perform sequential write operations for a certain period of time in PS0, PS1 and PS2 states respectively and record the test start time and test end time; and to perform sequential read operations for a certain period of time and record the test start time and test end time.
[0022] The data acquisition module is used to acquire the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client according to the recorded test start time and test end time, and obtain the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states;
[0023] The data display module is used to import the sequential write power consumption data and sequential read power consumption data per second in the PS0, PS1 and PS2 states into the power consumption data template for visualization.
[0024] In one embodiment, the system further includes a setup module, the setup module being used for:
[0025] Set up the test environment by inserting the solid-state drive under test into the host's power board, connecting the power board to the high-precision power data acquisition instrument, and connecting the high-precision power data acquisition instrument to the client computer with power data acquisition software installed via the network.
[0026] In one embodiment, the system further includes a synchronization module, the synchronization module being used to:
[0027] Before testing, synchronize the time of the device under test and the client computer of the power consumption data acquisition software to ensure data consistency.
[0028] In one embodiment, the test module is further configured to:
[0029] Perform a sequential write operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds;
[0030] Perform a sequential read operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds.
[0031] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of any of the methods described above.
[0032] A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the above methods.
[0033] The aforementioned method, system, computer equipment, and storage medium for testing and verifying the maximum power consumption of a solid-state drive (SSD) involve setting the power states of the SSD under test to PS0, PS1, and PS2. Sequential write operations are performed for a certain period in each of the PS0, PS1, and PS2 states, with the start and end times of the tests recorded. Sequential read operations are also performed for a certain period, with the start and end times of the tests recorded. Based on the recorded start and end times, power consumption data from the corresponding power measurement channel of the high-precision power data acquisition instrument's software client is obtained, resulting in sequential write and read power consumption data per second for each of the PS0, PS1, and PS2 states. This data is then imported into a power data template for visualization. This invention can efficiently and accurately acquire the maximum power consumption of the tested SSD from PS0 to PS2, and can graphically display the maximum power consumption and its changing trends in detail, objectively providing a power consumption evaluation for each firmware version during the optimization phase. Attached Figure Description
[0034] Figure 1 This is a flowchart illustrating a method for testing and verifying the maximum power consumption of a solid-state drive in one embodiment.
[0035] Figure 2 This is a flowchart illustrating a method for verifying the maximum power consumption of a solid-state drive in another embodiment.
[0036] Figure 3 This is a connection diagram of various devices in a test environment in one embodiment;
[0037] Figure 4 This is a schematic diagram illustrating the maximum power consumption under different power conditions in one embodiment;
[0038] Figure 5 This is a trend graph of read / write power consumption under different power states in one embodiment;
[0039] Figure 6 This is a block diagram of a maximum power consumption test and verification system based on a solid-state drive in one embodiment;
[0040] Figure 7 Here is a block diagram of a maximum power consumption test and verification system based on a solid-state drive in another embodiment;
[0041] Figure 8 Here is a block diagram of a maximum power consumption test and verification system based on a solid-state drive in another embodiment;
[0042] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0043] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0044] In one embodiment, such as Figure 1 As shown, a method for testing and verifying the maximum power consumption of a solid-state drive is provided, the method including:
[0045] Step 102: Obtain the maximum power consumption test request for the solid-state drive and determine whether the APST function of the solid-state drive under test is turned off. If the APST function is turned on, then turn off the APST function.
[0046] Step 104: Set the power status of the solid-state drive under test to PS0, PS1 and PS2 respectively;
[0047] Step 106: Perform sequential write operations for a certain period of time in PS0, PS1 and PS2 states respectively, and record the test start time and test end time; perform sequential read operations for a certain period of time, and record the test start time and test end time.
[0048] Step 108: Based on the recorded test start time and test end time, obtain the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client, and obtain the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states;
[0049] Step 110: Import the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states into the power consumption data template for visualization.
[0050] In this embodiment, a method for testing and verifying the maximum power consumption of a solid-state drive is provided. The specific test environment for this method is as follows:
[0051] Hardware Requirements: The computer under test is an ASUS Z790. For this computer, the method described in this embodiment is applicable to desktops, laptops, and other computers that support the M.2 PCIe interface; the specific model is not mandatory. In this embodiment, the ASUS Z790 is preferred as the computer under test. High-precision power consumption data acquisition instrument: The high-precision power consumption data acquisition software client is a PC with Fluke software installed; the specific model is not mandatory. The solid-state drive under test is an M.2 solid-state drive. Location of the solid-state drive under test: Slave drive.
[0052] Software requirements: Operating system is Linux Ubuntu (test machine), Win11 (data acquisition software client); tools include FIO, NVME-cli, and data acquisition software; test scripts are self-written shell scripts.
[0053] In this embodiment, a method for testing the maximum power consumption of solid-state drives (SSDs) at PS0, PS1, and PS2 is invented. This method utilizes open-source tools FIO and NVME, employs shell scripts written on a Linux system, and combines them with a high-precision power data acquisition instrument, FLUKE 2680A, to achieve power switching between PS0 and PS2, workload combinations, and automatic collection of power consumption data. After the test, the collected power consumption data is automatically imported into Excel for processing. Finally, the power consumption trends under various power consumption states are presented graphically.
[0054] First, obtain the maximum power consumption test request for the SSD and determine whether the APST function of the SSD under test is disabled. If the APST function is enabled, disable it. APST stands for Autonomous Power State Transition. If the APST function of the SSD under test is enabled, APST must be set to 0 (disable) so that it will not automatically switch to an unknown power state mode after subsequent power state settings.
[0055] Next, the power states of the solid-state drive under test were set to PS0, PS1, and PS2, and sequential write operations were performed for a certain period of time in each of the PS0, PS1, and PS2 states, with the test start time and test end time recorded. Sequential read operations were performed for a certain period of time, with the test start time and test end time recorded.
[0056] Then, based on the recorded test start time and test end time, the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client is obtained, and the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states are obtained.
[0057] Finally, the sequential write and read power consumption data per second under PS0, PS1, and PS2 states are imported into a power consumption data template for visualization. The obtained sequential write and read power consumption data per second under PS0, PS1, and PS2 states can be automatically imported into a customized power consumption data template to obtain intuitive trends, such as whether sequential read or sequential write power consumption is highest under PS0, and the maximum power consumption value in MW, etc.
[0058] In this embodiment, the power states of the solid-state drive under test are set to PS0, PS1, and PS2. Sequential write operations are performed for a certain period of time in each of the PS0, PS1, and PS2 states, and the start and end times of the tests are recorded. Sequential read operations are also performed for a certain period of time, and the start and end times of the tests are recorded. Based on the recorded start and end times, power consumption data from the corresponding power measurement channel of the high-precision power data acquisition instrument's software client are obtained, resulting in sequential write power consumption data and sequential read power consumption data per second in the PS0, PS1, and PS2 states. These data are then imported into a power consumption data template for visualization. This invention can efficiently and accurately acquire the maximum power consumption of the solid-state drive under test (PS0 to PS2), and can graphically display the maximum power consumption and power consumption trends in detail, objectively providing a power consumption evaluation for each firmware version during the optimization phase.
[0059] In one embodiment, a method for testing and verifying the maximum power consumption of a solid-state drive (SSD) is provided. The method further includes: setting up a test environment, inserting the SSD under test into the power consumption board of the host computer, connecting the power consumption board to a high-precision power consumption data acquisition instrument, and connecting the high-precision power consumption data acquisition instrument to a client computer with power consumption data acquisition software installed via a network.
[0060] In one embodiment, a method for verifying the maximum power consumption of a solid-state drive is provided, the method further comprising: synchronizing the time of the machine under test and the power consumption data acquisition software client computer before the test to ensure data consistency.
[0061] In one embodiment, the steps of performing sequential write operations for a certain period of time in PS0, PS1, and PS2 states respectively and recording the test start time and test end time, and performing sequential read operations for a certain period of time and recording the test start time and test end time, further include:
[0062] Perform a sequential write operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds;
[0063] Perform a sequential read operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds.
[0064] Specifically, refer to Figure 2 The flowchart shown is a verification method for maximum power consumption testing based on solid-state drives, and includes the following steps:
[0065] Step 1: Insert the SSD under test into the power board on the host computer, ensuring good ventilation to prevent thermal throttling and thus avoid deviations from expected power consumption data. Connect the two test leads on the power board to the available measurement channels of the FLUKE 2680A high-precision power data acquisition instrument. Finally, connect the high-precision power data acquisition instrument to the client computer of the power data acquisition software via network. (See reference...) Figure 3 The diagram shows the connection relationships between the various devices in the test environment.
[0066] Step 2: Synchronize the time of the device under test and the client computer of the power consumption data acquisition software before testing to ensure data consistency.
[0067] Step 3: Use the NVMe tool to send the `get-feature -H` command to read the configuration 0XC (APST, Autonomous Power State Transition, hereinafter referred to as APST). If the returned content contains "enabled" (if it is disabled, proceed directly to step 3), it means that the APST function of the SSD is enabled. APST needs to be set to 0 (disable) so that it will not automatically switch to an unknown power state mode after subsequent power state settings. To disable APST, use the NVMe tool to send `set-feature / dev / device_name -f0xc -v 0`.
[0068] Step 4: Change the power status of the solid-state drive to PS0 in order to measure the maximum power consumption of PS0. Use the NVMe tool to send set-feature / dev / device_name-f0x2-v 0.
[0069] Step 5: Perform a 10GB sequential write operation using FIO while recording the measurement start time. Run for 2 minutes, with a queue depth of 32, 1 thread, and a block size of 1MB. The specific FIO runtime configuration is as follows:
[0070] fio--rw=write--size=10g--ioengine=libaio filename= / dev / nvme0n1--name=SeqWrite-bs=1m--iodepth=32--thread=1-direct=1-runtime=120s
[0071] After the test, record the measurement end time. Based on the start and end times, obtain the power consumption data of the corresponding power measurement channel in the high-precision power data acquisition instrument's software client. This power consumption data is the PS0 sequential write power consumption.
[0072] Step 6: Perform a 10GB sequential read operation using FIO while recording the measurement start time. Run for 2 minutes, with a queue depth of 32, 1 thread, and a block size of 1MB. The specific FIO runtime configuration is as follows:
[0073] fio--rw=read--size=10g--ioengine=libaio filename= / dev / nvme0n1--name=SeqRead-bs=1m--iodepth=32--thread=1-direct=1-runtime=120s
[0074] After the test, record the measurement end time. Based on the start and end times, obtain the power consumption data of the corresponding power measurement channel in the high-precision power consumption data acquisition instrument's software client. This power consumption data is the PS0 sequential read power consumption.
[0075] Step 7: Repeat steps 4 to 6, and change PS0 in step 4 to PS1 and PS2 respectively. Finally, obtain the power consumption data per second for sequential write and sequential read under PS0, PS1 and PS2 respectively.
[0076] Step 8: Automatically import the obtained sequential write and sequential read power consumption data per second under PS0, PS1, and PS2 into the customized power consumption data template to obtain intuitive trends, such as whether sequential read or sequential write power consumption is the highest under PS0, and what the maximum power consumption value is. For the PS0-2 maximum power consumption and trend graph display effect of each product, please refer to... Figure 4 and Figure 5 As shown.
[0077] In this embodiment, the maximum power consumption of the solid-state drive (PS0 to PS2) can be obtained efficiently and with high accuracy. The entire process is fully automated, and the maximum power consumption and its trend are displayed in detail through a graphical representation, which effectively improves the efficiency of maximum power consumption testing and verification.
[0078] It should be understood that, although Figures 1-5 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figures 1-5 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0079] In one embodiment, such as Figure 6 As shown, a maximum power consumption test and verification system 600 based on a solid-state drive is provided. The system includes:
[0080] Judgment module 601 is used to obtain the maximum power consumption test request of solid-state drive and determine whether the APST function of the solid-state drive under test is turned off. If the APST function is turned on, the APST function is turned off.
[0081] Setting module 602, the setting module is used to set the power state of the solid-state drive under test to PS0, PS1 and PS2 respectively;
[0082] Test module 603 is used to perform sequential write operations for a certain period of time in PS0, PS1 and PS2 states respectively and record the test start time and test end time, and to perform sequential read operations for a certain period of time and record the test start time and test end time.
[0083] The data acquisition module 604 is used to acquire the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client according to the recorded test start time and test end time, and obtain the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states;
[0084] The data display module 605 is used to import the sequential write power consumption data and sequential read power consumption data per second in the PS0, PS1 and PS2 states into the power consumption data template for visualization.
[0085] In one embodiment, such as Figure 7 As shown, a maximum power consumption test and verification system 600 based on a solid-state drive is provided. This system also includes a building module 606 for:
[0086] Set up the test environment by inserting the solid-state drive under test into the host's power board, connecting the power board to the high-precision power data acquisition instrument, and connecting the high-precision power data acquisition instrument to the client computer with power data acquisition software installed via the network.
[0087] In one embodiment, such as Figure 8 As shown, a maximum power consumption test and verification system 600 based on a solid-state drive is provided. This system also includes a synchronization module 607, used for:
[0088] Before testing, synchronize the time of the device under test and the client computer of the power consumption data acquisition software to ensure data consistency.
[0089] In one embodiment, the test module 603 is further configured to:
[0090] Perform a sequential write operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds;
[0091] Perform a sequential read operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds.
[0092] For specific limitations on the maximum power consumption test and verification system based on solid-state drives, please refer to the limitations on the maximum power consumption test and verification method based on solid-state drives mentioned above, which will not be repeated here.
[0093] In one embodiment, a computer device is provided, the internal structure of which can be shown as follows: Figure 9 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and databases. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for testing and verifying the maximum power consumption of a solid-state drive.
[0094] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0095] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in the various method embodiments described above.
[0096] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the various method embodiments described above.
[0097] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0098] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.
[0099] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for testing and verifying the maximum power consumption of a solid-state drive, the method comprising: Get the maximum power consumption test request of the solid-state drive and determine whether the APST function of the solid-state drive under test is turned off. If the APST function is turned on, turn off the APST function. Set the power status of the solid-state drive under test to PS0, PS1 and PS2 respectively; Perform sequential write operations for a certain period of time in PS0, PS1 and PS2 states respectively, and record the test start time and test end time. Perform sequential read operations for a certain period of time, and record the test start time and test end time. Based on the recorded test start time and test end time, the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client is obtained, and the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states are obtained. Import the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states into the power consumption data template for visualization; The steps of performing sequential write operations for a certain period of time in PS0, PS1, and PS2 states respectively, and recording the test start time and test end time, and performing sequential read operations for a certain period of time and recording the test start time and test end time, further include: Perform a sequential write operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds; Perform a sequential read operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds.
2. The method of claim 1, wherein, The method further includes: Set up the test environment by inserting the solid-state drive under test into the host's power board, connecting the power board to the high-precision power data acquisition instrument, and connecting the high-precision power data acquisition instrument to the client computer with power data acquisition software installed via the network.
3. The method of claim 2, wherein, The method further includes: Before testing, synchronize the time of the device under test and the client computer of the power consumption data acquisition software to ensure data consistency.
4. A solid state drive based maximum power consumption test verification system, characterized in that, The system includes: The judgment module is used to obtain the maximum power consumption test request of the solid-state drive and determine whether the APST function of the solid-state drive under test has been turned off. If the APST function has been turned on, the APST function is turned off. The setting module is used to set the power state of the solid-state drive under test to PS0, PS1 and PS2 respectively. The test module is used to perform sequential write operations for a certain period of time in PS0, PS1 and PS2 states respectively and record the test start time and test end time; and to perform sequential read operations for a certain period of time and record the test start time and test end time. The data acquisition module is used to acquire the power consumption data of the corresponding power measurement channel of the high-precision power consumption data acquisition instrument running software client according to the recorded test start time and test end time, and obtain the sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states; The data display module is used to import the sequential write power consumption data and sequential read power consumption data per second in the PS0, PS1 and PS2 states into the power consumption data template for visualization. The testing module is also used for: Using FIO to perform a sequential write operation of 10GB, queue depth 32, thread 1, block size 1M for 120 seconds; Perform a sequential read operation of 10GB, queue depth 32, thread 1, and block size 1M using FIO in 120 seconds.
5. The solid state drive based maximum power consumption test verification system of claim 4, wherein, The system also includes a setup module, which is used for: Set up the test environment by inserting the solid-state drive under test into the host's power board, connecting the power board to the high-precision power data acquisition instrument, and connecting the high-precision power data acquisition instrument to the client computer with power data acquisition software installed via the network.
6. The solid state drive based maximum power consumption test verification system of claim 5, wherein, The system also includes a synchronization module, which is used for: Before testing, synchronize the time of the machine under test and the client computer of the power consumption data acquisition software to ensure data consistency.
7. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 3.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3.