CN117594111A - Maximum power consumption test verification method and system based on solid state disk and computer equipment - Google Patents

Maximum power consumption test verification method and system based on solid state disk and computer equipment Download PDF

Info

Publication number
CN117594111A
CN117594111A CN202311592653.9A CN202311592653A CN117594111A CN 117594111 A CN117594111 A CN 117594111A CN 202311592653 A CN202311592653 A CN 202311592653A CN 117594111 A CN117594111 A CN 117594111A
Authority
CN
China
Prior art keywords
power consumption
test
consumption data
solid state
state disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311592653.9A
Other languages
Chinese (zh)
Inventor
杨汉力
钱海明
石骁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Yilian Information System Co Ltd
Original Assignee
Suzhou Yilian Information System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Yilian Information System Co Ltd filed Critical Suzhou Yilian Information System Co Ltd
Priority to CN202311592653.9A priority Critical patent/CN117594111A/en
Publication of CN117594111A publication Critical patent/CN117594111A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/50Marginal testing, e.g. race, voltage or current testing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C29/56012Timing aspects, clock generation, synchronisation
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
    • G11C2029/5602Interface to device under test
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application relates to a maximum power consumption test verification method, a system, computer equipment and a storage medium based on a solid state disk, wherein the method comprises the following steps: performing sequential write operation for a certain time and recording test start time and test end time in the PS0, PS1 and PS2 states respectively, performing sequential read operation for a certain time and recording test start time and test end time; acquiring power consumption data of a power consumption measurement channel corresponding to an operating software client of the high-precision power consumption data acquisition instrument according to the recorded test starting time and test ending time, and obtaining sequential writing power consumption data and sequential reading power consumption data per second in PS0, PS1 and PS2 states; and importing the sequential write power consumption data and the sequential read power consumption data per second in the PS0, PS1 and PS2 states into a power consumption data template for visual display. The method can be used for efficiently and accurately acquiring the maximum power consumption of the tested solid state disks PS 0-PS 2, and displaying the maximum power consumption and the power consumption change trend in detail through imaging.

Description

Maximum power consumption test verification method and system based on solid state disk and computer equipment
Technical Field
The invention relates to the technical field of solid state disk testing, in particular to a maximum power consumption testing and verifying method, a system, computer equipment and a storage medium based on a solid state disk.
Background
In the storage industry, the maximum power consumption of a solid state disk is always a necessary measure, and the numerical value of the maximum power consumption is closely related to the nominal value of the power consumption in a solid state disk product manual. When the solid state disk is applied to mobile equipment such as a notebook, a user especially pays attention to the power consumption of the product, the lower the power consumption is, the more helpful to the duration of the whole machine, but the lower the power consumption is, the better the power consumption is, and the lower the power consumption is, the performance of the product can be suppressed. Therefore, in the research and development process of the solid state disk, balance between power consumption and performance is often needed, and the performance and the power consumption are repeatedly adjusted. The Power consumption may change with each version of tuning firmware during tuning, so accurately and timely measuring the maximum Power consumption of the solid State disk in the PS0 (Power State, hereinafter abbreviated as PS), PS1, PS2 working states during tuning and rapidly providing imaging data are always a not small challenge for the Power consumption test of the solid State disk.
At present, the common practice in the industry is to test and evaluate the power consumption of the solid state disk by using the software and hardware of the notebook and the drive master, and the evaluation mainly covers the specific Block size, the queue depth and the power consumption under the threads. These test software and hardware cannot provide high-precision power consumption data and the test data is single and has no visual effect of graphics.
Disclosure of Invention
Based on the above, it is necessary to provide a maximum power consumption test verification method, a system, a computer device and a storage medium based on a solid state disk.
A maximum power consumption test verification method based on a solid state disk comprises the following steps:
acquiring a maximum power consumption test request of the solid state disk, judging whether an APST function of the solid state disk to be tested is closed, and closing the APST function if the APST function is opened;
setting the power states of the solid state disk to be tested as PS0, PS1 and PS2 respectively;
performing sequential write operation for a certain time and recording test start time and test end time in the PS0, PS1 and PS2 states respectively, performing sequential read operation for a certain time and recording test start time and test end time;
acquiring power consumption data of a power consumption measurement channel corresponding to an operating software client of the high-precision power consumption data acquisition instrument according to the recorded test starting time and test ending time, and obtaining sequential writing power consumption data and sequential reading power consumption data per second in PS0, PS1 and PS2 states;
and importing the sequential write power consumption data and the sequential read power consumption data per second in the PS0, PS1 and PS2 states into a power consumption data template for visual display.
In one embodiment, the method further comprises:
the method comprises the steps of building a testing environment, inserting a solid state disk to be tested into a power consumption board of a host, 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 provided with power consumption data acquisition software through a network.
In one embodiment, the method further comprises:
the time of the tested machine and the power consumption data acquisition software client computer is synchronized before the testing is carried out so as to ensure the consistency of the data.
In one embodiment, the steps of performing a sequential write operation for a certain time and recording a test start time and a test end time in the PS0, PS1, and PS2 states, respectively, performing a sequential read operation for a certain time and recording a test start time and a test end time further include:
performing a 10GB, queue depth 32, thread 1, block size 1M sequential write operation with FIO 120s;
10GB, queue depth 32, thread 1, block size 1M sequential read operations 120s are performed with FIO.
A maximum power consumption test verification system based on a solid state disk, the system comprising:
the judging module is used for acquiring a maximum power consumption test request of the solid state disk, judging whether the APST function of the solid state disk to be tested is closed, and closing the APST function if the APST function is opened;
the setting module is used for setting the power states of the solid state disk to be tested as PS0, PS1 and PS2 respectively;
the test module is used for executing a sequence write operation for a certain time and recording a test start time and a test end time in the PS0, PS1 and PS2 states respectively, executing a sequence read operation for a certain time and recording a test start time and a test end time;
the data acquisition module is used for acquiring power consumption data of a power consumption measurement channel corresponding to an operation software client of the high-precision power consumption data acquisition instrument according to the recorded test start time and test end time to obtain power consumption data written in sequence every second and power consumption data read in sequence in PS0, PS1 and PS2 states;
the data display module is used for importing the sequential write power consumption data and the sequential read power consumption data in the PS0, PS1 and PS2 states into a power consumption data template for visual display.
In one embodiment, the system further comprises a building module for:
the method comprises the steps of building a testing environment, inserting a solid state disk to be tested into a power consumption board of a host, 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 provided with power consumption data acquisition software through a network.
In one embodiment, the system further comprises a synchronization module for:
the time of the tested machine and the power consumption data acquisition software client computer is synchronized before the testing is carried out so as to ensure the consistency of the data.
In one embodiment, the test module is further configured to:
performing a 10GB, queue depth 32, thread 1, block size 1M sequential write operation with FIO 120s;
10GB, queue depth 32, thread 1, block size 1M sequential read operations 120s are performed with FIO.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the methods described above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of any of the methods described above.
The method, the system, the computer equipment and the storage medium for testing and verifying the maximum power consumption based on the solid state disk are realized by setting the power supply state of the solid state disk to be tested to be PS0, PS1 and PS2 respectively; performing sequential write operation for a certain time and recording test start time and test end time in the PS0, PS1 and PS2 states respectively, performing sequential read operation for a certain time and recording test start time and test end time; acquiring power consumption data of a power consumption measurement channel corresponding to an operating software client of the high-precision power consumption data acquisition instrument according to the recorded test starting time and test ending time, and obtaining sequential writing power consumption data and sequential reading power consumption data per second in PS0, PS1 and PS2 states; and importing the sequential write power consumption data and the sequential read power consumption data per second in the PS0, PS1 and PS2 states into a power consumption data template for visual display. The method can obtain the maximum power consumption of the tested solid state disks PS 0-PS 2 efficiently and precisely, and can display the maximum power consumption and the power consumption change trend in detail through imaging, thereby objectively giving out the power consumption evaluation of each version of firmware in the tuning stage.
Drawings
FIG. 1 is a flow chart of a maximum power consumption test verification method based on a solid state disk in one embodiment;
FIG. 2 is a flow chart of a maximum power consumption test verification method based on a solid state disk in another embodiment;
FIG. 3 is a diagram of the connection of devices in a test environment, in one embodiment;
FIG. 4 is a schematic diagram of maximum power consumption under different power states in one embodiment;
FIG. 5 is a trend graph of read/write power consumption under different power states in one embodiment;
FIG. 6 is a block diagram of a maximum power consumption test verification system based on a solid state disk in one embodiment;
FIG. 7 is a block diagram of a maximum power consumption test verification system based on a solid state disk in another embodiment;
FIG. 8 is a block diagram of a solid state drive based maximum power test verification system in yet another embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a method for testing and verifying maximum power consumption based on a solid state disk is provided, and the method includes:
step 102, obtaining a maximum power consumption test request of the solid state disk, judging whether an APST function of the solid state disk to be tested is closed, and closing the APST function if the APST function is opened;
104, setting the power states of the solid state disk to be tested as PS0, PS1 and PS2 respectively;
step 106, performing a sequential write operation for a certain time and recording a test start time and a test end time in the PS0, PS1 and PS2 states, performing a sequential read operation for a certain time and recording a test start time and a test end time;
step 108, obtaining power consumption data of a power consumption measurement channel corresponding to an operation software client of the high-precision power consumption data acquisition instrument according to the recorded test start time and test end time, and obtaining sequential writing power consumption data and sequential reading power consumption data per second in PS0, PS1 and PS2 states;
and 110, importing the sequential write power consumption data and the sequential read power consumption data in the PS0, PS1 and PS2 states into a power consumption data template for visual display.
In this embodiment, a maximum power consumption test verification method based on a solid state disk is provided, and a specific test environment of the method is as follows:
hardware requirements: the computer to be tested is ASUS Z790, and for the computer to be tested, the method described in the embodiment is applicable to desktop computers, notebook computers and other computers supporting M.2PCIe interfaces, and the specific model is not mandatory. In this embodiment, ASUS Z790 is preferably a computer to be tested. High-precision power consumption data acquisition instrument: the high-precision power consumption data acquisition software client is a PC provided with Fluke software, and the specific model is not required to be forced. The solid state disk to be tested is an M.2 solid state disk. The position of the solid state disk to be tested is: a slave disc.
Software requirements: the operating system is Linux Ubuntu (tested machine), win11 (data acquisition software client); the tool comprises FIO, NVME-cli and data acquisition software; the test script is a self-organized shell script.
In this embodiment, a method is provided for testing the maximum power consumption of PS0, PS1 and PS2 of the solid state disk, a shell script is written in a Linux system by using open source tools FIO and NVME, and power consumption switching of PS0-2 is realized by combining a high-precision power consumption data acquisition instrument FLUKE 2680A, combination of workload and automatic collection of power consumption data are realized, and the collected power consumption data are automatically imported into excel for processing after the test is finished. Finally, the power consumption trend under various power consumption states is presented in a graphical mode.
Firstly, acquiring a maximum power consumption test request of a solid state disk, judging whether an APST function of the solid state disk to be tested is closed, and closing the APST function if the APST function is opened. Wherein APST is Autonomous Power State Transition, an autonomous power state switching function. If the APST function of the solid state disk to be tested is turned on, the APST needs to be set to 0 (disable) so that the subsequent power state is set and then is not automatically switched to an unknown power state mode.
And setting the power states of the solid state disk to be tested as PS0, PS1 and PS2 respectively, executing a sequence writing operation for a certain time under the PS0, PS1 and PS2 states respectively, recording the test starting time and the test ending time, executing a sequence reading operation for a certain time, and recording the test starting time and the test ending time.
And then, acquiring power consumption data of a power consumption measurement channel corresponding to the running software client of the high-precision power consumption data acquisition instrument according to the recorded test start time and test end time, and obtaining the sequential writing power consumption data and the sequential reading power consumption data per second in the PS0, PS1 and PS2 states.
And finally, importing the sequential write power consumption data and the sequential read power consumption data per second in the PS0, PS1 and PS2 states into a power consumption data template for visual display. The obtained power consumption data of sequential writing and sequential reading per second under the conditions of PS0, PS1 and PS2 can be automatically imported into a customized power consumption data template, so that visual trends can be obtained, for example: whether the sequential read power consumption is the largest or the sequential write power consumption is the largest and what the largest power consumption value is Mw, etc. at PS 0.
In the embodiment, the power states of the solid state disk to be tested are set to be PS0, PS1 and PS2 respectively; performing sequential write operation for a certain time and recording test start time and test end time in the PS0, PS1 and PS2 states respectively, performing sequential read operation for a certain time and recording test start time and test end time; acquiring power consumption data of a power consumption measurement channel corresponding to an operating software client of the high-precision power consumption data acquisition instrument according to the recorded test starting time and test ending time, and obtaining sequential writing power consumption data and sequential reading power consumption data per second in PS0, PS1 and PS2 states; and importing the sequential write power consumption data and the sequential read power consumption data per second in the PS0, PS1 and PS2 states into a power consumption data template for visual display. The method can obtain the maximum power consumption of the tested solid state disks PS 0-PS 2 efficiently and precisely, and can display the maximum power consumption and the power consumption change trend in detail through imaging, thereby objectively giving out the power consumption evaluation of each version of firmware in the tuning stage.
In one embodiment, a maximum power consumption test verification method based on a solid state disk is provided, and the method further includes: the method comprises the steps of building a testing environment, inserting a solid state disk to be tested into a power consumption board of a host, 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 provided with power consumption data acquisition software through a network.
In one embodiment, a maximum power consumption test verification method based on a solid state disk is provided, and the method further includes: the time of the tested machine and the power consumption data acquisition software client computer is synchronized before the testing is carried out so as to ensure the consistency of the data.
In one embodiment, the steps of performing a sequential write operation for a certain time and recording a test start time and a test end time in the PS0, PS1, and PS2 states, respectively, performing a sequential read operation for a certain time and recording a test start time and a test end time further comprise:
performing a 10GB, queue depth 32, thread 1, block size 1M sequential write operation with FIO 120s;
10GB, queue depth 32, thread 1, block size 1M sequential read operations 120s are performed with FIO.
Specifically, referring to a flow chart of a maximum power consumption test verification method based on a solid state disk shown in fig. 2, the method includes the following steps:
step 1, inserting a solid state disk to be tested into a power consumption board on a host computer, ensuring good ventilation to prevent measured power consumption data from deviating from an expected effect caused by triggering Thermal Throttling, and connecting 2 test wires on the power consumption board to an available measurement channel of a high-precision power consumption data acquisition instrument FLUKE 2680A. And finally, connecting the high-precision power consumption data acquisition instrument to a client computer of the power consumption data acquisition software through a network. Reference may be made to the connection diagram of the various devices in the test environment shown in fig. 3.
And step 2, testing the time of the pre-tested machine and the power consumption data acquisition software client computer so as to ensure the consistency of the data.
And 3, sending a get-feature-H command by using an NVME tool to read the content of configuration 0XC (APST, autonomous Power State Transition, automatic power state switching, hereinafter referred to as APST), and if the returned content contains "enabled" (if disabled, directly performing the 3 rd step), indicating that the APST function of the solid state disk is started, setting the APST to 0 (disabled) so that the subsequent power state is not automatically switched to an unknown power state mode after being set. The method of setting APST to disable is to send set-feature/dev/device name-f 0xc-v 0 with NVME tool.
And 4, changing the power supply state of the solid state disk into PS0 so as to measure the subsequent PS0 maximum power consumption, and sending set-feature/dev/device name-f 0x2-v 0 by using an NVME tool.
Step 5, performing a 10 GB-sized sequential write operation with the FIO while recording the measurement start time, running for 2 minutes, queue depth 32, thread 1, block size 1M, the specific FIO running configuration is as follows:
fio--rw=write--size=10g--ioengine=libaio filename=/dev/nvme0n1--name=SeqWrite-bs=1m--iodepth=32--thread=1-direct=1-runtime=120s
and after the test is finished, recording the measurement finishing time, and acquiring the power consumption data of the power consumption measurement channel corresponding to the high-precision power consumption data acquisition instrument operation software client according to the starting and finishing time. The power consumption data is PS0 sequential write power consumption.
Step 6, performing a 10 GB-sized sequential read operation with the FIO while recording the measurement start time, running for 2 minutes, queue depth 32, thread 1, block size 1M, the specific FIO running configuration is as follows:
fio--rw=read--size=10g--ioengine=libaio filename=/dev/nvme0n1--name=SeqRead-bs=1m--iodepth=32--thread=1-direct=1-runtime=120s
and after the test is finished, recording the measurement finishing time, and acquiring the power consumption data of the power consumption measurement channel corresponding to the high-precision power consumption data acquisition instrument operation software client according to the starting and finishing time. The power consumption data is PS0 sequential read power consumption.
And 7, repeating the steps 4-6, changing the PS0 in the step 4 into PS1 and PS2 respectively, and finally obtaining power consumption data which are sequentially written and sequentially read every second under the conditions of PS0, PS1 and PS2 respectively.
And 8, automatically importing the obtained power consumption data of sequential writing and sequential reading in each second under the PS0, PS1 and PS2 into a customized power consumption data template, so as to obtain an intuitive trend, such as maximum power consumption of sequential reading or maximum power consumption of sequential writing under the PS0, maximum power consumption value, and the like. The maximum power consumption and trend image display effect of each product PS0-2 can be shown with reference to fig. 4 and 5.
In the embodiment, the maximum power consumption of the solid state disks PS0 to PS2 can be obtained efficiently and accurately, the whole process is fully realized, and finally the maximum power consumption and the power consumption change trend are displayed in detail through imaging, so that the maximum power consumption test verification efficiency is effectively improved.
It should be understood that, although the steps in the flowcharts of fig. 1-5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, a maximum power consumption test verification system 600 based on a solid state disk is provided, the system comprising:
the judging module 601 is configured to obtain a maximum power consumption test request of the solid state disk, judge whether an APST function of the solid state disk to be tested is turned off, and turn off the APST function if the APST function is turned on;
the setting module 602 is configured to set the power states of the solid state disk to be tested to PS0, PS1, and PS2, respectively;
a test module 603 for performing sequential write operations for a certain time and recording a test start time and a test end time in PS0, PS1, and PS2 states, respectively, performing sequential read operations for a certain time and recording a test start time and a test end time;
the data acquisition module 604 is configured to acquire power consumption data of a power consumption measurement channel corresponding to an operating software client of the high-precision power consumption data acquisition instrument according to the recorded test start time and test end time, so as to obtain sequential write power consumption data and sequential read power consumption data per second in PS0, PS1 and PS2 states;
the data display module 605 is used for importing the sequential write power consumption data and the sequential read power consumption data in the PS0, PS1 and PS2 states into the power consumption data template for visual display.
In one embodiment, as shown in fig. 7, a maximum power consumption test verification system 600 based on a solid state disk is provided, and the system further includes a building module 606 for:
the method comprises the steps of building a testing environment, inserting a solid state disk to be tested into a power consumption board of a host, 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 provided with power consumption data acquisition software through a network.
In one embodiment, as shown in fig. 8, a maximum power consumption test verification system 600 based on a solid state disk is provided, and the system further includes a synchronization module 607 for:
the time of the tested machine and the power consumption data acquisition software client computer is synchronized before the testing is carried out so as to ensure the consistency of the data.
In one embodiment, the test module 603 is further configured to:
performing a 10GB, queue depth 32, thread 1, block size 1M sequential write operation with FIO 120s;
10GB, queue depth 32, thread 1, block size 1M sequential read operations 120s are performed with FIO.
For specific limitation of the maximum power consumption test verification system based on the solid state disk, reference may be made to the limitation of the maximum power consumption test verification method based on the solid state disk, which is not described herein.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a maximum power consumption test verification method based on the solid state disk.
It will be appreciated by those skilled in the art that the structure shown in fig. 9 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps in the method embodiments above when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the above method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described embodiment methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile 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 a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A maximum power consumption test verification method based on a solid state disk comprises the following steps:
acquiring a maximum power consumption test request of the solid state disk, judging whether an APST function of the solid state disk to be tested is closed, and closing the APST function if the APST function is opened;
setting the power states of the solid state disk to be tested as PS0, PS1 and PS2 respectively;
performing sequential write operation for a certain time and recording test start time and test end time in the PS0, PS1 and PS2 states respectively, performing sequential read operation for a certain time and recording test start time and test end time;
acquiring power consumption data of a power consumption measurement channel corresponding to an operating software client of the high-precision power consumption data acquisition instrument according to the recorded test starting time and test ending time, and obtaining sequential writing power consumption data and sequential reading power consumption data per second in PS0, PS1 and PS2 states;
and importing the sequential write power consumption data and the sequential read power consumption data per second in the PS0, PS1 and PS2 states into a power consumption data template for visual display.
2. The method for testing and verifying maximum power consumption based on solid state disk as claimed in claim 1, further comprising:
the method comprises the steps of building a testing environment, inserting a solid state disk to be tested into a power consumption board of a host, 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 provided with power consumption data acquisition software through a network.
3. The method for testing and verifying maximum power consumption based on solid state disk as claimed in claim 2, further comprising:
the time of the tested machine and the power consumption data acquisition software client computer is synchronized before the testing is carried out so as to ensure the consistency of the data.
4. The method for verifying maximum power consumption test of solid state disk according to any one of claims 1 to 3, wherein the steps of performing sequential write operations for a certain time and recording a test start time and a test end time in PS0, PS1, and PS2 states, respectively, performing sequential read operations for a certain time and recording a test start time and a test end time further comprise:
performing a 10GB, queue depth 32, thread 1, block size 1M sequential write operation with FIO 120s;
10GB, queue depth 32, thread 1, block size 1M sequential read operations 120s are performed with FIO.
5. The maximum power consumption test verification system based on the solid state disk is characterized by comprising:
the judging module is used for acquiring a maximum power consumption test request of the solid state disk, judging whether the APST function of the solid state disk to be tested is closed, and closing the APST function if the APST function is opened;
the setting module is used for setting the power states of the solid state disk to be tested as PS0, PS1 and PS2 respectively;
the test module is used for executing a sequence write operation for a certain time and recording a test start time and a test end time in the PS0, PS1 and PS2 states respectively, executing a sequence read operation for a certain time and recording a test start time and a test end time;
the data acquisition module is used for acquiring power consumption data of a power consumption measurement channel corresponding to an operation software client of the high-precision power consumption data acquisition instrument according to the recorded test start time and test end time to obtain power consumption data written in sequence every second and power consumption data read in sequence in PS0, PS1 and PS2 states;
the data display module is used for importing the sequential write power consumption data and the sequential read power consumption data in the PS0, PS1 and PS2 states into a power consumption data template for visual display.
6. The solid state disk based maximum power consumption test verification system of claim 5, further comprising a building module for:
the method comprises the steps of building a testing environment, inserting a solid state disk to be tested into a power consumption board of a host, 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 provided with power consumption data acquisition software through a network.
7. The solid state disk based maximum power consumption test verification system of claim 6, further comprising a synchronization module for:
the time of the tested machine and the power consumption data acquisition software client computer is synchronized before the testing is carried out so as to ensure the consistency of the data.
8. The solid state disk based maximum power consumption test verification system of any one of claims 5-7, wherein the test module is further configured to:
performing a 10GB, queue depth 32, thread 1, block size 1M sequential write operation with FIO 120s;
10GB, queue depth 32, thread 1, block size 1M sequential read operations 120s are performed with FIO.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202311592653.9A 2023-11-27 2023-11-27 Maximum power consumption test verification method and system based on solid state disk and computer equipment Pending CN117594111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311592653.9A CN117594111A (en) 2023-11-27 2023-11-27 Maximum power consumption test verification method and system based on solid state disk and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311592653.9A CN117594111A (en) 2023-11-27 2023-11-27 Maximum power consumption test verification method and system based on solid state disk and computer equipment

Publications (1)

Publication Number Publication Date
CN117594111A true CN117594111A (en) 2024-02-23

Family

ID=89916293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311592653.9A Pending CN117594111A (en) 2023-11-27 2023-11-27 Maximum power consumption test verification method and system based on solid state disk and computer equipment

Country Status (1)

Country Link
CN (1) CN117594111A (en)

Similar Documents

Publication Publication Date Title
US8290735B2 (en) Test apparatus and test method for universal serial bus interface
CN113744797A (en) NAND test analysis method and device based on solid state disk and computer equipment
CN102737724A (en) System and method for testing nonvolatile random access memory (NVRAM)
CN116302743A (en) USB interface testing method, system, computer equipment and storage medium
CN117079700A (en) Multi-state performance testing method and device based on UFS storage device
CN114880177A (en) Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment
CN113032246B (en) SSD firmware operation method and device, readable storage medium and electronic equipment
CN110377470A (en) IO performance test methods, device and computer equipment based on solid state hard disk
CN110427288B (en) Method and device for testing bitlock encryption and decryption based on solid state disk
CN111028881B (en) Open Block testing device, method and system
CN110111836B (en) Standardized test method and system based on solid state disk temperature rise performance
CN109634826B (en) Controller limit performance analysis method and device, computer equipment and storage medium
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN116560985B (en) Chip equipment test control method, upper computer, equipment and medium
CN112445670B (en) eMMC test method and device
CN117594111A (en) Maximum power consumption test verification method and system based on solid state disk and computer equipment
CN116149901A (en) Data verification test method and device and computer readable storage medium
CN114420194A (en) Test method and device for power failure protection function of solid state disk and computer equipment
CN117524293A (en) D3hot low-power consumption testing method and system based on solid state disk
CN113835944A (en) Test method and device for rapidly judging link rate of solid state disk and computer equipment
US7962796B2 (en) State testing device and methods thereof
CN110109787B (en) Test method for storage particle consumption based on simulation of solid state disk in low power consumption state
CN111966545A (en) PCIe deconcentrator hot plug test method, device, equipment and storage medium
CN112540889B (en) Method, device, equipment and medium for adjusting hard disk starting sequence in user mode
CN117406934B (en) Flash memory data access method, electric quantity calculation method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination