Cooling control method and system based on server process
By establishing a correlation model of server process utilization and temperature, and identifying and controlling server temperature in real time, the problem of poor server cooling effect in the existing technology is solved, and effective control of server temperature and stability of processing process is achieved.
Patent Information
- Application Number
- CN202411605610.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The server cooling method in the prior art is poor, which makes it difficult to effectively control the server temperature and affects the process processing efficiency.
By analyzing the server's historical process records and usage rates, establish a model of the relationship between process type and usage rates and the correlation model of usage rates and temperatures, identify the highest temperature under server load in real time, and perform cooling control.
It realizes effective control of server temperature, avoids processor frequency reduction problems caused by high temperature, and ensures the stability of the server and the performance of the processing process.
Smart Images

Figure CN119440199A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server temperature control, and in particular to a server process-based temperature reduction control method and system. Background Art
[0002] Large servers need to process a large number of processes, which will generate a lot of heat and cause the server temperature to rise. The general server temperature control method is constant temperature and humidity, but the constant temperature and continuous cooling method is more expensive during the server's non-busy hours, which will waste resources. The temperature detection cooling method will cause the processor to reduce its frequency due to high temperature and affect the process processing efficiency. The server cooling method of the existing technology is not effective. Summary of the invention
[0003] The present invention provides a server process-based temperature reduction control method, which is used to solve the problem that the server temperature reduction method in the prior art has a poor effect.
[0004] A first aspect of the present invention provides a temperature reduction control method based on a server process, comprising: Obtain the historical process records and usage rate changes of the server, and identify the process type of each historical process; determine the changes in the combination of the server processing process types over time based on the historical process records, associate them with the usage rate at the corresponding time, establish a relationship model between the combination of each process type and the usage rate, and obtain a first relationship model; Obtain the data of the change of the server temperature over time, and establish a correlation model between the usage rate and the temperature according to the change of the usage rate, so as to obtain a second relationship model; Obtain the current server load, traverse all process type combinations according to the server load, and identify the highest utilization rate under all process type combinations according to the first relationship model; based on the second relationship model, identify the maximum server utilization rate to obtain the corresponding predicted server temperature, and perform corresponding cooling control on the server.
[0005] Optionally, traversing all combinations of process types according to the server load and identifying the highest usage rate under all combinations of process types according to the first relationship model is specifically: The number of cores of the server processor is obtained, and the process type combinations of the server load are traversed by the number of cores according to the process priority, each process type combination is substituted into the first relationship model, and the corresponding highest utilization rate is identified.
[0006] Optionally, the step of substituting each process type combination into the first relationship model and identifying the corresponding highest usage rate is specifically: substituting each process combination into a usage rate correction model to obtain an overall usage rate, and the usage rate correction model is specifically: ; in, is the overall utilization rate, is the number of processes that can be processed simultaneously on a single core, is the number of cores in the server, is the usage rate of the nth process in the mth core, The length of the time slice allocated to the nth process on the mth core.
[0007] The second aspect of the present application provides a temperature reduction control system based on a server process, comprising: A process and usage rate relationship establishment module is used to obtain the historical process records and usage rate changes of the server and identify the process type of each historical process; determine the changes in the combination of server processing process types over time based on the historical process records, associate them with the usage rate at the corresponding time, establish a relationship model between the combination of each process type and the usage rate, and obtain a first relationship model; A usage rate and temperature relationship establishment module is used to obtain the temperature change data of the server over time, and establish a correlation model between the usage rate and the temperature according to the change of the usage rate to obtain a second relationship model; The server cooling control module is used to obtain the current server load status, traverse all process type combinations according to the server load, and identify the highest utilization rate under all process type combinations according to the first relationship model; based on the second relationship model, identify the maximum server utilization rate to obtain the corresponding predicted server temperature, and perform corresponding cooling control on the server.
[0008] Optionally, in the server cooling control module, all process type combinations are traversed according to the server load, and the highest usage rate under all process type combinations is identified according to the first relationship model, specifically: The number of cores of the server processor is obtained, and the process type combinations of the server load are traversed by the number of cores according to the process priority, each process type combination is substituted into the first relationship model, and the corresponding highest utilization rate is identified.
[0009] Optionally, in the server cooling control module, each process type combination is substituted into the first relationship model, and the corresponding highest usage rate is identified, specifically: each process combination is substituted into the usage rate correction model to obtain the overall usage rate, and the usage rate correction model is specifically: ; in, is the overall utilization rate, is the number of processes that can be processed simultaneously on a single core, is the number of cores in the server, is the usage rate of the nth process in the mth core, The length of the time slice allocated to the nth process on the mth core.
[0010] The third aspect of the present application provides a cooling control method device based on a server process, the device comprising a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute a server process-based temperature reduction control method as described in any one of the first aspects of the present invention according to the instructions in the program code.
[0011] The fourth aspect of the present application provides a computer-readable storage medium, which is used to store program code, and the program code is used to execute a server process-based temperature reduction control method as described in any one of the first aspects of the present invention.
[0012] It can be seen from the above technical scheme that the present invention has the following advantages: by analyzing the historical process records and usage rates of the server to construct a relationship model between process type and usage rate, based on the temperature change of the server, a relationship model between usage rate and temperature is established, and the real-time server load conditions are substituted into each relationship model to identify the maximum temperature that may be reached under the current server load, and perform cooling control in advance, so that the temperature of the server can be effectively controlled to avoid affecting the performance of the server processing process and ensure the stability of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0014] Figure 1 It is a flow chart of a cooling control method based on a server process; Figure 2 This is a structural diagram of a cooling control system based on a server process. DETAILED DESCRIPTION
[0015] In order to make the purpose, features and advantages of the present invention more obvious and easy to understand, the technical solutions 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 embodiments described below 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 are within the scope of protection of the present invention.
[0016] The present invention provides a server process-based temperature reduction control method, which is used to solve the problem that the server temperature reduction method in the prior art has a poor effect.
[0017] See also Figure 1 , Figure 1 The present invention provides a first flow chart of a server process-based temperature reduction control method according to an embodiment of the present invention.
[0018] S100, obtaining historical process records and usage rate changes of the server, and identifying the process type of each historical process; determining the change of the combination of the server processing process types over time according to the historical process records, correlating with the usage rate at the corresponding time, establishing a relationship model between the combination of each process type and the usage rate, and obtaining a first relationship model; It should be noted that the server can record the content of the process being processed. For Windows servers, to monitor and view the content of the process currently being processed by the server, you can use the process monitoring tool and view the DLL file called by the process. For Linux servers, there are more diverse ways to view the process. You can use commands to view process information from different perspectives, including process status, system resource usage, and the derivative relationship between processes. The server's historical process records will record the processing time of each process. Different cores of the processor process different processes, forming a combination of process types that are processed simultaneously. In large servers, its processes can be divided into background processes, server processes, and user processes. Background processes run inside the database and perform various background tasks, such as instance recovery, log writing, and archiving. The server process is responsible for processing client connections and requests. When a client connects to the database, a server process will be assigned to process the client's request to ensure the correctness and consistency of the data. User processes refer to applications or tools that connect to the Oracle database, which interact with the database through server processes to perform operations such as queries and updates. The processor utilization of each process running on the server can vary greatly, depending on the needs of each process and the allocation of system resources. For example, some processes may require more resources to perform complex calculations or data processing tasks, while other processes may only need fewer resources to perform simple tasks. The utilization of the server changes as the utilization changes over time.
[0019] Based on the processing time record of each process and the process type of each process in the historical process record, the process type combination processed simultaneously at each time can be obtained, and the process type combination and the utilization rate can be associated with each other according to the relationship between the utilization rate and time. A relationship model between each process type combination and the utilization rate can be established in a form similar to solving a set of equations, or a neural network can be used to establish the relationship between the two data to obtain a first relationship model. Subsequently, each combination type can be substituted into the first relationship model to predict the server utilization rate. As the server processes become more diverse, processes of the same type may also have different processor utilization rates. Therefore, the corresponding utilization rate can be further calculated based on different process contents. The utilization rate is also related to server performance. Therefore, if the server is reconfigured and the hardware is updated, the first relationship model needs to be reestablished.
[0020] S200, obtaining data on changes in server temperature over time, and establishing a correlation model between usage rate and temperature according to changes in usage rate, to obtain a second relationship model; It should be noted that when the processor handles different processes, if these processes have different resource requirements for the processor, such as computational complexity, memory access mode, etc., then the heat generation of the processor will also be different. For example, when performing resource-intensive tasks such as intensive computing or graphics processing, the processor requires higher computing power and higher power consumption, and therefore generates more heat. A temperature sensor can be set in the server to detect and record the server temperature in real time, and generate a curve of the temperature changing over time. The server utilization rate also has a curve of changing over time. Based on the relationship of the same time, the temperature and utilization rate are associated with each other. A neural network can be used to establish a relationship between the two data, and a correlation model between the utilization rate and the temperature is established to obtain a second relationship model. The utilization rate can be substituted into the second relationship model to obtain the corresponding temperature.
[0021] S300, obtain the current server load status, traverse all process type combinations according to the server load, and identify the highest utilization rate under all process type combinations according to the first relationship model; based on the second relationship model, identify the maximum server utilization rate to obtain the corresponding predicted server temperature, and perform corresponding cooling control on the server.
[0022] It should be noted that when the server is processing multiple processes at the same time, the processes to be processed will queue up for processing, and the server load is the number of processes currently to be processed; the server can obtain the load situation, obtain the specific content and type of the processes to be processed, combine different types of processes, obtain multiple process type combinations and then insert them into the first relationship model, traverse the usage rates corresponding to all process type combinations, and compare them to identify the highest usage rate; substitute the highest usage rate into the second relationship model to obtain the corresponding server temperature, which is the highest temperature that the subsequent server may reach. The server temperature is controlled at the highest temperature to ensure that high temperature will not occur when the subsequent server processes the process, and the temperature is lowered in advance at the highest temperature to ensure the safety of the server temperature.
[0023] In this embodiment, a relationship model between process type and usage rate is constructed by analyzing the historical process records and usage rate of the server, and a relationship model between usage rate and temperature is established based on the temperature change of the server. The real-time server load situation is substituted into each relationship model to identify the maximum temperature that may be reached under the current server load, and cool down control is performed in advance, so that the temperature of the server can be effectively controlled to avoid affecting the performance of the server processing process and ensure the stability of the server.
[0024] The above is a detailed description of the first embodiment of a cooling control method based on a server process provided by the present application. The following is a detailed description of the second embodiment of a cooling control method based on a server process provided by the present application.
[0025] In this embodiment, a cooling control method based on a server process is further provided. In the aforementioned step S300, all process type combinations are traversed according to the server load, and the highest usage rate under all process type combinations is identified according to the first relationship model, specifically: Obtain the number of cores of the server processor, traverse the process type combinations of the server load according to the process priority and the number of cores, substitute each process type combination into the first relationship model, and identify the corresponding highest usage rate; It should be noted that the server's processor processes multiple processes with multiple cores. It will select a process from the ready queue according to the algorithm of the system kernel and assign the processor to it to achieve concurrent execution of the processes. Processor scheduling is completed by the "short-term scheduler" in the operating system. When the processor is idle, the short-term scheduler will select a process from the ready queue in the memory and assign it to the processor for execution. The scheduling will be based on the process priority. Different processes have different priorities. These priorities determine when they run and how many processor time slices they can get. The computing resources required for processes of the same priority may also be different. The number of cores of the server processor determines the number of processes that can be processed simultaneously. Although time slice rotation is used to achieve simultaneous processing of multiple processes exceeding the number of cores, in fact, each core at each moment The core can only process one process, that is to say, in the same scheduling cycle, the process with high priority occupies a long time, and the process with low priority occupies a short time. In the process of allocating time slices in rotation, the high-priority process is allocated a longer time slice, so it can be processed first. Therefore, in the process of scheduling processes according to priority, according to the load situation, when the number of processes with the highest priority is less than or equal to the number of processor cores, the high-priority processes will be evenly distributed to different processor cores as much as possible to realize the priority processing of processes. If the same priority is processed on the same core, the priority cannot be realized. Different systems have different priority process scheduling rules. The load is combined based on the process priority scheduling rules preset by the server to obtain the process type combination that is prioritized for the current load, and then substituted into the first relationship model to identify the highest utilization rate.
[0026] Further, the step of substituting each process type combination into the first relationship model and identifying the corresponding highest usage rate is specifically: substituting each process combination into the usage rate correction model to obtain the overall usage rate, and the usage rate correction model is specifically: ; in, is the overall utilization rate, is the number of processes that can be processed simultaneously on a single core, is the number of cores in the server, is the usage rate of the nth process in the mth core, The length of the time slice allocated to the nth process in the mth core; It should be noted that, when the server in the aforementioned step S100 has a small number of loads, it may not use the time slice rotation form to achieve simultaneous processing of multiple processes on one core. When the number of loads exceeds several times the number of cores, the system kernel and scheduling algorithm based on the process priority can determine the length of the time slice allocated to the process, and the rotation period of the processor time slice is between tens to hundreds of milliseconds. The temperature finally presented by the server will not fluctuate frequently between milliseconds due to the difference in processes under the time slice rotation, but because the rotation speed of the time slice is faster, the utilization rate of each process can be averaged over a period of time based on the time slice length allocation, and the actual utilization rate of the server at a macro level should be reflected in the overall utilization rate after the average; the first relationship model established in the aforementioned step S100 is the relationship between the process type combination and the utilization rate. During the establishment process, the influence of each process type on the utilization rate can be further analyzed, and then the utilization rate corresponding to each process of each core can be substituted into the utilization rate correction model, and the utilization rate of each process can be averaged according to the priority rules preset by the system to calculate the final overall utilization rate.
[0027] The above is a detailed description of a server process-based cooling control method according to the first aspect of the present application. The following is a detailed description of an embodiment of a server process-based cooling control system according to the second aspect of the present application.
[0028] See also Figure 2 , Figure 2 This embodiment provides a cooling control system based on a server process, including: The process and usage rate relationship establishment module 10 is used to obtain the historical process records and usage rate changes of the server, and identify the process type of each historical process; determine the change of the combination of the server processing process type over time according to the historical process records, associate it with the usage rate at the corresponding time, establish a relationship model between the combination of each process type and the usage rate, and obtain a first relationship model; The usage rate and temperature relationship establishment module 20 is used to obtain the temperature change data of the server over time, and establish a correlation model between the usage rate and the temperature according to the change of the usage rate to obtain a second relationship model; The server cooling control module 30 is used to obtain the current server load status, traverse all process type combinations according to the server load, and identify the highest utilization rate under all process type combinations according to the first relationship model; based on the second relationship model, identify the maximum server utilization rate to obtain the corresponding predicted server temperature, and perform corresponding cooling control on the server.
[0029] Furthermore, in the server cooling control module 30, all process type combinations are traversed according to the server load, and the highest usage rate under all process type combinations is identified according to the first relationship model, specifically: The number of cores of the server processor is obtained, and the process type combinations of the server load are traversed by the number of cores according to the process priority, each process type combination is substituted into the first relationship model, and the corresponding highest utilization rate is identified.
[0030] Furthermore, in the server cooling control module 30, each process type combination is substituted into the first relationship model, and the corresponding highest usage rate is identified, specifically: each process combination is substituted into the usage rate correction model to obtain the overall usage rate, and the usage rate correction model is specifically: ; in, is the overall utilization rate, is the number of processes that can be processed simultaneously on a single core, is the number of cores in the server, is the usage rate of the nth process in the mth core, The length of the time slice allocated to the nth process on the mth core.
[0031] The third aspect of the present application also provides a cooling control method device based on a server process, including a processor and a memory: the memory is used to store program code and transmit the program code to the processor; the processor is used to execute the above-mentioned cooling control method based on a server process according to the instructions in the program code.
[0032] A fourth aspect of the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium is used to store program code, and the program code is used to execute the above-mentioned server process-based temperature reduction control method.
[0033] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0034] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0035] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0036] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0037] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0038] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cooling control method based on server process, characterized in that include: Obtain the historical process records and usage changes of the server, and identify the process type of each historical process; Determine the change of the combination of the server processing process types over time according to the historical process records, associate it with the usage rate at the corresponding time, establish a relationship model between the combination of each process type and the usage rate, and obtain a first relationship model; Obtain the data of the change of the server temperature over time, and establish a correlation model between the usage rate and the temperature according to the change of the usage rate, so as to obtain a second relationship model; Obtain the current server load, traverse all process type combinations according to the server load, and identify the highest usage rate under all process type combinations according to the first relationship model; Based on the second relationship model, the maximum server utilization rate is identified to obtain the corresponding predicted server temperature, and corresponding cooling control is performed on the server.
2. A cooling control method based on a server process according to claim 1, characterized in that: The method of traversing all process type combinations according to the server load and identifying the highest usage rate under all process type combinations according to the first relationship model is specifically as follows: The number of cores of the server processor is obtained, and the process type combinations of the server load are traversed by the number of cores according to the process priority, each process type combination is substituted into the first relationship model, and the corresponding highest utilization rate is identified.
3. A cooling control method based on server process according to claim 2, characterized in that: Substituting each process type combination into the first relationship model and identifying the corresponding highest usage rate is specifically: substituting each process combination into the usage rate correction model to obtain the overall usage rate. The usage rate correction model is specifically: ; in, is the overall utilization rate, is the number of processes that can be processed simultaneously on a single core, is the number of cores in the server, is the usage rate of the nth process in the mth core, The length of the time slice allocated to the nth process on the mth core.
4. A cooling control system based on a server process, characterized in that: include: The process and usage rate relationship establishment module is used to obtain the historical process records and usage rate changes of the server and identify the process type of each historical process; Determine the change of the combination of the server processing process types over time according to the historical process records, associate it with the usage rate at the corresponding time, establish a relationship model between the combination of each process type and the usage rate, and obtain a first relationship model; A usage rate and temperature relationship establishment module is used to obtain the temperature change data of the server over time, and establish a correlation model between the usage rate and the temperature according to the change of the usage rate to obtain a second relationship model; A server cooling control module is used to obtain the current server load, traverse all process type combinations according to the server load, and identify the highest usage rate under all process type combinations according to the first relationship model; Based on the second relationship model, the maximum server utilization rate is identified to obtain the corresponding predicted server temperature, and corresponding cooling control is performed on the server.
5. A temperature reduction control system based on a server process according to claim 4, characterized in that: In the server cooling control module, all process type combinations are traversed according to the server load, and the highest usage rate under all process type combinations is identified according to the first relationship model, specifically: The number of cores of the server processor is obtained, and the process type combinations of the server load are traversed by the number of cores according to the process priority, each process type combination is substituted into the first relationship model, and the corresponding highest utilization rate is identified.
6. A temperature reduction control system based on a server process according to claim 5, characterized in that: In the server cooling control module, each process type combination is substituted into the first relationship model, and the corresponding highest usage rate is identified, specifically: each process combination is substituted into the usage rate correction model to obtain the overall usage rate, and the usage rate correction model is specifically: ; in, is the overall utilization rate, is the number of processes that can be processed simultaneously on a single core, is the number of cores in the server, is the usage rate of the nth process in the mth core, The length of the time slice allocated to the nth process on the mth core.
7. A cooling control device based on a server process, characterized in that: The device comprises a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is used to execute a server process-based temperature reduction control method as described in any one of claims 1 to 3 according to instructions in the program code.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store program code, and the program code is used to execute the temperature reduction control method based on the server process described in any one of claims 1-3.