Cooling method and device for hard disk of electronic equipment, electronic equipment and storage medium
By obtaining the target temperature of the hard disk and determining the hard disk to write data based on its input and output concurrency, the performance problems caused by PCIe SSD due to high temperature are solved, and the automatic cooling and performance protection of the hard disk is achieved.
Patent Information
- Application Number
- CN202411792955.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2044-12-04
AI Technical Summary
In the prior art, the high speed and high power consumption of PCIe SSDs cause the hard disk temperature to soar, which may lead to the loss of electronic efflux of storage particles, bit flip and data loss. The commonly used external heat dissipation device is slow to dissipate heat, and the frequency reduction and speed reduction will affect the performance of the hard disk.
By obtaining the target temperature of the hard disk, determining its input and output concurrency, and determining whether to write the data to be written to another hard disk based on the concurrency, so as to achieve automatic reduction of the hard disk temperature.
Through the alternating operation of two hard disks, the automatic cooling of each hard disk is achieved, avoiding damage to the performance of the hard disk and not affecting the normal performance of the hard disk.
Smart Images

Figure CN119937907A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method and device for cooling a hard disk of an electronic device, an electronic device, and a storage medium. Background Art
[0002] With the rapid iteration of the PCIe (high-speed serial computer expansion bus standard) protocol in recent years, the read and write speed and power consumption of PCIe SSD (hard disk) used in notebooks are getting higher and higher. The increase in speed and power consumption will cause the SSD operating temperature to soar, and excessively high temperature will cause the storage particles on the SSD to lose electrons and flip bits, resulting in bad blocks or data loss on the SSD. In related technologies, hard disk cooling is usually achieved by adding an external heat sink or reducing the frequency and speed. However, the heat dissipation speed of the external heat sink is slow, and reducing the frequency and speed will affect the performance of the SSD. Summary of the invention
[0003] The present application provides a method and device for cooling a hard disk of an electronic device, an electronic device, and a storage medium, so as to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present application, a method for cooling a hard disk of an electronic device is provided, wherein the electronic device comprises a first hard disk and a second hard disk; the method comprises:
[0005] Acquire first data to be written for the electronic device;
[0006] Writing the first data to be written into a first hard disk of the electronic device, and acquiring a target temperature of the first hard disk based on a preset time interval;
[0007] Determining the input and output concurrency of the first hard disk based on the target temperature of the first hard disk;
[0008] Based on the input and output concurrency of the first hard disk, determining whether to write the second data to be written based on the second hard disk of the electronic device;
[0009] The second data to be written in the electronic device is written using the first hard disk or the second hard disk according to the result of determining whether to write the second data to be written based on the second hard disk of the electronic device.
[0010] In one possible implementation, determining the input and output concurrency of the first hard disk based on the target temperature of the first hard disk includes:
[0011] When the target temperature of the first hard disk is less than the first temperature threshold, the input and output concurrency of the first hard disk is the 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 and 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 and output concurrency of the first hard disk is a third concurrency;
[0014] The first concurrency is greater than the second concurrency, and the second concurrency is greater than the third concurrency.
[0015] In one possible implementation, determining whether to write the second data to be written based on a second hard disk of the electronic device based on the input and output concurrency of the first hard disk includes:
[0016] When the input / output concurrency of the first hard disk is the first concurrency or the second concurrency, writing the second data to be written is performed based on the first hard disk;
[0017] When the input and output concurrency of the first hard disk is the third concurrency, the second data to be written is written based on the second hard disk.
[0018] In one possible implementation, obtaining the target temperature of the first hard disk based on a preset time interval includes:
[0019] Reading operation log information of the first hard disk based on a preset time interval;
[0020] Based on the operation log information of the first hard disk, a target temperature of the first hard disk is obtained.
[0021] In one possible implementation, it also includes:
[0022] When the second hard disk is used to write the second data to be written to the electronic device,
[0023] Writing the second data to be written into a second hard disk of the electronic device, and acquiring a target temperature of the second hard disk based on a preset time interval;
[0024] Determining the input and output concurrency of the second hard disk based on the target temperature of the second hard disk;
[0025] Determining whether to write the third to-be-written data based on the first hard disk of the electronic device based on the input and output concurrency of the second hard disk;
[0026] The third data to be written of the electronic device is written using the first hard disk or the second hard disk according to the result of determining whether to write the third data to be written based on the first hard disk of the electronic device.
[0027] In one possible implementation, determining the input and output concurrency of the second hard disk based on the target temperature of the second hard disk includes:
[0028] When the target temperature of the second hard disk is lower than the first temperature threshold, the input and 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 the second temperature threshold, the input and output concurrency of the second hard disk is the fifth concurrency;
[0030] When the target temperature of the second hard disk is greater than the second temperature threshold, the input and output concurrency of the second hard disk is the sixth concurrency;
[0031] The fourth concurrency is greater than the fifth concurrency, and the fifth concurrency is greater than the sixth concurrency.
[0032] In one possible implementation, the step of writing the third data to be written to the electronic device using the first hard disk or the second hard disk according to a determination result of whether to write the third data to be written based on the first hard disk of the electronic device includes:
[0033] When the input / output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency, writing the third to-be-written data based on the second hard disk;
[0034] When the input and output concurrency of the second hard disk is the sixth concurrency, the third data to be written is written based on the first hard disk.
[0035] According to a second aspect of the present application, a device for cooling a hard disk of an electronic device is provided, wherein the electronic device comprises a first hard disk and a second hard disk; the device comprises:
[0036] A first acquiring unit, used for acquiring first data to be written for the electronic device;
[0037] A second acquisition unit, configured to write the first data to be written into a first hard disk of the electronic device, and acquire 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 a target temperature of the first hard disk;
[0039] A second determining unit, configured to determine whether to write the second data to be written based on a second hard disk of the electronic device based on the input and output concurrency of the first hard disk;
[0040] The first writing unit is used to write the second data to be written to the electronic device using the first hard disk or the second hard disk according to the determination result of whether to write the second data to be written 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 that can be executed 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, wherein the computer instructions are used to enable a computer to execute the method described in the present application.
[0046] In the present application, the first data to be written for the electronic device is obtained; the first data to be written is written to the first hard disk of the electronic device, and the target temperature of the first hard disk is obtained based on a preset time interval; based on the target temperature of the first hard disk, the input and output concurrency of the first hard disk is determined; based on the input and output concurrency of the first hard disk, it is determined whether to write the second data to be written based on the second hard disk of the electronic device; according to the result of determining whether to write the second data to be written based on the second hard disk of the electronic device, the first hard disk or the second hard disk is used to write the second data to be written to the electronic device. When the temperature of one hard disk is so high that it affects the performance of the hard disk, another hard disk can be used to take over its operation so that the temperature of the previous hard disk can be automatically reduced to a normal level. By alternating the operation of the two hard disks, the automatic cooling of each hard disk can be achieved without affecting the normal performance of the hard disk.
[0047] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become readily understood. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, wherein:
[0049] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0050] Figure 1 A schematic diagram showing the implementation process of the method for cooling 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 A schematic diagram showing the application process of the method for cooling a hard disk of an electronic device according to an embodiment of the present application is shown;
[0053] Figure 4 A schematic diagram showing the composition and structure of a cooling device for a hard disk of an electronic device according to an embodiment of the present application is shown;
[0054] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0055] In order to make the purpose, features, and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0056] The embodiment of the present application provides a method for cooling the hard disk of an electronic device, which includes obtaining first data to be written for the electronic device; writing the first data to be written to the first hard disk of the electronic device, and obtaining the target temperature of the first hard disk based on a preset time interval; determining the input and output concurrency of the first hard disk based on the target temperature of the first hard disk; determining whether to write the second data to be written based on the second hard disk of the electronic device based on the input and output concurrency of the first hard disk; and using the first hard disk or the second hard disk to write the second data to be written to the electronic device according to the result of determining whether to write the second data to be written based on the second hard disk of the electronic device. When the temperature of one hard disk is so high that it affects the performance of the hard disk, another hard disk can be used to take over its operation so that the temperature of the previous hard disk can be automatically reduced to a normal level. By operating the two hard disks in turn, automatic cooling of each hard disk can be achieved without affecting the normal performance of the hard disk.
[0057] The embodiment of the present application provides a method for cooling a hard disk of an electronic device, wherein the electronic device comprises a first hard disk and a second hard disk; Figure 1 As shown, the method includes:
[0058] S101: Acquire first data to be written for an electronic device.
[0059] In this step, the electronic device includes a laptop computer with dual hard disks, a desktop computer, etc. The first data to be written is the data to be currently stored in the electronic device.
[0060] S102: writing the first data to be written into a first hard disk of the electronic device, and acquiring a target temperature of the first hard disk based on a preset time interval.
[0061] In this step, if Figure 2 As shown, two SSDs (Solid State Drives) of the electronic device: SSDA and SSD B are connected to the CPU (Central Processing Unit) of the electronic device through a PCIe (peripheral component interconnect express, a high-speed serial computer expansion bus standard) bus. Figure 3 As shown, when the first data to be written for the electronic device is obtained, the first data to be written is first written to SSD A (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 data to be written is written.
[0062] S103: Determine the input and 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 and output concurrency. The higher the temperature, the lower the input and output concurrency of the hard disk; the lower the temperature, the higher the input and output concurrency of the hard disk. The input and output concurrency of the hard disk can reflect the current performance of the hard disk. The higher the input and output concurrency of the hard disk, the better the current performance; the lower the input and output concurrency of the hard disk, the worse the current performance.
[0064] S104: Based on the input and output concurrency of the first hard disk, determine whether to write the second data to be written based on the second hard disk of the electronic device.
[0065] In this step, it is determined whether to use the second hard disk of the electronic device (such as Figure 2 Specifically, when the input and output concurrency of the first hard disk is so low as to affect the performance of the first hard disk, the second hard disk of the electronic device is used to write the second data to be written. In this way, when the second hard disk is writing data, the first hard disk can automatically cool down and gradually restore its performance.
[0066] S105: Writing the second data to be written to the electronic device using the first hard disk or the second hard disk according to the result of determining whether to write the second data to be written based on the second hard disk of the electronic device.
[0067] In this step, when the determination result is to use the second hard disk of the electronic device to replace the first hard disk to write the second data to be written, the second hard disk is used to write the second data to be written. When the determination result is to continue to use the first hard disk to write the second data to be written, the first hard disk is used to write the second data to be written.
[0068] In the scheme shown in step S101 to step S105, the first data to be written for the electronic device is obtained; the first data to be written is written to the first hard disk of the electronic device, and the target temperature of the first hard disk is obtained based on a preset time interval; based on the target temperature of the first hard disk, the input and output concurrency of the first hard disk is determined; based on the input and output concurrency of the first hard disk, it is determined whether to write the second data to be written based on the second hard disk of the electronic device; according to the determination result of whether to write the second data to be written based on the second hard disk of the electronic device, the first hard disk or the second hard disk is used to write the second data to be written to the electronic device. When the temperature of one hard disk is so high that it affects the performance of the hard disk, another hard disk can be used to take over its operation so that the temperature of the previous hard disk can be automatically reduced to a normal level. By alternating the operation of the two hard disks, the automatic cooling of each hard disk can be achieved without affecting the normal performance of the hard disk.
[0069] In an optional solution, determining the input and output concurrency of the first hard disk based on the target temperature of the first hard disk includes:
[0070] When the target temperature of the first hard disk is less than the first temperature threshold, the input and 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 and 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 and output concurrency of the first hard disk is a third concurrency;
[0073] The first concurrency is greater than the second concurrency, and the second concurrency is greater than the third concurrency.
[0074] In this application, two temperature thresholds are pre-set: a first temperature threshold and a second temperature threshold. Assume that the first temperature threshold is Ta and the second temperature threshold is Tb. Figure 3As shown, when the target temperature of the first hard disk T1<Ta, the input and output concurrency of the first hard disk is the first concurrency (such as 100%), and the performance of the first hard disk is the best. When the target temperature of the first hard disk Ta≤T1≤Tb, the input and output concurrency of the first hard disk is the second concurrency (such as 60%), and the performance of the first hard disk is moderate. When the target temperature of the first hard disk T1>Tb, the input and output concurrency of the first hard disk is the third concurrency (such as 40%), and the performance of the first hard disk is poor. Among them, the specific values of the first concurrency, the second concurrency and the third concurrency can be customized, and this application does not make specific restrictions on this, but it should be observed that: the first concurrency>the second concurrency>the third concurrency. According to the target temperature of the first hard disk, the input and output concurrency of the first hard disk can be quickly determined, and then the performance of the current hard disk can be determined.
[0075] In an optional solution, the determining whether to write the second data to be written based on the second hard disk of the electronic device based on the input and output concurrency of the first hard disk includes:
[0076] When the input / output concurrency of the first hard disk is the first concurrency or the second concurrency, writing the second data to be written is performed based on the first hard disk;
[0077] When the input and output concurrency of the first hard disk is the third concurrency, the second data to be written is written based on the second hard disk.
[0078] In the present application, when the input and output concurrency of the first hard disk is the first concurrency or the second concurrency, it means that the performance of the first hard disk is still maintained at a normal level, and the second data to be written can continue to be written based on the first hard disk. Figure 3 As shown in the figure, when the input and output concurrency of the first hard disk is the third concurrency, it means that the performance of the first hard disk is at a poor level, and the second hard disk needs to be used to write the second data to be written. In this way, the first hard disk and the second hard disk can be operated with balanced loads, and the hard disk can be cooled without affecting the hard disk performance.
[0079] In an optional solution, obtaining the target temperature of the first hard disk based on a preset time interval includes:
[0080] Reading operation log information of the first hard disk based on a preset time interval;
[0081] Based on the operation log information of the first hard disk, a target temperature of the first hard disk is obtained.
[0082] In this 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. This is simple and easy to implement, and provides a data basis for determining the input and output concurrency of the first hard disk.
[0083] In an optional solution, it also includes:
[0084] When the second hard disk is used to write the second data to be written to the electronic device,
[0085] Writing the second data to be written into a second hard disk of the electronic device, and acquiring a target temperature of the second hard disk based on a preset time interval;
[0086] Determining the input and 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 and output concurrency of the second hard disk;
[0088] According to the determination result of whether to write the third data to be written based on the first hard disk of the electronic device, the third data to be written of the electronic device is written by using the first hard disk or the second hard disk.
[0089] In this application, combined Figure 3 As shown, after determining to use the second hard disk to write the second data to be written of the electronic device, when there is a third data to be written that needs 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 the preset time interval, and then the target temperature of the second hard disk is obtained (the second data to be written is written to the second hard disk of the electronic device, and the target temperature of the second hard disk is obtained based on the preset time interval). The input and output concurrency of the second hard disk is determined according to the target temperature of the second hard disk, and based on the input and output concurrency of the second hard disk, it is determined to use the first hard disk / second hard disk to write the third data to be written. For the specific process, please refer to the detailed description of the relevant parts below, which will not be repeated.
[0090] In an optional solution, determining the input and output concurrency of the second hard disk based on the target temperature of the second hard disk includes:
[0091] When the target temperature of the second hard disk is lower than the first temperature threshold, the input and output concurrency of the second hard disk is a 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 and output concurrency of the second hard disk is the fifth concurrency;
[0093] When the target temperature of the second hard disk is greater than the second temperature threshold, the input and output concurrency of the second hard disk is the 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. Figure 3 As shown, when the target temperature T2 of the second hard disk is less than Ta, the input and output concurrency of the second hard disk is the fourth concurrency (such as 100%), and the performance of the second hard disk is the best. When the target temperature of the second hard disk is Ta≤T2≤Tb, the input and output concurrency of the second hard disk is the fifth concurrency (such as 60%), and the performance of the second hard disk is moderate. When the target temperature of the second hard disk is T2>Tb, the input and output concurrency of the second hard disk is the sixth concurrency (such as 40%), and the performance of the second hard disk is poor. Among them, the fourth concurrency may be the same as or different from the first concurrency. The fifth concurrency may be the same as or different from the second concurrency. The sixth concurrency may be the same as or different from the third concurrency. The specific values of the fourth concurrency, the fifth concurrency and the sixth concurrency can be customized, and this application does not make specific restrictions on this, but it should be observed that the fourth concurrency>the fifth concurrency>the sixth concurrency. According to the target temperature of the second hard disk, the input and 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 step of writing the third data to be written to the electronic device using the first hard disk or the second hard disk according to a determination result of whether to write the third data to be written to 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, writing the third to-be-written data based on the second hard disk;
[0098] When the input and output concurrency of the second hard disk is the sixth concurrency, the third data to be written is written based on the first hard disk.
[0099] In the present application, when the input and 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 is still maintained at a normal level, and the third data to be written can continue to be written based on the second hard disk. Figure 3As shown in the figure, when the input and output concurrency of the second hard disk is the sixth concurrency, it means that the performance of the second hard disk is at a poor level, and the third data to be written needs to be written based on the first hard disk. This cycle can achieve balanced load operation of the first hard disk and the second hard disk, and can cool the hard disk without affecting the performance of the hard disk, while improving the heat dissipation efficiency of the hard disk.
[0100] The embodiment of the present application also provides a cooling device for a hard disk of an electronic device, wherein the electronic device comprises a first hard disk and a second hard disk; Figure 4 As shown, the device comprises:
[0101] A first acquisition unit 401 is used to acquire first data to be written for the electronic device;
[0102] A second acquisition unit 402 is used to write the first data to be written into a first hard disk of the electronic device, and acquire a target temperature of the first hard disk based on a preset time interval;
[0103] A first determining unit 403, configured to determine the input and output concurrency of the first hard disk based on the target temperature of the first hard disk;
[0104] A second determining unit 404, configured to determine whether to write the second data to be written based on the second hard disk of the electronic device based on the input and output concurrency of the first hard disk;
[0105] The first writing unit 405 is used to write the second data to be written to the electronic device using the first hard disk or the second hard disk according to the determination result of whether to write the second data to be written based on the second hard disk of the electronic device.
[0106] In an optional scheme, the first determination unit 403 is used to, when the target temperature of the first hard disk is less than the first temperature threshold, the input and output concurrency of the first hard disk is the first concurrency; 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 and output concurrency of the first hard disk is the second concurrency; when the target temperature of the first hard disk is greater than the second temperature threshold, the input and output concurrency of the first hard disk is the third concurrency; wherein the first concurrency is greater than the second concurrency, and the second concurrency is greater than the third concurrency.
[0107] In an optional scheme, the second determination unit 404 is used to write the second data to be written based on the first hard disk when the input and output concurrency of the first hard disk is the first concurrency or the second concurrency; when the input and output concurrency of the first hard disk is the third concurrency, write the second data to be written based on the second hard disk.
[0108] In an optional solution, the second acquisition unit 402 is used to read the operation 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 operation log information of the first hard disk.
[0109] In an optional solution, it also includes:
[0110] The second writing unit is used to write the second data to be written of the electronic device into the second hard disk of the electronic device when the second hard disk is used to write the second data to be written, and obtain the target temperature of the second hard disk based on a preset time interval; determine the input and output concurrency of the second hard disk based on the target temperature of the second hard disk; determine whether to write the third data to be written based on the first hard disk of the electronic device based on the input and output concurrency of the second hard disk; and use the first hard disk or the second hard disk to write the third data to be written of the electronic device according to the determination result of whether to write the third data to be written based on the first hard disk of the electronic device.
[0111] In an optional scheme, the second writing unit is used to, when the target temperature of the second hard disk is less than the first temperature threshold, the input and 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 and output concurrency of the second hard disk is the fifth concurrency; when the target temperature of the second hard disk is greater than the second temperature threshold, the input and 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 scheme, the second writing unit is used to write the third data to be written based on the second hard disk when the input and output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency; when the input and output concurrency of the second hard disk is the sixth concurrency, write the third data to be written based on the first hard disk.
[0113] It should be noted that the cooling device for the hard disk of an electronic device in the embodiment of the present application solves the problem based on a principle similar to the aforementioned cooling method for the hard disk of an electronic device. Therefore, the implementation process, implementation principle and beneficial effects of the cooling device for the hard disk of an electronic device can all be referred to the description of the implementation process, implementation principle and beneficial effects of the aforementioned method, and the repeated parts will not be repeated.
[0114] According to an embodiment of the present application, the present application also 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 an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0116] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0117] A number of 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.; a storage unit 508, such as a disk, an optical disk, 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 may be a variety of general and / or special 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 dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as a cooling method for an electronic device hard disk. For example, in some embodiments, the cooling method for an electronic device hard disk may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may 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 for the electronic device hard disk described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the cooling method for the electronic device hard disk in any other appropriate manner (e.g., by means of firmware).
[0119] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0120] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0121] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0122] To provide interaction with a user, the systems and techniques described herein 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 input, voice input, or tactile input).
[0123] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may 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] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may 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 processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0126] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for cooling a hard disk of an electronic device, characterized in that: The electronic device comprises a first hard disk and a second hard disk; the method comprises: Acquire first data to be written for the electronic device; Writing the first data to be written into a first hard disk of the electronic device, and acquiring a target temperature of the first hard disk based on a preset time interval; Determining the input and output concurrency of the first hard disk based on the target temperature of the first hard disk; Based on the input and output concurrency of the first hard disk, determining whether to write the second data to be written based on the second hard disk of the electronic device; The second data to be written in the electronic device is written using the first hard disk or the second hard disk according to the determination result of whether to write the second data to be written based on the second hard disk of the electronic device.
2. The method according to claim 1, characterized in that The step of determining the input and output concurrency of the first hard disk based on the target temperature of the first hard disk includes: When the target temperature of the first hard disk is less than the first temperature threshold, the input and output concurrency of the first hard disk is the first concurrency; 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 and output concurrency of the first hard disk is the second concurrency; When the target temperature of the first hard disk is greater than the second temperature threshold, the input and output concurrency of the first hard disk is a third concurrency; The first concurrency is greater than the second concurrency, and the second concurrency is greater than the third concurrency.
3. The method according to claim 2, characterized in that The step of determining whether to write the second data to be written based on the second hard disk of the electronic device based on the input and output concurrency of the first hard disk includes: When the input / output concurrency of the first hard disk is the first concurrency or the second concurrency, writing the second data to be written is performed based on the first hard disk; When the input and output concurrency of the first hard disk is the third concurrency, the second data to be written is written based on the second hard disk.
4. The method according to any one of claims 1 to 3, characterized in that: The step of obtaining the target temperature of the first hard disk based on a preset time interval includes: Reading operation log information of the first hard disk based on a preset time interval; Based on the operation log information of the first hard disk, a target temperature of the first hard disk is obtained.
5. The method according to any one of claims 1 to 3, characterized in that: Also includes: When the second hard disk is used to write the second data to be written to the electronic device, Writing the second data to be written into a second hard disk of the electronic device, and acquiring a target temperature of the second hard disk based on a preset time interval; Determining the input and output concurrency of the second hard disk based on the target temperature of the second hard disk; Determining whether to write the third to-be-written data based on the first hard disk of the electronic device based on the input and output concurrency of the second hard disk; The third data to be written of the electronic device is written using the first hard disk or the second hard disk according to the result of determining whether to write the third data to be written based on the first hard disk of the electronic device.
6. The method according to claim 5, characterized in that The step of determining the input and output concurrency of the second hard disk based on the target temperature of the second hard disk includes: When the target temperature of the second hard disk is lower than the first temperature threshold, the input and output concurrency of the second hard disk is a 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 and output concurrency of the second hard disk is the fifth concurrency; When the target temperature of the second hard disk is greater than the second temperature threshold, the input and output concurrency of the second hard disk is the sixth concurrency; The fourth concurrency is greater than the fifth concurrency, and the fifth concurrency is greater than the sixth concurrency.
7. The method according to claim 6, characterized in that The method of writing the third data to be written to the electronic device using the first hard disk or the second hard disk according to the result of determining whether to write the third data to be written to the first hard disk of the electronic device comprises: When the input / output concurrency of the second hard disk is the fourth concurrency or the fifth concurrency, writing the third to-be-written data based on the second hard disk; When the input and output concurrency of the second hard disk is the sixth concurrency, the third data to be written is written based on the first hard disk.
8. A cooling device for a hard disk of an electronic device, characterized in that: The electronic device comprises a first hard disk and a second hard disk; the device comprises: A first acquiring unit, used for acquiring first data to be written for the electronic device; A second acquisition unit, configured to write the first data to be written into a first hard disk of the electronic device, and acquire a target temperature of the first hard disk based on a preset time interval; A first determining unit, configured to determine an input / output concurrency of the first hard disk based on a target temperature of the first hard disk; A second determining unit, configured to determine whether to write the second data to be written based on a second hard disk of the electronic device based on the input and 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 the first hard disk or the second hard disk according to the determination result of whether to write the second data to be written based on the second hard disk of the electronic device.
9. 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, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1-7.
Citation Information
Patent Citations
Method for identifying bad blocks of solid state disk
CN106981315A
Temperature control method and system for solid state disk
CN107342101A
Hard disk cooling method and device, computer equipment and storage medium
CN115240723A
Hard disk heat dissipation coordination control method, system and equipment, medium and storage server
CN116088652A
Solid state disk performance optimization method and device, electronic equipment and storage medium
CN116225331A