CN113611353A - Method and device for realizing hard disk test, computer storage medium and terminal - Google Patents

Method and device for realizing hard disk test, computer storage medium and terminal Download PDF

Info

Publication number
CN113611353A
CN113611353A CN202110949141.8A CN202110949141A CN113611353A CN 113611353 A CN113611353 A CN 113611353A CN 202110949141 A CN202110949141 A CN 202110949141A CN 113611353 A CN113611353 A CN 113611353A
Authority
CN
China
Prior art keywords
ssd
data
time length
writing
writing speed
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
CN202110949141.8A
Other languages
Chinese (zh)
Inventor
吴莉莉
张志�
张明
李蒙蒙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Datang Storage Technology Co ltd
Original Assignee
Hefei Datang Storage Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Datang Storage Technology Co ltd filed Critical Hefei Datang Storage Technology Co ltd
Priority to CN202110949141.8A priority Critical patent/CN113611353A/en
Publication of CN113611353A publication Critical patent/CN113611353A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Abstract

The text discloses a method, a device, a computer storage medium and a terminal for realizing hard disk test, comprising: counting a writing speed when first data of a first preset quantity are written into a Solid State Disk (SSD); determining a performance of a Single Level Cell (SLC) cache of the SSD according to the counted write speed; the embodiment of the invention only writes the data with the size larger than the SLC cache size into the SSD, avoids time consumption and manpower resource consumption caused by traversal test, determines the performance of the SLC cache of the SSD according to the writing speed when the data with the preset value is written into the SSD, and improves the test efficiency of the solid state disk.

Description

Method and device for realizing hard disk test, computer storage medium and terminal
Technical Field
The present disclosure relates to, but not limited to, hard disk test technologies, and in particular, to a method, an apparatus, a computer storage medium, and a terminal for implementing a hard disk test.
Background
When the Solid State Disk (SSD) works, a Flash Translation Layer (FTL) algorithm is required to be used inside, the FTL algorithm is mainly used for completing the conversion from a logical address of a Host (Host) to a physical address of a Flash memory (Flash), the complexity of the FTL algorithm lies in that different algorithm strategies are adopted for supporting different NAND gate Flash memory (NAND) particles, and different NAND particles represent different application characteristics, so that the research and development and mass production test of the SSD are always difficult.
At present, in order to meet SSD development and mass production, tests meeting reliability and stability are generally obtained by increasing sample size and test duration, including: SLC cache performance testing, SSD stress testing, and the like; during testing, traversal testing is performed on the SSD based on the black box principle, technicians are required to edit a large number of test cases, testing duration generally needs to last more than half a year, and when the SSD firmware is subjected to iterative updating, testing needs to be performed again.
The method has the advantages of long test time, large consumption of human resources and low test efficiency, and influences the research, development and application of the SSD.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention provides a method and a device for realizing hard disk test, a computer storage medium and a terminal, which can reduce the time and human resource consumption of hard disk test and improve the test efficiency of a solid state disk.
The embodiment of the invention provides a method for realizing hard disk test, which comprises the following steps:
counting the writing speed when first data of a first preset quantity are written into the Solid State Disk (SSD);
determining the performance of single-layer unit SLC high-speed buffering of the SSD according to the counted writing speed;
wherein a value of the first predetermined number is greater than a value of an SLC cache size of the SSD.
On the other hand, an embodiment of the present invention further provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for implementing the hard disk test is implemented.
In another aspect, an embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having a computer program stored therein; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of implementing hard disk testing as described above.
In another aspect, an embodiment of the present invention further provides an apparatus for implementing a hard disk test, where the apparatus includes: a counting unit and a determining unit; wherein the content of the first and second substances,
the statistical unit is set as: counting the writing speed when first data of a first preset quantity are written into the Solid State Disk (SSD);
the determination unit is configured to: determining the SLC cache performance of the SSD according to the counted writing speed;
wherein a value of the first predetermined number is greater than a value of an SLC cache size of the SSD.
The technical scheme of the application includes: counting a writing speed when first data of a first preset quantity are written into a Solid State Disk (SSD); determining a performance of a Single Level Cell (SLC) cache of the SSD according to the counted write speed; the embodiment of the invention only writes the data with the size larger than the SLC cache size into the SSD, avoids time consumption and manpower resource consumption caused by traversal test, determines the performance of the SLC cache of the SSD according to the writing speed when the data with the preset value is written into the SSD, and improves the test efficiency of the solid state disk.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flowchart of a method for implementing hard disk test according to an embodiment of the present invention;
fig. 2 is a block diagram of a device for implementing hard disk test according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for implementing hard disk test according to an embodiment of the present invention, as shown in fig. 1, including:
step 101, counting a writing speed when first data with a first preset quantity is written into a Solid State Disk (SSD);
in an exemplary embodiment, the first predetermined number in the embodiment of the present invention is a value larger than a Single-Level Cell (SLC) Cache size of the SSD. Here, the preset value of the embodiment of the present invention is only required to be larger than the SLC cache size; the specific data amount may be set empirically by those skilled in the art.
In an exemplary embodiment, the embodiment of the present invention may perform statistics on data writing and writing speed through a test script with a reading and writing performance statistics function.
And step 102, determining the SLC cache performance of the SSD according to the counted writing speed.
The embodiment of the invention only writes the data larger than the SLC high-speed buffer size into the SSD, avoids time consumption and manpower resource consumption caused by traversal test, determines the SLC high-speed buffer performance of the SSD according to the writing speed when the data with the preset value is written into the SSD, and improves the test efficiency of the solid state disk.
In an exemplary embodiment, before counting a writing speed when writing the first preset amount of the first data to the SSD, the method according to the embodiment of the present invention further includes:
the SLC cache size is obtained.
In an illustrative example, the embodiment of the present invention obtains the value of the SLC cache size through a preset protocol; the preset protocol may comprise an algorithmic protocol known to those skilled in the art.
In one illustrative example, embodiments of the invention determine the performance of the SLC cache of an SSD based on statistical write speeds, including:
comparing the writing speed with a preset NAND gate (NAND) reading and writing theoretical speed value to obtain a comparison result;
and determining the performance of the SLC cache according to the comparison result.
In an exemplary embodiment, the comparison between the writing speed and the NAND writing-reading theoretical speed value according to the embodiment of the present invention can be implemented by: after drawing a curve graph according to the statistical writing speed, comparing the writing speed with the NAND reading-writing theoretical speed value through the curve graph; after obtaining the comparison result, the performance of the SLC cache can be determined by referring to the test theory in the related art, which is not described herein.
In one illustrative example, when it is determined that the performance of the SLC cache does not meet the predetermined design requirement, the method of embodiments of the present invention further comprises: feedback of the determined SLC cache performance.
In an exemplary embodiment, after counting a writing speed when writing the first preset amount of the first data to the SSD, the method according to the embodiment of the present invention further includes:
the first data written to the SSD is deleted.
In an illustrative example, embodiments of the invention may issue a remove (trim) command via a script command issuing function; and deleting the first data written into the SSD according to the issued trim command.
In an illustrative example, a method of an embodiment of the present invention further includes:
recording a first time length from writing the first data to the SSD to deleting the first data written to the SSD;
counting the writing speed of writing a second preset amount of second data into the SSD, deleting the second data written into the SSD, recording a second time length from the writing of the second data into the SSD to the deletion of the second data written into the SSD, and adding the second time length to the first time length to obtain a total time length; and when the total time length is less than the preset time length, continuously executing: counting a writing speed of writing the second data into the SSD, deleting the second data written into the SSD, recording a second time length from the writing of the second data into the SSD to the deletion of the second data written into the SSD, and accumulating the second time length to a total time length; stopping until the total accumulated time length is greater than or equal to a preset time length;
and determining a pressure test result of the SSD according to the statistical writing speed of the first data and the statistical writing speed of the second data.
According to the embodiment of the invention, when the total time length is less than the preset time length, the writing and deleting operations of the second data are continuously executed, and until the total time length is more than or equal to the preset time length, the pressure test result of the SSD is determined according to the writing speed of each writing executed in the preset time length.
In an exemplary instance, the second data may be the same data as the first data or may be different data from the first data; the value of the second preset number in the embodiment of the invention is larger than the value of the SLC cache size of the SSD.
In an exemplary embodiment, the preset time period in the embodiment of the present invention may be set by a person skilled in the art according to the requirement of the pressure test, for example, 96 hours. Compared with the prior art that the size of the SLC cache is uncertain and different SLC caches need to be traversed, the embodiment of the invention does not need to traverse the data volume written into the SSD, reduces the number of the editing test cases and the test times, and improves the test efficiency of the hard disk.
The embodiment of the invention also provides a computer storage medium, wherein a computer program is stored in the computer storage medium, and the method for realizing the hard disk test is realized when the computer program is executed by the processor.
An embodiment of the present invention further provides a terminal, including: a memory and a processor, the memory having stored therein a computer program; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by a processor, implements a method of implementing hard disk testing as described above.
Fig. 2 is a block diagram of a structure of a device for implementing hard disk test according to an embodiment of the present invention, as shown in fig. 2, including: a counting unit and a determining unit; wherein the content of the first and second substances,
the statistical unit is set as: counting the writing speed when first data of a first preset quantity are written into the Solid State Disk (SSD);
the determination unit is configured to: determining the SLC cache performance of the SSD according to the counted writing speed;
wherein the value of the first predetermined number is greater than the value of the SLC cache size of the SSD.
The embodiment of the invention only writes the data larger than the SLC high-speed buffer size into the SSD, avoids time consumption and manpower resource consumption caused by traversal test, determines the SLC high-speed buffer performance of the SSD according to the writing speed when the data with the preset value is written into the SSD, and improves the test efficiency of the solid state disk.
In an exemplary embodiment, the determining unit of the embodiment of the present invention is configured to:
comparing the writing speed with a preset NAND reading-writing theoretical speed value to obtain a comparison result;
and determining the performance of the SLC cache according to the comparison result.
In an exemplary embodiment, the apparatus of the embodiment of the present invention further includes a deleting unit configured to:
the data written to the SSD is deleted.
In an illustrative example, an apparatus of an embodiment of the present invention further includes: a recording unit;
the recording unit is configured to: recording a first time length from writing the first data to the SSD to deleting the first data written to the SSD; recording a second time length from writing of the second data into the SSD to deletion of the second data written into the SSD, and adding the second time length to the first time length to obtain a total time length; when the writing speed of the second data written into the SSD is continuously counted, recording a second time length from the writing of the second data into the SSD to the deletion of the second data written into the SSD, and accumulating the second time length to the total time length; stopping until the total accumulated time length is greater than or equal to a preset time length;
the statistical unit is further configured to: counting the writing speed of writing a second preset amount of second data into the SSD, and deleting the second data written into the SSD; and when the total time length is less than the preset time length, continuously executing: counting the writing speed of writing the second data into the SSD;
the deletion unit is further configured to: deleting the second data written to the SSD;
the determination unit is further configured to: and determining a pressure test result of the SSD according to the statistical writing speed of the first data written into the SSD and the statistical writing speed of the second data written into the SSD when the total time length obtained by the accumulation determined by the recording unit is greater than or equal to the preset time length.
In an exemplary embodiment, the preset time period in the embodiment of the present invention may be set by a person skilled in the art according to the requirement of the pressure test, for example, 96 hours. Compared with the prior art that the size of the SLC cache is uncertain and different SLC caches need to be traversed, the embodiment of the invention does not need to traverse the data volume written into the SSD, reduces the number of the editing test cases and the test times, and improves the test efficiency of the hard disk.
"one of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art. ".

Claims (10)

1. A method for realizing hard disk test comprises the following steps:
counting the writing speed when first data of a first preset quantity are written into the Solid State Disk (SSD);
determining the performance of single-layer unit SLC high-speed buffering of the SSD according to the counted writing speed;
wherein a value of the first predetermined number is greater than a value of an SLC cache size of the SSD.
2. The method of claim 1, wherein determining the performance of the SLC cache of the SSD based on the statistical write speed comprises:
comparing the writing speed with a preset NAND reading and writing theoretical speed value to obtain a comparison result;
and determining the performance of the SLC cache according to the comparison result.
3. The method according to claim 1 or 2, wherein after counting the writing speed when writing the first preset amount of the first data to the SSD, the method further comprises:
deleting the first data written to the SSD.
4. The method of claim 3, further comprising:
recording a first length of time from the writing of the first data to SSD to the deleting of the first data written to SSD;
counting the writing speed of writing a second preset amount of second data into the SSD, deleting the second data written into the SSD, recording a second time length from the writing of the second data into the SSD to the deletion of the second data written into the SSD, and adding the second time length and the first time length to obtain a total time length; and when the total time length is less than the preset time length, continuously executing: counting a writing speed of the second data written into the SSD, deleting the second data written into the SSD, recording a second time length from the writing of the second data into the SSD to the deletion of the second data written into the SSD, and accumulating the second time length to the total time length; stopping until the total accumulated time length is greater than or equal to the preset time length;
and determining a pressure test result of the SSD according to the statistical writing speed of the first data and the statistical writing speed of the second data.
5. A computer storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing a method of implementing a hard disk test as claimed in any one of claims 1 to 4.
6. A terminal, comprising: a memory and a processor, the memory having a computer program stored therein; wherein the content of the first and second substances,
the processor is configured to execute the computer program in the memory;
the computer program, when executed by the processor, implements a method of implementing hard disk testing as claimed in any of claims 1-4.
7. An apparatus for implementing hard disk test, comprising: a counting unit and a determining unit; wherein the content of the first and second substances,
the statistical unit is set as: counting the writing speed when first data of a first preset quantity are written into the Solid State Disk (SSD);
the determination unit is configured to: determining the SLC cache performance of the SSD according to the counted writing speed;
wherein a value of the first predetermined number is greater than a value of an SLC cache size of the SSD.
8. The apparatus of claim 7, wherein the determining unit is configured to:
comparing the writing speed with a preset NAND reading and writing theoretical speed value to obtain a comparison result;
and determining the performance of the SLC cache according to the comparison result.
9. The apparatus according to claim 7 or 8, characterized in that the apparatus further comprises a deletion unit arranged to:
deleting the first data written to the SSD.
10. The apparatus of claim 9, further comprising a recording unit;
the recording unit is configured to: recording a first length of time from the writing of the first data to SSD to the deleting of the first data written to SSD; recording a second time length from the writing of the second data into the SSD to the deleting of the second data written into the SSD, and adding the second time length to the first time length to obtain a total time length; when the writing speed of the second data written into the SSD is continuously counted, recording a second time length from the writing of the second data into the SSD to the deletion of the second data written into the SSD, and accumulating the second time length to the total time length; stopping until the total accumulated time length is greater than or equal to the preset time length;
the statistical unit is further configured to: counting the writing speed of writing a second preset amount of second data into the SSD, and deleting the second data written into the SSD; and when the total time length is less than the preset time length, continuously executing: counting a writing speed of the second data to the SSD;
the deletion unit is further configured to: deleting the second data written to the SSD;
the determination unit is further configured to: and determining a pressure test result of the SSD according to the statistical writing speed of the first data written into the SSD and the statistical writing speed of the second data written into the SSD when the total time length obtained by the accumulation determined by the recording unit is greater than or equal to the preset time length.
CN202110949141.8A 2021-08-18 2021-08-18 Method and device for realizing hard disk test, computer storage medium and terminal Pending CN113611353A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110949141.8A CN113611353A (en) 2021-08-18 2021-08-18 Method and device for realizing hard disk test, computer storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110949141.8A CN113611353A (en) 2021-08-18 2021-08-18 Method and device for realizing hard disk test, computer storage medium and terminal

Publications (1)

Publication Number Publication Date
CN113611353A true CN113611353A (en) 2021-11-05

Family

ID=78308889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110949141.8A Pending CN113611353A (en) 2021-08-18 2021-08-18 Method and device for realizing hard disk test, computer storage medium and terminal

Country Status (1)

Country Link
CN (1) CN113611353A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104658611A (en) * 2013-11-25 2015-05-27 深圳市国微电子有限公司 Method and system for testing abnormal power failure of solid-state hard disk
CN107506270A (en) * 2017-08-24 2017-12-22 郑州云海信息技术有限公司 A kind of method of test SSD uniformity
US20170371794A1 (en) * 2016-06-28 2017-12-28 Dell Products, Lp System and method for dynamic optimization for burst and sustained performance in solid state drives
CN107680632A (en) * 2016-08-01 2018-02-09 大唐移动通信设备有限公司 The life testing method and device of a kind of solid state hard disc
CN113064843A (en) * 2021-03-24 2021-07-02 深圳市时创意电子有限公司 Manufacturing method of solid state disk and solid state disk

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104658611A (en) * 2013-11-25 2015-05-27 深圳市国微电子有限公司 Method and system for testing abnormal power failure of solid-state hard disk
US20170371794A1 (en) * 2016-06-28 2017-12-28 Dell Products, Lp System and method for dynamic optimization for burst and sustained performance in solid state drives
CN107680632A (en) * 2016-08-01 2018-02-09 大唐移动通信设备有限公司 The life testing method and device of a kind of solid state hard disc
CN107506270A (en) * 2017-08-24 2017-12-22 郑州云海信息技术有限公司 A kind of method of test SSD uniformity
CN113064843A (en) * 2021-03-24 2021-07-02 深圳市时创意电子有限公司 Manufacturing method of solid state disk and solid state disk

Similar Documents

Publication Publication Date Title
US9811457B2 (en) Data placement based on data retention in a tiered storage device system
US9639275B2 (en) Managing data within a storage device based on file system metadata
US20130293980A1 (en) Method and system for mitigating adjacent track erasure in hard disk drives
US8892812B2 (en) Flash memory device and data writing method for a flash memory
US9535611B2 (en) Cache memory for hybrid disk drives
CN108628542B (en) File merging method and controller
CN111221922A (en) RocksDB database data writing method and RocksDB database
CN113282249B (en) Data processing method, system, device and medium
CN110504002B (en) Hard disk data consistency test method and device
CN114253483B (en) Command-based write cache management method and device, computer equipment and storage medium
CN111858402A (en) Read-write data processing method and system based on cache
CN113611353A (en) Method and device for realizing hard disk test, computer storage medium and terminal
CN108958657B (en) Data storage method, storage device and storage system
CN115938464A (en) Test method and system of solid state disk, electronic device and readable storage medium
CN114296644A (en) Data management method and device for solid state disk
CN111324284B (en) Memory device
US20090187719A1 (en) Data backup method for logical volume manager
CN108776578B (en) Method and system for rapidly merging objects
CN112433959A (en) Method and device for realizing data storage processing, computer storage medium and terminal
CN112765050B (en) Method for adapting NFTL algorithm to NAND Flash and storage device
CN114415940B (en) Method for reducing read interference of storage medium of embedded system
CN111949198A (en) Bad block management method and device and storage equipment
CN110750215A (en) Method and device for improving random reading performance of solid state disk and computer equipment
CN112684981B (en) Method, system and device for recording read operation of solid state disk and readable storage medium
CN111897489B (en) Data writing method, device, equipment and computer readable storage 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