CN114265733A - Automatic testing method and device for abnormal power failure of solid state disk - Google Patents

Automatic testing method and device for abnormal power failure of solid state disk Download PDF

Info

Publication number
CN114265733A
CN114265733A CN202111613266.XA CN202111613266A CN114265733A CN 114265733 A CN114265733 A CN 114265733A CN 202111613266 A CN202111613266 A CN 202111613266A CN 114265733 A CN114265733 A CN 114265733A
Authority
CN
China
Prior art keywords
solid state
power failure
state disk
test
abnormal power
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
CN202111613266.XA
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.)
Exascend Technology Wuhan Co ltd
Original Assignee
Exascend Technology Wuhan 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 Exascend Technology Wuhan Co ltd filed Critical Exascend Technology Wuhan Co ltd
Priority to CN202111613266.XA priority Critical patent/CN114265733A/en
Publication of CN114265733A publication Critical patent/CN114265733A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

The invention discloses an automatic testing method and device for abnormal power failure of a solid state disk, wherein the method comprises the following steps: establishing an automatic testing device for controlling abnormal Power failure of the solid state disk by using IP Power; acquiring a use condition of a solid state disk as an installation system file; according to the use condition, the Control PC runs a preset abnormal power failure test program to Control the read-write operation of the solid state disk, and then powers on a power supply port specified in the preset abnormal power failure test program after powering off; acquiring test information and a test result; and evaluating the stability of the solid state disk product according to the obtained test information and test results. According to the invention, by establishing the automatic testing device for controlling the abnormal Power failure of the solid state disk by using the IP Power, different read-write operations and abnormal Power failure test verification operations on the solid state disk are executed according to the use working condition of the solid state disk as an installation system file, and the automatic performance test on the abnormal Power failure of the solid state disk is realized.

Description

Automatic testing method and device for abnormal power failure of solid state disk
Technical Field
The invention relates to the technical field of solid state disk performance testing, in particular to an automatic testing method and device for abnormal power failure of a solid state disk.
Background
At present, solid state disk products have been widely applied to various occasions, such as consumer-grade, industrial-grade, enterprise-grade and other application environments, due to the advantages of high speed, low power consumption and the like. The power failure test of the solid state disk is important for measuring the stability and reliability of the solid state disk product.
With the continuous improvement of the NAND process and the technical background that the capacity of single particles is gradually increased, many processes about abnormal power failure exist in the solid state disk product design and Firmware implementation processes to cover various possible power failure situations, and various corresponding related test technologies about abnormal power failure also come into play.
In the using process of a product, a user has two conditions of normal power failure and abnormal power failure due to system reasons, environmental factors, manual operation and the like.
Normal power-off condition: the normal power failure is that a user performs normal shutdown operation through an OS (operating system), and the operation can inform the solid state disk before the system is completely powered off, so that the solid state disk is provided with a certain time for performing background processing such as storage of cache data, logic and physical mapping tables, updating of internal metadata and the like, and the next time the whole system is powered on, the system can quickly respond to a command issued by a host and normally enter the OS and the like; for the normal power-off condition, the Test technology is convenient to realize, namely a shutdown command provided by an OS is used for shutting down the whole system, then a startup jumper on a Test PC or a Test Server mainboard is controlled, and a short-circuit signal is generated by using a relay and the like to achieve the startup purpose; therefore, the shutdown and the startup can be realized by sending commands, and the stability and the reliability of the normal power failure of the solid state disk product under the whole system can be evaluated by circularly testing the solid state disk product for multiple times (such as 1000 times);
abnormal power failure condition: the abnormal power failure is a situation where the user does not perform a normal shutdown operation through the OS, including but not limited to the following situations:
the power supply of the Test PC or the Test Server is unstable, so that the whole machine is powered off;
the used environment is subjected to factors such as power limitation, and the like, so that the used Test PC or the Test Server is wholly powered off;
under the condition that an operating system is halted, a user cannot perform forced restart and needs to adopt some power-off operations;
other situations;
once the abnormal power-off condition occurs, the system cannot provide a power-off notification for the solid state disk, so that some cache data, logic and physical mapping tables, internal metadata and the like existing in the system and the solid state disk cannot be completely updated, and the power-off condition may also occur in the programming process of the NAND, so that a physical page is damaged.
Therefore, the next time the whole system is powered on, the command issued by the corresponding host cannot be quickly and normally sent, and even data reading errors and data loss are caused, even the situation that the OS cannot be normally entered is caused. Therefore, at the beginning of design, the solid state disk product mainly considers the processing under the condition of abnormal power failure, and the firmware of the solid state disk product also has more complex logic for error processing and data recovery and reconstruction after power-on.
From the analysis of the actual situation of abnormal power failure, the Test PC or the Test Server can not supply power suddenly, the Test verification requires that the abnormal situation can be simulated and covered, and different Test cases are used for testing and evaluating the stability and the robustness of the solid state disk product under the abnormal power failure.
Particularly, under the condition of data reading and writing of the solid state disk, abnormal power failure is carried out, internal processing of firmware of the solid state disk is complex, various problems are easy to occur in the firmware, such as the condition that an OS cannot enter, data of the solid state disk is lost, and even the solid state disk cannot be identified by a system, the purpose of testing is to simulate the abnormal power failure condition to the greatest extent, and the reliable evaluation and verification structure and method are improved.
The prior testing technical scheme is as follows: the abnormal power failure test of the system is mainly simulated in the following two ways:
using a relay or the like: the control method is used for controlling the power-on and power-off jump pin on the Test PC or the Test Server mainboard, the control is used for simulating that a user forcibly presses a power-on and power-off key of the mainboard for more than 5 seconds, and the Test PC or the Test Server is powered off after 5 seconds. However, the abnormal power failure situation simulated in such a manner and plan is different, and the difference lies in that after the power-off key is forcibly pressed, a delay of more than 5 seconds is provided, and in this time, the OS has actually detected that the user presses the power-off key signal, and the OS may send a power failure notification to the solid state disk, so that the desired purpose cannot be completely achieved; the mode is only suitable for controlling the switching and shutdown jumper on the main board of the Test PC or the Test Server, and the mode cannot be used under the condition that the Test PC or the Test Server has no switching and shutdown jumper or is inconvenient to be connected independently;
and (3) manually removing a power supply mode: the tester manually removes (or shuts down) the power supply of the Test PC or the Test Server, for example, shuts down the power supply of the chassis (or cabinet) provided for the Test PC or the Test Server, so as to achieve the purpose of power-off of the whole machine. The testing technology better simulates the expected abnormal power failure condition, but the mode consumes a large amount of human resources, needs a large amount of manual monitoring and operation, and is inconvenient for batch deployment and statistical analysis of testing results.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
using a relay or the like: the method is different from the planned simulation abnormal power failure situation, and the difference lies in that after the power-off key is forcibly pressed, the time delay is more than 5 seconds, the OS actually detects the interrupt signal of the user pressing the power-off key in the time, the OS possibly sends a power failure notification to the solid state disk, and the expected purpose cannot be completely achieved; the mode is only suitable for controlling the switching and shutdown jumper on the main board of the Test PC or the Test Server, and the mode cannot be used under the condition that the Test PC or the Test Server has no switching and shutdown jumper or cannot be connected independently;
the method of manually removing the power supply is as follows: although the mode well simulates the expected abnormal power failure condition, a large amount of human resources are consumed, a large amount of manual monitoring and operation are needed, and a large amount of time is spent on manual operation;
in the process of manually detecting the test result, the possibility of misjudgment exists; meanwhile, due to inertia of manual detection, newly increased detection conditions or change of existing detection conditions are inconvenient;
the test flow does not lead in an automatic mode, so that the large-batch and long-time test deployment and the statistical analysis of test results are inconvenient;
the test and evaluation of the behavior of the solid state disk product under abnormal power failure involve more test scenes, and the existing test mode and the flow test are single, so that the subsequent change and expansion are not convenient.
Disclosure of Invention
The invention aims to overcome the defects of the background technology and provides an automatic testing method and device for abnormal power failure of a solid state disk.
The invention provides an automatic testing method for abnormal power failure of a solid state disk, which comprises the following steps:
the method comprises the steps of establishing a fixed hard disk abnormal Power failure automatic testing device for controlling abnormal Power failure of the solid state disk by using IP Power, wherein the fixed hard disk abnormal Power failure automatic testing device comprises a Test PC, an IP Power and a Control PC, a solid state disk product for abnormal Power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid state disk product; the Test PC is electrically connected to a Power port of the IP Power, the Control PC is electrically connected with the IP Power and the Test PC, a preset abnormal Power failure Test program for performing abnormal Power failure Test on the solid state disk is stored, the preset abnormal Power failure Test program is used for controlling the Power failure and Power up of the Power port of the IP Power and acquiring Test information and Test results of the solid state disk product after abnormal Power failure, and the Test PC, the IP Power and the Control PC are all connected to a Test local area network;
acquiring a use condition of a solid state disk as an installation system file;
according to the use condition of the solid state disk as an installation system file, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure, so as to obtain test information and a test result of the solid state disk after abnormal Power failure;
and evaluating the stability of the solid state disk product according to the obtained test information and test result of the abnormal power failure of the solid state disk.
According to the first aspect, in a first possible implementation manner of the first aspect, the step of "operating a preset abnormal Power failure test program to Control and execute read-write operation on a solid state disk, then controlling a Control interface of an IP Power, powering off and powering on a Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and a test result of the solid state disk after abnormal Power failure according to a use condition of the solid state disk as an installation system file" specifically includes the following steps:
when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power off to obtain test information and a test result of the solid state disk after abnormal Power failure.
According to a first possible implementation form of the first aspect, in a second possible implementation form of the first aspect,
when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure so as to obtain test information and a test result of the solid state disk after abnormal Power failure, the method specifically comprises the following steps:
when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control port of IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after Power off;
acquiring a first detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
acquiring a second detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
acquiring a third detection working condition of health information in the abnormal power failure test process of the solid state disk, and if the health information is healthy, entering a next detection acquisition link;
and acquiring the abnormal power failure test times and test time of the solid state disk, and acquiring the acquired first detection working condition, second detection working condition and third detection working condition if the preset test times and the preset test time are met.
According to the first aspect, in a third possible implementation manner of the first aspect, the step of "operating a preset abnormal Power failure test program to Control and execute read-write operation on a solid state disk, then controlling a Control interface of an IP Power, powering off and powering on a Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and a test result of the solid state disk after abnormal Power failure according to a use condition of the solid state disk as an installation system file" specifically includes the following steps:
when the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure, so as to obtain test information and a test result after the abnormal Power failure of the physical disk of the solid state disk;
and controlling to execute read-write operation on the solid state disk logic disk, then controlling a control interface of the IP Power, powering off and powering on a specified Power supply port in a preset abnormal Power failure test program, and acquiring test information and test results of the solid state disk logic disk after abnormal Power failure.
According to a third possible implementation form of the first aspect, in a fourth possible implementation form of the first aspect,
when the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure so as to obtain test information and a test result after the abnormal Power failure of the physical disk of the solid state disk, and the method specifically comprises the following steps:
when the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control port of an IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after Power off;
acquiring a first detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
acquiring a second detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
acquiring a third detection working condition of health information in the abnormal power failure test process of the solid state disk, and if the health information is healthy, entering a next detection acquisition link;
and acquiring the abnormal power failure test times and test time of the solid state disk, and acquiring the acquired first detection working condition, second detection working condition and third detection working condition if the preset test times and the preset test time are met.
According to a fourth possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the control unit is configured to perform read-write operation on the solid state disk logic disk, control the control interface of the IP Power, Power off and Power on a Power supply port specified in a preset abnormal Power failure test program, and obtain test information and a test result after the abnormal Power failure of the solid state disk logic disk "
When the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a solid state disk logic disk, then controls a Control port of IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after powering off;
acquiring a fourth detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
acquiring a fifth detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
acquiring a sixth detection working condition of health information in the abnormal power failure test process of the solid state disk, and if the health information is healthy, entering a next detection acquisition link;
and acquiring the abnormal power failure test times and test time of the solid state disk, and acquiring the acquired first detection working condition, second detection working condition and third detection working condition if the preset test times and the preset test time are met.
According to a fourth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the step of controlling to execute the read-write operation on the solid state disk logic disk specifically includes the following steps:
the method comprises the steps of performing formatting partitioning on a solid state disk logic disk by control execution, establishing an independent test folder on the solid state disk, storing abnormal power failure test data and test files of the solid state disk, and operating a preset abnormal power failure test program to start reading and writing the files in the test folder.
According to a fourth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect,
the method comprises the following steps that a control interface of the IP Power is controlled, and a Power supply port appointed in a preset abnormal Power failure test program is powered on after being powered off, and specifically comprises the following steps:
controlling a control interface of the IP Power, powering off a Power supply port appointed in a preset abnormal Power failure test program, and waiting for a first preset waiting time;
and controlling a control interface of the IP Power, electrifying a Power supply port appointed in a preset abnormal Power failure test program, and waiting for a second waiting time.
According to a fourth possible implementation manner of the first aspect, in an eighth possible implementation manner of the first aspect, the step of "acquiring a sixth detection condition of health information in an abnormal power failure test process of the solid state disk, if the sixth detection condition is healthy, entering a next detection acquisition step" specifically includes the following steps:
acquiring a first health working condition that the frequency of abnormal power failure of the solid state disk is changed into a preset expected frequency value, and when the frequency of abnormal power failure of the solid state disk is changed into the preset expected frequency value, judging that the first health working condition is healthy;
acquiring a first health condition that the data volume read and written by the solid state disk is increased linearly, and judging that a second health condition is healthy when the data volume read and written by the solid state disk is increased linearly;
acquiring a third healthy working condition of uncorrectable errors in the read-write process of the solid state disk, and judging that the third healthy working condition is healthy when the uncorrectable errors do not occur;
and when the first healthy working condition, the second healthy working condition and the third healthy working condition are healthy, judging that the healthy information in the abnormal power failure test process of the solid state disk is healthy, and entering a next detection and acquisition link.
In a second aspect, the invention provides an automatic testing device for abnormal Power failure of a fixed hard disk, which comprises a Test PC, an IP Power and a Control PC, wherein a solid state disk product for abnormal Power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid state disk product; the Test PC is electrically connected to a Power port of the IP Power, the Control PC is electrically connected with the IP Power and the Test PC and used for controlling the Power-off and Power-on of the Power port of the IP Power and acquiring Test information and Test results of the solid state disk product after abnormal Power failure, and the Test PC, the IP Power and the Control PC are all connected to a Test local area network.
Compared with the prior art, the invention has the following advantages:
according to the automatic testing method for abnormal Power failure of the solid state disk, the fixed hard disk abnormal Power failure automatic testing device for controlling abnormal Power failure of the solid state disk by using the IP Power is established, different read-write operations and abnormal Power failure testing verification operations on the solid state disk are executed according to the use condition of the solid state disk as an installation system file, so that testing information and testing results after abnormal Power failure of the solid state disk are obtained, automatic performance testing for abnormal Power failure of the solid state disk is realized, manual labor consumption caused by manual removal of a Power supply is avoided, mechanical operation of testing personnel is reduced, and judgment errors and other misoperation of the testing personnel are reduced.
Drawings
Fig. 1 is a flowchart of a method for automatically testing an abnormal power failure of a solid state disk according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for automatically testing an abnormal power failure of a solid state disk according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for automatically testing an abnormal power failure of a solid state disk according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an automatic testing apparatus for abnormal power failure of a solid state disk according to an embodiment of the present invention;
fig. 5 is another schematic structural diagram of an automatic testing apparatus for abnormal power failure of a solid state disk according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. While the invention will be described in conjunction with the specific embodiments, it will be understood that they are not intended to limit the invention to the embodiments described. On the contrary, it is intended to cover alternatives, modifications, and equivalents as may be included within the spirit and scope of the invention as defined by the appended claims. It should be noted that the method steps described herein may be implemented by any functional block or functional arrangement, and that any functional block or functional arrangement may be implemented as a physical entity or a logical entity, or a combination of both.
In order that those skilled in the art will better understand the present invention, the following detailed description of the invention is provided in conjunction with the accompanying drawings and the detailed description of the invention.
Note that: the example to be described next is only a specific example, and does not limit the embodiments of the present invention necessarily to the following specific steps, values, conditions, data, orders, and the like. Those skilled in the art can, upon reading this specification, utilize the concepts of the present invention to construct more embodiments than those specifically described herein.
Referring to fig. 1, an embodiment of the present invention provides an automatic testing method for abnormal power failure of a solid state disk, including the following steps:
s100, establishing a fixed hard disk abnormal Power failure automatic testing device for controlling abnormal Power failure of a solid state disk by using IP Power, wherein the fixed hard disk abnormal Power failure automatic testing device comprises a Test PC, an IP Power and a Control PC, a solid state disk product for abnormal Power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid state disk product; the Test PC is electrically connected to a Power port of the IP Power, the Control PC is electrically connected with the IP Power and the Test PC and is used for controlling the Power-off and Power-on of the Power port of the IP Power and acquiring Test information and Test results of the solid state disk product after abnormal Power-off, and the Test PC, the IP Power and the Control PC are all connected to a Test local area network;
the operating System Operation System is abbreviated as OS, and herein refers to Linux or Windows operating System.
The IP Power is a network control Power supply, is a hardware device and is provided with a Power supply port and a control port, the Power supply of the computer is connected with the Power supply port, and a user can remotely control a Power switch of the connection device through any computer in the internet or the local area network so as to achieve the functions of powering off and on the Test PC of the connection device.
The Test PC can also be realized as a Test Server, and the Server is a server.
The operating system to be tested is selectively installed, when the solid state disk is used as a system disk for installing system files, the operating system to be tested needs to be installed on the solid state disk, and when the solid state disk is used as a data disk for installing the system files, the operating system to be tested does not need to be installed on the solid state disk.
The installation system file is a system to be tested or a file to be tested.
The Solid State disk is called Solid State Drive in English, the Solid State disk is called Solid State disk in Chinese, and the data storage device composed of a plurality of NAND Flash arrays is NVMe SSD or SATA SSD.
S200, acquiring a use condition of the solid state disk as an installation system file;
s300, according to the use condition of the solid state disk as an installation system file, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of an IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after Power failure, so as to obtain test information and a test result of the solid state disk after abnormal Power failure;
s400, evaluating the stability of the solid state disk product according to the obtained test information and test result of the abnormal power failure of the solid state disk.
The invention provides an automatic testing method for abnormal Power failure of a solid state disk, which starts from the existing hardware platform, utilizes IP Power to control the whole system, constructs a fixed hard disk abnormal Power failure automatic testing device for controlling abnormal Power failure of the solid state disk by utilizing IP Power, and executes different read-write operations and abnormal Power failure test verification operations on the solid state disk according to the use working condition of the solid state disk as an installation system file, thereby obtaining test information and test results after abnormal Power failure of the solid state disk and realizing automatic performance testing of abnormal Power failure of the solid state disk;
the abnormal power failure test mode that the power supply is manually removed is avoided from consuming manpower, the mechanical operation of a tester is reduced, and the judgment error and other misoperation of the tester are reduced;
the connection mode of the abnormal power failure of the whole system test is provided, and the structure for realizing the automation of the system level power failure test is provided, so that a hardware foundation is established for constructing the automation test;
through the automatic testing device, multiple test cases can be simultaneously carried out according to the testing requirements, so that the coverage rate of testing is improved, the sampling rate of testing is improved, the probability of problems is reduced, and a standardized testing flow is established so as to expose the product problems in advance.
In an embodiment, in the SS100, in order to improve the Test coverage rate and the Test sampling rate and reduce the probability of the abnormal power failure Test verification problem of the solid state disk, a standardized Test flow is established so as to expose the product problem in advance, and a plurality of Test PCs for installing the solid state disk products for the abnormal power failure performance Test are provided, so that the abnormal power failure performance of the plurality of solid state disk products can be detected simultaneously.
Steps S200-S400 can be executed on a Control PC by writing a Control program, and perform command transmission, flow Control, status detection, result report, and the like via a network.
In an embodiment, referring to fig. 2, in step S300, the step of "operating a preset abnormal Power failure test program by a Control PC to Control and execute read-write operation on a solid state disk, and then controlling a Control interface of an IP Power according to a use condition of the solid state disk as an installation system file, powering off and then powering on a Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and a test result of the solid state disk after the abnormal Power failure" specifically includes the following steps:
s310, when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of IP Power, powers on a specified Power supply port in the preset abnormal Power failure test program after Power off, and obtains test information and test results of the solid state disk after abnormal Power failure.
In an embodiment, in step S310, when the solid state disk is used as a system disk for installing a system file, the Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, controls the Control interface of the IP Power, powers on a Power supply port specified in the preset abnormal Power failure test program after Power off, and obtains test information and a test result after the abnormal Power failure of the solid state disk, which specifically includes the following steps:
s311, when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control port of IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power off;
s312, acquiring a first detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
s313, acquiring a second detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
s314, acquiring a third detection working condition of the health information in the abnormal power failure test process of the solid state disk, and entering a next detection and acquisition link if the health condition is healthy;
s315, obtaining the abnormal power failure test times and test time of the solid state disk, and if the preset test times and the preset test time are met, obtaining the obtained first detection working condition, the second detection working condition and the third detection working condition.
In an embodiment, referring to fig. 3, in step S300, the step of "operating a preset abnormal Power failure test program by a Control PC to Control and execute read-write operation on a solid state disk, and then controlling a Control interface of an IP Power according to a use condition of the solid state disk as an installation system file, powering off and then powering on a Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and a test result of the solid state disk after the abnormal Power failure" further includes the following steps:
s321, when the solid state disk is used as a data disk for installing a system file, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control interface of an IP Power, powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure, and obtains test information and a test result after the abnormal Power failure of the physical disk of the solid state disk;
and S322, controlling and executing read-write operation on the solid state disk logic disk, controlling the control interface of the IP Power, powering off and powering on the Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and test results of the solid state disk logic disk after abnormal Power failure.
In an embodiment, in step S321, when the solid state disk is used as a data disk for installing a system file, the Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the physical disk of the solid state disk, controls the Control interface of the IP Power, powers on a Power supply port specified in the preset abnormal Power failure test program after Power off, and obtains test information and a test result after the abnormal Power failure of the physical disk of the solid state disk, which specifically includes the following steps:
s3211, when the solid state disk is used as a data disk for installing a system file, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control port of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power off;
s3212, a first detection working condition of the OS is obtained after the abnormal power failure of the solid state disk, and if yes, a next detection obtaining link is carried out;
s3213, acquiring a second detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
s3214, acquiring a third detection working condition of the health information in the abnormal power failure test process of the solid state disk, and entering a next detection and acquisition link if the health condition is healthy;
s3215, obtaining the abnormal power failure test times and test time of the solid state disk, and obtaining the first detection working condition, the second detection working condition and the third detection working condition if the preset test times and the preset test time are met.
In an embodiment, in step S322, the controlling and executing to perform read-write operation on the solid state disk logic disk, and then controlling the control interface of the IP Power, powering off and then powering on the Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and test results of the solid state disk logic disk after abnormal Power failure specifically includes the following steps:
s3221, when the solid state disk is used as a data disk for installing a system file, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a logic disk of the solid state disk, then controls a Control port of an IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after Power off;
s3222, obtaining a fourth detection working condition of the solid state disk after abnormal power failure, and if so, entering a next detection obtaining link;
s3223, acquiring a fifth detection working condition of the loss of the solid state disk file, and if the file is not lost, entering a next detection acquisition link;
s3224, acquiring a sixth detection working condition of the health information in the abnormal power failure test process of the solid state disk, and if the health condition is healthy, entering a next detection and acquisition link;
s3225, the number of times of abnormal power failure test and the test time of the solid state disk are obtained, and if the preset number of times of abnormal power failure test and the preset test time are met, the obtained first detection working condition, second detection working condition and third detection working condition are obtained.
In an embodiment, the step of "controlling execution of read-write operation on a solid state disk logic disk" includes the following steps:
the method comprises the steps of performing formatting partitioning on a solid state disk logic disk by control execution, establishing an independent test folder on the solid state disk, storing abnormal power failure test data and test files of the solid state disk, and operating a preset abnormal power failure test program to start reading and writing the files in the test folder.
In an embodiment, in step S322, the step of "controlling the control interface of the IP Power to Power off and then Power up the Power supply port specified in the preset abnormal Power down test program" specifically includes the following steps:
controlling a control interface of the IP Power, powering off a Power supply port appointed in a preset abnormal Power failure test program, and waiting for a first preset waiting time;
and controlling a control interface of the IP Power, electrifying a Power supply port appointed in a preset abnormal Power failure test program, and waiting for a second waiting time.
In an embodiment, in step S3224, the step of "acquiring a sixth detection condition of health information during the abnormal power failure test of the solid state disk, if the sixth detection condition is healthy, entering a next detection and acquisition step" specifically includes the following steps:
s32241, acquiring a first health condition that the frequency of abnormal power failure of the solid state disk is changed into a preset expected frequency value, and when the frequency is changed into the preset expected frequency value, judging that the first health condition is healthy;
s32242, acquiring a first health condition that the data volume read and written by the solid state disk is increased linearly, and when the data volume read and written by the solid state disk is increased linearly, judging that a second health condition is healthy;
s32243, acquiring a third health working condition of uncorrectable errors in the reading and writing process of the solid state disk, and judging that the third health working condition is healthy when the uncorrectable errors do not occur;
and when the first healthy working condition, the second healthy working condition and the third healthy working condition are healthy, judging that the healthy information in the abnormal power failure test process of the solid state disk is healthy, and entering a next detection and acquisition link.
In an embodiment, before step S400, the following steps are further included:
the obtained test information and test results of the abnormal power failure of the solid state disk are uploaded to a database, subsequent result searching and comparison are facilitated, and the coverage rate and test result report of the test are automatically generated through database data processing, so that testers and product engineers can accurately and quickly know indexes such as power failure stability and firmware quality of the solid state disk product.
In a specific embodiment, the automatic abnormal power failure testing method when the solid state disk is used as a system disk for installing system files includes the following steps:
s1, preparing a test environment:
preparing initial test conditions of the solid state disk, preparing the solid state disk to be tested, and installing an operating system to be tested on the solid state disk, such as a Windows or Linux operating system;
s2, controlling the solid state disk to perform read-write operation:
establishing an independent test folder on the solid state disk, storing abnormal power failure test data and files, and controlling a preset abnormal power failure test program on a Control PC to start reading and writing the files in the test folder in the solid state disk, wherein the operation lasts for more than 5 minutes;
s3, powering off the Power supply port appointed in the preset abnormal Power failure test program by controlling the control interface of the IP Power, and waiting for more than 8 seconds, and powering on the Power supply port appointed in the preset abnormal Power failure test program by controlling the control interface of the IP Power, and waiting for 90 seconds at most;
s4, detecting whether the OS is successfully entered:
detecting by accessing a Test PC or a Test Server, and if the OS is successfully entered, continuing the detection of S5; if the OS can not be entered, an error is reported;
s5, detecting whether a file is lost:
detecting whether the data in the test folder in the step 2 is lost or not, and continuing the detection of the step S6 if the data in the test folder in the step 2 is not lost; if the file is lost, judging whether the lost file is the file which is updated last, if not, reporting an error, and allowing the data of the file which is updated last to be lost due to the physical characteristics of the NAND;
s7, detecting the health state of the solid state disk, including but not limited to the following:
whether the abnormal power failure test frequency of the solid state disk changes to a desired value or not;
whether the data volume read and written by the solid state disk is increased linearly or not;
whether an uncorrectable error occurs in the solid state disk reading and writing process;
other tests;
s8, detecting whether the preset test times or the preset test time is satisfied, in this embodiment, the preset test times is 1000 times, and the preset test time is 48 hours;
s9, uploading the test information and results in the steps S1-S8 to a database, facilitating subsequent result searching and comparison, and if no error occurs in the test and detection processes, passing the test item of the abnormal power failure performance of the solid state disk; otherwise, the failure is determined.
In a specific embodiment, the automatic abnormal power-down testing method when the solid state disk is used as a data disk of a system file comprises the following steps:
s1, preparing a test environment:
preparing initial test conditions of the solid state disk, and determining whether to partition the disk according to requirements without installing an operating system; in the automatic test method, the condition of a physical disk (without partition) is tested firstly, and then the condition of a logical disk (partition) is tested;
s2, performing read-write operation on the solid state disk physical disk: this operation lasted for more than 5 minutes;
s3, powering off a Power supply port appointed in a preset abnormal Power failure test program through a control interface of the IP Power, and waiting for more than 8 seconds;
s4, electrifying a Power supply port appointed in a preset abnormal Power failure test program through a control interface of the IP Power, and waiting for 90 seconds at most;
s5, detecting whether the OS is successfully entered: detecting by accessing a Test PC or a Test Server; continuing subsequent detection if the OS is successfully entered; if the OS can not be entered, an error is reported;
s6, detecting whether the solid state disk is lost: detecting whether the solid state disk is lost in the system; if not, continuing the subsequent detection; if the loss occurs, an error is reported;
s7, detecting the health state of the solid state disk, including but not limited to the following:
whether the number of times of abnormal power failure of the solid state disk changes to a desired value;
whether the data volume read and written by the solid state disk is increased linearly or not;
whether an uncorrectable error occurs in the solid state disk reading and writing process;
other tests;
s8, detecting whether the number of times or the time of the test is satisfied: the test times specified in the process are 1000 times or 24 hours;
s9, partitioning the solid state disk and performing read-write operation:
controlling to perform formatting partitioning on a solid state disk, establishing an independent test folder on the solid state disk for storing test data and test files, and controlling to execute a test program to start read-write operation on the files of the test folder, wherein the operation lasts for more than 5 minutes;
s10, the Control PC executes a set test program, controls the Control interface of the IP Power, cuts off the Power supply port appointed by the IP Power and waits for more than 8 seconds;
then controlling a control interface of the IP Power, electrifying a Power supply port appointed in a preset abnormal Power failure test program, and waiting for 90 seconds at most;
s11, detecting whether the OS is successfully entered:
detecting by accessing a Test PC or a Test Server, and if the OS is successfully entered, continuing the detection of S12; if the OS can not be entered, an error is reported;
s12, detecting whether the solid state disk is lost or not and whether data is lost or not:
detecting whether the solid state disk is lost in a test system; if not, continuing the subsequent detection; if the loss exists, an error is reported;
detecting whether data in the test folder is lost or not; if not, continuing the subsequent detection;
if the file is lost, judging whether the lost file is the file which is updated last, if not, reporting an error, and allowing the data of the file which is updated last to be lost due to the physical characteristics of the NAND;
s13, detecting the health state of the solid state disk, including but not limited to the following:
a. whether the abnormal power failure times of the solid state disk change to a desired value or not, if not, an error is reported;
b. whether the data volume read and written by the solid state disk is increased linearly or not is judged, and if not, an error is reported;
c. whether an uncorrectable error occurs in the solid state disk reading and writing process, if so, reporting the error;
d. other tests;
s14, detecting whether the number of times or the time of the test is satisfied:
in this embodiment, the preset test times is 1000 times, and the preset test time is 24 hours;
if the preset test times and the preset test time are met, entering step 15, if the preset test times or the preset test time are not met, returning to step 2, performing an abnormal power failure performance test on the solid state disk by one wheel until the test times or the test time meet the preset test times or the preset test time, and entering step 15;
s15, uploading the test information and results to a database: subsequent result searching and comparison are facilitated, and if no error occurs in the testing and detecting processes, the item passes the testing; otherwise, the test is failed, and the test process of the abnormal power failure test method when the solid state disk is used as the data disk for installing the system file is ended.
If any step in the steps S1-S13 reports an error, the test on the abnormal power failure performance of the solid state disk fails, and the test information and the test result before the step are uploaded to the database, and the test process is ended.
Based on the same inventive concept, please refer to fig. 4, the invention provides an automatic testing device for abnormal Power failure of a fixed hard disk, which comprises a Test PC, an IP Power and a Control PC, wherein a solid state disk product for abnormal Power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid state disk product; the Test PC is electrically connected to the Power port of the IP Power, the Control PC is electrically connected with the IP Power and the Test PC and used for controlling the Power-off and Power-on of the Power port of the IP Power and acquiring Test information and Test results of the solid state disk product after abnormal Power failure.
Wherein the hardware connections are illustrated as follows:
the Test PC (or Server), the Control PC and the IP Power are all connected to the Test local area network;
according to the IP Power use instruction document, the Power supply of the Test PC (or Server) is connected to a designated port in the IP Power, such as a port 1, through a Power line, the IP Power used by the invention is provided with four Power ports and several Power ports, so that several Test PCs (or servers) can be supported to simultaneously carry out abnormal Power failure tests;
and installing NVMe or SATA SSD products to be tested on a Test PC (or Server).
The main functions of the components are explained as follows:
the Test PC (or Server) is used for actually testing the SSD product, executing the operations of reading and writing and the like, and having the condition of sudden power failure;
the Control PC is used for executing a preset abnormal power failure Test program, wherein the program comprises an execution condition of a down-sending command and a monitoring Test PC (or Server); and is used for issuing commands to IP Power and appointing corresponding ports to be powered off; controlling an abnormal power failure test process; the function of reporting and recording test logs is provided;
the IP Power has a control mode of a command line and cuts off or recovers a Test PC (or Server) Power supply connected with a specified port;
among them, the IP Power and Test PC (or Server) settings are explained as follows:
setting an IP address according to an IP Power user manual, wherein the IP address is detailed in description documents of the IP Power model used, and after the setting is finished, when the subsequent test software is controlled, the Power-off and Power-on of a specified Power port are remotely controlled according to the IP address information;
according to the Test PC (or Server) instruction manual, setting options in the BIOS (basic input/output system) as power-on automatic start-up; therefore, the test machine can be automatically started after the IP Power recovers the Power supply of the port;
after the setting is carried out according to the above description, the basic conditions for automatically testing the abnormal power failure are provided.
Meanwhile, according to the maximum number of Power ports allowed by the IP powers, the structure that multiple IP powers control abnormal Power failure of the solid state disk can be expanded, so that the purposes that multiple IP powers simultaneously test and test efficiency is improved are achieved, and the expanded structure is shown in fig. 5.
Based on the same inventive concept, the embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements all or part of the method steps of the above method.
The present invention can implement all or part of the processes of the above methods, and can also be implemented by using a computer program to instruct related hardware, where the computer program can be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above method embodiments can be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Based on the same inventive concept, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program running on the processor, and the processor executes the computer program to implement all or part of the method steps in the method.
The processor may be a Central Processing Unit (CP U), or may be other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (fpga) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the computer device and the various interfaces and lines connecting the various parts of the overall computer device.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (e.g., a sound playing function, an image playing function, etc.); the storage data area may store data (e.g., audio data, video data, etc.) created according to the use of the cellular phone. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) Card, a flash memory Card (flash Card), at least one magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), servers and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. An automatic test method for abnormal power failure of a solid state disk is characterized by comprising the following steps:
the method comprises the steps of establishing a fixed hard disk abnormal Power failure automatic testing device for controlling abnormal Power failure of a solid state disk by using IP Power, wherein the fixed hard disk abnormal Power failure automatic testing device comprises a Test PC, an IP Power and a Control PC, a solid state disk product for abnormal Power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid state disk product; the Test PC is electrically connected to a Power port of the IP Power, the Control PC is electrically connected with the IP Power and the Test PC, a preset abnormal Power failure Test program for performing abnormal Power failure Test on the solid state disk is stored, the preset abnormal Power failure Test program is used for controlling the Power failure and Power up of the Power port of the IP Power and acquiring Test information and Test results of the solid state disk product after abnormal Power failure, and the Test PC, the IP Power and the Control PC are all connected to a Test local area network;
acquiring a use condition of a solid state disk as an installation system file;
according to the use condition of the solid state disk as an installation system file, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure, so as to obtain test information and a test result of the solid state disk after abnormal Power failure;
and evaluating the stability of the solid state disk product according to the obtained test information and test result of the abnormal power failure of the solid state disk.
2. The automatic testing method for the abnormal Power failure of the solid state disk according to claim 1, wherein the step of "operating a preset abnormal Power failure test program by a Control PC to Control and execute read-write operation on the solid state disk, then controlling a Control interface of an IP Power according to a use condition of the solid state disk as an installation system file, powering off and powering on a Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and a test result of the solid state disk after the abnormal Power failure" specifically comprises the following steps:
when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power off to obtain test information and a test result of the solid state disk after abnormal Power failure.
3. The automatic testing method for the abnormal Power failure of the solid state disk according to claim 2, wherein when the solid state disk is used as a system disk for installing system files, the Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, controls a Control interface of the IP Power, powers on a Power supply port specified in the preset abnormal Power failure test program after Power failure, and obtains test information and test results of the solid state disk after the abnormal Power failure, and specifically comprises the following steps:
when the solid state disk is used as a system disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on the solid state disk, then controls a Control port of IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after Power off;
acquiring a first detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
acquiring a second detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
acquiring a third detection working condition of health information in the abnormal power failure test process of the solid state disk, and if the health information is healthy, entering a next detection acquisition link;
and acquiring the abnormal power failure test times and test time of the solid state disk, and acquiring the acquired first detection working condition, second detection working condition and third detection working condition if the preset test times and the preset test time are met.
4. The automatic testing method for the abnormal Power failure of the solid state disk according to claim 2, wherein the step of "operating a preset abnormal Power failure test program by a Control PC to Control and execute read-write operation on the solid state disk and then controlling a Control interface of an IP Power according to a use condition of the solid state disk as an installation system file, powering off and then powering on a Power supply port specified in the preset abnormal Power failure test program, and acquiring test information and a test result of the solid state disk after the abnormal Power failure" further comprises the steps of:
when the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control interface of an IP Power, and powers on a specified Power supply port in the preset abnormal Power failure test program after Power failure, so as to obtain test information and a test result after the abnormal Power failure of the physical disk of the solid state disk;
and controlling to execute read-write operation on the solid state disk logic disk, then controlling a control interface of the IP Power, powering off and powering on a specified Power supply port in a preset abnormal Power failure test program, and acquiring test information and test results of the solid state disk logic disk after abnormal Power failure.
5. The automatic testing method for the abnormal Power failure of the solid state disk according to claim 4, wherein the step of "when the solid state disk is used as a data disk for installing the system file, the Control PC runs a preset abnormal Power failure test program to Control and execute the read-write operation of the physical disk of the solid state disk, then controls the Control interface of the IP Power, powers on a Power supply port specified in the preset abnormal Power failure test program after the Power is cut off, and obtains the test information and the test result after the abnormal Power failure of the physical disk of the solid state disk" specifically includes the following steps:
when the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a physical disk of the solid state disk, then controls a Control port of an IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after Power off;
acquiring a first detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
acquiring a second detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
acquiring a third detection working condition of health information in the abnormal power failure test process of the solid state disk, and if the health information is healthy, entering a next detection acquisition link;
and acquiring the abnormal power failure test times and test time of the solid state disk, and acquiring the acquired first detection working condition, second detection working condition and third detection working condition if the preset test times and the preset test time are met.
6. The automatic testing method for the abnormal Power failure of the solid state disk according to claim 4, wherein the step of controlling execution to perform read-write operation on the solid state disk logic disk, then controlling a control interface of the IP Power, powering off and powering on a Power supply port specified in a preset abnormal Power failure testing program, and acquiring testing information and testing results after the abnormal Power failure of the solid state disk logic disk specifically comprises the following steps:
when the solid state disk is used as a data disk for installing system files, a Control PC runs a preset abnormal Power failure test program to Control and execute read-write operation on a solid state disk logic disk, then controls a Control port of IP Power, and powers on a Power supply port specified in the preset abnormal Power failure test program after powering off;
acquiring a fourth detection working condition of the solid state disk entering the OS after abnormal power failure, and if so, entering a next detection acquisition link;
acquiring a fifth detection working condition of the loss of the solid state disk file, and entering a next detection acquisition link if the file is not lost;
acquiring a sixth detection working condition of health information in the abnormal power failure test process of the solid state disk, and if the health information is healthy, entering a next detection acquisition link;
and acquiring the abnormal power failure test times and test time of the solid state disk, and acquiring the acquired first detection working condition, second detection working condition and third detection working condition if the preset test times and the preset test time are met.
7. The automatic testing method for the abnormal power failure of the solid state disk according to claim 4, wherein the step of controlling execution of read-write operation on the logic disk of the solid state disk comprises the following steps:
the method comprises the steps of performing formatting partitioning on a solid state disk logic disk by control execution, establishing an independent test folder on the solid state disk, storing abnormal power failure test data and test files of the solid state disk, and operating a preset abnormal power failure test program to start reading and writing the files in the test folder.
8. The automatic abnormal Power failure testing method for the solid state disk of claim 5, wherein the step of controlling the control interface of the IP Power to Power up a Power supply port specified in a preset abnormal Power failure testing program after Power off specifically comprises the following steps:
controlling a control interface of the IP Power, powering off a Power supply port appointed in a preset abnormal Power failure test program, and waiting for a first preset waiting time;
and controlling a control interface of the IP Power, electrifying a Power supply port appointed in a preset abnormal Power failure test program, and waiting for a second waiting time.
9. The automatic testing method for abnormal power failure of the solid state disk according to claim 5, wherein the step of acquiring the health information of the solid state disk in the abnormal power failure testing process if the sixth detection condition is healthy, entering a next detection and acquisition step specifically comprises the following steps:
acquiring a first health working condition that the frequency of abnormal power failure of the solid state disk is changed into a preset expected frequency value, and when the frequency of abnormal power failure of the solid state disk is changed into the preset expected frequency value, judging that the first health working condition is healthy;
acquiring a first health condition that the data volume read and written by the solid state disk is increased linearly, and judging that a second health condition is healthy when the data volume read and written by the solid state disk is increased linearly;
acquiring a third healthy working condition of uncorrectable errors in the read-write process of the solid state disk, and judging that the third healthy working condition is healthy when the uncorrectable errors do not occur;
and when the first healthy working condition, the second healthy working condition and the third healthy working condition are healthy, judging that the healthy information in the abnormal power failure test process of the solid state disk is healthy, and entering a next detection and acquisition link.
10. An automatic testing device for abnormal Power failure of a fixed hard disk is characterized by comprising a Test PC, an IP Power and a Control PC, wherein a solid state disk product for abnormal Power failure performance testing is installed on the Test PC, and an operating system to be tested is selectively installed on the solid state disk product; the Test PC is electrically connected to a Power port of the IP Power, the Control PC is electrically connected with the IP Power and the Test PC, a preset abnormal Power failure Test program for performing abnormal Power failure Test on the solid state disk is stored, the preset abnormal Power failure Test program is used for controlling the Power failure and electrification of the Power port of the IP Power and acquiring Test information and Test results of the solid state disk product after abnormal Power failure, and the Test PC, the IP Power and the Control PC are all connected to a Test local area network.
CN202111613266.XA 2021-12-27 2021-12-27 Automatic testing method and device for abnormal power failure of solid state disk Pending CN114265733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111613266.XA CN114265733A (en) 2021-12-27 2021-12-27 Automatic testing method and device for abnormal power failure of solid state disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111613266.XA CN114265733A (en) 2021-12-27 2021-12-27 Automatic testing method and device for abnormal power failure of solid state disk

Publications (1)

Publication Number Publication Date
CN114265733A true CN114265733A (en) 2022-04-01

Family

ID=80830532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111613266.XA Pending CN114265733A (en) 2021-12-27 2021-12-27 Automatic testing method and device for abnormal power failure of solid state disk

Country Status (1)

Country Link
CN (1) CN114265733A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116483641A (en) * 2023-06-14 2023-07-25 深圳市晶存科技有限公司 Method, system and medium for abnormal power failure detection of hard disk
CN117079702A (en) * 2023-10-18 2023-11-17 江苏华存电子科技有限公司 NVMe solid state disk temperature cycle read-write power failure test method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116483641A (en) * 2023-06-14 2023-07-25 深圳市晶存科技有限公司 Method, system and medium for abnormal power failure detection of hard disk
CN116483641B (en) * 2023-06-14 2024-04-02 深圳市晶存科技有限公司 Method, system and medium for abnormal power failure detection of hard disk
CN117079702A (en) * 2023-10-18 2023-11-17 江苏华存电子科技有限公司 NVMe solid state disk temperature cycle read-write power failure test method and device
CN117079702B (en) * 2023-10-18 2023-12-22 江苏华存电子科技有限公司 NVMe solid state disk temperature cycle read-write power failure test method and device

Similar Documents

Publication Publication Date Title
CN114265733A (en) Automatic testing method and device for abnormal power failure of solid state disk
CN102662701A (en) Online CPLD (Complex Programmable Logic Devices) upgrading method, device and business veneer
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN104660471A (en) Method for automatically testing PCIE-SSD transmission rate and bandwidth under Linux
CN103364650A (en) Testing system and testing method
CN104714863A (en) Method for completely storing Raid card logs on basis of Linux operation system after system crashes
CN115083510B (en) Solid state disk testing method and device, storage medium, power supply and electronic equipment
CN112328179A (en) Configuration method and system of disk array, electronic device and readable storage medium
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
US7475164B2 (en) Apparatus, system, and method for automated device configuration and testing
CN112269697B (en) Equipment storage performance testing method, system and related device
CN114138527A (en) Method, device and medium for improving performance of server
CN111897685A (en) Method and device for checking data in power failure, storage medium and electronic equipment
CN116383012A (en) Method and device for acquiring boot log and method for transmitting boot log
CN112015587A (en) Method and device for enhancing reliability of operating system
CN113870938A (en) Method, device and medium for building redundant array of independent hard disks
CN111538509A (en) OS installation test method, device and related equipment
CN111124889B (en) ICOS system-based host Numa test method, system and equipment
CN114546516B (en) Automatic firmware switching method, storage medium and equipment in SSD production test
CN116243957B (en) Function extension control method, device and system of SSD
CN113094274B (en) Python-based FPGA verification method and device, computer equipment and storage medium
CN116662085A (en) Disk fault simulation test method, test device and electronic equipment
CN117349094A (en) Method, device, equipment and storage medium for testing function interaction of solid state disk
CN115408012A (en) Method and device for automatically burning power management chip firmware
CN116303058A (en) Test environment checking method, system, electronic equipment and medium

Legal Events

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