System and method for testing power consumption of solid state disk

By using the power switching module and the data acquisition module in the solid-state drive power consumption test system, automatic switching and data acquisition of multiple disks are realized, which solves the problem of low test efficiency in the existing technology and improves the test efficiency.

CN118779164APending Publication Date: 2024-10-15DAPUSTOR CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410776300.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-17
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

The existing SSD power consumption testing technology is inefficient and cannot automatically test multiple disks. It requires manual replacement, resulting in extremely low testing efficiency.

Method used

Design a solid-state hard drive power consumption test system that switches the power supply circuit of the disk under test through the power switching module to realize automatic switching of multiple disks. The data acquisition module is used to collect power consumption test data, and the control end host generates a test report.

Benefits of technology

It improves the test efficiency of SSD power consumption test, realizes automatic switching and data collection of multiple disks, and simplifies the test process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779164A_ABST
    Figure CN118779164A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of solid state disk testing, and discloses a power consumption testing system and method for a solid state disk, the system is in communication connection with a testing end host and the solid state disk, the solid state disk comprises a plurality of disks, each disk corresponds to a first power supply loop, the plurality of disks share a second power supply loop, and the system comprises a power supply switching module, a first power supply module and a second power supply module, and the switching module is respectively connected with the test end host and the disks of the plurality of solid state disks, and is used for receiving a switching command sent by the control end host, switching the power supply loop of the current tested disk from the second power supply loop to the first power supply loop according to the switching command, and switching the power supply loop of the next tested disk from the first power supply loop to the second power supply loop, the power supply circuit of the tested disk is switched through the power supply switching module, so that the multiple tested disks are automatically switched when the power consumption of the multiple disks is tested, and the test efficiency of the power consumption test of the solid state disk is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of solid-state drive testing, and in particular to a system and method for testing power consumption of a solid-state drive. Background Art

[0002] SSD (Solid State Drives) is the most common high-performance data storage device on the market. SSD is divided into NVMe, SAS, SATA and other protocol interface types. In terms of appearance, mainstream SSD is also divided into U.2, AIC, EDSFF, M.2 and other form factors. SSD usually presents high performance and low power consumption to users. With the development of current technology, especially NVMe / PCIe Gen5 SSD performance can exceed 10GB / S, for SSD, performance and power consumption are closely related. Therefore, performance and power consumption are the key parameters of SSD. Therefore, in the process of SSD R&D, the goal of software and hardware development is to achieve high performance and stable functions, and any software changes will affect performance, thereby affecting power consumption. Therefore, power consumption and performance testing is a test that needs to be carried out continuously throughout the SSD R&D process.

[0003] At present, in the process of SSD research and development, there is no good high-efficiency and low-cost solution for power consumption testing in the SSD industry. The existing technical solution can only test one disk at a time. If multiple disks need to be tested, they need to be manually replaced and automatic operation cannot be achieved. Therefore, the testing efficiency of the existing technical solution is extremely low. Summary of the invention

[0004] The embodiment of the present application provides a power consumption test system and method for a solid-state hard disk. The power supply circuit of the disk under test is switched by a power switching module, so that when multiple disks are subjected to power consumption testing, automatic switching of multiple disks under test is achieved. The present application can improve the test efficiency of the power consumption test of the solid-state hard disk.

[0005] The embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, an embodiment of the present application provides a power consumption test system for a solid-state hard disk, wherein the system is communicatively connected to a test end host and a solid-state hard disk, wherein the solid-state hard disk includes a plurality of disks, each of which corresponds to a first power supply circuit, and the plurality of disks share a second power supply circuit, and the system includes:

[0007] A power switching module, connected to the test end host and the disks of the multiple solid-state hard disks, respectively, the power switching module is used to receive a switching command sent by the control end host, and according to the switching command, switch the power supply circuit of the current disk under test from the second power supply circuit to the first power supply circuit, and switch the power supply circuit of the next disk under test from the first power supply circuit to the second power supply circuit, so as to switch the current disk under test to the next disk under test;

[0008] A data acquisition module, the data acquisition module is connected to the plurality of disks through a second power supply circuit, and the data acquisition module is used to collect power consumption test data of the disks;

[0009] The control end host is connected to the power switching module and the data acquisition module respectively. The control end host is used to send a switching instruction to the power switching module. The control end host includes a data analysis module. The data analysis module is used to generate a power consumption test report according to the power consumption test data.

[0010] In some embodiments, the power switching module includes a switch tool board, which is respectively connected to each disk of the solid-state hard disk. The switch tool board is used to combine a first power supply circuit and a second power supply circuit. When the disk is a disk under test, the power supply circuit of the disk under test is switched from the first power supply circuit to the second power supply circuit to power the disk under test through the second power supply circuit. Alternatively, when the disk is not a disk under test, the power supply circuit of the disk under test is switched from the second power supply circuit to the first power supply circuit to power the disk through the first power supply circuit.

[0011] In some embodiments, the switch tool board includes multiple switches, including a first switch and a second switch, the first switch corresponds to the first power supply circuit, and the second switch corresponds to the second power supply circuit. The switch tool board is specifically used to control the first switch to be closed and the second switch to be opened when the disk is the disk to be tested, so that the first power supply circuit is disconnected and the second power supply circuit is turned on, or, when the disk is not the disk to be tested, control the first switch to be opened and the second switch to be closed, so that the first power supply circuit is turned on and the second power supply circuit is disconnected.

[0012] In some embodiments, the switch tool board also includes a switch switching controller, which is respectively connected to the control end host and multiple switches. The switch switching controller is used to receive a switching command sent by the control end host, and turn on or off the switch according to the switching command to switch the first power supply circuit and the second power supply circuit of multiple disks.

[0013] In some embodiments, the test end host provides power for the first power supply circuit, the first power supply circuit includes at least one power input terminal, an output terminal and a first combiner diode, wherein each disk corresponds to a power input terminal and an output terminal, the test end host is connected to the first power supply circuit via the power input terminal, and each disk is connected to the first power supply circuit via the power output terminal;

[0014] The second power supply circuit includes a trunk circuit and at least two branches, the trunk circuit includes an independent power supply module and a data acquisition module, the branches include a second switch, a second combining diode and an output end, wherein the first power supply circuit and the second power supply circuit corresponding to each disk share an output end through combining.

[0015] In a second aspect, an embodiment of the present application provides a method for testing power consumption of a solid-state hard disk, which is applied to a power consumption testing system of a solid-state hard disk as in the first aspect, wherein the solid-state hard disk includes a plurality of disks, and the method includes:

[0016] Obtain an IO mode list to be tested, wherein the IO mode list includes multiple IO modes, and each IO mode corresponds to a preset IO service;

[0017] According to the IO mode list, get the current IO mode;

[0018] According to the current IO mode, the preset IO service corresponding to the current IO mode is executed on all the disks under test;

[0019] Determine the current disk under test, and collect data on the current disk under test during the process of the current disk under test executing the preset IO service corresponding to the current IO mode, so as to obtain power consumption test data of the current disk under test;

[0020] Switch the current disk under test to the next disk under test to obtain the power consumption test data of the next disk under test until all the disks under test are traversed;

[0021] Generate a power consumption test report based on the power consumption test data.

[0022] In some embodiments, during the process of the current disk under test executing the preset IO service corresponding to the current IO mode, data collection is performed on the current disk under test to obtain power consumption test data of the current disk under test, including:

[0023] In the process of the currently tested disk executing the preset IO service corresponding to the current IO mode, obtaining the switching command of the control end host;

[0024] According to the switching command, the power supply circuit of the currently tested disk is switched from the first power supply circuit to the second power supply circuit;

[0025] Through the second power supply circuit, multiple sub-processes are started to collect data on the currently tested disk to obtain power consumption test data of the currently tested disk.

[0026] In some embodiments, the power consumption test data includes performance data, power consumption value and temperature of the disk. Each power consumption test data corresponds to a sub-process. Multiple sub-processes are started to collect data from the disk under test to obtain the power consumption test data, including:

[0027] Start the subprocess corresponding to the performance data and obtain the performance data once at a fixed interval;

[0028] Start a subprocess corresponding to the power consumption value, and obtain the power consumption value once at a fixed interval, where the power consumption value includes the maximum value, minimum value, average value and effective value;

[0029] Start the subprocess corresponding to the disk temperature and obtain the disk temperature once at a fixed interval.

[0030] In some embodiments, the method further comprises:

[0031] After obtaining the power consumption test data of the currently tested disk, determining whether all the tested disks have been traversed;

[0032] If all the disks under test have been traversed, then determine whether the IO mode list has been traversed;

[0033] If the IO mode list has been traversed, a power consumption test report is generated according to the power consumption test data.

[0034] In some embodiments, switching the current disk under test to the next disk under test to obtain power consumption test data of the next disk under test includes:

[0035] After the disk under test completes data collection, a switching instruction sent by the control end host is obtained;

[0036] According to the switching instruction, the power supply circuit of the currently tested disk is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next tested disk is switched from the first power supply circuit to the second power supply circuit;

[0037] Data collection is performed on the next disk to be tested through the second power supply circuit to obtain power consumption test data of the next disk to be tested.

[0038] The beneficial effects of the implementation methods of the present application are as follows: Different from the prior art, the implementation methods of the present application provide a power consumption test system for a solid-state hard disk, the system is communicatively connected to a test-end host and a solid-state hard disk, the solid-state hard disk includes a plurality of disks, each disk corresponds to a first power supply circuit, and a plurality of disks share a second power supply circuit, the system includes: a power switching module, which is respectively connected to the test-end host and the disks of the plurality of solid-state hard disks, the power switching module is used to receive a switching command sent by the control-end host, and according to the switching command, the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next disk under test is switched from the first power supply circuit to the second power supply circuit , to switch the current disk under test to the next disk under test; a data acquisition module, the data acquisition module is connected to multiple disks through a second power supply circuit, and the data acquisition module is used to collect power consumption test data of the disks; a control end host, the control end host is respectively connected to the power switching module and the data acquisition module, the control end host is used to send a switching instruction to the power switching module, the control end host includes a data analysis module, the data analysis module is used to generate a power consumption test report according to the power consumption test data, the present application can switch the power supply circuit of the disk under test through the power switching module, so that when multiple disks are subjected to power consumption testing, the automatic switching of multiple disks under test is realized to improve the test efficiency of the power consumption test of the solid-state hard disk. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] One or more embodiments are exemplarily described by corresponding drawings, which do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and the figures in the drawings do not constitute proportional limitations unless otherwise stated.

[0040] Figure 1 is a structural schematic diagram of a flash memory device provided in an embodiment of the present application;

[0041] Figure 2 is a schematic diagram of a flash memory device controller provided in an embodiment of the present application;

[0042] Figure 3 It is a structural schematic diagram of a power consumption test system provided in an embodiment of the present application;

[0043] Figure 4 It is a schematic diagram of the connection relationship of a power consumption test system provided in an embodiment of the present application;

[0044] Figure 5 is a schematic diagram of the connection relationship of another power consumption test system provided in an embodiment of the present application;

[0045] Figure 6 is a schematic diagram of a first power supply circuit and a second power supply circuit provided in an embodiment of the present application;

[0046] Figure 7 It is a flowchart of a power consumption testing method provided in an embodiment of the present application;

[0047] Figure 8 It is a schematic diagram of a process for determining whether a power consumption acquisition device is an oscilloscope provided by an embodiment of the present application;

[0048] Fig. 9 yes Figure 7 A detailed flow chart of step S704 in FIG.

[0049] Fig.10 yes Fig. 9 A detailed flow chart of step S743 in FIG.

[0050] Fig.11 It is a schematic diagram of a flow chart of determining whether all the tested disks have been traversed, provided in an embodiment of the present application;

[0051] Fig.12 It is a schematic diagram of the overall process of a power consumption testing method provided in an embodiment of the present application.

[0052] Description of Figure Numbers:

[0053]

[0054] DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0056] In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.

[0057] Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used in this specification and in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The term "and / or" used in this specification includes any and all combinations of one or more of the related listed items.

[0058] The technical solution of the present application is described in detail below in conjunction with the accompanying drawings:

[0059] In an embodiment of the present application, the flash memory device includes a solid state drive or other storage device using flash memory as storage medium, and the flash memory device controller includes a controller of the solid state drive or other storage device using flash memory as storage medium.

[0060] For details, please refer to Figure 1 , Figure 1 It is a structural schematic diagram of a flash memory device provided in an embodiment of the present application.

[0061] like Figure 1 As shown, the flash memory device 100 includes a flash memory medium 110 and a flash memory device controller 120 connected to the flash memory medium 110. The flash memory device 100 is connected to the host 200 in a wired or wireless manner to achieve data interaction.

[0062] Flash memory medium 110, as the storage medium of flash memory device 100, is also called flash memory, Flash, Flash memory or Flash particles. It is a type of storage device and a non-volatile memory. It can store data for a long time even without current supply. Its storage characteristics are equivalent to those of a hard disk, making flash memory medium 110 the basis of storage media for various portable digital devices.

[0063] Among them, the flash memory medium 110 can be Nand FLASH. Nand FLASH uses a single transistor as a storage unit for binary signals. Its structure is very similar to that of ordinary semiconductor transistors. The difference is that the single transistor of Nand FLASH adds a floating gate and a control gate. The floating gate is used to store electrons. The surface is covered by a layer of silicon oxide insulator and is coupled to the control gate through a capacitor. When negative electrons are injected into the floating gate under the action of the control gate, the storage state of the single crystal of Nand FLASH changes from "1" to "0", and when the negative electrons are removed from the floating gate, the storage state changes from "0" to "1". The insulator coated on the surface of the floating gate is used to trap the negative electrons in the floating gate to achieve data storage. That is, the storage unit of Nand FLASH is a floating gate transistor, which uses the floating gate transistor to store data in the form of charge. The amount of stored charge is related to the magnitude of the voltage applied to the floating gate transistor.

[0064] A Nand FLASH includes at least one Chip chip, each Chip chip is composed of several Block physical blocks, and each Block physical block includes several Page pages. Among them, the Block physical block is the smallest unit for Nand FLASH to perform erase operations, and the Page page is the smallest unit for Nand FLASH to perform read and write operations. The capacity of a Nand FLASH is equal to the number of its Block physical blocks * the number of Page pages contained in a Block physical block * the capacity of a Page page. Specifically, the flash memory medium 10 can be divided into SLC, MLC, TLC and QLC according to the different levels of the voltage of the storage unit.

[0065] The flash memory device controller 120 includes a data converter 121 , a processor 122 , a buffer 123 , a flash memory controller 124 and an interface 125 .

[0066] The data converter 121 is connected to the processor 122 and the flash controller 124 respectively, and the data converter 121 is used to convert binary data into hexadecimal data, and convert hexadecimal data into binary data. Specifically, when the flash controller 124 writes data to the flash medium 110, the binary data to be written is converted into hexadecimal data through the data converter 121, and then written into the flash medium 110. When the flash controller 124 reads data from the flash medium 110, the hexadecimal data stored in the flash medium 110 is converted into binary data through the data converter 121, and then the converted data is read from the binary data page register. Among them, the data converter 121 may include a binary data register and a hexadecimal data register. The binary data register can be used to save the data converted from hexadecimal to binary, and the hexadecimal data register can be used to save the data converted from binary to hexadecimal.

[0067] The processor 122 is connected to the data converter 121, the cache 123, the flash memory controller 124 and the interface 125, respectively. The processor 122 and the data converter 121, the cache 123, the flash memory controller 124 and the interface 125 can be connected via a bus or other means. The processor is used to run the non-volatile software programs, instructions and modules stored in the cache 123, so as to implement any method embodiment of the present application.

[0068] The buffer 123 is mainly used to cache the read / write instructions sent by the host 200 and the read data or write data obtained from the flash memory medium 110 according to the read / write instructions sent by the host 200. The buffer 123, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The buffer 123 may include a program storage area, and the program storage area may store an operating system and an application required by at least one function. In addition, the buffer 123 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the buffer 123 may optionally include a memory remotely arranged relative to the processor 124. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The buffer 123 may be a static random access memory (SRAM) or a tightly coupled memory (TCM) or a double data rate synchronous dynamic random access memory (DDR SRAM).

[0069] The flash memory controller 124 is connected to the flash memory medium 110, the data converter 121, the processor 122 and the cache 123, and is used to access the back-end flash memory medium 110 and manage various parameters and data I / O of the flash memory medium 110; or, it is used to provide an access interface and protocol, implement the corresponding SAS / SATA target protocol end or NVMe protocol end, obtain the I / O instructions issued by the host 200, decode and generate internal private data results to wait for execution; or, it is responsible for the core processing of FTL (Flash translation layer).

[0070] Interface 125 connects the host 200 and the data converter 121, the processor 122 and the buffer 123, and is used to receive data sent by the host 200, or receive data sent by the processor 122 to realize data transmission between the host 200 and the processor 122. Interface 125 can be a SATA-2 interface, a SATA-3 interface, a SAS interface, an MSATA interface, a PCI-E interface, a NGFF interface, a CFast interface, an SFF-8639 interface and an M.2NVME / SATA protocol.

[0071] Please refer to Figure 2 , Figure 2It is a structural schematic diagram of a flash memory device controller provided in an embodiment of the present application; wherein the flash memory device controller belongs to the above-mentioned flash memory device.

[0072] like Figure 2 As shown, the flash memory device controller 120 includes: a PCIe interface controller 126, a DDR controller 127, an NVMe interface controller 128, a processor 122, a peripheral module 129, a data path module 1210 and a flash memory controller 124.

[0073] Specifically, the PCIe interface controller 126 is used to control the PCIe communication protocol, the DDR controller 127 is used to control the dynamic random access memory, the NVMe interface controller 128 is used to control the NVMe communication protocol, the peripheral module 129 is used to control other related communication protocols, the data path module 1210 is used to control the data path, for example: write cache management, and the flash memory controller 124 is used for flash memory data processing.

[0074] The flash memory device controller 120 further includes a data converter 121 , a buffer 123 , an interface 125 and the like.

[0075] Specifically, the data converter 121 is connected to the processor and the flash memory controller, respectively, and the data converter is used to convert binary data into hexadecimal data, and convert hexadecimal data into binary data. Specifically, when the flash memory controller writes data to the flash memory medium, the binary data to be written is converted into hexadecimal data by the data converter, and then written into the flash memory medium. When the flash memory controller reads data from the flash memory medium, the hexadecimal data stored in the flash memory medium is converted into binary data by the data converter, and then the converted data is read from the binary data page register. Among them, the data converter may include a binary data register and a hexadecimal data register. The binary data register can be used to save the data after the hexadecimal is converted into binary, and the hexadecimal data register can be used to save the data after the binary is converted into hexadecimal.

[0076] Specifically, the processor 122 is connected to the data converter 121, the cache 123, the flash memory controller 124 and the interface 125, respectively, wherein the processor and the data converter, the cache, the flash memory controller and the interface can be connected via a bus or other means, and the processor is used to run the non-volatile software programs, instructions and modules stored in the cache, so as to implement any method embodiment of the present application.

[0077] Specifically, the buffer is mainly used to cache the read / write instructions sent by the host and the read data or write data obtained from the flash memory medium according to the read / write instructions sent by the host. The buffer, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The buffer may include a storage program area, and the storage program area can store an operating system and at least one application required for a function. In addition, the buffer may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the buffer may optionally include a memory remotely arranged relative to the processor. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof. The buffer may be a static random access memory (Static Random Access Memory, SRAM) or a tightly coupled memory (Tightly Coupled Memory, TCM) or a double data rate synchronous dynamic random access memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SRAM).

[0078] Specifically, the flash controller 124 is connected to the flash medium, the data converter, the processor and the cache, and is used to access the flash medium at the back end and manage various parameters and data I / O of the flash medium; or, is used to provide an access interface and protocol, implement the corresponding SAS / SATA target protocol end or NVMe protocol end, obtain the I / O instructions issued by the host, decode and generate internal private data results to wait for execution; or, is responsible for the core processing of the flash translation layer (FTL).

[0079] Specifically, the interface connects the host and the data converter, the processor and the buffer, and is used to receive data sent by the host, or receive data sent by the processor to realize data transmission between the host and the processor. The interface can be a SATA-2 interface, a SATA-3 interface, a SAS interface, an MSATA interface, a PCI-E interface, a NGFF interface, a CFast interface, an SFF-8639 interface and an M.2NVME / SATA protocol.

[0080] See also Figure 3 , Figure 3 It is a structural schematic diagram of a power consumption test system provided in an embodiment of the present application;

[0081] like Figure 3As shown, the power consumption test system 30 is communicatively connected to the test end host 10 and the solid state hard disk 20, and the solid state hard disk 20 includes a plurality of disks 201. In the embodiment of the present application, the power consumption test system can be flexibly configured to various forms of hard disks by adopting different interfaces. That is to say, the plurality of disks can be disks of the same type, or can include a plurality of different types of disks. For example, the power consumption test system can be adapted to hard disks with interfaces such as U.2, EDSFF, and AIC. Figure 3 Taking one disk as an example, each disk corresponds to a first power supply circuit, and multiple disks share a second power supply circuit. The system includes:

[0082] The power switching module 301 is connected to the test end host 10 and the disks 201 of multiple solid-state hard disks, respectively. The power switching module 301 is used to receive a switching command sent by the control end host, and according to the switching command, the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next disk under test is switched from the first power supply circuit to the second power supply circuit, so as to switch the current disk under test to the next disk under test; specifically, when performing a power consumption test of the solid-state hard disk, the control end host sends a switching command to the power switching module, the power switching module receives the switching command, and according to the switching command, the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit. Power supply circuit, and switches the power supply circuit of the next disk under test from the first power supply circuit to the second power supply circuit, wherein the first power supply circuit is powered by the test end host, the second power supply circuit includes an independent power supply module and a data acquisition module, and the second power supply circuit is powered by the independent power supply module. Therefore, when the disk under test is connected to the second power supply circuit, the power consumption test data of the disk under test can be collected through the data acquisition module of the second power supply circuit. It can be understood that when the power consumption test just starts, the first disk under test has not yet been connected to the second power supply circuit, and the power switching module is used to switch the power supply circuit of the first disk under test from the first power supply circuit to the second power supply circuit according to the switching command.

[0083] The data acquisition module 302 is connected to the plurality of disks 201 via the second power supply circuit, and is used to collect power consumption test data of the disks. Specifically, after the power supply switching module connects the currently tested disk to the second power supply circuit, the data acquisition module is connected to the currently tested disk via the second power supply circuit, and performs voltage and current measurement operations on the currently tested disk to obtain power consumption test data of the currently tested disk, wherein the power consumption test data includes but is not limited to voltage value, current value and power consumption value.

[0084] The control end host 303 is connected to the power switching module 301 and the data acquisition module 302 respectively. The control end host 303 is used to send a switching instruction to the power switching module. The control end host 303 includes a data analysis module 331. The data analysis module 331 is used to generate a power consumption test report according to the power consumption test data. Specifically, after the data acquisition of the current disk under test is completed, the control end host sends a switching instruction to the power switching module, so that the power switching module switches the current disk under test to the next disk under test according to the switching instruction to realize automatic switching of the disk under test. The data analysis module is mounted on the control end host, and the data analysis module is communicatively connected to the data acquisition module. After the data acquisition module acquires the power consumption test data of the current disk under test, the data acquisition module sends the power consumption test data to the data analysis module. The data analysis module collects the power consumption test data of all the disks under test and generates a power consumption test report according to the power consumption test data. The generation of the power consumption test report refers to a comprehensive drawing analysis of multiple power consumption test data, generating corresponding curves, and analyzing the curves to generate a power consumption test report.

[0085] In addition, the control-end host 303 is communicatively connected to the test-end host 10. Before the above-mentioned power consumption test starts, the test-end host 10 is connected to multiple disks 201 under test through the first power supply circuit. The control-end host 303 is also used to send IO control commands to the test-end host 10 so that the test-end host executes the IO control commands, that is, reads and writes the disk under test through the first power supply circuit, and returns the execution results to the control-end host, wherein the IO control commands include 128K sequential write commands, 128K sequential read commands, 4K random write commands, 4K random read commands and 4K mixed read and write commands.

[0086] See also Figure 4 , Figure 4 It is a schematic diagram of the connection relationship of a power consumption test system provided in an embodiment of the present application;

[0087] like Figure 4As shown in the figure, the signals transmitted between the SSD and the host are mainly divided into the following three categories: ① High-speed signal: the main interface for connecting the SSD and the host to transmit data, such as high-speed serdes signals of PCIe / SAS / SATA, etc.; ② Low-speed signal: some out-of-band management signals, such as SMBUS, in-position signal, LED light control signal, etc.; ③ Power signal: the signal for powering the SSD. The common power supply signals are 12V (U.2PCIe / SAS SSD), 5V (SATA SSD), 3.3V (M.2SSD), etc. The purpose of the power consumption test is to collect the current and voltage values ​​on the power supply signal, and then perform statistical analysis. Therefore, in the embodiment of the present application, an adapter cable is added between the test end host and the disk to separate the power supply signal of the test end host separately, and connect the power switching module, so that the test end host is connected to the power switching module through multiple Slot interfaces, and the power switching module is connected to multiple disks at the same time. The power switching module receives the input and output of multiple currents, wherein each disk corresponds to a Slot interface, the data acquisition module includes a high sampling rate digital oscilloscope, a voltage probe and a current probe, the data acquisition module is connected to the second power supply circuit through the voltage probe and the current probe, the control end host is connected to the data acquisition module through Ethernet (Ethernet, ETH), and the test end host is connected to the control end host through SSHoverETH, wherein SSH (Secure Shell Protocol Secure Shell SSH (SSH for short) is an encrypted network transmission protocol used to implement remote connection between client and server in the network. SSHoverETH is an SSH client for Ethereum network, which allows users to remotely connect to a server or remote node running an Ethereum client (such as Geth or Parity) through the SSH protocol. In the embodiment of the present application, the control-end host completes the remote operation and command issuance of the test-end host through the paramiko module in Python, wherein paramiko is a Python library that provides support for SSH, allowing the device to connect to the SSH server and execute commands. The control-end host is connected to the power switching module through the USB serial port. In some embodiments, the test-end host may also be a server.

[0088] See also Figure 5 , Figure 5 is a schematic diagram of the connection relationship of another power consumption test system provided in an embodiment of the present application;

[0089] like Figure 5As shown, data is transmitted between the test end host and the disk through low-speed signals and high-speed signals, and a transfer cable is added between the test end host and the disk to separate the power signal of the test end host and connect it to the power switching module, so that the test end host is connected to the power switching module through multiple Slot interfaces, and the power switching module is connected to multiple disks at the same time. The power switching module receives the input and output of multiple currents, wherein each disk corresponds to a Slot interface, the data acquisition module includes a high sampling rate power / current meter, the data acquisition module is connected to the second power supply circuit through the input channel and the output channel, the control end host is connected to the data acquisition module through Ethernet (Ethernet, ETH), and the test end host is connected to the control end host through SSHoverETH, wherein SSH (Secure Shell Protocol Secure SSH (Shell Protocol, abbreviated as SSH) is an encrypted network transmission protocol used to implement remote connection between client and server in the network. SSHoverETH is an SSH client for Ethereum network, which allows users to remotely connect to a server or remote node running an Ethereum client (such as Geth or Parity) through the SSH protocol. The control host is connected to the power switching module through the USB serial port. In some embodiments, the test host can also be a server.

[0090] See also Figure 6 , Figure 6 is a schematic diagram of a first power supply circuit and a second power supply circuit provided in an embodiment of the present application;

[0091] like Figure 6 As shown, the test end host provides power for the first power supply circuit, and the first power supply circuit includes at least one power input terminal, an output terminal and a first combining diode, that is, Figure 4 The multiple slot interfaces of the test host in Figure 6 The multiple power input terminals in the test disk correspond to each other one by one, wherein each disk corresponds to a power input terminal and an output terminal, the test end host is connected to the first power supply circuit via the power input terminal, and each disk is connected to the first power supply circuit via the power output terminal;

[0092] The second power supply circuit includes a trunk and at least two branches, the trunk includes an independent power supply module and a data acquisition module, the branches include a second switch, a second combining diode and an output terminal, wherein the first power supply circuit and the second power supply circuit corresponding to each disk share an output terminal by combining, and the independent power supply module includes but is not limited to a 12V power supply, a 3.3V power supply and a 5V power supply;

[0093] The power switching module includes a switch tool board, the switch tool board is respectively connected to each disk of the solid-state hard disk, and the switch tool board is used to combine the first power supply circuit and the second power supply circuit, and when the disk is the disk under test, the power supply circuit of the disk under test is switched from the first power supply circuit to the second power supply circuit, so as to supply power to the disk under test through the second power supply circuit, or when the disk is not the disk under test, the power supply circuit of the disk under test is switched from the second power supply circuit to the first power supply circuit, so as to supply power to the disk through the first power supply circuit;

[0094] The switch tool board includes multiple switches, including a first switch and a second switch. The first switch corresponds to the first power supply circuit, and the second switch corresponds to the second power supply circuit. The switch tool board is specifically used to control the first switch to be closed and the second switch to be opened when the disk is the disk to be tested, so that the first power supply circuit is disconnected and the second power supply circuit is connected, or, when the disk is not the disk to be tested, control the first switch to be opened and the second switch to be closed, so that the first power supply circuit is connected and the second power supply circuit is disconnected.

[0095] The switch tool board also includes a switch switching controller, which is connected to the control end host and multiple switches respectively, wherein the switch switching controller includes an 8-way / 16-way multi-way relay module controlled by an MCU, and the switch controller is connected to the control end host via a USB to serial port IC. The switch switching controller is used to receive a switching command sent by the control end host, and turn on or off the switch according to the switching command to switch the first power supply circuit and the second power supply circuit of multiple disks.

[0096] For example, when the SSD is working normally, SSD1, SSD2, ..., SSDn are all powered by the input power supply of the first power supply circuit, that is, the first switch corresponding to each first power supply circuit is set to the on (open) state, and the second switch corresponding to each second power supply circuit is set to the off (closed) state;

[0097] When it is necessary to switch to measuring the voltage and current of SSD1, the sequence of steps is as follows: open the second switch corresponding to SSD1 -> wait for the preset time -> close the first switch corresponding to SSD1. At this time, SSD1 is powered by the sampling circuit, and the voltage, current and power consumption corresponding to SSD1 can be read from the oscilloscope or power meter; when it is necessary to switch from SSD1 to measuring the voltage and current of SSD2, the sequence of steps is as follows: open the first switch corresponding to SSD1 -> wait for the preset time -> close the second switch corresponding to SSD1 -> open the second switch corresponding to SSD2 -> wait for the preset time -> close the first switch corresponding to SSD2. At this time, SSD2 is powered by the second If the SSD2 is powered by the first power supply circuit, the voltage, current and power consumption corresponding to the SSD2 can be read from the oscilloscope or power meter; since there is a certain time delay in the relay or switch, a preset waiting time (preset time) is required. The preset time is mainly set according to the time when the switch is fully opened and closed, that is, it is set according to the actual situation. For example, the preset time is set to 1s; when it is necessary to measure the voltage and current of other SSDs, and so on; through a switch tool board, each SSD is powered by the first power supply circuit and the second power supply circuit in a combined manner, so that the voltage and current measurement operation of any SSD can be realized.

[0098] In an embodiment of the present application, the power consumption test system of the solid-state hard disk is communicatively connected to the test-end host and the solid-state hard disk, the solid-state hard disk includes multiple disks, each disk corresponds to a first power supply circuit, and multiple disks share a second power supply circuit. The system includes: a power switching module, which is respectively connected to the test-end host and the disks of the multiple solid-state hard disks, and the power switching module is used to receive a switching command sent by the control-end host, and according to the switching command, the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next disk under test is switched from the first power supply circuit to the second power supply circuit, so as to switch the current disk under test to the next A disk under test; a data acquisition module, the data acquisition module is connected to multiple disks through a second power supply circuit, and the data acquisition module is used to collect power consumption test data of the disks; a control-end host, the control-end host is respectively connected to the power switching module and the data acquisition module, the control-end host is used to send a switching instruction to the power switching module, the control-end host includes a data analysis module, and the data analysis module is used to generate a power consumption test report according to the power consumption test data. The present application can switch the power supply circuit of the disk under test through the power switching module, so that when multiple disks are subjected to power consumption tests, automatic switching of multiple disks under test can be achieved to improve the test efficiency of the power consumption test of the solid-state hard disk.

[0099] See also Figure 7 , Figure 7 It is a flowchart of a power consumption testing method provided in an embodiment of the present application;

[0100] The power consumption test method is applied to a power consumption test system of a solid state hard disk, and the solid state hard disk includes a plurality of disks.

[0101] like Figure 7 As shown, the power consumption test method includes:

[0102] Step S701: Obtain a list of IO modes that need to be tested;

[0103] Specifically, obtain the IO mode list that needs to be tested. The IO mode list is set according to actual needs, wherein the IO mode list includes multiple IO modes, each IO mode corresponds to a preset IO service, and the IO modes include but are not limited to 128K sequential write, 128K sequential read, 4K random write, 4K random read, and 4K mixed read and write.

[0104] Step S702: Obtain the current IO mode according to the IO mode list;

[0105] Specifically, traverse the IO mode list, obtain the current IO mode, and set the power consumption level of the current IO mode according to the current IO mode. The power consumption level is a command of the SSD nvme protocol, which is implemented by sending commands to the host. Disks with different power consumption levels have different power consumption levels. For example, the power consumption levels 0-9 represent 10 levels, and each number corresponds to a power consumption level. The smaller the number, the higher the power consumption level, and the higher the power consumption and performance. Assuming that the current IO mode is IOpattern1, the power consumption level corresponding to IO pattern1 can be set to 2 according to actual conditions.

[0106] Step S703: according to the current IO mode, executing the preset IO service corresponding to the current IO mode on all the disks under test;

[0107] Specifically, since each IO mode corresponds to a preset IO service, after the current IO mode is determined, the preset IO service corresponding to the current IO mode is executed on all the disks under test according to the current IO mode.

[0108] Please refer to Figure 8 , Figure 8 It is a schematic diagram of a process for determining whether a power consumption acquisition device is an oscilloscope provided by an embodiment of the present application;

[0109] like Figure 8 As shown, the process of determining whether the power consumption acquisition device is an oscilloscope includes:

[0110] Step S801: Execute the preset IO service corresponding to the current IO mode on all the disks under test;

[0111] Specifically, since each IO mode corresponds to a preset IO service, after the current IO mode is determined, the preset IO service corresponding to the current IO mode is executed on all the disks under test according to the current IO mode.

[0112] Step S802: determining whether the power consumption acquisition device is an oscilloscope;

[0113] Specifically, the power consumption test system of the solid-state hard disk includes a power consumption acquisition device. After all the tested disks execute the preset IO business corresponding to the current IO mode, it is determined whether the power consumption acquisition device is an oscilloscope. If the power consumption acquisition device is not an oscilloscope, step S803 is entered; if the power consumption acquisition device is an oscilloscope, step S804 is entered.

[0114] Step S803: Start multiple sub-processes to collect data from the currently tested disk;

[0115] Specifically, if the power consumption collection device is not an oscilloscope, it means that the power consumption collection device is a power meter / ammeter, and then multiple sub-processes are directly started to collect data from the currently tested disk.

[0116] Step S804: dynamically adjusting the voltage and current range of the oscilloscope so that the maximum value of the power consumption test data is within a preset range of the voltage and current range;

[0117] Specifically, dynamically adjusting the voltage and current range of the oscilloscope refers to first presetting a relatively large first range, where the first range exceeds the maximum value of the power consumption test data, and then fine-tuning the scale to reach the second range, while making the maximum value of the power consumption test data within the preset range of the voltage and current range. The second range can be set according to actual conditions. Preferably, the maximum value of the power consumption test data is within 2 / 3 of the second range. The purpose of dynamically adjusting the voltage and current range of the oscilloscope is to improve the test precision, thereby improving the accuracy of the test.

[0118] It is understandable that after dynamically adjusting the voltage and current ranges of the oscilloscope, it is also necessary to start multiple sub-processes to collect data on the currently tested disk, that is, enter step S803 to collect data on the currently tested disk through the oscilloscope.

[0119] Step S704: determining the current disk under test, and collecting data on the current disk under test during the process of the current disk under test executing the preset IO service corresponding to the current IO mode, so as to obtain power consumption test data of the current disk under test;

[0120] Please refer to Fig. 9 , Fig. 9 yes Figure 7 A detailed flow chart of step S704 in FIG.

[0121] like Fig. 9 As shown, step S704: determining the current disk under test, and collecting data on the current disk under test during the process of the current disk under test executing the preset IO service corresponding to the current IO mode, so as to obtain the power consumption test data of the current disk under test, including:

[0122] Step S741: obtaining a switching command from the control end host during the process in which the currently tested disk executes the preset IO service corresponding to the current IO mode;

[0123] Specifically, the power consumption test system of the solid-state drive is connected to the disk under test and the control-end host respectively, and obtains the switching command of the control-end host during the process of the disk under test executing the preset IO service corresponding to the current IO mode, wherein the switching command of the control-end host is used to switch the power supply circuit of the disk under test.

[0124] Step S742: according to the switching command, the power supply circuit of the disk currently under test is switched from the first power supply circuit to the second power supply circuit;

[0125] Specifically, according to the switching command, the power supply circuit of the current disk under test is switched from the first power supply circuit to the second power supply circuit through the power switching module in the power consumption test system, wherein the first power supply circuit refers to the power supply circuit provided by the test end host, and the first power supply circuit does not have the function of collecting the power consumption test data of the disk under test; the second power supply circuit includes an independent power supply module and a data acquisition module, the second power supply circuit is provided by the independent power supply module, and the data acquisition module can collect the power consumption test data of the disk under test.

[0126] Step S743: starting multiple sub-processes to collect data on the disk under test through the second power supply circuit to obtain power consumption test data of the disk under test;

[0127] Please refer to Fig.10 , Fig.10 yes Fig. 9 A detailed flow chart of step S743 in FIG.

[0128] In an embodiment of the present application, the power consumption test data includes performance data, power consumption value and disk temperature, wherein each power consumption test data corresponds to a sub-process, and all sub-processes are synchronously parallel.

[0129] like Fig.10 As shown, step S743: through the second power supply circuit, multiple sub-processes are started to collect data on the current disk under test to obtain power consumption test data of the current disk under test, including:

[0130] Step S7431: Start the subprocess corresponding to the performance data and obtain the performance data once at a fixed interval;

[0131] Specifically, the entire power consumption test control process is a main parent process, which includes multiple child processes. The child process corresponding to the performance data is started, and the performance data is obtained once at a fixed interval, wherein the fixed time can be set according to actual needs. For example, the fixed time is set to 1s. The performance data includes but is not limited to bandwidth and IOPS (Input / Output Operations Per Second). IOPS is a measurement method for performance testing of computer storage devices (such as hard disks (HDDs), solid-state drives (SSDs), or storage area networks (SANs)), which can be regarded as the number of reads and writes per second.

[0132] Step S7432: Start the subprocess corresponding to the power consumption value, and obtain the power consumption value once at a fixed interval;

[0133] Specifically, a subprocess corresponding to the power consumption value is started, and the power consumption value is obtained once at a fixed interval, wherein the fixed time can be set according to actual needs, for example, the fixed time is set to 1s, and the power consumption value includes a maximum value, a minimum value, a mean value and an effective value. In the embodiment of the present application, there are two ways to measure the power consumption value: the first is to measure through an oscilloscope, the oscilloscope includes a voltage probe and a current probe, and the voltage probe and the current probe are connected to the second power supply circuit to measure the voltage value and the current value, and then the power consumption value is calculated by the power consumption value calculation formula: W=UIt, wherein W is the power consumption value, U is the voltage value, I is the current value, and t is the fixed time. The second is to directly connect the second power supply circuit through a power meter to measure the power, and then calculate the power consumption value according to the power consumption value calculation formula: W=Pt, wherein W is the power consumption value, P is the power, and t is the fixed time. It should be noted that since there is a diode voltage drop between the sampling front end and the place where the SSD is finally powered, the voltage drop value needs to be obtained by measuring in advance, so after obtaining the voltage value, the diode voltage drop value needs to be subtracted before calculating the power consumption value.

[0134] Step S7433: Start the subprocess corresponding to the temperature of the disk, and obtain the temperature of the disk once at a fixed interval;

[0135] Specifically, a subprocess corresponding to the temperature of the disk is started, and the temperature of the disk under test is obtained once at a fixed interval, wherein the fixed time can be set according to actual needs, for example, the fixed time is set to 1s. The higher the temperature of the disk under test, the higher the power consumption of the disk under test.

[0136] Please refer to Fig.11 , Fig.11It is a schematic diagram of a flow chart of determining whether all the tested disks have been traversed, provided in an embodiment of the present application;

[0137] like Fig.11 As shown, the process of judging whether all the tested disks have been traversed includes:

[0138] Step S1101: obtaining power consumption test data of the disk being tested;

[0139] Specifically, the power consumption test data of the disk being tested is obtained according to the method in the above step S704.

[0140] Step S1102: determining whether all the disks to be tested have been traversed;

[0141] Specifically, after obtaining the power consumption test data of the current disk under test, it is determined whether all the disks under test have been traversed. If not, the process proceeds to step S1103; if all the disks under test have been traversed, the process proceeds to step S1104.

[0142] Step S1103: collecting data for the next disk to be tested;

[0143] Specifically, if all the disks under test have not been traversed, a switching command sent by the control end host is received, and the current IO mode is continued. According to the switching command, the current disk under test is switched to the next disk under test, that is, the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next disk under test is switched from the first power supply circuit to the second power supply circuit, until all the disks under test are traversed.

[0144] Step S1104: determine whether the IO mode list has been traversed;

[0145] Specifically, if all the disks under test have been traversed, it is determined whether the IO mode list has been traversed. If the IO mode list has been traversed, it means that the collection of power consumption measurement data has been completed, and the process goes to step S1105; if the IO mode list has not been traversed, the process goes to step S1106.

[0146] Step S1105: Generate a power consumption test report according to the power consumption test data;

[0147] Specifically, the power consumption test data includes performance data, power consumption value and disk temperature. The power consumption test data obtained above is used as the horizontal axis coordinate of the time variable to perform correlation analysis on multiple power consumption test data, generate corresponding curves, and analyze the curves to generate a power consumption test report.

[0148] Step S1106: obtaining the next IO mode, and collecting power consumption test data according to the next IO mode;

[0149] Specifically, according to the IO mode list, the next IO mode is obtained, and the power consumption test data is collected according to the next IO mode until all the disks under test are traversed. It should be noted that before switching to the next IO mode, the power supply circuits of all the disks under test need to be switched to the first power supply circuit.

[0150] Step S705: Switch the current disk under test to the next disk under test to obtain the power consumption test data of the next disk under test, until all the disks under test are traversed;

[0151] Specifically, a switching command sent by a control end host is received, and the current IO mode is continued, and according to the switching command, the current disk under test is switched to the next disk under test. The specific switching process is: turn on the first switch corresponding to the current disk under test, wait for a preset time, turn on the second switch corresponding to the next disk under test, wait for a preset time, and turn off the first switch corresponding to the next disk under test, so that the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next disk under test is switched from the first power supply circuit to the second power supply circuit.

[0152] Step S706: Generate a power consumption test report according to the power consumption test data;

[0153] Specifically, the power consumption test data includes performance data, power consumption value and disk temperature. The power consumption test data obtained above is used as the horizontal axis coordinate of the time variable to perform correlation analysis on multiple power consumption test data, generate corresponding curves, and analyze the curves to generate a power consumption test report.

[0154] Please refer to Fig.12 , Fig.12 It is a schematic diagram of the overall process of a power consumption test method provided in an embodiment of the present application;

[0155] like Fig.12 As shown in the figure, the overall process of the power consumption test method includes:

[0156] Step S1201: Building a test environment;

[0157] Specifically, according to the above Figure 2 The solution connects the test-end host, solid-state drive, power switching module, data acquisition module, and control-end host to build a test environment.

[0158] Step S1202: Power on the test environment and start the test software;

[0159] Specifically, the test environment constructed above is powered on, and the test software installed on the control end host is started, wherein the test software is developed by python or other programming languages, and the test software is used to analyze the power consumption test data.

[0160] Step S1203: configuring the sampling rate and sampling time of the oscilloscope;

[0161] Specifically, the sampling rate of an oscilloscope refers to the number of times the oscilloscope collects information per second. The higher the sampling rate of the oscilloscope, the more accurate the signal information collected, and the closer the signal waveform will be to the waveform of the original signal; the sampling time of the oscilloscope refers to the time required for each sampling point when the oscilloscope is collecting data. There are two ways to configure the oscilloscope sampling time: (1) Manual setting: Manually setting the sampling time of the oscilloscope requires opening the oscilloscope menu to set it. Generally, there will be time base options in the oscilloscope menu, including seconds / record length selection, time ratio selection, time frame selection and other options. Users can set the corresponding parameters according to actual needs to obtain a sampling time that meets the usage requirements. (2) Automatic setting: Modern oscilloscopes are generally equipped with an automatic adjustment function. After starting the acquisition, the sampling time and sampling rate will be automatically adjusted to achieve the best display effect and data accuracy.

[0162] Step S1204: Determine that all SSD devices under test are in place;

[0163] Specifically, it is determined that all the SSD devices under test have been connected to their corresponding first power supply circuits and second power supply circuits, and the first power supply circuits are in an on state, and the second power supply circuits are in a disconnected state.

[0164] Step S1205: Obtain a list of IO modes that need to be tested;

[0165] Specifically, obtain the IO mode list that needs to be tested. The IO mode list is set according to actual needs, wherein the IO mode list includes multiple IO modes, each IO mode corresponds to a preset IO service, and the IO modes include but are not limited to 128K sequential write, 128K sequential read, 4K random write, 4K random read, and 4K mixed read and write.

[0166] Step S1206: Obtain the current IO mode according to the IO mode list;

[0167] Specifically, traverse the IO mode list, obtain the current IO mode, and set the power consumption level of the current IO mode according to the current IO mode, where the power consumption level is a command of the SSD nvme protocol, which is implemented by sending commands to the host. Disks with different power consumption levels have different power consumption levels. For example, the power consumption levels 0-9 represent 10 levels, and each number corresponds to a power consumption level. The smaller the number, the higher the power consumption level, and the higher the power consumption and performance. Assuming that the current IO mode is IO pattern1, the power consumption level corresponding to IOpattern1 can be set to 2 according to actual conditions.

[0168] Step S1207: Execute the preset IO service corresponding to the current IO mode on all the disks under test;

[0169] Specifically, since each IO mode corresponds to a preset IO service, after the current IO mode is determined, the preset IO service corresponding to the current IO mode is executed on all the disks under test according to the current IO mode.

[0170] Step S1208: determining the disk under test, and switching the power supply circuit of the disk under test to the second power supply circuit;

[0171] Specifically, determine the current disk under test, and according to the switching command sent by the control end host, switch the power supply circuit of the current disk under test from the first power supply circuit to the second power supply circuit through the power supply switching module in the power consumption test system, wherein the first power supply circuit refers to the power supply circuit provided by the test end host, and the first power supply circuit does not have the function of collecting power consumption test data of the disk under test; the second power supply circuit includes an independent power supply module and a data acquisition module, the second power supply circuit is provided by the independent power supply module, and the data acquisition module can collect the power consumption test data of the disk under test.

[0172] Step S1209: determining whether the current power consumption acquisition device is an oscilloscope;

[0173] Specifically, the power consumption test system of the solid-state hard disk includes a power consumption acquisition device. After all the tested disks execute the preset IO business corresponding to the current IO mode, it is determined whether the power consumption acquisition device is an oscilloscope. If the power consumption acquisition device is not an oscilloscope, step S1211 is entered; if the power consumption acquisition device is an oscilloscope, step S1210 is entered.

[0174] Step S1210: dynamically adjusting the voltage and current range of the oscilloscope;

[0175] Specifically, dynamically adjusting the voltage and current range of the oscilloscope refers to first presetting a relatively large first range, where the first range exceeds the maximum value of the power consumption test data, and then fine-tuning the scale to reach the second range, while making the maximum value of the power consumption test data within the preset range of the voltage and current range. The second range can be set according to actual conditions. Preferably, the maximum value of the power consumption test data is within 2 / 3 of the second range. The purpose of dynamically adjusting the voltage and current range of the oscilloscope is to improve the test precision, thereby improving the accuracy of the test.

[0176] Step S1211: simultaneously starting multiple subprocesses to collect data from the currently tested disk;

[0177] Specifically, the entire power consumption test control process is a main parent process, which includes multiple child processes. For example, when the power consumption test data is performance data, power consumption value and disk temperature, each power consumption test data corresponds to a child process, and three child processes corresponding to the performance data, power consumption value and disk temperature are started at the same time to collect data for the current disk under test.

[0178] Step S1212: Complete data collection of the currently tested disk and save the current data;

[0179] Specifically, the data acquisition module completes data acquisition of the currently tested disk to obtain current power consumption test data, and sends the power consumption test data to the control end host, which saves the current power consumption test data.

[0180] Step S1213: determining whether all the disks to be tested have been traversed;

[0181] Specifically, after obtaining the power consumption test data of the current disk under test, it is determined whether all the disks under test have been traversed. If not, the process proceeds to step S1214; if all the disks under test have been traversed, the process proceeds to step S1215.

[0182] Step S1214: switching the power supply circuit of the next disk to be tested to the second power supply circuit;

[0183] Specifically, if all the disks under test have not been traversed, a switching command sent by the control end host is received, and the current IO mode is continued. According to the switching command, the current disk under test is switched to the next disk under test, that is, the power supply circuit of the current disk under test is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next disk under test is switched from the first power supply circuit to the second power supply circuit, until all the disks under test are traversed.

[0184] Step S1215: Determine whether all IO modes have been traversed;

[0185] Specifically, if all the disks under test have been traversed, it is determined whether the IO mode list has been traversed. If the IO mode list has been traversed, it means that the collection of all power consumption measurement data has been completed, and the process goes to step S1217; if the IO mode list has not been traversed, the process goes to step S1216.

[0186] Step S1216: collecting power consumption test data according to the next IO mode;

[0187] Specifically, according to the IO mode list, the next IO mode is obtained, and the power consumption test data is collected according to the next IO mode until all the disks under test are traversed. It should be noted that before switching to the next IO mode, the power supply circuits of all the disks under test need to be switched to the first power supply circuit.

[0188] Step S1217: Complete the collection of all power consumption test data;

[0189] Specifically, if the IO mode list has been traversed, it means that the collection of all power consumption measurement data has been completed.

[0190] Step S1218: Perform comprehensive drawing analysis on the power consumption test parameters;

[0191] Specifically, the data analysis module in the control-end host performs a comprehensive drawing analysis on the power consumption test parameters according to the power consumption test data, and generates a curve corresponding to the power consumption test data.

[0192] Step S1219: Generate a power consumption test report and complete the test;

[0193] Specifically, the generated curve is analyzed by the test software to generate a power consumption test report and complete the test.

[0194] In an embodiment of the present application, a power consumption test method for a solid-state hard disk is provided, which is applied to a power consumption test system for a solid-state hard disk. The solid-state hard disk includes multiple disks. The power consumption test method for the solid-state hard disk includes: obtaining an IO mode list to be tested, wherein the IO mode list includes multiple IO modes, and each IO mode corresponds to a preset IO service; obtaining the current IO mode according to the IO mode list; executing the preset IO service corresponding to the current IO mode on all the disks under test according to the current IO mode; determining the current disk under test, and collecting data on the current disk under test during the process of the current disk under test executing the preset IO service corresponding to the current IO mode, so as to obtain power consumption test data of the current disk under test; switching the current disk under test to the next disk under test to obtain power consumption test data of the next disk under test, until all the disks under test are traversed; generating a power consumption test report according to the power consumption test data. The present application can improve the test efficiency of the power consumption test of the solid-state hard disk by realizing automatic switching of multiple disks under test when multiple disks are subjected to power consumption testing.

[0195] The embodiment of the present application also provides a non-volatile computer-readable storage medium, such as a memory including a program code, and the program code can be executed by a processor to complete the power consumption test method of the solid-state hard disk in the above embodiment. For example, the non-volatile computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CDROM), a magnetic tape, a floppy disk, and an optical data storage device.

[0196] The embodiment of the present application also provides a computer program product, which includes one or more program codes, and the program codes are stored in a non-volatile computer-readable storage medium. The processor of the flash memory device reads the program code from the non-volatile computer-readable storage medium, and the processor executes the program code to complete the method steps of the power consumption test method of the solid-state hard disk provided in the above embodiment.

[0197] A person skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be accomplished by hardware or by hardware associated with a program code, and the program may be stored in a non-volatile computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0198] Through the description of the above implementation methods, a person of ordinary skill in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, can also be implemented by hardware. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0199] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as mentioned above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A power consumption test system for a solid state drive, characterized in that: The system is communicatively connected to the test end host and the solid state hard disk, the solid state hard disk includes a plurality of disks, each of the disks corresponds to a first power supply circuit, and the plurality of disks share a second power supply circuit, and the system includes: A power switching module, connected to the test end host and the disks of the plurality of solid state hard disks, respectively, the power switching module is used to receive a switching command sent by the control end host, and according to the switching command, switch the power supply circuit of the current disk under test from the second power supply circuit to the first power supply circuit, and switch the power supply circuit of the next disk under test from the first power supply circuit to the second power supply circuit, so as to switch the current disk under test to the next disk under test; A data acquisition module, the data acquisition module is connected to the plurality of disks through the second power supply circuit, and the data acquisition module is used to collect power consumption test data of the disks; A control-end host, wherein the control-end host is respectively connected to the power switching module and the data acquisition module, and the control-end host is used to send the switching instruction to the power switching module. The control-end host includes a data analysis module, and the data analysis module is used to generate a power consumption test report according to the power consumption test data.

2. The system according to claim 1, characterized in that The power switching module includes a switch tool board, which is respectively connected to each disk of the solid-state hard disk. The switch tool board is used to combine the first power supply circuit and the second power supply circuit. When the disk is the disk under test, the power supply circuit of the disk under test is switched from the first power supply circuit to the second power supply circuit to power the disk under test through the second power supply circuit; or, when the disk is not the disk under test, the power supply circuit of the disk under test is switched from the second power supply circuit to the first power supply circuit to power the disk through the first power supply circuit.

3. The system according to claim 2, characterized in that The switch tool board includes multiple switches, including a first switch and a second switch, the first switch corresponds to a first power supply circuit, and the second switch corresponds to a second power supply circuit. The switch tool board is specifically used to control the first switch to be closed and the second switch to be opened when the disk is the disk to be tested, so that the first power supply circuit is disconnected and the second power supply circuit is connected, or when the disk is not the disk to be tested, control the first switch to be opened and the second switch to be closed, so that the first power supply circuit is connected and the second power supply circuit is disconnected.

4. The system according to claim 3, characterized in that The switch tool board also includes a switch switching controller, which is respectively connected to the control end host and the multiple switches. The switch switching controller is used to receive a switching command sent by the control end host, and turn on or off the switch according to the switching command to switch the first power supply circuit and the second power supply circuit of the multiple disks.

5. The system according to claim 3, characterized in that The test end host provides power for a first power supply circuit, the first power supply circuit includes at least one power input terminal, an output terminal and a first combiner diode, wherein each of the disks corresponds to one of the power input terminals and output terminals, the test end host is connected to the first power supply circuit via the power input terminal, and each of the disks is connected to the first power supply circuit via the power output terminal; The second power supply circuit includes a main circuit and at least two branches, the main circuit includes an independent power supply module and the data acquisition module, the branches include the second switch, a second combining diode and the output end, wherein the first power supply circuit and the second power supply circuit corresponding to each disk share an output end by combining.

6. A method for testing power consumption of a solid state drive, characterized in that: A power consumption test system for a solid state hard disk as claimed in any one of claims 1 to 5, wherein the solid state hard disk comprises a plurality of disks, and the method comprises: Obtain an IO mode list to be tested, wherein the IO mode list includes multiple IO modes, and each IO mode corresponds to a preset IO service; According to the IO mode list, obtain the current IO mode; According to the current IO mode, executing preset IO services corresponding to the current IO mode on all the disks under test; Determine a current disk under test, and collect data on the current disk under test during the process of the current disk under test executing a preset IO service corresponding to the current IO mode, so as to obtain power consumption test data of the current disk under test; Switching the current disk under test to the next disk under test to obtain power consumption test data of the next disk under test until all the disks under test are traversed; A power consumption test report is generated according to the power consumption test data.

7. The method according to claim 6, characterized in that The step of collecting data on the current disk under test to obtain power consumption test data of the current disk under test during the process of the current disk under test executing the preset IO service corresponding to the current IO mode includes: In the process of the currently tested disk executing the preset IO service corresponding to the current IO mode, obtaining a switching command of the control end host; According to the switching command, the power supply circuit of the disk currently under test is switched from the first power supply circuit to the second power supply circuit; Through the second power supply circuit, multiple sub-processes are started to collect data on the currently tested disk to obtain power consumption test data of the currently tested disk.

8. The method according to claim 7, characterized in that The power consumption test data includes performance data, power consumption value and temperature of the disk, each power consumption test data corresponds to a sub-process, and starting multiple sub-processes to collect data from the disk under test to obtain the power consumption test data includes: Start a subprocess corresponding to the performance data, and obtain the performance data once at a fixed interval; Start a subprocess corresponding to the power consumption value, and obtain the power consumption value once at a fixed interval, wherein the power consumption value includes a maximum value, a minimum value, an average value, and an effective value; A subprocess corresponding to the temperature of the disk is started, and the temperature of the disk is obtained once at a fixed interval.

9. The method according to claim 6, characterized in that The method further comprises: After obtaining the power consumption test data of the currently tested disk, determining whether all the tested disks have been traversed; If all the disks under test have been traversed, then determining whether the IO mode list has been traversed; If the IO mode list has been traversed, a power consumption test report is generated according to the power consumption test data.

10. The method according to claim 6, characterized in that The step of switching the current disk under test to the next disk under test to obtain power consumption test data of the next disk under test includes: After the currently tested disk completes data collection, obtaining a switching instruction sent by the control end host; According to the switching instruction, the power supply circuit of the currently tested disk is switched from the second power supply circuit to the first power supply circuit, and the power supply circuit of the next tested disk is switched from the first power supply circuit to the second power supply circuit; Data collection is performed on the next disk to be tested through the second power supply circuit to obtain power consumption test data of the next disk to be tested.