CN114333977A - Method and device for testing solid state disk, computer storage medium and terminal - Google Patents

Method and device for testing solid state disk, computer storage medium and terminal Download PDF

Info

Publication number
CN114333977A
CN114333977A CN202210005939.1A CN202210005939A CN114333977A CN 114333977 A CN114333977 A CN 114333977A CN 202210005939 A CN202210005939 A CN 202210005939A CN 114333977 A CN114333977 A CN 114333977A
Authority
CN
China
Prior art keywords
test
ssd
tested
host
loaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210005939.1A
Other languages
Chinese (zh)
Inventor
胡亚君
蒋海涛
杨雪婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Datang Storage Technology Co ltd
Original Assignee
Hefei Datang Storage Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Datang Storage Technology Co ltd filed Critical Hefei Datang Storage Technology Co ltd
Priority to CN202210005939.1A priority Critical patent/CN114333977A/en
Publication of CN114333977A publication Critical patent/CN114333977A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The document discloses a method, a device, a computer storage medium and a terminal for testing a solid state disk, comprising: respectively generating a test script for carrying out abnormal complete machine power failure on each Solid State Disk (SSD) to be tested according to predetermined test parameters of each SSD to be tested; controlling a Power Distribution Unit (PDU) through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down; respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information; the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an Operating System (OS) class of the test host. According to the embodiment of the invention, the SSD to be tested is connected through the PDU, and the test script generated through the test parameters of the SSD to be tested realizes the abnormal complete machine power failure of a plurality of different SSDs, so that the test efficiency of the abnormal complete machine power failure of the SSD is improved.

Description

Method and device for testing solid state disk, computer storage medium and terminal
Technical Field
The present disclosure relates to, but not limited to, data storage technologies, and in particular, to a method and an apparatus for testing a solid state disk, a computer storage medium, and a terminal.
Background
The Solid State Disk (SSD) consists of a control unit and a storage unit (FLASH chip and DRAM chip); data is stored in a storage unit in a charge mode, and the read-write process is processed within enough time when the SSD is safely powered down, but abnormal power down of the whole SSD occurs in the actual use process. The performance test of the SSD comprises the performance test after the abnormal complete machine is powered off.
In the related technology, when the performance test of the abnormal complete machine power failure of the SSD is carried out, a data disk loaded on a test host is tested each time, and the current data disk for carrying out the abnormal complete machine power failure of the SSD only comprises the data disk installed under a Windows system.
Along with the increase of SSD application scenes, the SSD is applied to different test platforms, the performance test range of the SSD also needs to be increased, the test efficiency of the conventional abnormal complete machine power failure cannot meet the test requirement of the SSD, and the technical problem to be solved is how to improve the test efficiency of the abnormal complete machine power failure of the SSD.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method and a device for testing a solid state disk, a computer storage medium and a terminal, which can improve the efficiency of testing abnormal power failure of a whole SSD.
The embodiment of the invention provides a method for testing a solid state disk, which comprises the following steps: connect more than one test host computer through power distribution unit PDU, load more than one solid state disk SSD that awaits measuring in the test host computer, still include:
respectively generating a test script for carrying out abnormal complete machine power failure on each SSD to be tested according to predetermined test parameters of each SSD to be tested;
controlling a power distribution unit PDU through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down;
respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information;
the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an operating system OS class of the testing host.
On the other hand, the embodiment of the present invention further provides a computer storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for testing a solid state disk is implemented.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having a computer program stored therein; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of testing a solid state disk as described above.
In another aspect, an embodiment of the present invention further provides a device for testing a solid state disk, including: a script generating unit, a control unit and a result generating unit; wherein the content of the first and second substances,
the script generation unit is arranged to: respectively generating a test script for carrying out abnormal complete machine power failure on each SSD to be tested according to predetermined test parameters of each SSD to be tested;
the control unit is configured to: controlling a power distribution unit PDU through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down;
the test result generation unit is set as: respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information;
the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an operating system OS class of the testing host.
The technical scheme of the application includes: respectively generating a test script for carrying out abnormal complete machine power failure on each Solid State Disk (SSD) to be tested according to predetermined test parameters of each SSD to be tested; controlling a Power Distribution Unit (PDU) through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down; respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information; the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an Operating System (OS) class of the test host. The embodiment of the invention connects more than one SSD to be tested through the PDU, and realizes the power failure of abnormal complete machines of a plurality of different SSDs through the test script generated according to the test parameters of different SSDs to be tested, thereby improving the test efficiency of the power failure of the abnormal complete machines of the SSDs.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart illustrating a method for testing a solid state drive according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a connection between a PDU and a test host according to an embodiment of the present invention;
FIG. 3 is a block diagram of an apparatus for testing a solid state disk according to an embodiment of the present invention;
fig. 4 is a flowchart of a method of an application example of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for testing a solid state disk according to an embodiment of the present invention, as shown in fig. 1, including:
step 101, respectively generating a test script for performing abnormal power failure on each Solid State Disk (SSD) to be tested according to predetermined test parameters of each SSD to be tested;
the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an Operating System (OS) class of the test host.
FIG. 2 is a schematic diagram of a PDU and a test host according to an embodiment of the present invention, where, as shown in FIG. 2, the PDU is connected to more than one test host, and more than one SSD to be tested is loaded in the test host; wherein the SSD comprises a system disk and/or a data disk;
in an exemplary embodiment, the SSD is a test script of the system disk, and may be generated after being adjusted by referring to the test script of the data disk. In an illustrative example, embodiments of the invention may implement compiled generation of test scripts based on a computer assembly language, including python.
Step 102, controlling a Power Distribution Unit (PDU) through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down;
it should be noted that the instruction for controlling the PDU may be designed and implemented according to the working principle of the PDU and with reference to the related technology, which is not described herein again.
103, respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information;
in an exemplary embodiment, the test result information in the embodiment of the present invention includes: and the data of the SSD is read and written.
The embodiment of the invention connects more than one SSD to be tested through the PDU, and realizes the power failure of abnormal complete machines of a plurality of different SSDs through the test script generated according to the test parameters of different SSDs to be tested, thereby improving the test efficiency of the power failure of the abnormal complete machines of the SSDs.
In an exemplary embodiment, the SSD test processing may be executed after a preset controller, a preset processor, or a preset single chip microcomputer is connected to the PDU.
In an illustrative example, the OS category in the embodiment of the present invention includes one or any combination of the following: windows, linux, Mac OS, etc.
In an exemplary example, the test script of the test host except for the OS of Windows may be generated after being adjusted with reference to the test script of Windows in the related art; the embodiment of the invention realizes the performance test of the SSD with the abnormal complete machine power failure of the SSD of other system platforms except Windows, and provides a basis for expanding the application range of the SSD and improving the stability of the SSD.
In an exemplary embodiment, the test parameters of the embodiments of the present invention further include one or any combination of the following:
the internet protocol address (IP), power-off interval, startup time, and power-off times of the host are tested.
It should be noted that, when the test parameters in the embodiment of the present invention include a power-off interval, a start-up time, and a power-off frequency, a person skilled in the art may analyze and determine the test parameters according to the test requirement of the abnormal power failure of the whole device.
In an exemplary embodiment, before controlling the PDU through the generated test script, the method in the embodiment of the present invention further includes:
determining a test tool to be loaded by the test host when the abnormal complete machine power failure is carried out on each SSD to be tested according to the test parameters of each SSD to be tested;
and when the test host does not load the test tool which needs to be loaded when the abnormal complete machine is powered off, loading the determined test tool which needs to be loaded.
In an exemplary embodiment, after a test environment is checked through a related technology, a test tool which needs to be loaded by a test host when abnormal complete machine power failure occurs is determined;
in an exemplary embodiment, according to different test scenarios and parameters, the embodiment of the present invention loads different test bases for different SSD tests respectively; in an exemplary embodiment, when the test host is a platform of a Windows system, the test tool to be loaded includes one or any combination of the following: sdstress, H2test, and Burning; when the test host is a platform of the linux and Mac OS system, the test tools needing to be loaded comprise fio; the relevant parameters of the loaded test tool can be analytically determined by those skilled in the art; the test tools are well known to those skilled in the art and will not be described herein.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and the method for testing the solid state disk is realized when the computer program is executed by the processor.
An embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having stored therein a computer program; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by a processor, implements a method of testing a solid state disk as described above.
Fig. 3 is a block diagram of a device for testing a solid state disk according to an embodiment of the present invention, as shown in fig. 3, including: a script generating unit, a control unit and a result generating unit; wherein the content of the first and second substances,
the script generation unit is arranged to: respectively generating a test script for carrying out abnormal complete machine power failure on each SSD to be tested according to predetermined test parameters of each SSD to be tested;
the control unit is configured to: controlling a power distribution unit PDU through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down;
the test result generation unit is set as: respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information;
the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an operating system OS class of the testing host.
In an exemplary embodiment, when the test parameters include a kind of SSD to be tested, the kind of SSD to be tested includes: a system disk and/or a data disk.
In an exemplary embodiment, the test parameters of the embodiments of the present invention further include one or any combination of the following:
and the Internet protocol address IP, the power-off interval, the starting time and the power-off times of the test host.
In an exemplary embodiment, the apparatus of the embodiment of the present invention further includes a loading unit, configured to:
determining a test tool to be loaded by the test host when the abnormal complete machine power failure is carried out on each SSD to be tested according to the test parameters of each SSD to be tested;
and when the test host does not load the test tool which needs to be loaded when the abnormal complete machine is powered off, loading the determined test tool which needs to be loaded.
The following is a brief description of the embodiments of the present invention by way of application examples, which are only used to illustrate the embodiments of the present invention and are not used to limit the scope of the present invention.
Application example
Fig. 4 is a flowchart of an exemplary method of the present invention, as shown in fig. 4, including:
step 401, after connecting more than one test host through a Power Distribution Unit (PDU), reading configuration information of an SSD to be tested, which is loaded by the test host;
it should be noted that, in the embodiment of the present invention, enough interfaces connected to the test host may be reserved according to the test requirements, and more SSDs may be tested through the reserved interfaces;
step 402, determining the type of the SSD to be tested according to the read configuration information; when the SSD to be tested is a system disk, executing a step 4030; when the SSD to be tested is a data disk, perform step 4040;
4030, determining whether the system of the test host is Windows; when the system of the test host is Windows, execute step 4031; when the system of the test host is not Windows, execute step 4040; when the system of the test host is Windows, execute step 4040;
step 4031, Sdstress is loaded on a test host and started; it should be noted that, the application example of the present invention may check whether Sdstress is installed on the test host with reference to the related technology, and may perform Sdstress installation with reference to the related technology when Sdstress is not installed;
step 4040, loading and starting the fio on the test host; it should be noted that, the application example of the present invention may refer to the related technology to check whether the fio is installed on the test host, and when the fio is not installed, the fio may be installed by referring to the related technology;
after step 4031 or step 4040 is executed in the embodiment of the present invention, step 4050 is executed;
4050, the PDU performs power-off control on a test host according to the running test script at preset power-off intervals and power-off times;
step 4051, generating corresponding test result information of each SSD to be tested according to the test log information when the test script is run.
The application example of the invention realizes the performance test of a plurality of SSD disks, the corresponding test times, test time, test host computers and the like of different SSDs can be set according to requirements in the test process, and the data read-write condition of abnormal complete machine power failure of the SSD in different use processes can be obtained through the test result.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.

Claims (10)

1. A method for testing a solid state disk comprises the following steps:
respectively generating a test script for carrying out abnormal complete machine power failure on each SSD to be tested according to predetermined test parameters of each SSD to be tested;
controlling a power distribution unit PDU through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down;
respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information;
the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an operating system OS class of the testing host.
2. The method of claim 1, wherein when the test parameters include a type of SSD to be tested, the type of SSD to be tested includes: a system disk and/or a data disk.
3. The method of claim 1, wherein the test parameters further comprise one or any combination of:
and the Internet protocol address IP, the power-off interval, the starting time and the power-off times of the test host.
4. A method according to any of claims 1 to 3, wherein before controlling the PDU by the generated test script, the method further comprises:
determining a test tool to be loaded by the test host when the abnormal complete machine power failure is carried out on each SSD to be tested according to the test parameters of each SSD to be tested;
and when the test host does not load the test tool which needs to be loaded when the abnormal complete machine is powered off, loading the determined test tool which needs to be loaded.
5. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements a method of testing a solid state disk as claimed in any one of claims 1 to 4.
6. A terminal, comprising: a memory and a processor, the memory having a computer program stored therein; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method for testing a solid state disk as claimed in any one of claims 1 to 4.
7. An apparatus for testing a solid state disk, comprising: a script generating unit, a control unit and a result generating unit; wherein the content of the first and second substances,
the script generation unit is arranged to: respectively generating a test script for carrying out abnormal complete machine power failure on each SSD to be tested according to predetermined test parameters of each SSD to be tested;
the control unit is configured to: controlling a power distribution unit PDU through the generated test script to acquire test log information of the SSD to be tested when the abnormal whole machine is powered down;
the test result generation unit is set as: respectively generating test result information corresponding to each SSD to be tested according to the obtained test log information;
the PDU is connected with more than one test host, and the test host is loaded with more than one SSD to be tested; the test parameters include: a type of SSD to be tested and/or an operating system OS class of the testing host.
8. The apparatus of claim 7, wherein when the test parameters include a type of SSD to be tested, the type of SSD to be tested includes: a system disk and/or a data disk.
9. The apparatus of claim 7, wherein the test parameters further comprise one or any combination of:
and the Internet protocol address IP, the power-off interval, the starting time and the power-off times of the test host.
10. The apparatus according to any one of claims 7 to 9, further comprising a loading unit configured to:
determining a test tool to be loaded by the test host when the abnormal complete machine power failure is carried out on each SSD to be tested according to the test parameters of each SSD to be tested;
and when the test host does not load the test tool which needs to be loaded when the abnormal complete machine is powered off, loading the determined test tool which needs to be loaded.
CN202210005939.1A 2022-01-05 2022-01-05 Method and device for testing solid state disk, computer storage medium and terminal Pending CN114333977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210005939.1A CN114333977A (en) 2022-01-05 2022-01-05 Method and device for testing solid state disk, computer storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210005939.1A CN114333977A (en) 2022-01-05 2022-01-05 Method and device for testing solid state disk, computer storage medium and terminal

Publications (1)

Publication Number Publication Date
CN114333977A true CN114333977A (en) 2022-04-12

Family

ID=81024957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210005939.1A Pending CN114333977A (en) 2022-01-05 2022-01-05 Method and device for testing solid state disk, computer storage medium and terminal

Country Status (1)

Country Link
CN (1) CN114333977A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116705138A (en) * 2023-05-08 2023-09-05 深圳市晶存科技有限公司 Solid state disk testing method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116705138A (en) * 2023-05-08 2023-09-05 深圳市晶存科技有限公司 Solid state disk testing method and storage medium

Similar Documents

Publication Publication Date Title
CN111105840B (en) Method, device and system for testing abnormal power failure of solid state disk
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
CN104536875A (en) Automatic server restart testing method based on IPMI
CN107943643A (en) One kind is based on MOC boards hardware DC test methods and system
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN114333977A (en) Method and device for testing solid state disk, computer storage medium and terminal
CN111158945B (en) Kernel fault processing method, device, network security equipment and readable storage medium
CN110990253A (en) Method and device for realizing application debugging, computer storage medium and terminal
CN110556155A (en) Method and device for testing diskless started SSD product and computer equipment
CN113485755B (en) Device driver verification method, device and storage medium
CN112214413B (en) Application program testing method, device, equipment and storage medium
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
CN116705129A (en) Testing method of solid state disk
CN116028290A (en) Solid state disk testing method, device, equipment and medium
CN115454856A (en) Multi-application security detection method, device, medium and electronic equipment
CN113035266B (en) Hard disk performance test method, device, computer equipment and storage medium
CN115206411A (en) Method and device for realizing steady state detection, computer storage medium and terminal
CN112052125A (en) Dump processing method and device for operating system kernel and electronic equipment
CN113204359A (en) Online server upgrading method and device
CN111475107A (en) Method and device for formatting hard disk and storage medium
CN112162759B (en) Loading method and system of radio frequency software board card, electronic equipment and storage medium
CN113127026A (en) Virtual machine component processing method and device
CN115841842B (en) Memory testing method, system and computer readable storage medium
CN113094221B (en) Fault injection method, device, computer equipment and readable storage medium
CN109375928B (en) Method and device for integrating and managing third-party driving software based on NSIS script

Legal Events

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