A method, device, computer storage medium and terminal for implementing hard disk testing

By counting the writing speed of the solid-state drive to determine its SLC cache performance, it solves the problems of long SSD test time and high human resource consumption, improves test efficiency, and simplifies the test process.

CN113611353BActive Publication Date: 2024-10-08HEFEI DATANG STORAGE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110949141.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-18
Publication Date
2024-10-08
Estimated Expiration
2041-08-18

AI Technical Summary

Technical Problem

In the existing technology, the R&D and mass production testing of solid-state drives (SSDs) take a long time, require a large amount of human resources, and have low testing efficiency, which affects the R&D and application of SSDs.

Method used

By counting the writing speed when writing a preset amount of data to the solid-state drive, the performance of the SSD's single-layer unit (SLC) cache is determined, which avoids the consumption of time and human resources caused by traversal testing and improves testing efficiency.

Benefits of technology

It significantly reduces the time and human resource consumption of hard drive testing, improves the testing efficiency of solid-state drives, and reduces the number of test cases to be edited and the number of tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113611353B_ABST
    Figure CN113611353B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, an apparatus, a computer storage medium and a terminal for implementing a hard disk test, including: counting the write speed when writing a first preset amount of first data to a solid state disk (SSD); determining the performance of a single-layer unit (SLC) high-speed cache of the SSD according to the counted write speed; wherein the value of the first preset amount is greater than the value of the SLC high-speed cache size of the SSD. In an embodiment of the present invention, only data greater than the SLC high-speed cache size is written to the SSD, thereby avoiding time consumption and human resource consumption caused by traversal testing, and determining the performance of the SLC high-speed cache of the SSD by the write speed when writing data of a preset value to the SSD, thereby improving the test efficiency of the solid state disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This article relates to, but is not limited to, hard disk testing technology, and in particular to a method, device, computer storage medium, and terminal for implementing hard disk testing. Background Art

[0002] Solid-state drives (SSDs) require the use of a Flash Translation Layer (FTL) algorithm to convert the logical address of the host to the physical address of the flash memory. The complexity of the FTL algorithm lies in the fact that different algorithm strategies are used to support different NAND flash memory (NAND) particles. Different NAND particles exhibit different application characteristics. Therefore, the research and development and mass production testing of SSDs have always been difficult.

[0003] Currently, to meet the requirements of SSD R&D and mass production, the reliability and stability tests are generally obtained by increasing the sample size and test duration, including: SLC cache performance test and SSD stress test. During the test, the SSD is traversed based on the black box principle, and technicians need to edit a large number of test cases. The test duration generally takes more than half a year. When the SSD firmware is iteratively updated, it must be retested.

[0004] The above method takes a long time to test, requires a lot of human resources, and has low test efficiency, which affects the research and development and application of SSDs. Summary of the Invention

[0005] 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.

[0006] The embodiments of the present invention provide a method, device, computer storage medium and terminal for implementing hard disk testing, which can reduce the time and human resource consumption of hard disk testing and improve the testing efficiency of solid-state hard disks.

[0007] An embodiment of the present invention provides a method for implementing a hard disk test, comprising:

[0008] Counting a writing speed when writing a first preset amount of first data to the solid-state drive (SSD);

[0009] Determine the performance of the SSD's single-level cell (SLC) cache based on statistical write speeds;

[0010] The value of the first preset number is greater than the value of the SLC cache size of the SSD.

[0011] On the other hand, an embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium stores a computer program, and when the computer program is executed by a processor, the method for implementing the hard disk test is implemented.

[0012] In another aspect, an embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein the memory stores a computer program;

[0013] The processor is configured to execute the computer program in the memory;

[0014] When the computer program is executed by the processor, the method for implementing the hard disk test as described above is implemented.

[0015] In another aspect, an embodiment of the present invention further provides a device for implementing hard disk testing, comprising: a statistical unit and a determination unit; wherein,

[0016] The statistical unit is configured to: count a writing speed when writing a first preset amount of first data to the solid state drive SSD;

[0017] The determining unit is configured to: determine the performance of an SLC cache of the SSD according to a statistical write speed;

[0018] The value of the first preset number is greater than the value of the SLC cache size of the SSD.

[0019] The technical solution of the present application includes: counting the write speed when writing a first preset amount of first data to a solid-state drive (SSD); determining the performance of the single-layer cell (SLC) cache of the SSD based on the counted write speed; wherein the value of the first preset amount is greater than the value of the SLC cache size of the SSD. The embodiment of the present invention only writes data greater than the SLC cache size to the SSD, thereby avoiding the time consumption and human resource consumption caused by traversal testing, and determining the performance of the SLC cache of the SSD by the write speed when writing data of a preset value to the SSD, thereby improving the testing efficiency of the solid-state drive.

[0020] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0022] Figure 1 A flowchart of a method for implementing hard disk testing according to an embodiment of the present invention;

[0023] Figure 2 This is a structural block diagram of a device for implementing hard disk testing according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] To make the purpose, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other in any manner.

[0025] The steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions. Also, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be performed in an order different from that shown here.

[0026] Figure 1 This is a flow chart of a method for implementing a hard disk test according to an embodiment of the present invention. Figure 1 As shown, including:

[0027] Step 101: Counting the writing speed when writing a first preset amount of first data to a solid state drive (SSD);

[0028] In one exemplary embodiment, the first preset number in the embodiments of the present invention is greater than the SSD's single-level cell (SLC) cache size. The preset value in the embodiments of the present invention only needs to be greater than the SLC cache size; the specific data amount can be determined by those skilled in the art based on experience.

[0029] In an exemplary embodiment, the embodiment of the present invention can perform statistics on data writing and writing speed through a test script with a read and write performance statistics function.

[0030] Step 102: Determine the performance of the SLC cache of the SSD based on the statistical write speed.

[0031] The embodiment of the present invention only writes data larger than the SLC cache size to the SSD, avoiding the time and human resource consumption caused by traversal testing. The performance of the SLC cache of the SSD is determined by the write speed when writing data of a preset value to the SSD, thereby improving the testing efficiency of the solid-state drive.

[0032] In an exemplary embodiment, before calculating the writing speed when writing a first preset amount of first data to the SSD, the method according to the embodiment of the present invention further includes:

[0033] Gets the SLC cache size.

[0034] In an exemplary embodiment, the embodiment of the present invention obtains the value of the SLC cache size through a preset protocol; the preset protocol may include an algorithm protocol well known to those skilled in the art.

[0035] In an exemplary embodiment, an embodiment of the present invention determines the performance of an SLC cache of an SSD based on a statistical write speed, including:

[0036] Compare the write speed with a preset NAND gate (NAND) read / write theoretical speed value to obtain a comparison result;

[0037] The performance of the SLC cache is determined based on the comparison results.

[0038] In an exemplary embodiment, the comparison between the write speed of an embodiment of the present invention and the theoretical NAND read and write speed value can be achieved by: plotting a curve graph based on the statistical write speed, and then comparing the write speed with the theoretical NAND read and write 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 relevant technology, which will not be elaborated here.

[0039] In an exemplary embodiment, when it is determined that the performance of the SLC cache does not meet a preset design requirement, the method of the embodiment of the present invention further includes: feeding back the determined performance of the SLC cache.

[0040] In an exemplary embodiment, after calculating the write speed when writing a first preset amount of first data to the SSD, the method according to the embodiment of the present invention further includes:

[0041] Delete the first data written to the SSD.

[0042] In an exemplary embodiment, the embodiment of the present invention may issue a trim command through a script command issuing function; and delete the first data written to the SSD according to the issued trim command.

[0043] In an exemplary embodiment, the method of the embodiment of the present invention further includes:

[0044] Recording a first time length from writing the first data to the SSD to deleting the first data written to the SSD;

[0045] counting a write speed of writing a second preset amount of second data to the SSD, deleting the second data written to the SSD, recording a second time length from writing the second data to the SSD to deleting the second data written to the SSD, and adding the second time length to the first time length to obtain a total time length; if the total time length is less than the preset time length, continuing to: counting a write speed of writing the second data to the SSD, deleting the second data written to the SSD, recording a second time length from writing the second data to the SSD to deleting the second data written to the SSD, and adding the second time length to the total time length; and stopping until the total time length obtained by the accumulation is greater than or equal to the preset time length;

[0046] A stress test result of the SSD is determined according to the statistically determined write speed of the first data into the SSD and the statistically determined write speed of the second data into the SSD.

[0047] In an embodiment of the present invention, when the total time length is less than a preset time length, the write and delete operations of the second data are continuously performed until the total time length is greater than or equal to the preset time length, and the stress test result of the SSD is determined based on the write speed of each write performed within the preset time length.

[0048] In an exemplary embodiment, the second data may be the same data as the first data or different data from the first data; the value of the second preset number in the embodiment of the present invention is greater than the value of the SLC cache size of the SSD.

[0049] In one exemplary embodiment, the preset duration in the embodiments of the present invention can be set by those skilled in the art based on stress testing requirements, for example, 96 hours. Compared to related techniques that require traversing different SLC cache sizes without determining the SLC cache size, the embodiments of the present invention do not require traversing the amount of data written to the SSD, thus reducing the number of test cases to be edited and the number of tests, thereby improving drive testing efficiency.

[0050] An embodiment of the present invention further provides a computer storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method for implementing the hard disk test is implemented.

[0051] An embodiment of the present invention further provides a terminal, comprising: a memory and a processor, wherein a computer program is stored in the memory;

[0052] The processor is configured to execute the computer program in the memory;

[0053] When the computer program is executed by the processor, the method for implementing the hard disk test as described above is implemented.

[0054] Figure 2 This is a structural block diagram of a device for implementing hard disk testing according to an embodiment of the present invention. Figure 2 As shown, it includes: a statistical unit and a determination unit; wherein,

[0055] The statistical unit is configured to: count a writing speed when writing a first preset amount of first data to the solid state drive SSD;

[0056] The determining unit is configured to: determine the performance of an SLC cache of the SSD according to a statistical write speed;

[0057] The value of the first preset number is greater than the value of the SLC cache size of the SSD.

[0058] The embodiment of the present invention only writes data larger than the SLC cache size to the SSD, avoiding the time and human resource consumption caused by traversal testing. The performance of the SLC cache of the SSD is determined by the write speed when writing data of a preset value to the SSD, thereby improving the testing efficiency of the solid-state drive.

[0059] In an exemplary embodiment, the determining unit of the embodiment of the present invention is configured to:

[0060] Compare the write speed with the preset NAND theoretical read and write speed value to obtain a comparison result;

[0061] The performance of the SLC cache is determined based on the comparison results.

[0062] In an exemplary embodiment, the apparatus according to the embodiment of the present invention further includes a deletion unit configured to:

[0063] Delete data written to the SSD.

[0064] In an exemplary embodiment, the apparatus of the embodiment of the present invention further includes: a recording unit;

[0065] The recording unit is configured to: record a first time length from writing the first data to the SSD to deleting the first data written to the SSD; record a second time length from writing the second data to the SSD to deleting the second data written to the SSD, and add the second time length to the first time length to obtain a total time length; when continuing to perform statistics on the write speed of writing the second data to the SSD, record the second time length from writing the second data to the SSD to deleting the second data written to the SSD, and add the second time length to the total time length; and stop when the total time length obtained by the accumulation is greater than or equal to a preset time length;

[0066] The statistical unit is further configured to: count the writing speed of writing a second preset amount of second data to the SSD, and delete the second data written to the SSD; when the total time length is less than the preset time length, continue to execute: count the writing speed of writing the second data to the SSD;

[0067] The deleting unit is further configured to: delete the second data written into the SSD;

[0068] The determination unit is further configured to determine the stress test result of the SSD based on the statistical write speed of writing the first data to the SSD and the write speed of writing the second data to the SSD when the total accumulated time length determined by the recording unit is greater than or equal to the preset time length.

[0069] In one exemplary embodiment, the preset duration in the embodiments of the present invention can be set by those skilled in the art based on stress testing requirements, for example, 96 hours. Compared to related techniques that require traversing different SLC cache sizes without determining the SLC cache size, the embodiments of the present invention do not require traversing the amount of data written to the SSD, thus reducing the number of test cases to be edited and the number of tests, thereby improving drive testing efficiency.

[0070] “A person skilled in the art will appreciate that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, or a suitable combination thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is known in the art, As is well known to those skilled in the art, 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. 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 that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, 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 may include any information delivery media.

Claims

1. A method for implementing hard disk testing, comprising: Counting the writing speed when writing a first preset amount of first data to the solid state drive SSD; Determine the performance of the SLC cache of the SSD based on the statistical write speed; Deleting the first data written to the SSD; Recording a first time length from writing the first data to the SSD to deleting the first data written to the SSD; Counting a writing speed of writing a second preset amount of second data to the SSD, deleting the second data written to the SSD, recording a second time length from writing the second data to the SSD to deleting the second data written to the SSD, and adding the second time length to the first time length to obtain a total time length; When the total time length is less than the preset time length, continue to execute: counting the writing speed of the second data written to the SSD, deleting the second data written to the SSD, recording the second time length from writing the second data to the SSD to deleting the second data written to the SSD, and adding the second time length to the total time length; The process stops when the total accumulated time is greater than or equal to the preset time. Determine a stress test result of the SSD according to the statistically determined write speed of the first data to the SSD and the write speed of the second data to the SSD; The value of the first preset number is greater than the value of the SLC cache size of the SSD.

2. The method according to claim 1, characterized in that: Determining the performance of the SLC cache of the SSD according to the statistical write speed includes: Comparing the write speed with a preset NAND gate NAND read and write theoretical speed value to obtain a comparison result; The performance of the SLC cache is determined according to the comparison result.

3. A computer storage medium, wherein a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method for implementing a hard disk test as claimed in any one of claims 1 to 2 is implemented.

4. A terminal, comprising: A memory and a processor, wherein the memory stores a computer program; wherein, The processor is configured to execute the computer program in the memory; When the computer program is executed by the processor, the method for implementing hard disk testing according to any one of claims 1 to 2 is implemented.

5. A device for implementing hard disk testing, comprising: Statistical unit, confirmation unit, deletion unit and recording unit; among them, The statistical unit is configured to: count the writing speed when writing a first preset amount of first data to the solid state drive SSD; count the writing speed when writing a second preset amount of second data to the SSD, and delete the second data written to the SSD; when the total time length is less than the preset time length, continue to execute: count the writing speed when writing the second data to the SSD; The determination unit is configured to: determine the performance of the SLC high-speed cache of the SSD according to the statistical write speed; when the total length of time obtained by the accumulation determined by the recording unit is greater than or equal to the preset time length, determine the stress test result of the SSD according to the statistical write speed of writing the first data to the SSD and the write speed of writing the second data to the SSD; The deletion unit is configured to: delete the first data written into the SSD; delete the second data written into the SSD; The recording unit is configured to: record a first time length from writing the first data to the SSD to deleting the first data written to the SSD; record a second time length from writing the second data to the SSD to deleting the second data written to the SSD, and add the second time length to the first time length to obtain a total time length; when continuing to perform statistics on the writing speed of writing the second data to the SSD, record the second time length from writing the second data to the SSD to deleting the second data written to the SSD, and add the second time length to the total time length; and stop when the total time length obtained by the accumulation is greater than or equal to the preset time length; The value of the first preset number is greater than the value of the SLC cache size of the SSD.

6. The device according to claim 5, characterized in that The determining unit is configured as: Comparing the write speed with a preset NAND gate NAND read and write theoretical speed value to obtain a comparison result; The performance of the SLC cache is determined according to the comparison result.