CN114550798A - Hard disk pressure testing method, system, equipment and medium - Google Patents

Hard disk pressure testing method, system, equipment and medium Download PDF

Info

Publication number
CN114550798A
CN114550798A CN202210111263.4A CN202210111263A CN114550798A CN 114550798 A CN114550798 A CN 114550798A CN 202210111263 A CN202210111263 A CN 202210111263A CN 114550798 A CN114550798 A CN 114550798A
Authority
CN
China
Prior art keywords
value
capacity
expected
actual
ratio
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.)
Granted
Application number
CN202210111263.4A
Other languages
Chinese (zh)
Other versions
CN114550798B (en
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210111263.4A priority Critical patent/CN114550798B/en
Priority claimed from CN202210111263.4A external-priority patent/CN114550798B/en
Publication of CN114550798A publication Critical patent/CN114550798A/en
Application granted granted Critical
Publication of CN114550798B publication Critical patent/CN114550798B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/08Functional testing, e.g. testing during refresh, power-on self testing [POST] or distributed testing
    • G11C29/10Test algorithms, e.g. memory scan [MScan] algorithms; Test patterns, e.g. checkerboard patterns 
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/50Marginal testing, e.g. race, voltage or current testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a hard disk pressure testing method, which comprises the following steps: acquiring a reduction ratio and a reserved space ratio, and determining user capacity and NAND capacity according to the two ratios to determine a storage space based on the user capacity and the NAND capacity; calculating an expected write bandwidth according to the test parameters, the user capacity and the NAND capacity; writing data into the storage space and detecting the actual write bandwidth; in response to the actual write bandwidth being greater than the expected write bandwidth, calculating a write time duty ratio using the actual write bandwidth and the expected write bandwidth; in response to the write time ratio being greater than the threshold, calculating an expected PE value by using the currently written data, the expected write amplification, the user capacity and the reserved space ratio; and detecting the actual PE value and comparing the actual PE value with the expected PE value to adjust the proportion of the reserved space until the error between the actual PE value and the expected PE value is less than a threshold value, so that the reduced proportion and the adjusted reserved space are used for determining the storage space for performing the pressure test in the hard disk to be tested. The invention also discloses a system, a computer device and a readable storage medium.

Description

Hard disk pressure test method, system, equipment and medium
Technical Field
The invention relates to the field of testing, in particular to a method, a system, equipment and a storage medium for testing hard disk pressure.
Background
RDT (Reliability verification Tests) is a necessary test item for enterprise-level SSD, and is generally a long-time pressure test for testing the Reliability of products. The test format taken was high temperature and multiple sample accelerated testing.
RDT testing is primarily to quantify SSD reliability, but what is the RDT testing specifically? This involves time optimization problems, such as 1.6T SSD, read/write round time 1.6T/3.2GBps +1.6T/1.6GBps approximately equal to 1500S, DWPD 3, full life cycle test time 3 365 5 1500S 2281Hour, near 3000 hours of test duration is intolerable for some products with tight project cycle, so it is desirable to optimize RDT test duration.
Disclosure of Invention
In view of the above, 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, including:
acquiring a reduction ratio and a reserved space ratio;
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;
calculating an expected write bandwidth according to test parameters, the user capacity and the NAND capacity;
writing data into the storage space and detecting the actual write bandwidth;
in response to the actual write bandwidth being greater than the expected write bandwidth, calculating a write time duty ratio using the actual write bandwidth and expected write bandwidth;
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;
and detecting an actual PE value and comparing the actual PE value with an expected PE value to adjust the proportion of the reserved space until the error between the actual PE value and the expected PE value is less than a threshold value, so that the reduced proportion and the adjusted reserved space are used for determining the storage space for performing the pressure test in the hard disk to be tested.
In some embodiments, further comprising:
in response to the actual write bandwidth being less than the desired write bandwidth, reducing the reduction ratio and returning to the step of determining user capacity and NAND capacity from the reduction ratio and reserve space ratio to determine storage space based on the user capacity and NAND capacity until the actual write bandwidth is greater than the desired write bandwidth.
In some embodiments, further comprising:
and responding to the writing time ratio being smaller than a threshold value, increasing the reduction ratio, and returning to 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 until the writing time ratio is larger than the threshold value.
In some embodiments, detecting an actual PE value and comparing to an expected PE value to adjust the headspace ratio until the difference is less than a threshold, further comprises:
in response to the actual PE value being greater than the expected PE value, reducing the proportion of the reserved space according to a preset proportion;
and in response to the actual PE value being less than the expected PE value, increasing the proportion of the reserved space according to the preset proportion.
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, including:
an obtaining module configured to obtain a reduction ratio and a reserved space ratio;
a capacity determination module configured to determine 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;
a first calculation module configured to calculate an expected write bandwidth from test parameters, 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 configured to calculate a write time duty ratio using the actual write bandwidth and an expected write bandwidth in response to the actual write bandwidth being greater than the expected write bandwidth;
a third calculation module configured to calculate an expected PE value using currently written data, an expected write amplification, the user capacity, and a reserved space proportion in response to the write time ratio being greater than a threshold;
and the detection module is configured to detect an actual PE value and compare the actual PE value with an expected PE value to adjust the proportion of the reserved space until the error between the actual PE value and the expected PE value is smaller than a threshold value, so that the reduced proportion and the adjusted reserved space are used for determining the storage space for performing the pressure test in the hard disk to be tested.
In some embodiments, further comprising a first adjustment module configured to:
in response to the actual write bandwidth being less than the desired write bandwidth, reducing the reduction ratio and returning to the step of determining user capacity and NAND capacity from the reduction ratio and reserve space ratio to determine storage space based on the user capacity and NAND capacity until the actual write bandwidth is greater than the desired write bandwidth.
In some embodiments, the apparatus further comprises a second adjustment module configured to:
and responding to the writing time ratio being smaller than a threshold value, increasing the reduction ratio, and returning to 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 until the writing time ratio is larger than the threshold value.
In some embodiments, the detection module is further configured to:
in response to the actual PE value being greater than the expected PE value, reducing the proportion of the reserved space according to a preset proportion;
and in response to the actual PE value being less than the expected PE value, increasing the proportion of the reserved space according to the preset proportion.
Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention further provides a computer apparatus, including:
at least one processor; and
a memory storing a computer program operable on the processor, wherein the processor executes the program to perform any of the steps of the hard disk stress testing method described above.
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, which stores a computer program that, when executed by a processor, performs the steps of any of the hard disk stress testing methods described above.
The invention has one of the following beneficial technical effects: the scheme provided by the invention can simulate the pressure test of the whole disk by only carrying out the pressure test on part of the storage space of the hard disk through the feedback adjustment method until the most suitable user capacity and NAND capacity are found, thereby shortening the test period and maintaining the high quality and stability of the test.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a hard disk pressure testing method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a hard disk pressure test system according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a computer device provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer-readable storage medium 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, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In an embodiment of the present invention, the RDT duration test mode and pass standard may be as follows: assuming known conditions for the test disk, 1.6T capacity, 3 DWPD, 5 warranty years PE 10K, 1000Hours test time, JEDEC218 test workload (BS 512/4:1024/1:1536/1:2048/1:4K/70:8K/10:16K/7:32K/3:64K/4, 40 rwmixread)
The test passed the standard, test 1000H using JEDEC218, PE (Program and Erase) of the disc reached 10K, and the statistical write data amount (TBW) satisfied or more: 1.6T 3 x 5 x 365T 8760T (calculated as 3 full disk writes per day for a total of 5 years). Wherein, the SSD life cycle write data volume is represented by TBW.
The test passes 2 indexes of the standard, 1, PE reaches 10K; 2, TBW satisfies the prescribed data amount. PE reaches the NAND capability of the 10K embodiment, i.e. the expected 10K PE lifetime. TBW refers to the write capability of the user data volume, i.e., to satisfy the user write volume requirement.
The link between the two metrics is an important parameter of SSD: WA, i.e., write amplification (NAND write amount/host write amount).
The following examples are given: the user capacity is 1.6T, OP (reserved space of SSD) is 30%, DWPD (write several times of full disk every day) is 3, quality guarantee is 5years, PE is 10K, WA is 2.5;
therefore, the user write amount TBW: 1.6T 3 x 5 x 365T 8760T,
the nand writing amount is TBW WA 8760 w 2.5 21900T
PE equals 21900/(1.6 × 1+0.3)) -10K.
It can be seen that if WA becomes large, the NAND write amount tends to increase, i.e., TBW is less than a prescribed value, PE has worn down to 10K, resulting in the disc being unusable earlier.
The invention simulates the normal capacity disc by using part of the storage space of the normal disc as the small capacity disc, so that the small capacity disc also needs to reach 2 indexes which pass the RDT test. I.e. the write amplification needs of the small capacity disc are kept almost identical to the normal capacity disc. Thus, when the write amplification of the small capacity disk OP is almost consistent with that of a normal disk, the performance is kept consistent, because the small capacity disk has small capacity, the PE of the small capacity disk wears out faster in the same time, less time is needed for reaching the expected PE of 10K, and the test efficiency is improved.
According to an aspect of the present invention, an embodiment of the present invention provides a hard disk stress testing method, as shown in fig. 1, which may include the steps of:
s1, acquiring a reduction proportion and a reserved space proportion;
s2, determining user capacity and NAND capacity according to the reduction ratio and the reserved space ratio to determine storage space based on the user capacity and the NAND capacity;
s3, calculating expected write bandwidth according to the test parameters, the user capacity and the NAND capacity;
s4, writing data into the storage space and detecting the actual write bandwidth;
s5, responding to the actual writing bandwidth is larger than the expected writing bandwidth, and calculating the writing time ratio by using the actual writing bandwidth and the expected writing bandwidth;
s6, responding to the write time ratio is larger than a threshold value, calculating an expected PE value by using the currently written data, the expected write amplification, the user capacity and the reserved space ratio;
and S7, detecting the actual PE value and comparing with the expected PE value to adjust the proportion of the reserved space until the error between the two is less than the threshold value, thereby determining the storage space for pressure test in the hard disk to be tested by using the reduced proportion and the adjusted reserved space.
The scheme provided by the invention can simulate the pressure test of the whole disk by only carrying out the pressure test on part of the storage space of the hard disk through the feedback adjustment method until the most suitable user capacity and NAND capacity are found, thereby shortening the test period and maintaining the high quality and stability of the test.
In some embodiments, further comprising:
in response to the actual write bandwidth being less than the desired write bandwidth, reducing the reduction ratio and returning to the step of determining user capacity and NAND capacity from the reduction ratio and reserve space ratio to determine storage space based on the user capacity and NAND capacity until the actual write bandwidth is greater than the desired write bandwidth.
In some embodiments, further comprising:
and responding to the writing time ratio being smaller than a threshold value, increasing the reduction ratio, and returning to 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 until the writing time ratio is larger than the threshold value.
In some embodiments, detecting an actual PE value and comparing to an expected PE value to adjust the headspace ratio until the difference is less than a threshold, further comprises:
in response to the actual PE value being greater than the expected PE value, reducing the proportion of the reserved space according to a preset proportion;
and in response to the actual PE value being less than the expected PE value, increasing the proportion of the reserved space according to the preset proportion.
Specifically, because the OP of the small-capacity disk coincides with the normal disk capacity OP, the NAND capacity is: user capacity (1+ OP), i.e. user capacity is determined, NAND capacity is also determined, and the adjustment of NAND capacity mainly adjusts the number of BLOCKs of the disk (the number of BLOCKs can be adjusted by adjusting firmware), assuming that NAND capacity is NAND _ CAP, so the number of BLOCKs is: NAND _ CAP/channel _ NUM/CE _ NUM/LUN _ NUM.
Known test parameters: DWPD is 3, and test duration 1000H, PE need grind to 10K, reach the write bandwidth of normal disk capacity P.
In determining the user capacity, the disc capacity may be indicated by C, assuming a normal capacity of 3.84T, i.e. set to 3.84 x 0.3 and approximately 1000G, based on an initial reduction scale (e.g. 30%).
And then determining the write bandwidth requirement according to the TBW and the test duration.
P _ expect ═ C × DWPD ═ 5YEARS · 365(365days/Years)/1000h (test duration), i.e. the write bandwidth requirement is: 1000G 3 × 5 × 365 × 1000/(1000 × 3600) ═ 1520 MB/s.
Then, the write bandwidth is judged to be in accordance with the expectation. The write bandwidth of the current small-capacity disk can be measured, the actual write bandwidth is compared with the expected write bandwidth, if the actual write bandwidth is smaller than the expected write bandwidth, the disk capacity is required to be reduced, namely the user capacity is set to be 20% of the normal capacity, and the previous steps are repeated until the actual write bandwidth is larger than the expected write bandwidth. If the actual write bandwidth is larger than the expected write bandwidth, the disk capacity is not overlarge, and the debugging of the subsequent steps is continued.
Then, the capacity adjustment is performed while focusing on the read/write time ratio. Assuming that the actual write bandwidth is P _ real, the calculated write bandwidth requirement is P _ expect, so the idle time of the test process is:
1-(1/(P_real/P_expect))
that is, the smaller the actual capacity of the small-capacity disk, the easier the write bandwidth will meet the desired write bandwidth requirement, and the requirement for the amount of data written per hour will be reduced, but the idle waiting time will be too long (although the idle time can be occupied by reading), and it will be very easy to cause the temperature control imbalance and the 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 larger than the preset value. In some embodiments, the write time duty cycle of a small capacity disc is generally adjusted to be as high as 80% or more.
Finally, it is determined whether the PE increase is expected. PE is expected to increase the computational effort: the user write data amount WA/(user capacity (1+ OP)), that is, the NAND total write amount/NAND capacity.
If the actual measured PE increases faster than the expected PE, indicating that the actual WA is higher than expected, a proper amount of WA reduction is required, the reduction method is to increase the OP space, if the PE increases slower than the expected PE, indicating that the actual WA is smaller than expected, a proper amount of WA increase is required, the increase method is to decrease the OP space, and it is noted that the proportion of fine adjustment should be less than 10%, otherwise, indicating that the theoretically calculated NAND space is not accurate.
The scheme provided by the invention can simulate the pressure test of the whole disk by only carrying out the pressure test on part of the storage space of the hard disk through the feedback adjustment method until the most suitable user capacity and NAND capacity are found, thereby shortening the test period and maintaining the high quality and stability of the test.
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, as shown in fig. 2, including:
an obtaining module 401 configured to obtain a reduction ratio and a reserved space ratio;
a capacity determination module 402 configured to determine 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;
a first calculation module 403 configured to calculate an expected write bandwidth according to a test parameter, the user capacity, and the NAND capacity;
a write module 404 configured to write data to the storage space and detect an actual write bandwidth;
a second calculation module 405 configured to calculate a write time duty ratio using the actual write bandwidth and an expected write bandwidth in response to the actual write bandwidth being greater than the expected write bandwidth;
a third calculation module 406 configured to calculate an expected PE value using currently written data, an expected write amplification, the user capacity, and a reserved space ratio in response to the write time ratio being greater than a threshold;
a detecting module 407 configured to detect an actual PE value and compare the actual PE value with an expected PE value to adjust the ratio of the reserved space until an error between the actual PE value and the expected PE value is smaller than a threshold value, so as to determine a storage space for performing a stress test in the hard disk to be tested by using the reduced ratio and the adjusted reserved space.
In some embodiments, further comprising a first adjustment module configured to:
in response to the actual write bandwidth being less than the desired write bandwidth, reducing the reduction ratio and returning to the step of determining user capacity and NAND capacity from the reduction ratio and reserve space ratio to determine storage space based on the user capacity and NAND capacity until actual write bandwidth is greater than the desired write bandwidth.
In some embodiments, the apparatus further comprises a second adjustment module configured to:
and responding to the writing time ratio being smaller than a threshold value, increasing the reduction ratio, and returning to 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 until the writing time ratio is larger than the threshold value.
In some embodiments, the detection module 407 is further configured to:
in response to the actual PE value being greater than the expected PE value, reducing the proportion of the reserved space according to a preset proportion;
and responding to the fact that the actual PE value is smaller than the expected PE value, and increasing the ratio of the reserved space according to the preset ratio.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 3, an embodiment of the present invention further provides a computer apparatus 501, comprising:
at least one processor 520; and
the memory 510, the memory 510 stores a computer program 511 that can be run on the processor, and the processor 520 executes the program to perform the steps of any of the hard disk stress testing methods as described above.
Based on the same inventive concept, according to another aspect of the present invention, as shown in fig. 4, an embodiment of the present invention further provides a computer-readable storage medium 601, where the computer-readable storage medium 601 stores computer program instructions 610, and the computer program instructions 610, when executed by a processor, perform the steps of any of the hard disk stress testing methods as above.
Finally, it should be noted that, as will be understood by those skilled in the art, all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above.
Further, it should be appreciated that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, 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 magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.

Claims (10)

1. A hard disk pressure test method is characterized by comprising the following steps:
acquiring a reduction ratio and a reserved space ratio;
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;
calculating an expected write bandwidth according to test parameters, the user capacity and the NAND capacity;
writing data into the storage space and detecting the actual write bandwidth;
in response to the actual write bandwidth being greater than the expected write bandwidth, calculating a write time duty ratio using the actual write bandwidth and expected write bandwidth;
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;
and detecting an actual PE value and comparing the actual PE value with an expected PE value to adjust the proportion of the reserved space until the error between the actual PE value and the expected PE value is less than a threshold value, so that the reduced proportion and the adjusted reserved space are used for determining the storage space for performing the pressure test in the hard disk to be tested.
2. The method of claim 1, further comprising:
in response to the actual write bandwidth being less than the desired write bandwidth, reducing the reduction ratio and returning to the step of determining user capacity and NAND capacity from the reduction ratio and reserve space ratio to determine storage space based on the user capacity and NAND capacity until the actual write bandwidth is greater than the desired write bandwidth.
3. The method of claim 1, further comprising:
and in response to the write time ratio being smaller than a threshold value, increasing the reduction ratio, and returning to 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 until the write time ratio is larger than the threshold value.
4. The method of claim 1, wherein detecting an actual PE value and comparing to an expected PE value to adjust the headspace ratio until the difference is less than a threshold, further comprises:
in response to the actual PE value being greater than the expected PE value, reducing the proportion of the reserved space according to a preset proportion;
and in response to the actual PE value being less than the expected PE value, increasing the proportion of the reserved space according to the preset proportion.
5. A hard disk stress testing system, comprising:
an obtaining module configured to obtain a reduction ratio and a reserved space ratio;
a capacity determination module configured to determine 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;
a first calculation module configured to calculate an expected write bandwidth from test parameters, 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 configured to calculate a write time duty using the actual write bandwidth and an expected write bandwidth in response to the actual write bandwidth being greater than the expected write bandwidth;
a third calculation module configured to calculate an expected PE value using currently written data, an expected write amplification, the user capacity, and a reserved space proportion in response to the write time ratio being greater than a threshold;
and the detection module is configured to detect an actual PE value and compare the actual PE value with an expected PE value to adjust the proportion of the reserved space until the error between the actual PE value and the expected PE value is smaller than a threshold value, so that the reduced proportion and the adjusted reserved space are used for determining the storage space for performing the pressure test in the hard disk to be tested.
6. The system of claim 5, further comprising a first adjustment module configured to:
in response to the actual write bandwidth being less than the desired write bandwidth, reducing the reduction ratio and returning to the step of determining user capacity and NAND capacity from the reduction ratio and reserve space ratio to determine storage space based on the user capacity and NAND capacity until the actual write bandwidth is greater than the desired write bandwidth.
7. The system of claim 5, further comprising a second adjustment module configured to:
and responding to the writing time ratio being smaller than a threshold value, increasing the reduction ratio, and returning to 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 until the writing time ratio is larger than the threshold value.
8. The system of claim 5, wherein the detection module is further configured to:
in response to the actual PE value being greater than the expected PE value, reducing the proportion of the reserved space according to a preset proportion;
and in response to the actual PE value being less than the expected PE value, increasing the proportion of the reserved space according to the preset proportion.
9. A computer device, comprising:
at least one processor; and
memory storing a computer program operable on the processor, characterized in that the processor executes the program to perform the steps of the method according to any of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1-4.
CN202210111263.4A 2022-01-29 Hard disk pressure test method, system, equipment and medium Active CN114550798B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111263.4A CN114550798B (en) 2022-01-29 Hard disk pressure test method, system, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111263.4A CN114550798B (en) 2022-01-29 Hard disk pressure test method, system, equipment and medium

Publications (2)

Publication Number Publication Date
CN114550798A true CN114550798A (en) 2022-05-27
CN114550798B CN114550798B (en) 2024-10-22

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519590A (en) * 2022-09-29 2024-02-06 成都华为技术有限公司 Hard disk management method, hard disk control method and related equipment
CN118519591A (en) * 2024-07-25 2024-08-20 山东云海国创云计算装备产业创新中心有限公司 Flow control method and device of solid state disk, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347024A1 (en) * 2014-05-28 2015-12-03 International Business Machines Corporation Avoiding out-of-space conditions in storage controllers
CN109144419A (en) * 2018-08-20 2019-01-04 浪潮电子信息产业股份有限公司 Solid state disk memory read-write method and system
CN110764715A (en) * 2019-11-09 2020-02-07 苏州浪潮智能科技有限公司 Bandwidth control method, device and storage medium
CN111221475A (en) * 2020-01-04 2020-06-02 苏州浪潮智能科技有限公司 Storage space management method, device, equipment and readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150347024A1 (en) * 2014-05-28 2015-12-03 International Business Machines Corporation Avoiding out-of-space conditions in storage controllers
CN109144419A (en) * 2018-08-20 2019-01-04 浪潮电子信息产业股份有限公司 Solid state disk memory read-write method and system
CN110764715A (en) * 2019-11-09 2020-02-07 苏州浪潮智能科技有限公司 Bandwidth control method, device and storage medium
CN111221475A (en) * 2020-01-04 2020-06-02 苏州浪潮智能科技有限公司 Storage space management method, device, equipment and readable medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117519590A (en) * 2022-09-29 2024-02-06 成都华为技术有限公司 Hard disk management method, hard disk control method and related equipment
CN118519591A (en) * 2024-07-25 2024-08-20 山东云海国创云计算装备产业创新中心有限公司 Flow control method and device of solid state disk, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US10310930B2 (en) Solid state disk using method and apparatus
US7992061B2 (en) Method for testing reliability of solid-state storage medium
US20120124273A1 (en) Estimating Wear of Non-Volatile, Solid State Memory
CN112000497A (en) Service life prediction method and device for solid state disk and computer readable storage medium
CN118335152B (en) Flash memory particle screening method and device
CN110837477B (en) Storage system loss balancing method and device based on life prediction
CN112732181B (en) Data migration method and related device of SSD
US11947819B2 (en) Method and system for testing conversion relationship between block reading and page reading in flash memory chip
CN109871594A (en) A kind of NAND Flash characteristic model method for building up
CN108280029B (en) NorFlash chip-based data erasing method and system
CN114550798A (en) Hard disk pressure testing method, system, equipment and medium
CN114550798B (en) Hard disk pressure test method, system, equipment and medium
CN112764979A (en) Hard disk pressure test strength control method, system and medium
CN115206405A (en) Test method and test device for solid state disk and computer readable storage medium
CN112684973A (en) Server system with solid-state storage and related control method thereof
CN111767165B (en) Data processing method, device and control equipment
CN109857333B (en) Health degree processing method of SSD medium, SSD controller and disk array
CN111373480A (en) Fault prediction by unit detection
JP6848741B2 (en) Storage test equipment and storage test program
CN115171768B (en) Method, device, storage medium and equipment for improving SSD (solid State disk) defective product analysis efficiency
CN117637004B (en) Test result data-based test index optimization method
US11875864B2 (en) Mitigating edge layer effect in partially written blocks
CN115309345B (en) Erasing method, device, equipment and medium of nor flash
CN115691643A (en) NAND flash memory block screening method, device, equipment and storage medium
CN117457057A (en) Method, device, system, equipment and medium for testing data retention performance

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
GR01 Patent grant