A method, device, equipment and medium for testing performance of a multi-head mechanical hard disk

By conducting full-disk and partition performance tests on mechanical hard drives, the synchronous read and write performance of multiple heads and multiple partitions is evaluated. This solves the problem that existing technologies cannot effectively evaluate synchronous read and write performance of multiple heads and multiple partitions, provides data support for cross-region storage and hard drive screening, and improves the reliability of the test.

CN115424657BActive Publication Date: 2026-05-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF -1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2022-08-26
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing mechanical hard drive performance testing methods cannot effectively evaluate the performance of simultaneous read and write operations with multiple heads and multiple partitions, especially the efficiency in cross-region storage situations, and cannot meet the actual needs of multiple users and multiple partitions for simultaneous read and write operations.

Method used

This paper provides a method for testing the performance of multi-head hard disk drives. The method uses read and write tools to test the entire disk and partitions, obtains performance data, and compares the read and write performance of different partitions and heads to determine whether there are abnormalities in single-head operation, whether the read and write performance of heads is uniform, and whether there are abnormalities in multi-tasking latency.

Benefits of technology

It has enabled the verification of the synchronous read and write performance of multiple heads and multiple partitions, provided data support for cross-region storage in actual use, enriched the hard drive testing methods, and improved the reliability of testing and the accuracy of hard drive selection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115424657B_ABST
    Figure CN115424657B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of storage, and particularly relates to a multi-head mechanical hard disk performance testing method, device, equipment and medium. The method comprises the following steps: using a read-write tool to perform read-write testing on the whole mechanical hard disk to obtain first performance data; obtaining the number of magnetic heads of the mechanical hard disk and dividing the mechanical hard disk into multiple partitions; using the read-write tool to perform read-write testing on a certain partition of the mechanical hard disk to obtain second performance data, and simultaneously performing read-write testing on multiple partitions of the mechanical hard disk to obtain third performance data; comparing the first performance data and the second performance data to determine whether there is an abnormality in single-head operation; comparing the performance data corresponding to different partitions in the third performance data to determine whether the read-write performance of different magnetic heads is uniform; and comparing the first performance data and the third performance data to determine whether there is an abnormality in the delay when processing multiple tasks. The scheme of the present application realizes verification of the hard disk performance when HDD multiple magnetic heads and multiple partitions are synchronously read and written.
Need to check novelty before this filing date? Find Prior Art

Description

A method, apparatus, equipment and media for testing the performance of multi-head hard disk drives. Technical Field

[0001] This invention relates to the field of storage technology, and in particular to a method, apparatus, equipment and medium for testing the performance of multi-head hard disk drives. Background Technology

[0002] Servers play a crucial role in the widespread application of cloud computing and big data, and storage is an extremely important part of servers. Hard disk drives (HDDs) are a relatively mature traditional storage type, still widely used in the storage field due to their relatively low price and large capacity. HDDs mainly consist of: platters, read / write heads, platter spindle and control motor, head controller, data converter, interface, and cache. During operation, the read / write heads can move back and forth along the radius of the platter. Combined with the high-speed rotation of the platter (thousands of revolutions per minute), the heads can position themselves at specific locations on the platter to perform data read / write operations. To achieve larger capacity and faster read / write speeds, HDDs generally consist of multiple platters and multiple heads. Typically, each head is responsible for reading and writing data to one platter surface. However, the performance of HDDs when multiple heads, multiple platters, and multiple partitions are read / written simultaneously remains to be seen. This patent provides a testing method to test the synchronous read and write performance of HDDs with multiple heads and multiple partitions, in order to simulate the situation where multiple users read and write multiple partitions of HDDs at the same time. It is also applicable to the newly emerging HDDs with multiple heads and parallel read and write capabilities.

[0003] Currently, HDD performance testing typically involves using read / write tools to perform sequential or random read / write operations on the HDD under different conditions, determining the highest or average read / write speed as the standard performance value. However, existing HDD performance testing methods have the following limitations: the results obtained are idealized, representing the maximum achievable value of the HDD. Due to differences in disk track radii, there are significant performance differences between the outer and inner tracks. Furthermore, in real-world use, hard drives may be partitioned, leading to situations where data is stored across partitions. For example, multiple users may simultaneously perform read / write operations on multiple partitions, or a single user may perform consecutive read / write operations on multiple partitions. In such cases, disk efficiency will drop significantly, and currently, there is no testing method specifically for evaluating HDD performance when data is stored across partitions. Summary of the Invention

[0004] In view of this, in order to verify the hard disk performance of multi-head multi-partition synchronous read and write of HDD, provide data support for the read and write speed of cross-region storage in actual use, and verify the processing efficiency of HDD underlying algorithm for multi-task, this invention provides a method, device, equipment and medium for testing the performance of multi-head mechanical hard disks.

[0005] According to a first aspect of the present invention, a method for testing the performance of a multi-head hard disk drive is provided, the method comprising:

[0006] Use read / write tools to perform read / write tests on the entire mechanical hard drive to obtain initial performance data;

[0007] Obtain the number of read / write heads on the hard drive and divide the hard drive into multiple partitions, where the number of partitions on the hard drive is equal to the number of read / write heads;

[0008] Use read / write tools to perform read / write tests on a single partition of the hard drive to obtain second performance data, and simultaneously perform read / write tests on multiple partitions of the hard drive to obtain third performance data;

[0009] Compare the first performance data and the second performance data to determine if there is any abnormality in the operation of the single magnetic head;

[0010] Compare the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform;

[0011] The first performance data and the third performance data are compared to determine whether there are any anomalies in the multitasking latency.

[0012] In some embodiments, obtaining the number of read / write heads on the hard disk drive and dividing the hard disk drive into multiple partitions includes:

[0013] Each disk surface corresponding to a read / write head is treated as a partition;

[0014] Traverse multiple heads to obtain multiple partitions.

[0015] In some embodiments, comparing the first performance data and the second performance data to determine whether there is an anomaly in the operation of a single magnetic head includes:

[0016] Calculate the absolute value of the first difference between the performance values ​​of the corresponding test items in the second performance test data and the first performance test data;

[0017] If the absolute value of any first difference is greater than 3%, it is determined that there is an abnormality in the operation of the single magnetic head;

[0018] If the absolute value of all first differences is less than or equal to three percent, then it is determined that the single magnetic head is operating normally.

[0019] In some embodiments, comparing the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform includes:

[0020] Calculate the absolute value of the second difference between the performance values ​​of the same test item in two different partitions of the third performance data;

[0021] If the absolute value of any second difference is greater than 5%, it is determined that the read / write performance of different heads is not uniform.

[0022] If the absolute value of all second differences is less than or equal to 5%, then the read / write performance of different heads is determined to be uniform.

[0023] In some embodiments, comparing the first performance data and the third performance data to determine whether there are anomalies in multi-task processing latency includes:

[0024] Sum the performance values ​​of the same test item in different partitions of the third performance data;

[0025] Calculate the ratio of each sum to the performance value of the corresponding test item in the first performance test data;

[0026] If any ratio is less than 70%, it is determined that there is an anomaly in the multi-task processing latency.

[0027] If all ratios are greater than or equal to 70%, then the latency for multitasking is considered normal.

[0028] In some embodiments, reading and writing tests include at least one of sequential reading and writing, random reading and writing, reading and writing of data blocks of different sizes, and reading and writing of different queue depths.

[0029] In some embodiments, each read / write test lasts for more than ten minutes.

[0030] According to a second aspect of the present invention, a performance testing apparatus for a multi-head hard disk drive is provided, the apparatus comprising:

[0031] The full disk test module is configured to use read and write tools to perform read and write tests on the entire mechanical hard drive to obtain initial performance data.

[0032] The partitioning module is configured to obtain the number of read / write heads of the hard drive and divide the hard drive into multiple partitions, wherein the number of partitions of the hard drive is equal to the number of read / write heads.

[0033] The partition testing module is configured to use read and write tools to perform read and write tests on a single partition of the hard drive to obtain second performance data, and to perform read and write tests on multiple partitions of the hard drive simultaneously to obtain third performance data.

[0034] The first comparison module is configured to compare the first performance data and the second performance data to determine whether there is an abnormality in the operation of the single magnetic head.

[0035] The second comparison module is configured to compare the performance data corresponding to different partitions in the third performance data to determine whether the read and write performance of different heads is uniform.

[0036] The third comparison module is configured to compare the first performance data and the third performance data to determine whether there are any anomalies in the multi-task processing latency.

[0037] According to a third aspect of the present invention, a computer device is also provided, the computer device comprising:

[0038] At least one processor; and

[0039] The memory stores computer programs that can run on the processor, which executes the aforementioned multi-head hard disk drive performance testing method when executing the program.

[0040] According to a fourth aspect of the present invention, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, performs the aforementioned multi-head hard disk performance testing method.

[0041] The aforementioned method for testing the performance of multi-head hard disk drives (HDDs) verifies the performance of HDDs during simultaneous read and write operations across multiple partitions. It not only provides data support for read and write speeds when storing data across different regions in actual use, but also supports hard disk selection, enriching the testing methods for hard disk drives and exhibiting better reliability.

[0042] In addition, the present invention also provides a multi-head hard disk drive performance testing device, a computer device, and a computer-readable storage medium, which can achieve the above-mentioned technical effects, and will not be described in detail here. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained based on these drawings without creative effort.

[0044] Figure 1 is a flowchart of a performance testing method for a multi-head hard disk drive according to an embodiment of the present invention;

[0045] Figure 2 is a flowchart of another performance testing method for a multi-head hard disk drive provided in another embodiment of the present invention;

[0046] Figure 3 is a schematic diagram of a multi-head hard disk performance testing device provided in another embodiment of the present invention;

[0047] Figure 4 is an internal structural diagram of a computer device according to another embodiment of the present invention. Detailed Implementation

[0048] To make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to specific examples and the accompanying drawings.

[0049] It should be noted that all uses of "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities or parameters with the same name but different names. It is clear that "first" and "second" are only for the convenience of expression and should not be construed as limiting the embodiments of the present invention. Subsequent embodiments will not explain this in detail.

[0050] In one embodiment, referring to Figure 1, the present invention provides a method for testing the performance of a multi-head hard disk drive. Specifically, the method includes the following steps:

[0051] Step 101: Use a read / write tool to perform a read / write test on the entire mechanical hard drive to obtain the first performance data;

[0052] Step 102: Obtain the number of read / write heads of the hard disk drive and divide the hard disk drive into multiple partitions, wherein the number of partitions of the hard disk drive is equal to the number of read / write heads;

[0053] Step 103: Use a read / write tool to perform read / write tests on a partition of the hard drive to obtain second performance data, and simultaneously perform read / write tests on multiple partitions of the hard drive to obtain third performance data.

[0054] Step 104: Compare the first performance data and the second performance data to determine if there is any abnormality in the operation of the single magnetic head;

[0055] Step 105: Compare the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform;

[0056] Step 106: Compare the first performance data and the third performance data to determine if there are any anomalies in the multi-task processing latency.

[0057] The aforementioned method for testing the performance of multi-head hard disk drives (HDDs) verifies the performance of HDDs during simultaneous read and write operations across multiple partitions. It not only provides data support for read and write speeds when storing data across different regions in actual use, but also supports hard disk selection, enriching the testing methods for hard disk drives and exhibiting better reliability.

[0058] In some embodiments, step 102, which involves obtaining the number of read / write heads on the hard disk drive and dividing the hard disk drive into multiple partitions, includes:

[0059] Each disk surface corresponding to a read / write head is treated as a partition;

[0060] Traverse multiple heads to obtain multiple partitions.

[0061] In some embodiments, step 104, comparing the first performance data and the second performance data to determine whether there is an abnormality in the operation of the single magnetic head, includes:

[0062] Calculate the absolute value of the first difference between the performance values ​​of the corresponding test items in the second performance test data and the first performance test data;

[0063] If the absolute value of any first difference is greater than 3%, it is determined that there is an abnormality in the operation of the single magnetic head;

[0064] If the absolute value of all first differences is less than or equal to three percent, then it is determined that the single magnetic head is operating normally.

[0065] In some embodiments, step 105, which compares the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform, includes:

[0066] Calculate the absolute value of the second difference between the performance values ​​of the same test item in two different partitions of the third performance data;

[0067] If the absolute value of any second difference is greater than 5%, it is determined that the read / write performance of different heads is not uniform.

[0068] If the absolute value of all second differences is less than or equal to 5%, then the read / write performance of different heads is determined to be uniform.

[0069] In some embodiments, step 106, comparing the first performance data and the third performance data to determine whether there is an anomaly in the multi-task processing latency, includes:

[0070] The third performance data is the sum of the performance values ​​of the same test item in different partitions;

[0071] Calculate the ratio of each sum to the performance value of the corresponding test item in the first performance test data;

[0072] If any ratio is less than 70%, it is determined that there is an anomaly in the multi-task processing latency.

[0073] If all ratios are greater than or equal to 70%, then the latency for multitasking is considered normal.

[0074] In some embodiments, reading and writing tests include at least one of sequential reading and writing, random reading and writing, reading and writing of data blocks of different sizes, and reading and writing of different queue depths.

[0075] In some embodiments, each read / write test lasts for more than ten minutes.

[0076] In another embodiment, please refer to Figure 3. To facilitate understanding of the present invention, an 8TB HDD is used as an example for explanation. This embodiment provides another method for testing the performance of a multi-head hard disk drive. The specific implementation steps are as follows:

[0077] Part 1: Test Preparation

[0078] Step 1: Before testing, review the specifications of the HDD under test to fully understand the number of heads on the HDD and the distribution of magnetic fields that each head is responsible for.

[0079] Step 2: Ensure the HDD under test is running normally, and partition the HDD by read / write head. The partitions should cover the entire disk surface that the read / write heads are supposed to read and write, and try to ensure that the partitions include both the inner and outer tracks of the entire disk surface. Assuming an 8TB hard drive with 8 read / write heads responsible for reading and writing 8 disk surfaces, and each disk surface has 1TB of space, then this hard drive can be divided into 8 partitions, each with 1TB of space (because it involves hidden partitions and reserved space on the hard drive, it is impossible to achieve perfect partitioning in practice, but it has little impact on simultaneous read / write operations of multiple partitions).

[0080] Part Two: Testing Process

[0081] Step 1: Use read / write tools, such as fio, to perform read / write performance tests on different partitions of the HDD. The read / write process involves sequential read / write, random read / write, different data block sizes, and different queue depths. Each case is tested for ten minutes to fully verify the read / write performance under that case.

[0082] Step two involves multiple partitions and can be tested in various scenarios as follows:

[0083] Scenario 1: Perform read / write performance tests on a single partition;

[0084] Scenario 2: Simultaneously perform read / write performance tests on multiple partitions;

[0085] Scenario 3: Test the entire disk separately as a reference for partitioned testing and comparison;

[0086] Part Three: Testing and Verification

[0087] Step 1: Verify that the HDD status is normal and check if there is any abnormal data in the HDD smart log;

[0088] Step two: Organize and summarize the performance data measured under different read and write conditions during the test, and process the performance values ​​of different partitions;

[0089] Step three: Different test results were obtained for various scenarios.

[0090] For the comparison of the results in scenario one, a read / write performance test is performed on a certain partition. After the test is completed, the results are compared with the performance test values ​​of the entire disk. The difference between the partition test results and the overall disk test results should not exceed 3%. In this case, the single read / write head works on a single partition, and theoretically the algorithm should not produce any delay, and there is no difference from the overall disk test results.

[0091] For the comparison of results in case 2: (1) Perform read and write performance tests on multiple partitions at the same time. After the test, compare the performance results of the same test items of multiple partitions. The performance difference between each partition should not exceed 5%. If it exceeds 5%, it means that the performance distribution of the underlying algorithm of the HDD is uneven, or that the read and write performance of each head of the HDD is uneven. (2) Perform read and write performance tests on multiple partitions at the same time. After the test, add the performance results of the same test items of multiple partitions. After adding, compare the summed value with the overall disk performance test value. As the number of partitions increases, the summed performance value decreases. The gap between the summed value and the overall disk performance will become larger and larger. When 8 partitions are tested at the same time, the summed performance value of all partitions should not be lower than 70% of the overall disk performance test value. If it is lower than 70%, it means that the underlying algorithm of the test disk is less efficient, the latency of processing multiple tasks is relatively large, and the overall performance is relatively low.

[0092] In addition, it should be noted that in the specific implementation process, this method can also help find the best partitioning method for the hard drive, with 80% of the overall disk performance test value as the dividing point. For example, when four partitions are read and written at the same time, the combined performance value of the partitions can only reach 80% of the overall disk performance value. Therefore, it is recommended that the number of partitions should not exceed four in the later use, or the number of partitions read and written at the same time should be limited to no more than four.

[0093] Another method for testing the performance of multi-head hard disk drives in this embodiment has at least the following beneficial technical effects: it verifies the performance of the hard disk when the HDD is read and written synchronously with multiple heads and multiple partitions, provides data support for the read and write speed when storing across regions in actual use, provides support for hard disk selection, and the smaller the difference between the partition summation performance value and the overall disk performance value, the more efficient the hard disk is in handling multiple tasks. The smaller the difference in performance values ​​between partitions, the more stable the hard disk is in handling multiple tasks, and the better it can meet the requirements of subsequent multi-partition read and write.

[0094] In some embodiments, as shown in FIG3, the present invention also provides a multi-head hard disk drive performance testing device 200, the device comprising:

[0095] The whole disk test module 201 is configured to use read and write tools to perform read and write tests on the entire mechanical hard disk to obtain the first performance data.

[0096] The partitioning module 202 is configured to obtain the number of read / write heads of the hard disk and divide the hard disk into multiple partitions, wherein the number of partitions of the hard disk is equal to the number of read / write heads.

[0097] The partition test module 203 is configured to use a read / write tool to perform read / write tests on a partition of the hard disk drive to obtain second performance data, and to perform read / write tests on multiple partitions of the hard disk drive simultaneously to obtain third performance data.

[0098] The first comparison module 204 is configured to compare the first performance data and the second performance data to determine whether there is an abnormality in the operation of the single magnetic head.

[0099] The second comparison module 205 is configured to compare the performance data corresponding to different partitions in the third performance data to determine whether the read and write performance of different heads is uniform.

[0100] The third comparison module 206 is configured to compare the first performance data and the third performance data to determine whether there is an anomaly in the multi-task processing latency.

[0101] The aforementioned multi-head hard disk drive performance testing device verifies the performance of HDDs during simultaneous read and write operations across multiple heads and partitions. It not only provides data support for read and write speeds during cross-region storage in actual use, but also supports hard disk screening, enriching the testing methods for hard disks and exhibiting superior reliability.

[0102] In some embodiments, the partitioning module 202 is further configured to:

[0103] Each disk surface corresponding to a read / write head is treated as a partition;

[0104] Traverse multiple heads to obtain multiple partitions.

[0105] In some embodiments, the first comparison module 204 is further configured to:

[0106] Calculate the absolute value of the first difference between the performance values ​​of the corresponding test items in the second performance test data and the first performance test data;

[0107] If the absolute value of any first difference is greater than 3%, it is determined that there is an abnormality in the operation of the single magnetic head;

[0108] If the absolute value of all first differences is less than or equal to three percent, then it is determined that the single magnetic head is operating normally.

[0109] In some embodiments, the second comparison module 205 is further configured to:

[0110] Calculate the absolute value of the second difference between the performance values ​​of the same test item in two different partitions of the third performance data;

[0111] If the absolute value of any second difference is greater than 5%, it is determined that the read / write performance of different heads is not uniform.

[0112] If the absolute value of all second differences is less than or equal to 5%, then the read / write performance of different heads is determined to be uniform.

[0113] In some embodiments, the second comparison module 206 is further configured to:

[0114] Sum the performance values ​​of the same test item in different partitions of the third performance data;

[0115] Calculate the ratio of each sum to the performance value of the corresponding test item in the first performance test data;

[0116] If any ratio is less than 70%, it is determined that there is an anomaly in the multi-task processing latency.

[0117] If all ratios are greater than or equal to 70%, then the latency for multitasking is considered normal.

[0118] In some embodiments, reading and writing tests include at least one of sequential reading and writing, random reading and writing, reading and writing of data blocks of different sizes, and reading and writing of different queue depths.

[0119] In some embodiments, each read / write test lasts for more than ten minutes.

[0120] It should be noted that the specific limitations of the multi-head hard disk drive (HDD) performance testing device can be found in the limitations of the multi-head HDD performance testing method described above, and will not be repeated here. Each module in the aforementioned multi-head HDD performance testing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or they can be stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0121] According to another aspect of the present invention, a computer device is provided, which may be a server, and its internal structure is shown in Figure 4. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device stores data. The network interface of the computer device is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements the above-described multi-head hard disk drive performance testing method. Specifically, the method includes the following steps:

[0122] Use read / write tools to perform read / write tests on the entire mechanical hard drive to obtain initial performance data;

[0123] Obtain the number of read / write heads on the hard drive and divide the hard drive into multiple partitions, where the number of partitions on the hard drive is equal to the number of read / write heads;

[0124] Use read / write tools to perform read / write tests on a single partition of the hard drive to obtain second performance data, and simultaneously perform read / write tests on multiple partitions of the hard drive to obtain third performance data;

[0125] Compare the first performance data and the second performance data to determine if there is any abnormality in the operation of the single magnetic head;

[0126] Compare the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform;

[0127] The first performance data and the third performance data are compared to determine whether there are any anomalies in the multitasking latency.

[0128] In some embodiments, obtaining the number of read / write heads on the hard disk drive and dividing the hard disk drive into multiple partitions includes:

[0129] Each disk surface corresponding to a read / write head is treated as a partition;

[0130] Traverse multiple heads to obtain multiple partitions.

[0131] In some embodiments, comparing the first performance data and the second performance data to determine whether there is an anomaly in the operation of a single magnetic head includes:

[0132] Calculate the absolute value of the first difference between the performance values ​​of the corresponding test items in the second performance test data and the first performance test data;

[0133] If the absolute value of any first difference is greater than 3%, it is determined that there is an abnormality in the operation of the single magnetic head;

[0134] If the absolute value of all first differences is less than or equal to three percent, then it is determined that the single magnetic head is operating normally.

[0135] In some embodiments, comparing the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform includes:

[0136] Calculate the absolute value of the second difference between the performance values ​​of the same test item in two different partitions of the third performance data;

[0137] If the absolute value of any second difference is greater than 5%, it is determined that the read / write performance of different heads is not uniform.

[0138] If the absolute value of all second differences is less than or equal to 5%, then the read / write performance of different heads is determined to be uniform.

[0139] In some embodiments, comparing the first performance data and the third performance data to determine whether there are anomalies in multi-task processing latency includes:

[0140] Sum the performance values ​​of the same test item in different partitions of the third performance data;

[0141] Calculate the ratio of each sum to the performance value of the corresponding test item in the first performance test data;

[0142] If any ratio is less than 70%, it is determined that there is an anomaly in the multi-task processing latency.

[0143] If all ratios are greater than or equal to 70%, then the latency for multitasking is considered normal.

[0144] In some embodiments, reading and writing tests include at least one of sequential reading and writing, random reading and writing, reading and writing of data blocks of different sizes, and reading and writing of different queue depths.

[0145] In some embodiments, each read / write test lasts for more than ten minutes.

[0146] According to another aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored, wherein when the computer program is executed by a processor, it implements the above-described multi-head hard disk performance testing method, specifically including the following steps:

[0147] Use read / write tools to perform read / write tests on the entire mechanical hard drive to obtain initial performance data;

[0148] Obtain the number of read / write heads on the hard drive and divide the hard drive into multiple partitions, where the number of partitions on the hard drive is equal to the number of read / write heads;

[0149] Use read / write tools to perform read / write tests on a single partition of the hard drive to obtain second performance data, and simultaneously perform read / write tests on multiple partitions of the hard drive to obtain third performance data;

[0150] Compare the first performance data and the second performance data to determine if there is any abnormality in the operation of the single magnetic head;

[0151] Compare the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform;

[0152] The first performance data and the third performance data are compared to determine whether there are any anomalies in the multitasking latency.

[0153] In some embodiments, obtaining the number of read / write heads on the hard disk drive and dividing the hard disk drive into multiple partitions includes:

[0154] Each disk surface corresponding to a read / write head is treated as a partition;

[0155] Traverse multiple heads to obtain multiple partitions.

[0156] In some embodiments, comparing the first performance data and the second performance data to determine whether there is an anomaly in the operation of a single magnetic head includes:

[0157] Calculate the absolute value of the first difference between the performance values ​​of the corresponding test items in the second performance test data and the first performance test data;

[0158] If the absolute value of any first difference is greater than 3%, it is determined that there is an abnormality in the operation of the single magnetic head;

[0159] If the absolute value of all first differences is less than or equal to three percent, then it is determined that the single magnetic head is operating normally.

[0160] In some embodiments, comparing the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform includes:

[0161] Calculate the absolute value of the second difference between the performance values ​​of the same test item in two different partitions of the third performance data;

[0162] If the absolute value of any second difference is greater than 5%, it is determined that the read / write performance of different heads is not uniform.

[0163] If the absolute value of all second differences is less than or equal to 5%, then the read / write performance of different heads is determined to be uniform.

[0164] In some embodiments, comparing the first performance data and the third performance data to determine whether there are anomalies in multi-task processing latency includes:

[0165] Sum the performance values ​​of the same test item in different partitions of the third performance data;

[0166] Calculate the ratio of each sum to the performance value of the corresponding test item in the first performance test data;

[0167] If any ratio is less than 70%, it is determined that there is an anomaly in the multi-task processing latency.

[0168] If all ratios are greater than or equal to 70%, then the latency for multitasking is considered normal.

[0169] In some embodiments, reading and writing tests include at least one of sequential reading and writing, random reading and writing, reading and writing of data blocks of different sizes, and reading and writing of different queue depths.

[0170] In some embodiments, each read / write test lasts for more than ten minutes.

[0171] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0172] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0173] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for testing the performance of a multi-head hard disk drive, characterized in that, The method includes: performing read / write tests on the entire hard disk using a read / write tool to obtain first performance data; obtaining the number of read / write heads on the hard disk and dividing the hard disk into multiple partitions, wherein the number of partitions on the hard disk is equal to the number of read / write heads; performing read / write tests on a specific partition of the hard disk using a read / write tool to obtain second performance data, and simultaneously performing read / write tests on multiple partitions of the hard disk to obtain third performance data; comparing the first performance data and the second performance data to determine if there are any abnormalities in the operation of a single read / write head; comparing the performance data corresponding to different partitions in the third performance data to determine if the read / write performance of different read / write heads is uniform; and comparing the first performance data and the third performance data to determine if there are any abnormalities in the latency of multitasking.

2. The performance testing method for multi-head hard disk drives according to claim 1, characterized in that, The step of obtaining the number of read / write heads of the hard disk and dividing the hard disk into multiple partitions includes: treating the disk surface corresponding to each read / write head as a partition; and traversing multiple read / write heads to obtain multiple partitions.

3. The performance testing method for multi-head hard disk drives according to claim 1, characterized in that, The comparison of the first performance data and the second performance data to determine whether there is an abnormality in the operation of a single magnetic head includes: calculating the absolute value of the first difference between the performance values ​​of the corresponding test items in the second performance test data and the first performance test data; if any absolute value of the first difference is greater than 3%, then it is determined that there is an abnormality in the operation of the single magnetic head; if all absolute values ​​of the first difference are less than or equal to 3%, then it is determined that there is no abnormality in the operation of the single magnetic head.

4. The performance testing method for multi-head hard disk drives according to claim 1, characterized in that, The step of comparing the performance data corresponding to different partitions in the third performance data to determine whether the read and write performance of different heads is uniform includes: calculating the absolute value of the second difference of the performance values ​​of the same test item in two different partitions in the third performance data; if any absolute value of the second difference is greater than 5%, then it is determined that the read and write performance of different heads is not uniform; if all absolute values ​​of the second difference are less than or equal to 5%, then it is determined that the read and write performance of different heads is uniform.

5. The performance testing method for multi-head hard disk drives according to claim 1, characterized in that, The comparison of the first performance data and the third performance data to determine whether there is an anomaly in the multi-task processing latency includes: summing the performance values ​​of the same test item in each different partition of the third performance data; calculating the ratio of each sum to the performance value of the corresponding test item in the first performance test data; determining that there is an anomaly in the multi-task processing latency if any ratio is less than 70%; and determining that the multi-task processing latency is normal if all ratios are greater than or equal to 70%.

6. The performance testing method for a multi-head hard disk drive according to any one of claims 1-5, characterized in that, The read / write test includes at least one of the following: sequential read / write, random read / write, read / write of data blocks of different sizes, and read / write of different queue depths.

7. The performance testing method for a multi-head hard disk drive according to any one of claims 1-5, characterized in that, Each read / write test lasted more than ten minutes.

8. A performance testing device for a multi-head hard disk drive, characterized in that, The device includes: a full-disk testing module configured to perform read / write tests on the entire hard disk using a read / write tool to obtain first performance data; a partitioning module configured to obtain the number of read / write heads of the hard disk and divide the hard disk into multiple partitions, wherein the number of partitions of the hard disk is equal to the number of read / write heads; a partition testing module configured to perform read / write tests on a specific partition of the hard disk using a read / write tool to obtain second performance data, and to simultaneously perform read / write tests on multiple partitions of the hard disk to obtain third performance data; a first comparison module configured to compare the first performance data and the second performance data to determine whether there is an anomaly in single-head operation; a second comparison module configured to compare the performance data corresponding to different partitions in the third performance data to determine whether the read / write performance of different heads is uniform; and a third comparison module configured to compare the first performance data and the third performance data to determine whether there is an anomaly in multi-task processing latency.

9. A computer device, characterized in that, include: At least one processor; And a memory storing a computer program executable in the processor, wherein the processor executes the program to perform the method according to any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it performs the method described in any one of claims 1-7.