Hard disk reading and writing method and device, storage medium and electronic equipment

By analyzing the impact of fan noise and vibration on the hard drive and dynamically adjusting the hard drive read and write strategy, the problem of data loss caused by poor hard drive performance is solved, and the hard drive read and write efficiency and data security are improved.

CN119200969BActive Publication Date: 2025-09-23INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When the hard disk performance in the server is poor, read and write data is easily lost, and there is a lack of effective solutions in the existing technology.

Method used

By obtaining the decibel and hertz values ​​of the fan detected by the noise sensor and vibration sensor when the fan is working, the impact of the fan on the hard disk is determined, and the hard disk read and write strategy is changed when the impact exceeds the preset value.

Benefits of technology

It improves the read and write efficiency of the hard disk, avoids data loss, and optimizes the performance of the hard disk.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200969B_ABST
    Figure CN119200969B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a hard disk reading and writing method and device, storage medium and electronic equipment, which relates to the field of computers. The hard disk reading and writing method includes: 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 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; determining the degree of influence of the noise and the vibration on the performance of the hard disk in the server according to the obtained decibel value and the Hertz value, and obtaining the target influence degree; when the target influence degree is greater than or equal to the preset influence degree, changing the read and write strategy of the hard disk according to the target influence degree. The above solution solves 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.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, the server industry is developing at an accelerated pace. The power of central processing units (CPUs), graphics processing units (GPUs), and peripheral component interconnect express (PCIE) cards is increasing. As the power consumption of servers increases, the heat generated is also increasing, which directly leads to higher and higher speeds of server fans. At the same time, the impact on hard disk drives (HDDs) is also increasing, resulting in poor performance of the hard disks.

[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 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 one 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 operating, as detected by a noise sensor, and obtaining a Hertz value of vibration caused when the fan is operating, as 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 based on 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 based on 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 vibration on the performance of the hard disk in the server based on the acquired decibel value and the hertz value to obtain a target influence degree includes: determining that the target influence degree is equal to infinity when the decibel value and the hertz value meet a first preset condition, 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 vibration on the performance of the hard disk in the server is represented by a numerical value; determining that the target influence degree is equal to 0 when the decibel value and the hertz value meet a second preset condition, wherein the second preset condition includes: the decibel value is less than a second preset decibel value and the hertz value is less than In the case of the second preset Hertz value; 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 meet 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 and write strategy of the hard disk according to the target impact level includes: determining the difference between the target impact level and the preset impact level to obtain a target difference, wherein the impact level is represented by a numerical value, and the impact level includes the target impact level and the preset impact level; 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 per second on the hard disk 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 changing the read and write strategy of the hard disk, Y is the target difference, and Z is the preset impact level.

[0009] In an exemplary embodiment, the method further includes: determining 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 requirements of the server; and reducing the rotation speed of the fan to the target rotation speed when the target rotation speed is less than the current rotation speed of the fan.

[0010] 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: determining the current rotation speed of the fan, and determining a reference decibel value corresponding to the current rotation speed based on 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 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 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 of the noise and the vibration on the performance of the hard disk is less than a preset impact; and determining that the hard disk has deteriorated 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 the 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 the 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 obtain the decibel value of the noise generated when the fan is working, which is detected by a noise sensor, and obtain the Hertz value of the vibration caused when the fan is working, which is detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a 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 based on 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. The computer program is configured to execute the steps of any one 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 analyzes the decibel level of fan noise and the Hertz level of vibration caused by fan operation to determine the extent to which fan noise and vibration affect the performance of the server's hard disk. When the impact exceeds a certain level, the hard disk's read and write strategy is altered. By determining the extent of the fan's impact on the hard disk, the hard disk's read and write strategy can be modified accordingly when hard disk performance is poor, improving hard disk read and write efficiency and resolving the issue of fixed hard disk read and write strategies in servers, which can lead to data loss when 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 This is a hardware structure block diagram of a server device according to 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 This is a flowchart of an optional hard disk read and write according to an embodiment of the present application;

[0023] Figure 5 This 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 This 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 structural diagram 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 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 This is a hardware structure 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 of which is shown) (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. The server device may also include a transmission device 106 and an input / output device 108 for communication functions. It will be understood by those skilled in the art 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 than shown, or with Figure 1 Different configurations 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, implementing 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 instances, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories can be connected to a 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. Specific examples of the aforementioned network may include a wireless network provided by a communication provider of a server device. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may 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 operating, as detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is operating, as 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. Real-time communication is carried out with the debugging system through the interface on the mainboard, so that the collected data (including but not limited to the first decibel value and the first hertz value) is sent to the debugging system in a timely manner 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 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 obtaining a target influence degree;

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

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

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

[0039] The above steps analyze the decibel level of fan noise and the hertz level of vibration caused by fan operation to determine the extent to which the fan noise and vibration affect the performance of the server's hard drives. When the impact exceeds a certain level, the hard drive's read / write strategy is modified. By determining the extent of the fan's impact on the hard drive, the hard drive's read / write strategy can be modified accordingly when hard drive performance is poor, improving hard drive read / write efficiency and resolving the issue of fixed hard drive read / write strategies in servers, which can lead to data loss when hard drive performance is poor.

[0040] 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 can be achieved 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 performance reference file indicates the degree of influence of different decibel values ​​and hertz values ​​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 through the model of the hard disk, thereby determining the noise resistance and vibration resistance of the hard disk, and then determining the degree of influence of different decibel values ​​and Hertz values ​​on the performance of the hard disk.

[0043] Step S12: determining the degree of 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 Hz, 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 level is determined to be greater.

[0045] 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 can also be achieved by the following steps S21-S22:

[0046] Step S21: determining an impact score according to the acquired decibel value and the Hertz value 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 1.80 points (80+100=1.80).

[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 hard disk's corresponding fan is working, the proportion of the Hertz value is greater than the proportion of the decibel value in the preset proportion rule.

[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 performance comparison table and a 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 impact 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 vibration have a greater impact on the performance of the hard disk in the server, then the target impact level is determined to be greater.

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

[0054] Step S31: If 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; and 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: If the decibel value and the hertz value satisfy a second preset condition, determining that the target impact level 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 a second preset hertz value; 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 level 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 degree of impact on the hard disk can be determined according to the actual working condition of the fan, thereby quantifying and visualizing the degree of impact, and furthermore, being able to more accurately judge the degree of impact of the fan on the hard disk.

[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 per second for the hard disk is determined according to the following formula:

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

[0066] Wherein, P is the number of write operations allowed per second by the hard disk, X is the preset number of write operations allowed per second by the hard disk before the read / write strategy of the hard disk is changed, Y is the target difference, and Z is the preset impact level.

[0067] Optionally, the system has N fans and M hard disks, and a fan among the N fans corresponds 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, no write operation is 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 significant, 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 drive read and write policies based on the target impact, thereby ensuring a balance between read and write efficiency and data security. In addition, the read and write policies of only a portion of multiple hard drives can be changed, thereby maximizing the overall efficiency and performance of the hard drives.

[0071] It should be noted that the write operation is performed on the hard disk according to the determined operating frequency, thereby ensuring that the efficiency of the write operation on 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 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;

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

[0075] It should be noted that the above steps not only maintain the operation of the server cooling system and ensure the maximum cooling efficiency of the server, but also reduce the impact of the fan on the hard disk performance, so that the impact of the fan on the hard disk performance remains within a reasonable range.

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

[0077] Step S61: Determine the current rotational speed of the fan, and determine a reference decibel value corresponding to the current rotational speed based on a first correspondence, wherein the first correspondence is used to indicate the decibel values ​​of noise generated by different rotational speeds of the fan under normal conditions; if 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;

[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 obtained 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 the above steps can accurately determine the device condition of the fan. When the fan deteriorates, it may inevitably have a greater impact on the hard disk. It is impossible to reduce the impact of the fan on the hard disk performance by changing the hard disk's read and write strategy and / or reducing the fan's 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 S71: 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 of the target component of the server is detected to have increased, 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 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 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, increase 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 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 including the target difference, and the speed adjustment amplitude including the third speed adjustment amplitude;

[0086] Step S82: 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 risen, the fourth speed adjustment amplitude 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 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.

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

[0088] Obviously, the embodiments described above are only part of the embodiments of the present invention, rather than all the embodiments. In order to better understand the above method, the above process is described below in conjunction with the 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 uses vibration and noise sensors installed in the fan frame to obtain real-time vibration and noise data. Based on the hard drive model and its vibration and noise resistance, the fan speed is adjusted in real time to prevent hard drive performance from being affected. If the collected vibration and noise values ​​exceed the set threshold, the BMC will issue an alarm.

[0090] The specific control strategies are as follows:

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

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

[0093] refer to Figure 4 When the speed control system detects that the temperature of key system components has risen and the fan speed needs to be increased, it first collects the fan's noise and vibration information and compares it 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-rising components, while maintaining the speed of other fans unchanged, to minimize the impact on hard disk performance.

[0094] Second, 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, read operations are performed on the hard disks in the fan area as much as possible, and write operations are performed on the hard disks in other areas. After the temperature of the key component drops, the original read and write strategy is restored.

[0096] When fan noise and vibration are close to the hard drive's vibration and noise tolerance thresholds, the overall fan speed adjustment range is limited. By increasing the fan speeds of key temperature-rising components, the hard drive's read and write strategies can be adjusted. Extensive test data indicates that the hard drive is significantly affected by vibration and noise when writing data, but less so when reading data. Read operations are performed on the hard drives in this fan zone, minimizing the impact of fan vibration and noise. Write operations are performed on hard drives in other zones, which remain unaffected because the fan speeds in these zones have not increased. Once the temperature of key components cools, the previous read and write strategies are restored, minimizing the impact of fan vibration and noise on the hard drive at the 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. In this case, the BMC should send an alarm message to remind maintenance personnel to perform maintenance in a timely manner.

[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 transmit the collected vibration and noise values ​​to the debugging system. The debugging system determines the hard drive's vibration and noise resistance by identifying the hard drive model. If the monitored vibration and noise may affect the hard drive'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 drive's performance. In addition, the debugging system can also adjust the hard drive's read and write strategy. When the fan speed corresponding to the hard drive in a certain area increases, which may affect the hard drive's performance, the hard drive in that area is read and the hard drive in other areas is written, thereby reducing the impact of the fan on the hard drive at the hard drive 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, the server front panel holds 24 hard drives, grouped into 3 x 8 drive bays (left, center, and right). Each of the eight hard drives is primarily affected by the noise and vibration of the two fans in front. When the two fans on the left need to increase their speed to cool the server, the read / write strategy of the eight hard drives on the left is changed, causing those eight drives to perform read operations while the remaining drives perform write operations. This reduces the impact of the increased fan speed on drive performance. When the server temperature drops, the left fan speed decreases, and the read / write strategy for the left hard drives can be restored. The same strategy can be applied when the center and right fans increase their speed to reduce the impact on drive performance. This achieves a balance between cooling and performance.

[0102] The debugging system monitors fan vibration and noise levels. If these levels exceed those expected for the current speed, it may be due to fan aging. In this case, the fan speed can be increased to meet server cooling requirements without affecting hard drive performance. An alarm is also generated to alert maintenance personnel to replace the fan.

[0103] The debugging system also monitors the hard drive's read and write performance. If the hard drive's read and write performance degrades at low fan speeds, it could be due to hard drive aging or other issues. If heat dissipation allows, the fan speed can be reduced or the hard drive's read and write strategy can be changed to minimize performance degradation. An alarm message is also generated to alert maintenance personnel to perform hard drive inspections.

[0104] If the vibration and noise values ​​exceed the set thresholds or exceed the expected vibration and noise values ​​at the fan speed, or if effective heat dissipation is no longer possible within the hard disk's vibration and noise resistance 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 the necessary general hardware platform, and of course it can also be implemented 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 enabling 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 and write device is also provided for implementing the above embodiment and preferred implementation mode, which has 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 This is a 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 configured to acquire a decibel value of noise generated by the fan when the fan is operating, as detected by a noise sensor, and acquire a Hertz value of vibration caused by the fan when the fan is operating, as detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server;

[0110] A first determining module 604 is configured 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, to obtain a target influence degree;

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

[0112] The device analyzes the decibel level of fan noise and the Hertz level of vibration it generates to determine the impact of fan noise and vibration on the performance of the server's hard disk. When the impact exceeds a certain level, the hard disk's read / write strategy is altered. By determining the fan's impact on the hard disk, the hard disk's read / write strategy is adjusted accordingly when hard disk performance is poor, improving read / write efficiency and resolving the issue of fixed hard disk read / write strategies in servers, which can lead to data loss when hard disk performance is poor.

[0113] In an exemplary embodiment, the first determination module 604 is further configured to determine that the target impact degree is equal to infinity when the decibel value and the hertz value satisfy a first preset condition, wherein the first preset condition includes: 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 impact 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 satisfy a second preset condition, determine 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 first preset decibel value, 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 meet 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 level and the preset impact level to obtain a target difference, wherein the impact level is represented by a numerical value, and the impact level includes the target impact level and the preset impact level; 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 to be performed on the hard disk per second is determined 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 and write strategy of the hard disk is changed, Y is the target difference, and Z is the preset impact level.

[0115] In an exemplary embodiment, the processing module 606 is further 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 requirements 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 by the fan when it is working and detected by the noise sensor, and obtain the Hertz value of the vibration caused by the fan when it is 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 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 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, 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 of the noise and the vibration on the performance of the hard disk is less than the preset impact; and determine that the hard disk has deteriorated when the current read and write performance does not meet the preset requirements.

[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 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; 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 a third preset threshold value, until the rotation speed of the fan meets the heat dissipation requirement of the target component; and / or increase the rotation speed of the fan according to the second speed adjustment amplitude when the target difference is less than the third preset threshold value, 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 the third correspondence, 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 correspondence 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 the fourth speed adjustment amplitude corresponding to the target impact degree according to the fourth correspondence, 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 correspondence 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 through 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. The computer program is configured to execute the steps of any of the above method embodiments when run.

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

[0122] S1, obtaining a decibel value of noise generated by the fan when it is working, as detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is working, as 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 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 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 execute the following steps through a computer program: S1, obtaining a decibel value of noise generated by the fan when it is operating, as detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is operating, as 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 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 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 here.

[0131] Alternatively, those skilled in the art will appreciate 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 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 located 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 used specifically but not limited 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 configured to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one embodiment, the transmission device 706 includes a network interface controller (NIC), which can be connected to other network devices and a router via a network cable to communicate with the Internet or a local area network. In one embodiment, the transmission device 706 is a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.

[0134] In addition, the electronic device further includes: a display 707; and a connection bus 710 for connecting 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, comprising 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 of any of the above method embodiments are implemented.

[0137] An embodiment of the present application also provides 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 of the above method embodiments.

[0138] Obviously, those skilled in the art should understand that the modules or steps of the present application described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, 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 performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated 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 merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included within the scope of protection 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, as detected by a noise sensor, and obtaining a Hertz value of vibration caused by the fan when it is working, as detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server; determining, based on the acquired decibel value and the Hertz value, the degree of influence of the noise and the vibration on the performance of the hard disk in the server, to obtain a target degree of influence; When the target impact degree is greater than or equal to a 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 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 a target degree of influence includes: If the decibel value and the hertz value satisfy 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; and 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; If the decibel value and the hertz value meet a second preset condition, determining that the target impact level 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 a second preset hertz value; 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 Changing the read / write strategy of the hard disk according to the target impact degree includes: Determining a difference between the target impact level and the preset impact level to obtain a target difference, wherein the impact level is represented by a numerical value, and the impact level includes the target impact level and the preset impact level; 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 per second by 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 by the hard disk, X is the preset number of write operations allowed per second by the hard disk before the read / write strategy of the hard disk is changed, Y is the target difference, and Z is the preset impact level.

4. The method according to claim 1, wherein The method further comprises: If 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, wherein After obtaining the decibel value of the noise generated by the fan when it is operating and detected by the noise sensor, and obtaining the Hertz value of the vibration caused by the fan when it is operating and detected by the vibration sensor, the method further includes: determining a current rotational speed of the fan, and determining a reference decibel value corresponding to the current rotational speed based on a first correspondence, wherein the first correspondence is used to indicate decibel values ​​of noise generated by different rotational speeds of the fan under normal conditions; determining that degradation of the fan has occurred if a difference between the obtained decibel value and the reference decibel value is greater than a first preset threshold; and / or Determine a current rotational speed of the fan, and determine a reference Hertz value corresponding to the current rotational speed based on a second corresponding relationship, wherein the second corresponding relationship is used to indicate a Hertz value of vibration caused by different rotational speeds of the fan under normal conditions; if a difference between the obtained 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: detecting 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, 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 a 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 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, the rotation speed of the fan is increased 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 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, 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 range includes the fourth speed adjustment range.

8. A hard disk read-write device, characterized in that: include: an acquisition module, configured to acquire a decibel value of noise generated by the fan when it is operating, as detected by a noise sensor, and acquire a Hertz value of vibration caused by the fan when it is operating, as detected by a vibration sensor, wherein the noise sensor and the vibration sensor are located in a fan frame of the server; a first determining module, configured to determine, based on the acquired decibel value and the Hertz value, the degree of influence of the noise and the vibration on the performance of the hard disk in the server, to obtain a target degree of influence; The processing module is configured 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 when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method according to 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