A hard disk performance optimization method, device, equipment and medium

By automatically determining and optimizing hard drive performance parameters, the problem of low efficiency in manual operation is solved, realizing the automation and high efficiency of hard drive performance optimization and improving the user experience.

CN119440414BActive Publication Date: 2025-12-30NINGCHANG INFORMATION TECH (HANGZHOU) CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411535020.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-12-30
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

Current technologies require manual operation for hard drive performance optimization, which is inefficient and lacks automated and intelligent solutions.

Method used

A method for optimizing hard drive performance is provided. By receiving tuning instructions, the method automatically determines the target optimization parameters, optimizes based on a preset configuration, and determines whether the performance parameters have reached a minimum threshold. If not, the method continues to optimize until the threshold is reached.

Benefits of technology

It improves the efficiency and stability of hard drive performance optimization, enhances the level of automatic intelligence, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440414B_ABST
    Figure CN119440414B_ABST
Patent Text Reader

Abstract

The application provides a hard disk performance optimization method, device, equipment and medium, which are used for automatically and intelligently optimizing the performance of the hard disk. In the method, when a tuning instruction for any hard disk is received, a target optimization parameter to be optimized is determined from preset optimization parameters for optimizing the performance of the hard disk, the configuration of the target optimization parameter is automatically and intelligently optimized based on a preset configuration optimization mode, and the performance of the hard disk is optimized based on the optimized target optimization parameter. Then, it is determined whether the performance parameter value of the hard disk after performance optimization reaches a preconfigured minimum threshold. If not, the next target optimization parameter to be optimized is automatically and intelligently determined from the optimization parameters that have not been used to optimize the performance of the hard disk, and the performance of the hard disk is continuously optimized. Therefore, the efficiency and stability of the hard disk performance optimization can be improved, and the automatic and intelligent degree of the hard disk performance optimization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, device and medium for optimizing hard disk performance. Background Technology

[0002] In the era of big data, the amount of data generated by enterprise and individual users is constantly increasing, making the optimization of hard drive performance in data storage systems particularly important. Optimizing (tuning) hard drive performance can improve the response speed and data transfer efficiency of data storage systems, enhance system performance, extend hard drive lifespan, and improve user experience and work efficiency.

[0003] However, hard drive performance optimization in related technologies typically requires manual operation by testers, which is inefficient. How to automate and intelligently optimize hard drive performance is a pressing technical problem that needs to be solved. Summary of the Invention

[0004] This application provides a method, apparatus, device, and medium for optimizing hard disk performance, which can automatically and intelligently optimize hard disk performance.

[0005] In a first aspect, this application provides a hard disk performance optimization method, the method comprising:

[0006] Receive a tuning command for the hard drive and determine the target optimization parameters; optimize the configuration of the target optimization parameters based on a preset configuration optimization method; optimize the performance of the hard drive based on the optimized target optimization parameters;

[0007] Determine whether the performance parameter value of the hard drive after performance optimization has reached the minimum threshold. If not, continue to determine the next target optimization parameter from the unused optimization parameters until the performance parameter value of the hard drive after performance optimization reaches the minimum threshold.

[0008] Through the above method, the target optimization parameter to be optimized can be determined from the preset optimization parameters for hard drive performance. The configuration of this target optimization parameter is automatically and intelligently optimized based on the preset configuration optimization method. Based on the optimized target optimization parameter, the hard drive performance is optimized. Then, it can be determined whether the performance parameter value of the hard drive after optimization reaches the preset minimum threshold. If not, the next target optimization parameter to be optimized can be automatically and intelligently determined from the optimization parameters that have not yet been adopted for hard drive performance optimization, and the performance optimization of the hard drive can continue. In this application, the electronic device can automatically and intelligently execute the hard drive performance optimization process. Compared with manual hard drive performance optimization by testers, this application can improve the efficiency and stability of hard drive performance optimization, increase the degree of automation and intelligence in hard drive performance optimization, and improve the user experience.

[0009] In one possible implementation, the optimization parameters include at least one of the following:

[0010] Combinations of hyper-threading, CPU power supply mode, CPU cores, fio engine, CPU performance mode, I / O queue depth, and concurrent job count.

[0011] In one possible implementation, optimizing the configuration of the target optimization parameters based on a preset configuration optimization method includes:

[0012] The target optimization parameter is hyper-threading. Obtain the basic input / output system BIOS configuration information and modify the hyper-threading status in the BIOS configuration information to be disabled.

[0013] By using the above method, BIOS configuration information can be automatically and intelligently obtained, and the hyper-threading status in the BIOS configuration information can be modified to be disabled. This can optimize hard drive performance to a certain extent and improve the automatic and intelligent nature of hard drive performance optimization.

[0014] In one possible implementation, optimizing the configuration of the target optimization parameters based on a preset configuration optimization method includes:

[0015] The target optimization parameter is the CPU power supply mode. The BIOS configuration information is obtained, and the CPU power supply mode in the BIOS configuration information is changed from the first CPU power supply mode to the second CPU power supply mode. The power supply voltage of the second CPU power supply mode is higher than that of the first CPU power supply mode.

[0016] By using the above method, the BIOS configuration information can be automatically and intelligently obtained, and the CPU power supply mode in the BIOS configuration information can be modified to a CPU power supply mode with a higher power supply voltage. This can optimize hard drive performance to a certain extent and improve the automatic and intelligent degree of hard drive performance optimization.

[0017] In one possible implementation, optimizing the configuration of the target optimization parameters based on a preset configuration optimization method includes:

[0018] The target optimization parameter is the number of CPU cores. Based on the number of concurrent jobs currently being used, the number of dedicated CPU cores corresponding to the hard disk is determined, and the number of CPU cores in the CPU cores is determined as the dedicated CPU cores of the hard disk.

[0019] Using the above method, the number of dedicated CPU cores corresponding to the hard drive to be optimized can be determined based on the number of concurrent jobs currently being used. This number of CPU cores can then be designated as the dedicated CPU cores for the hard drive, thereby optimizing the hard drive's performance to a certain extent.

[0020] In one possible implementation, optimizing the configuration of the target optimization parameters based on a preset configuration optimization method includes:

[0021] The target optimization parameter is the fio engine. Based on the candidate fio engines that have not yet been adopted as the fio engine for optimizing hard disk performance, the currently used fio engine is updated.

[0022] By using the methods described above, the performance of the hard drive can be optimized to the greatest extent possible by adjusting the fio engine used.

[0023] In one possible implementation, optimizing the configuration of the target optimization parameters based on a preset configuration optimization method includes:

[0024] The target optimization parameter is the CPU performance mode, which is adjusted to the performance mode.

[0025] By switching the CPU performance mode from powersave mode to performance mode, the hard drive performance can be optimized to some extent.

[0026] In one possible implementation, optimizing the configuration of the target optimization parameters based on a preset configuration optimization method includes:

[0027] If the target optimization parameter is a combination of I / O queue depth and concurrent job count, then based on the pre-saved correspondence between queue depth QD, test mode and I / O queue depth and concurrent job count combination, determine each candidate I / O queue depth and concurrent job count combination corresponding to the input target QD and target test mode.

[0028] Based on the candidate combinations of I / O queue depth and concurrent job count that have not yet been adopted as the combination for optimizing hard disk performance, the currently used combination of I / O queue depth and concurrent job count is updated.

[0029] By using the methods described above, hard drive performance can be optimized to the greatest extent possible by adjusting the combination of iodepth and number of jobs.

[0030] In one possible implementation, determining the target optimization parameter from a preset set of optimization parameters not used for optimizing hard disk performance includes:

[0031] According to the preset priority order of each optimization parameter, the target optimization parameters to be optimized are determined sequentially from the preset optimization parameters that have not been used to optimize hard disk performance.

[0032] By using the above method, the target optimization parameters can be determined sequentially from the preset priority order of each optimization parameter, thereby enabling quick and efficient optimization of hard drive performance.

[0033] Secondly, this application provides a hard disk performance optimization device, which has the function of implementing the behavior of the electronic device in the method embodiment of the first aspect described above. The beneficial effects can be found in the description of the first aspect, and will not be repeated here. The hard disk performance optimization device includes:

[0034] The optimization module is used to receive tuning instructions for the hard drive, determine target optimization parameters, optimize the configuration of the target optimization parameters based on a preset configuration optimization method, and optimize the performance of the hard drive based on the optimized target optimization parameters.

[0035] The judgment module is used to determine whether the performance parameter value of the hard drive after performance optimization has reached the minimum threshold. If not, it continues to determine the next target optimization parameter from the unused optimization parameters until the performance parameter value of the hard drive after performance optimization reaches the minimum threshold.

[0036] In one possible implementation, the optimization parameters include at least one of the following:

[0037] Combinations of hyper-threading, CPU power supply mode, CPU cores, fio engine, CPU performance mode, I / O queue depth, and concurrent job count.

[0038] In one possible implementation, the optimization module is specifically used for:

[0039] The target optimization parameter is hyper-threading. Obtain the basic input / output system BIOS configuration information and modify the hyper-threading status in the BIOS configuration information to be disabled.

[0040] In one possible implementation, the optimization module is specifically used for:

[0041] The target optimization parameter is the CPU power supply mode. The BIOS configuration information is obtained, and the CPU power supply mode in the BIOS configuration information is changed from the first CPU power supply mode to the second CPU power supply mode. The power supply voltage of the second CPU power supply mode is higher than that of the first CPU power supply mode.

[0042] In one possible implementation, the optimization module is specifically used for:

[0043] The target optimization parameter is the number of CPU cores. Based on the number of concurrent jobs currently being used, the number of dedicated CPU cores corresponding to the hard disk is determined, and the number of CPU cores in the CPU cores is determined as the dedicated CPU cores of the hard disk.

[0044] In one possible implementation, the optimization module is specifically used for:

[0045] The target optimization parameter is the fio engine. Based on the candidate fio engines that have not yet been adopted as the fio engine for optimizing hard disk performance, the currently used fio engine is updated.

[0046] In one possible implementation, the optimization module is specifically used for:

[0047] The target optimization parameter is the CPU performance mode, which is adjusted to the performance mode.

[0048] In one possible implementation, the optimization module is specifically used for:

[0049] The target optimization parameters are the combination of I / O queue depth and concurrent job count. Based on the pre-saved correspondence between queue depth QD, test mode and I / O queue depth and concurrent job count combination, the input target QD and the candidate I / O queue depth and concurrent job count combination corresponding to the target test mode are determined.

[0050] Based on the candidate combinations of I / O queue depth and concurrent job count that have not yet been adopted as the combination for optimizing hard disk performance, the currently used combination of I / O queue depth and concurrent job count is updated.

[0051] In one possible implementation, the optimization module is specifically used for:

[0052] The target optimization parameters are determined sequentially according to the preset priority order of each optimization parameter.

[0053] Thirdly, this application also provides an electronic device, which includes at least a processor and a memory, wherein the processor is configured to execute a computer program stored in the memory to implement the steps of the hard disk performance optimization method as described in any of the first aspects.

[0054] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed by a computer, cause the computer to perform the steps of the hard disk performance optimization method as described in any one of the first aspects.

[0055] Fifthly, embodiments of this application provide a computer program product comprising: computer program code, which, when executed on a computer, causes the computer to perform the steps of the hard disk performance optimization method as described in any one of the first aspects. Attached Figure Description

[0056] To more clearly illustrate the implementation methods in the embodiments of this application or related technologies, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0057] Figure 1 This is a schematic diagram of a hard disk performance optimization process provided in an embodiment of this application;

[0058] Figure 2 This is a schematic diagram illustrating another hard disk performance optimization process provided in an embodiment of this application;

[0059] Figure 3 This is a schematic diagram of a hard disk performance optimization device provided in an embodiment of this application;

[0060] Figure 4 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation

[0061] To make the objectives and implementation methods of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the exemplary embodiments described are only some embodiments of this application, and not all embodiments.

[0062] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0063] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0064] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0065] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.

[0066] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0067] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.

[0068] This application provides a hard disk performance optimization method, apparatus, device, and medium. In this method, upon receiving an optimization command for any hard disk, a target optimization parameter is determined from a preset list of optimization parameters not yet used for performance optimization. The target optimization parameter is then automatically and intelligently optimized based on a preset configuration optimization method. Based on the optimized target optimization parameter, the hard disk's performance is optimized. Afterward, it is determined whether the optimized hard disk's performance parameter value reaches a pre-configured minimum threshold. If not, the next target optimization parameter is automatically and intelligently determined from the remaining unused optimization parameters, and performance optimization continues. The electronic device in this application can automatically and intelligently execute the hard disk performance optimization process. Compared to manual hard disk performance optimization by testers, this application improves the efficiency and stability of hard disk performance optimization, enhances the level of automation and intelligence in hard disk performance optimization, and improves the user experience.

[0069] Example 1:

[0070] Figure 1 This application provides a schematic diagram of a hard disk performance optimization process, which includes:

[0071] S101: Receive the tuning command for the hard drive and determine the target optimization parameters; optimize the configuration of the target optimization parameters based on the preset configuration optimization method; optimize the performance of the hard drive based on the optimized target optimization parameters.

[0072] The hard disk performance optimization method provided in this application is applied to electronic devices, such as personal computers (PCs), mobile terminals, servers, etc., and this application does not specifically limit them.

[0073] In one possible implementation, when a user wants to know the current performance status of a hard drive, they can click a button such as "Hard Drive Performance Test." The electronic device responds to this click by retrieving and displaying a list of all its current hard drives through system commands or API calls. The user can then select the hard drive from this list to perform a performance test, and the electronic device can recognize the selected drive. Alternatively, the electronic device can default to using all hard drives except the system drive (OS drive) as the drives to be tested. These hard drives can be mechanical hard drives (HDDs), solid-state drives (SSDs), etc., and their interface types can be Serial Attached SCSI (SAS), Serial ATA (SATA), Non-Volatile Memory Express (NVMe), etc., without specific limitations in this application. The system drive can be the drive letter where the electronic device's operating system is located (e.g., nvme0), which will not be elaborated further here. The process of performance testing and optimization for each hard drive is the same. For ease of understanding, the following explanation uses any hard drive as an example to illustrate the hard drive performance testing and optimization process.

[0074] Once the hard drive to be tested is selected, the electronic device can display the corresponding test mode (also known as test condition) options. The test mode options can include Random Read, Random Write, Sequential Read, Sequential Write, etc. Users can select the appropriate test mode for the hard drive according to their needs (hereinafter referred to as the target test mode for ease of description).

[0075] In one possible implementation, the electronic device can also display user-expected performance parameter values ​​(hereinafter referred to as expected performance values) that the user can input or select, such as the number of input / output operations per second (IOPS) and the number of bits transferred per second (MB / s). Additionally, it can display a minimum acceptable discount percentage that the user can input or select, where the discount percentage can be a positive number not greater than 1, such as 80% or 90%. After receiving the user-inputted or selected expected performance value and discount percentage, the electronic device can determine the product of the expected performance value and the discount percentage as a minimum performance parameter threshold (hereinafter referred to as the minimum threshold), and use this minimum threshold as a standard for subsequent performance testing and optimization of the hard drive. Of course, the user-inputted expected performance value can also be directly determined as the minimum threshold; this application does not specifically limit this.

[0076] The electronic device can also display a user-inputable or selectable queue depth (QD) value that the user expects the hard drive to achieve; for ease of description, this value will be referred to as the target QD. Based on the pre-saved correspondence between QD, test mode, and combinations of I / O queue depth and number of jobs, the device can determine the candidate I / O depth and number of jobs combinations corresponding to the user-input target QD and target test mode. Any combination of candidate I / O depth and number of jobs can be used as the I / O depth and number of jobs combination for hard drive performance testing.

[0077] For example, assuming the user-input target QD is 256, the target QD can be broken down into two parameters: iodepth and number of jobs. For instance, for a specific hard drive, the candidate combinations of iodepth and number of jobs corresponding to the target QD and target test mode could be: 2×128, 4×64, etc. In the 2×128 combination, the number of jobs is 2 and the iodepth is 128. In the 4×64 combination, the number of jobs is 4 and the iodepth is 64, and so on.

[0078] In one possible implementation, the electronic device can also determine the target block size corresponding to the target test mode of the hard drive based on a pre-saved correspondence between test modes and block sizes. Then, a configuration file (config file) for the Linux-based open-source disk I / O performance testing tool Flexible I / O Tester (FIO) can be created. This FIO configuration file can include the identification information of the hard drive to be tested, the target test mode, the target block size, and the information on the combination of iodepth and number of jobs used, as described above. Based on the FIO configuration file, the FIO testing tool can be started to test the hard drive's performance and obtain the test results. The test results can include hard drive performance parameter values ​​such as IOPS, MB / s, bandwidth, and latency. The process of testing the hard drive's performance based on the FIO configuration file can employ relevant technologies, which will not be elaborated upon here.

[0079] In one possible implementation, after obtaining the test results, the performance parameter values ​​in the test results can be compared with the corresponding minimum thresholds described in the above embodiments. If the performance parameter values ​​in the test results are not lower than the corresponding minimum thresholds, the hard drive performance can be considered good, and performance optimization is not required. If the performance parameter values ​​in the test results are lower than the corresponding minimum thresholds, the hard drive performance can be considered poor, and performance optimization can be performed.

[0080] In one possible implementation, when the hard drive's performance parameter value in the test results is below a minimum threshold, the electronic device can directly assume it has received a tuning instruction for that hard drive and can directly proceed with the performance optimization (tuning) process. Alternatively, when the hard drive's performance parameter value in the test results is below the minimum threshold, the electronic device can first display a prompt message indicating that hard drive performance optimization is possible, along with an option box for whether to perform hard drive performance optimization. Once it recognizes that the user has selected the option to perform hard drive performance optimization, it can assume it has received a tuning instruction for that hard drive and can proceed with the performance optimization process.

[0081] In one possible implementation, when optimizing hard drive performance, a target optimization parameter can be determined from a set of preset optimization parameters. This target parameter can then be optimized using a preset configuration optimization method. Finally, the hard drive's performance can be further optimized based on this optimized target parameter to obtain the optimized hard drive performance parameter values. The process of obtaining the optimized hard drive performance parameter values ​​can employ relevant techniques, which will not be elaborated upon here.

[0082] In one possible implementation, the preset optimization parameters for hard drive performance can include several of the following: hyper-threading, CPU power supply mode, CPU cores, fio engine, CPU performance mode, I / O queue depth, and concurrent job count combinations. Target optimization parameters can be selected from these, and hard drive performance can be optimized by configuring and optimizing these target parameters. Specifically, the target optimization parameters can be combinations of CPU power supply mode, CPU cores, fio engine, CPU performance mode, I / O queue depth, and concurrent job count, and the configuration of these target optimization parameters can be optimized based on the following six methods to optimize hard drive performance:

[0083] Method 1: When the target optimization parameter is hyper-threading, the basic input / output system (BIOS) configuration information of the electronic device can be obtained, and it can be determined whether hyper-threading is enabled in the BIOS configuration information. If it is enabled, the status of hyper-threading can be changed to disabled.

[0084] Hyper-Threading (HT) is a technology developed by Intel. Through Hyper-Threading, a physical CPU core can be simulated as two logical threads. Considering that when Hyper-Threading is enabled, this method of simulating two logical threads from one physical CPU core may affect hard drive performance, in order to optimize hard drive performance, the Hyper-Threading state can be changed to the disabled state, which is expected to improve hard drive performance to a certain extent.

[0085] In one possible implementation, the BIOS configuration information of the electronic device (the device to which the hard drive belongs) can be obtained through tools such as SCE pre-configured in the electronic device, which will not be elaborated here. The hyper-threading status in the BIOS configuration information can be changed from enabled to disabled. Afterward, the electronic device can automatically and intelligently restart. Once the modified BIOS configuration information takes effect, the hard drive performance testing process described above can be performed automatically and intelligently to obtain the performance parameter values ​​of the optimized hard drive, which will not be elaborated here.

[0086] This application can automatically and intelligently obtain BIOS configuration information and modify the hyper-threading status in the BIOS configuration information to the disabled state, thereby optimizing hard drive performance to a certain extent and improving the automatic and intelligent degree of hard drive performance optimization.

[0087] Method 2: When the target optimization parameter is the CPU power supply mode, the BIOS configuration information can be obtained and the CPU power supply mode in the BIOS configuration information can be changed from the first CPU power supply mode to the second CPU power supply mode. The power supply voltage of the second CPU power supply mode is higher than that of the first CPU power supply mode.

[0088] In this application, considering that a higher supply voltage in the CPU power supply mode is more beneficial to improving hard drive performance, when optimizing hard drive performance, the BIOS configuration information of the electronic device can be obtained, and the CPU power supply mode in the BIOS configuration information can be modified from the first CPU power supply mode with a lower supply voltage to the second CPU power supply mode with a higher supply voltage. This application does not specifically limit the supply voltage of the first CPU power supply mode and the second CPU power supply mode.

[0089] In one possible implementation, after changing the CPU power supply mode in the BIOS configuration information from the first CPU power supply mode to the second CPU power supply mode, the electronic device can automatically and intelligently restart. After the modified BIOS configuration information takes effect, the hard drive performance test process described above can be performed automatically and intelligently to obtain the performance parameter values ​​of the hard drive after performance optimization, which will not be elaborated here.

[0090] This application can automatically and intelligently obtain BIOS configuration information and modify the CPU power supply mode in the BIOS configuration information to a CPU power supply mode with a higher power supply voltage, thereby optimizing hard drive performance to a certain extent and improving the automatic and intelligent degree of hard drive performance optimization.

[0091] Method 3: When the target optimization parameter is CPU cores, the number of dedicated CPU cores corresponding to the hard drive can be determined based on the number of concurrent jobs currently being used, and that number of CPU cores can be designated as the dedicated CPU cores for that hard drive.

[0092] In this context, when a process is bound to a specific CPU core (also known as a CPU core), the system schedules the process's threads to that core for execution, thereby accelerating process execution, improving system performance, and reducing resource waste. To maximize hard drive performance and optimize it, the number of dedicated CPU cores for the hard drive can be determined based on the number of concurrent jobs of the currently used process. For example, the number of concurrent jobs of the currently used process can be directly determined as the number of dedicated CPU cores for the hard drive. Then, that number (the number of concurrent jobs) of CPU cores in the electronic device can be designated as dedicated CPU cores for the hard drive. In other words, the same number of CPU cores as the number of concurrent jobs of the currently used process can be bound as dedicated CPU cores for the hard drive. For instance, if the number of concurrent jobs of the currently used process is 4, then 4 CPU cores in the electronic device's CPU cores can be designated as dedicated CPU cores for the hard drive.

[0093] In one possible implementation, after several CPU cores are designated as dedicated CPU cores for the hard drive, the hard drive performance testing process described above can be performed again to obtain the performance parameter values ​​of the hard drive after performance optimization, which will not be elaborated here.

[0094] This application can determine the number of dedicated CPU cores corresponding to the hard drive to be optimized based on the number of concurrent jobs currently being used, and designate that number of CPU cores as dedicated CPU cores for the hard drive, thereby optimizing the performance of the hard drive to a certain extent.

[0095] Method 4: When the target optimization parameter is the fio engine, the currently used fio engine can be updated based on the fio engines among the candidate fio engines that have not yet been adopted to optimize hard drive performance.

[0096] Considering that fio supports multiple I / O engines, updating (adjusting) the currently used engine (referred to as the fio engine for ease of description) to another engine may optimize hard drive performance. When optimizing hard drive performance, the currently used fio engine (such as the synchronous engine sync) can be adjusted (updated) to another fio engine (such as the Visual Studio engine). After adjustment, the hard drive performance test process described above can be performed again to obtain the hard drive performance parameter values ​​after the fio engine adjustment. This allows for a determination of whether the hard drive performance has been optimized and whether it has reached the minimum threshold. If it has, the hard drive performance can be considered optimized, and the tuning process can be stopped. If the minimum threshold has not yet been reached, the currently used fio engine can be adjusted (updated) to an fio engine that has not yet been adopted for hard drive performance optimization (such as the asynchronous engine async). After adjustment, the hard drive performance test process described above can be performed again to obtain the hard drive performance parameter values ​​after the fio engine adjustment. This allows for another determination of whether the hard drive performance has been optimized and whether it has reached the minimum threshold. If it has reached the minimum threshold, the hard drive performance can be considered optimized, and the tuning process can be stopped. If the minimum threshold has not yet been reached, the currently used fio engine can be adjusted (updated) to an fio engine that has not yet been adopted for optimizing hard drive performance, until all candidate fio engines are adopted or until the hard drive performance reaches the minimum threshold, etc., which will not be elaborated further here. This application does not impose specific limitations on the fio engine, and it can be flexibly set according to needs.

[0097] This application can optimize hard drive performance to the greatest extent by adjusting the fio engine used.

[0098] Method 5: When the target optimization parameter is CPU performance mode, the CPU performance mode can be adjusted to performance mode.

[0099] Considering that electronic devices typically default to power-saving mode for CPU performance, which uses the lowest possible frequency to reduce energy consumption, while performance mode maintains a higher frequency for optimal performance, the CPU performance mode can be switched from power-saving mode to performance mode to optimize hard drive performance to the greatest extent possible.

[0100] This application can optimize hard drive performance to some extent by changing the CPU performance mode from powersave mode to performance mode.

[0101] Method 6: When the target optimization parameters are a combination of iodepth and numberofjobs, the candidate iodepth and numberofjobs combinations corresponding to the user-input target QD and target test mode can be determined based on the pre-saved correspondence between QD, test mode and iodepth and numberofjobs combinations; the currently used iodepth and numberofjobs combinations are updated based on the iodepth and numberofjobs combinations that have not yet been used to optimize disk performance among the candidate I / O queue depth and concurrent job number combinations.

[0102] Considering that adjusting (updating) the current iodepth and numberofjobs combination may optimize hard drive performance, when optimizing hard drive performance, the current iodepth and numberofjobs combination (e.g., 2×128) can be adjusted (updated) to another iodepth and numberofjobs combination (e.g., 4×64). After adjustment, the hard drive performance test process described above can be performed again to obtain the hard drive performance parameter values ​​after adjusting the iodepth and numberofjobs combination. This will determine whether the hard drive performance has been optimized and whether it has reached the minimum threshold. If it has, then the hard drive performance can be considered optimized, and the tuning process can be stopped. If the minimum threshold has not yet been reached, the current iodepth and number of jobs combination can be adjusted (updated) to a combination that has not yet been adopted for optimizing hard drive performance (e.g., 8×32). After adjustment, the hard drive performance test process described above can be performed again to obtain the hard drive performance parameter values ​​after adjusting the iodepth and number of jobs combination. It can then be determined whether the hard drive performance has been optimized and whether the minimum threshold has been reached. If it has, the hard drive performance can be considered optimized, and the tuning process can be stopped. If the minimum threshold has not yet been reached, the current iodepth and number of jobs combination can be adjusted (updated) again to a combination that has not yet been adopted for optimizing hard drive performance, until all candidate iodepth and number of jobs combinations are adopted or until the hard drive performance reaches the minimum threshold, etc., which will not be elaborated further here. This application does not impose specific limitations on the iodepth and number of jobs combination; it can be flexibly set according to needs.

[0103] This application can optimize hard drive performance to the greatest extent by adjusting the combination of iodepth and number of jobs used.

[0104] S102: Determine whether the performance parameter value of the hard disk after performance optimization has reached the minimum threshold. If not, continue to determine the next target optimization parameter from the unused optimization parameters until the performance parameter value of the hard disk after performance optimization reaches the minimum threshold.

[0105] In one possible implementation, after optimizing the hard drive based on the optimized target optimization parameters, the performance parameter values ​​of the optimized hard drive can be obtained. It can then be determined whether the optimized hard drive performance parameter values ​​have reached a minimum threshold. If they have, the hard drive performance is considered to have met the user's requirements, and the tuning process can be stopped. If not, the next target optimization parameter to be optimized can be determined from the optimization parameters that have not yet been used in the current hard drive performance optimization process. Based on a preset configuration optimization method, the configuration of this target optimization parameter is optimized, and the hard drive performance is optimized again based on this optimized target optimization parameter. The optimized hard drive performance parameter values ​​are then obtained. Afterward, it can be determined whether the optimized hard drive performance parameter values ​​have reached a minimum threshold. If they have, the hard drive performance is considered to have met the user's requirements, and the tuning process can be stopped. If not, the next target optimization parameter to be optimized can be determined from the optimization parameters that have not yet been used in the current hard drive performance optimization process, and the hard drive performance is optimized until the optimized hard drive performance parameter values ​​reach the minimum threshold, or until all optimization parameters have been adopted as target optimization parameters for hard drive performance optimization, etc.

[0106] In one possible implementation, if the performance parameter values ​​of the hard drive reach the minimum threshold after performance optimization, the system can output the achievable performance parameter values ​​of the hard drive after optimization, along with a message indicating successful optimization. If all optimization parameters are used as the target optimization parameters for hard drive performance, but the hard drive's performance parameter values ​​still do not reach the minimum threshold, the system can output the final achievable performance parameter values ​​of the hard drive, the difference between these performance parameter values ​​and the minimum threshold (the reason for optimization failure), and a message indicating optimization failure, for testers' reference.

[0107] In one possible implementation, considering that the optimization effects and ease of operation may vary when different optimization parameters are used to optimize hard drive performance, in order to improve the efficiency of hard drive performance optimization and reduce the optimization difficulty, a priority order can be pre-configured for each optimization parameter. When determining the target optimization parameter to be optimized from the preset optimization parameters, the target optimization parameter to be optimized can be determined sequentially from the optimization parameters that have not yet been used to optimize hard drive performance during this optimization, according to the preset priority order of each optimization parameter.

[0108] For example, assuming the priority order of the above optimization parameters is as follows: determine the dedicated CPU core (core binding), adjust the iodepth and numberofjobs combination, adjust the fio engine, modify the CPU performance mode, disable hyper-threading, and adjust the CPU power supply mode, then following this priority order, first determine the dedicated CPU core for the hard drive, optimize the hard drive's performance, and determine whether the hard drive's performance parameter values ​​after optimization reach the pre-configured minimum threshold. If they do, the optimization process can be stopped. If not, then the iodepth and number ofjobs combination can be adjusted to optimize the hard drive's performance, and the optimization process can be stopped, etc., without further elaboration.

[0109] Because this application can determine the target optimization parameters to be optimized sequentially from each optimization parameter according to the preset priority order of each optimization parameter, it can quickly and efficiently optimize hard disk performance.

[0110] In this embodiment, upon receiving an optimization command for any hard drive, the system can determine the target optimization parameter from a preset list of unused optimization parameters. It then automatically and intelligently optimizes the configuration of this target parameter based on a preset configuration optimization method. Based on the optimized target parameter, the system performs performance optimization on the hard drive. Afterward, it can determine whether the optimized hard drive performance parameter value reaches a pre-configured minimum threshold. If not, it can continue to automatically and intelligently determine the next target optimization parameter from the remaining unused optimization parameters and continue optimizing the hard drive performance. In this application, the electronic device can automatically and intelligently execute the hard drive performance optimization process. Compared to manual hard drive performance optimization by testers, this application improves the efficiency and stability of hard drive performance optimization, enhances the level of automation and intelligence in hard drive performance optimization, and improves the user experience.

[0111] Example 2:

[0112] To facilitate understanding, the hard disk performance optimization process provided in this application will be explained and illustrated below through a specific embodiment. (See reference...) Figure 2 , Figure 2 This application provides another schematic diagram of a hard disk performance optimization process, which includes the following steps:

[0113] S201: When optimizing hard drive performance, first determine the dedicated CPU cores (core binding) as the target optimization parameters. Based on the current number of concurrent jobs, determine the number of dedicated CPU cores corresponding to the hard drive, and designate that number of CPU cores as the dedicated CPU cores for the hard drive. Optimize the hard drive's performance and obtain the optimized performance parameter values. Determine if the optimized hard drive's performance parameter values ​​reach a pre-configured minimum threshold. If the optimized hard drive's performance parameter values ​​reach the pre-configured minimum threshold, the optimization process ends. If the optimized hard drive's performance parameter values ​​do not reach the pre-configured minimum threshold, proceed to S202.

[0114] S202: The combination of iodepth and number of jobs is determined as the target optimization parameter. Based on the pre-saved correspondence between QD, test mode, and iodepth and number of jobs combinations, the candidate iodepth and number of jobs combinations corresponding to the user-input target QD and target test mode are determined. Based on the iodepth and number of jobs combination among the candidate combinations that has not yet been used to optimize hard drive performance, the currently used iodepth and number of jobs combination is updated, and the performance parameter values ​​of the hard drive after performance optimization are obtained. It is then determined whether the performance parameter values ​​of the optimized hard drive reach the pre-configured minimum threshold. If the performance parameter values ​​of the optimized hard drive reach the pre-configured minimum threshold, the tuning process ends. If the hard drive's performance parameters have not yet reached the pre-configured minimum threshold, the current iodepth and number of jobs combination can be updated based on one of the candidate iodepth and number of jobs combinations that has not yet been used to optimize hard drive performance. The optimized hard drive performance parameters are then obtained. It is determined whether the optimized hard drive performance parameters have reached the pre-configured minimum threshold. If they have, the tuning process ends. Alternatively, if all candidate iodepth and number of jobs combinations have been used but the hard drive performance parameters have not yet reached the pre-configured minimum threshold, step S203 can be performed.

[0115] S203: The FIO engine adjustment is determined as the target optimization parameter. Based on the candidate FIO engines that have not yet been adopted for hard drive performance optimization, the currently used FIO engine can be updated, and the optimized hard drive performance parameter values ​​can be obtained. It is then determined whether the optimized hard drive performance parameter values ​​reach the pre-configured minimum threshold. If the optimized hard drive performance parameter values ​​reach the pre-configured minimum threshold, the tuning process ends. If the hard drive performance parameter values ​​have not yet reached the pre-configured minimum threshold, the currently used FIO engine can be updated based on one of the candidate FIO engines that has not yet been adopted for hard drive performance optimization, and the optimized hard drive performance parameter values ​​can be obtained. It is then determined whether the optimized hard drive performance parameter values ​​reach the pre-configured minimum threshold. If the optimized hard drive performance parameter values ​​reach the pre-configured minimum threshold, the tuning process ends. If the hard drive's performance parameters have not yet reached the pre-configured minimum threshold, the currently used FIO engine can be updated based on the candidate FIO engines that have not yet been adopted to optimize hard drive performance. This process of optimizing hard drive performance continues until the hard drive's performance parameters reach the pre-configured minimum threshold, at which point the tuning process ends. Alternatively, the process can continue until all candidate FIO engines have been adopted but the hard drive's performance parameters have not yet reached the pre-configured minimum threshold, at which point S204 can be performed.

[0116] S204: Set the CPU performance mode as the target optimization parameter. Change the CPU performance mode from powersave mode to performance mode, optimize the hard drive performance, and obtain the performance parameter values ​​of the hard drive after optimization; determine whether the performance parameter values ​​of the hard drive after optimization reach the pre-configured minimum threshold. If the performance parameter values ​​of the hard drive after optimization reach the pre-configured minimum threshold, the optimization process ends. If the performance parameter values ​​of the hard drive after optimization do not reach the pre-configured minimum threshold, proceed to S205.

[0117] S205: Hyper-threading is identified as the target optimization parameter. Obtain BIOS configuration information. If Hyper-threading is enabled in the BIOS configuration, disable it. Optimize the hard drive's performance and obtain its performance parameters. Determine if the optimized hard drive performance parameters meet a pre-configured minimum threshold. If they do, end the optimization process. If they do not meet the pre-configured minimum threshold, proceed to S206.

[0118] S206: Set the CPU power supply mode as the target optimization parameter. Obtain the BIOS configuration information and change the CPU power supply mode in the BIOS configuration information from the first CPU power supply mode with a lower power supply voltage to the second CPU power supply mode with a higher power supply voltage. If the hard drive performance parameter value reaches the pre-configured minimum threshold after performance optimization, the tuning process ends. If the hard drive performance parameter value does not reach the pre-configured minimum threshold after performance optimization, taking the second CPU power supply mode as the power supply mode with the highest power supply voltage as an example, a tuning failure message can be output.

[0119] Example 3:

[0120] Based on the same technical concept and the above embodiments, this application provides a hard disk performance optimization device, see reference. Figure 3 , Figure 3 This application provides a schematic diagram of a hard disk performance optimization device, which includes:

[0121] The optimization module 301 is used to receive tuning instructions for the hard disk, determine target optimization parameters, optimize the configuration of the target optimization parameters based on a preset configuration optimization method, and optimize the performance of the hard disk based on the optimized target optimization parameters.

[0122] The judgment module 302 is used to determine whether the performance parameter value of the hard disk after performance optimization has reached the minimum threshold. If not, it continues to determine the next target optimization parameter from the unused optimization parameters until the performance parameter value of the hard disk after performance optimization reaches the minimum threshold.

[0123] In one possible implementation, the optimization parameters include at least one of the following:

[0124] Combinations of hyper-threading, CPU power supply mode, CPU cores, fio engine, CPU performance mode, I / O queue depth, and concurrent job count.

[0125] In one possible implementation, the optimization module 301 is specifically used for:

[0126] The target optimization parameter is hyper-threading. Obtain the basic input / output system BIOS configuration information and modify the hyper-threading status in the BIOS configuration information to be disabled.

[0127] In one possible implementation, the optimization module 301 is specifically used for:

[0128] If the target optimization parameter is the CPU power supply mode, then obtain the BIOS configuration information and modify the CPU power supply mode in the BIOS configuration information from the first CPU power supply mode to the second CPU power supply mode, wherein the power supply voltage of the second CPU power supply mode is higher than the power supply voltage of the first CPU power supply mode.

[0129] In one possible implementation, the optimization module 301 is specifically used for:

[0130] The target optimization parameter is the number of CPU cores. Based on the number of concurrent jobs currently being used, the number of dedicated CPU cores corresponding to the hard disk is determined, and the number of CPU cores in the CPU cores is determined as the dedicated CPU cores of the hard disk.

[0131] In one possible implementation, the optimization module 301 is specifically used for:

[0132] The target optimization parameter is the fio engine. Based on the candidate fio engines that have not yet been adopted as the fio engine for optimizing hard disk performance, the currently used fio engine is updated.

[0133] In one possible implementation, the optimization module 301 is specifically used for:

[0134] The target optimization parameter is the CPU performance mode, which is adjusted to the performance mode.

[0135] In one possible implementation, the optimization module 301 is specifically used for:

[0136] The target optimization parameters are the combination of I / O queue depth and concurrent job count. Based on the pre-saved correspondence between queue depth QD, test mode and I / O queue depth and concurrent job count combination, the input target QD and the candidate I / O queue depth and concurrent job count combination corresponding to the target test mode are determined.

[0137] Based on the candidate combinations of I / O queue depth and concurrent job count that have not yet been adopted as the combination for optimizing hard disk performance, the currently used combination of I / O queue depth and concurrent job count is updated.

[0138] In one possible implementation, the optimization module 301 is specifically used for:

[0139] The target optimization parameters are determined sequentially according to the preset priority order of each optimization parameter.

[0140] Example 4:

[0141] Based on the same technical concept, this application also provides an electronic device. Figure 4 This application provides a schematic diagram of an electronic device structure, such as... Figure 4 As shown, it includes: processor 401, communication interface 402, memory 403 and communication bus 404, wherein processor 401, communication interface 402 and memory 403 communicate with each other through communication bus 404.

[0142] The memory 403 stores a computer program. When the program is executed by the processor 401, the processor 401 performs the following steps:

[0143] Receive a tuning command for the hard drive and determine the target optimization parameters; optimize the configuration of the target optimization parameters based on a preset configuration optimization method; optimize the performance of the hard drive based on the optimized target optimization parameters;

[0144] Determine whether the performance parameter value of the hard drive after performance optimization has reached the minimum threshold. If not, continue to determine the next target optimization parameter from the unused optimization parameters until the performance parameter value of the hard drive after performance optimization reaches the minimum threshold.

[0145] In one possible implementation, the optimization parameters include at least one of the following:

[0146] Combinations of hyper-threading, CPU power supply mode, CPU cores, fio engine, CPU performance mode, I / O queue depth, and concurrent job count.

[0147] In one possible implementation, the processor 401 is specifically used for:

[0148] The target optimization parameter is hyper-threading. Obtain the basic input / output system BIOS configuration information and modify the hyper-threading status in the BIOS configuration information to be disabled.

[0149] In one possible implementation, the processor 401 is specifically used for:

[0150] The target optimization parameter is the CPU power supply mode. The BIOS configuration information is obtained, and the CPU power supply mode in the BIOS configuration information is changed from the first CPU power supply mode to the second CPU power supply mode. The power supply voltage of the second CPU power supply mode is higher than that of the first CPU power supply mode.

[0151] In one possible implementation, the processor 401 is specifically used for:

[0152] The target optimization parameter is the number of CPU cores. Based on the number of concurrent jobs currently being used, the number of dedicated CPU cores corresponding to the hard disk is determined, and the number of CPU cores in the CPU cores is determined as the dedicated CPU cores of the hard disk.

[0153] In one possible implementation, the processor 401 is specifically used for:

[0154] The target optimization parameter is the fio engine. Based on the candidate fio engines that have not yet been adopted as the fio engine for optimizing hard disk performance, the currently used fio engine is updated.

[0155] In one possible implementation, the processor 401 is specifically used for:

[0156] The target optimization parameter is the CPU performance mode, which is adjusted to the performance mode.

[0157] In one possible implementation, the processor 401 is specifically used for:

[0158] If the target optimization parameter is a combination of I / O queue depth and concurrent job count, then based on the pre-saved correspondence between queue depth QD, test mode and I / O queue depth and concurrent job count combination, determine each candidate I / O queue depth and concurrent job count combination corresponding to the input target QD and target test mode.

[0159] Based on the candidate combinations of I / O queue depth and concurrent job count that have not yet been adopted as the combination for optimizing hard disk performance, the currently used combination of I / O queue depth and concurrent job count is updated.

[0160] In one possible implementation, the processor 401 is specifically used for:

[0161] The target optimization parameters are determined sequentially according to the preset priority order of each optimization parameter.

[0162] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not indicate that there is only one bus or one type of bus.

[0163] Communication interface 402 is used for communication between the above-mentioned electronic device and other devices.

[0164] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0165] The processors mentioned above can be general-purpose processors, including central processing units, network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits, field-programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0166] Example 5:

[0167] Based on the same technical concept, embodiments of this application provide a computer-readable storage medium storing a computer program executable by an electronic device. When the program is run on the electronic device, it causes the electronic device to implement any of the above embodiments.

[0168] The aforementioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in an electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), optical storage such as CDs, DVDs, BDs, HVDs, etc., and semiconductor storage such as ROMs, EPROMs, EEPROMs, non-volatile memory (NAND flash), solid-state drives (SSDs), etc.

[0169] Based on the same technical concept, this application also provides a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to execute any of the above embodiments. Since the principle by which the above computer program product solves the problem is similar to that of the hard disk performance optimization method, the implementation of the above computer program product can refer to the implementation of the method, and repeated details will not be described again.

[0170] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0171] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0172] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0173] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0174] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for optimizing performance of a hard disk, the method comprising: The method comprises: receiving tuning instructions for the hard disk, determining a target optimization parameter; optimizing the configuration of the target optimization parameter based on a preset configuration optimization mode; and optimizing the performance of the hard disk based on the optimized target optimization parameter; determining whether the performance parameter value of the hard disk after performance optimization reaches a minimum threshold value, if yes, outputting a prompt information of successful tuning, and stopping the hard disk performance optimization process; if not, continue to determine the next target optimization parameter from the optimization parameters not yet used until the performance parameter value of the hard disk after performance optimization reaches the minimum threshold value or until all optimization parameters are used as the target optimization parameters for optimizing the performance of the hard disk; wherein the optimization parameters comprise at least one of the following: hyper-threading, CPU power supply mode, CPU core, fio engine, CPU performance mode, I / O queue depth and concurrent job array combination.

2. The method of claim 1, wherein, The optimization of the configuration of the target optimization parameter based on the preset configuration optimization mode comprises: when the target optimization parameter is hyper-threading, obtaining basic input output system (BIOS) configuration information, and modifying the state of hyper-threading in the BIOS configuration information to an off state.

3. The method of claim 1, wherein, The optimization of the configuration of the target optimization parameter based on the preset configuration optimization mode comprises: when the target optimization parameter is the CPU power supply mode, obtaining BIOS configuration information, and modifying the CPU power supply mode in the BIOS configuration information from a first CPU power supply mode to a second CPU power supply mode, wherein the power supply voltage of the second CPU power supply mode is higher than that of the first CPU power supply mode.

4. The method of claim 1, wherein, The optimization of the configuration of the target optimization parameter based on the preset configuration optimization mode comprises: when the target optimization parameter is the CPU core, determining the number of exclusive CPU cores corresponding to the hard disk according to the number of concurrent jobs currently used, and determining the number of CPU cores as the exclusive CPU cores of the hard disk.

5. The method of claim 1, wherein, The optimization of the configuration of the target optimization parameter based on the preset configuration optimization mode comprises: when the target optimization parameter is the fio engine, updating the currently used fio engine according to the fio engines that have not been used to optimize the performance of the hard disk.

6. The method of claim 1, wherein, The optimization of the configuration of the target optimization parameter based on the preset configuration optimization mode comprises: when the target optimization parameter is the CPU performance mode, adjusting the CPU performance mode to the performance mode.

7. The method of claim 1, wherein, The optimization of the configuration of the target optimization parameter based on the preset configuration optimization mode comprises: when the target optimization parameter is the I / O queue depth and concurrent job array combination, determining each candidate I / O queue depth and concurrent job array combination corresponding to the target QD and target test mode according to the correspondence between the queue depth QD, test mode and I / O queue depth and concurrent job array combination saved in advance. According to the candidate I / O queue depth and concurrent job array combination, the currently adopted I / O queue depth and concurrent job array combination is updated.

8. The method according to any one of claims 1 to 7, characterized in that, The determining the target optimization parameter comprises: The target optimization parameter is determined in sequence according to a preset priority order of each optimization parameter.

9. An electronic device, comprising: The electronic device at least comprises a processor and a memory, and the processor is used to implement the steps of the hard disk performance optimization method in any one of claims 1-8 when executing the computer program stored in the memory.

Citation Information

Patent Citations

  • Hard disk rate optimization method, server, electronic equipment and storage medium

    CN118550479A