CN110427289A - The method and device that automatic test SSD power down influences data consistency - Google Patents

The method and device that automatic test SSD power down influences data consistency Download PDF

Info

Publication number
CN110427289A
CN110427289A CN201910703516.5A CN201910703516A CN110427289A CN 110427289 A CN110427289 A CN 110427289A CN 201910703516 A CN201910703516 A CN 201910703516A CN 110427289 A CN110427289 A CN 110427289A
Authority
CN
China
Prior art keywords
ssd
data
test
consistency
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
CN201910703516.5A
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.)
Dongguan Memory Storage Technology Co Ltd
Original Assignee
Dongguan Memory Storage Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Memory Storage Technology Co Ltd filed Critical Dongguan Memory Storage Technology Co Ltd
Priority to CN201910703516.5A priority Critical patent/CN110427289A/en
Publication of CN110427289A publication Critical patent/CN110427289A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents

Abstract

The present invention relates to a kind of method and device that automatic test SSD power down influences data consistency, method includes: to build automatic test environment;In test environment automatically, automatic test script is run;SSD is written into test data;Power-down rebooting SSD;Detect the consistency of SSD power down front and back test data.This programme tests influence of the SSD power down for data consistency based on Driver Master automatically, test data is automatically write especially by before SSD power down, after controlling SSD power-down rebooting, read the test data after restarting, to judge the consistency of data, without artificial intervention, the testing efficiency of SSD data consistency is improved, testing cost is reduced.

Description

The method and device that automatic test SSD power down influences data consistency
Technical field
The present invention relates to SSD testing fields, more specifically refer to the automatic test SSD power down of one kind to data consistency shadow Loud method and device.
Background technique
Solid state hard disk (Solid State Drives, abbreviation SSD) is a kind of data storage medium, and solid state hard disk is usually wrapped It includes main control chip (controller), flash memory (Flash), caches (RAM) and other related devices composition.Wherein, flash chip It is non-volatile memory medium, data will not be lost after stopping power supply, and the now commonly used DRAM of cache chip (Dynamic Random Access Memory, dynamic random access memory), after DRAM power down, is stored in therein Data can lose.In order to guarantee the reliability of data storage, standby electric module will increase in usual enterprise-level SSD, SSD is external different After normal power down, the power supply of a period of time is maintained using internal standby electric module, the data in caching are transferred in flash memory and are carried out It saves, prevents loss of data.
Under normal circumstances, SSD may be not enough because of the reconstruction of mapping table before and after power down or unsuccessfully cause to count According to occurring before and after power down, data are inconsistent, if had a problem that, data can lose the seriously use of such SSD It experiences poor, it is therefore desirable to the data consistency before and after SSD power down be detected in SSD factory.
The method of data consistency before and after existing test SSD power down is typically ordered by the way that staff is lower manually It enables to realize and check, this just seems quite time-consuming laborious.If generally requiring more people in the more situation of the quantity of SSD Cooperation, heavy workload, time and effort consuming, human cost is higher, and testing efficiency is low.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, it is consistent to data to provide a kind of automatic test SSD power down Property influence method and device, improve SSD power down when data consistency testing efficiency.
To achieve the above object, the invention adopts the following technical scheme:
A kind of method that automatic test SSD power down influences data consistency, comprising the following steps:
Build automatic test environment;
In test environment automatically, automatic test script is run;
SSD is written into test data;
Power-down rebooting SSD;
Detect the consistency of SSD power down front and back test data.
Its further technical solution are as follows: described build tests environment step automatically, including,
Test host is electrically connected with SSD to be detected;
Pre-set test script running environment;
Presetting test variable.
Its further technical solution are as follows: it is described by test host and SSD electrical connecting step to be detected, including,
Test host is electrically connected to SSD power supply driver, SSD to be detected is electrically connected to M.2 pinboard, and will M.2 connect Fishplate bar is electrically connected SSD power supply driver.
Its further technical solution are as follows: it is described to pre-set test script running environment step, including,
List NVMe Controller mark data;
It is 0 that SSD reconstructed mapped table time initial value, which is arranged,;
It is 0 that timing, which is arranged,;
Enabled write cache;
Maximum unit number of blocks is set.
Its further technical solution are as follows: it is described that SSD step is written into test data, including,
The unit number of blocks of write buffer is set;
Test data is written to the units chunk after setting in order.
Its further technical solution are as follows: the consistency step for checking power down front and back SSD data, including,
Read SSD test data;
Compare read buffer and write buffer;
The consistency of data is read and is write in judgement.
Its further technical solution are as follows: the power-down rebooting SSD step, including,
PCLePwCycle.eni program file is called to carry out power-on and power-off to SSD, control SSD is restarted.
The invention also provides a kind of devices that automatic test SSD power down influences data consistency, comprising:
Environmental structure unit, for building automatic test environment;
Script running unit, for running automatic test script in test environment automatically;
Data write unit, for SSD to be written in test data;
Power-down rebooting unit is used for power-down rebooting SSD;
Data detecting unit, for detecting the consistency of SSD power down front and back test data.
Its further technical solution are as follows: the data write unit includes setup module and writing module;
The setup module, for the unit number of blocks of write buffer to be arranged;
The write module, for test data to be written to the units chunk after being arranged in order.
Its further technical solution are as follows: the data detecting unit includes data read module, contrast module and judges mould Block;
The data read module, for reading SSD test data;
The contrast module, for comparing read buffer and write buffer;
The judgment module, for judging reading and writing the consistency of data.
Compared with the prior art, the invention has the advantages that: SSD is tested automatically the present invention is based on Driver Master falls Influence of the electricity for data consistency, especially by automatically writing test data before SSD power down, after controlling SSD power-down rebooting, The test data after restarting is read, to judge the consistency of data, artificial intervention is not necessarily to, improves the survey of SSD data consistency Efficiency is tried, testing cost is reduced.
The invention will be further described in the following with reference to the drawings and specific embodiments.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the stream for the method that a kind of automatic test SSD power down provided in an embodiment of the present invention influences data consistency Journey schematic diagram;
Fig. 2 is the son for the method that a kind of automatic test SSD power down provided in an embodiment of the present invention influences data consistency Flow diagram;
Fig. 3 is the son for the method that a kind of automatic test SSD power down provided in an embodiment of the present invention influences data consistency Flow diagram;
Fig. 4 is the son for the method that a kind of automatic test SSD power down provided in an embodiment of the present invention influences data consistency Flow diagram;
Fig. 5 is the son for the method that a kind of automatic test SSD power down provided in an embodiment of the present invention influences data consistency Flow diagram;
Fig. 6 is showing for the device that test SSD power down influences data consistency a kind of automatically provided in an embodiment of the present invention Meaning property block diagram;
Fig. 7 is that the data for the device that automatic test SSD power down provided in an embodiment of the present invention influences data consistency are write Enter the schematic block diagram of unit;
Fig. 8 is the data inspection for the device that automatic test SSD power down provided in an embodiment of the present invention influences data consistency Survey the schematic block diagram of unit.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
The minimum read/write unit of SSD is page (Page), and most Page is 4KB, and minimum read-write cell is 4KB big Small, a certain number of Page form more advanced block (units chunk), specifically, block can be 128 page compositions, Corresponding memory size is then 512KB.
Fig. 1 is the stream for the method that a kind of automatic test SSD power down provided in an embodiment of the present invention influences data consistency Journey schematic diagram, with reference to Fig. 1, a kind of automatic test SSD power down of the present invention includes step S10- on the method that data consistency influences S50。
S10, automatic test environment is built.
For step S10, building for environment, including hardware components and software section are tested.Hardware components include test master Machine, and it is connected to the SSD to be tested of test host, test mainboard electrical connection SSD power supply driver (the PCIe SSD of host Power Adaptor), M.2 connecting plate, SSD power supply driver are electrically connected in M.2 connecting plate for SSD electrical connection to be tested, are realized and are surveyed Try the communication connection of host and SSD to be tested.Specifically, SSD power supply driver controls SSD for the power drives as SSD Power-on and power-off;M.2 pinboard main function is to provide an interface for the information transmission of SSD.In addition, also connecting on test host It is connected to keyboard, mouse and display.
Software section includes the desktop operating system, such as Win7 or Win10 etc. being installed on test host, and installation In the Driver Master software of desktop operating system, Driver Master software is for compiling and running test script Test script provides the environment of an operation and compiling, realizes the data consistency of automatic test SSD.
Referring to Fig. 2, in one embodiment, step S10 includes step S11-S13.
S11, test host is electrically connected with SSD to be detected.
S12, test script running environment is pre-seted.
S13, presetting test variable.
Step S11 specifically: test host is electrically connected to SSD power supply driver, M.2 SSD to be detected is electrically connected to turns Fishplate bar, and M.2 will be electrically connected SSD power supply driver by connecting plate.SSD to be tested is linked into test host, is passed through Test host can control SSD to be tested to be written and read.
It for step S12, sets before test script brings into operation, to guarantee that test script is led in test Stable operation in machine, specifically, the environmental variance of setting includes NVMe Controller mark data, SSD reconstructed mapped table Time initial value, timing initial value, and maximum Block (units chunk, for data to be written) quantity etc..Specifically, maximum Block quantity can be 128.
With reference to Fig. 3, in one embodiment, step S12 includes step S121-S125.
S121, NVMe Controller mark data is listed.
S122, setting SSD reconstructed mapped table time initial value are 0.
S123, setting timing are 0.
S124, enabled write cache.
S125, the maximum unit number of blocks of setting.
Test variable is preset, test variable includes before test automatically for step S13 Blocksize, LBA (Logical Block Address, logical block addresses) and TESTERROR.
S20, it is tested in environment in automatic, runs automatic test script.
Step S20 is compiled and run corresponding in Drive Master software after putting up test environment Test script realizes that automatic test SSD power down influences data consistency by test script.
S30, SSD is written into test data.
For step S30, test data is written in SSD and specifies before SSD power-down rebooting by test script operation Units chunk, for the basic sample as comparison of data consistency, by compare write-in data before and after SSD power-down rebooting and Data are read, and then may determine that power-down rebooting for the influence degree of the data consistency of the SSD.It should be understood that The test data size of write-in can be selected according to the process of test and the SSD of test, such as can be 400KB size Data, or the data of 128MB size can also be 4GB.
With reference to Fig. 4, in one embodiment, step S30 includes step S31 and S32.
S31, the unit number of blocks that write buffer is set.
S32, test data is written to the units chunk after setting in order.
For step S31, SSD only after writing a upper units chunk completely, can just write data when data are written Enter in next units chunk.Therefore the unit number of blocks of write buffer is preset, such as 8,32, and 16 etc., recycling will survey Examination data are written in the units chunk after setting, and all units chunks are write completely, in a specific embodiment, can be to unit The specific character of recurrent wrIting in block, such as " 0055AA00 ".
For step S32, after setting the quantity of write buffer, each different units chunk has different logic areas Block address (LBA) is successively sequentially written in test data according to LBA, guarantees the high efficiency and accuracy of write-in data, convenient for subsequent It is compared with the read data of power-down rebooting, further judges the consistency of data.
S40, power-down rebooting SSD.
For step S40, hardware controls power initiation/closing of SSD by SSD power supply driver, when actual test, Test script operation calls PCLePwCycle.eni program file control SSD to carry out power-on and power-off, and then controls the starting of SSD, closes It closes and restarts, simulate SSD power-down state, and restart SSD and be read out data and further compared.
In one embodiment, step S40 specifically: PCLePwCycle.eni program file is called to carry out up and down SSD Electricity, control SSD are restarted.
The consistency of test data before and after S50, detection SSD power down.
For step S50, the buffer of write-in data write-in is obtained, after SSD power-down rebooting, test script operation is read It takes SSD that data are written, and obtains the read buffer for reading data, by comparing variation of the read buffer relative to write buffer, Influence of the SSD power-down rebooting for the data consistency of SSD read and write operation can further be obtained.
Referring to Fig. 5, in one embodiment, step S50 includes step S51-S53.
S51, SSD test data is read.
S52, comparison read buffer and write buffer.
S53, judgement read and write the consistency of data.
For step S51, after SSD power-down rebooting, automatic read test data, and obtain the unit where read data Block, and then read buffer is obtained according to the units chunk where read data.
It is just to write data into next list after current one block is write completely when due to data write-in for step S52 In the block of position, therefore, when data are lost, the data mode of units chunk can and then change, and pass through comparison read buffer and Write post Device, and then determine the data mode situation of change of units chunk, SSD power-down rebooting is obtained, the influence for SSD data consistency.
The data mode situation of change of units chunk is determined by comparison read buffer and write buffer for step S53, Determine reading and write the consistency of data, and then obtains SSD power-down rebooting, the influence for SSD data consistency.The present invention is based on Driver Master tests influence of the SSD power down for data consistency automatically, automatically writes especially by before SSD power down Test data after controlling SSD power-down rebooting, reads the test data after restarting, and to judge the consistency of data, is situated between without artificial Enter, improves the testing efficiency of SSD data consistency, reduce testing cost.
Fig. 6 is showing for the device that test SSD power down influences data consistency a kind of automatically provided in an embodiment of the present invention Meaning property block diagram.As shown in fig. 6, correspond to a kind of method that automatic test SSD power down influences data consistency of above embodiments, The present invention also provides a kind of devices that automatic test SSD power down influences data consistency.The automatic test SSD power down is to data The device that consistency influences includes the unit for executing the method that above-mentioned automatic test SSD power down influences data consistency, The device can be configured in desktop computer, tablet computer, laptop computer, etc. in terminals.Specifically, referring to Fig. 6, this is automatic Test SSD power down includes environmental structure unit 10, script running unit 20, data write-in list on the device that data consistency influences Member 30, power-down rebooting unit 40 and data detecting unit 50.
Environmental structure unit 10, for building automatic test environment.
For environmental structure unit 10, building for environment, including hardware components and software section are tested.Hardware components include Host is tested, and is connected to the SSD to be tested of test host, tests the mainboard electrical connection SSD power supply driver (PCIe of host SSD Power Adaptor), M.2 connecting plate, SSD power supply driver are electrically connected in M.2 connecting plate for SSD electrical connection to be tested, real Now test the communication connection of host and SSD to be tested.Specifically, SSD power supply driver is for the power drives as SSD, control SSD power-on and power-off processed;M.2 pinboard main function is to provide an interface for the information transmission of SSD.In addition, test host On be also connected with keyboard, mouse and display.
Software section includes the desktop operating system, such as Win7 or Win10 etc. being installed on test host, and installation In the Driver Master software of desktop operating system, Driver Master software is for compiling and running test script Test script provides the environment of an operation and compiling, realizes the data consistency of automatic test SSD.
Specifically, setting before test script brings into operation, to guarantee test script in test host Stable operation, specifically, the environmental variance of setting includes NVMe Controller mark data, the SSD reconstructed mapped table time Initial value, timing initial value, and maximum Block (units chunk, for data to be written) quantity etc..
Specifically, presetting test variable, test variable includes blocksize, LBA before test automatically (Logical Block Address, logical block addresses) and TESTERROR.
Script running unit 20, for running automatic test script in test environment automatically.
Script running unit 20 is compiled and transported in Drive Master software after putting up test environment The corresponding test script of row realizes that automatic test SSD power down influences data consistency by test script.
Data write unit 30, for SSD to be written in test data.
For data write unit 30, before SSD power-down rebooting, test data is written to the unit specified in SSD Block by the write-in data before and after comparison SSD power-down rebooting and reads number for the basic sample as comparison of data consistency According to, and then may determine that power-down rebooting for the influence degree of the data consistency of the SSD.It should be understood that write-in Test data size can be selected according to the process of test and the SSD of test, such as can be the data of 400KB size, Or the data of 128MB size, it can also be 4GB.
Referring to Fig. 7, in one embodiment, single 30 yuan of data write-in include setup module 31 and writing module 32.
Setup module 31, for the block unit number of blocks of write buffer to be arranged.
Writing module 32, for test data to be written to the block units chunk after being arranged in order.
For setup module 31, SSD, just can be by number only after writing a upper units chunk completely when data are written According in the next units chunk of write-in.Therefore the unit number of blocks of write buffer is preset, such as 8,32, and 16 etc., recycling Test data is written in the units chunk after setting, all units chunks are write completely, in a specific embodiment, Ke Yixiang The specific character of recurrent wrIting in units chunk, such as " 0055AA00 ".
For writing module 32, after setting the quantity of write buffer, each different units chunk has different patrol It collects block address (LBA), test data is successively sequentially written according to LBA, guarantees the high efficiency and accuracy of write-in data, is convenient for It is subsequent to be compared with the read data of power-down rebooting, further judge the consistency of data.
Power-down rebooting unit 40 is used for power-down rebooting SSD.
For power-down rebooting unit 40, hardware controls the power drives of SSD, actual test by SSD power supply driver When, by call PCLePwCycle.eni program file control SSD carry out power-on and power-off, and then control SSD starting, close and Restart, simulate SSD power-down state, and restarts SSD and be read out data and further compared.
Specifically, power-down rebooting unit 40 carries out SSD also particularly useful for calling PCLePwCycle.eni program file Lower electricity, control SSD are restarted.
Data detecting unit 50, for detecting the consistency of SSD power down front and back test data.
For data detecting unit 50, the buffer of write-in data write-in is obtained, after SSD power-down rebooting, reads SSD Data are written, and obtain the read buffer for reading data, by comparing variation of the read buffer relative to write buffer, Ke Yijin One step obtains influence of the SSD power-down rebooting for the data consistency of SSD read and write operation.
Referring to Fig. 8, in one embodiment, data detecting unit 50 includes data read module 51, contrast module 52 and is sentenced Disconnected module 53.
Data read module 51, for reading SSD test data.
Contrast module 52, for comparing read buffer and write buffer.
Judgment module 53, for judging reading and writing the consistency of data.
For data read module 51, after SSD power-down rebooting, automatic read test data, and obtain read data institute Units chunk, and then read buffer is obtained according to the units chunk where read data.
For contrast module 52, when due to data write-in, be current one block write it is full after just write data into it is next In a units chunk, therefore, when data are lost, the data mode of units chunk can and then change, and by comparison read buffer and write Buffer, and then determine the data mode situation of change of units chunk, SSD power-down rebooting is obtained, for the shadow of SSD data consistency It rings.
The data mode variation feelings of units chunk are determined by comparison read buffer and write buffer for judgment module 53 The consistency of data is read and is write in condition, judgement, and then obtains SSD power-down rebooting, the influence for SSD data consistency.
The present invention is based on Driver Master to test influence of the SSD power down for data consistency automatically, especially by Test data is automatically write before SSD power down, after controlling SSD power-down rebooting, the test data after restarting is read, to judge data Consistency is not necessarily to artificial intervention, improves the testing efficiency of SSD data consistency, reduce testing cost.
It should be noted that it is apparent to those skilled in the art that, the above-mentioned automatic test SSD of one kind falls Electricity, can be with reference to corresponding in preceding method embodiment on the specific implementation process of the data consistency device influenced and each unit Description, for convenience of description and succinctly, details are not described herein.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of method that automatic test SSD power down influences data consistency, which comprises the following steps:
Build automatic test environment;
In test environment automatically, automatic test script is run;
SSD is written into test data;
Power-down rebooting SSD;
Detect the consistency of SSD power down front and back test data.
2. the method that automatic test SSD power down according to claim 1 influences data consistency, which is characterized in that institute It states and builds automatic test environment step, including,
Test host is electrically connected with SSD to be detected;
Pre-set test script running environment;
Presetting test variable.
3. the method that automatic test SSD power down according to claim 2 influences data consistency, which is characterized in that institute It states test host and SSD electrical connecting step to be detected, including,
Test host is electrically connected to SSD power supply driver, SSD to be detected is electrically connected to M.2 pinboard, and will M.2 connecting plate It is electrically connected SSD power supply driver.
4. the method that automatic test SSD power down according to claim 2 influences data consistency, which is characterized in that institute It states and pre-sets test script running environment step, including,
List NVMe Controller mark data;
It is 0 that SSD reconstructed mapped table time initial value, which is arranged,;
It is 0 that timing, which is arranged,;
Enabled write cache;
Maximum unit number of blocks is set.
5. the method that automatic test SSD power down according to claim 1 influences data consistency, which is characterized in that institute It states and SSD step is written into test data, including,
The unit number of blocks of write buffer is set;
Test data is written to the units chunk after setting in order.
6. the method that automatic test SSD power down according to claim 1 influences data consistency, which is characterized in that institute The consistency step of SSD data before and after checking power down is stated, including,
Read SSD test data;
Compare read buffer and write buffer;
The consistency of data is read and is write in judgement.
7. the method that automatic test SSD power down according to claim 1 influences data consistency, which is characterized in that institute Power-down rebooting SSD step is stated, including,
PCLePwCycle.eni program file is called to carry out power-on and power-off to SSD, control SSD is restarted.
8. a kind of device that automatic test SSD power down influences data consistency characterized by comprising
Environmental structure unit, for building automatic test environment;
Script running unit, for running automatic test script in test environment automatically;
Data write unit, for SSD to be written in test data;
Power-down rebooting unit is used for power-down rebooting SSD;
Data detecting unit, for detecting the consistency of SSD power down front and back test data.
9. the device that automatic test SSD power down according to claim 8 influences data consistency, which is characterized in that institute Stating data write unit includes setup module and writing module;
The setup module, for the unit number of blocks of write buffer to be arranged;
The write module, for test data to be written to the units chunk after being arranged in order.
10. the device that automatic test SSD power down according to claim 9 influences data consistency, which is characterized in that institute Stating data detecting unit includes data read module, contrast module and judgment module;
The data read module, for reading SSD test data;
The contrast module, for comparing read buffer and write buffer;
The judgment module, for judging reading and writing the consistency of data.
CN201910703516.5A 2019-07-31 2019-07-31 The method and device that automatic test SSD power down influences data consistency Pending CN110427289A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703516.5A CN110427289A (en) 2019-07-31 2019-07-31 The method and device that automatic test SSD power down influences data consistency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703516.5A CN110427289A (en) 2019-07-31 2019-07-31 The method and device that automatic test SSD power down influences data consistency

Publications (1)

Publication Number Publication Date
CN110427289A true CN110427289A (en) 2019-11-08

Family

ID=68413515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703516.5A Pending CN110427289A (en) 2019-07-31 2019-07-31 The method and device that automatic test SSD power down influences data consistency

Country Status (1)

Country Link
CN (1) CN110427289A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104275A (en) * 2019-12-24 2020-05-05 湖南国科微电子股份有限公司 Automatic testing method and device for flash SSD hard disk power supply
CN111552601A (en) * 2020-04-29 2020-08-18 深圳忆联信息系统有限公司 SSD abnormal power failure test method and device, computer equipment and storage medium
CN113377588A (en) * 2021-06-08 2021-09-10 深圳忆联信息系统有限公司 Sustainable integration test method and device for hard disk and computer equipment
CN114584498A (en) * 2020-12-01 2022-06-03 成都鼎桥通信技术有限公司 Method, device, equipment, system and product for testing power on and power off of gateway equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576860A (en) * 2009-06-11 2009-11-11 成都市华为赛门铁克科技有限公司 Detection method and detection system
US20150095723A1 (en) * 2013-09-30 2015-04-02 Unitest Inc. Detection system for detecting fail block using logic block address and data buffer address in a storage tester
CN108710583A (en) * 2018-05-28 2018-10-26 深圳忆联信息系统有限公司 Management method, device, computer equipment and the medium in SSD write buffers area
CN109766230A (en) * 2019-01-09 2019-05-17 深圳忆联信息系统有限公司 Single-deck SSD powered-off fault test method, device and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576860A (en) * 2009-06-11 2009-11-11 成都市华为赛门铁克科技有限公司 Detection method and detection system
US20150095723A1 (en) * 2013-09-30 2015-04-02 Unitest Inc. Detection system for detecting fail block using logic block address and data buffer address in a storage tester
CN108710583A (en) * 2018-05-28 2018-10-26 深圳忆联信息系统有限公司 Management method, device, computer equipment and the medium in SSD write buffers area
CN109766230A (en) * 2019-01-09 2019-05-17 深圳忆联信息系统有限公司 Single-deck SSD powered-off fault test method, device and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李思思等: "固态盘测试系统的设计与实现", 《计算机研究与发展》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111104275A (en) * 2019-12-24 2020-05-05 湖南国科微电子股份有限公司 Automatic testing method and device for flash SSD hard disk power supply
CN111552601A (en) * 2020-04-29 2020-08-18 深圳忆联信息系统有限公司 SSD abnormal power failure test method and device, computer equipment and storage medium
CN114584498A (en) * 2020-12-01 2022-06-03 成都鼎桥通信技术有限公司 Method, device, equipment, system and product for testing power on and power off of gateway equipment
CN114584498B (en) * 2020-12-01 2023-08-15 成都鼎桥通信技术有限公司 Gateway equipment power-on and power-off test method, device, equipment, system and product
CN113377588A (en) * 2021-06-08 2021-09-10 深圳忆联信息系统有限公司 Sustainable integration test method and device for hard disk and computer equipment

Similar Documents

Publication Publication Date Title
CN110427289A (en) The method and device that automatic test SSD power down influences data consistency
CN102568522B (en) The method of testing of hard disk performance and device
CN105738854A (en) Simulation memory test board system for intelligent ammeter embedded application and test method
CN104850485A (en) BMC based method and system for remote diagnosis of server startup failure
CN102567171B (en) Method for testing blade server mainboard
CN102541711B (en) Method for testing X86 architecture server mainboards
US11221933B2 (en) Holdup self-tests for power loss operations on memory systems
CN110618892B (en) Bug positioning method and device of solid state disk, electronic equipment and medium
CN104317684A (en) Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces
US11841398B2 (en) Method and apparatus and non-transitory computer-readable storage medium for debugging solid-state disk (SSD) device
CN111104275A (en) Automatic testing method and device for flash SSD hard disk power supply
KR20220161200A (en) Systems and methods for concurrent and automated testing of zoned namespace solid state drives
CN106354598A (en) One-time programmable microcontroller debugging method based on flash memory
CN114138527A (en) Method, device and medium for improving performance of server
CN101727371A (en) Method for adding and running memory testing tool in BIOS
US11933847B2 (en) Apparatus and system for debugging solid-state disk (SSD) device
CN115422091A (en) Firmware debugging method and device, electronic equipment and storage medium
CN110716833B (en) Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state
CN109686397A (en) Memory with self-checking function and its checking method
Wang FreeRTOS software system based on Chinese Micro-Control Unit
TWI794997B (en) Method and apparatus and computer program product for debugging solid state disk devices
CN116758973B (en) Testing method for unexpected power failure data verification of enterprise-level solid state disk
Liu et al. VST: A virtual stress testing framework for discovering bugs in SSD flash-translation layers
CN109324934A (en) A kind of pressure detection method and system of AEP memory interface
CN108664399A (en) Processor chips emulator and power down test 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191108