Method and device for cooling electronic equipment hard disk, electronic equipment and storage medium

By setting up two hard drives in the electronic device and using temperature sensing and concurrency adjustment to dynamically switch data writing to the hard drives, the performance degradation problem caused by high temperature of PCIe SSDs is solved, and automatic cooling and performance maintenance of the hard drives are achieved.

CN119937907BActive Publication Date: 2026-03-27HEFEI LCFC INFORMATION TECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the high temperature of PCIe SSDs causes electron loss and bit flipping in the storage particles, resulting in data loss. In addition, the heat dissipation device is slow and reduces the frequency and speed, affecting performance.

Method used

By setting up two hard drives in the electronic device and using temperature sensing and concurrency adjustment, data writing to the hard drives can be dynamically switched, achieving automatic cooling of the hard drives and avoiding performance impact.

Benefits of technology

It achieves automatic cooling by alternating hard drive operation without affecting hard drive performance, thus solving the performance problem caused by high temperature.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119937907B_ABST
    Figure CN119937907B_ABST
Patent Text Reader

Abstract

The application provides a cooling method and device for a hard disk of an electronic device, the electronic device comprising a first hard disk and a second hard disk; the method comprises: obtaining first to-be-written data for the electronic device; writing the first to-be-written data into the first hard disk of the electronic device, and obtaining a target temperature of the first hard disk based on a preset time interval; determining an input / output concurrency of the first hard disk based on the target temperature of the first hard disk; determining whether to write second to-be-written data based on the second hard disk of the electronic device based on the input / output concurrency of the first hard disk; and writing the second to-be-written data of the electronic device by using the first hard disk or the second hard disk according to the determination result of whether to write the second to-be-written data based on the second hard disk of the electronic device. The alternating operation of the two hard disks can realize automatic cooling of each hard disk, and the normal performance of the hard disk is not affected.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, and in particular to a cooling method and device for a hard disk of an electronic device, an electronic device, and a storage medium. BACKGROUND

[0002] With the rapid iteration of the PCIe (high-speed serial computer expansion bus standard) protocol in recent years, the read / write speed and power consumption of the PCIe SSD (hard disk) used on a notebook computer are also increasing. The increase in speed and power consumption will cause the working temperature of the SSD to soar, and the high temperature will cause the storage particles on the SSD to lose electrons and flip bits, thereby causing the SSD to have bad blocks or data loss. In related technologies, the cooling of the hard disk is usually achieved by adding a cooling device or reducing the frequency. However, the cooling speed of the added cooling device is slow, and the frequency reduction will affect the performance of the SSD. SUMMARY

[0003] The present application provides a cooling method and device for a hard disk of an electronic device, an electronic device, and a storage medium to at least solve the above technical problems in the prior art.

[0004] According to a first aspect of the present application, a cooling method for a hard disk of an electronic device is provided, the electronic device comprising a first hard disk and a second hard disk; the method comprising:

[0005] obtaining first to-be-written data for the electronic device;

[0006] writing the first to-be-written data to the first hard disk of the electronic device, and obtaining a target temperature of the first hard disk based on a preset time interval;

[0007] determining an input / output concurrency of the first hard disk based on the target temperature of the first hard disk;

[0008] determining whether to write second to-be-written data based on the second hard disk of the electronic device based on the input / output concurrency of the first hard disk;

[0009] adopting the first hard disk or the second hard disk to write the second to-be-written data of the electronic device according to the determination result of whether to write the second to-be-written data based on the second hard disk of the electronic device.

[0010] In an implementation manner, the determination of the input / output concurrency of the first hard disk based on the target temperature of the first hard disk comprises:

[0011] when the target temperature of the first hard disk is less than a first temperature threshold, the input / output concurrency of the first hard disk is a first concurrency;

[0012] when the target temperature of the first hard disk is greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold, the input / output concurrency of the first hard disk is the second concurrency;

[0013] when the target temperature of the first hard disk is greater than the second temperature threshold, the input / output concurrency of the first hard disk is the third concurrency;

[0014] wherein the first concurrency is greater than the second concurrency, and the second concurrency is greater than the third concurrency.

[0015] In an implementation, the determining whether to write the second to-be-written data based on the second hard disk of the electronic device based on the input / output concurrency of the first hard disk comprises:

[0016] when the input / output concurrency of the first hard disk is the first concurrency or the second concurrency, writing the second to-be-written data based on the first hard disk;

[0017] when the input / output concurrency of the first hard disk is the third concurrency, writing the second to-be-written data based on the second hard disk.

[0018] In an implementation, the obtaining the target temperature of the first hard disk based on the preset time interval comprises:

[0019] reading the running log information of the first hard disk based on the preset time interval;

[0020] obtaining the target temperature of the first hard disk based on the running log information of the first hard disk.

[0021] In an implementation, the method further comprises:

[0022] in a case where the second to-be-written data of the electronic device is written based on the second hard disk,

[0023] writing the second to-be-written data into the second hard disk of the electronic device, and obtaining a target temperature of the second hard disk based on a preset time interval;

[0024] determining an input / output concurrency of the second hard disk based on the target temperature of the second hard disk;

[0025] determining whether to write third to-be-written data based on the first hard disk of the electronic device based on the input / output concurrency of the second hard disk;

[0026] writing the third to-be-written data of the electronic device based on the first hard disk or the second hard disk according to a determination result of whether to write the third to-be-written data based on the first hard disk of the electronic device.

[0027] In an implementation, the determining the input / output concurrency of the second hard disk based on the target temperature of the second hard disk comprises:

[0028] when the target temperature of the second hard disk is less than the first temperature threshold, the input / output concurrency of the second hard disk is a fourth concurrency;

[0029] when the target temperature of the second hard disk is greater than or equal to the first temperature threshold and less than or equal to a second temperature threshold, the input / output concurrency of the second hard disk is a fifth concurrency;

[0030] when the target temperature of the second hard disk is greater than the second temperature threshold, the input / output concurrency of the second hard disk is a sixth concurrency;

[0031] wherein the fourth concurrency is greater than the fifth concurrency, and the fifth concurrency is greater than the sixth concurrency.

[0032] In an implementation, the writing of the third to-be-written data to the electronic device by using the first hard disk or the second hard disk according to the determination result of whether the writing of the third to-be-written data to the electronic device is based on the second hard disk includes:

[0033] when the input / output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency, the writing of the third to-be-written data is based on the second hard disk;

[0034] when the input / output concurrency of the second hard disk is the sixth concurrency, the writing of the third to-be-written data is based on the first hard disk.

[0035] According to a second aspect of the present application, a cooling device for a hard disk of an electronic device is provided, the electronic device including a first hard disk and a second hard disk; the device includes:

[0036] a first obtaining unit configured to obtain first to-be-written data for the electronic device;

[0037] a second obtaining unit configured to write the first to-be-written data to the first hard disk of the electronic device, and obtain a target temperature of the first hard disk based on a preset time interval;

[0038] a first determining unit configured to determine an input / output concurrency of the first hard disk based on the target temperature of the first hard disk;

[0039] a second determining unit configured to determine whether the writing of second to-be-written data to the electronic device is based on the second hard disk of the electronic device based on the input / output concurrency of the first hard disk;

[0040] a first writing unit configured to write the second to-be-written data to the electronic device by using the first hard disk or the second hard disk according to the determination result of whether the writing of the second to-be-written data to the electronic device is based on the second hard disk of the electronic device.

[0041] According to a third aspect of the present application, an electronic device is provided, including:

[0042] at least one processor; and

[0043] a memory communicatively connected to the at least one processor; wherein

[0044] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present application.

[0045] According to a fourth aspect of the present application, a non-transitory computer readable storage medium storing computer instructions is provided, the computer instructions being used to enable a computer to perform the method described in the present application.

[0046] In the present application, first to-be-written data for an electronic device is acquired; the first to-be-written data is written into a first hard disk of the electronic device, and a target temperature of the first hard disk is acquired based on a preset time interval; an input / output concurrency of the first hard disk is determined based on the target temperature of the first hard disk; whether to perform writing of second to-be-written data based on a second hard disk of the electronic device is determined based on the input / output concurrency of the first hard disk; and the second to-be-written data of the electronic device is written by using the first hard disk or the second hard disk according to a determination result of whether to perform writing of the second to-be-written data based on the second hard disk of the electronic device. When the temperature of one hard disk is high enough to affect the performance of the hard disk, another hard disk can be used to replace it to operate, so that the temperature of the previous hard disk can be automatically reduced to a normal level. Through the alternate operation of the two hard disks, automatic cooling of each hard disk can be realized, and the normal performance of the hard disk is not affected.

[0047] It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS

[0048] The above and other objects, features and advantages of the present exemplary embodiments will become more apparent from the following detailed description read in conjunction with the accompanying drawings, in which:

[0049] In the drawings, identical or corresponding reference signs refer to identical or corresponding parts.

[0050] Figure 1 An implementation flowchart of a cooling method for a hard disk of an electronic device according to an embodiment of the present application is shown;

[0051] Figure 2 A schematic diagram of a hard disk of an electronic device according to an embodiment of the present application is shown;

[0052] Figure 3 An application flow diagram of the cooling method of the electronic device hard disk is shown.

[0053] Figure 4 A composition structure diagram of the cooling device of the electronic device hard disk is shown.

[0054] Figure 5 A composition structure diagram of an electronic device is shown. DETAILED DESCRIPTION

[0055] To make the objectives, characteristics and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0056] The present application provides a cooling method of an electronic device hard disk, obtaining first to-be-written data for the electronic device; writing the first to-be-written data into a first hard disk of the electronic device, and obtaining a target temperature of the first hard disk based on a preset time interval; determining an input-output concurrency of the first hard disk based on the target temperature of the first hard disk; determining whether to write second to-be-written data based on a second hard disk of the electronic device based on the input-output concurrency of the first hard disk; and writing the second to-be-written data of the electronic device using the first hard disk or the second hard disk according to the determination result of whether to write the second to-be-written data based on the second hard disk of the electronic device. When the temperature of one hard disk is high enough to affect the performance of the hard disk, another hard disk can be used to replace it to operate, so that the temperature of the previous hard disk can be automatically reduced to a normal level. Through the alternate operation of the two hard disks, the automatic cooling of each hard disk can be realized, and the normal performance of the hard disk is not affected.

[0057] The present application provides a cooling method of an electronic device hard disk, the electronic device comprising a first hard disk and a second hard disk; as shown, the method comprises: Figure 1

[0058] S101: obtaining first to-be-written data for the electronic device.

[0059] In this step, the electronic device includes a notebook computer, a desktop computer and the like with double hard disks. The first to-be-written data is data to be stored in the electronic device at present.

[0060] S102: writing the first to-be-written data into a first hard disk of the electronic device, and obtaining a target temperature of the first hard disk based on a preset time interval.​

[0061] In this step, as shown in Figure 2 Two SSDs (Solid State Drives) of the electronic device, SSD A and SSD B, are connected to the CPU (Central Processing Unit) of the electronic device through a PCIe (peripheral component interconnect express) bus, and when the first to-be-written data for the electronic device is obtained, the first to-be-written data is written to SSD A (the first hard disk), and the target temperature of SSD A is obtained at a preset time interval. The target temperature is the current operating temperature of the hard disk after the first to-be-written data is written. Figure 3

[0062] S103: Determine the input / output concurrency of the first hard disk based on the target temperature of the first hard disk.

[0063] In this step, different temperatures of the hard disk correspond to different input / output concurrencies. The higher the temperature, the lower the input / output concurrency of the hard disk; the lower the temperature, the higher the input / output concurrency of the hard disk. The input / output concurrency of the hard disk can reflect the current performance of the hard disk. The higher the input / output concurrency of the hard disk, the better the current performance; the lower the input / output concurrency of the hard disk, the worse the current performance.

[0064] S104: Determine whether to write the second to-be-written data based on the second hard disk of the electronic device based on the input / output concurrency of the first hard disk.

[0065] In this step, based on the input / output concurrency of the first hard disk, it is determined whether to write the next batch of to-be-written data (second to-be-written data) based on the second hard disk (such as SSD B in Figure 2 ) of the electronic device. Specifically, when the input / output concurrency of the first hard disk is low enough to affect the performance of the first hard disk, the second to-be-written data is written based on the second hard disk of the electronic device. In this way, when the second hard disk writes data, the first hard disk can automatically cool down and gradually recover its performance.

[0066] S105: Based on the determination result of whether to write the second to-be-written data based on the second hard disk of the electronic device, write the second to-be-written data of the electronic device using the first hard disk or the second hard disk.

[0067] ​In the step, when the determination result is that the second to-be-written data is written by replacing the first hard disk with the second hard disk of the electronic device, the second to-be-written data is written by using the second hard disk. When the determination result is that the second to-be-written data is written by continuing to use the first hard disk, the second to-be-written data is written by using the first hard disk.

[0068] In the scheme shown in steps S101-S105, the first to-be-written data of the electronic device is acquired; the first to-be-written data is written to the first hard disk of the electronic device, and the target temperature of the first hard disk is acquired based on a preset time interval; the input / output concurrency of the first hard disk is determined based on the target temperature of the first hard disk; whether the second to-be-written data is written based on the second hard disk of the electronic device is determined based on the input / output concurrency of the first hard disk; and the second to-be-written data of the electronic device is written by using the first hard disk or the second hard disk according to the determination result of whether the second to-be-written data is written based on the second hard disk of the electronic device. When the temperature of one hard disk is high enough to affect the performance of the hard disk, the other hard disk can be used to replace it to operate, so that the temperature of the previous hard disk can be automatically reduced to a normal level. Through the alternate operation of the two hard disks, the automatic cooling of each hard disk can be realized, and the normal performance of the hard disk is not affected.

[0069] In an optional scheme, the determination of the input / output concurrency of the first hard disk based on the target temperature of the first hard disk comprises:

[0070] When the target temperature of the first hard disk is less than the first temperature threshold, the input / output concurrency of the first hard disk is the first concurrency;

[0071] When the target temperature of the first hard disk is greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold, the input / output concurrency of the first hard disk is the second concurrency;

[0072] When the target temperature of the first hard disk is greater than the second temperature threshold, the input / output concurrency of the first hard disk is the third concurrency;

[0073] Wherein, the first concurrency is greater than the second concurrency, and the second concurrency is greater than the third concurrency.

[0074] In the present application, two temperature thresholds are set in advance: a first temperature threshold and a second temperature threshold. Assuming that the first temperature threshold is Ta and the second temperature threshold is Tb. In combination with the above Figure 3As shown, when the target temperature T1 of the first hard disk is less than Ta, the input / output concurrency of the first hard disk is the first concurrency (e.g., 100%), at which time the performance of the first hard disk is best. When the target temperature Ta of the first hard disk is less than or equal to T1 and less than or equal to Tb, the input / output concurrency of the first hard disk is the second concurrency (e.g., 60%), at which time the performance of the first hard disk is moderate. When the target temperature T1 of the first hard disk is greater than Tb, the input / output concurrency of the first hard disk is the third concurrency (e.g., 40%), at which time the performance of the first hard disk is poor. The specific values of the first concurrency, the second concurrency, and the third concurrency can be set by the user, and the present application does not limit the same, but the first concurrency should be greater than the second concurrency, and the second concurrency should be greater than the third concurrency. According to the target temperature of the first hard disk, the input / output concurrency of the first hard disk can be quickly determined, and the performance of the current hard disk can be determined.

[0075] In an optional solution, the determining whether to write the second to-be-written data based on the second hard disk of the electronic device based on the input / output concurrency of the first hard disk comprises:

[0076] When the input / output concurrency of the first hard disk is the first concurrency or the second concurrency, the second to-be-written data is written based on the first hard disk;

[0077] When the input / output concurrency of the first hard disk is the third concurrency, the second to-be-written data is written based on the second hard disk.

[0078] In the present application, when the input / output concurrency of the first hard disk is the first concurrency or the second concurrency, it indicates that the performance of the first hard disk is still normal at this time, and the second to-be-written data can continue to be written based on the first hard disk. In combination with the above description Figure 3 When the input / output concurrency of the first hard disk is the third concurrency, it indicates that the performance of the first hard disk is poor at this time, and the second to-be-written data needs to be written based on the second hard disk. Thus, the balanced load operation of the first hard disk and the second hard disk can be realized, and the hard disk can be cooled without affecting the performance of the hard disk.

[0079] In an optional solution, the obtaining the target temperature of the first hard disk based on the preset time interval comprises:

[0080] Reading the running log information of the first hard disk based on the preset time interval;

[0081] Obtaining the target temperature of the first hard disk based on the running log information of the first hard disk.

[0082] In the present application, the target temperature of the first hard disk is stored in the operation log information of the first hard disk, specifically in the SMART (Self-Monitoring Analysis and Reporting Technology) log. The operation log information of the first hard disk is read based on a preset time interval (such as 10us, 20us, etc.), and then the target temperature of the first hard disk is obtained. It is simple and easy to use, and provides a data basis for determining the input / output concurrency of the first hard disk.

[0083] In an optional solution, further comprising:

[0084] In the case of writing the second to-be-written data of the electronic device by using the second hard disk,

[0085] writing the second to-be-written data into the second hard disk of the electronic device, and obtaining the target temperature of the second hard disk based on a preset time interval;

[0086] determining the input / output concurrency of the second hard disk based on the target temperature of the second hard disk;

[0087] determining whether to write the third to-be-written data based on the first hard disk of the electronic device based on the input / output concurrency of the second hard disk;

[0088] writing the third to-be-written data of the electronic device by using the first hard disk or the second hard disk according to the determination result of whether to write the third to-be-written data based on the first hard disk of the electronic device.

[0089] In the present application, in combination with Figure 3 As shown in the figure, after determining to write the second to-be-written data of the electronic device by using the second hard disk, when there is third to-be-written data to be written, similar to the operation steps of the first hard disk, the operation log information of the second hard disk is read based on a preset time interval, and then the target temperature of the second hard disk is obtained (the second to-be-written data is written into the second hard disk of the electronic device, and the target temperature of the second hard disk is obtained based on a preset time interval). The input / output concurrency of the second hard disk is determined according to the target temperature of the second hard disk, and the writing of the third to-be-written data by using the first hard disk / second hard disk is determined based on the input / output concurrency of the second hard disk. For specific process, please refer to the detailed description of the related places below, which will not be repeated here.

[0090] In an optional solution, the determination of the input / output concurrency of the second hard disk based on the target temperature of the second hard disk comprises:

[0091] When the target temperature of the second hard disk is less than the first temperature threshold, the input / output concurrency of the second hard disk is the fourth concurrency;

[0092] When the target temperature of the second hard disk is greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold, the input / output concurrency of the second hard disk is a fifth concurrency;

[0093] When the target temperature of the second hard disk is greater than the second temperature threshold, the input / output concurrency of the second hard disk is a sixth concurrency;

[0094] The fourth concurrency is greater than the fifth concurrency, and the fifth concurrency is greater than the sixth concurrency.

[0095] In the present application, as described above, it is assumed that the first temperature threshold is Ta and the second temperature threshold is Tb. In combination with Figure 3 When the target temperature T2 of the second hard disk is less than Ta, the input / output concurrency of the second hard disk is a fourth concurrency (for example, 100%), at which time the performance of the second hard disk is best. When the target temperature T2 of the second hard disk is between Ta and Tb, the input / output concurrency of the second hard disk is a fifth concurrency (for example, 60%), at which time the performance of the second hard disk is moderate. When the target temperature T2 of the second hard disk is greater than Tb, the input / output concurrency of the second hard disk is a sixth concurrency (for example, 40%), at which time the performance of the second hard disk is poor. The fourth concurrency can be the same as the first concurrency or different. The fifth concurrency can be the same as the second concurrency or different. The sixth concurrency can be the same as the third concurrency or different. The specific values of the fourth, fifth and sixth concurrencies can be set by the user, and the present application does not make a specific limitation thereon, but should comply with the following: the fourth concurrency is greater than the fifth concurrency, and the fifth concurrency is greater than the sixth concurrency. According to the target temperature of the second hard disk, the input / output concurrency of the second hard disk can be quickly determined, and then the performance of the current hard disk can be determined.

[0096] In an optional solution, the writing of the third to-be-written data into the electronic device based on the determination result of whether to write the third to-be-written data into the first hard disk of the electronic device comprises:

[0097] When the input / output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency, the third to-be-written data is written based on the second hard disk;

[0098] When the input / output concurrency of the second hard disk is the sixth concurrency, the third to-be-written data is written based on the first hard disk.

[0099] In the present application, when the input / output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency, it means that the performance of the second hard disk still remains at a normal level, and the third to-be-written data can continue to be written based on the second hard disk. In combination with Figure 3As shown, when the input / output concurrency degree of the second hard disk is the sixth concurrency degree, it is illustrated that the performance of the second hard disk is at a poor level at this time, and the writing of the third to-be-written data needs to be based on the first hard disk at this time. Such a cycle alternation can realize the balanced load operation of the first hard disk and the second hard disk, can cool the hard disk without affecting the performance of the hard disk, and can improve the heat dissipation efficiency of the hard disk.

[0100] The embodiment of the present application further provides a cooling device for a hard disk of an electronic device, the electronic device comprising a first hard disk and a second hard disk; and as shown, Figure 4 The device comprises:

[0101] A first obtaining unit 401 is configured to obtain first to-be-written data for the electronic device;

[0102] A second obtaining unit 402 is configured to write the first to-be-written data to the first hard disk of the electronic device, and obtain a target temperature of the first hard disk based on a preset time interval;

[0103] A first determining unit 403 is configured to determine an input / output concurrency degree of the first hard disk based on the target temperature of the first hard disk;

[0104] A second determining unit 404 is configured to determine whether to write second to-be-written data based on the second hard disk of the electronic device based on the input / output concurrency degree of the first hard disk;

[0105] A first writing unit 405 is configured to write the second to-be-written data of the electronic device by using the first hard disk or the second hard disk according to a determination result of whether to write the second to-be-written data based on the second hard disk of the electronic device.

[0106] In an optional scheme, the first determining unit 403 is configured to: when the target temperature of the first hard disk is less than a first temperature threshold, the input / output concurrency degree of the first hard disk is a first concurrency degree; when the target temperature of the first hard disk is greater than or equal to the first temperature threshold and less than or equal to a second temperature threshold, the input / output concurrency degree of the first hard disk is a second concurrency degree; and when the target temperature of the first hard disk is greater than the second temperature threshold, the input / output concurrency degree of the first hard disk is a third concurrency degree; wherein the first concurrency degree is greater than the second concurrency degree, and the second concurrency degree is greater than the third concurrency degree.

[0107] In an optional scheme, the second determining unit 404 is configured to: when the input / output concurrency degree of the first hard disk is the first concurrency degree or the second concurrency degree, write the second to-be-written data based on the first hard disk; and when the input / output concurrency degree of the first hard disk is the third concurrency degree, write the second to-be-written data based on the second hard disk.

[0108] In an optional implementation, the second obtaining unit 402 is configured to read the running log information of the first hard disk based on a preset time interval; and obtain the target temperature of the first hard disk based on the running log information of the first hard disk.

[0109] In an optional implementation, the method further includes:

[0110] The second writing unit is configured to, in a case where the second hard disk is used to write the second to-be-written data of the electronic device, write the second to-be-written data to the second hard disk of the electronic device, and obtain the target temperature of the second hard disk based on a preset time interval; determine the input / output concurrency of the second hard disk based on the target temperature of the second hard disk; determine whether to write the third to-be-written data based on the first hard disk of the electronic device based on the input / output concurrency of the second hard disk; and write the third to-be-written data of the electronic device by using the first hard disk or the second hard disk according to the determination result of whether to write the third to-be-written data based on the first hard disk of the electronic device.

[0111] In an optional implementation, the second writing unit is configured to, when the target temperature of the second hard disk is less than the first temperature threshold, the input / output concurrency of the second hard disk is the fourth concurrency; when the target temperature of the second hard disk is greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold, the input / output concurrency of the second hard disk is the fifth concurrency; and when the target temperature of the second hard disk is greater than the second temperature threshold, the input / output concurrency of the second hard disk is the sixth concurrency; wherein the fourth concurrency is greater than the fifth concurrency, and the fifth concurrency is greater than the sixth concurrency.

[0112] In an optional implementation, the second writing unit is configured to, when the input / output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency, write the third to-be-written data based on the second hard disk; and when the input / output concurrency of the second hard disk is the sixth concurrency, write the third to-be-written data based on the first hard disk.

[0113] It should be noted that the electronic device hard disk cooling device of the embodiments of the present application has similar problem solving principles to the foregoing electronic device hard disk cooling method, and therefore the implementation process and implementation principles, and the beneficial effects of the electronic device hard disk cooling device can be seen from the foregoing descriptions of the implementation process and implementation principles, and the beneficial effects of the method, and the repeated parts will not be described herein.

[0114] According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.

[0115] Figure 5A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit the implementations of the present application described and / or claimed in this document.

[0116] As shown in Figure 5 The device 500 includes a computing unit 501 that can perform various appropriate actions and processes in accordance with a computer program stored in a read-only memory (ROM) 502 or a computer program loaded into a random access memory (RAM) 503 from a storage unit 508. Various programs and data required for the operation of the device 500 can also be stored in the RAM 503. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0117] Various components in the device 500 are connected to the I / O interface 505, including an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; the storage unit 508, such as magnetic disks, optical disks, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunication networks.

[0118] The computing unit 501 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs various methods and processes described above, such as the cooling method of the electronic device hard disk. For example, in some embodiments, the cooling method of the electronic device hard disk can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the cooling method of the electronic device hard disk described above can be performed. Alternatively, in other embodiments, the computing unit 501 can be configured to perform the cooling method of the electronic device hard disk by any other appropriate means, such as by means of firmware.

[0119] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a complex programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0120] Program code for carrying out methods of the present application can be written in any combination of one or more programming languages. This program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine or entirely on a remote machine or server.

[0121] In the context of this application, a machine-readable medium can be a tangible medium that can contain or store program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable storage medium can include, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0122] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.

[0123] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0124] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server can arise by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0125] It should be understood that the various forms of flow shown above can be used to reorder, add, or delete steps. For example, the steps described in this application can be performed in parallel, in series, or in a different order, as long as the desired results of the technology disclosed in this application can be achieved, and this application does not limit herein.

[0126] In addition, the terms "first", "second" are only for the purpose of description, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "multiple" is two or more, unless otherwise specifically limited.

[0127] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for cooling the hard drive of an electronic device, characterized in that, The electronic device includes a first hard disk and a second hard disk; the method includes: Acquire the first data to be written for the electronic device; Write the first data to be written to the first hard drive of the electronic device, and obtain the target temperature of the first hard drive based on a preset time interval; Based on the target temperature of the first hard drive, determine the input / output concurrency of the first hard drive; Based on the input / output concurrency of the first hard drive, determine whether to write the second data to be written based on the second hard drive of the electronic device; Based on the determination result of whether the second data to be written is based on the second hard drive of the electronic device, the second data to be written to the electronic device is written using either the first hard drive or the second hard drive; The step of determining the input / output concurrency of the first hard drive based on its target temperature includes: When the target temperature of the first hard drive is less than the first temperature threshold, the input-output concurrency of the first hard drive is the first concurrency. When the target temperature of the first hard drive is greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold, the input-output concurrency of the first hard drive is the second concurrency. When the target temperature of the first hard drive is greater than the second temperature threshold, the input-output concurrency of the first hard drive is the third concurrency. Wherein, the first concurrency level is greater than the second concurrency level, and the second concurrency level is greater than the third concurrency level; The determination of whether to write the second data to be written based on the input / output concurrency of the first hard drive includes: When the input / output concurrency of the first hard disk is either the first concurrency or the second concurrency, the second data to be written is written based on the first hard disk. When the input / output concurrency of the first hard drive reaches the third concurrency level, the second data to be written is written based on the second hard drive.

2. The method according to claim 1, characterized in that, The step of obtaining the target temperature of the first hard drive based on a preset time interval includes: The operation log information of the first hard drive is read at preset time intervals; The target temperature of the first hard drive is obtained based on the operation log information of the first hard drive.

3. The method according to claim 1, characterized in that, Also includes: When using a second hard drive to write the second piece of data to be written to an electronic device. The second data to be written is written to the second hard drive of the electronic device, and the target temperature of the second hard drive is obtained based on a preset time interval; Based on the target temperature of the second hard drive, determine the input / output concurrency of the second hard drive; Based on the input / output concurrency of the second hard drive, determine whether to write the third data to be written based on the first hard drive of the electronic device; Based on the determination of whether the third data to be written is based on the first hard drive of the electronic device, the third data to be written to the electronic device is written using either the first hard drive or the second hard drive.

4. The method according to claim 3, characterized in that, The determination of the input / output concurrency of the second hard drive based on the target temperature of the second hard drive includes: When the target temperature of the second hard drive is less than the first temperature threshold, the input-output concurrency of the second hard drive is the fourth concurrency. When the target temperature of the second hard drive is greater than or equal to the first temperature threshold and less than or equal to the second temperature threshold, the input-output concurrency of the second hard drive is the fifth concurrency. When the target temperature of the second hard drive is greater than the second temperature threshold, the input-output concurrency of the second hard drive is the sixth concurrency. Wherein, the fourth concurrency level is greater than the fifth concurrency level, and the fifth concurrency level is greater than the sixth concurrency level.

5. The method according to claim 4, characterized in that, The step of writing the third data to be written to the electronic device using either the first hard drive or the second hard drive, based on the determination result of whether the writing is performed on the first hard drive of the electronic device, includes: When the input / output concurrency of the second hard drive is the fourth or fifth concurrency, the third data to be written is written based on the second hard drive. When the input / output concurrency of the second hard drive reaches the sixth concurrency level, the third data to be written is performed based on the first hard drive.

6. A cooling device for a hard drive in an electronic device, characterized in that, The electronic device includes a first hard disk and a second hard disk; the apparatus includes: The first acquisition unit is used to acquire the first data to be written for the electronic device; The second acquisition unit is used to write the first data to be written to the first hard disk of the electronic device, and to acquire the target temperature of the first hard disk based on a preset time interval; The first determining unit is used to determine the input / output concurrency of the first hard disk based on the target temperature of the first hard disk; The second determining unit is used to determine whether to write the second data to be written based on the input / output concurrency of the first hard disk; The first writing unit is used to write the second data to be written to the electronic device using either the first hard drive or the second hard drive, based on the determination result of whether the second data to be written is based on the second hard drive of the electronic device. The first determining unit is configured to: when the target temperature of the first hard disk is less than a first temperature threshold, set the input-output concurrency of the first hard disk to a first concurrency level; when the target temperature of the first hard disk is greater than or equal to the first temperature threshold and less than or equal to a second temperature threshold, set the input-output concurrency of the first hard disk to a second concurrency level; and when the target temperature of the first hard disk is greater than the second temperature threshold, set the input-output concurrency of the first hard disk to a third concurrency level; wherein the first concurrency level is greater than the second concurrency level, and the second concurrency level is greater than the third concurrency level. The second determining unit is used to write the second data to be written based on the first hard disk when the input / output concurrency of the first hard disk is the first concurrency or the second concurrency; and to write the second data to be written based on the second hard disk when the input / output concurrency of the first hard disk is the third concurrency.

7. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.

8. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Temperature control method and system for solid state disk

    CN107342101A

  • Hard disk cooling method and device, computer equipment and storage medium

    CN115240723A