CN-121979737-A - Power consumption monitoring method, power consumption monitoring system and storage medium of solid state disk
Abstract
The application discloses a method, a system and a storage medium for monitoring the power consumption of a solid state disk, wherein the method for monitoring the power consumption of the solid state disk comprises the steps of sending out a request command with a time stamp; the method comprises the steps of receiving a request command, generating a corresponding NAND operation command, identifying the NAND operation command received by NAND particles in a solid state disk, marking a time stamp on the NAND operation command, calculating the instant power consumption of the solid state disk, marking the time stamp on the instant power consumption, and generating a power consumption tracing track file by combining the request command, the NAND operation command, the instant power consumption of the solid state disk and the corresponding time stamp. Through the design, NAND grain operation causing power consumption fluctuation can be accurately positioned, and direct data support is provided for power consumption optimization.
Inventors
- LIU YU
- WU KUNLONG
- TAO LIANG
Assignees
- 深圳市时创意电子股份有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251208
Claims (10)
- 1. The power consumption monitoring method for the solid state disk is characterized by comprising the following steps of: Issuing a request command with a time stamp; Receiving the request command and generating a corresponding NAND operation instruction; Identifying a NAND operation instruction received by NAND particles in a solid state disk, and stamping a time stamp on the NAND operation instruction; Calculating the instantaneous power consumption of the solid state disk, and stamping the instantaneous power consumption with a time stamp, and And generating a power consumption tracing track file by combining the request command, the NAND operation command, the instant power consumption of the solid state disk and the corresponding time stamp.
- 2. The method for monitoring power consumption of a solid state disk according to claim 1, wherein the step of issuing the request command with the timestamp comprises: establishing a load model library; At least one test load is called from the load model library according to a preset instruction to form a preset use scene; And generating a request command with a time stamp according to the preset use scene.
- 3. The method for monitoring power consumption of a solid state disk as claimed in claim 2, wherein the step of retrieving at least one test load from the load model library according to a preset instruction to form a preset usage scenario comprises: monitoring and recording real application related to a preset instruction during execution; retrieving test load corresponding to the real application from the load model library, and And forming a preset use scene based on the test load.
- 4. The method for monitoring power consumption of a solid state disk as claimed in claim 1, wherein the step of identifying a NAND operation command received by a NAND particle in the solid state disk and time stamping the NAND operation command comprises: a main control chip in the solid state disk receives the request command, generates a corresponding NAND operation instruction, and sends the NAND operation instruction to a corresponding NAND particle; intercepting and analyzing a communication bus between the master control chip and the NAND particle, identifying a NAND operation instruction received by the NAND particle, and And extracting the NAND operation instruction, and stamping the NAND operation instruction with a time stamp.
- 5. The method for monitoring power consumption of solid state disk as claimed in claim 4, wherein a communication bus between the master control chip and the NAND particles is intercepted and analyzed by a hardware probe.
- 6. The method for monitoring power consumption of a solid state disk according to claim 1, wherein the power consumption tracing track file comprises a two-dimensional coordinate system, a trend line and a plurality of mark texts, wherein an abscissa of the two-dimensional coordinate system represents time, and an ordinate of the two-dimensional coordinate system represents instantaneous power consumption of the solid state disk; The trend line is located in the two-dimensional coordinate system, the mark text is located at the peak or abnormal fluctuation moment of the trend line, and the mark text comprises the request command and the NAND operation instruction.
- 7. The method for monitoring power consumption of a solid state disk as claimed in claim 6, further comprising, after the step of generating a power consumption trace file in combination with the request command, the NAND operation command, the instantaneous power consumption of the solid state disk, and the corresponding timestamp: storing a plurality of different types of power consumption tracing track files of the request commands; and counting total time consumption for executing each request command, power consumption generated by executing each request command, the occurrence times and average power consumption of peak or abnormal fluctuation of trend lines in each power consumption tracing track file, and the power consumption proportion of all peak or abnormal fluctuation of trend lines in each power consumption tracing track file according to the power consumption tracing track files of a plurality of different types, and forming a contribution report.
- 8. The method for monitoring power consumption of a solid state disk according to claim 1, wherein a time stamp of the request command, a time stamp of the NAND operation instruction, and a time stamp of instantaneous power consumption of the solid state disk are uniformly referenced and clocked at the same time.
- 9. A power consumption monitoring system for a solid state disk, adopting the method for monitoring power consumption of a solid state disk according to any one of claims 1 to 8, wherein the power consumption monitoring system comprises: A load generator for issuing a time-stamped request command; The probe is used for identifying the NAND operation instruction received by the NAND particle in the solid state disk and stamping the NAND operation instruction with a time stamp; A power meter for measuring current and voltage of the solid state disk to calculate instantaneous power consumption of the solid state disk, and And the display is used for generating and displaying a power consumption tracing track file by combining the request command, the NAND operation command, the instant power consumption of the solid state disk and the corresponding time stamp.
- 10. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the steps of the method for monitoring power consumption of a solid state disk according to any of claims 1-8.
Description
Power consumption monitoring method, power consumption monitoring system and storage medium of solid state disk Technical Field The present application relates to the field of solid state hard drives, and in particular, to a method for monitoring power consumption of a solid state hard disk, a system for monitoring power consumption, and a storage medium. Background SSDs (Solid STATE DISK or Solid STATE DRIVE) are used as a new storage medium, which uses NAND particles as data storage, and have the advantage of high performance and low latency compared to conventional HDDs (HARD DISK DRIVE, hard disk drives). The power consumption of the solid state disk is one of key performance indexes, and particularly in the fields of data centers and mobile computing, the operation cost and the endurance time are directly related. The current SSD power consumption testing technology is basically a maximum power consumption testing and verifying method based on a solid state disk, and mainly focuses on measuring and visualizing the maximum power consumption through sequential read-write operations in power states of PS0, PS1 and the like. However, this approach cannot be traced, and it cannot be determined which underlying NAND granular operations or firmware background tasks are responsible for fluctuations in system level power consumption, making power consumption optimization work lacking an accurate goal. Disclosure of Invention The embodiment of the application aims to provide a power consumption monitoring method, a power consumption monitoring system and a storage medium of a solid state disk, which are used for accurately positioning NAND particle operation causing power consumption fluctuation and providing direct data support for power consumption optimization. The embodiment of the application discloses a method for monitoring the power consumption of a solid state disk, which comprises the following steps: Issuing a request command with a time stamp; Receiving the request command and generating a corresponding NAND operation instruction; Identifying a NAND operation instruction received by NAND particles in a solid state disk, and stamping a time stamp on the NAND operation instruction; Calculating the instantaneous power consumption of the solid state disk, and stamping the instantaneous power consumption with a time stamp, and And generating a power consumption tracing track file by combining the request command, the NAND operation command, the instant power consumption of the solid state disk and the corresponding time stamp. Optionally, in the step of issuing the request command with the timestamp, the method includes: establishing a load model library; At least one test load is called from the load model library according to a preset instruction to form a preset use scene; And generating a request command with a time stamp according to the preset use scene. Optionally, the step of retrieving at least one test load from the load model library according to a preset instruction to form a preset usage scenario includes: monitoring and recording real application related to a preset instruction during execution; retrieving test load corresponding to the real application from the load model library, and And forming a preset use scene based on the test load. Optionally, the step of identifying the NAND operation instruction received by the NAND particle in the solid state disk and time stamping the NAND operation instruction includes: a main control chip in the solid state disk receives the request command, generates a corresponding NAND operation instruction, and sends the NAND operation instruction to a corresponding NAND particle; intercepting and analyzing a communication bus between the master control chip and the NAND particle, identifying a NAND operation instruction received by the NAND particle, and And extracting the NAND operation instruction, and stamping the NAND operation instruction with a time stamp. Optionally, a communication bus between the master control chip and the NAND particles is intercepted and analyzed by a hardware probe. Optionally, the power consumption tracing track file includes a two-dimensional coordinate system, a trend line and a plurality of mark texts, wherein an abscissa of the two-dimensional coordinate system represents time, and an ordinate of the two-dimensional coordinate system represents instantaneous power consumption of the solid state disk; The trend line is located in the two-dimensional coordinate system, the mark text is located at the peak or abnormal fluctuation moment of the trend line, and the mark text comprises the request command and the NAND operation instruction. Optionally, after the step of generating the power consumption trace file in combination with the request command, the NAND operation command, the instantaneous power consumption of the solid state disk and the corresponding timestamp, the method further includes: Storing a plurality of diff