Hard disk performance optimization method and device, equipment and medium

By automatically receiving tuning instructions, determining target optimization parameters, and optimizing based on preset configuration optimization methods, the problem of low efficiency of hard disk performance optimization in the existing technology is solved, automatic intelligence of hard disk performance optimization is realized, and efficiency is improved and stability.

CN119440414AActive Publication Date: 2025-02-14NINGCHANG INFORMATION TECH (HANGZHOU) CO LTD +1
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, hard disk performance optimization requires manual operation, low efficiency, and lacks automatic and intelligent solutions.

Method used

Provide a hard disk performance optimization method, which determines the target optimization parameters by receiving tuning instructions, optimizes the parameters based on the preset configuration optimization method, and automatically determines whether the performance parameters of the hard disk after performance optimization have reached the minimum threshold. If not, Continue to determine the next target optimization parameter from the unused optimization parameters.

Benefits of technology

It realizes automatic intelligence of hard disk performance optimization, improves the efficiency and stability of hard disk performance optimization, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119440414A_ABST
    Figure CN119440414A_ABST
Patent Text Reader

Abstract

The invention provides a hard disk performance optimization method and device, equipment and a medium, which are used for automatically and intelligently carrying out hard disk performance optimization. According to the method, when a tuning instruction for any hard disk is received, a target optimization parameter to be optimized can be determined from preset optimization parameters for optimizing the performance of the hard disk, the configuration of the target optimization parameter is optimized automatically and intelligently based on a preset configuration optimization mode, and the performance of the hard disk is optimized automatically and intelligently based on the optimized target optimization parameter. Performing performance optimization on the hard disk; afterwards, whether the performance parameter value of the hard disk after performance optimization reaches a pre-configured minimum threshold value or not can be judged, if the performance parameter value of the hard disk after performance optimization does not reach the pre-configured minimum threshold value, the next target optimization parameter to be optimized can be continuously, automatically and intelligently determined from the optimization parameters which are not adopted for optimizing the performance of the hard disk, and performance optimization is continuously carried out on the hard disk. The hard disk performance optimization efficiency and stability can be improved, and the automatic intelligent degree of hard disk performance optimization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a hard disk performance optimization method, device, equipment and medium. Background Art

[0002] In the era of big data, the amount of data generated by corporate and individual users continues to grow, and it is particularly important to optimize the performance of hard disks in data storage systems. Optimizing (tuning) hard disk performance can improve the response speed and data transmission efficiency of data storage systems, improve system performance, extend hard disk life, and improve user experience and work efficiency.

[0003] However, in the related art, when optimizing the hard disk performance, it is usually performed manually by testers, etc., which is inefficient. How to automatically and intelligently optimize the hard disk performance is a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present application provides a hard disk performance optimization method, device, equipment and medium for automatically and intelligently optimizing hard disk performance.

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

[0006] Receiving a tuning instruction for a hard disk and determining a target optimization parameter; optimizing the configuration of the target optimization parameter based on a preset configuration optimization method; and optimizing the performance of the hard disk based on the optimized target optimization parameter;

[0007] Determine whether the performance parameter value of the hard disk after performance optimization reaches the minimum threshold. If not, continue to determine the next target optimization parameter from the optimization parameters that have not been adopted until the performance parameter value of the hard disk 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 optimizing hard disk performance, and the configuration of the target optimization parameter can be automatically and intelligently optimized based on the preset configuration optimization method, and the performance of the hard disk can be optimized based on the optimized target optimization parameter; after that, it can be determined whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold value. 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 to optimize the hard disk performance, and the performance of the hard disk can be continued to be optimized. In this application, the electronic device can automatically and intelligently execute the process of hard disk performance optimization. Compared with the manual hard disk performance optimization performed by the test personnel, this application can improve the efficiency and stability of hard disk performance optimization, improve the automatic and intelligent degree of hard disk performance optimization, and improve the user experience.

[0009] In a possible implementation, the optimization parameter includes at least one of the following:

[0010] Combination of hyperthreading, CPU power mode, CPU cores, fio engines, CPU performance mode, I / O queue depth, and number of concurrent jobs.

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

[0012] The target optimization parameter is hyperthreading, basic input and output system BIOS configuration information is obtained, and the state of the hyperthreading in the BIOS configuration information is modified to a closed state.

[0013] Through the above method, the BIOS configuration information can be automatically and intelligently obtained, and the hyperthreading state in the BIOS configuration information can be modified to a closed state, so that the performance of the hard disk can be optimized to a certain extent, and the automatic intelligence degree of hard disk performance optimization can be improved.

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

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

[0016] Through 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, so that the performance of the hard disk can be optimized to a certain extent, and the automatic intelligence level of hard disk performance optimization can be improved.

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

[0018] The target optimization parameter is the CPU core. The number of exclusive CPU cores corresponding to the hard disk is determined according to the number of concurrent jobs currently used, and the number of CPU cores in the CPU cores is determined as the exclusive CPU cores of the hard disk.

[0019] Through the above method, the number of exclusive CPU cores corresponding to the hard disk to be optimized can be determined according to the number of concurrent jobs currently used, and this number of CPU cores in the CPU cores can be determined as the exclusive CPU cores of the hard disk, thereby optimizing the performance of the hard disk to a certain extent.

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

[0021] The target optimization parameter is the fio engine, and the currently used fio engine is updated according to the fio engine that has not been used to optimize the hard disk performance among the candidate fio engines.

[0022] Through the above method, the performance of the hard disk can be optimized to the greatest extent by adjusting the adopted fio engine.

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

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

[0025] Through the above method, the CPU performance mode can be adjusted from powersave mode to performance mode, thereby optimizing the hard disk performance to a certain extent.

[0026] In a possible implementation, the optimizing the configuration of the target optimization parameter 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 number, then determine candidate I / O queue depth and concurrent job number combinations corresponding to the input target QD and the target test mode according to the pre-saved correspondence between the queue depth QD, the test mode and the combination of I / O queue depth and concurrent job number;

[0028] According to the I / O queue depth and concurrent job number combination that has not been adopted to optimize hard disk performance among the candidate I / O queue depth and concurrent job number combinations, the currently adopted I / O queue depth and concurrent job number combination is updated.

[0029] Through the above method, the performance of the hard disk can be optimized to the greatest extent by adjusting the used iodepth and number of jobs combination.

[0030] In a possible implementation, determining the target optimization parameter to be optimized from various preset optimization parameters that are not used to optimize the hard disk performance includes:

[0031] According to the preset priority order of each optimization parameter, the target optimization parameters to be optimized are determined in sequence from among the preset optimization parameters that are not adopted to optimize the hard disk performance.

[0032] Through the above method, the target optimization parameters to be optimized can be determined in turn from the various optimization parameters according to the preset priority order of each optimization parameter, so that the optimization of the hard disk performance can be achieved quickly and efficiently.

[0033] In a second aspect, the present 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 above. The beneficial effects can be found in the description of the first aspect, which will not be repeated here. The hard disk performance optimization device includes:

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

[0035] The judgment module is used to judge whether the performance parameter value of the hard disk after performance optimization reaches the minimum threshold. If not, continue to determine the next target optimization parameter from the optimization parameters that have not been adopted until the performance parameter value of the hard disk after performance optimization reaches the said minimum threshold.

[0036] In a possible implementation, the optimization parameter includes at least one of the following:

[0037] Combination of hyperthreading, CPU power mode, CPU cores, fio engines, CPU performance mode, I / O queue depth, and number of concurrent jobs.

[0038] In a possible implementation, the optimization module is specifically used to:

[0039] The target optimization parameter is hyperthreading, basic input and output system BIOS configuration information is obtained, and the state of the hyperthreading in the BIOS configuration information is modified to a closed state.

[0040] In a possible implementation, the optimization module is specifically used to:

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

[0042] In a possible implementation, the optimization module is specifically used to:

[0043] The target optimization parameter is the CPU core. The number of exclusive CPU cores corresponding to the hard disk is determined according to the number of concurrent jobs currently used, and the number of CPU cores in the CPU cores is determined as the exclusive CPU cores of the hard disk.

[0044] In a possible implementation, the optimization module is specifically used to:

[0045] The target optimization parameter is the fio engine, and the currently used fio engine is updated according to the fio engine that has not been used to optimize the hard disk performance among the candidate fio engines.

[0046] In a possible implementation, the optimization module is specifically used to:

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

[0048] In a possible implementation, the optimization module is specifically used to:

[0049] The target optimization parameter is a combination of I / O queue depth and concurrent job number, and each candidate I / O queue depth and concurrent job number combination corresponding to the input target QD and the target test mode is determined according to the correspondence between the pre-saved queue depth QD, the test mode and the combination of I / O queue depth and concurrent job number;

[0050] According to the I / O queue depth and concurrent job number combination that has not been adopted to optimize hard disk performance among the candidate I / O queue depth and concurrent job number combinations, the currently adopted I / O queue depth and concurrent job number combination is updated.

[0051] In a possible implementation, the optimization module is specifically used to:

[0052] According to the preset priority order of each optimization parameter, the target optimization parameters are determined in sequence.

[0053] In a third aspect, the present application further provides an electronic device, which includes at least a processor and a memory, and the processor is used to implement the steps of the hard disk performance optimization method as described in any one of the first aspects when executing a computer program stored in the memory.

[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the steps of the hard disk performance optimization method as described in any one of the first aspects.

[0055] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program code, which, when executed on a computer, enables the computer to execute the steps of the hard disk performance optimization method as described in any one of the first aspects. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0057] Figure 1 A schematic diagram of a hard disk performance optimization process provided in an embodiment of the present application;

[0058] Figure 2 A schematic diagram of another hard disk performance optimization process provided in an embodiment of the present application;

[0059] Figure 3 A schematic diagram of the structure of a hard disk performance optimization device provided in an embodiment of the present application;

[0060] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0061] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0062] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0063] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

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

[0065] The term "module" refers to any known or later 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 the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0067] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

[0068] The embodiment of the present application provides a hard disk performance optimization method, device, equipment and medium. In the method, when receiving a tuning instruction for any hard disk, the target optimization parameter to be optimized can be determined from the preset optimization parameters that have not been adopted to optimize the hard disk performance, and the configuration of the target optimization parameter can be automatically and intelligently optimized based on the preset configuration optimization method, and the hard disk can be optimized based on the optimized target optimization parameter; after that, it can be determined whether the performance parameter value of the hard disk after the performance optimization reaches the pre-configured minimum threshold (the performance parameter minimum threshold). If it does not reach it, the next target optimization parameter to be optimized can be automatically and intelligently determined from the optimization parameters that have not been adopted to optimize the hard disk performance, and the hard disk can continue to be optimized. In the present application, the electronic device can automatically and intelligently execute the process of hard disk performance optimization. Compared with the manual hard disk performance optimization performed by the tester, the present application can improve the efficiency and stability of hard disk performance optimization, improve the automatic and intelligent degree of hard disk performance optimization, and improve the user experience.

[0069] Embodiment 1:

[0070] Figure 1 A schematic diagram of a hard disk performance optimization process provided in an embodiment of the present application, the process includes:

[0071] S101: receiving a tuning instruction for a hard disk and determining target optimization parameters; optimizing the configuration of the target optimization parameters based on a preset configuration optimization method; and optimizing the performance of the hard disk based on the optimized target optimization parameters.

[0072] The hard disk performance optimization method provided in the embodiment of the present application is applied to an electronic device, which may be, for example, a personal computer (PC), a mobile terminal, a server, etc., and the present application does not make any specific limitation on this.

[0073] In a possible implementation, when the user wants to know the current performance of the hard disk, he can click on the hard disk performance test button, and the electronic device can obtain and display all its current hard disk lists through system commands or API calls in response to the click operation. The user can select the hard disk that he wants to perform performance test from the hard disk list according to his own needs, and the electronic device can identify the hard disk to be tested by the user. Of course, the electronic device can also default to all hard disks except the system disk (OS disk) as hard disks to be tested for performance. Among them, the hard disk to be tested for performance can be a mechanical hard disk (HDD), a solid-state hard disk (SSD), etc., and its hard disk interface type can be a serial SCSI technology (SerialAttached SCSI, SAS), a serial ATA (SerialATA, SATA), a non-volatile memory host controller interface specification (Non-Volatile Memory Express, nvme), etc., and this application does not make specific restrictions on this. The system disk can be the drive letter where the operating system of the electronic device is located (such as nvme0, etc.), which will not be repeated here. Among them, the process of performing performance testing and optimization on each hard disk is the same. For ease of understanding, the following takes any hard disk as an example to explain the process of performing hard disk performance testing and optimization.

[0074] After determining the hard disk to be performance tested, the electronic device can display the test mode (also called test condition) options corresponding to the hard disk, where the test mode options may include random read (Random Read), random write (RandomWrite), sequential read (Sequential Read), sequential write (Sequential Write), etc. The user can select a test mode suitable for the hard disk according to needs (for ease of description, hereinafter referred to as the target test mode).

[0075] In a possible implementation, the electronic device may also display the performance parameter value that the user expects the hard disk to achieve (hereinafter referred to as the expected performance value for ease of description), such as the number of input / output operations per second (IOPS) and the number of bits transmitted per second (MB / s) of the hard disk. In addition, the lowest acceptable discount ratio may be displayed for the user to input or select, wherein the discount ratio may be a positive number not greater than 1, such as 80%, 90%, etc. After the electronic device receives the expected performance value and the discount ratio input or selected by the user, the product of the expected performance value and the discount ratio may be determined as the minimum threshold value of the performance parameter (hereinafter referred to as the minimum threshold value for ease of description), and the minimum threshold value may be used as a standard for subsequent performance testing and performance optimization of the hard disk. Of course, the expected performance value input by the user may also be directly determined as the minimum threshold value, and this application does not specifically limit this.

[0076] The electronic device may also display a numerical value of the queue depth (QD) that the user expects the hard disk to achieve, which can be input or selected by the user. For ease of description, this numerical value is referred to as the target QD. Based on the correspondence between the pre-saved QD, the test mode, and the combination of I / O queue depth (iodepth) and the number of concurrent jobs (number of jobs), the candidate iodepth and number of jobs combinations corresponding to the target QD input by the user and the target test mode can be determined, and any combination of the candidate iodepth and number of jobs combinations can be used as the iodepth and number of jobs combination used for the performance test of the hard disk.

[0077] Exemplarily, assuming that the target QD input by the user is 256, the target QD can be split into two parameters: iodepth and number of jobs. For example, for a certain hard disk, the candidate iodepth and number of jobs combinations corresponding to the target QD and the target test mode can be: 2×128, 4×64, etc. Among them, the number of jobs in the iodepth and number of jobs combination of 2×128 is 2, and the iodepth is 128. The number of jobs in the iodepth and number of jobs combination of 4×64 is 4, and the iodepth is 64, which will not be repeated here.

[0078] In a possible implementation, the electronic device can also determine the target block size corresponding to the target test mode of the hard disk according to the correspondence between the pre-saved test mode and the block size. Afterwards, an FIO configuration file (config file) of the open source disk I / O performance testing tool Flexible I / O Tester (FIO) based on Linux can be created. The FIO configuration file can include the identification information of the hard disk to be subjected to the performance test, the target test mode, the target block size, the information of the iodepth and number of jobs combination adopted, etc. Based on the FIO configuration file, the FIO test tool can be started to test the performance of the hard disk and obtain the test results. The test results may include the performance parameter values ​​of the hard disk, such as IOPS, MB / s, bandwidth, latency, etc. Among them, the process of testing the performance of the hard disk based on the FIO configuration file can adopt relevant technologies, which will not be repeated here.

[0079] In a possible implementation, after obtaining the test results, the performance parameter values ​​in the test results can be compared with the corresponding minimum thresholds introduced in the above embodiments. If the performance parameter values ​​in the test results are not lower than the corresponding minimum thresholds, it can be considered that the performance of the hard disk is good at this time, and performance optimization can be omitted. If the performance parameter values ​​in the test results are lower than the corresponding minimum thresholds, it can be considered that the performance of the hard disk is not very good at this time, and the process of optimizing the hard disk performance can be performed at this time.

[0080] In a possible implementation, when the performance parameter value of the hard disk in the test result is lower than the minimum threshold, the electronic device can directly consider that a tuning instruction for the hard disk has been received, and can directly perform a process of optimizing (tuning) the performance of the hard disk. In addition, when the performance parameter value of the hard disk in the test result is lower than the minimum threshold, the electronic device can also first display a prompt message that the hard disk performance can be optimized and an option box for whether to optimize the hard disk performance. When it is recognized that the user has selected the option of optimizing the hard disk performance, it can be considered that a tuning instruction for the hard disk has been received, and the process of optimizing the performance of the hard disk can be performed.

[0081] In a possible implementation, when optimizing the performance of a hard disk, a target optimization parameter to be optimized may be first determined from various preset optimization parameters for optimizing the performance of the hard disk, and the configuration of the target optimization parameter may be optimized based on a preset configuration optimization method, and then the performance of the hard disk may be optimized based on the optimized target optimization parameter to obtain the performance parameter value of the hard disk after the performance optimization. The process of obtaining the performance parameter value of the hard disk after the performance optimization may adopt relevant technologies, which will not be described in detail here.

[0082] In a possible implementation, the preset optimization parameters that can optimize the hard disk performance may include: hyperthreading, CPU power mode, CPU core, fio engine, CPU performance mode, I / O queue depth and concurrent job number combination. From these optimization parameters, the target optimization parameters to be optimized can be selected, and the hard disk performance can be optimized by optimizing the configuration of the target optimization parameters. Specifically, the target optimization parameters can be CPU power mode, CPU core, fio engine, CPU performance mode, I / O queue depth and concurrent job number combination. The configuration of the target optimization parameters can be optimized based on the following six methods to optimize the hard disk performance:

[0083] Method 1: When the target optimization parameter is hyperthreading, the basic input / output system (BIOS) configuration information of the electronic device can be obtained to determine whether the hyperthreading in the BIOS configuration information is turned on. If it is turned on, the state of the hyperthreading is changed to a closed state.

[0084] Among them, Hyper-Threading (HT) is a technology developed by Intel. Through Hyper-Threading, a physical CPU core can be simulated into two logical threads. Considering that when Hyper-Threading is turned on, this method of simulating a physical CPU core into two logical threads may affect the hard disk performance. In order to optimize the hard disk performance, the state of Hyper-Threading can be changed to the off state, so as to improve the hard disk performance to a certain extent and optimize the hard disk performance.

[0085] In a possible implementation, the BIOS configuration information of the electronic device can be obtained by using an SCE tool pre-configured in the electronic device (the electronic device to which the hard disk belongs), etc., which will not be described in detail here. The state of the hyperthreading in the BIOS configuration information can be changed from an on state to a off state, after which the electronic device can automatically and intelligently restart. After the modified BIOS configuration information takes effect, the hard disk performance test process described above can be automatically and intelligently performed to obtain the performance parameter value of the hard disk after performance optimization, which will not be described in detail here.

[0086] The present application can automatically and intelligently obtain BIOS configuration information and modify the hyperthreading state in the BIOS configuration information to a closed state, thereby optimizing the performance of the hard disk to a certain extent and improving the automatic intelligence level of hard disk performance optimization.

[0087] Method 2: When the target optimization parameter is the CPU power supply mode, BIOS configuration information can be obtained, and the CPU power supply mode in the BIOS configuration information is modified 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.

[0088] Among them, considering that the higher the power supply voltage in the CPU power supply mode is, the more conducive it is to improving the hard disk performance, when optimizing the hard disk performance, the BIOS configuration information of the electronic device can be obtained, and the CPU power supply mode in the BIOS configuration information is modified 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. Among them, this application does not specifically limit the power supply voltages of the first CPU power supply mode and the second CPU power supply mode.

[0089] In one possible implementation, after 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 electronic device can automatically and intelligently restart. After the modified BIOS configuration information takes effect, the hard disk performance test process introduced above can be automatically and intelligently performed to obtain the performance parameter value of the hard disk after performance optimization, which will not be repeated here.

[0090] The present 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 the performance of the hard disk to a certain extent and improving the automatic and intelligent degree of hard disk performance optimization.

[0091] Method 3: When the target optimization parameter is the CPU core, the number of exclusive CPU cores corresponding to the hard disk can be determined according to the number of concurrent jobs currently used, and the number of CPU cores in the CPU cores can be determined as the exclusive CPU cores of the hard disk.

[0092] Among them, considering that when a process is bound to a specified CPU core (also referred to as a CPU core), the system will schedule the thread of the process to execute on the specified CPU core, thereby accelerating the execution speed of the process, improving system performance, and reducing resource waste. In order to maximize the performance of the hard disk and optimize the performance of the hard disk, the number of exclusive CPU cores corresponding to the hard disk can be determined according to the number of concurrent jobs (number of 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 exclusive CPU cores corresponding to the hard disk, and then the number (number of concurrent jobs) of CPU cores in the CPU core of the electronic device can be determined as the exclusive CPU core of the hard disk. In other words, the same number of CPU cores as the number of concurrent jobs of the currently used process can be bound as the exclusive CPU core of the hard disk. Exemplarily, if the number of concurrent jobs of the currently used process number of jobs is 4, the 4 CPU cores in the CPU core of the electronic device can be determined as the exclusive CPU core of the hard disk.

[0093] In a possible implementation, after several CPU cores are determined as exclusive CPU cores of the hard disk, the hard disk performance test process described above can be performed again to obtain the performance parameter value of the hard disk after performance optimization, which will not be repeated here.

[0094] This application can determine the number of exclusive CPU cores corresponding to the hard disk to be performance optimized based on the number of concurrent jobs currently used, and determine this number of CPU cores in the CPU cores as the exclusive CPU cores of the hard disk, thereby optimizing the performance of the hard disk to a certain extent.

[0095] Method 4: When the target optimization parameter is the fio engine, the currently used fio engine can be updated according to the fio engine that has not been used to optimize the hard disk performance among the candidate fio engines.

[0096] Among them, considering that there are multiple engines (I / O engines) supported by fio, updating (adjusting) the currently used engine (for ease of description, referred to as fio engine) to other engines may optimize the performance of the hard disk to a certain extent. When optimizing the hard disk performance, the currently used fio engine (such as the synchronization engine sync) can be adjusted (updated) to another fio engine (such as VisualStudio, vs engine). After the adjustment, the hard disk performance test process described above can be performed again to obtain the performance parameter value of the hard disk after the fio engine is adjusted, and it is judged whether the hard disk performance is optimized after the fio engine is adjusted, and whether the minimum threshold is reached. If it is reached, it can be considered that the hard disk performance has been optimized and the tuning process can be stopped. If the minimum threshold has not been reached, the currently used fio engine can be adjusted (updated) to a fio engine that has not been used to optimize the hard disk performance (such as the asynchronous engine async). After the adjustment, the hard disk performance test process described above can be performed again to obtain the performance parameter value of the hard disk after the fio engine is adjusted, and it is judged again whether the hard disk performance is optimized after the fio engine is adjusted, and whether the minimum threshold is reached. If it is reached, it can be considered that the hard disk performance has been optimized and the tuning process can be stopped. If the minimum threshold has not been reached, the currently used fio engine can be adjusted (updated) to a fio engine that has not been used to optimize hard disk performance until all candidate fio engines are used or until the hard disk performance reaches the minimum threshold, etc., which will not be repeated here. This application does not specifically limit the fio engine and can be flexibly set according to needs.

[0097] This application can optimize the performance of the hard disk to the greatest extent by adjusting the adopted fio engine.

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

[0099] Considering that the CPU performance mode of electronic devices usually adopts the power saving mode by default, so that the lowest frequency can be used to reduce energy consumption. The performance mode can maintain a higher frequency to obtain the best performance. In order to optimize the hard disk performance, the CPU performance mode can be adjusted from the power saving mode to the performance mode, so as to optimize the hard disk performance to the greatest extent.

[0100] This application can optimize the hard disk performance to a certain extent by adjusting the CPU performance mode from powersave mode to performance mode.

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

[0102] Considering that adjusting (updating) the currently used iodepth and numberofjobs combination may optimize the hard disk performance to a certain extent. When optimizing the hard disk performance, the currently used iodepth and numberofjobs combination (such as 2×128) can be adjusted (updated) to another iodepth and numberofjobs combination (such as 4×64). After the adjustment, the hard disk performance test process described above can be performed again to obtain the hard disk performance parameter value after adjusting the iodepth and numberofjobs combination, and to determine whether the hard disk performance is optimized after adjusting the iodepth and numberofjobs combination, and whether the minimum threshold is reached. If so, it can be considered that the hard disk performance has been optimized and the tuning process can be stopped. If the minimum threshold has not been reached, the currently used iodepth and number of jobs combination can be adjusted (updated) to an iodepth and number of jobs combination that has not yet been adopted to optimize hard disk performance (such as 8×32). After the adjustment, the hard disk performance test process described above can be performed again to obtain the performance parameter value of the hard disk after adjusting the iodepth and number of jobs combination, and again determine whether the hard disk performance is optimized after adjusting the iodepth and number of jobs combination, and whether the minimum threshold has been reached. If it has been reached, it can be considered that the hard disk performance has been optimized and the tuning process can be stopped. If the minimum threshold has not been reached, the currently used iodepth and number of jobs combination can be adjusted (updated) to an iodepth and number of jobs combination that has not yet been adopted to optimize hard disk performance, until all candidate iodepth and number of jobs combinations are adopted or until the hard disk performance reaches the minimum threshold, etc., which will not be repeated here. This application does not specifically limit the iodepth and number of jobs combination, and can be flexibly set according to needs.

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

[0104] S102: Determine whether the performance parameter value of the hard disk after performance optimization reaches a minimum threshold value. If not, continue to determine the next target optimization parameter from the optimization parameters that have not been adopted until the performance parameter value of the hard disk after performance optimization reaches the minimum threshold value.

[0105] In a possible implementation, after the hard disk is optimized based on the optimized target optimization parameter, the performance parameter value of the hard disk after the performance optimization can be obtained, and it can be determined whether the performance parameter value of the hard disk after the performance optimization has reached the minimum threshold value. If it has reached, it can be considered that the hard disk performance has reached the user's requirements, and the tuning process can be stopped. If it has not reached, the next target optimization parameter to be optimized can be determined from the optimization parameters that have not been adopted to optimize the hard disk performance during the current hard disk performance optimization process, and the configuration of the target optimization parameter can be optimized based on the preset configuration optimization method, and the hard disk is optimized based on the optimized target optimization parameter to obtain the performance parameter value of the hard disk after the performance optimization, and then it can be determined whether the performance parameter value of the hard disk after the performance optimization has reached the minimum threshold value. If it has reached, it can be considered that the hard disk performance has reached the user's requirements, and the tuning process can be stopped. If it has not reached, the next target optimization parameter to be optimized can be determined from the optimization parameters that have not been adopted to optimize the hard disk performance during the current hard disk performance optimization process, and the hard disk performance can be optimized until the performance parameter value of the hard disk after the performance optimization reaches the minimum threshold value, or until all optimization parameters are adopted as target optimization parameters for optimizing hard disk performance, etc.

[0106] In a possible implementation, if the performance parameter value of the hard disk reaches the minimum threshold after performance optimization, the performance parameter value that the hard disk can achieve after performance optimization can be output, as well as prompt information of successful tuning, etc. If all optimization parameters are adopted as target optimization parameters for optimizing hard disk performance, and the performance parameter value of the hard disk still does not reach the minimum threshold, the performance parameter value that the hard disk can eventually achieve, the difference between the performance parameter value and the minimum threshold (the reason for tuning failure), and prompt information of tuning failure, etc. can be output for reference by testers.

[0107] In one possible implementation, taking into account that the optimization effects and operation difficulty levels when different optimization parameters are used to optimize the performance of the hard disk may be different, in order to improve the efficiency of hard disk 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 in sequence from the optimization parameters that have not been adopted to optimize the hard disk performance when the hard disk performance is optimized this time, according to the preset priority order of each optimization parameter.

[0108] Exemplarily, assuming that the priority order of the above optimization parameters is: determine the dedicated CPU core (binding core), adjust the combination of iodepth and numberofjobs, adjust the fio engine, modify the CPU performance mode, turn off hyperthreading, and adjust the CPU power supply mode, then according to this priority order, first determine the dedicated CPU core of the hard disk, optimize the performance of the hard disk, and determine whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold. If it reaches, the tuning process can be stopped. If it does not reach, you can adjust the combination of iodepth and numberofjobs, optimize the performance of the hard disk, and determine whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold. If it reaches, you can stop the tuning process, etc., which will not be repeated here.

[0109] Since the present application can determine the target optimization parameters to be optimized from the various optimization parameters in sequence according to the preset priority order of each optimization parameter, the hard disk performance can be optimized quickly and efficiently.

[0110] In the embodiment of the present application, when receiving the tuning instruction for any hard disk, the target optimization parameter to be optimized can be determined from the preset optimization parameters that have not been adopted to optimize the hard disk performance, and the configuration of the target optimization parameter can be automatically and intelligently optimized based on the preset configuration optimization method, and the performance of the hard disk can be optimized based on the optimized target optimization parameter; after that, it can be determined whether the performance parameter value of the hard disk after the performance optimization reaches the pre-configured minimum threshold value, if not, the next target optimization parameter to be optimized can be automatically and intelligently determined from the optimization parameters that have not been adopted to optimize the hard disk performance, and the performance of the hard disk can be optimized. In the present application, the electronic device can automatically and intelligently execute the process of hard disk performance optimization. Compared with the manual hard disk performance optimization performed by the test personnel, the present application can improve the efficiency and stability of hard disk performance optimization, improve the automatic and intelligent degree of hard disk performance optimization, and improve the user experience.

[0111] Embodiment 2:

[0112] For ease of understanding, the hard disk performance optimization process provided by the present application is explained below through a specific embodiment. Figure 2 , Figure 2 A schematic diagram of another hard disk performance optimization process provided in an embodiment of the present application, the process includes the following steps:

[0113] S201: When optimizing the performance of the hard disk, first determine the dedicated CPU core (bound core) as the target optimization parameter. The number of dedicated CPU cores corresponding to the hard disk can be determined based on the number of concurrent jobs currently used, and this number of CPU cores in the CPU core can be determined as the dedicated CPU cores of the hard disk, and the performance of the hard disk is optimized, and the performance parameter value of the hard disk after performance optimization is obtained; determine whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold, if the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold, then end the tuning process. If the performance parameter value of the hard disk after performance optimization does not reach the pre-configured minimum threshold, proceed to S202.

[0114] S202: Determine the adjusted iodepth and number of jobs combination as the target optimization parameter. According to the correspondence between the pre-saved QD, test mode and the iodepth and number of jobs combination, the candidate iodepth and number of jobs combinations corresponding to the target QD input by the user and the target test mode can be determined, and according to an iodepth and number of jobs combination that has not been adopted to optimize the hard disk performance among the candidate iodepth and number of jobs combinations, the currently adopted iodepth and number of jobs combination is updated, and the performance parameter value of the hard disk after performance optimization is obtained; determine whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold, and if the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold, the tuning process is terminated. If the performance parameter value of the hard disk has not reached the pre-configured minimum threshold, the currently used iodepth and number of jobs combination can be updated according to an iodepth and number of jobs combination that has not been adopted to optimize the hard disk performance among the candidate iodepth and number of jobs combinations, and the performance parameter value of the hard disk after performance optimization is obtained; it is determined whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold. If the performance parameter value of the hard disk reaches the pre-configured minimum threshold, the tuning process is terminated. If the performance parameter value of the hard disk has not reached the pre-configured minimum threshold, the currently used iodepth and number of jobs combination can be updated according to an iodepth and number of jobs combination that has not been adopted to optimize the hard disk performance among the candidate iodepth and number of jobs combinations, and the process of optimizing the performance of the hard disk is performed until the performance parameter value of the hard disk reaches the pre-configured minimum threshold, and the tuning process is terminated, or until all candidate iodepth and number of jobs combinations are adopted but the performance parameter value of the hard disk has not reached the pre-configured minimum threshold, at which time S203 can be performed.

[0115] S203: Adjusting the fio engine is determined as the target optimization parameter. The currently used fio engine can be updated according to the fio engine that has not been adopted as the hard disk performance optimization among the candidate fio engines, and the performance parameter value of the hard disk after performance optimization is obtained; it is determined whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold value, and if the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold value, the tuning process is terminated. If the performance parameter value of the hard disk has not reached the pre-configured minimum threshold value, the currently used fio engine can be updated according to a fio engine that has not been adopted as the hard disk performance optimization among the fio engines, and the performance parameter value of the hard disk after performance optimization is obtained; it is determined whether the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold value, and if the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold value, the tuning process is terminated. If the performance parameter value of the hard disk has not reached the pre-configured minimum threshold, the currently used fio engine can be updated according to a fio engine among the candidate fio engines that has not been adopted to optimize the hard disk performance, and the process of optimizing the performance of the hard disk can be performed until the performance parameter value of the hard disk reaches the pre-configured minimum threshold, and the tuning process is terminated, or until all candidate fio engines are adopted but the performance parameter value of the hard disk has not reached the pre-configured minimum threshold, then S204 can be performed.

[0116] S204: Determine the CPU performance mode as the target optimization parameter. Adjust the CPU performance mode from the powersave mode to the performance mode, optimize the hard disk performance, and obtain the performance parameter value of the hard disk after the performance optimization; determine whether the performance parameter value of the hard disk after the performance optimization reaches the pre-configured minimum threshold. If the performance parameter value of the hard disk after the performance optimization reaches the pre-configured minimum threshold, end the tuning process. If the performance parameter value of the hard disk after the performance optimization does not reach the pre-configured minimum threshold, proceed to S205.

[0117] S205: Determine hyperthreading as the target optimization parameter. Obtain BIOS configuration information. If hyperthreading is enabled in the BIOS configuration information, change the hyperthreading state to disabled, optimize the hard disk performance, and obtain the performance parameter value of the hard disk after performance optimization; determine whether the performance parameter value of the hard disk after performance optimization reaches a pre-configured minimum threshold. If the performance parameter value of the hard disk after performance optimization reaches the pre-configured minimum threshold, end the optimization process. If the performance parameter value of the hard disk after performance optimization does not reach the pre-configured minimum threshold, proceed to S206.

[0118] S206: Determine the CPU power supply mode as the target optimization parameter. Obtain BIOS configuration information, and modify 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 performance parameter value of the hard disk reaches the pre-configured minimum threshold after performance optimization, the tuning process is terminated. If the performance parameter value of the hard disk 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 prompt message indicating that the tuning failed can be output.

[0119] Embodiment 3:

[0120] Based on the same technical concept, on the basis of the above embodiments, the present application provides a hard disk performance optimization device, see Figure 3 , Figure 3 A schematic diagram of the structure of a hard disk performance optimization device provided in an embodiment of the present application, the device comprising:

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

[0122] The judgment module 302 is used to judge whether the performance parameter value of the hard disk after performance optimization reaches the minimum threshold. If not, continue to determine the next target optimization parameter from the optimization parameters that have not been adopted until the performance parameter value of the hard disk after performance optimization reaches the said minimum threshold.

[0123] In a possible implementation, the optimization parameter includes at least one of the following:

[0124] Combination of hyperthreading, CPU power mode, CPU cores, fio engines, CPU performance mode, I / O queue depth, and number of concurrent jobs.

[0125] In a possible implementation, the optimization module 301 is specifically configured to:

[0126] The target optimization parameter is hyperthreading, basic input and output system BIOS configuration information is obtained, and the state of the hyperthreading in the BIOS configuration information is modified to a closed state.

[0127] In a possible implementation, the optimization module 301 is specifically configured to:

[0128] If the target optimization parameter is the CPU power supply mode, BIOS configuration information is obtained, and the CPU power supply mode in the BIOS configuration information is modified 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 a possible implementation, the optimization module 301 is specifically configured to:

[0130] The target optimization parameter is the CPU core. The number of exclusive CPU cores corresponding to the hard disk is determined according to the number of concurrent jobs currently used, and the number of CPU cores in the CPU cores is determined as the exclusive CPU cores of the hard disk.

[0131] In a possible implementation, the optimization module 301 is specifically configured to:

[0132] The target optimization parameter is the fio engine, and the currently used fio engine is updated according to the fio engine that has not been used to optimize the hard disk performance among the candidate fio engines.

[0133] In a possible implementation, the optimization module 301 is specifically configured to:

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

[0135] In a possible implementation, the optimization module 301 is specifically configured to:

[0136] The target optimization parameter is a combination of I / O queue depth and concurrent job number, and each candidate I / O queue depth and concurrent job number combination corresponding to the input target QD and the target test mode is determined according to the correspondence between the pre-saved queue depth QD, the test mode and the combination of I / O queue depth and concurrent job number;

[0137] According to the I / O queue depth and concurrent job number combination that has not been adopted to optimize hard disk performance among the candidate I / O queue depth and concurrent job number combinations, the currently adopted I / O queue depth and concurrent job number combination is updated.

[0138] In a possible implementation, the optimization module 301 is specifically configured to:

[0139] According to the preset priority order of each optimization parameter, the target optimization parameters are determined in sequence.

[0140] Embodiment 4:

[0141] Based on the same technical concept, the present application also provides an electronic device, Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, it includes: a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the 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] Receiving a tuning instruction for a hard disk and determining a target optimization parameter; optimizing the configuration of the target optimization parameter based on a preset configuration optimization method; and optimizing the performance of the hard disk based on the optimized target optimization parameter;

[0144] Determine whether the performance parameter value of the hard disk after performance optimization reaches the minimum threshold. If not, continue to determine the next target optimization parameter from the optimization parameters that have not been adopted until the performance parameter value of the hard disk after performance optimization reaches the minimum threshold.

[0145] In a possible implementation, the optimization parameter includes at least one of the following:

[0146] Combination of hyperthreading, CPU power mode, CPU cores, fio engines, CPU performance mode, I / O queue depth, and number of concurrent jobs.

[0147] In a possible implementation, the processor 401 is specifically configured to:

[0148] The target optimization parameter is hyperthreading, basic input and output system BIOS configuration information is obtained, and the state of the hyperthreading in the BIOS configuration information is modified to a closed state.

[0149] In a possible implementation, the processor 401 is specifically configured to:

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

[0151] In a possible implementation, the processor 401 is specifically configured to:

[0152] The target optimization parameter is the CPU core. The number of exclusive CPU cores corresponding to the hard disk is determined according to the number of concurrent jobs currently used, and the number of CPU cores in the CPU cores is determined as the exclusive CPU cores of the hard disk.

[0153] In a possible implementation, the processor 401 is specifically configured to:

[0154] The target optimization parameter is the fio engine, and the currently used fio engine is updated according to the fio engine that has not been used to optimize the hard disk performance among the candidate fio engines.

[0155] In a possible implementation, the processor 401 is specifically configured to:

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

[0157] In a possible implementation, the processor 401 is specifically configured to:

[0158] If the target optimization parameter is a combination of I / O queue depth and concurrent job number, then determine candidate I / O queue depth and concurrent job number combinations corresponding to the input target QD and the target test mode according to the pre-saved correspondence between the queue depth QD, the test mode and the combination of I / O queue depth and concurrent job number;

[0159] According to the I / O queue depth and concurrent job number combination that has not been adopted to optimize hard disk performance among the candidate I / O queue depth and concurrent job number combinations, the currently adopted I / O queue depth and concurrent job number combination is updated.

[0160] In a possible implementation, the processor 401 is specifically configured to:

[0161] According to the preset priority order of each optimization parameter, the target optimization parameters are determined in sequence.

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

[0163] The communication interface 402 is used for communication between the electronic device and other devices.

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

[0165] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; it can also be a digital signal processing processor (Digital Signal Processing, DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.

[0166] Embodiment 5:

[0167] Based on the same technical concept, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program that can be executed by an electronic device. When the program runs on the electronic device, the electronic device implements any of the above embodiments when executing.

[0168] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.

[0169] Based on the same technical concept, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the above embodiments. Since the principle of solving the problem by the above computer program product is similar to the hard disk performance optimization method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.

[0170] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0171] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0172] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0173] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0174] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A hard disk performance optimization method, characterized in that: The method comprises: Receiving a tuning instruction for a hard disk and determining a target optimization parameter; optimizing the configuration of the target optimization parameter based on a preset configuration optimization method; and optimizing the performance of the hard disk based on the optimized target optimization parameter; Determine whether the performance parameter value of the hard disk after performance optimization reaches the minimum threshold. If not, continue to determine the next target optimization parameter from the optimization parameters that have not been adopted until the performance parameter value of the hard disk after performance optimization reaches the minimum threshold.

2. The method according to claim 1, characterized in that The optimization parameters include at least one of the following: Combination of hyperthreading, CPU power mode, CPU cores, fio engines, CPU performance mode, I / O queue depth, and number of concurrent jobs.

3. The method according to claim 1, characterized in that The optimizing the configuration of the target optimization parameter based on the preset configuration optimization method includes: The target optimization parameter is hyperthreading, basic input and output system BIOS configuration information is obtained, and the state of the hyperthreading in the BIOS configuration information is modified to a closed state.

4. The method according to claim 1, characterized in that The optimizing the configuration of the target optimization parameter based on the preset configuration optimization method includes: The target optimization parameter is the CPU power supply mode. BIOS configuration information is obtained, and the CPU power supply mode in the BIOS configuration information is modified from a first CPU power supply mode to a second CPU power supply mode, wherein a power supply voltage of the second CPU power supply mode is higher than a power supply voltage of the first CPU power supply mode.

5. The method according to claim 1, characterized in that The optimizing the configuration of the target optimization parameter based on the preset configuration optimization method includes: The target optimization parameter is the CPU core. The number of exclusive CPU cores corresponding to the hard disk is determined according to the number of concurrent jobs currently used, and the number of CPU cores in the CPU cores is determined as the exclusive CPU cores of the hard disk.

6. The method according to claim 1, characterized in that The optimizing the configuration of the target optimization parameter based on the preset configuration optimization method includes: The target optimization parameter is the fio engine, and the currently used fio engine is updated according to the fio engine that has not been used to optimize the hard disk performance among the candidate fio engines.

7. The method according to claim 1, characterized in that The optimizing the configuration of the target optimization parameter based on the preset configuration optimization method includes: The target optimization parameter is the CPU performance mode, and the CPU performance mode is adjusted to the performance mode.

8. The method according to claim 1, characterized in that The optimizing the configuration of the target optimization parameter based on the preset configuration optimization method includes: The target optimization parameter is a combination of I / O queue depth and concurrent job number, and each candidate I / O queue depth and concurrent job number combination corresponding to the input target QD and the target test mode is determined according to the correspondence between the pre-saved queue depth QD, the test mode and the combination of I / O queue depth and concurrent job number; According to the I / O queue depth and concurrent job number combination that has not been adopted to optimize hard disk performance among the candidate I / O queue depth and concurrent job number combinations, the currently adopted I / O queue depth and concurrent job number combination is updated.

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

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

Citation Information

Patent Citations

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

    CN103268204A

  • Hard disk performance test method and device, electronic equipment and storage medium

    CN117687850A

  • Network performance evaluation method and device, computer equipment and readable storage medium

    CN118227257A

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

    CN118550479A

  • Transfer size monitor, determination, and optimization engine for storage devices

    US20150355861A1