Server frequency reduction method and device, electronic equipment and readable storage medium
By setting a personalized frequency reduction temperature for each core board and dynamically adjusting the working frequency, the problem of inability to take into account the differences between core boards in the existing technology is solved, and the differential frequency reduction and performance consistency of the core board is achieved, and the core is protected. The board will not be burned.
Patent Information
- Application Number
- CN202310833501.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-07
- Publication Date
- 2025-01-07
AI Technical Summary
When multiple core boards exist, differentiated frequency reduction cannot be achieved, resulting in the performance differences between core boards being unable to be taken into account and the core boards cannot be effectively protected from burning.
By setting a personalized frequency reduction temperature for each core board, and dynamically adjusting the working frequency of the core board according to the current working temperature and frequency reduction temperature, differentiated frequency reduction for each core board is achieved.
Effectively protect the core board from being burned, while maintaining the actual operating performance of all core boards as consistent as possible, improving the overall performance and reliability of the server.
Smart Images

Figure CN119271026A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of servers, and in particular to a frequency reduction method, device, electronic device and readable storage medium of a server. Background Art
[0002] The server contains a core board, which is used to support specific business functions. In order to protect the normal operation of the core board on the server from being burned, existing servers usually adopt a unified frequency reduction strategy for all core boards: a frequency reduction temperature is set in the server, and when the operating temperature of the core board, that is, the operating temperature of the core board's central processor, is detected to be greater than the frequency reduction temperature, the operating main frequency of the core board's central processor is reduced, thereby reducing the operating temperature of the core board and protecting the core board from being burned. However, such a fixed and single frequency reduction strategy cannot take into account the differences between core boards and achieve differentiated frequency reduction of core boards. Summary of the invention
[0003] The main purpose of the present application is to provide a server frequency reduction method, device, electronic device and readable storage medium, aiming to solve the technical problem of how to achieve differentiated frequency reduction of core boards when there are multiple core boards on the server.
[0004] To achieve the above object, the present application provides a method for reducing the frequency of a server, wherein the server includes multiple core boards, and the method includes:
[0005] Obtaining the current operating temperature and the frequency reduction temperature corresponding to each core board, wherein each core board is correspondingly provided with a frequency reduction temperature;
[0006] Detecting in sequence whether each of the core boards meets the preset frequency reduction conditions, and taking the core board that meets the preset frequency reduction conditions as the target core board, wherein the preset frequency reduction conditions include that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board;
[0007] The operating frequency of the target core board is reduced, wherein the operating frequency includes the operating main frequency of the central processing unit of the target core board.
[0008] Optionally, before the step of obtaining the current operating temperature and the frequency reduction temperature corresponding to each core board, the method further includes:
[0009] Performing group processing on each of the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each of the core board groups to obtain a frequency reduction strategy table;
[0010] Traversing each of the core boards in turn, and taking the traversed core board as the first core board;
[0011] Determine a first core board group where the first core board is located according to the multiple core board groups, and determine a first frequency reduction temperature corresponding to the first core board group in the frequency reduction strategy table;
[0012] The first frequency reduction temperature corresponding to the first core board group is used as the frequency reduction temperature corresponding to the first core board.
[0013] Optionally, the step of grouping the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each of the core board groups to obtain a frequency reduction strategy table includes:
[0014] When it is determined that the operating temperature of each core board is a preset temperature, the first usage rate corresponding to each core board;
[0015] The core boards with the same first usage rate are grouped as a core board group, and a first frequency reduction temperature corresponding to each of the core board groups is set;
[0016] Each core board group is numbered to obtain a group number of each core board group, and the group number, the first usage rate and the first frequency reduction temperature corresponding to each core board group are associated and stored to obtain a frequency reduction strategy table.
[0017] Optionally, the step of setting the first frequency reduction temperature corresponding to each core board group includes:
[0018] Traversing each of the core board groups in turn, and determining the second core board included in the traversed core board group;
[0019] When determining that the usage rate of the second core board is a preset usage rate, the second operating temperature of the second core board, and adjusting the second operating temperature to obtain an adjusted second operating temperature;
[0020] The adjusted second operating temperature is used as the first frequency reduction temperature corresponding to the traversed core board group, so as to obtain the first frequency reduction temperature corresponding to each core board group after the traversal is completed.
[0021] Optionally, the step of determining the first core board group in which the first core board is located according to the multiple core board groups includes:
[0022] determining a second usage rate of the first core board when the operating temperature of the first core board is a preset temperature;
[0023] Determine a target usage rate among the first usage rates in the frequency reduction strategy table that matches the second usage rate;
[0024] Determine a target group number corresponding to the target usage rate in the frequency reduction strategy table, and use the target group number as the first core board group where the first core board is located.
[0025] Optionally, the step of reducing the operating frequency of the target core board includes:
[0026] Determine the target current operating temperature of the target core board, and determine a temperature level in a preset temperature level table that matches the target current operating temperature;
[0027] Determine a frequency reduction step corresponding to the temperature level in the preset temperature level table, and reduce the operating frequency of the target core board based on the frequency reduction step.
[0028] Optionally, after the step of determining the target current operating temperature of the target core board, the method further includes:
[0029] If the target current temperature is less than the preset maximum temperature, the step of determining a temperature level in the preset temperature level table that matches the target current operating temperature is performed.
[0030] If the target current temperature is greater than or equal to the preset maximum temperature, the operation of the target core board is interrupted, or the target core board is controlled to enter a shutdown state.
[0031] The present application also provides a frequency reduction device for a server, wherein the server includes a plurality of core boards, and the device includes:
[0032] An acquisition module is used to acquire the current operating temperature and frequency reduction temperature corresponding to each core board, wherein each core board is correspondingly provided with a frequency reduction temperature;
[0033] A detection module is used to detect in turn whether each of the core boards meets the preset frequency reduction conditions, and use the core board that meets the preset frequency reduction conditions as the target core board, wherein the preset frequency reduction conditions include that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board;
[0034] A frequency reduction module is used to reduce the operating frequency of the target core board, wherein the operating frequency includes the operating main frequency of the central processing unit of the target core board.
[0035] The present application also provides an electronic device, which is a physical device, and includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the steps of the server frequency reduction method as described above.
[0036] The present application also provides a readable storage medium, the readable storage medium is a computer-readable storage medium, the computer-readable storage medium stores a program for implementing a frequency reduction method of a server, and the program for implementing a frequency reduction method of a server is executed by a processor to implement the steps of the frequency reduction method of the server as described above.
[0037] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned server frequency reduction method when executed by a processor.
[0038] In this application, the current operating temperature and frequency reduction temperature corresponding to each core board are obtained, and a frequency reduction temperature is set correspondingly by each core board, and each core board is detected in turn whether the preset frequency reduction condition is met, and the core board that meets the preset frequency reduction condition is used as the target core board, wherein the preset frequency reduction condition includes that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board, then the target core board whose current operating temperature is greater than or equal to the frequency reduction temperature is frequency reduced, that is, the operating frequency of the target core board is reduced, such as reducing the working main frequency of the central processing unit of the target core board. In this way, compared with the prior art setting a frequency reduction temperature in the server, when the operating temperature of any core board is greater than or equal to this frequency reduction temperature, the core board is frequency reduced, in the embodiment of the present application, each core board is correspondingly set to a frequency reduction temperature, when the current operating temperature of the core board is greater than or equal to its corresponding frequency reduction temperature, the core board is frequency reduced, so that the differentiated frequency reduction of the core board can be achieved by setting different frequency reduction temperatures of the core board. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 This is a flow chart of the first embodiment of the frequency reduction method of the server of the present application;
[0042] Figure 2 This is a schematic diagram of an application scenario in the frequency reduction method of the server in this application;
[0043] Figure 3This is a flow chart of a second embodiment of the frequency reduction method of the server of the present application;
[0044] Figure 4 This is a schematic diagram of the module structure of the frequency reduction device of the server in the embodiment of the present application;
[0045] Figure 5 Schematic diagram of the equipment structure of the hardware operating environment involved in the frequency reduction device of the server in the embodiment of the present application.
[0046] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0047] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.
[0048] Embodiment 1
[0049] Core board downclocking refers to lowering the operating frequency of the core board, that is, lowering the operating frequency of the core board's CPU (Central Processing Unit), thereby reducing the CPU's power consumption and CPU's operating temperature. When the core board's operating temperature (that is, the core board's CPU's operating temperature) is too high, lower the core board's CPU's operating frequency to ensure that the core board can run its business safely and normally without being burned.
[0050] The server contains a core board, which is used to support specific business functions. In order to protect the normal operation of the core board on the server from being burned, existing servers usually adopt a unified frequency reduction strategy for all core boards: a frequency reduction temperature is set in the server, and when the operating temperature of the core board, that is, the temperature of the core board's central processor, is detected to be greater than the frequency reduction temperature, the operating main frequency of the core board's central processor is reduced, thereby reducing the operating temperature of the core board and protecting the core board from being burned. However, such a fixed and single frequency reduction strategy cannot take into account the differences between core boards and achieve differentiated frequency reduction of core boards.
[0051] Usually, under the premise of ensuring the normal operation of the core board and not being burned, the actual operating performance of all core boards should be kept consistent as much as possible. This requires taking into account the differences between the core boards and achieving differentiated frequency reduction of the core boards. For example, in order to keep the actual operating performance of all core boards as consistent as possible, under the same operating temperature, the frequency reduction temperature of the core board with high actual operating performance should be lower than the frequency reduction temperature of the core board with low actual operating performance.
[0052] It is understandable that due to differences in the performance of the core boards themselves or other factors, there may be differences in the actual operating performance of the core boards. For example, assuming that the wind direction of the cooling fan in the server is from right to left, the heat generated by the core board near the right will be blown to the core board near the left, and the CPU load of the core board on the right is greater than that on the left, that is, at the same operating temperature, the actual operating performance of the core board on the right is higher than that of the core board on the left.
[0053] Based on this, the present application proposes a method for reducing the frequency of a server in the first embodiment, please refer to Figure 1 , the server includes a plurality of core boards, and the frequency reduction method of the server includes:
[0054] Step S10, obtaining the current operating temperature and the frequency reduction temperature corresponding to each core board, wherein each core board is correspondingly set with a frequency reduction temperature;
[0055] It is known to those skilled in the art that the current operating temperature of the core board can be the current operating temperature of the CPU of the core board, that is, the current operating temperature of the CPU. In order to keep the actual operating performance of all core boards as consistent as possible, at the same operating temperature, the frequency reduction temperature of the core board with high actual operating performance is set to be lower than the frequency reduction temperature of the core board with low actual operating performance. For example, refer to Figure 2, there are 9 core boards in the server, namely core board 1, core board 2, core board 3, core board 4, core board 5, core board 6, core board 7, core board 8, and core board 9. During the operation of the core boards, the air flow direction of the cooling fan in the server blows from the right core boards to the left core boards. During the operation of the core boards, the heat generated by the right core boards will be blown to the left. That is, under the same temperature condition, the load of the right CPU is greater than that of the left (the hot air flow on the right will cause the CPU of the left core board to heat up), resulting in inconsistent actual performance between the left and right core boards. At this time, the dynamic adjustment of the downclocking strategy can be achieved by setting the downclocking temperature of the right core board to be lower than that of the left core board, so as to ensure that the actual operating performance of all core boards on the server is as consistent as possible. Exemplarily, the downclocking temperatures of core board 1, core board 2, and core board 3 can be set to T1, the downclocking temperatures of core board 4, core board 5, and core board 6 can be set to T2, and the downclocking temperatures of core board 7, core board 8, and core board 9 can be set to T3. Preferably, T1 < T2 < T3, and it is assumed that the current working temperatures of the CPUs of the 9 core boards are [R1, R2, R3, R4, R5, R6, R7, R8, R9]. Then, the current working temperature and downclocking temperature corresponding to each core board obtained in this scenario can be referred to as shown in Table 1.
[0056] Core board Current operating temperature Throttling Temperature Core board 1 R1 T1 Core board 2 R2 T1 Core board 3 R3 T1 Core board 4 R4 T2 Core board 5 R5 T2 Core board 6 R6 T2 Core board 7 R7 T3 Core board 8 R8 T3 Core board 9 R9 T3
[0057] Table 1
[0058] Furthermore, the downclocking temperature of each core board can be set in advance, and the downclocking temperature of each core board is associated and set in the target downclocking strategy table. For example, the core board identifier of each core board is associated and set with the corresponding downclocking temperature in the target downclocking strategy table, so that the corresponding downclocking temperature can be found from the target downclocking strategy table through the core board identifier of each core board.
[0059] Step S20, sequentially detect whether each of the core boards meets the preset downclocking condition, and use the core board that meets the preset downclocking condition as the target core board, where the preset downclocking condition includes that the current working temperature corresponding to the detected core board is greater than or equal to the downclocking temperature corresponding to the detected core board;
[0060] Check one by one whether the current operating temperature of each core board is greater than or equal to its corresponding frequency reduction temperature. If the current operating temperature of a core board is greater than or equal to its corresponding frequency reduction temperature, then this core board is the target core board that meets the preset frequency reduction conditions. For example, based on the example of 9 core boards in the above-mentioned server, assuming that the current operating temperatures (in degrees Celsius) of the CPUs of the 9 core boards are [58.5, 60.5, 65.5, 59.8, 72.1, 57.8, 60.5, 73.5, 81.1], and their corresponding frequency reduction temperatures (in degrees Celsius) are [60, 60, 60, 70, 70, 70, 80, 80, 80], then the target core boards are [core board 2, core board 3, core board 5, core board 9].
[0061] Step S30, reducing the operating frequency of the target core board, wherein the operating frequency includes the main operating frequency of the central processing unit of the target core board.
[0062] For the target core board whose current operating temperature is greater than or equal to the frequency reduction temperature, the operating frequency of the target core board is reduced, that is, the CPU operating main frequency of the target core board is reduced. In the above example, the CPU operating main frequency of core board 2, core board 3, core board 5 and core board 9 is reduced.
[0063] In this embodiment, the current operating temperature and frequency reduction temperature corresponding to each core board are obtained, and a frequency reduction temperature is set correspondingly by each core board, and each core board is detected in turn whether the preset frequency reduction condition is met, and the core board that meets the preset frequency reduction condition is used as the target core board, wherein the preset frequency reduction condition includes that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board, then the target core board whose current operating temperature is greater than or equal to the frequency reduction temperature is frequency reduced, that is, the operating frequency of the target core board is reduced, such as reducing the working main frequency of the central processing unit of the target core board. In this way, compared with the prior art setting a frequency reduction temperature in the server, when the operating temperature of any core board is greater than or equal to this frequency reduction temperature, the core board is frequency reduced, in the embodiment of the present application, each core board is correspondingly set to a frequency reduction temperature, when the current operating temperature of the core board is greater than or equal to its corresponding frequency reduction temperature, the core board is frequency reduced, so that the differentiated frequency reduction of the core board can be achieved by setting different frequency reduction temperatures of the core board.
[0064] In a possible implementation, before the step of obtaining the current operating temperature and the frequency reduction temperature corresponding to each core board according to the upgraded firmware data, the method further includes:
[0065] A10, performing grouping processing on each of the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each of the core board groups to obtain a frequency reduction strategy table;
[0066] As an example, when the CPU temperature of the core board reaches the same operating temperature, the core boards with consistent actual CPU performance can be grouped as a group. The actual performance is consistent, and the difference between the actual performance is less than the preset difference percentage, wherein the preset difference percentage can be arbitrarily set such as 3%, 5%, and further, the CPU usage of the core board can be used as a criterion for judging the actual performance. For example, assuming that when the CPU operating temperature of 9 core boards (core boards 1 to 9) reaches 80 degrees Celsius, the corresponding CPU usage rates are [90%, 91%, 92%, 80%, 81%, 82%, 70%, 71%, 72%], and the preset difference percentage is 3%, then {core board 1, core board 2, core board 3} can be grouped as a core board, {core board 4, core board 5, core board 6} as a core board group, {core board 7, core board 8, core board 9} as a core board group.
[0067] As another example, the core boards can be grouped according to their actual locations. Figure 2 For example, for Figure 2 For the 9 core boards in the system, if the wind direction is from right to left, the core boards in the same column can be grouped as one core board, that is, {core board 1, core board 2, core board 3} as one core board group, {core board 4, core board 5, core board 6}, {core board 7, core board 8, core board 9} as one core board group. If the wind direction is from top to bottom, the core boards in the same row can also be grouped as one group.
[0068] It should be noted that the grouping of the core board can be stored in a grouping table, and the core board identification of the core board is recorded in the group in which it is located. The form of the grouping table can be shown in Table 2 below. In addition, if a grouping table is set in advance in the server, such as a grouping table set in advance by the user, the core board can be grouped again without regrouping the core board, and the core board group in which the core board is located can be determined directly by matching the core board identification.
[0069] Core board grouping Core board identification Group 1 Core board 1, core board 2, core board 3 Group 2 Core board 4, core board 5, core board 6 Group 3 Core board 7, core board 8, core board 9
[0070] Table 2
[0071] To set the frequency reduction temperature of each core board group, it is understandable that each core board can be numbered to obtain the group number of each core board group, and the group number corresponding to each core board group is associated with the frequency reduction temperature and stored in the frequency reduction strategy table. Assuming that the frequency reduction temperatures set for group 1, group 2, and group 3 in the above example are T1, T2, and T3 respectively, the contents included in the frequency reduction strategy table can refer to Table 3. In addition, it should be noted that the frequency reduction strategy table can also be set in advance by the user. If the frequency reduction strategy table is set in advance in the server, the frequency reduction strategy table can be directly obtained. The frequency reduction strategy table in the embodiment of the present application is an exemplary description, and no specific limitation is made to the frequency reduction strategy table.
[0072] Core board grouping Throttling Temperature Group 1 T1 Group 2 T2 Group 3 T3
[0073] Table 3
[0074] A20, traversing each of the core boards in turn, and taking the traversed core board as the first core board;
[0075] A30, determining a first core board group where the first core board is located according to the multiple core board groups, and determining a first frequency reduction temperature corresponding to the first core board group in the frequency reduction strategy table;
[0076] The grouping table can be matched by the core board identification of the first core board identification, so that the first core board group where the first core board is located is determined by matching the frequency reduction strategy table. For example, assuming that the grouping table is shown in Table 2, the frequency reduction strategy table is shown in Table 3. The core board identification of the first core board is core board 1, then the matching grouping table determines that the first core board group is group 1, and then matches the frequency reduction strategy table to determine that the frequency reduction temperature corresponding to group 1 is T1.
[0077] A40: Use the first frequency reduction temperature corresponding to the first core board group as the frequency reduction temperature corresponding to the first core board.
[0078] The first frequency reduction temperature obtained by matching the frequency reduction strategy table is used as the frequency reduction temperature of the first core board. Thus, after traversing all core boards, the frequency reduction temperature of each core board can be determined. It can be understood that after the frequency reduction temperature corresponding to each core board on the server is determined by the present embodiment, the core board identifier corresponding to each core board can be associated with the frequency reduction temperature and stored to obtain the target frequency reduction strategy table, and the target frequency reduction strategy table is stored. The target frequency reduction strategy table can be shown in Table 4. Thus, the frequency reduction temperature corresponding to each core board can be directly obtained by searching the target frequency reduction strategy table to execute step S10.
[0079] Core board identification Throttling Temperature Core board 1, core board 2, core board 3 T1 Core board 4, core board 5, core board 6 T2 Core board 7, core board 8, core board 9 T3
[0080] Table 4
[0081] In an practicable manner, the step of grouping the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each core board group to obtain a frequency reduction strategy table includes:
[0082] Step B10, determining the first usage rate corresponding to each of the core boards when the operating temperature of each of the core boards is a preset temperature;
[0083] The preset temperature can be set by the user in advance or determined by statistical means of experiments. Figure 2 Take the 9 core boards in the example, count the CPU temperature of the core boards in the rightmost column, i.e., core board 1, core board 2, and core board 3, in the preset business application scenario, and take the average value of the CPU temperature obtained by statistics to obtain the preset temperature. Among them, the preset business application scenario can count the CPU temperature of the core boards in several business application scenarios, and select the business application scenario with the highest CPU temperature as the preset business application scenario. For example, the average value of the CPU temperature of the core boards of core boards 1, core board 2, and core board 3 in business application scenario 1 is 40 degrees Celsius, the average value of the CPU temperature of the core boards in business application scenario 2 is 50 degrees Celsius, and the average value of the CPU temperature in business application scenario 3 is 60 degrees Celsius. Then, the preset business application scenario can be business application scenario 3. The CPU temperature of core boards 1, core board 2, and core board 3 in the preset business application scenario can be measured multiple times, and the preset temperature can be obtained by taking the average value. If the CPU temperatures of core board 1, core board 2, and core board 3 in the preset business application scenario in n measurements are {(T1.1, T2.1, T3.1), (T1.2, T2.2, T3.2)......(T1.i, T2.i, T3.i)......(T1.n, T2.n, T3.n)} respectively, then the preset temperature can be set to TA=((T1.1+T2.1+T3.1)+......+(T1.i+T2.i+T3.i)+......+(T1.n, T2.n, T3.n)) / 3*n.
[0084] The preset temperature is recorded as TA. When the operating temperature of each core board is determined to be TA, the first usage rate corresponding to each core board is determined. The usage rate can be the CPU usage rate of the core board. Similarly, for each core board, the CPU operating temperature of the core board can be measured multiple times to reach TA, and the usage rate of the core board can be counted. Then, the average of the counted usage rates can be taken to obtain the first usage rate corresponding to each core board.
[0085] Step B20, grouping the core boards with the same first usage rate as a core board group, and setting a first frequency reduction temperature corresponding to each of the core board groups;
[0086] Among them, the first usage rate is consistent, and the difference between the first usage rates can be less than the preset difference percentage, and the first usage rate is considered to be consistent. Among them, the preset difference percentage can be arbitrarily set such as 3%, 5%. For example, assuming that the CPU operating temperature of 9 core boards (core boards 1-9) reaches TA degrees Celsius, it is statistically obtained that the CPU usage rates corresponding to each core board are [90%, 91%, 92%, 80%, 81%, 82%, 83%, 70%, 71%, 72%], and the preset difference percentage is 3%. Then {core board 1, core board 2, core board 3} can be regarded as a core board group (which can be recorded as group 1), {core board 4, core board 5, core board 6} can be regarded as a core board group (which can be recorded as group 2), and {core board 7, core board 8, core board 9} can be regarded as a core board group (which can be recorded as group 3).
[0087] Set the first frequency reduction temperature corresponding to each core board group. In order to keep the actual operating performance of the core board as consistent as possible, the lower the first usage rate corresponding to the core board group, the higher the frequency reduction temperature of this core board is set. The first usage rate corresponding to group 1 is recorded as UA, the first usage rate corresponding to group 2 is recorded as UB, and the first usage rate corresponding to group 3 is recorded as UC. UA>UB>UC, the frequency reduction temperatures of group 1, group 2 and group 3 can be set to T1, T2, and T3 respectively. T1 <T2<T3。
[0088] Step B30, numbering each core board group to obtain a group number of each core board group, and associating and storing the group number, the first usage rate and the first frequency reduction temperature corresponding to each core board group to obtain a frequency reduction strategy table.
[0089] The frequency reduction strategy table is obtained by associating and storing the group number, the first usage rate and the first frequency reduction temperature corresponding to each core board group. The content of the frequency reduction strategy table may be as shown in Table 5.
[0090] Core board grouping Utilization Throttling Temperature Group 1 UA T1 Group 2 UB T2 Group 2 UC T3
[0091] Table 5
[0092] In this embodiment, when the operating temperature of each core board reaches the same preset temperature, its respective first usage rate is counted, and the core boards with the same first usage rate are grouped as a core board. The same frequency reduction temperature is set for the core boards belonging to the same core board group, that is, for the same operating temperature, different frequency reduction temperatures are set for core boards with different usage rates, thereby realizing dynamic adjustment of the frequency reduction strategy, and the group number corresponding to each of the core board groups, the first usage rate and the first frequency reduction temperature are associated and stored to obtain a frequency reduction strategy table. By looking up the frequency reduction strategy table, the frequency reduction temperature of the core board can be effectively obtained, thereby improving the convenience of obtaining the frequency reduction temperature of the core board.
[0093] In an practicable manner, the step of setting the first frequency reduction temperature corresponding to each core board group includes:
[0094] Step C10, traversing each of the core board groups in turn, and determining the second core board included in the traversed core board group;
[0095] Step C20, determining the second operating temperature of the second core board when the usage rate of the second core board is a preset usage rate, and adjusting the second operating temperature to obtain an adjusted second operating temperature;
[0096] Wherein, the preset usage rate can be the maximum first usage rate among the first usage rates of each core board grouping when the core board CPU operating temperature reaches the preset temperature. Then it can be understood that the second operating temperature of the second core board included in the core board grouping corresponding to the maximum first usage rate is the preset temperature. As in the above example, the preset usage rate is set to the first usage rate UA of grouping 1, and the second operating temperature of the second core board included in grouping 1 is TA. If a core board grouping includes multiple core board groups, the corresponding operating temperatures of each second core board usage rate when reaching the preset usage rate are counted, and the average value is taken as the corresponding second operating temperature when the usage rate of this core board grouping reaches the preset usage rate. And it is also possible to experimentally measure the corresponding operating temperature when the usage rate of the second core board reaches the preset usage rate for multiple times, and then take the average value to obtain the second operating temperature of the second core board. For example, a core board group includes three core boards, namely core board 4, core board 5, and core 6. When the usage rate of core board 4, core board 5, and core board 6 reaches the preset usage rate UA in n measurements, the corresponding operating temperatures are {(T4.1, T5.1, T6.1), (T4.2, T5.2, T6.2)......(T4.i, T5.i, T6.i)......(T4.n, T5.n, T6.n)}, then the second operating temperature TB of the second core board included in this core board group = ((T4.1+T5.1+T6.1)+......+(T4.i+T5.i+T6.i)+......+(T4.n, T5.n, T6.n)) / 3*n.
[0097] It should be noted that the adjustment of the second operating temperature corresponding to each core board group can be to add a preset redundancy value to the second operating temperature, or to multiply the second operating temperature by a preset redundancy coefficient. Preferably, the adjusted second operating temperature is greater than the second operating temperature before adjustment. If the preset redundancy value is a positive value, the preset redundancy coefficient is greater than one. The specific adjustment method is not limited in this embodiment.
[0098] Step C30: Using the adjusted second operating temperature as the first frequency reduction temperature corresponding to the traversed core board group, so as to obtain the first frequency reduction temperature corresponding to each core board group after the traversal is completed.
[0099] It can be seen that after the traversal, the second operating temperature of the core board included in each group is determined. Taking the three core board groups of the above nine core boards as an example, the second operating temperature corresponding to group 1 is recorded as TA, the second operating temperature corresponding to group 2 is recorded as TB, and the second operating temperature corresponding to group 3 is recorded as TC. And the corresponding adjusted second operating temperatures are recorded as T1, T2, and T3, respectively, where T1>TA, T2>TB, T3>TC, and the first frequency reduction temperature corresponding to group 1 is set to T1, the first frequency reduction temperature corresponding to group 2 is set to T2, and the first frequency reduction temperature corresponding to group 3 is set to T3.
[0100] In this embodiment, each of the core board groups is traversed in sequence to determine the second core board included in the traversed core board group; when the utilization rate of the second core board is determined to be the preset utilization rate, the second operating temperature of the second core board is adjusted to obtain the adjusted second operating temperature; the adjusted second operating temperature is used as the first frequency reduction temperature corresponding to the traversed core board group, so as to obtain the first frequency reduction temperature corresponding to each of the core board groups after the traversal is completed. That is, each core board group is adaptively adjusted to the corresponding operating temperature at the same preset utilization rate as its corresponding frequency reduction temperature, so as to ensure that the CPU utilization rate corresponding to the frequency reduction temperature set for each core board is relatively consistent, that is, when the operating temperature of each core board reaches the frequency reduction temperature for frequency reduction, the CPU utilization rate of the core board is kept relatively consistent, which guarantees that the actual operating performance of all core boards on the server remains consistent to the greatest extent possible.
[0101] In an implementable manner, the step of determining the first core board group in which the first core board is located according to the plurality of core board groups includes:
[0102] Step D10, determining a second usage rate of the first core board when the operating temperature of the first core board is a preset temperature;
[0103] Step D20, determining a target usage rate that matches the second usage rate among the first usage rates in the frequency reduction strategy table;
[0104] Step D30, determining a target group number corresponding to the target usage rate in the frequency reduction strategy table, and using the target group number as the first core board group where the first core board is located.
[0105] Among them, the matching of the second usage rate with each first usage rate can be to determine the first sub-usage rate in each first usage rate that is greater than or equal to the second usage rate, and determine the largest first sub-usage rate in each first sub-usage rate as the target usage rate in each first usage rate that matches the second usage rate. For example, with the above-mentioned 9 core boards, the frequency reduction strategy table can be shown in Table 5, wherein UA>UB>UC, assuming that the second usage rate of the first core board is greater than or equal to UA, then the target usage rate is UA, and the corresponding target group number is group 1, the second usage rate of the first core board is greater than or equal to UB and less than UA, then the target usage rate is UB, and the corresponding target group number is group 2, the second usage rate of the first core board is greater than or equal to UC and less than UB, then the target usage rate is UC, and the corresponding target group number is group 3.
[0106] In order to help understand the technical concept or technical principle of the present application, a specific embodiment is listed:
[0107] The frequency reduction process in this specific embodiment is as follows:
[0108] Reference Figure 2 , insert 9 core boards into the server, and then all the core boards run the customer's business at the same time.
[0109] During the operation of the core board, the wind flows from the right to the left, that is, the heat generated by the right core board will be blown to the left. That is, under the same temperature, the load of the CPU on the right is greater than that on the left. The 9 core boards are divided into three core board groups. The core boards in the rightmost column are recorded as core board group 1, the core boards in the middle column are recorded as core board group 2, and the core boards in the leftmost column are recorded as core board group 3.
[0110] (1) Count the CPU temperature of the core board in the rightmost column under the customer business application scenario, record this temperature value as TA, set the frequency reduction temperature to T1, T1 is slightly higher than TA, and record the CPU usage at this temperature, recorded as UA. When the temperature of the core board exceeds T1, the CPU will be frequency reduced, the same below.
[0111] (2) When the CPU usage of the core board in the middle column is UA, the CPU temperature at this time is recorded as TB, the frequency reduction temperature is set to T2, which is slightly higher than TB, and the CPU usage is recorded as UB when the temperature is TA.
[0112] (3) When the CPU usage of the core board in the leftmost column is UA, the CPU temperature at this time is recorded as TC, and the frequency reduction temperature is set to T3, which is slightly higher than TC. At the same time, the CPU usage is recorded as UC when the temperature is TA.
[0113] (4) Combined with the statistical values of the first three steps, three sets of frequency reduction strategies are preset in the core board
[0114] Strategy 1, the corresponding temperature is TA, the CPU usage is UA, and the frequency reduction temperature is T1
[0115] Strategy 2, the corresponding temperature is TA, the CPU usage is UB, and the frequency reduction temperature is T2
[0116] Strategy 3, the corresponding temperature is TA, the CPU usage is UC, and the frequency reduction temperature is T3
[0117] The core board can work normally at three temperatures: TA, TB, and TC. It can also work normally before the temperature drops below T3, and will not cause the core board to burn out due to high temperature. <TB<TC
[0118] (5) When the core board is inserted into the server to run customer business, the CPU usage rate is determined when the core board reaches the TA temperature.
[0119] If the CPU usage is UA, the throttling temperature is adjusted to T1.
[0120] If the CPU usage is UB, adjust the throttling temperature to T2.
[0121] If the CPU usage is UC, adjust the throttling temperature to T3.
[0122] If the CPU usage is greater than UB and less than UA, the frequency reduction temperature is adjusted to T2.
[0123] If the CPU usage is greater than UC and less than UB, the frequency reduction temperature is adjusted to T3.
[0124] It should be noted that the above specific embodiments are only used to understand the present application and do not constitute a limitation on the frequency reduction method of the server of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0125] Embodiment 2
[0126] Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , the step of reducing the operating frequency of the target core board comprises:
[0127] Step E10, determining the target current operating temperature of the target core board, and determining a temperature level in a preset temperature level table that matches the target current operating temperature;
[0128] Step E20, determining the frequency reduction step corresponding to the temperature level in the preset temperature level table, and reducing the operating frequency of the target core board based on the frequency reduction step.
[0129] In the present embodiment, the temperature level table may include the frequency reduction pace corresponding to the temperature level of different operating temperatures. Generally, the higher the operating temperature, the larger the corresponding frequency reduction pace, and the faster the operating frequency of the target core board decreases. For example, the temperature level of the operating temperature can be divided into three levels: the first level (operating temperature 70-80 degrees Celsius), the second level (spacing 80-90 degrees Celsius), and the third level (90-100 degrees Celsius). If the target current operating temperature of the target core board is in the first temperature level, the frequency reduction pace can be 5% of the current operating frequency, if the target current operating temperature of the target core board is in the second temperature level, the frequency reduction pace can be 8% of the current operating frequency, and if the target current operating temperature of the target core board is in the third temperature level, the frequency reduction pace can be 10% of the current operating frequency. In other words, the higher the current operating temperature, the larger the corresponding frequency reduction pace.
[0130] In this embodiment, the target current operating temperature of the target core board is determined, and the temperature level in the preset temperature level table that matches the target current operating temperature is determined; the frequency reduction step corresponding to the temperature level in the preset temperature level table is determined, and the operating frequency of the target core board is reduced based on the frequency reduction step. Different temperature levels of the target current temperature correspond to different frequency reduction steps. The higher the current operating temperature, the larger the corresponding frequency reduction step, and the more the operating frequency of the core board is reduced, thereby improving the flexibility of frequency reduction and ensuring the safe operation of the core board without being burned.
[0131] In a possible implementation manner, after the step of determining the target current operating temperature of the target core board, the method further includes:
[0132] Step E30: if the target current temperature is lower than the preset maximum temperature, a step of determining a temperature level in a preset temperature level table that matches the target current operating temperature is performed.
[0133] Step E40: If the target current temperature is greater than or equal to the preset maximum temperature, interrupt the operation of the target core board, or control the target core board to enter a shutdown state.
[0134] In this embodiment, if the target current temperature is greater than or equal to the preset maximum temperature, such as 95 degrees Celsius, the operation of the target core board is interrupted, or the target core board is controlled to enter a shutdown state, that is, the core board operating temperature is greater than or equal to the preset maximum temperature. When an abnormal operating temperature occurs, the core board is controlled to stop running, further avoiding the phenomenon of continuing to run the business when the core board operating temperature is abnormal, which may cause the core board to be burned, thereby ensuring the safe operation of the core board.
[0135] Embodiment 3
[0136] The embodiment of the present invention also provides a frequency reduction device for a server, please refer to Figure 4 , the server includes a plurality of core boards, and the device includes:
[0137] The acquisition module 10 is used to acquire the current operating temperature and the frequency reduction temperature corresponding to each core board, wherein each core board is correspondingly provided with a frequency reduction temperature;
[0138] The detection module 20 is used to detect in turn whether each of the core boards meets the preset frequency reduction conditions, and use the core board that meets the preset frequency reduction conditions as the target core board, wherein the preset frequency reduction conditions include that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board;
[0139] The frequency reduction module 30 is used to reduce the operating frequency of the target core board, wherein the operating frequency includes the operating main frequency of the central processing unit of the target core board.
[0140] The frequency reduction device of the server further includes a grouping module, and the grouping module is used for:
[0141] Performing group processing on each of the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each of the core board groups to obtain a frequency reduction strategy table;
[0142] Traversing each of the core boards in turn, and taking the traversed core board as the first core board;
[0143] Determine a first core board group where the first core board is located according to the multiple core board groups, and determine a first frequency reduction temperature corresponding to the first core board group in the frequency reduction strategy table;
[0144] The first frequency reduction temperature corresponding to the first core board group is used as the frequency reduction temperature corresponding to the first core board.
[0145] The grouping module is further used for:
[0146] When it is determined that the operating temperature of each core board is a preset temperature, the first usage rate corresponding to each core board;
[0147] The core boards with the same first usage rate are grouped as a core board group, and a first frequency reduction temperature corresponding to each of the core board groups is set;
[0148] Each core board group is numbered to obtain a group number of each core board group, and the group number, the first usage rate and the first frequency reduction temperature corresponding to each core board group are associated and stored to obtain a frequency reduction strategy table.
[0149] The grouping module is further used for:
[0150] Traversing each of the core board groups in turn, and determining the second core board included in the traversed core board group;
[0151] When determining that the usage rate of the second core board is a preset usage rate, the second operating temperature of the second core board, and adjusting the second operating temperature to obtain an adjusted second operating temperature;
[0152] The adjusted second operating temperature is used as the first frequency reduction temperature corresponding to the traversed core board group, so as to obtain the first frequency reduction temperature corresponding to each core board group after the traversal is completed.
[0153] The grouping module is further used for:
[0154] determining a second usage rate of the first core board when the operating temperature of the first core board is a preset temperature;
[0155] Determine a target usage rate among the first usage rates in the frequency reduction strategy table that matches the second usage rate;
[0156] Determine a target group number corresponding to the target usage rate in the frequency reduction strategy table, and use the target group number as the first core board group where the first core board is located.
[0157] The frequency reduction module is further used for:
[0158] Determine the target current operating temperature of the target core board, and determine a temperature level in a preset temperature level table that matches the target current operating temperature;
[0159] Determine a frequency reduction step corresponding to the temperature level in the preset temperature level table, and reduce the operating frequency of the target core board based on the frequency reduction step.
[0160] The frequency reduction module is further used for:
[0161] If the target current temperature is less than the preset maximum temperature, the step of determining a temperature level in the preset temperature level table that matches the target current operating temperature is performed.
[0162] If the target current temperature is greater than or equal to the preset maximum temperature, the operation of the target core board is interrupted, or the target core board is controlled to enter a shutdown state.
[0163] The frequency reduction device of the server provided by the present invention adopts the frequency reduction method of the server in the above-mentioned embodiment 1 or embodiment 2, which can solve the technical problem of how to achieve differentiated frequency reduction of the core board when there are multiple core boards on the server. Compared with the prior art, the beneficial effect of the frequency reduction device of the server provided by the embodiment of the present invention is the same as the beneficial effect of the frequency reduction method of the server provided by the above-mentioned embodiment, and other technical features in the frequency reduction device of the server are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0164] Embodiment 4
[0165] An embodiment of the present invention provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the server frequency reduction method in the above-mentioned embodiment one.
[0166] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may be a BMC (Baseboard Management Controller) or the like. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0167] like Figure 5 As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM 1002) or a program loaded from a storage device into a random access memory (RAM 1004). In RAM 1004, various programs and data required for the operation of the electronic device are also stored. The processing device 1001, ROM 1002, and RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface is also connected to the bus 1005.
[0168] Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0169] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0170] The electronic device provided by the present invention adopts the frequency reduction method of the server in the above embodiment, which can solve the technical problem of how to achieve differentiated frequency reduction of the core board when there are multiple core boards on the server. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of the frequency reduction method of the server provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0171] It should be understood that the various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0172] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0173] Embodiment 5
[0174] An embodiment of the present invention provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the frequency reduction method of the server in the above-mentioned embodiment 1.
[0175] The computer-readable storage medium provided in the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0176] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0177] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by an electronic device, the electronic device: obtains the current operating temperature and frequency reduction temperature corresponding to each of the core boards, wherein each of the core boards is correspondingly provided with a frequency reduction temperature; sequentially detects whether each of the core boards meets the preset frequency reduction conditions, and takes the core board that meets the preset frequency reduction conditions as the target core board, wherein the preset frequency reduction conditions include that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board; reduces the operating frequency of the target core board, wherein the operating frequency includes the operating main frequency of the central processing unit of the target core board.
[0178] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0179] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0180] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.
[0181] The readable storage medium provided by the present invention is a computer-readable storage medium, which stores computer-readable program instructions for executing the frequency reduction method of the above-mentioned server, and can solve the technical problem of how to achieve differentiated frequency reduction of the core board when there are multiple core boards on the server. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present invention are the same as the beneficial effects of the frequency reduction method of the server provided in the above-mentioned embodiment one or embodiment two, and will not be repeated here.
[0182] Embodiment 6
[0183] An embodiment of the present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the server frequency reduction method as described above are implemented.
[0184] The computer program product provided by the present application can solve the technical problem of how to achieve differentiated frequency reduction of core boards when there are multiple core boards on the server. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present invention are the same as the beneficial effects of the frequency reduction method of the server provided by the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.
[0185] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for reducing the frequency of a server, characterized in that: The server includes a plurality of core boards, and the frequency reduction method of the server includes: Obtaining the current operating temperature and the frequency reduction temperature corresponding to each core board, wherein each core board is correspondingly provided with a frequency reduction temperature; Detecting in sequence whether each of the core boards meets the preset frequency reduction conditions, and taking the core board that meets the preset frequency reduction conditions as the target core board, wherein the preset frequency reduction conditions include that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board; The operating frequency of the target core board is reduced, wherein the operating frequency includes the operating main frequency of the central processing unit of the target core board.
2. The method for reducing the frequency of a server according to claim 1, characterized in that: Before the step of obtaining the current operating temperature and the frequency reduction temperature corresponding to each core board, the method further includes: Performing group processing on each of the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each of the core board groups to obtain a frequency reduction strategy table; Traversing each of the core boards in turn, and taking the traversed core board as the first core board; Determine a first core board group where the first core board is located according to the multiple core board groups, and determine a first frequency reduction temperature corresponding to the first core board group in the frequency reduction strategy table; The first frequency reduction temperature corresponding to the first core board group is used as the frequency reduction temperature corresponding to the first core board.
3. The method for reducing the frequency of a server according to claim 2, characterized in that: The step of grouping the core boards to obtain a plurality of core board groups, and setting a first frequency reduction temperature corresponding to each core board group to obtain a frequency reduction strategy table includes: When it is determined that the operating temperature of each core board is a preset temperature, the first usage rate corresponding to each core board; The core boards with the same first usage rate are grouped as a core board group, and a first frequency reduction temperature corresponding to each of the core board groups is set; Each core board group is numbered to obtain a group number of each core board group, and the group number, the first usage rate and the first frequency reduction temperature corresponding to each core board group are associated and stored to obtain a frequency reduction strategy table.
4. The method for reducing the frequency of a server according to claim 3, characterized in that: The step of setting the first frequency reduction temperature corresponding to each core board group includes: Traversing each of the core board groups in turn, and determining the second core board included in the traversed core board group; When determining that the usage rate of the second core board is a preset usage rate, the second operating temperature of the second core board, and adjusting the second operating temperature to obtain an adjusted second operating temperature; The adjusted second operating temperature is used as the first frequency reduction temperature corresponding to the traversed core board group, so as to obtain the first frequency reduction temperature corresponding to each core board group after the traversal is completed.
5. The method for reducing the frequency of a server according to claim 3, characterized in that: The step of determining the first core board group where the first core board is located according to the plurality of core board groups comprises: determining a second usage rate of the first core board when the operating temperature of the first core board is a preset temperature; Determine a target usage rate among the first usage rates in the frequency reduction strategy table that matches the second usage rate; Determine a target group number corresponding to the target usage rate in the frequency reduction strategy table, and use the target group number as the first core board group where the first core board is located.
6. The method for reducing the frequency of a server according to any one of claims 1 to 5, characterized in that: The step of reducing the operating frequency of the target core board comprises: Determine the target current operating temperature of the target core board, and determine a temperature level in a preset temperature level table that matches the target current operating temperature; Determine a frequency reduction step corresponding to the temperature level in the preset temperature level table, and reduce the operating frequency of the target core board based on the frequency reduction step.
7. The method for reducing the frequency of a server according to claim 6, characterized in that: After the step of determining the target current operating temperature of the target core board, the method further comprises: If the target current temperature is less than the preset maximum temperature, the step of determining a temperature level in the preset temperature level table that matches the target current operating temperature is performed. If the target current temperature is greater than or equal to the preset maximum temperature, the operation of the target core board is interrupted, or the target core board is controlled to enter a shutdown state.
8. A frequency reduction device for a server, characterized in that: The server includes a plurality of core boards, and the device includes: An acquisition module is used to acquire the current operating temperature and frequency reduction temperature corresponding to each core board, wherein each core board is correspondingly provided with a frequency reduction temperature; A detection module is used to detect in turn whether each of the core boards meets the preset frequency reduction conditions, and use the core board that meets the preset frequency reduction conditions as the target core board, wherein the preset frequency reduction conditions include that the current operating temperature corresponding to the detected core board is greater than or equal to the frequency reduction temperature corresponding to the detected core board; A frequency reduction module is used to reduce the operating frequency of the target core board, wherein the operating frequency includes the operating main frequency of the central processing unit of the target core board.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, 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 steps of the server frequency reduction method according to any one of claims 1 to 7.
10. A readable storage medium, characterized in that: The readable storage medium is a computer-readable storage medium, on which is stored a program for implementing a frequency reduction method for a server, and the program for implementing a frequency reduction method for a server is executed by a processor to implement the steps of the frequency reduction method for a server as described in any one of claims 1 to 7.