CN114420194A - Test method and device for power failure protection function of solid state disk and computer equipment - Google Patents
Test method and device for power failure protection function of solid state disk and computer equipment Download PDFInfo
- Publication number
- CN114420194A CN114420194A CN202111616288.1A CN202111616288A CN114420194A CN 114420194 A CN114420194 A CN 114420194A CN 202111616288 A CN202111616288 A CN 202111616288A CN 114420194 A CN114420194 A CN 114420194A
- Authority
- CN
- China
- Prior art keywords
- solid state
- state disk
- power failure
- protection function
- data
- 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
Links
- 239000007787 solid Substances 0.000 title claims abstract description 79
- 238000010998 test method Methods 0.000 title description 6
- 238000012360 testing method Methods 0.000 claims abstract description 105
- 238000000034 method Methods 0.000 claims abstract description 58
- 230000002159 abnormal effect Effects 0.000 claims abstract description 32
- 230000008569 process Effects 0.000 claims abstract description 22
- 238000003860 storage Methods 0.000 claims abstract description 15
- 230000006870 function Effects 0.000 claims description 77
- 238000004590 computer program Methods 0.000 claims description 13
- 230000001351 cycling effect Effects 0.000 claims description 9
- 239000002346 layers by function Substances 0.000 claims description 6
- 238000004088 simulation Methods 0.000 claims description 4
- 230000005856 abnormality Effects 0.000 abstract description 3
- 238000001514 detection method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000003825 pressing Methods 0.000 description 3
- 101000864780 Homo sapiens Pulmonary surfactant-associated protein A1 Proteins 0.000 description 2
- 101000651017 Homo sapiens Pulmonary surfactant-associated protein A2 Proteins 0.000 description 2
- 102100027773 Pulmonary surfactant-associated protein A2 Human genes 0.000 description 2
- 230000009977 dual effect Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000003466 welding Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C29/00—Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
- G11C29/56—External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Prevention of errors by analysis, debugging or testing of software
- G06F11/3668—Testing of software
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application relates to a method and a device for testing a power failure protection function of a solid state disk, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a test request of a power failure protection function of the solid state disk; compiling a test script by using DriveMaster software according to the test request; the test script is operated to control the power failure protection function to be turned on and turned off, and specific form data is written in the solid state disk in a full disk mode; turning on a power-down protection function, and controlling the duration of a relevant signal to be within a certain range by simulating the pull-down of the signal; and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again. The invention can efficiently and comprehensively verify whether the abnormal power failure function is normal or not, and detect the functional module by a more scientific and comprehensive method, thereby avoiding data loss and system damage caused by the abnormality of the function in the use process of a terminal user.
Description
Technical Field
The invention relates to the technical field of solid state disk testing, in particular to a method and a device for testing a power failure protection function of a solid state disk, computer equipment and a storage medium.
Background
At present, with the development of science and technology and the coming of a big data era, the storage of data becomes more and more important. Therefore, the power-down protection function of a solid state disk (hereinafter referred to as SSD) becomes especially important, and robustness detection of the power-down protection function is still blank.
Currently, the power failure detection function in the operating system (Windows/Linux) environment is inefficient, manual operation is required in the test process, the system is started, the system is waited to enter, the shutdown button is pressed until shutdown is performed, and then the system is started to check whether the system is damaged or not, so that files are lost. The test result can only detect the integrity of the relevant files of the operating system (whether the relevant files can be normally started to enter the system) but cannot realize the check of the integrity of the user data, the test process cannot realize automation, the failure scene cannot be effectively reserved in time by using a relay to regularly power down, and the success or failure cannot be intelligently judged.
Currently, two methods for detecting the conventional SSD power down protection function generally exist at present: the method I comprises the steps of manually entering an operating system, manually pressing a switch key for a long time, manually manufacturing abnormal power failure, and restarting to confirm whether the system is normal or not. And in the second method, a relay mode is used, a welding wire is connected to the relay from a starting key of the notebook computer, and the automation is realized by simulating the pressing of personnel in the relay mode. However, the first test period of the method is long, and the user needs to wait for startup and shutdown manually, and only can see whether the user can enter the system to judge whether the key file required by system startup is damaged or not, and the data integrity of the user data area cannot be checked. The second method can realize automatic startup and shutdown, but abnormity in the unattended process or repeated pressing and covering of the relay cannot be realized, and accurate interception failure cannot be realized.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for testing a power-down protection function of a solid state disk, a computer device, and a storage medium, in order to solve the above technical problems.
A method for testing a power failure protection function of a solid state disk comprises the following steps:
acquiring a test request of a power failure protection function of the solid state disk;
compiling a test script by using DriveMaster software according to the test request;
the test script is operated to control the power failure protection function to be turned on and turned off, and specific form data is written in the solid state disk in a full disk mode;
turning on a power-down protection function, and controlling the duration of a relevant signal to be within a certain range by simulating the pull-down of the signal;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
In one embodiment, after the step of turning on the power down protection function, by simulating the pull-down of the relevant signal and controlling the duration of the signal within a certain range, the method further includes:
cycling through a plurality of different reset and reset operations;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
In one embodiment, the step of cycling through a plurality of different reset and reset operations includes:
the reset and reset operations comprise a normal shutdown process, an abnormal power failure process, a functional layer reset, a host bus adapter reset, a PCIE reset and a subsystem reset.
In one embodiment, the step of controlling abnormal power down through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again further includes:
and comparing whether the internal data after being powered on again is different from the data form written in the whole disk before.
The utility model provides a solid state hard drives power fail safe function's testing arrangement, the device includes:
the system comprises an acquisition module, a power failure protection module and a power failure protection module, wherein the acquisition module is used for acquiring a test request of a power failure protection function of the solid state disk;
the script compiling module is used for compiling a test script by utilizing DriveMaster software according to the test request;
the data writing module is used for operating the test script to control the power failure protection function to be turned on and turned off, and writing data in a specific form into the solid state disk in a full disk manner;
the signal simulation module is used for opening a power failure protection function, and controlling the duration time of the signal within a certain range by simulating the pull-down of a related signal;
and the data checking module is used for controlling abnormal power failure through the test script and checking the form of the data in the solid state disk after the data is electrified again.
In one embodiment, the apparatus further comprises a loop test module configured to:
cycling through a plurality of different reset and reset operations;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
In one embodiment, the loop test module is further configured to:
the reset and reset operations comprise a normal shutdown process, an abnormal power failure process, a functional layer reset, a host bus adapter reset, a PCIE reset and a subsystem reset.
In one embodiment, the data checking module is further configured to:
and comparing whether the internal data after being powered on again is different from the data form written in the whole disk before.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.
The method, the device, the computer equipment and the storage medium for testing the power-down protection function of the solid state disk obtain the test request of the power-down protection function of the solid state disk; compiling a test script by using DriveMaster software according to the test request; the test script is operated to control the power failure protection function to be turned on and turned off, and specific form data is written in the solid state disk in a full disk mode; turning on a power-down protection function, and controlling the duration of a relevant signal to be within a certain range by simulating the pull-down of the signal; and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again. The invention can efficiently and comprehensively verify whether the abnormal power failure function is normal or not, and detect the functional module by a more scientific and comprehensive method, thereby avoiding data loss and system damage caused by the abnormality of the function in the use process of a terminal user.
Drawings
Fig. 1 is a schematic flowchart illustrating a method for testing a power-down protection function of a solid state disk in an embodiment;
FIG. 2 is a schematic flowchart illustrating a method for testing a power-down protection function of a solid state disk in another embodiment;
FIG. 3 is a schematic flowchart illustrating a method for testing a power-down protection function of a solid state disk in yet another embodiment;
FIG. 4 is a block diagram of a testing apparatus for power-down protection of a solid state disk in an embodiment;
FIG. 5 is a block diagram of a testing apparatus for power-down protection of a solid state disk in another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
At present, the efficiency of detecting the power failure protection function is low in the environment of an operating system (windows/Linux), manual operation is needed in the test process, the system is started, the system is waited to enter, a shutdown button is pressed until shutdown is carried out, and then the system is started to check whether the system is damaged or not and files are lost. The test result can only detect the integrity of the relevant files of the operating system (whether the relevant files can be normally started to enter the system) but cannot realize the check of the integrity of the user data, the test process cannot realize automation, the failure scene cannot be effectively reserved in time by using a relay to regularly power down, and the success or failure cannot be intelligently judged. In view of the above reasons, currently, the detection of the power-down protection function is generally limited in test sample size, and in the face of currently more and more abundant customized production models, the detection of the power-down protection function in signal, noise and time sequence scenes under different platforms cannot be covered, and the detection of the robustness of the power-down protection function is still blank (that is, the actual effect of the power-down protection function in a complex scene cannot be detected).
Based on the relevant specifications, under the condition that the power failure protection function is enabled, after the relevant mechanism triggers the function, the SSD must stop executing any command issued by the host end, start to move data in the volatile storage device of the SSD to the nonvolatile storage device, and can record the times of successful movement, and after the triggering mechanism is cancelled, the SSD needs to be capable of normally communicating with the host to store the data
Based on this, this patent invents a method, utilize drive Master software of unlink company, write the test script and realize that the power fail safe function opens and closes, the pull-up of simulation transmission relevant signal is pulled down and control signal duration within a certain range (simulate different platforms because signal compatibility, the signal delay that noise processing etc. different situation brought), walk various power down and read and write to SSD whole dish after resetting under the signal pull-down enable condition simultaneously and verify the actual utility of this function.
In an embodiment, as shown in fig. 1, a method for testing a power-down protection function of a solid state disk is provided, where the method includes:
102, acquiring a test request of a power failure protection function of the solid state disk;
104, compiling a test script by using DriveMaster software according to the test request;
step 106, running a test script to control the power failure protection function to be turned on and turned off, and writing specific form data in the solid state disk;
step 108, turning on a power-down protection function, and controlling the duration of a signal within a certain range by simulating the pull-down of a related signal;
and step 110, controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
In the embodiment, a test method for a power-down protection function of a solid state disk is provided, and the test method utilizes driveMaster software of unlink company to write a test script to open and close the power-down protection function, simulate the pull-up and pull-down of a related signal and control the duration of the signal within a certain range (simulate signal delay caused by different conditions such as signal compatibility and noise processing of different platforms), and traverse various power-down resets under the condition of signal pull-down enabling and then perform full disk read-write on an SSD to verify the actual utility of the function.
In one embodiment, the abnormal power failure is controlled by the test script, and the step of checking the form of the data in the solid state disk after the solid state disk is powered on again further comprises: and comparing whether the internal data after being powered on again is different from the data form written in the whole disk before.
In a specific embodiment, reference may be made to the flow shown in the first half of fig. 3, and the specific test environment is as follows:
hardware requirements:
SSD to be tested: and a power failure protection function SSD is supported.
A computer: notebook (supporting dual hard drives) or desktop.
An adapter plate: unlink m.2 special PSPA adapter plate.
Software requirements:
operating the system: windows 10.
Testing software: ulink DriveMaster 2015 NVMe.
Testing the script: self-written DriveMaster test script.
The specific test flow steps are as follows: 1. after power-up, checking whether the SSD supports the basic checking function. 2. The default state is checked. 3. And checking opening and closing to acquire a state related command. 4. And writing the data with the specific form on the whole disk. 5. The power down protection function is turned on. 6. The corresponding Pin signal is triggered to pull low (active low) and remain on for a period of time (random traversal within specification). 7. And controlling abnormal power failure by the script. 8. And (4) electrifying again, and comparing whether the internal data of the SSD is different from the written form in the step (4).
In the embodiment, a test request of the power failure protection function of the solid state disk is obtained; compiling a test script by using DriveMaster software according to the test request; the test script is operated to control the power failure protection function to be turned on and turned off, and specific form data is written in the solid state disk in a full disk mode; turning on a power-down protection function, and controlling the duration of a relevant signal to be within a certain range by simulating the pull-down of the signal; and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again. The scheme can efficiently and comprehensively verify whether the abnormal power failure function is normal or not, and detect the functional module by a more scientific and comprehensive method, so that data loss and system damage caused by the abnormality of the function in the use process of a terminal user are avoided.
In an embodiment, as shown in fig. 2, a method for testing a power-down protection function of a solid state disk is provided, where the method further includes:
step 202, turning on a power-down protection function, and controlling the duration of a signal within a certain range by simulating the pull-down of a related signal;
step 204, circularly carrying out various reset and reset operations;
step 206, the reset and reset operations include a normal shutdown process, an abnormal power down process, a functional layer reset, a host bus adapter reset, a PCIE reset, and a subsystem reset;
and 208, controlling abnormal power failure through the test script, and comparing whether the internal data subjected to power-on again is different from the data written in the whole disk before after the internal data subjected to power-on again is subjected to power-on again.
In a specific embodiment, reference may be made to the flow shown in the second half of fig. 3, and specific test environments are as follows:
hardware requirements:
SSD to be tested: and a power failure protection function SSD is supported.
A computer: notebook (supporting dual hard drives) or desktop.
An adapter plate: unlink m.2 special PSPA adapter plate.
Software requirements:
operating the system: windows 10.
Testing software: ulink DriveMaster 2015 NVMe.
Testing the script: self-written DriveMaster test script.
The specific test flow steps are as follows: 1. and after power-on, checking whether the SSD abnormal reset compatibility checking function is opened. 2. Issuing a command to turn on the function (if supported but in the off state). 3. And writing the data with the specific form on the whole disk. 4. The corresponding Pin signal is triggered to pull low (active low) and remain on for a period of time (random traversal within specification). 5. A variety of resets/resets are traversed. 6. And controlling abnormal power failure by the script. 7. And (4) re-electrifying to judge whether the internal data of the SSD is different from the form written in the step (3).
The different resets of each cycle test comprise normal shutdown, abnormal power failure, PCIE function reset, nvme subsystem reset, HBAreset and Perst.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, a testing apparatus 400 for power down protection function of a solid state disk is provided, the apparatus comprising:
an obtaining module 401, configured to obtain a test request for a power failure protection function of a solid state disk;
a script writing module 402, configured to write a test script according to the test request by using DriveMaster software;
a data writing module 403, configured to run the test script to control the power failure protection function to be turned on and turned off, and write data of a specific form in the solid state disk;
a signal simulation module 404, configured to turn on a power down protection function, and control a duration of a relevant signal within a certain range by simulating a pull-down of the signal;
and the data checking module 405 is used for controlling abnormal power failure through the test script and checking the form of the data in the solid state disk after the data is powered on again.
In one embodiment, as shown in fig. 5, a testing apparatus 400 for power down protection of a solid state disk is provided, the apparatus further includes a loop test module 406, configured to:
cycling through a plurality of different reset and reset operations;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
In one embodiment, the loop test module 406 is further configured to:
the reset and reset operations comprise a normal shutdown process, an abnormal power failure process, a functional layer reset, a host bus adapter reset, a PCIE reset and a subsystem reset.
In one embodiment, the data checking module 405 is further configured to:
and comparing whether the internal data after being powered on again is different from the data form written in the whole disk before.
For specific limitations of the test apparatus for the power-down protection function of the solid state disk, reference may be made to the above limitations of the test method for the power-down protection function of the solid state disk, and details are not described here.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 6. The computer apparatus includes a processor, a memory, and a network interface connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation device in the nonvolatile storage medium and the execution of the computer program. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a test method of the power failure protection function of the solid state disk.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above respective method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method for testing a power failure protection function of a solid state disk is characterized by comprising the following steps:
acquiring a test request of a power failure protection function of the solid state disk;
compiling a test script by using DriveMaster software according to the test request;
the test script is operated to control the power failure protection function to be turned on and turned off, and specific form data is written in the solid state disk in a full disk mode;
turning on a power-down protection function, and controlling the duration of a relevant signal to be within a certain range by simulating the pull-down of the signal;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
2. The method for testing the power-down protection function of the solid state disk according to claim 1, wherein after the step of turning on the power-down protection function, controlling the duration of the signal within a certain range by simulating the pulling down of a related signal, the method further comprises the following steps:
cycling through a plurality of different reset and reset operations;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
3. The method for testing the power-down protection function of the solid state disk as claimed in claim 2, wherein the step of cycling through a plurality of different reset and reset operations comprises:
the reset and reset operations comprise a normal shutdown process, an abnormal power failure process, a functional layer reset, a host bus adapter reset, a PCIE reset and a subsystem reset.
4. The method for testing the power-down protection function of the solid state disk according to any one of claims 1 to 3, wherein the test script controls abnormal power-down, and the step of checking the form of data in the solid state disk after power-up again further comprises:
and comparing whether the internal data after being powered on again is different from the data form written in the whole disk before.
5. The utility model provides a solid state hard drives power fail safe function's testing arrangement which characterized in that, the device includes:
the system comprises an acquisition module, a power failure protection module and a power failure protection module, wherein the acquisition module is used for acquiring a test request of a power failure protection function of the solid state disk;
the script compiling module is used for compiling a test script by utilizing DriveMaster software according to the test request;
the data writing module is used for operating the test script to control the power failure protection function to be turned on and turned off, and writing data in a specific form into the solid state disk in a full disk manner;
the signal simulation module is used for opening a power failure protection function, and controlling the duration time of the signal within a certain range by simulating the pull-down of a related signal;
and the data checking module is used for controlling abnormal power failure through the test script and checking the form of the data in the solid state disk after the data is electrified again.
6. The device for testing the power-down protection function of the solid state disk according to claim 5, further comprising a cycling test module, wherein the cycling test module is configured to:
cycling through a plurality of different reset and reset operations;
and controlling abnormal power failure through the test script, and checking the form of data in the solid state disk after the solid state disk is powered on again.
7. The device for testing the power-down protection function of the solid state disk according to claim 6, wherein the loop test module is further configured to:
the reset and reset operations comprise a normal shutdown process, an abnormal power failure process, a functional layer reset, a host bus adapter reset, a PCIE reset and a subsystem reset.
8. The device for testing the power-down protection function of the solid state disk according to any one of claims 5 to 7, wherein the data checking module is further configured to:
and comparing whether the internal data after being powered on again is different from the data form written in the whole disk before.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111616288.1A CN114420194A (en) | 2021-12-27 | 2021-12-27 | Test method and device for power failure protection function of solid state disk and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111616288.1A CN114420194A (en) | 2021-12-27 | 2021-12-27 | Test method and device for power failure protection function of solid state disk and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114420194A true CN114420194A (en) | 2022-04-29 |
Family
ID=81269474
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111616288.1A Pending CN114420194A (en) | 2021-12-27 | 2021-12-27 | Test method and device for power failure protection function of solid state disk and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114420194A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115035946A (en) * | 2022-08-12 | 2022-09-09 | 武汉麓谷科技有限公司 | Extensible NVMe solid state disk test system |
-
2021
- 2021-12-27 CN CN202111616288.1A patent/CN114420194A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115035946A (en) * | 2022-08-12 | 2022-09-09 | 武汉麓谷科技有限公司 | Extensible NVMe solid state disk test system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7050859B1 (en) | Systems and methods to port controller state and context in an open operating system | |
CN101593083B (en) | device, computer and method for protecting and restoring computer configuration information | |
CN102760090B (en) | Debugging method and computer system | |
CN111104275A (en) | Automatic testing method and device for flash SSD hard disk power supply | |
CN115035946A (en) | Extensible NVMe solid state disk test system | |
US9405315B2 (en) | Delayed execution of program code on multiple processors | |
CN110618892A (en) | Bug positioning method and device for solid state disk, electronic equipment and medium | |
CN114420194A (en) | Test method and device for power failure protection function of solid state disk and computer equipment | |
CN111897685B (en) | Method and device for checking data during power failure, storage medium and electronic equipment | |
CN114880177A (en) | Method and device for testing complete machine abnormal power failure of solid state disk and computer equipment | |
CN113315675B (en) | White box switch U-Boot automatic testing method, system and storage medium | |
CN112363909B (en) | Automatic test method for reliability of file system in relay protection device | |
CN116994635B (en) | Flash memory power failure detection method and system, electronic equipment and storage medium | |
CN115237691A (en) | Hot plug test method, device, equipment and medium for storage equipment | |
KR101300443B1 (en) | Flash memory device capable of verifying reliability using bypass path, and system and method of verifying reliability using that device | |
CN110826114B (en) | User data testing method and device based on SSD after safe erasure | |
CN113722212B (en) | CPLD upgrading test method, device, equipment and medium | |
CN115344445A (en) | Abnormal power-down testing method, system, medium and equipment based on solid state disk | |
CN113851183A (en) | Solid state disk testing method and device based on UEFI environment and computer equipment | |
CN115373922A (en) | Device, method, terminal and medium for automatically testing SMR hard disks of different manufacturers | |
CN115422091A (en) | Firmware debugging method and device, electronic equipment and storage medium | |
CN114496052A (en) | Method and device for testing permission mode function of SSD (solid State drive) in non-operation power state | |
CN111966545A (en) | PCIe deconcentrator hot plug test method, device, equipment and storage medium | |
CN113868003B (en) | Verification and fault positioning method and device for server flash system | |
US20240231347A1 (en) | Fault injection test method and apparatus, and fault injection method |
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 |