Hard disk read-write method and device, storage medium and electronic equipment

By detecting the impact of fan noise and vibration on hard disk performance, dynamically adjusting the hard disk read and write strategy and fan rotation speed, the data loss problem caused by poor hard disk performance in the server is solved, and the reading and writing efficiency of the hard disk is improved.

CN119200969AActive Publication Date: 2024-12-27INSPUR SUZHOU INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202411216486.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-27
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

The fixed hard disk read and write policy in the server leads to poor hard disk performance, which leads to easy loss of read and write data.

Method used

By obtaining the decibel and Hertz values ​​of the fan when it is operated by the noise sensor and vibration sensor, determine the degree of influence of noise and vibration on hard disk performance, and change the hard disk's read and write strategy when the impact is greater than or equal to the preset value, adjust the Fan rotation speed to optimize hard disk performance.

Benefits of technology

By dynamically adjusting the hard disk read and write strategy and fan rotation speed, the hard disk read and write efficiency is improved, data loss is avoided, and hard disk performance is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200969A_ABST
    Figure CN119200969A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a hard disk read-write method and device, a storage medium and electronic equipment, and relates to the field of computers.The hard disk read-write method comprises the steps that the decibel value, detected by a noise sensor, of noise formed when a fan works is obtained, and the Hertz value, detected by a vibration sensor, of vibration caused when the fan works is obtained, the noise sensor and the vibration sensor are located in a fan frame of the server; determining the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the acquired hertz value to obtain a target influence degree; and under the condition that the target influence degree is greater than or equal to a preset influence degree, changing a read-write strategy of the hard disk according to the target influence degree. By adopting the scheme, the problem that the read-write data is easy to lose when the hard disk performance is poor due to the fact that the hard disk read-write strategy in the server is fixed is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and more specifically, to a hard disk reading and writing method and device, a storage medium, and an electronic device. Background Art

[0002] At present, the server industry is developing at a faster speed. The power of the central processing unit (CPU), graphics processing unit (GPU) and peripheral component interconnect express (PCIE) card is increasing. As the power consumption of the server increases, the heat is also increasing, which directly leads to higher and higher speeds of the server fan. At the same time, the impact on the hard disk drive (HDD) is also increasing, resulting in poor performance of the hard disk.

[0003] In the related art, when the hard disk performance in the server is poor, forcibly performing a write operation on the hard disk may result in the write operation not being completed in time or an error, resulting in data loss or damage, or even system crash.

[0004] In the related art, the hard disk read and write strategy in the server is fixed, which leads to the problem that the read and write data is easily lost when the hard disk performance is poor. No effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a hard disk read and write method and device, a storage medium and an electronic device to at least solve the problem that the hard disk read and write strategy in the server is fixed, resulting in easy loss of read and write data when the hard disk performance is poor.

[0006] According to an embodiment of the present application, a hard disk reading and writing method is provided, comprising: obtaining a decibel value of noise generated when a fan is working and detected by a noise sensor, and obtaining a Hertz value of vibration caused when the fan is working and detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of a server; determining the degree of influence of the noise and the vibration on the performance of a hard disk in the server according to the obtained decibel value and the Hertz value, and obtaining a target influence degree; and changing the reading and writing strategy of the hard disk according to the target influence degree when the target influence degree is greater than or equal to a preset influence degree.

[0007] In an exemplary embodiment, determining the degree of influence of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value to obtain the target influence degree includes: when the decibel value and the Hertz value meet a first preset condition, determining that the target influence degree is equal to infinity, wherein the first preset condition includes: the decibel value is greater than a first preset decibel value or the Hertz value is greater than a first preset Hertz value; the degree of influence of the noise and the vibration on the performance of the hard disk in the server is represented by a numerical value; when the decibel value and the Hertz value meet a second preset condition, determining that the target influence degree is equal to 0, wherein the second preset condition includes: the decibel value is less than a second preset decibel value and the Hertz value is less than When the second preset Hertz value is met; the first preset decibel value is greater than the second preset decibel value, and the first preset Hertz value is greater than the second preset Hertz value; when the decibel value and the Hertz value do not satisfy the first preset condition and the second preset condition, the target impact degree is obtained by the following formula: M=(α*A+β*B) / (θ*C*+λ*D+μ*E); wherein A is the decibel value, α is the first preset weight value corresponding to the decibel value, B is the Hertz value, β is the second preset weight value corresponding to the decibel value, C is the rotation speed of the hard disk, θ is the third preset weight value corresponding to the rotation speed, D is the capacity of the hard disk, λ is the fourth preset weight value corresponding to the capacity, E is the vibration resistance level of the hard disk, and μ is the fifth preset weight value corresponding to the vibration resistance level.

[0008] In an exemplary embodiment, changing the read-write strategy of the hard disk according to the target impact degree includes: determining the difference between the target impact degree and the preset impact degree to obtain a target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the target impact degree and the preset impact degree; when the target difference is greater than or equal to a specified threshold, not performing a write operation on the hard disk; when the target difference is less than the specified threshold, determining the number of write operations allowed to be performed on the hard disk per second according to the following formula: P=X / (Y / Z+1); wherein P is the number of write operations allowed to be performed on the hard disk per second, X is the preset number of write operations allowed to be performed on the hard disk per second before the read-write strategy of the hard disk is changed, Y is the target difference, and Z is the preset impact degree.

[0009] In an exemplary embodiment, the method further includes: when the target impact degree is greater than or equal to a preset impact degree, determining a target rotation speed, wherein the target rotation speed is the minimum rotation speed among all rotation speeds that can meet the heat dissipation requirement of the server; and when the target rotation speed is less than the current rotation speed of the fan, reducing the rotation speed of the fan to the target rotation speed.

[0010] In an exemplary embodiment, after obtaining the decibel value of the noise generated when the fan is working and detected by the noise sensor, and obtaining the Hertz value of the vibration caused by the fan when working and detected by the vibration sensor, the method also includes: determining the current rotation speed of the fan, and determining the reference decibel value corresponding to the current rotation speed according to a first corresponding relationship, wherein the first corresponding relationship is used to indicate the decibel value of the noise generated by different rotation speeds of the fan under normal conditions; when the difference between the obtained decibel value and the reference decibel value is greater than a first preset threshold, determining that the fan has deteriorated; and / or determining the current rotation speed of the fan, and determining the reference Hertz value corresponding to the current rotation speed according to a second corresponding relationship, wherein the second corresponding relationship is used to indicate the Hertz value of the vibration caused by different rotation speeds of the fan under normal conditions; when the difference between the obtained Hertz value and the reference Hertz value is greater than a second preset threshold, determining that the fan has deteriorated.

[0011] In an exemplary embodiment, the method further includes: detecting the current read and write performance of the hard disk when the target impact degree of the noise and the vibration on the performance of the hard disk is less than a preset impact degree; and determining that the hard disk is degraded when the current read and write performance does not meet preset requirements.

[0012] In an exemplary embodiment, the method further includes: when the target impact degree is less than the preset impact degree and the temperature rise of the target component of the server is detected, determining the difference between the target impact degree and the preset impact degree to obtain a target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the preset impact degree and the preset impact degree; when the target difference is greater than or equal to a third preset threshold, increasing the rotation speed of the fan according to a first speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component; and / or when the target difference is less than the third preset threshold, increasing the rotation speed of the fan according to a second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the first speed adjustment amplitude is greater than the second speed adjustment amplitude; or adjusting the rotation speed of the fan according to a third pair of The third speed adjustment amplitude corresponding to the target difference is determined according to a corresponding relationship, and the rotation speed of the fan is increased according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the third corresponding relationship has speed adjustment amplitudes corresponding to different differences, the difference includes the target difference, and the speed adjustment amplitude includes the third speed adjustment amplitude; or when the target impact degree is less than the preset impact degree and the temperature rise of the target component of the server is detected, the fourth speed adjustment amplitude corresponding to the target impact degree is determined according to a fourth corresponding relationship, and the rotation speed of the fan is increased according to the fourth speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the fourth corresponding relationship has speed adjustment amplitudes corresponding to different impact degrees, and the speed adjustment amplitude includes the fourth speed adjustment amplitude.

[0013] According to another embodiment of the present application, a hard disk reading and writing device is provided, including: an acquisition module, used to acquire the decibel value of the noise generated when the fan is working and detected by the noise sensor, and acquire the Hertz value of the vibration caused when the fan is working and detected by the vibration sensor, wherein the noise sensor and the vibration sensor are located in the fan frame of the server; a first determination module, used to determine the degree of influence of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtain a target influence degree; a processing module, used to change the read and write strategy of the hard disk when the target influence degree is greater than or equal to a preset influence degree.

[0014] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0015] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0016] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0017] This application determines the degree of influence of the fan noise and vibration on the hard disk performance in the server by analyzing the decibel value of the noise generated when the fan is working and the Hertz value of the vibration caused. When the influence exceeds a certain value, the hard disk read and write strategy is changed. Since the influence of the fan on the hard disk is determined, the hard disk read and write strategy is changed accordingly when the hard disk performance is poor, thereby improving the hard disk read and write efficiency and solving the problem that the hard disk read and write strategy in the server is fixed, resulting in the easy loss of read and write data when the hard disk performance is poor. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0019] Figure 1 It is a hardware structure block diagram of a server device of a hard disk reading and writing method according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a hard disk reading and writing method according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a device structure of a hard disk according to an embodiment of the present application;

[0022] Figure 4 is an optional flowchart of hard disk reading and writing according to an embodiment of the present application;

[0023] Figure 5 is a schematic diagram of an optional server hard disk read-write device structure according to an embodiment of the present application;

[0024] Figure 6 is a structural block diagram of a hard disk read-write device according to an embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0028] The hard disk read and write method embodiment provided in the embodiment of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a hard disk reading and writing method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 The server device includes a processor 102 (only one is shown) (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. A person skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0029] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the hard disk reading and writing method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0030] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0031] In order to solve the above problems, this embodiment provides a hard disk reading and writing method, such as Figure 2 As shown, the process includes the following steps S202-S206:

[0032] Step S202: obtaining a decibel value of noise generated by the fan when it is working and detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is working and detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server;

[0033] Optionally, refer to Figure 1 The noise sensor and vibration sensor located on the server fan frame collect the first decibel value of the noise generated when the fan is working and the first hertz value of the vibration caused, and communicate with the debugging system in real time through the interface on the mainboard, so as to send the collected data (including but not limited to the first decibel value and the first hertz value) to the debugging system in time to ensure the timeliness and validity of the data.

[0034] Optionally, the debugging system will perform data filtering on the received first decibel value and first hertz value, filter out abnormal values, and / or exclude invalid values ​​that are not within a reasonable range, so as to obtain the decibel value of the noise actually generated when the fan is working and the hertz value of the vibration caused, thereby ensuring the authenticity and validity of the data.

[0035] Step S204: determining the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtaining a target influence degree;

[0036] Step S206: when the target impact degree is greater than or equal to a preset impact degree, changing the read / write strategy of the hard disk according to the target impact degree.

[0037] In an exemplary embodiment, the method further includes the following steps: when the target impact degree is greater than or equal to the preset impact degree, sending an alarm message to the server, wherein the alarm message is used to indicate that the target impact degree is greater than or equal to the preset impact degree.

[0038] It should be noted that the hard disk read and write strategy is one of the decisive factors affecting hard disk performance. Different read and write strategies will affect the performance of the hard disk, including read and write speed, response time, etc. Therefore, by flexibly and effectively changing the hard disk read and write strategy, the performance of the hard disk can be greatly optimized.

[0039] In the above steps, by analyzing the decibel value of the noise generated when the fan is working and the Hertz value of the vibration caused, the influence of the noise and vibration of the fan on the hard disk performance in the server is determined, and when the influence exceeds a certain value, the hard disk read and write strategy is changed. Since the influence of the fan on the hard disk is determined, the hard disk read and write strategy is changed accordingly when the hard disk performance is poor, the hard disk read and write efficiency is improved, and the problem that the hard disk read and write strategy in the server is fixed, resulting in the easy loss of read and write data when the hard disk performance is poor, is solved.

[0040] In an exemplary embodiment, determining the influence of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value can be implemented by the following steps S11-S12:

[0041] Step S11: determining a performance reference file corresponding to the hard disk according to the hard disk information of the hard disk, wherein the degree of influence of different decibel values ​​and hertz values ​​in the performance reference file on the performance of the hard disk;

[0042] Optionally, the performance reference file is stored in a debugging program, and the debugging program determines the performance reference file corresponding to the hard disk according to the model of the hard disk, thereby determining the noise resistance and vibration resistance of the hard disk, and further determining the degree of influence of different decibel values ​​and Hertz values ​​on the performance of the hard disk.

[0043] Step S12: determining the influence of the noise and the vibration on the performance of the hard disk in the server from the performance reference file according to the acquired decibel value and the Hertz value.

[0044] Optionally, when the decibel value is 80 decibels and the hertz value is 100 hertz, it is determined that the noise and the vibration have a greater impact on the performance of the hard disk in the server, and the target impact degree is determined to be greater.

[0045] In an exemplary embodiment, determining the influence of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value can also be implemented by the following steps S21-S22:

[0046] Step S21: determining the impact score according to the acquired decibel value and the Hertz value by using a preset calculation rule;

[0047] Optionally, the preset calculation rule is to numerically add the acquired decibel value and hertz value. For example, when the decibel value is 80 decibels and the hertz value is 100 hertz, the impact score is 180 points (80+100=180).

[0048] Optionally, the preset calculation rule is to numerically add a certain proportion of decibel values ​​and a certain proportion of Hertz values, wherein the proportion of the certain proportion of decibel values ​​is determined according to the preset proportion rule, and the certain proportion of Hertz values ​​is determined according to the preset proportion rule. For example, the preset proportion rule is: the decibel value proportion is 60%, and the Hertz value proportion is 40%. Then, when the decibel value is 80 decibels and the Hertz value is 100 Hz, the impact score is 88 points (80*60%+100*40%=88).

[0049] It should be noted that the preset proportion rule is determined according to the type of hard disk. For example, when the vibration caused by the fan corresponding to the hard disk is working, the impact on the hard disk is greater. In the preset proportion rule, the proportion of the Hertz value is greater than the proportion of the decibel value.

[0050] Step S22: determining the degree of influence of the noise and the vibration on the performance of the hard disk in the server according to the influence score and the performance comparison table and the preset calculation rule.

[0051] Optionally, the performance comparison table is stored in a debugging program, and the debugging program determines the performance comparison table corresponding to the hard disk according to the model of the hard disk, thereby determining the degree of influence of the noise and the vibration on the performance of the hard disk in the server according to the influence score.

[0052] Optionally, when the preset calculation rule is to numerically add the acquired decibel value and Hertz value, and the impact score is 180 points, it is determined that the noise and the vibration have a greater impact on the performance of the hard disk in the server, then the target impact degree is determined to be greater.

[0053] In an exemplary embodiment, the above-mentioned determining the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value to obtain the target influence degree can also be implemented by the following steps S31-S33:

[0054] Step S31: when the decibel value and the hertz value meet a first preset condition, determining that the target impact degree is equal to infinity, wherein the first preset condition includes: the decibel value is greater than a first preset decibel value or the hertz value is greater than a first preset hertz value; the impact degree of the noise and the vibration on the performance of the hard disk in the server is represented by a numerical value;

[0055] Step S32: When the decibel value and the hertz value meet a second preset condition, determining that the target impact degree is equal to 0, wherein the second preset condition includes: when the decibel value is less than a second preset decibel value, and the hertz value is less than a second preset hertz value; when the first preset decibel value is greater than the second preset decibel value, and the first preset hertz value is greater than the second preset hertz value;

[0056] Step S33: When the decibel value and the Hertz value do not satisfy the first preset condition and the second preset condition, the target impact degree is obtained by the following formula:

[0057] M=(α*A+β*B) / (θ*C*+λ*D+μ*E);

[0058] Among them, A is the decibel value, α is the first preset weight value corresponding to the decibel value, B is the Hertz value, β is the second preset weight value corresponding to the decibel value, C is the rotation speed of the hard disk, θ is the third preset weight value corresponding to the rotation speed, D is the capacity of the hard disk, λ is the fourth preset weight value corresponding to the capacity, E is the vibration resistance level of the hard disk, and μ is the fifth preset weight value corresponding to the vibration resistance level.

[0059] It should be noted that the above formula can be used to calculate the target impact degree only when the decibel value is between the first preset decibel value and the second preset decibel value, and the Hertz value is between the first preset Hertz value and the second preset Hertz value.

[0060] It should be noted that, through the above steps, the impact degree on the hard disk can be determined according to the actual working condition of the fan, so that the impact degree can be quantified and visualized, and the impact degree of the fan on the hard disk can be judged more accurately.

[0061] In an exemplary embodiment, changing the read / write strategy of the hard disk according to the target impact degree can be achieved by following the steps S41-S43:

[0062] Step S41: determining a difference between the target impact degree and the preset impact degree to obtain a target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the target impact degree and the preset impact degree;

[0063] Step S42: when the target difference is greater than or equal to a specified threshold, not performing a write operation on the hard disk;

[0064] Step S43: When the target difference is less than the specified threshold, the number of write operations allowed to be performed by the hard disk per second is determined according to the following formula:

[0065] P = X / (Y / Z+1);

[0066] Among them, P is the number of write operations allowed to be performed by the hard disk per second, X is the preset number of write operations allowed to be performed by the hard disk per second before the read and write strategy of the hard disk is not changed, Y is the target difference, and Z is the preset impact degree.

[0067] Optionally, the system has N fans and M hard disks, and a fans among the N fans correspond to b hard disks among the M hard disks, wherein the M hard disks are stored in different areas of the system.

[0068] Optionally, when the target impact degree of the fans corresponding to the hard disks in a partial area is large (the target difference is greater than or equal to a specified threshold), that is, it extremely affects the performance of the hard disks in the partial area, write operations are not performed on the hard disks in the partial area, and only read operations are performed on the hard disks in the partial area. At the same time, write operations can still be performed on the hard disks in other areas, thereby reducing the impact of the fan on the hard disks.

[0069] Optionally, when the target difference is smaller than the specified threshold, it indicates that the impact is not very large, and data loss can be avoided by reducing the number of write operations allowed per second on the hard disk.

[0070] It should be noted that the above method can dynamically change the hard disk read and write strategy according to the target impact, thereby ensuring both read and write efficiency and data security. In addition, the read and write strategy of only some of the multiple hard disks can be changed, thereby ensuring the maximization of the overall efficiency of the hard disk and the optimization of performance.

[0071] It should be noted that the write operation to the hard disk is performed according to the determined operation frequency, thereby ensuring that the write operation efficiency to the hard disk is maximized.

[0072] In an exemplary embodiment, the method further includes the following steps S51 to S52:

[0073] Step S51: when the target influence degree is greater than or equal to the preset influence degree, determining a target rotation speed, wherein the target rotation speed is the minimum rotation speed among all rotation speeds that can meet the heat dissipation requirement of the server;

[0074] Step S52: When the target rotation speed is lower than the current rotation speed of the fan, the rotation speed of the fan is reduced to the target rotation speed.

[0075] It should be noted that, through the above steps, the operation of the server cooling system is maintained, ensuring the maximum cooling efficiency of the server, and the impact of the fan on the hard disk performance can be reduced, so that the impact of the fan on the hard disk performance is kept within a reasonable range.

[0076] In an exemplary embodiment, after obtaining the decibel value of the noise generated by the fan when it is working and detected by the noise sensor, and obtaining the Hertz value of the vibration caused by the fan when it is working and detected by the vibration sensor, the method further includes the following steps S61 and / or S62:

[0077] Step S61: determining the current rotation speed of the fan, and determining a reference decibel value corresponding to the current rotation speed according to a first corresponding relationship, wherein the first corresponding relationship is used to indicate the decibel values ​​of noise generated by different rotation speeds of the fan under normal conditions; when the difference between the acquired decibel value and the reference decibel value is greater than a first preset threshold, determining that the fan is degraded;

[0078] Step S62: Determine the current rotation speed of the fan, and determine a reference Hertz value corresponding to the current rotation speed based on a second corresponding relationship, wherein the second corresponding relationship is used to indicate the Hertz value of the vibration caused by different rotation speeds of the fan under normal conditions; when the difference between the acquired Hertz value and the reference Hertz value is greater than a second preset threshold, it is determined that the fan has deteriorated.

[0079] It should be noted that through the above steps, the device condition of the fan can be accurately judged. When the fan deteriorates, it may inevitably have a greater impact on the hard disk. The impact of the fan on the hard disk performance cannot be reduced by changing the hard disk read and write strategy and / or reducing the fan speed. Therefore, the corresponding fan needs to be replaced in time to ensure that the impact of the fan on the hard disk performance is minimized.

[0080] In an exemplary embodiment, the method further includes the following steps S71-S72:

[0081] Step S7 1: When the target impact degree of the noise and the vibration on the performance of the hard disk is less than a preset impact degree, detecting the current read and write performance of the hard disk;

[0082] Step S72: when the current read / write performance does not meet the preset requirements, it is determined that the hard disk is degraded.

[0083] It should be noted that when the target impact of the noise and vibration on the performance of the hard disk is less than the preset impact, if the read and write performance of the hard disk still cannot meet the preset requirements, it means that the hard disk itself has deteriorated and needs to be replaced in time to ensure maximum system operating efficiency.

[0084] In an exemplary embodiment, the method further includes the following step S81 or step S82:

[0085] Step S8 1: when the target impact degree is less than the preset impact degree and the temperature rise of the target component of the server is detected, determine the difference between the target impact degree and the preset impact degree to obtain the target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the preset impact degree and the preset impact degree; when the target difference is greater than or equal to a third preset threshold, increase the rotation speed of the fan according to the first speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component; and / or when the target difference is less than the third preset threshold, increase the rotation speed of the fan according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the first speed adjustment amplitude is greater than the second speed adjustment amplitude; or determine the third speed adjustment amplitude corresponding to the target difference according to a third corresponding relationship, and increase the rotation speed of the fan according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the third corresponding relationship has speed adjustment amplitudes corresponding to different differences, the difference includes the target difference, and the speed adjustment amplitude includes the third speed adjustment amplitude;

[0086] Step S82: When the target impact degree is less than the preset impact degree and the temperature increase of the target component of the server is detected, the fourth speed adjustment range corresponding to the target impact degree is determined according to the fourth corresponding relationship, and the rotation speed of the fan is increased according to the fourth speed adjustment range until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the fourth corresponding relationship has speed adjustment ranges corresponding to different impact degrees, and the speed adjustment ranges include the fourth speed adjustment range.

[0087] It should be noted that the fan speed can be flexibly adjusted through the above steps to maximize the heat dissipation efficiency of the target component without affecting the hard disk performance, so that the operating performance of the system is kept within a reasonable range.

[0088] Obviously, the above-described embodiments are only embodiments of a part of the present invention, rather than all embodiments. In order to better understand the above method, the above process is described below in conjunction with embodiments, but it is not intended to limit the technical solutions of the embodiments of the present invention, specifically:

[0089] like Figure 3The hardware structure shown in the figure obtains vibration and noise data in real time by adding vibration and noise sensors to the fan frame. At the same time, the fan speed is adjusted in real time based on the hard disk model and the vibration and noise resistance performance to avoid affecting the performance of the hard disk. If the collected vibration and noise values ​​exceed the set threshold, the BMC will issue an alarm message.

[0090] The specific control strategies are as follows:

[0091] 1. Dynamic balance between fan vibration and noise and hard disk reading and writing;

[0092] For hard disks with good vibration and noise resistance, fan speed adjustment can prioritize heat dissipation. For hard disks with poor vibration and noise resistance, the impact of noise and vibration on the hard disk needs to be considered during system debugging, and different strategies should be used to adjust the fan speed to minimize the impact on hard disk performance.

[0093] refer to Figure 4 When the speed control system detects that the temperature of key components of the system has risen and the fan speed needs to be increased, the fan noise and vibration information is first collected and compared with the hard disk's anti-vibration and anti-noise thresholds. If the difference is large, the speed control system's control range can be appropriately increased; if the difference with the threshold is small, the speed control system's control range should be as small as possible. At the same time, the system fans can be individually adjusted to increase the fan speed corresponding to the key temperature-raising components, while maintaining the speed of other fans unchanged, to minimize the impact on hard disk performance.

[0094] 2. By monitoring the fan speed and hard disk read and write, the hard disk read and write strategy can be changed in real time;

[0095] refer to Figure 4 When the temperature of a key component rises and the corresponding fan speed needs to be increased for heat dissipation, the hard disks in the fan area are read as much as possible, and the hard disks in other areas are written. After the temperature of the key component drops, the original read and write strategy is restored.

[0096] When the fan noise and vibration are close to the hard disk's vibration and noise resistance threshold, the overall fan speed range is limited. When the fan speed corresponding to the key heating components is increased, the hard disk read and write strategy can be adjusted. Through a large amount of test data, it is found that the hard disk is greatly affected by vibration and noise when writing data, while the hard disk is less affected by vibration and noise when reading data. Read the hard disk in the fan area, so that the hard disk is less affected by fan vibration and noise. Write the hard disk in other areas, because the fan speed in other areas is not increased, so the hard disk is not affected. After the temperature of the key components drops, restore the previous read and write strategy to reduce the impact of fan vibration and noise on the hard disk at the hard disk read and write level.

[0097] 3. Add an alarm mechanism;

[0098] When the hard disk is within the vibration and noise resistance threshold, the fan speed cannot achieve effective heat dissipation. At this time, the BMC should send an alarm message to remind maintenance personnel to perform maintenance in time.

[0099] An optional most basic embodiment of the present invention is as follows:

[0100] Vibration and noise sensors are installed on the fan module. The sensors can communicate with the debugging system in real time through the interface on the motherboard, and pass the collected vibration and noise values ​​to the debugging system. The debugging system identifies the hard disk model and determines the hard disk's anti-vibration and anti-noise performance. If the monitoring vibration and noise may affect the hard disk's performance, the debugging system can reduce the speed of all fans or reduce (increase) the speed of certain fans to control the vibration and noise values ​​to avoid affecting the hard disk performance. In addition, the debugging system can also adjust the hard disk read and write strategy. When the fan speed corresponding to the hard disk in some areas increases, which may affect the hard disk's performance, the hard disk in this area is read and the hard disk in other areas is written, thereby reducing the impact of the fan on the hard disk at the hard disk level. After the corresponding fan speed is reduced, the original read and write strategy is restored.

[0101] Take a standard 2U server as an example. Figure 5 As shown in the figure, there are 24 hard disks on the front window of the server, which can be divided into 3*8 disks according to the left, middle and right. Each 8 hard disks are mainly affected by the noise and vibration of the 2 fans in front. When the 2 fans on the left need to increase the speed to dissipate heat for the server, the read and write strategies of the 8 hard disks on the left are changed to make the 8 hard disks perform read operations and the other hard disks perform write operations, thereby reducing the impact of the increased fan speed on the hard disk performance. When the server temperature drops, the fan speed on the left decreases, and the read and write strategy of the hard disk on the left can be restored. When the speed of the fans in the middle and right increases, the same strategy can be adopted to reduce the impact of the increased fan speed on the hard disk performance. Thus, a balance between heat dissipation and performance is achieved.

[0102] The debugging system will monitor the vibration and noise values ​​of the fan. If the vibration and noise values ​​of the fan exceed the values ​​that should be achieved at the current speed, it may be caused by fan aging. At this time, the fan speed can be appropriately increased without affecting the performance of the hard disk to meet the heat dissipation of the server. At the same time, an alarm message is output to remind maintenance personnel to replace the fan.

[0103] The debugging system will also monitor the hard disk read and write performance. If the hard disk read and write performance decreases when the fan speed is low, it may be due to hard disk aging or other problems. In this case, the fan speed can be reduced or the hard disk read and write strategy can be changed if the heat dissipation allows, so as to avoid the hard disk performance being affected as much as possible. At the same time, an alarm message is output to remind maintenance personnel to repair the hard disk.

[0104] If the vibration and noise values ​​exceed the set thresholds or exceed the vibration and noise values ​​that should be expected at the fan speed or if effective heat dissipation is no longer possible within the hard disk's anti-vibration and anti-noise thresholds, the speed control system will output an alarm message to remind maintenance personnel to perform maintenance.

[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0106] In this embodiment, a hard disk read-write device is also provided for implementing the above embodiments and preferred implementations, which have been described and will not be repeated. As used below, the term "module" can be software and / or software that implements a predetermined function.

[0107] Although the modules described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and conceivable.

[0108] Figure 6 : is a structural block diagram of a hard disk read-write device according to an embodiment of the present application, the device comprising:

[0109] An acquisition module 602 is used to acquire a decibel value of noise generated by the fan when the fan is working and detected by the noise sensor, and acquire a Hertz value of vibration caused by the fan when the fan is working and detected by the vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server;

[0110] A first determination module 604 is used to determine the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtain a target influence degree;

[0111] The processing module 606 is used to change the read and write strategy of the hard disk according to the target impact degree when the target impact degree is greater than or equal to a preset impact degree.

[0112] The above device determines the influence of the fan noise and vibration on the hard disk performance in the server by analyzing the decibel value of the noise generated when the fan is working and the Hertz value of the vibration caused. When the influence exceeds a certain value, the hard disk read and write strategy is changed. Since the influence of the fan on the hard disk is determined, the hard disk read and write strategy is changed accordingly when the hard disk performance is poor, thereby improving the hard disk read and write efficiency and solving the problem that the hard disk read and write strategy in the server is fixed, resulting in the easy loss of read and write data when the hard disk performance is poor.

[0113] In an exemplary embodiment, the first determination module 604 is further used to determine that the target impact degree is equal to infinity when the decibel value and the hertz value meet a first preset condition, wherein the first preset condition includes that the decibel value is greater than the first preset decibel value or the hertz value is greater than the first preset hertz value; the degree of influence of the noise and the vibration on the performance of the hard disk in the server is represented by a numerical value; when the decibel value and the hertz value meet a second preset condition, determine that the target impact degree is equal to 0, wherein the second preset condition includes that the decibel value is less than a second preset decibel value, and the hertz value is less than a second preset hertz value; the first preset decibel value is greater than the The second preset decibel value, the first preset Hertz value is greater than the second preset Hertz value; when the decibel value and the Hertz value do not satisfy the first preset condition and the second preset condition, the target impact degree is obtained by the following formula: M=(α*A+β*B) / (θ*C*+λ*D+μ*E); wherein A is the decibel value, α is the first preset weight value corresponding to the decibel value, B is the Hertz value, β is the second preset weight value corresponding to the decibel value, C is the rotation speed of the hard disk, θ is the third preset weight value corresponding to the rotation speed, D is the capacity of the hard disk, λ is the fourth preset weight value corresponding to the capacity, E is the vibration resistance level of the hard disk, and μ is the fifth preset weight value corresponding to the vibration resistance level.

[0114] In an exemplary embodiment, the processing module 606 is further used to determine the difference between the target impact degree and the preset impact degree to obtain a target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the target impact degree and the preset impact degree; when the target difference is greater than or equal to a specified threshold, no write operation is performed on the hard disk; when the target difference is less than the specified threshold, the number of write operations allowed per second on the hard disk is determined according to the following formula: P=X / (Y / Z+1); wherein P is the number of write operations allowed per second on the hard disk, X is the preset number of write operations allowed per second on the hard disk before the read and write strategy of the hard disk is changed, Y is the target difference, and Z is the preset impact degree.

[0115] In an exemplary embodiment, the processing module 606 is also used to determine a target rotation speed when the target impact degree is greater than or equal to a preset impact degree, wherein the target rotation speed is the minimum rotation speed among all rotation speeds that can meet the heat dissipation requirement of the server; and when the target rotation speed is less than the current rotation speed of the fan, the rotation speed of the fan is reduced to the target rotation speed.

[0116] In an exemplary embodiment, the above-mentioned device also includes: a second determination module, which is used to determine the current rotation speed of the fan after obtaining the decibel value of the noise generated when the fan is working and detected by the noise sensor, and obtaining the Hertz value of the vibration caused by the fan when working and detected by the vibration sensor, and determine the reference decibel value corresponding to the current rotation speed according to a first corresponding relationship, wherein the first corresponding relationship is used to indicate the decibel value of the noise generated by different rotation speeds of the fan in a normal state; when the difference between the acquired decibel value and the reference decibel value is greater than a first preset threshold, determine that the fan has deteriorated; and / or determine the current rotation speed of the fan, and determine the reference Hertz value corresponding to the current rotation speed according to a second corresponding relationship, wherein the second corresponding relationship is used to indicate the Hertz value of the vibration caused by different rotation speeds of the fan in a normal state; when the difference between the acquired Hertz value and the reference Hertz value is greater than a second preset threshold, determine that the fan has deteriorated.

[0117] In an exemplary embodiment, the above-mentioned device also includes: a detection module, which is used to detect the current read and write performance of the hard disk when the target impact degree of the noise and the vibration on the performance of the hard disk is less than a preset impact degree; when the current read and write performance does not meet the preset requirements, determine that the hard disk has deteriorated.

[0118] In an exemplary embodiment, the above-mentioned device also includes: a third determination module, which is used to determine the difference between the target impact degree and the preset impact degree when the target impact degree is less than the preset impact degree and the temperature rise of the target component of the server is detected, and obtain the target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the preset impact degree and the preset impact degree; a processing module, which is also used to increase the rotation speed of the fan according to the first speed adjustment amplitude when the target difference is greater than or equal to the third preset threshold value until the rotation speed of the fan meets the heat dissipation requirement of the target component; and / or when the target difference is less than the third preset threshold value, increase the rotation speed of the fan according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the first speed adjustment amplitude is greater than the second speed adjustment amplitude ; or determine a third speed adjustment amplitude corresponding to the target difference according to a third corresponding relationship, and increase the rotation speed of the fan according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the third corresponding relationship has speed adjustment amplitudes corresponding to different differences, the difference includes the target difference, and the speed adjustment amplitude includes the third speed adjustment amplitude; or when the target impact degree is less than the preset impact degree and the temperature rise of the target component of the server is detected, determine a fourth speed adjustment amplitude corresponding to the target impact degree according to a fourth corresponding relationship, and increase the rotation speed of the fan according to the fourth speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the fourth corresponding relationship has speed adjustment amplitudes corresponding to different impact degrees, and the speed adjustment amplitude includes the fourth speed adjustment amplitude.

[0119] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0120] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0121] Optionally, in this embodiment, the computer program may be configured to perform the following steps by means of the computer program:

[0122] S1, obtaining a decibel value of noise generated by a fan when it is working and detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is working and detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server;

[0123] S2, determining the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtaining a target influence degree;

[0124] S3, when the target impact degree is greater than or equal to a preset impact degree, changing the read and write strategy of the hard disk according to the target impact degree.

[0125] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0126] The embodiment of the present application also provides an electronic device, such as Figure 7 As shown, the electronic device includes a memory 702 and a processor 704. The memory 702 stores a computer program, and the processor 704 is configured to execute the steps in any of the above method embodiments through the computer program.

[0127] Optionally, in this embodiment, the processor 704 may be configured to perform the following steps through a computer program: S1, obtaining a decibel value of noise generated when the fan is working and detected by a noise sensor, and obtaining a Hertz value of vibration caused when the fan is working and detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server;

[0128] S2, determining the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtaining a target influence degree;

[0129] S3, when the target impact degree is greater than or equal to a preset impact degree, changing the read and write strategy of the hard disk according to the target impact degree.

[0130] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0131] Alternatively, a person skilled in the art may understand that: Figure 7 The structure shown is for illustration only. Figure 7The structure of the electronic device is not limited. For example, the electronic device may also include Figure 7 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 7 Different configurations are shown.

[0132] Among them, the memory 702 can be used to store software programs and modules, such as the program instructions / modules corresponding to the hard disk reading and writing method and the hard disk reading and writing device in the embodiment of the present application. The processor 704 executes various functional applications and data processing by running the software programs and modules stored in the memory 702, that is, realizing the above-mentioned hard disk reading and writing method. The memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 702 may further include a memory remotely arranged relative to the processor 704, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 702 can be specifically, but not limited to, used to store information such as system configuration files. As an example, such as Figure 7 As shown, the memory 702 may include but is not limited to the acquisition module 602, the first determination module 604, and the processing module 606 in the hard disk read / write device. In addition, it may also include but is not limited to other module units in the hard disk read / write device, which will not be repeated in this example.

[0133] Optionally, the transmission device 706 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 706 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0134] In addition, the electronic device further includes: a display 707; and a connection bus 710, which is used to connect various module components in the electronic device.

[0135] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0136] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0137] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0138] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0139] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A hard disk reading and writing method, characterized in that: include: Obtaining a decibel value of noise generated by the fan when it is working, detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is working, detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server; Determine the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtain a target influence degree; When the target impact degree is greater than or equal to the preset impact degree, the read and write strategy of the hard disk is changed according to the target impact degree.

2. The method according to claim 1, characterized in that The step of determining the influence of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value to obtain a target influence degree includes: In the case where the decibel value and the hertz value meet a first preset condition, determining that the target impact degree is equal to infinity, wherein the first preset condition includes: the decibel value is greater than a first preset decibel value or the hertz value is greater than a first preset hertz value; the impact degree of the noise and the vibration on the performance of the hard disk in the server is represented by a numerical value; When the decibel value and the hertz value meet a second preset condition, determining that the target impact degree is equal to 0, wherein the second preset condition includes: when the decibel value is less than a second preset decibel value, and the hertz value is less than a second preset hertz value; when the first preset decibel value is greater than the second preset decibel value, and the first preset hertz value is greater than the second preset hertz value; When the decibel value and the Hertz value do not satisfy the first preset condition and the second preset condition, the target impact degree is obtained by the following formula: M=(α*A+β*B) / (θ*C*+λ*D+μ*E); Among them, A is the decibel value, α is the first preset weight value corresponding to the decibel value, B is the Hertz value, β is the second preset weight value corresponding to the decibel value, C is the rotation speed of the hard disk, θ is the third preset weight value corresponding to the rotation speed, D is the capacity of the hard disk, λ is the fourth preset weight value corresponding to the capacity, E is the vibration resistance level of the hard disk, and μ is the fifth preset weight value corresponding to the vibration resistance level.

3. The method according to claim 1, characterized in that The changing the read / write strategy of the hard disk according to the target impact degree includes: Determine a difference between the target impact degree and the preset impact degree to obtain a target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the target impact degree and the preset impact degree; When the target difference is greater than or equal to a specified threshold, not performing a write operation on the hard disk; When the target difference is less than the specified threshold, the number of write operations allowed to be performed by the hard disk per second is determined according to the following formula: P = X / (Y / Z+1); Among them, P is the number of write operations allowed to be performed by the hard disk per second, X is the preset number of write operations allowed to be performed by the hard disk per second before the read and write strategy of the hard disk is not changed, Y is the target difference, and Z is the preset impact degree.

4. The method according to claim 1, characterized in that: The method further comprises: In the case where the target impact degree is greater than or equal to the preset impact degree, determining a target rotation speed, wherein the target rotation speed is a minimum rotation speed among all rotation speeds that can meet the heat dissipation requirement of the server; When the target rotation speed is lower than the current rotation speed of the fan, the rotation speed of the fan is reduced to the target rotation speed.

5. The method according to claim 1, characterized in that After obtaining the decibel value of the noise generated by the fan when it is working and detected by the noise sensor, and obtaining the Hertz value of the vibration caused by the fan when it is working and detected by the vibration sensor, the method further includes: Determine the current rotation speed of the fan, and determine a reference decibel value corresponding to the current rotation speed according to a first corresponding relationship, wherein the first corresponding relationship is used to indicate the decibel values ​​of noise generated by different rotation speeds of the fan under normal conditions; when the difference between the obtained decibel value and the reference decibel value is greater than a first preset threshold, determine that the fan has deteriorated; and / or Determine the current rotation speed of the fan, and determine a reference Hertz value corresponding to the current rotation speed based on a second corresponding relationship, wherein the second corresponding relationship is used to indicate the Hertz value of the vibration caused by different rotation speeds of the fan under normal conditions; when the difference between the acquired Hertz value and the reference Hertz value is greater than a second preset threshold, determine that the fan has deteriorated.

6. The method according to claim 1, characterized in that The method further comprises: In a case where the target impact degree of the noise and the vibration on the performance of the hard disk is less than a preset impact degree, detecting the current read and write performance of the hard disk; When the current read / write performance does not meet the preset requirement, it is determined that the hard disk is degraded.

7. The method according to claim 1, characterized in that The method further comprises: When the target impact degree is less than the preset impact degree and the temperature rise of the target component of the server is detected, the difference between the target impact degree and the preset impact degree is determined to obtain a target difference, wherein the impact degree is represented by a numerical value, and the impact degree includes the preset impact degree and the preset impact degree; when the target difference is greater than or equal to a third preset threshold, the rotation speed of the fan is increased according to the first speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component; and / or when the target difference is less than the third preset threshold, the rotation speed of the fan is increased according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the first speed adjustment amplitude is greater than the second speed adjustment amplitude; or a third speed adjustment amplitude corresponding to the target difference is determined according to a third corresponding relationship, and the rotation speed of the fan is increased according to the second speed adjustment amplitude until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the third corresponding relationship has speed adjustment amplitudes corresponding to different differences, the difference includes the target difference, and the speed adjustment amplitude includes the third speed adjustment amplitude; or When the target impact degree is less than the preset impact degree and the temperature of the target component of the server is detected to have increased, a fourth speed adjustment range corresponding to the target impact degree is determined according to a fourth corresponding relationship, and the rotation speed of the fan is increased according to the fourth speed adjustment range until the rotation speed of the fan meets the heat dissipation requirement of the target component, wherein the fourth corresponding relationship has speed adjustment ranges corresponding to different impact degrees, and the speed adjustment ranges include the fourth speed adjustment range.

8. A hard disk read-write device, characterized in that: include: An acquisition module, used to acquire the decibel value of the noise generated by the fan when it is working and detected by the noise sensor, and acquire the Hertz value of the vibration caused by the fan when it is working and detected by the vibration sensor, wherein the noise sensor and the vibration sensor are located in the fan frame of the server; A first determination module is used to determine the influence degree of the noise and the vibration on the performance of the hard disk in the server according to the acquired decibel value and the Hertz value, and obtain a target influence degree; The processing module is used to change the read and write strategy of the hard disk according to the target impact degree when the target impact degree is greater than or equal to a preset impact degree.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Hard disk fault diagnosis method and system, terminal and storage medium

    CN114550800A

  • Hard disk early warning method and device and storage medium

    CN115831210A

  • Detection of unexpected server operation through physical attribute monitoring

    US20130269030A1

  • Methods and systems for controlling thermal performance and vibration performance of hard disk drives

    US20230080462A1

  • Detection of feedbback control instability in computing device thermal control

    US20230135691A1

Cited By

  • Server test method and device based on hard disk, medium and product

    CN120086082A