Hard disk performance determination method, device, equipment, storage medium and program product

CN119065941BActive Publication Date: 2026-09-25DAWNING INFORMATION IND (BEIJING) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411019981.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2026-09-25
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

[0003]然而,由于信息采集工具仅考虑了输入输出I/O请求是否能被充分下发到硬盘中,忽略了由于合并操作导致的硬盘寻道时间减少所带来的性能优化效果,容易降低硬盘性能评估的准确性

Benefits of technology

[0021]在本申请实施例中,通过相邻采样时段内的I/O合并操作数量,来判断待测硬盘是否达到硬盘性能瓶颈,能够保证硬盘性能瓶颈确定的准确性和合理性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065941B_ABST
    Figure CN119065941B_ABST
Patent Text Reader

Abstract

The application relates to a hard disk performance determination method, device, equipment, storage medium and program product. The method comprises the following steps: determining an input / output (I / O) merging parameter in a current sampling period according to an I / O merging parameter of a to-be-tested hard disk in a previous sampling period, determining an I / O issuing amount in the current sampling period according to an I / O issuing amount of the to-be-tested hard disk in the previous sampling period, sending an I / O request to the to-be-tested hard disk based on the I / O issuing amount and the I / O merging parameter in the current sampling period, and obtaining I / O processing information of the to-be-tested hard disk on the I / O request in the current sampling period, and determining performance information of the to-be-tested hard disk according to the I / O processing information of the to-be-tested hard disk on the I / O request in the current sampling period and on the I / O request in the previous sampling period. The method can improve the accuracy of hard disk performance evaluation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method, apparatus, device, storage medium, and program product for determining hard disk performance. Background Technology

[0002] To better evaluate hard drive performance, technicians often use metrics such as hard drive utilization and response time provided by information collection tools to accurately understand the current disk load of the system, so as to assess whether the hard drive has reached a performance bottleneck.

[0003] However, since information acquisition tools only consider whether input / output I / O requests can be fully sent to the hard drive, they ignore the performance optimization effect brought about by the reduction in hard drive seek time due to merging operations, which can easily reduce the accuracy of hard drive performance evaluation. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, device, storage medium, and program product for determining hard disk performance that can improve the accuracy of hard disk performance evaluation, in response to the above-mentioned technical problems.

[0005] Firstly, this application provides a method for determining hard disk performance, including:

[0006] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0007] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0008] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0009] In this embodiment of the application, compared with the related technology that evaluates hard disk performance based solely on the amount of I / O requests, the above method introduces an I / O merging parameter. By controlling the I / O merging parameter to adjust the merging of I / O requests under increased I / O request pressure, the use of the hard disk under test is made more reasonable, thereby ensuring the accuracy and rationality of the performance analysis of the hard disk under test.

[0010] In one embodiment, the I / O merging parameters for the current sampling period are determined based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, including:

[0011] Based on the configuration information of the hard drive under test, determine the adjustment value of the merging parameters; using the adjustment value of the merging parameters, increase the I / O merging parameters of the hard drive under test in the previous sampling period to obtain the I / O merging parameters in the current sampling period; wherein, the I / O merging parameters include at least one of the following: concurrency parameter, timeout parameter, and batch processing parameter.

[0012] In this embodiment of the application, by increasing the I / O merging parameter using the merging parameter adjustment value, the probability of I / O request merging during the current sampling period can be increased while ensuring the rationality of the parameter adjustment.

[0013] In one embodiment, determining the I / O transmission volume in the current sampling period based on the I / O transmission volume of the hard disk under test in the previous sampling period includes:

[0014] Based on the I / O processing information of the hard drive under test for I / O requests in the previous sampling period, determine the I / O distribution adjustment value; using the I / O distribution adjustment value, increase the I / O distribution of the hard drive under test in the previous sampling period to obtain the I / O distribution in the current sampling period.

[0015] In this embodiment of the application, by increasing the I / O sending amount using an I / O sending amount adjustment value to increase the test pressure on the hard drive under test, the rationality of the increase in test pressure can be guaranteed.

[0016] In one embodiment, performance information of the hard drive under test is determined based on its I / O processing information for I / O requests during the current sampling period and its I / O processing information for I / O requests during the previous sampling period. This includes:

[0017] Based on the I / O processing information of the hard drive under test for I / O requests in the current sampling period and the I / O processing information for I / O requests in the previous sampling period, determine whether the hard drive under test has reached its performance bottleneck. If so, determine the performance information of the hard drive under test based on the I / O processing information in the current sampling period. If not, take the current sampling period as the new previous sampling period and return to execute the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard drive under test in the previous sampling period.

[0018] In this embodiment of the application, by determining the performance information of the hard drive under test based on whether the hard drive under test has reached its performance bottleneck, the rationality of the I / O processing information used when analyzing the hard drive under test can be guaranteed, thereby ensuring the accuracy of the performance information of the hard drive under test.

[0019] In one embodiment, the I / O processing information includes the number of I / O merged operations and the hard disk seek time. Based on the I / O processing information of the hard disk under test for I / O requests in the current sampling period and the I / O processing information for I / O requests in the previous sampling period, it is determined whether the hard disk under test has reached a hard disk performance bottleneck, including:

[0020] Determine whether the number of I / O merged operations of the hard drive under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if so, determine whether the hard drive under test has reached the hard drive performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time in the current sampling period.

[0021] In this embodiment of the application, the number of I / O combined operations within adjacent sampling periods is used to determine whether the hard disk under test has reached the hard disk performance bottleneck, which can ensure the accuracy and rationality of the hard disk performance bottleneck determination.

[0022] In one embodiment, determining whether the hard drive under test has reached a performance bottleneck is based on the hard drive seek time in the previous sampling period and the hard drive seek time in the current sampling period, including:

[0023] Determine whether the hard drive seek time of the hard drive under test in the previous sampling period is less than the hard drive seek time in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if yes, determine that the hard drive under test has not reached the hard drive performance bottleneck.

[0024] In this embodiment of the application, the hard disk seek time within adjacent sampling periods is used to determine whether the hard disk under test has reached the hard disk performance bottleneck, which can ensure the accuracy and rationality of the hard disk performance bottleneck determination.

[0025] Secondly, this application also provides a hard disk performance determination device, comprising:

[0026] The parameter determination module is used to determine the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, and to determine the I / O sending volume in the current sampling period based on the I / O sending volume of the hard disk under test in the previous sampling period.

[0027] The information acquisition module is used to send I / O requests to the hard disk under test based on the I / O output and I / O merging parameters in the current sampling period, and to acquire the I / O processing information of the hard disk under test for the I / O requests in the current sampling period.

[0028] The performance determination module is used to determine the performance information of the hard drive under test based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0029] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0030] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0031] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0032] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0033] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0034] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0035] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0036] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0037] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0038] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0039] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0040] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0041] The aforementioned hard disk performance determination method, apparatus, device, storage medium, and program product determine the I / O merging parameters for the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, and determine the I / O sending volume for the current sampling period based on the I / O sending volume of the hard disk under test in the previous sampling period. Then, based on the I / O sending volume and I / O merging parameters for the current sampling period, an I / O request is sent to the hard disk under test, and the I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained. Subsequently, the performance information of the hard disk under test is determined based on the I / O processing information of the hard disk under test for the I / O request in the current sampling period and the I / O processing information for the I / O request in the previous sampling period. Compared to related technologies that evaluate hard drive performance solely based on the amount of I / O requests sent, the above method introduces an I / O merging parameter. By controlling the I / O merging parameter under increased I / O request pressure, the merging of I / O requests can be adjusted, making the use of the hard drive under test more reasonable and thus ensuring the accuracy and rationality of the performance analysis of the hard drive under test. Attached Figure Description

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

[0043] Figure 1 This is a flowchart illustrating a method for determining hard disk performance in one embodiment;

[0044] Figure 2 This is a flowchart illustrating the process of determining I / O merging parameters in one embodiment;

[0045] Figure 3 This is a schematic diagram of the process for determining the I / O issuance quantity in one embodiment;

[0046] Figure 4 This is a flowchart illustrating the process of determining the performance information of a hard drive under test in one embodiment.

[0047] Figure 5 This is a flowchart illustrating the process of identifying hard drive performance bottlenecks in one embodiment.

[0048] Figure 6 This is a flowchart illustrating a method for determining hard disk performance in another embodiment;

[0049] Figure 7 This is a structural block diagram of a hard disk performance determination device in one embodiment;

[0050] Figure 8 This is a structural block diagram of a hard disk performance determination device in another embodiment;

[0051] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0053] To better evaluate hard drive performance, technicians often use metrics such as hard drive utilization and response time provided by information collection tools to accurately understand the current disk load of the system, so as to assess whether the hard drive has reached a performance bottleneck.

[0054] However, since information acquisition tools only consider whether input / output I / O requests can be fully sent to the hard drive, they ignore the performance optimization effect brought about by the reduction in hard drive seek time due to merging operations, which can easily reduce the accuracy of hard drive performance evaluation.

[0055] Based on this, in an exemplary embodiment, a method for determining hard disk performance is provided, illustrated using a performance analysis device to which the method is applied, such as... Figure 1 As shown, the specific steps include:

[0056] S101, based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0057] Among them, the hard drive under test refers to the hard drive that needs performance analysis; the sampling period refers to the time period during which information in the hard drive under test is sampled and processed; the current sampling period refers to the sampling period including the current moment; and the previous sampling period refers to the previous sampling period adjacent to the current sampling period.

[0058] I / O merging parameters are parameters that can adjust the merging of I / O requests; I / O dispatch quantity refers to the number of I / O requests dispatched.

[0059] Understandably, in order to better analyze the performance of the hard drive under test, it is necessary to pre-determine the I / O request processing data when the hard drive under test is in a performance bottleneck state. Therefore, if the hard drive under test has not reached the performance bottleneck in the previous sampling period, the I / O merging parameters of the hard drive under test in the previous sampling period can be input into the trained first parameter determination model. The first parameter determination model then outputs the I / O merging parameters for the current sampling period based on the I / O merging parameters and the model parameters.

[0060] Furthermore, the I / O output of the hard disk under test in the previous sampling period can be input into the trained second parameter determination model. The second parameter determination model outputs the I / O output in the current sampling period based on the I / O output and model parameters.

[0061] It is understandable that, since there is no corresponding previous sampling period for the first sampling period of the hard drive under test, the initial I / O merging parameters and I / O output can be determined based on the configuration information of the hard drive under test for the first sampling period.

[0062] S102, based on the I / O output and I / O merging parameters in the current sampling period, send an I / O request to the hard disk under test, and obtain the I / O processing information of the hard disk under test for the I / O request in the current sampling period.

[0063] Among them, I / O processing information is used to characterize the relevant information generated by the hard drive under test in processing I / O requests.

[0064] Optionally, after determining the I / O issuance volume and I / O merging parameters within the current sampling period, I / O requests can be issued to the hard disk under test based on the I / O issuance volume, and the I / O requests can be merged based on the I / O merging parameters to improve the processing efficiency of I / O requests.

[0065] Furthermore, after issuing an I / O request, a preset information acquisition test case can be invoked to automatically obtain the I / O processing information generated by the hard disk under test when processing the I / O request during the current sampling period.

[0066] Understandably, in order to improve the accuracy of I / O processing information acquisition, a standard hybrid 1M 7:3 random read / write test model can be used to reflect the most realistic hard drive performance by bypassing the high-speed cache memory in memory. In addition, this test model can simulate the most common access patterns of hard drives in daily use by users to reflect the real user experience.

[0067] S103. Based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period, determine the performance information of the hard disk under test.

[0068] Among them, performance information is used to characterize the operating performance of the hard drive under test, such as, but not limited to, the maximum I / O request processing volume.

[0069] Optionally, after obtaining the I / O processing information of the hard drive under test in the current sampling period, the I / O processing information in the current sampling period and the I / O processing information in the previous sampling period can be simultaneously input into the trained performance analysis model. The performance analysis model will then output the performance information of the hard drive under test based on the I / O processing information in the current sampling period, the I / O processing information in the previous sampling period, and the model parameters.

[0070] In the aforementioned method for determining hard disk performance, the I / O merging parameters for the current sampling period are determined based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period. The I / O sending volume for the current sampling period is determined based on the I / O sending volume of the hard disk under test in the previous sampling period. Then, based on the I / O sending volume and the I / O merging parameters for the current sampling period, an I / O request is sent to the hard disk under test, and the I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained. Subsequently, the performance information of the hard disk under test is determined based on the I / O processing information of the hard disk under test for the I / O request in the current sampling period and the I / O processing information for the I / O request in the previous sampling period. Compared to related technologies that evaluate hard drive performance solely based on the amount of I / O requests sent, the above method introduces an I / O merging parameter. By controlling the I / O merging parameter under increased I / O request pressure, the merging of I / O requests can be adjusted, making the use of the hard drive under test more reasonable and thus ensuring the accuracy and rationality of the performance analysis of the hard drive under test.

[0071] To increase the probability of I / O request merging within the current sampling period, this embodiment provides an optional method for determining I / O merging parameters, based on the above embodiments. Figure 2 As shown, the specific steps include:

[0072] S201, determine the adjustment value of the merging parameters based on the configuration information of the hard drive under test.

[0073] The configuration information refers to information related to the basic configuration of the hard drive under test, such as, but not limited to, the hard drive capacity; the merge parameter adjustment value refers to the value used to adjust the I / O merge parameters.

[0074] Optionally, the configuration information of the hard drive under test can be input into the trained first parameter adjustment model, which will then output the merged parameter adjustment value based on the configuration information and model parameters.

[0075] Alternatively, to improve the accuracy of the merged parameter adjustment values, a second parameter adjustment model can be trained based on the historical operating parameters of the hard drive under test and the corresponding I / O merged parameters. Correspondingly, the historical operating data and configuration information of the hard drive under test in the previous period can be simultaneously input into the second parameter adjustment model, which will then output the merged parameter adjustment values ​​based on the historical operating data, configuration information, and model parameters.

[0076] S202, by using the merge parameter adjustment value, the I / O merge parameter of the hard disk under test in the previous sampling period is increased to obtain the I / O merge parameter in the current sampling period.

[0077] The I / O merging parameters include at least one of the following: concurrency parameters, timeout parameters, and batch processing parameters.

[0078] Understandably, given that the hard disk address space is fixed, increasing the number of concurrent requests increases the probability of I / O request merging; increasing the timeout provides more time for I / O request merging, thus increasing the probability of I / O request merging; increasing the batch size increases the amount of data in a single I / O request, thereby submitting more I / O requests when the number of I / O requests that the hard disk can handle is fixed, thus increasing the probability of I / O request merging.

[0079] Based on this, after determining the adjustment value of the merging parameter, the I / O merging parameter can be increased based on the I / O merging parameter of the hard disk under test in the previous sampling period, and then the I / O merging parameter in the current sampling period can be calculated.

[0080] For example, the sum of the merge parameter adjustment value and the I / O merge parameter of the hard disk under test in the previous sampling period can be used as the I / O merge parameter in the current sampling period.

[0081] For example, compared to the previous sampling period, the specific settings of the disk scheduler in the current sampling period may include: add_random set to 1; read_ahead_kb can be adjusted to a larger value; rq_affinity set to 1; write_cache set to write back; nr_requests can be set to a larger value; wbt_lat_usec can be increased appropriately; io_timeout can be increased appropriately; io_poll set to 0; fifo_batch can be set to a larger value; read_expire can be set to a larger value; write_expire can be set to a larger value; and writes_starved can be set to a larger value.

[0082] It is understandable that when there are multiple I / O merging parameters, the above-mentioned method S201 can be used to calculate the merging parameter adjustment value corresponding to each type of I / O merging parameter. Then, the merging parameter adjustment value corresponding to each type of I / O merging parameter is used to adjust each type of I / O merging parameter in the previous sampling period to obtain the various types of I / O merging parameters in the current sampling period.

[0083] In this embodiment of the application, by increasing the I / O merging parameter using a merging parameter adjustment value, the probability of I / O request merging during the current sampling period can be increased while ensuring the rationality of the parameter adjustment.

[0084] To reasonably increase the amount of I / O requests issued, based on the above embodiments, this embodiment provides an optional method for determining the amount of I / O requests issued, such as... Figure 3 As shown, the specific steps include:

[0085] S301, determine the I / O output adjustment value based on the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

[0086] The I / O output adjustment value refers to the value used to adjust the I / O output.

[0087] Optionally, the I / O processing information of the I / O requests in the previous sampling period can be output to the trained third parameter adjustment model. The third parameter adjustment model then outputs the I / O output adjustment value based on the I / O processing information of the I / O requests in the previous sampling period and the model parameters.

[0088] S302 uses an I / O output adjustment value to increase the I / O output of the hard disk under test in the previous sampling period to obtain the I / O output in the current sampling period.

[0089] Understandably, to increase the I / O request test pressure on the hard drive, it is necessary to increase the I / O request volume based on the I / O volume of the hard drive under test in the previous sampling period. Therefore, an I / O volume adjustment value can be used to increase the I / O request volume based on the I / O volume of the hard drive under test in the previous sampling period, thus obtaining the I / O volume in the current sampling period.

[0090] For example, the sum of the I / O output adjustment value and the I / O output of the hard drive under test in the previous sampling period can be used as the I / O output in the current sampling period.

[0091] In this embodiment of the application, by using an I / O output adjustment value to increase the I / O output, the test pressure on the hard drive under test is increased, which ensures the rationality of the increase in test pressure.

[0092] To ensure the reasonableness of hard drive performance analysis, based on the above embodiments, this embodiment provides an optional method for determining the performance information of the hard drive under test, such as... Figure 4 As shown, the specific steps include:

[0093] S401, Obtain I / O processing information of the hard disk under test for I / O requests in the previous sampling period.

[0094] Optionally, preset information acquisition test cases can be invoked to automatically acquire I / O processing information generated by the hard disk under test when processing I / O requests in the previous sampling period.

[0095] S402: Based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period, determine whether the hard disk under test has reached the hard disk performance bottleneck. If yes, execute S403; otherwise, execute S404.

[0096] Optionally, the I / O processing information of the hard drive under test for I / O requests in the current sampling period and the I / O processing information for I / O requests in the previous sampling period can be simultaneously input into a trained bottleneck determination model. The bottleneck determination model can then determine whether the hard drive under test has reached its performance bottleneck based on the I / O processing information in two adjacent sampling periods.

[0097] Furthermore, if the hard drive under test reaches its performance bottleneck, step S403 can be executed; if the hard drive under test does not reach its performance bottleneck, step S404 can be executed.

[0098] S403 determines the performance information of the hard drive under test based on the I / O processing information during the current sampling period.

[0099] Optionally, when the hard drive under test reaches its performance bottleneck, the performance of the hard drive under test can be analyzed based on the I / O processing information during the current sampling period to obtain the performance information of the hard drive under test.

[0100] S404: Take the current sampling period as the new previous sampling period, and return to execute the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period.

[0101] Optionally, if the hard drive under test has not reached its performance bottleneck, the current sampling period should be used as the new previous sampling period, and the above step S101 should be executed again, that is, the I / O merging parameters and I / O output should be increased to make the performance of the hard drive under test reach the bottleneck, and then the performance information of the hard drive under test can be determined when the hard drive under test reaches its performance bottleneck.

[0102] In this embodiment of the application, by determining the performance information of the hard drive under test based on whether the hard drive under test has reached its performance bottleneck, the rationality of the I / O processing information used when analyzing the hard drive under test can be guaranteed, thereby ensuring the accuracy of the performance information of the hard drive under test.

[0103] To ensure the accuracy of performance bottleneck identification, based on the above embodiments, this embodiment further provides an optional method for determining hard disk performance bottlenecks, including the number of I / O merged operations and hard disk seek time, with the I / O processing information including the number of I / O merged operations and hard disk seek time. Figure 5 As shown, the specific steps include:

[0104] S501, obtain the number of I / O merging operations in the previous sampling period and the number of I / O merging operations in the current sampling period.

[0105] The number of I / O merging operations refers to the number of I / O request merging operations.

[0106] Optionally, the number of I / O merged operations in the previous sampling period and the number of I / O merged operations in the current sampling period can be extracted from the I / O processing information of the previous sampling period and the I / O processing information of the current sampling period.

[0107] For example, the number of I / O merging operations can be determined based on the Merge item information in the I / O processing information.

[0108] S502, determine whether the number of I / O merged operations of the hard disk under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period. If not, execute S503; if yes, execute S504.

[0109] Optionally, the number of I / O merged operations of the hard disk under test in the previous sampling period can be compared with the number of I / O merged operations of the hard disk under test in the current sampling period. If the number of I / O merged operations in the previous sampling period is equal to the number of I / O merged operations in the current sampling period, then S503 is executed; if the number of I / O merged operations in the previous sampling period is less than the number of I / O merged operations in the current sampling period, then S504 is executed.

[0110] S503 indicates that the hard drive under test has reached its performance bottleneck.

[0111] Optionally, if the number of I / O merged operations in the previous sampling period is equal to the number of I / O merged operations in the current sampling period, it proves that even if the I / O merging parameters and the number of I / O dispatches are increased in the current period, the number of I / O merged operations will not increase. In this case, it can be proven that the hard drive under test has reached the hard drive performance bottleneck.

[0112] S504 determines whether the hard drive under test has reached its performance bottleneck based on the hard drive seek time in the previous sampling period and the hard drive seek time in the current sampling period.

[0113] Among them, hard disk seek time refers to the seek time for I / O requests.

[0114] Optionally, if the number of I / O merged operations is still increasing, in order to improve the accuracy of performance bottleneck identification, the hard drive seek time of the previous sampling period and the current sampling period can be combined to determine whether the hard drive under test has reached the hard drive performance bottleneck.

[0115] For example, the disk seek time can be determined based on the D2D seek and Q2Q seek information in the I / O processing information. Here, D2D seek refers to the time interval between two adjacent I / O operations on the disk, and Q2Q seek represents the time interval between multiple requests sent to the block I / O layer.

[0116] For example, it is determined whether the hard drive seek time of the hard drive under test in the previous sampling period is less than the hard drive seek time in the current sampling period; if not, it is determined that the hard drive under test has reached the hard drive performance bottleneck; if so, it is determined that the hard drive under test has not reached the hard drive performance bottleneck.

[0117] Understandably, if the disk seek time of the hard drive under test in the previous sampling period is less than the disk seek time in the current sampling period, it proves that the performance of the hard drive under test can continue to be optimized even with the increase of I / O merging parameters and the number of I / O operations. In this case, it is determined that the hard drive under test has not reached the performance bottleneck.

[0118] If the disk seek time of the hard drive under test in the previous sampling period is equal to the disk seek time in the current sampling period, it proves that the performance of the hard drive under test cannot be further optimized under the condition of increased I / O merging parameters and I / O issuance quantity. At this time, it is determined that the hard drive under test has reached the performance bottleneck.

[0119] In this embodiment of the application, the number of I / O merged operations and hard disk seek time within adjacent sampling periods are used to determine whether the hard disk under test has reached the hard disk performance bottleneck, which can ensure the accuracy and rationality of the hard disk performance bottleneck determination.

[0120] Figure 6 This is a flowchart illustrating a hard disk performance determination method in another embodiment. Based on the above embodiments, this embodiment provides an optional example of a hard disk performance determination method. (Combined with...) Figure 6 The specific implementation process is as follows:

[0121] S601 determines the adjustment value of the merging parameters based on the configuration information of the hard drive under test.

[0122] S602 uses a merging parameter adjustment value to increase the I / O merging parameters of the hard disk under test in the previous sampling period, and obtains the I / O merging parameters in the current sampling period.

[0123] The I / O merging parameters include at least one of the following: concurrency parameters, timeout parameters, and batch processing parameters.

[0124] S603 determines the I / O output adjustment value based on the I / O processing information of the hard disk under test for I / O requests in the previous sampling period.

[0125] S604 uses an I / O output adjustment value to increase the I / O output of the hard disk under test in the previous sampling period, and obtains the I / O output in the current sampling period.

[0126] S605, based on the I / O output and I / O merging parameters in the current sampling period, sends an I / O request to the hard disk under test, and obtains the number of I / O merging operations and hard disk seek time of the hard disk under test for the I / O request in the current sampling period.

[0127] S606, determine whether the number of I / O merged operations of the hard disk under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period. If yes, execute S607; otherwise, execute S609.

[0128] S607, determine whether the hard disk seek time of the hard disk under test in the previous sampling period is less than the hard disk seek time in the current sampling period. If yes, execute S608; otherwise, execute S609.

[0129] S608, take the current sampling period as the new previous sampling period, and return to execute S602.

[0130] S609 determines the performance information of the hard drive under test based on the I / O processing information of the current sampling period.

[0131] The specific processes of S601-S609 described above can be found in the description of the above method embodiments. Their implementation principles and technical effects are similar, and will not be repeated here.

[0132] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0133] Based on the same inventive concept, this application also provides a hard disk performance determination apparatus for implementing the hard disk performance determination method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more embodiments of the hard disk performance determination apparatus provided below can be found in the limitations of the hard disk performance determination method described above, and will not be repeated here.

[0134] In one exemplary embodiment, such as Figure 7 As shown, a hard disk performance determination device 1 is provided, comprising: a parameter determination module 10, an information acquisition module 20, and a performance determination module 30, wherein:

[0135] The parameter determination module 10 is used to determine the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, and to determine the I / O sending amount in the current sampling period based on the I / O sending amount of the hard disk under test in the previous sampling period.

[0136] The information acquisition module 20 is used to send I / O requests to the hard disk under test based on the I / O output and I / O merging parameters in the current sampling period, and to acquire the I / O processing information of the hard disk under test for the I / O requests in the current sampling period.

[0137] The performance determination module 30 is used to determine the performance information of the hard disk under test based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0138] In an exemplary embodiment, the parameter determination module 10 is specifically used for:

[0139] Based on the configuration information of the hard drive under test, determine the adjustment value of the merging parameters; using the adjustment value of the merging parameters, increase the I / O merging parameters of the hard drive under test in the previous sampling period to obtain the I / O merging parameters in the current sampling period; wherein, the I / O merging parameters include at least one of the following: concurrency parameter, timeout parameter, and batch processing parameter.

[0140] In one exemplary embodiment, the parameter determination module 10 is further configured to:

[0141] Based on the I / O processing information of the hard drive under test for I / O requests in the previous sampling period, determine the I / O distribution adjustment value; using the I / O distribution adjustment value, increase the I / O distribution of the hard drive under test in the previous sampling period to obtain the I / O distribution in the current sampling period.

[0142] In one exemplary embodiment, such as Figure 8 As shown, the performance determination module 30 includes:

[0143] The first determining unit 31 is used to determine whether the hard disk under test has reached the hard disk performance bottleneck based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0144] The second determining unit 32 is used to determine the performance information of the hard disk under test based on the I / O processing information of the current sampling period if the condition is met.

[0145] The third determining unit 33 is used to, if not, take the current sampling period as the new previous sampling period and return to perform the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period.

[0146] In an exemplary embodiment, the I / O processing information includes the number of I / O merge operations and the hard disk seek time, and the first determining unit 31 is specifically used for:

[0147] Determine whether the number of I / O merged operations of the hard drive under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if so, determine whether the hard drive under test has reached the hard drive performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time in the current sampling period.

[0148] In an exemplary embodiment, the first determining unit 31 is further configured to:

[0149] Determine whether the hard drive seek time of the hard drive under test in the previous sampling period is less than the hard drive seek time in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if yes, determine that the hard drive under test has not reached the hard drive performance bottleneck.

[0150] The modules in the aforementioned hard disk performance determination device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0151] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores I / O processing information. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a method for determining hard disk performance.

[0152] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0153] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0154] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0155] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0156] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0157] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0158] Based on the configuration information of the hard drive under test, determine the adjustment value of the merging parameters; using the adjustment value of the merging parameters, increase the I / O merging parameters of the hard drive under test in the previous sampling period to obtain the I / O merging parameters in the current sampling period; wherein, the I / O merging parameters include at least one of the following: concurrency parameter, timeout parameter, and batch processing parameter.

[0159] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0160] Based on the I / O processing information of the hard drive under test for I / O requests in the previous sampling period, determine the I / O distribution adjustment value; using the I / O distribution adjustment value, increase the I / O distribution of the hard drive under test in the previous sampling period to obtain the I / O distribution in the current sampling period.

[0161] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0162] Based on the I / O processing information of the hard drive under test for I / O requests in the current sampling period and the I / O processing information for I / O requests in the previous sampling period, determine whether the hard drive under test has reached its performance bottleneck. If so, determine the performance information of the hard drive under test based on the I / O processing information in the current sampling period. If not, take the current sampling period as the new previous sampling period and return to execute the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard drive under test in the previous sampling period.

[0163] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0164] Determine whether the number of I / O merged operations of the hard drive under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if so, determine whether the hard drive under test has reached the hard drive performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time in the current sampling period.

[0165] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0166] Determine whether the hard drive seek time of the hard drive under test in the previous sampling period is less than the hard drive seek time in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if yes, determine that the hard drive under test has not reached the hard drive performance bottleneck.

[0167] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0168] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0169] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0170] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0171] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0172] Based on the configuration information of the hard drive under test, determine the adjustment value of the merging parameters; using the adjustment value of the merging parameters, increase the I / O merging parameters of the hard drive under test in the previous sampling period to obtain the I / O merging parameters in the current sampling period; wherein, the I / O merging parameters include at least one of the following: concurrency parameter, timeout parameter, and batch processing parameter.

[0173] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0174] Based on the I / O processing information of the hard drive under test for I / O requests in the previous sampling period, determine the I / O distribution adjustment value; using the I / O distribution adjustment value, increase the I / O distribution of the hard drive under test in the previous sampling period to obtain the I / O distribution in the current sampling period.

[0175] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0176] Based on the I / O processing information of the hard drive under test for I / O requests in the current sampling period and the I / O processing information for I / O requests in the previous sampling period, determine whether the hard drive under test has reached its performance bottleneck. If so, determine the performance information of the hard drive under test based on the I / O processing information in the current sampling period. If not, take the current sampling period as the new previous sampling period and return to execute the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard drive under test in the previous sampling period.

[0177] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0178] Determine whether the number of I / O merged operations of the hard drive under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if so, determine whether the hard drive under test has reached the hard drive performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time in the current sampling period.

[0179] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0180] Determine whether the hard drive seek time of the hard drive under test in the previous sampling period is less than the hard drive seek time in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if yes, determine that the hard drive under test has not reached the hard drive performance bottleneck.

[0181] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0182] Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, determine the I / O merging parameters in the current sampling period, and based on the I / O output of the hard disk under test in the previous sampling period, determine the I / O output in the current sampling period.

[0183] Based on the I / O output and I / O merging parameters during the current sampling period, I / O requests are sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O requests during the current sampling period is obtained.

[0184] The performance information of the hard drive under test is determined based on the I / O processing information of the I / O requests in the current sampling period and the I / O processing information of the I / O requests in the previous sampling period.

[0185] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0186] Based on the configuration information of the hard drive under test, determine the adjustment value of the merging parameters; using the adjustment value of the merging parameters, increase the I / O merging parameters of the hard drive under test in the previous sampling period to obtain the I / O merging parameters in the current sampling period; wherein, the I / O merging parameters include at least one of the following: concurrency parameter, timeout parameter, and batch processing parameter.

[0187] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0188] Based on the I / O processing information of the hard drive under test for I / O requests in the previous sampling period, determine the I / O distribution adjustment value; using the I / O distribution adjustment value, increase the I / O distribution of the hard drive under test in the previous sampling period to obtain the I / O distribution in the current sampling period.

[0189] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0190] Based on the I / O processing information of the hard drive under test for I / O requests in the current sampling period and the I / O processing information for I / O requests in the previous sampling period, determine whether the hard drive under test has reached its performance bottleneck. If so, determine the performance information of the hard drive under test based on the I / O processing information in the current sampling period. If not, take the current sampling period as the new previous sampling period and return to execute the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the hard drive under test in the previous sampling period.

[0191] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0192] Determine whether the number of I / O merged operations of the hard drive under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period; if not, determine that the hard drive under test has reached the hard drive performance bottleneck; if so, determine whether the hard drive under test has reached the hard drive performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time in the current sampling period.

[0193] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0194] Determine whether the hard drive seek time of the test drive in the previous sampling period is less than the hard drive seek time in the current sampling period; if not, determine that the test drive has reached the hard drive performance bottleneck; if yes, determine that the test drive has not reached the hard drive performance bottleneck.

[0195] It should be noted that the data involved in this application (including but not limited to I / O processing information) is all data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0196] 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, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0197] 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 application.

[0198] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. 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 application should be determined by the appended claims.

Claims

1. A method for determining hard disk performance, characterized in that, The method includes: Based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, the I / O merging parameters for the current sampling period are determined, and based on the I / O output volume of the hard disk under test in the previous sampling period, the I / O output volume for the current sampling period is determined; wherein, the I / O merging parameters include at least one of the following: concurrency parameters, timeout parameters, and batch processing parameters; Based on the I / O output and I / O merging parameters during the current sampling period, an I / O request is sent to the hard disk under test, and the I / O processing information of the hard disk under test for the I / O request during the current sampling period is obtained; wherein, the I / O processing information includes the number of I / O merging operations and the hard disk seek time; Determine whether the number of I / O merged operations of the hard disk under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period; If not, then it is determined that the hard drive under test has reached the hard drive performance bottleneck, and the performance information of the hard drive under test is determined based on the I / O processing information of the current sampling period; If so, based on the disk seek time of the disk under test in the previous sampling period and the disk seek time in the current sampling period, determine whether the disk under test has reached the disk performance bottleneck. If the disk under test has reached the disk performance bottleneck, determine the performance information of the disk under test based on the I / O processing information in the current sampling period; or, if the disk under test has not reached the disk performance bottleneck, take the current sampling period as the new previous sampling period, and return to execute the operation of determining the I / O merging parameters in the current sampling period based on the input / output I / O merging parameters of the disk under test in the previous sampling period.

2. The method according to claim 1, characterized in that, The step of determining the I / O merging parameters for the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period includes: Based on the configuration information of the hard drive under test, determine the adjustment values ​​for the merging parameters; The I / O merging parameters of the hard disk under test in the previous sampling period are increased using the aforementioned merging parameter adjustment value to obtain the I / O merging parameters in the current sampling period.

3. The method according to claim 1, characterized in that, The step of determining the I / O output volume in the current sampling period based on the I / O output volume of the hard disk under test in the previous sampling period includes: Based on the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period, determine the I / O issuance adjustment value; The I / O output adjustment value is used to increase the I / O output of the hard disk under test in the previous sampling period to obtain the I / O output in the current sampling period.

4. The method according to claim 1, characterized in that, The step of determining whether the hard drive under test has reached a performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time in the current sampling period includes: Determine whether the hard disk seek time of the hard disk under test in the previous sampling period is less than the hard disk seek time in the current sampling period; If not, then the hard drive under test has reached its performance bottleneck. If so, then it is determined that the hard drive under test has not reached its performance bottleneck.

5. The method according to claim 1, characterized in that, The method further includes: The disk seek time is determined based on the time interval between two adjacent I / O operations and the time interval between multiple requests sent to the block I / O layer in the I / O processing information.

6. The method according to claim 1, characterized in that, The method further includes: Based on the configuration information of the hard disk under test, determine the I / O merging parameters and I / O output volume corresponding to the first sampling period.

7. A hard disk performance determination device, characterized in that, The device includes: The parameter determination module is used to determine the I / O merging parameters for the current sampling period based on the input / output I / O merging parameters of the hard disk under test in the previous sampling period, and to determine the I / O output volume for the current sampling period based on the I / O output volume of the hard disk under test in the previous sampling period; wherein, the I / O merging parameters include at least one of the following: concurrency parameters, timeout parameters, and batch processing parameters; The information acquisition module is used to send I / O requests to the hard disk under test based on the I / O output and I / O merging parameters during the current sampling period, and to acquire the I / O processing information of the hard disk under test for the I / O requests during the current sampling period; wherein, the I / O processing information includes the number of I / O merging operations and the hard disk seek time; The performance determination module is used to determine whether the number of I / O merged operations of the hard drive under test in the previous sampling period is less than the number of I / O merged operations in the current sampling period. If not, it determines that the hard drive under test has reached a hard drive performance bottleneck, and determines the performance information of the hard drive under test based on the I / O processing information of the current sampling period. If yes, it determines whether the hard drive under test has reached a hard drive performance bottleneck based on the hard drive seek time of the hard drive under test in the previous sampling period and the hard drive seek time of the current sampling period, and determines the performance information of the hard drive under test based on the I / O processing information of the current sampling period if the hard drive under test has reached a hard drive performance bottleneck. Alternatively, if the hard drive under test has not reached a hard drive performance bottleneck, it takes the current sampling period as the new previous sampling period and returns to execute the operation of determining the I / O merge parameters in the current sampling period based on the input / output I / O merge parameters of the hard drive under test in the previous sampling period.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Adjusting and optimizing method and device of solid-state disk

    CN103268204A

  • IOPS test method and device based on PID algorithm, and storage medium

    CN113868052A