Hard disk stress testing method, system, device and medium

By adjusting the user capacity and NAND capacity, calculating the expected write bandwidth and write time ratio, and adjusting the reserved space ratio, the problem of too long RDT test time is solved, and the efficiency and stability of the hard disk stress test are achieved.

CN114550798BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210111263.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2024-10-22
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

The RDT test time is too long, especially for 1.6T SSD, the test time is about 3,000 hours, which cannot meet the urgent needs of the project cycle.

Method used

By obtaining the reduction ratio and reserved space ratio, determine the user capacity and NAND capacity, calculate the expected write bandwidth and write time ratio, and adjust the reserved space ratio until the error is less than the threshold, thereby shortening the storage space of the hard disk stress test and simulating a full disk test .

Benefits of technology

It achieves shortening the test cycle while maintaining the high quality and stability of the test. It finds the most suitable user capacity and NAND capacity through feedback adjustment, and only performs stress testing on part of the storage space of the hard disk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114550798B_ABST
    Figure CN114550798B_ABST
Patent Text Reader

Abstract

The present invention discloses a hard disk stress test method, including the steps of: obtaining a reduction ratio and a reserved space ratio, and determining the user capacity and the NAND capacity according to the two ratios to determine the storage space based on the user capacity and the NAND capacity; calculating the expected write bandwidth according to the test parameters, the user capacity and the NAND capacity; writing data to the storage space and detecting the actual write bandwidth; in response to the actual write bandwidth being greater than the expected write bandwidth, calculating the write time ratio using the actual write bandwidth and the expected write bandwidth; in response to the write time ratio being greater than a threshold, calculating the expected PE value using the currently written data, the expected write amplification, the user capacity and the reserved space ratio; detecting the actual PE value and comparing it with the expected PE value to adjust the reserved space ratio until the error between the two is less than the threshold, thereby determining the storage space for stress testing in the hard disk to be tested using the reduction ratio and the adjusted reserved space. The present invention also discloses a system, a computer device and a readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of testing, and in particular to a hard disk pressure testing method, system, equipment and storage medium. Background Art

[0002] RDT (Reliability Demonstration Tests) is a necessary test item for enterprise-level SSDs. It is generally a long-term stress test to test the reliability of the product. The test form adopted is high temperature and multiple sample accelerated testing.

[0003] The RDT test is mainly used to quantify the reliability of SSDs. How to perform the RDT test specifically? This involves the issue of time optimization. For example, for a 1.6T SSD, the read and write time is 1.6T / 3.2GBps+1.6T / 1.6GBps, which is approximately 1500S. DWPD=3, and the full life cycle test time is 3*365*5*1500S≈2281Hours. The test time of nearly 3000 hours is unbearable for some products with tight project cycles, so the RDT test time needs to be optimized. Summary of the invention

[0004] In view of this, in order to overcome at least one aspect of the above problems, an embodiment of the present invention provides a hard disk stress testing method, comprising the following steps:

[0005] Get the reduction ratio and reserved space ratio;

[0006] Determine the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity;

[0007] Calculate expected write bandwidth based on test parameters, the user capacity and the NAND capacity;

[0008] Write data to the storage space and detect the actual write bandwidth;

[0009] In response to the actual write bandwidth being greater than the expected write bandwidth, calculating a write time proportion using the actual write bandwidth and the expected write bandwidth;

[0010] In response to the write time proportion being greater than a threshold, calculating an expected PE value using currently written data, expected write amplification, the user capacity, and a reserved space ratio;

[0011] The actual PE value is detected and compared with the expected PE value to adjust the reserved space ratio until the error between the two is less than a threshold, thereby using the reduced ratio and the adjusted reserved space to determine the storage space for stress testing in the hard disk to be tested.

[0012] In some embodiments, it also includes:

[0013] In response to the actual write bandwidth being less than the expected write bandwidth, the reduction ratio is reduced, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the actual write bandwidth is greater than the expected write bandwidth.

[0014] In some embodiments, it also includes:

[0015] In response to the write time ratio being less than a threshold, the reduction ratio is increased, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the write time ratio is greater than the threshold.

[0016] In some embodiments, detecting the actual PE value and comparing it with the expected PE value to adjust the over-provisioning ratio until the error between the two is less than a threshold further includes:

[0017] In response to the actual PE value being greater than the expected PE value, reducing the reserved space ratio according to a preset ratio;

[0018] In response to the actual PE value being less than the expected PE value, the over-reservation ratio is increased according to the preset ratio.

[0019] Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a hard disk stress testing system, comprising:

[0020] An acquisition module configured to acquire a reduction ratio and a reserved space ratio;

[0021] a capacity determination module configured to determine the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity;

[0022] A first calculation module, configured to calculate an expected write bandwidth according to a test parameter, the user capacity and the NAND capacity;

[0023] a write module configured to write data to the storage space and detect an actual write bandwidth;

[0024] A second calculation module is configured to calculate a write time proportion using the actual write bandwidth and the expected write bandwidth in response to the actual write bandwidth being greater than the expected write bandwidth;

[0025] A third calculation module is configured to calculate an expected PE value using currently written data, expected write amplification, the user capacity and the reserved space ratio in response to the write time ratio being greater than a threshold;

[0026] The detection module is configured to detect the actual PE value and compare it with the expected PE value to adjust the reserved space ratio until the error between the two is less than a threshold, thereby using the reduced ratio and the adjusted reserved space to determine the storage space for stress testing in the hard disk to be tested.

[0027] In some embodiments, the first adjustment module is further included, configured to:

[0028] In response to the actual write bandwidth being less than the expected write bandwidth, the reduction ratio is reduced, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the actual write bandwidth is greater than the expected write bandwidth.

[0029] In some embodiments, a second adjustment module is further included, configured to:

[0030] In response to the write time ratio being less than a threshold, the reduction ratio is increased, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the write time ratio is greater than the threshold.

[0031] In some embodiments, the detection module is further configured to:

[0032] In response to the actual PE value being greater than the expected PE value, reducing the reserved space ratio according to a preset ratio;

[0033] In response to the actual PE value being less than the expected PE value, the over-reservation ratio is increased according to the preset ratio.

[0034] Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer device, including:

[0035] at least one processor; and

[0036] A memory storing a computer program executable on the processor, wherein the processor executes the steps of any one of the hard disk stress testing methods described above when executing the program.

[0037] Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the hard disk stress testing methods described above are performed.

[0038] The present invention has one of the following beneficial technical effects: the solution proposed by the present invention uses a feedback adjustment method until the most suitable user capacity and NAND capacity are found, so that only part of the storage space of the hard disk is stress tested to simulate stress testing of the entire disk, thereby shortening the test cycle while maintaining the high quality and stability of the test. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A flowchart of a hard disk stress testing method provided by an embodiment of the present invention;

[0041] Figure 2 A structural schematic diagram of a hard disk stress testing system provided by an embodiment of the present invention;

[0042] Figure 3 A schematic diagram of the structure of a computer device provided by an embodiment of the present invention;

[0043] Figure 4 A schematic diagram of the structure of a computer-readable storage medium provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0045] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0046] In an embodiment of the present invention, the RDT Endurance test method and the passing standard may be as follows: Assuming the test disk has known conditions, capacity 1.6T, DWPD=3, warranty 5 years, PE=10K, test time 1000Hours, test workload is JEDEC218 (BS=512 / 4:1024 / 1:1536 / 1:2048 / 1:4K / 70:8K / 10:16K / 7:32K / 3:64K / 4, rwmixread=40)

[0047] The test passed the standard, using JEDEC 218 test 1000H, the PE (Program and Erase) of the disk reached 10K, and the statistical written data volume (TBW) met or exceeded: 1.6T*3*5*365=8760T (calculated based on writing the entire disk 3 times a day, a total of 5 years). Among them, the amount of data written during the SSD life cycle is expressed in TBW.

[0048] The test passed the two standard indicators: 1. PE reached 10K; 2. TBW met the specified data volume. PE reaching 10K reflects the capacity of NAND, that is, reaching the expected 10K PE life. TBW refers to the writing capacity of user data volume, that is, meeting the user's writing volume requirements.

[0049] The connection between the two indicators is an important parameter of SSD: WA, which is write amplification (NAND write amount / host write amount).

[0050] Here is an example: user capacity 1.6T, OP (SSD reserved space) = 30%, DWPD (how many times a day to write to the whole disk) = 3, warranty 5 years, PE = 10K, WA = 2.5;

[0051] Therefore, the user write amount TBW: 1.6T*3*5*365=8760T,

[0052] The amount of nand written is TBW*WA=8760*2.5=21900T

[0053] PE = total NAND write volume / NAND capacity = 21900 / (1.6 * (1 + 0.3)) = 10K.

[0054] It can be seen that if WA becomes larger, the NAND write amount is bound to increase. That is, when TBW is less than the specified value, PE has been worn to 10K, causing the disk to become unusable prematurely.

[0055] The present invention simulates a normal capacity disk by using part of the storage space of a normal disk as a small capacity disk, so the small capacity disk also needs to meet the two indicators of passing the RDT test. That is, the write amplification of the small capacity disk needs to be almost the same as that of the normal capacity disk. In this way, when the OP write amplification of the small capacity disk is almost the same as that of the normal disk, the performance is also kept consistent. Because the capacity of the small capacity disk is small, the PE of the small capacity disk wears faster in the same time, and it takes less time to reach the expected PE of 10K, which speeds up the test efficiency.

[0056] According to one aspect of the present invention, an embodiment of the present invention provides a hard disk stress testing method, such as Figure 1 As shown, it may include the steps of:

[0057] S1, obtain the reduction ratio and reserved space ratio;

[0058] S2, determining a user capacity and a NAND capacity according to the reduction ratio and the reserved space ratio to determine a storage space based on the user capacity and the NAND capacity;

[0059] S3, calculating the expected write bandwidth according to the test parameters, the user capacity and the NAND capacity;

[0060] S4, write data to the storage space and detect the actual write bandwidth;

[0061] S5, in response to the actual write bandwidth being greater than the expected write bandwidth, calculating a write time proportion using the actual write bandwidth and the expected write bandwidth;

[0062] S6, in response to the write time ratio being greater than a threshold, calculating an expected PE value using currently written data, expected write amplification, the user capacity, and a reserved space ratio;

[0063] S7, detecting the actual PE value and comparing it with the expected PE value to adjust the reserved space ratio until the error between the two is less than a threshold, thereby determining the storage space for stress testing in the hard disk to be tested by using the reduced ratio and the adjusted reserved space.

[0064] The solution proposed in the present invention uses a feedback adjustment method until the most suitable user capacity and NAND capacity are found, so that only part of the storage space of the hard disk is stress tested to simulate stress testing of the entire disk, shortening the test cycle while maintaining the high quality and stability of the test.

[0065] In some embodiments, it also includes:

[0066] In response to the actual write bandwidth being less than the expected write bandwidth, the reduction ratio is reduced, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the actual write bandwidth is greater than the expected write bandwidth.

[0067] In some embodiments, it also includes:

[0068] In response to the write time ratio being less than a threshold, the reduction ratio is increased, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the write time ratio is greater than the threshold.

[0069] In some embodiments, detecting the actual PE value and comparing it with the expected PE value to adjust the over-provisioning ratio until the error between the two is less than a threshold further includes:

[0070] In response to the actual PE value being greater than the expected PE value, reducing the reserved space ratio according to a preset ratio;

[0071] In response to the actual PE value being less than the expected PE value, the over-reservation ratio is increased according to the preset ratio.

[0072] Specifically, because the OP of a small-capacity disk is consistent with that of a normal disk, the NAND capacity is: user capacity * (1 + OP), that is, once the user capacity is determined, the NAND capacity is also determined. The adjustment of the NAND capacity is mainly to adjust the number of blocks of the entire disk (the number of blocks can be adjusted by adjusting the firmware). Assuming that the NAND capacity is NAND_CAP, the number of BLOCKs is: NAND_CAP / channel_num / CE_NUM / LUN_NUM.

[0073] Known test parameters: DWPD=3, test duration 1000H, PE needs to be ground to 10K, and the write bandwidth of the normal disk capacity is P.

[0074] When determining the user capacity, we can first use the initial reduction ratio (eg, 30%) and assume that the normal capacity is 3.84T, that is, set it to 3.84*0.3, which is approximately equal to 1000G, and the disk capacity is represented by C.

[0075] Then, based on the TBW and test duration, determine the write bandwidth requirement.

[0076] P_expect = C*DWPD*5YEARS*365(365days / Years) / 1000h(test duration), that is, the write bandwidth requirement is: 1000G*3*5*365*1000 / (1000*3600)=1520MB / s.

[0077] Next, determine whether the write bandwidth meets expectations. You can actually measure the write bandwidth of the current small-capacity disk and compare the actual write bandwidth with the expected write bandwidth. If the actual write bandwidth is less than the expected write bandwidth, it means that the disk capacity is too large and you need to reduce the small disk capacity, that is, set the user capacity to 20% of the normal capacity, and repeat the previous steps until the actual write bandwidth is greater than the expected write bandwidth. If the actual write bandwidth is greater than the expected write bandwidth, it means that the disk capacity is not too large, and you can continue to debug the subsequent steps.

[0078] Next, pay attention to the proportion of read and write time and adjust the capacity. Assuming that the actual write bandwidth is P_real and the calculated write bandwidth requirement is P_expect, the proportion of idle time during the test is:

[0079] 1-(1 / (P_real / P_expect))

[0080] That is, the smaller the actual capacity of the small-capacity disk, the easier it is for the write bandwidth to meet the expected write bandwidth requirements, and the data write volume per hour is reduced, but the idle waiting time is too long (although the idle time can be occupied by reading), which can easily cause uneven temperature control and test jitter. The write time ratio can be increased by increasing the user capacity, and the previous steps are repeated until the write time ratio is greater than the preset value. In some embodiments, the write time duty cycle of the small-capacity disk is generally adjusted to be above 80%.

[0081] Finally, determine whether the PE increase is in line with expectations. The expected PE increase is calculated as: user write data volume*WA / (user capacity*(1+OP)), that is, total NAND write volume / NAND capacity.

[0082] If the actual measured PE increases faster than the expected PE, it means that the actual WA is higher than expected and needs to be reduced appropriately by increasing the OP space. If the PE increases slower than the expected PE, it means that the actual WA is smaller than expected and needs to be increased appropriately by reducing the OP space. Note that the fine-tuning ratio should be less than 10%, otherwise it means that the theoretically calculated NAND space is inaccurate.

[0083] The solution proposed in the present invention uses a feedback adjustment method until the most suitable user capacity and NAND capacity are found, so that only part of the storage space of the hard disk is stress tested to simulate stress testing of the entire disk, shortening the test cycle while maintaining the high quality and stability of the test.

[0084] Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a hard disk stress testing system 400, such as Figure 2 As shown, including:

[0085] An acquisition module 401 is configured to acquire a reduction ratio and a reserved space ratio;

[0086] A capacity determination module 402, configured to determine the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity;

[0087] A first calculation module 403, configured to calculate an expected write bandwidth according to a test parameter, the user capacity and the NAND capacity;

[0088] A writing module 404, configured to write data to the storage space and detect an actual writing bandwidth;

[0089] A second calculation module 405 is configured to calculate a write time proportion using the actual write bandwidth and the expected write bandwidth in response to the actual write bandwidth being greater than the expected write bandwidth;

[0090] A third calculation module 406 is configured to calculate an expected PE value using currently written data, expected write amplification, the user capacity and the reserved space ratio in response to the write time ratio being greater than a threshold;

[0091] The detection module 407 is configured to detect the actual PE value and compare it with the expected PE value to adjust the reserved space ratio until the error between the two is less than a threshold, thereby using the reduced ratio and the adjusted reserved space to determine the storage space for stress testing in the hard disk to be tested.

[0092] In some embodiments, the first adjustment module is further included, configured to:

[0093] In response to the actual write bandwidth being less than the expected write bandwidth, the reduction ratio is reduced, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the actual write bandwidth is greater than the expected write bandwidth.

[0094] In some embodiments, a second adjustment module is further included, configured to:

[0095] In response to the write time ratio being less than a threshold, the reduction ratio is increased, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the write time ratio is greater than the threshold.

[0096] In some embodiments, the detection module 407 is further configured to:

[0097] In response to the actual PE value being greater than the expected PE value, reducing the reserved space ratio according to a preset ratio;

[0098] In response to the actual PE value being less than the expected PE value, the over-reservation ratio is increased according to the preset ratio.

[0099] Based on the same inventive concept, according to another aspect of the present invention, Figure 3 As shown, an embodiment of the present invention further provides a computer device 501, including:

[0100] at least one processor 520; and

[0101] The memory 510 stores a computer program 511 that can be run on the processor. When the processor 520 executes the program, the steps of any one of the hard disk stress testing methods described above are performed.

[0102] Based on the same inventive concept, according to another aspect of the present invention, Figure 4 As shown, an embodiment of the present invention further provides a computer-readable storage medium 601, which stores computer program instructions 610. When the computer program instructions 610 are executed by a processor, the steps of any of the above hard disk stress testing methods are performed.

[0103] Finally, it should be noted that a person skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods.

[0104] Furthermore, it should be appreciated that the computer-readable storage medium (eg, memory) herein may be either a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory.

[0105] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0106] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0107] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0108] The serial numbers of the embodiments disclosed in the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0109] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0110] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A hard disk stress testing method, characterized in that: The following steps are involved: Get the reduction ratio and reserved space ratio; Determine the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity; Calculate expected write bandwidth based on test parameters, the user capacity and the NAND capacity; Write data to the storage space and detect the actual write bandwidth; In response to the actual write bandwidth being greater than the expected write bandwidth, calculating a write time proportion using the actual write bandwidth and the expected write bandwidth; In response to the write time proportion being greater than a threshold, calculating an expected PE value using currently written data, expected write amplification, the user capacity, and a reserved space ratio; The actual PE value is detected and compared with the expected PE value to adjust the reserved space ratio until the error between the two is less than a threshold, thereby using the reduced ratio and the adjusted reserved space to determine the storage space for stress testing in the hard disk to be tested.

2. The method according to claim 1, characterized in that Also includes: In response to the actual write bandwidth being less than the expected write bandwidth, the reduction ratio is reduced, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the actual write bandwidth is greater than the expected write bandwidth.

3. The method according to claim 1, characterized in that Also includes: In response to the write time ratio being less than a threshold, the reduction ratio is increased, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the write time ratio is greater than the threshold.

4. The method according to claim 1, characterized in that Detecting the actual PE value and comparing it with the expected PE value to adjust the over-provisioning ratio until the error between the two is less than a threshold, further comprising: In response to the actual PE value being greater than the expected PE value, reducing the reserved space ratio according to a preset ratio; In response to the actual PE value being less than the expected PE value, the over-reservation ratio is increased according to the preset ratio.

5. A hard disk stress testing system, characterized in that: include: An acquisition module configured to acquire a reduction ratio and a reserved space ratio; a capacity determination module configured to determine the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity; A first calculation module, configured to calculate an expected write bandwidth according to a test parameter, the user capacity and the NAND capacity; a write module configured to write data to the storage space and detect an actual write bandwidth; A second calculation module is configured to calculate a write time proportion using the actual write bandwidth and the expected write bandwidth in response to the actual write bandwidth being greater than the expected write bandwidth; A third calculation module is configured to calculate an expected PE value using currently written data, expected write amplification, the user capacity and the reserved space ratio in response to the write time ratio being greater than a threshold; The detection module is configured to detect the actual PE value and compare it with the expected PE value to adjust the reserved space ratio until the error between the two is less than a threshold, thereby using the reduced ratio and the adjusted reserved space to determine the storage space for stress testing in the hard disk to be tested.

6. The system according to claim 5, characterized in that It also includes a first adjustment module configured to: In response to the actual write bandwidth being less than the expected write bandwidth, the reduction ratio is reduced, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the actual write bandwidth is greater than the expected write bandwidth.

7. The system according to claim 5, characterized in that Also included is a second adjustment module configured as follows: In response to the write time ratio being less than a threshold, the reduction ratio is increased, and the step of determining the user capacity and the NAND capacity according to the reduction ratio and the reserved space ratio to determine the storage space based on the user capacity and the NAND capacity is returned to until the write time ratio is greater than the threshold.

8. The system according to claim 5, characterized in that The detection module is also configured to: In response to the actual PE value being greater than the expected PE value, reducing the reserved space ratio according to a preset ratio; In response to the actual PE value being less than the expected PE value, the over-reservation ratio is increased according to the preset ratio.

9. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 4 when executing the program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are performed.