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

The method enhances hard disk performance evaluation by adjusting I/O merging parameters and sending amount, addressing the inaccuracies in existing methods by considering seek time reductions, thus improving the accuracy and rationality of performance assessment.

CN119065941AActive Publication Date: 2024-12-03DAWNING INFORMATION IND (BEIJING) CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing hard disk performance evaluation methods fail to accurately consider the performance optimization effect brought about by the reduction of hard disk seek time due to merging operations, leading to reduced accuracy in performance assessment.

Method used

A method that determines hard disk performance by adjusting I/O merging parameters and sending amount based on previous sampling periods, incorporating I/O merging parameters to enhance the accuracy and rationality of performance analysis.

Benefits of technology

Ensures the accuracy and rationality of hard disk performance analysis by adjusting I/O merging parameters and sending amount, thereby improving the precision of performance evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065941A_ABST
    Figure CN119065941A_ABST
Patent Text Reader

Abstract

The invention relates to a hard disk performance determination method and device, equipment, a storage medium and a program product. The method comprises the steps of determining an I / O merging parameter in a current sampling time period according to an I / O merging parameter of a to-be-tested hard disk in a previous sampling time period, determining an I / O issuing amount in the current sampling time period according to an I / O issuing amount of the to-be-tested hard disk in the previous sampling time period, and determining a to-be-tested hard disk based on the I / O issuing amount and the I / O merging parameter in the current sampling time period. And sending an I / O request to the to-be-tested hard disk, obtaining I / O processing information of the to-be-tested hard disk for the I / O request in the current sampling time 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 for the I / O request in the current sampling time period and the I / O processing information of the to-be-tested hard disk for the I / O request in the previous sampling time period. By adopting the method, the accuracy of hard disk performance evaluation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a hard disk performance determination method, device, equipment, storage medium and program product. Background Art

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

[0003] However, since the information collection tool only considers whether the input and output I / O requests can be fully sent to the hard disk, it ignores the performance optimization effect brought about by the reduction of hard disk seek time due to the merging operation, which can easily reduce the accuracy of hard disk performance evaluation. Summary of the invention

[0004] Based on this, it is necessary to provide a hard disk performance determination method, device, equipment, storage medium and program product that can improve the accuracy of hard disk performance evaluation in response to the above technical problems.

[0005] In a first aspect, the present application provides a method for determining hard disk performance, comprising:

[0006] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0007] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0008] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

[0009] In the embodiment of the present application, compared with the related art in which the hard disk performance is evaluated only based on the amount of I / O requests sent, the above method is adopted to introduce I / O merging parameters. When the pressure of I / O request sending is increased, the merging of I / O requests is adjusted by controlling the I / O merging parameters, so that the use of the hard disk to be tested is more reasonable, thereby ensuring the accuracy and rationality of the performance analysis of the hard disk to be tested.

[0010] In one embodiment, determining the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period includes:

[0011] According to the configuration information of the hard disk to be tested, a merge parameter adjustment value is determined; the I / O merge parameter of the hard disk to be tested in the previous sampling period is increased by using the merge parameter adjustment value to obtain the I / O merge parameter in the current sampling period; wherein the I / O merge parameter includes at least one of a concurrent quantity parameter, a timeout parameter and a batch quantity parameter.

[0012] In the embodiment of the present application, by increasing the I / O merging parameter using the merging parameter adjustment value, the probability of merging I / O requests in the current sampling period can be made higher while ensuring the rationality of the parameter adjustment.

[0013] In one embodiment, determining the I / O delivery amount in the current sampling period according to the I / O delivery amount of the hard disk to be tested in the previous sampling period includes:

[0014] An I / O sending amount adjustment value is determined according to I / O processing information of the hard disk under test for I / O requests in the previous sampling period. The I / O sending amount adjustment value is used to increase the I / O sending amount of the hard disk under test in the previous sampling period to obtain the I / O sending amount in the current sampling period.

[0015] In the embodiment of the present application, the I / O sending amount is increased by using the I / O sending amount adjustment value to increase the test pressure of the hard disk to be tested, thereby ensuring the rationality of the increase in test pressure.

[0016] In one embodiment, determining the performance information of the hard disk under test according to 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 of the hard disk under test for the I / O request in the previous sampling period includes:

[0017] Determine whether the hard disk under test has reached a hard disk performance bottleneck based on I / O processing information of the hard disk under test for I / O requests in the current sampling period and I / O processing information of the hard disk under test for I / O requests in the previous sampling period; if so, determine the performance information of the hard disk under test based on the I / O processing information in the current sampling period; if not, use 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 and output I / O merging parameters of the hard disk under test in the previous sampling period.

[0018] In an embodiment of the present application, by determining the performance information of the hard disk to be tested based on whether the hard disk to be tested has reached a hard disk performance bottleneck, the rationality of the I / O processing information used when analyzing the hard disk to be tested can be ensured, thereby ensuring the accuracy of the performance information of the hard disk to be tested.

[0019] In one embodiment, the I / O processing information includes the number of I / O merge operations and the hard disk seek time, and determining whether the hard disk under test has reached a hard disk performance bottleneck according to 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 of the hard disk under test for I / O requests in the previous sampling period includes:

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

[0021] In the embodiment of the present application, the number of I / O merge operations in adjacent sampling periods is used to determine whether the hard disk under test has reached a hard disk performance bottleneck, thereby ensuring the accuracy and rationality of determining the hard disk performance bottleneck.

[0022] In one embodiment, determining whether the hard disk to be tested has reached a hard disk performance bottleneck according to the hard disk seek time of the hard disk to be tested in the previous sampling period and the hard disk seek time of the current sampling period includes:

[0023] 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, determine that the hard disk under test has reached the hard disk performance bottleneck; if so, determine that the hard disk under test has not reached the hard disk performance bottleneck.

[0024] In the embodiment of the present application, whether the hard disk to be tested has reached the hard disk performance bottleneck is determined by the hard disk seek time in adjacent sampling periods, which can ensure the accuracy and rationality of the hard disk performance bottleneck determination.

[0025] In a second aspect, the present application further provides a hard disk performance determination device, comprising:

[0026] A parameter determination module, used to determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and to determine the I / O delivery amount in the current sampling period according to the I / O delivery amount of the hard disk to be tested in the previous sampling period;

[0027] An information acquisition module, used to send an I / O request to the hard disk under test based on the I / O delivery amount and I / O merging parameters in the current sampling period, and obtain I / O processing information of the hard disk under test for the I / O request in the current sampling period;

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

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0031] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0032] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0034] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0035] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0036] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0038] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0039] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0040] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

[0041] The hard disk performance determination method, device, equipment, storage medium and program product described above determine the I / O merging parameters in the current sampling period based on the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period based on the I / O sending amount of the hard disk to be tested in the previous sampling period, and then send an I / O request to the hard disk to be tested based on the I / O sending amount and I / O merging parameters in the current sampling period, and obtain I / O processing information of the hard disk to be tested for the I / O request in the current sampling period; then, determine the performance information of the hard disk to be tested based on the I / O processing information of the hard disk to be tested for the I / O request in the current sampling period and the I / O processing information of the hard disk to be tested for the I / O request in the previous sampling period. Compared with the related art, which evaluates the hard disk performance only based on the amount of I / O requests sent, the above method introduces I / O merging parameters. When the pressure of I / O requests being sent is increased, the merging of I / O requests is adjusted by controlling the I / O merging parameters, so that the use of the hard disk to be tested is more reasonable, thereby ensuring the accuracy and rationality of the performance analysis of the hard disk to be tested. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A flowchart of a method for determining hard disk performance in one embodiment;

[0044] Figure 2 A schematic diagram of a process for determining I / O merging parameters in one embodiment;

[0045] Figure 3 A schematic diagram of a process for determining an I / O delivery amount in one embodiment;

[0046] Figure 4 A schematic diagram of a process for determining performance information of a hard disk to be tested in one embodiment;

[0047] Figure 5 A schematic diagram of a process for determining a hard disk performance bottleneck in one embodiment;

[0048] Figure 6 is a flow chart of a method for determining hard disk performance in another embodiment;

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

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

[0051] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

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

[0054] However, since the information collection tool only considers whether the input and output I / O requests can be fully sent to the hard disk, it ignores the performance optimization effect brought about by the reduction of hard disk seek time due to the merging operation, which can easily reduce the accuracy of hard disk performance evaluation.

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

[0056] S101, determining the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determining the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period.

[0057] Among them, the hard disk to be tested refers to the hard disk with performance analysis requirements; the sampling period refers to the time period for sampling and processing the information in the hard disk to be tested; the current sampling period refers to the sampling period including the current moment; the previous sampling period refers to the previous sampling period adjacent to the current sampling period.

[0058] The I / O merging parameter is used to represent a parameter that can adjust the merging status between various I / O requests; the I / O delivery amount refers to the number of delivered I / O requests.

[0059] It is understandable that in order to better analyze the performance of the hard disk to be tested, it is necessary to predetermine the I / O request processing data when the hard disk to be tested is in a performance bottleneck state. Therefore, when the hard disk to be tested has not reached the performance bottleneck in the previous sampling period, the I / O merging parameters of the hard disk to be tested in the previous sampling period can be input into the trained first parameter determination model, and the first parameter determination model outputs the I / O merging parameters in the current sampling period based on the I / O merging parameters and the model parameters.

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

[0061] It is understandable that since the first sampling period of the hard disk under test does not have a corresponding previous sampling period, for the first sampling period, the initial I / O merging parameters and I / O delivery amount can be determined based on the configuration information of the hard disk under test.

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

[0063] The I / O processing information is used to represent the relevant information generated by the hard disk under test processing an I / O request.

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

[0065] Furthermore, after the I / O request is sent, a preset information acquisition use case may be called to automatically acquire I / O processing information generated when the hard disk under test processes the I / O request within the current sampling period.

[0066] It is understandable that in order to improve the accuracy of I / O processing information acquisition, a standard hybrid 1M 7:3 random read and write test model can be used to reflect the most realistic hard disk performance by bypassing the cache memory in the memory. In addition, this test model can simulate the most common access mode of the user to the hard disk in daily life to reflect the user's real experience.

[0067] S103, determining performance information of the hard disk under test according to I / O processing information of the hard disk under test for I / O requests in the current sampling period and I / O processing information of the hard disk under test for I / O requests in the previous sampling period.

[0068] The performance information is used to characterize relevant information of the operating performance of the hard disk to be tested, for example, it may include but is not limited to the maximum I / O request processing volume and the like.

[0069] Optionally, after obtaining the I / O processing information of the hard disk 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 a trained performance analysis model, and the performance analysis model outputs the performance information of the hard disk 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 above hard disk performance determination method, the I / O merging parameters in the current sampling period are determined based on the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and the I / O sending amount in the current sampling period is determined based on the I / O sending amount of the hard disk to be tested in the previous sampling period. Then, based on the I / O sending amount and the I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk to be tested, and the I / O processing information of the hard disk to be tested for the I / O request in the current sampling period is obtained; then, the performance information of the hard disk to be tested is determined based on the I / O processing information of the hard disk to be tested for the I / O request in the current sampling period and the I / O processing information of the I / O request in the previous sampling period. Compared with the related art, which evaluates the hard disk performance only based on the amount of I / O requests sent, the above method introduces I / O merging parameters. When the pressure of I / O requests being sent is increased, the merging of I / O requests is adjusted by controlling the I / O merging parameters, so that the use of the hard disk to be tested is more reasonable, thereby ensuring the accuracy and rationality of the performance analysis of the hard disk to be tested.

[0071] In order to increase the probability of merging I / O requests in the current sampling period, based on the above embodiment, in this embodiment, an optional method for determining I / O merging parameters is provided, such as Figure 2 As shown, the specific steps include:

[0072] S201, determining a merge parameter adjustment value according to configuration information of the hard disk to be tested.

[0073] The configuration information refers to information related to the basic configuration of the hard disk to be tested, for example, including but not limited to the hard disk capacity of the hard disk to be tested, etc.; the merge parameter adjustment value refers to a value used to adjust the I / O merge parameter.

[0074] Optionally, the configuration information of the hard disk to be tested may be input into a trained first parameter adjustment model, and the first parameter adjustment model outputs a combined parameter adjustment value according to the configuration information and model parameters.

[0075] Alternatively, in order to improve the accuracy of the merged parameter adjustment value, a second parameter adjustment model can be obtained based on the historical operating parameters of the hard disk to be tested and the corresponding I / O merge parameter training; accordingly, the historical operating data and configuration information of the hard disk to be tested in the previous period can be input into the second parameter adjustment model at the same time, and the second parameter adjustment model outputs the merged parameter adjustment value based on the historical operating data, configuration information and model parameters.

[0076] S202, using the merge parameter adjustment value to increase the I / O merge parameter of the hard disk to be tested in the previous sampling period to obtain the I / O merge parameter in the current sampling period.

[0077] The I / O merging parameters include at least one of a concurrent quantity parameter, a timeout parameter, and a batch quantity parameter.

[0078] It is understandable that, considering that the hard disk addressing space is fixed, increasing the number of concurrency can make it more likely to merge I / O requests; increasing the timeout period can allow more time for merging I / O requests, thereby increasing the probability of merging I / O requests; increasing the number of batches can increase 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, thereby increasing the probability of merging I / O requests.

[0079] Based on this, after determining the merging parameter adjustment value, the merging parameter adjustment value can be used to increase the I / O merging parameter based on the I / O merging parameter of the hard disk to be tested in the previous sampling period, and then calculate the I / O merging parameter in the current sampling period.

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

[0081] For example, compared with the previous sampling period, the specific settings of the hard disk scheduler in the current sampling period may include: add_random is set to 1; read_ahead_kb can be adjusted to a larger value; rq_affinity is set to 1; write_cache is set to write back; nr_requests can be set to a larger value; wbt_lat_usec can be appropriately increased; io_timeout can be appropriately increased; io_poll is 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; writes_starved can be set to a larger value.

[0082] It can be understood that, when there are multiple I / O merging parameters, the above-mentioned S201 method can be used to calculate the merging parameter adjustment values ​​corresponding to each type of I / O merging parameter respectively; then, the merging parameter adjustment values ​​corresponding to each type of I / O merging parameter are used to adjust the various types of I / O merging parameters in the previous sampling period respectively, so as to obtain the various types of I / O merging parameters in the current sampling period.

[0083] In the embodiment of the present application, by using the merge parameter adjustment value to increase the I / O merge parameter, the probability of merging I / O requests in the current sampling period can be made higher while ensuring the rationality of the parameter adjustment.

[0084] In order to reasonably increase the amount of I / O requests sent, based on the above embodiment, in this embodiment, an optional method for determining the amount of I / O requests sent is provided, such as Figure 3 As shown, the specific steps include:

[0085] S301, determining an I / O delivery amount adjustment value according to I / O processing information of the hard disk to be tested for I / O requests in the previous sampling period.

[0086] The I / O delivery amount adjustment value refers to a value used to adjust the I / O delivery amount.

[0087] Optionally, the I / O processing information of the I / O requests in the previous sampling period can be output to a trained third parameter adjustment model, and the third parameter adjustment model outputs the I / O downstream volume 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, using the I / O delivery amount adjustment value, increasing the I / O delivery amount of the hard disk to be tested in the previous sampling period to obtain the I / O delivery amount in the current sampling period.

[0089] It is understandable that in order to increase the I / O request test pressure of the hard disk, it is necessary to increase the I / O request sending amount based on the I / O sending amount of the hard disk to be tested in the previous sampling period. Therefore, the I / O sending amount adjustment value can be used to increase the I / O request sending amount based on the I / O sending amount of the hard disk to be tested in the previous sampling period to obtain the I / O sending amount in the current sampling period.

[0090] For example, the sum of the I / O delivery amount adjustment value and the I / O delivery amount of the hard disk to be tested in the previous sampling period can be directly used as the I / O delivery amount in the current sampling period.

[0091] In the embodiment of the present application, the I / O sending amount is increased by adopting the I / O sending amount adjustment value to increase the test pressure of the hard disk to be tested, thereby ensuring the rationality of the increase in test pressure.

[0092] In order to ensure the rationality of the hard disk performance analysis, based on the above embodiments, in this embodiment, an optional method for determining the hard disk performance information to be tested is provided, such as Figure 4 As shown, the specific steps include:

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

[0094] Optionally, a preset information acquisition use case may be called to automatically acquire I / O processing information generated when the hard disk under test processes an I / O request in a previous sampling period.

[0095] S402, determine whether the hard disk under test has reached a hard disk performance bottleneck 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 of the hard disk under test for I / O requests in the previous sampling period. If so, execute S403; if not, execute S404.

[0096] Optionally, 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 of the I / O requests in the previous sampling period can be simultaneously input into a trained bottleneck determination model, and the bottleneck determination model determines whether the hard disk under test has reached the hard disk performance bottleneck based on the I / O processing information in two adjacent sampling periods.

[0097] Furthermore, when the hard disk to be tested reaches a hard disk performance bottleneck, the following step S403 may be executed; when the hard disk to be tested does not reach a hard disk performance bottleneck, the following step S404 may be executed.

[0098] S403, determining performance information of the hard disk to be tested according to the I / O processing information of the current sampling period.

[0099] Optionally, when the hard disk to be tested reaches a hard disk performance bottleneck, the performance of the hard disk to be tested may be analyzed based on I / O processing information in the current sampling period to obtain performance information of the hard disk to be tested.

[0100] S404, taking the current sampling period as a new previous sampling period, and returning to perform the operation of determining the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period.

[0101] Optionally, when the hard disk under test has not reached the hard disk performance bottleneck, it is necessary to use the current sampling period as the new previous sampling period and return to execute the above step S101, that is, continue to increase the I / O merge parameters and the I / O sending amount to make the performance of the hard disk under test reach the bottleneck, and then determine the performance information of the hard disk under test when the hard disk under test reaches the hard disk performance bottleneck.

[0102] In an embodiment of the present application, by determining the performance information of the hard disk to be tested based on whether the hard disk to be tested has reached a hard disk performance bottleneck, the rationality of the I / O processing information used when analyzing the hard disk to be tested can be ensured, thereby ensuring the accuracy of the performance information of the hard disk to be tested.

[0103] In order to ensure the accuracy of determining the performance bottleneck, based on the above embodiment, in this embodiment, the I / O processing information includes the number of I / O merge operations and the hard disk seek time. Further, an optional method for determining the hard disk performance bottleneck is provided, such as Figure 5 As shown, the specific steps include:

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

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

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

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

[0108] S502, determining whether the number of I / O merge operations of the hard disk to be tested in the previous sampling period is less than the number of I / O merge operations in the current sampling period, if not, executing S503; if yes, executing S504.

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

[0110] S503, determining that the hard disk to be tested has reached a hard disk performance bottleneck.

[0111] Optionally, when the number of I / O merge operations in the previous sampling period is equal to the number of I / O merge operations in the current sampling period, it proves that in the current period, even if the I / O merge parameters and the number of I / O sends are increased, the number of I / O merge operations will not increase. At this time, it can be proved that the hard disk under test has reached the hard disk performance bottleneck.

[0112] S504 , determining whether the hard disk to be tested has reached a hard disk performance bottleneck based on the hard disk seek time of the hard disk to be tested in the previous sampling period and the hard disk seek time of the current sampling period.

[0113] The hard disk seek time refers to the seek time of an I / O request.

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

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

[0116] Exemplarily, 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, determine that the hard disk under test has reached the hard disk performance bottleneck; if so, determine that the hard disk under test has not reached the hard disk performance bottleneck.

[0117] It can be understood that if 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, it proves that the performance of the hard disk under test can continue to be optimized when the I / O merging parameters and the number of I / O sends increase. At this time, it is determined that the hard disk under test has not reached the hard disk performance bottleneck.

[0118] If the hard disk seek time of the hard disk under test in the previous sampling period is equal to the hard disk seek time in the current sampling period, it proves that the performance of the hard disk under test can no longer be optimized when the I / O merging parameters and the number of I / O sends increase. At this time, it is determined that the hard disk under test has reached the hard disk performance bottleneck.

[0119] In the embodiment of the present application, the number of I / O merge operations and the hard disk seek time in adjacent sampling periods are used to determine whether the hard disk under test has reached the hard disk performance bottleneck, thereby ensuring the accuracy and rationality of the hard disk performance bottleneck determination.

[0120] Figure 6 FIG. 1 is a flow chart of a method for determining hard disk performance in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a method for determining hard disk performance. Figure 6 The specific implementation process is as follows:

[0121] S601, determining a merge parameter adjustment value according to configuration information of the hard disk to be tested.

[0122] S602, using the merge parameter adjustment value to increase the I / O merge parameter of the hard disk to be tested in the previous sampling period to obtain the I / O merge parameter in the current sampling period.

[0123] The I / O merging parameters include at least one of a concurrent quantity parameter, a timeout parameter, and a batch quantity parameter.

[0124] S603: Determine an I / O delivery amount adjustment value according to I / O processing information of the hard disk to be tested for I / O requests in the previous sampling period.

[0125] S604: Use the I / O delivery amount adjustment value to increase the I / O delivery amount of the hard disk to be tested in the previous sampling period to obtain the I / O delivery amount in the current sampling period.

[0126] S605, based on the I / O delivery amount and I / O merging parameters in the current sampling period, send an I / O request to the hard disk under test, and obtain 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, determining whether the number of I / O merge operations of the hard disk to be tested in the previous sampling period is less than the number of I / O merge operations in the current sampling period, if so, executing S607; if not, executing S609.

[0128] S607, determining whether the hard disk seek time of the hard disk to be tested in the previous sampling period is less than the hard disk seek time in the current sampling period, if so, executing S608; if not, executing S609.

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

[0130] S609: Determine the performance information of the hard disk to be tested according to the I / O processing information of the current sampling period.

[0131] The specific process of the above S601-S609 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0132] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0133] Based on the same inventive concept, the embodiment of the present application also provides a hard disk performance determination device for implementing the hard disk performance determination method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more hard disk performance determination device embodiments provided below can refer to the limitations of the hard disk performance determination method above, and will not be repeated here.

[0134] In an exemplary embodiment, 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 according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O delivery amount in the current sampling period according to the I / O delivery amount of the hard disk to be tested in the previous sampling period;

[0136] The information acquisition module 20 is used to send an I / O request to the hard disk under test based on the I / O delivery amount and I / O merging parameters in the current sampling period, and obtain the I / O processing information of the hard disk under test for the I / O request in the current sampling period;

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

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

[0139] According to the configuration information of the hard disk to be tested, a merge parameter adjustment value is determined; the I / O merge parameter of the hard disk to be tested in the previous sampling period is increased by using the merge parameter adjustment value to obtain the I / O merge parameter in the current sampling period; wherein the I / O merge parameter includes at least one of a concurrent quantity parameter, a timeout parameter and a batch quantity parameter.

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

[0141] An I / O sending amount adjustment value is determined according to I / O processing information of the hard disk under test for I / O requests in the previous sampling period. The I / O sending amount adjustment value is used to increase the I / O sending amount of the hard disk under test in the previous sampling period to obtain the I / O sending amount in the current sampling period.

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

[0143] The first determination unit 31 is used to determine whether the hard disk under test has reached a hard disk performance bottleneck according to 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 of the hard disk under test for the I / O request in the previous sampling period;

[0144] A second determining unit 32 is configured to determine the performance information of the hard disk to be tested according to the I / O processing information of the current sampling period if yes;

[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 according to the input and output I / O merging parameters of the hard disk to be tested 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 to:

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

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

[0149] 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, determine that the hard disk under test has reached the hard disk performance bottleneck; if so, determine that the hard disk under test has not reached the hard disk performance bottleneck.

[0150] Each module in the hard disk performance determination device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0151] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store I / O processing information data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for determining hard disk performance is implemented.

[0152] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0153] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0154] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0155] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0156] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

[0157] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0158] According to the configuration information of the hard disk to be tested, a merge parameter adjustment value is determined; the I / O merge parameter of the hard disk to be tested in the previous sampling period is increased by using the merge parameter adjustment value to obtain the I / O merge parameter in the current sampling period; wherein the I / O merge parameter includes at least one of a concurrent quantity parameter, a timeout parameter and a batch quantity parameter.

[0159] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0160] An I / O sending amount adjustment value is determined according to I / O processing information of the hard disk under test for I / O requests in the previous sampling period. The I / O sending amount adjustment value is used to increase the I / O sending amount of the hard disk under test in the previous sampling period to obtain the I / O sending amount in the current sampling period.

[0161] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0162] Determine whether the hard disk under test has reached a hard disk performance bottleneck based on I / O processing information of the hard disk under test for I / O requests in the current sampling period and I / O processing information of the hard disk under test for I / O requests in the previous sampling period; if so, determine the performance information of the hard disk under test based on the I / O processing information in the current sampling period; if not, use 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 and output I / O merging parameters of the hard disk under test in the previous sampling period.

[0163] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

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

[0165] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0166] 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, determine that the hard disk under test has reached the hard disk performance bottleneck; if so, determine that the hard disk under test has not reached the hard disk performance bottleneck.

[0167] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0168] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0169] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0170] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

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

[0172] According to the configuration information of the hard disk to be tested, a merge parameter adjustment value is determined; the I / O merge parameter of the hard disk to be tested in the previous sampling period is increased by using the merge parameter adjustment value to obtain the I / O merge parameter in the current sampling period; wherein the I / O merge parameter includes at least one of a concurrent quantity parameter, a timeout parameter and a batch quantity parameter.

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

[0174] An I / O sending amount adjustment value is determined according to I / O processing information of the hard disk under test for I / O requests in the previous sampling period. The I / O sending amount adjustment value is used to increase the I / O sending amount of the hard disk under test in the previous sampling period to obtain the I / O sending amount in the current sampling period.

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

[0176] Determine whether the hard disk under test has reached a hard disk performance bottleneck based on I / O processing information of the hard disk under test for I / O requests in the current sampling period and I / O processing information of the hard disk under test for I / O requests in the previous sampling period; if so, determine the performance information of the hard disk under test based on the I / O processing information in the current sampling period; if not, use 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 and output I / O merging parameters of the hard disk under test in the previous sampling period.

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

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

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

[0180] 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, determine that the hard disk under test has reached the hard disk performance bottleneck; if so, determine that the hard disk under test has not reached the hard disk performance bottleneck.

[0181] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0182] Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period;

[0183] Based on the I / O delivery volume and I / O merging parameters in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained;

[0184] The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

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

[0186] According to the configuration information of the hard disk to be tested, a merge parameter adjustment value is determined; the I / O merge parameter of the hard disk to be tested in the previous sampling period is increased by using the merge parameter adjustment value to obtain the I / O merge parameter in the current sampling period; wherein the I / O merge parameter includes at least one of a concurrent quantity parameter, a timeout parameter and a batch quantity parameter.

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

[0188] An I / O sending amount adjustment value is determined according to I / O processing information of the hard disk under test for I / O requests in the previous sampling period. The I / O sending amount adjustment value is used to increase the I / O sending amount of the hard disk under test in the previous sampling period to obtain the I / O sending amount in the current sampling period.

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

[0190] Determine whether the hard disk under test has reached a hard disk performance bottleneck based on I / O processing information of the hard disk under test for I / O requests in the current sampling period and I / O processing information of the hard disk under test for I / O requests in the previous sampling period; if so, determine the performance information of the hard disk under test based on the I / O processing information in the current sampling period; if not, use 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 and output I / O merging parameters of the hard disk under test in the previous sampling period.

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

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

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

[0194] 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, determine that the hard disk under test has reached the hard disk performance bottleneck; if so, determine that the hard disk under test has not reached the hard disk performance bottleneck.

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

[0196] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0197] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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 above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for determining hard disk performance, characterized in that: The method comprises: Determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period; Based on the I / O delivery amount and the I / O merging parameter in the current sampling period, an I / O request is sent to the hard disk under test, and I / O processing information of the hard disk under test for the I / O request in the current sampling period is obtained; The performance information of the hard disk under test is determined according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

2. The method according to claim 1, characterized in that The step of determining the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period includes: Determine the combined parameter adjustment value according to the configuration information of the hard disk to be tested; The I / O merging parameter of the hard disk to be tested in the previous sampling period is increased by using the merging parameter adjustment value to obtain the I / O merging parameter in the current sampling period; wherein the I / O merging parameter includes at least one of a concurrent quantity parameter, a timeout parameter and a batch processing quantity parameter.

3. The method according to claim 1, characterized in that The determining the I / O delivery amount in the current sampling period according to the I / O delivery amount of the hard disk to be tested in the previous sampling period includes: Determine an I / O delivery amount adjustment value according to I / O processing information of the hard disk to be tested for the I / O request in the previous sampling period; The I / O delivery amount adjustment value is used to increase the I / O delivery amount of the hard disk to be tested in the previous sampling period to obtain the I / O delivery amount in the current sampling period.

4. The method according to claim 1, characterized in that: The step of determining the performance information of the hard disk under test according to 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 of the hard disk under test for the I / O request in the previous sampling period includes: Determining whether the hard disk under test reaches a hard disk performance bottleneck according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period; If yes, determining the performance information of the hard disk to be tested according to the I / O processing information of the current sampling period; If not, the current sampling period is taken as a new previous sampling period, and the process returns to execute the operation of determining the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period.

5. The method according to claim 4, characterized in that The I / O processing information includes the number of I / O merge operations and hard disk seek time, and determining whether the hard disk under test reaches a hard disk performance bottleneck according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period includes: Determine whether the number of I / O merge operations of the hard disk to be tested in the previous sampling period is less than the number of I / O merge operations in the current sampling period; If not, it is determined that the hard disk to be tested has reached a hard disk performance bottleneck; If yes, it is determined whether the hard disk to be tested reaches a hard disk performance bottleneck according to the hard disk seek time of the hard disk to be tested in the previous sampling period and the hard disk seek time of the current sampling period.

6. The method according to claim 5, characterized in that The determining whether the hard disk to be tested reaches a hard disk performance bottleneck according to the hard disk seek time of the hard disk to be tested in the previous sampling period and the hard disk seek time of the current sampling period includes: Determine whether the hard disk seek time of the hard disk to be tested in the previous sampling period is less than the hard disk seek time in the current sampling period; If not, it is determined that the hard disk to be tested has reached a hard disk performance bottleneck; If so, it is determined that the hard disk to be tested has not reached the hard disk performance bottleneck.

7. A hard disk performance determination device, characterized in that: The device comprises: A parameter determination module, used to determine the I / O merging parameters in the current sampling period according to the input and output I / O merging parameters of the hard disk to be tested in the previous sampling period, and determine the I / O sending amount in the current sampling period according to the I / O sending amount of the hard disk to be tested in the previous sampling period; An information acquisition module, configured to send an I / O request to the hard disk under test based on the I / O delivery amount and I / O merging parameters in the current sampling period, and obtain I / O processing information of the hard disk under test for the I / O request in the current sampling period; The performance determination module is used to determine the performance information of the hard disk under test according to the I / O processing information of the hard disk under test for the I / O requests in the current sampling period and the I / O processing information of the hard disk under test for the I / O requests in the previous sampling period.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

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

Citation Information

Patent Citations

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

    CN103268204A

  • A Loongson platform-based system performance optimization method and device

    CN106990922A

  • Method for improving solid state disk performance of linux system

    CN107918528A

  • Dynamic load balancing method based on mass small files under high concurrency condition

    CN110149395A

  • SSD adaptive steady-state method and device

    CN112631512A