Processor performance optimization method under temperature constraint based on deep reinforcement learning
Optimizing processor temperature management through deep reinforcement learning solves the performance loss and state switching problems in processor performance and power consumption optimization in the existing technology, achieving more efficient temperature control and real-time performance, and is suitable for hard real-time systems.
Patent Information
- Application Number
- CN202410812466.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-09-03
AI Technical Summary
Existing Dynamic Voltage Frequency Scaling (DVFS) and Dynamic Power Management (DPM) technologies have problems with performance loss and energy increase caused by unreasonable state switching in processor performance and power consumption optimization, and inaccurate load prediction leads to poor optimization results. good.
A processor performance optimization method under temperature constraints based on deep reinforcement learning is used to establish a simulation model through periodic thermal management, define actions and state spaces, and use a deep deterministic policy gradient algorithm and reward function to optimize the temperature management strategy of the processor. Reduce peak temperatures and increase utilization.
It achieves more accurate system model analysis, generates real-time control strategies, reduces peak temperature complexity and runtime overhead, improves the real-time performance and efficiency of processor performance-to-power ratio, and is suitable for hard real-time systems.
Smart Images

Figure CN118586291A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of processor performance optimization, and in particular to a method for optimizing processor performance under temperature constraints based on deep reinforcement learning. Background Art
[0002] In recent years, multi-core processors with highly parallel capabilities have become the mainstream in computing devices. The current structure of processors is composed of large-scale integrated circuits, and high temperatures will have a huge impact on electronic components such as transistors. According to Chantem et al., when the operating temperature of the processor is 10-15°C higher than the set upper limit of the operating temperature, the life of the device may be shortened by 50%. In addition to the negative impact on the chip itself, high temperatures will also greatly reduce the user experience in portable devices equipped with multi-core processor chips.
[0003] Some people have proposed dynamic voltage frequency scaling (DVFS) to determine the target frequency through processor utilization and temperature, and then adjust the processor frequency according to the target frequency, thereby reducing power consumption and temperature and improving performance.
[0004] Dynamic power management (DPM) has been proposed as a method to manage energy consumption by dynamically adjusting the power consumption mode of the CPU. It switches between different power consumption modes and adjusts the power consumption level of the CPU according to system load and demand.
[0005] Some people have combined the two management methods of DVFS and DPM to propose an online thermal energy efficiency management method, which mainly establishes a model to predict the mapping and workload distribution to optimize energy consumption, peak temperature, performance and memory overhead.
[0006] It can be seen that although DVFS and DPM technologies effectively control processor power consumption, they also affect processor performance. Unreasonable or excessive DVFS and DPM policies will cause the following adverse effects: The system performance is significantly reduced and the task execution time is greatly increased. For real-time systems, in extreme cases, it may cause task timeout, leading to serious consequences.
[0007] Research shows that the actual performance of the system is not strictly linearly related to power consumption. When the processor frequency is too low, the performance loss is more obvious than the power consumption reduction. This will cause the system performance-to-power ratio to decrease, and the total energy required to perform the same task will increase instead of decrease.
[0008] The processor needs extra time and power consumption to switch power states. If the processor switches to a low power state too frequently, the power consumption of the state switching may increase the overall power consumption.
[0009] In short, the power consumption control of the processor will inevitably affect the performance. When using DVFS and DPM technologies for power consumption control, it is necessary to evaluate the performance loss. Only when the performance-to-power ratio is improved can the global processor power consumption be effectively reduced.
[0010] At the same time, the performance-power ratio optimization of processors, especially multi-core processors, faces the following challenges: In order to achieve better power management, active DVFS or DPM control is required based on the arrival of the next stage of tasks, that is, the load situation. However, in real scenarios, the load is easily affected by other factors such as the communication system. Tasks may deviate from the expected arrival time or be different from the expected type. Some tasks may even be difficult to predict through a certain mathematical model. Without accurate load prediction, the processor state switching may not achieve the best optimization effect.
[0011] It is necessary to accurately estimate the power consumption of the processor after executing a certain control strategy. In order to optimize the performance-to-power ratio, it is necessary to accurately evaluate the performance and power consumption. For performance, it can be evaluated by collecting data such as the execution and completion of tasks over a period of time. However, the power consumption of the processor is affected by many dynamic factors including temperature, frequency, tasks, cache status, and other core tasks. The power consumption estimation model of deterministic and static parameters often has large errors. This will result in the actual performance-to-power ratio optimization effect not meeting expectations.
[0012] Therefore, there is an urgent need to improve this shortcoming. The present invention studies and improves the existing structure and deficiencies, and provides a processor performance optimization method under temperature constraints based on deep reinforcement learning. Summary of the invention
[0013] The purpose of the present invention is to provide a processor performance optimization method under temperature constraints based on deep reinforcement learning to solve the problems raised in the above background technology.
[0014] To achieve the above object, the present invention provides the following technical solution: a method for optimizing processor performance under temperature constraints based on deep reinforcement learning, comprising the following specific steps: S1: Apply the periodic thermal management method to establish a simulation model, by periodically controlling the temperature, through t on and t off , which represent the duration of each core in “active” and “sleep” states respectively; S2: Deep reinforcement learning deployment: S21: Establish action space, optimize the management strategy for periodic thermal management, and each core determines a set of time lengths t on and t off, which is used to control the length of time the core works and sleeps during the periodic state switching. At this time, the number of cores is The action space of the processor is set as: , S22: Upper limit of action space Select the first stable state of the agent. As an evaluation metric, it is then experimentally verified for different action upper limits; S23: The sampling period is set to 1000ms, and the upper limit of the action is: , within this range, select five integer points As an action limit The parameters of the experiment were determined under the single-core simulation model, and the empirical formula was obtained: ; S3: Establish state space: S31: OK , is the highest temperature during the sampling time, and As a state dimension, this state determines whether the periodic temperature management strategy adopted by the agent during this period will cause the environment to break through the set temperature constraints; S32: OK , is the temperature difference, and Added to the state space as a state feature; S33: OK , is the number of cycles experienced by the processor core within one sampling time; S4: Get the state space of each core: ; S5: Deep reinforcement learning algorithm, and the deep reinforcement learning algorithm is based on the memory design of deep deterministic policy gradient algorithm; S6: Design of reward function; S7: Initialization for practical application.
[0015] Furthermore, in S21, the processor switching state time is used to switch between working and sleeping states, and the overhead of this period is ,set up , and the lower limit of the action space is set to Large, so the lower limit of the action space is set to .
[0016] Furthermore, in S22, there can be at least two or more periodic changes in a single simulation step, that is, , when too many switching cycles are taken, The proportion during the entire sampling time will increase.
[0017] Further, in said S32, The calculation method is: take the first Before and after The average temperature of all and , do the difference ,Will As the temperature difference, Determined consideration The maximum value of .
[0018] Furthermore, in S4, when the number of cores in the simulation model increases, the dimension of the state space increases accordingly by the dimension of the number of cores to obtain the state space of the entire processor.
[0019] Furthermore, in S5, the sigmoid function is used as the activation function, a hidden layer containing three fully connected layers is used, and the relu function is used for activation, where the number of neurons is , and at the end a scaling layer is used to scale the output to the range required by the experiment. The design of the critic network needs to consider the dimension of the input layer. The parameters passed in are (state-action) pairs. Therefore, an overlay layer add is added after the input layer to merge the state and action. For the incoming state, a two-layer fully connected hidden layer is used to extract features. For the action, a layer of full connection is used, and the two are superimposed and passed to the relu layer for activation to obtain a Q value for evaluating the action.
[0020] Furthermore, in the reward function, the hard constraint is the temperature threshold , to avoid peak temperatures of each processor core When the constraint value is exceeded, Exceed When targeting different Each agent can get a different reward, and the reward method is:
[0021] in For reward, is the number of cores of the multi-core processor, For the The peak temperature of the core, As the constraint value, the core temperature is set to The dividing point is divided into two intervals. Less than When the reward As the temperature increases, it increases, but when Greater than , the penalty will be larger to guide the agent to lower its temperature to the following.
[0022] Furthermore, the temperature of the processor cannot fully represent the performance of the processor. Additional rewards are needed to assist the agent in choosing actions with high utilization. The utilization calculation method at the system level is adopted, that is, by calculating the ratio of the processor's working time to the total time, covering all processor cores. The calculation formula is: , Processor real effective time , invalid time , so the processor utilization is: , In order to maintain In terms of numerical unification, we choose the opposite of utilization, the empty rate, as the reward item, and guide the agent to optimize processor performance by minimizing the negative value of the empty rate, that is:
[0023] in For reward, is the number of cores of the multi-core processor, and For the The time that each core is turned on and off.
[0024] Further, the temperature is below the constraint value. range as the best case and reset , the temperature of each core of the processor is in the range When the agent finds that the temperature management strategy can keep the processor core within the range for 20 consecutive times, it is considered to be in a stable state and given a large amount of reward. The current round of learning is interrupted to prevent over-learning from causing poor learning effect. Therefore, the reward function is: .
[0025] Furthermore, the initialization of S7 in actual application is in a simulation environment, and its initialization is achieved through matrix operation. In real machine applications, due to the uncertainty of the environment, the initialization method cannot be the same as that in the simulation environment. First, the processor temperature in the real environment is measured without additional consumption to find a stable temperature. Then, in the actual training process, the command line operation is used on the Linux system to put the CPU in a dormant state that can maintain the normal operation of the system, and it lasts for a period of time to keep its temperature stable and complete the initialization.
[0026] The present invention provides a method for optimizing processor performance under temperature constraints based on deep reinforcement learning, which has the following beneficial effects: This method for optimizing processor performance under temperature constraints based on deep reinforcement learning adopts a periodic thermal management method (PTM) and will not violate hard real-time constraints. PTM divides the burstiness of workload into smaller execution slots, which are evenly distributed in the time dimension, thereby avoiding unnecessary temperature peaks. The periodic switching between two power states reduces the complexity of peak temperature analysis, so we use a more accurate system model to analyze transient temperature behavior. PTM is a static method, and the runtime overhead introduced is negligible, so it is very suitable for hard real-time systems.
[0027] The temperature difference, the maximum temperature value and the number of core switching cycles are used to describe the state environment more accurately. The less redundant state features make the model have better performance, faster convergence speed and more stable convergence. The optimizer trained by deep reinforcement learning can generate real-time control strategies. Experimental measurements show that the time to acquire strategies for different numbers of cores is in the order of tens of milliseconds, which is real-time, efficient, low energy consumption, and low computing consumption. A combination of offline learning and online learning is adopted: pre-training of the pulse neural network with optimized performance-power-consumption ratio is carried out, and then appropriate fine-tuning is performed in the deployment environment. A pulse neural network reinforcement learning pre-training framework is proposed, which is guided by optimizing the training overhead of the deployment environment and has low requirements on the scale of empirical samples. It plays a key role in building a general computer system performance-power-consumption ratio optimization model and improving the practical application value of project results. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 A schematic diagram of processor state switching of a processor performance optimization method under temperature constraints based on deep reinforcement learning of the present invention; Figure 2 The present invention is a processor performance optimization method under temperature constraints based on deep reinforcement learning with different action upper limits Schematic diagram; Figure 3 A schematic diagram of an actor network in a performance optimization model of a processor performance optimization method under temperature constraints based on deep reinforcement learning of the present invention; Figure 4 A schematic diagram of a critic network in a performance optimization model of a processor performance optimization method under temperature constraints based on deep reinforcement learning of the present invention; Figure 5 A schematic diagram of an offline and online combined reinforcement learning framework of a processor performance optimization method under temperature constraints based on deep reinforcement learning of the present invention; Figure 6 A schematic diagram of the temperature change and utilization change of the processor during the verification time of the present invention; Figure 7 It is a schematic diagram of the time consumption of the acquisition strategy under different core numbers of the present invention. DETAILED DESCRIPTION
[0029] The following embodiments of the present invention are described in further detail in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0030] like Figure 1-Figure 7 As shown, a method for optimizing processor performance under temperature constraints based on deep reinforcement learning includes the following specific steps: S1: Apply the periodic thermal management method to establish a simulation model, by periodically controlling the temperature, through t on and t off , which represent the duration of each core in “active” and “sleep” states respectively; S2: Deep reinforcement learning deployment: S21: Establish action space, optimize the management strategy for periodic thermal management, and each core determines a set of time lengths t on and t off , which is used to control the length of time the core works and sleeps during the periodic state switching. At this time, the number of cores is The action space of the processor is set as: , S22: Upper limit of action space Select the first stable state of the agent. As an evaluation metric, it is then experimentally verified for different action upper limits; S23: The sampling period is set to 1000ms, and the upper limit of the action is: , within this range, select five integer points As an action limit The parameters of the experiment were determined under the single-core simulation model, and the empirical formula was obtained: ; S3: Establish state space: S31: OK , is the highest temperature during the sampling time, and As a state dimension, this state determines whether the periodic temperature management strategy adopted by the agent during this period will cause the environment to break through the set temperature constraints; S32: OK , is the temperature difference, and Added to the state space as a state feature; S33: OK , is the number of cycles experienced by the processor core within one sampling time; S4: Get the state space of each core: ; S5: Deep reinforcement learning algorithm, and the deep reinforcement learning algorithm is based on the memory design of deep deterministic policy gradient algorithm; S6: Design of reward function; S7: Initialization for practical application.
[0031] In S21, the processor switching state time is used to switch between working and sleeping states, and the overhead of this time is ,set up , and the lower limit of the action space is set to Large, so the lower limit of the action space is set to .
[0032] Furthermore, in S22, there can be at least two or more periodic changes in a single simulation step, that is, , when too many switching cycles are taken, The proportion during the entire sampling time will increase.
[0033] In S32, The calculation method is: take the first Before and after The average temperature of all and , do the difference ,Will As the temperature difference, Determined consideration The maximum value of .
[0034] In S4, when the number of cores in the simulation model increases, the dimension of the state space increases accordingly by the number of cores to obtain the state space of the entire processor.
[0035] In S5, the sigmoid function is used as the activation function, and a hidden layer with three fully connected layers is used, and the relu function is used for activation, where the number of neurons is , and at the end a scaling layer is used to scale the output to the range required by the experiment. The design of the critic network needs to consider the dimension of the input layer. The parameters passed in are (state-action) pairs. Therefore, an overlay layer add is added after the input layer to merge the state and action. For the incoming state, a two-layer fully connected hidden layer is used to extract features. For the action, a layer of full connection is used, and the two are superimposed and passed to the relu layer for activation to obtain a Q value for evaluating the action.
[0036] In the reward function, the hard constraint is the temperature threshold , to avoid peak temperatures of each processor core When the constraint value is exceeded, Exceed When targeting different Each agent can get a different reward, and the reward method is:
[0037] in For reward, is the number of cores of the multi-core processor, For the The peak temperature of the core, As the constraint value, the core temperature is set to The dividing point is divided into two intervals. Less than When the reward As the temperature increases, it increases, but when Greater than , the penalty will be larger to guide the agent to lower its temperature to the following.
[0038] The temperature of the processor cannot fully represent the performance of the processor. Additional rewards are needed to assist the agent in choosing actions with high utilization. The utilization calculation method at the system level is used, that is, by calculating the ratio of the processor's working time to the total time, covering all processor cores. The calculation formula is: , Processor real effective time , invalid time , so the processor utilization is: , In order to maintain In terms of numerical unification, we choose the opposite of utilization, the empty rate, as the reward item, and guide the agent to optimize processor performance by minimizing the negative value of the empty rate, that is:
[0039] in For reward, is the number of cores of the multi-core processor, and For the The time that each core is turned on and off.
[0040] Take it below the temperature constraint value range as the best case and reset , the temperature of each core of the processor is in the range When the agent finds that the temperature management strategy can keep the processor core within the range for 20 consecutive times, it is considered to be in a stable state and given a large amount of reward. The current round of learning is interrupted to prevent over-learning from causing poor learning effect. Therefore, the reward function is: .
[0041] The initialization of S7 in actual application is in the simulation environment, and its initialization is achieved through matrix operation. However, in the actual application, due to the uncertainty of the environment, the initialization method cannot be the same as that in the simulation environment. First, the temperature of the processor in the real environment is measured without additional consumption to find a stable temperature. Then, in the actual training process, the command line operation is used on the Linux system to put the CPU in a dormant state that can maintain the normal operation of the system, and it lasts for a period of time to keep its temperature stable and complete the initialization.
[0042] In summary, please refer to Figure 1-Figure 7 First, S1: Apply the periodic thermal management method to establish a simulation model, by periodically controlling the temperature, through t on and t off , which represent the duration of each core in “active” and “sleep” states respectively; S2: Deep reinforcement learning deployment: S21: Establish action space, optimize the management strategy for periodic thermal management, and each core determines a set of time lengths t on and t off, which is used to control the length of time the core works and sleeps during the periodic state switching. At this time, the number of cores is The action space of the processor is set as: , The processor switching time is used to switch between working and sleeping states, and the cost of this time is ,set up , and the lower limit of the action space is set to Large, so the lower limit of the action space is set to ; S22: Upper limit of action space Select the first stable state of the agent. As an evaluation index, we then conduct experiments to verify that there are at least two or more periodic changes within a single simulation step. , when too many switching cycles are taken, The proportion will increase during the whole sampling time; S23: The sampling period is set to 1000ms, and the upper limit of the action is: , within this range, select five integer points As an action limit Parameters, and experiments were conducted under a single-core simulation model to obtain an empirical formula: ; S3: Establish state space: S31: OK , is the highest temperature during the sampling time, and As a state dimension, this state determines whether the periodic temperature management strategy adopted by the agent during this period will cause the environment to break through the set temperature constraints; S32: OK , is the temperature difference, and As a state feature, it is added to the state space. The calculation method is: take the first Before and after The average temperature of all and , do the difference ,Will As the temperature difference, Determined consideration The maximum value of ; S33: OK , is the number of cycles experienced by the processor core within one sampling time; S4: Get the state space of each core: ,When the number of cores in the simulation model increases, the dimension of the state space increases accordingly ,and the dimension of the number of cores is obtained to obtain the state space of the entire ,processor; S5: Deep reinforcement learning algorithm, and the deep reinforcement learning algorithm is based on the deep deterministic policy gradient algorithm memory design, using the sigmoid function as the activation function, using a hidden layer with 3 fully connected layers, using the relu function for activation, where the number of neurons is , and at the end a scaling layer is used to scale the output to the range required by the experiment. The design of the critic network needs to consider the dimension of the input layer. The parameters passed in are (state-action) pairs. Therefore, an overlay layer add is added after the input layer to merge the state and action. For the input state, a two-layer fully connected hidden layer is used to extract features. For the action, a fully connected layer is used. The two are superimposed and passed to the relu layer for activation to obtain a Q value for evaluating the action. S6: Design of reward function, hard constraint is temperature threshold , to avoid peak temperatures of each processor core When the constraint value is exceeded, Exceed When targeting different Each agent can get a different reward, and the reward method is:
[0043] in For reward, is the number of cores of the multi-core processor, For the The peak temperature of the core, As the constraint value, the core temperature is set to The dividing point is divided into two intervals. Less than When the reward As the temperature increases, it increases, but when Greater than , the penalty will be larger to guide the agent to lower its temperature to Below, the temperature of the processor cannot fully represent the performance of the processor. Additional rewards are needed to assist the agent to choose actions with high utilization. The utilization calculation method at the system level is adopted, that is, by calculating the ratio of the processor's working time to the total time, covering all processor cores. The calculation formula is: , Processor real effective time , invalid time , so the processor utilization is: , In order to maintain In terms of numerical unification, we choose the opposite of utilization, the empty rate, as the reward item, and guide the agent to optimize processor performance by minimizing the negative value of the empty rate, that is:
[0044] in For reward, is the number of cores of the multi-core processor, and For the The time for each core to be turned on and off is kept below the temperature constraint. range as the best case and reset , the temperature of each core of the processor is in the range When the agent finds that the temperature management strategy can keep the processor core within the range for 20 consecutive times, it is considered to be in a stable state and given a large amount of reward. The current round of learning is interrupted to prevent over-learning from causing poor learning effect. Therefore, the reward function is: ; S7: Initialization in actual application. The initialization in S7 in actual application is in the simulation environment, and its initialization is achieved through matrix operation. However, in the actual application, due to the uncertainty of the environment, the initialization method cannot be the same as that in the simulation environment. First, the temperature of the processor in the real environment is measured without additional consumption to find a stable temperature. Then, in the actual training process, the command line operation is used on the Linux system to put the CPU in a dormant state that can maintain the normal operation of the system, and it lasts for a period of time to keep its temperature stable and complete the initialization.
[0045] The embodiments of the present invention are given for the purpose of illustration and description, and are not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.
Claims
1. A processor performance optimization method under temperature constraints based on deep reinforcement learning, characterized in that: The specific steps include: S1: Apply the periodic thermal management method to establish a simulation model, by periodically controlling the temperature, through t on and t off , which represent the duration of each core in the "active" and "sleep" states respectively; S2: Deep reinforcement learning deployment: S21: Establish action space, optimize the management strategy for periodic thermal management, and each core determines a set of time lengths t on and t off , which is used to control the length of time the core works and sleeps during the periodic state switching. At this time, the number of cores is The action space of the processor is set as: , S22: Upper limit of action space Select the first stable state of the agent. As an evaluation metric, it is then experimentally verified for different action upper limits; S22: The sampling period is set to 1000ms, and the upper limit of the action is: , within this range, select five integer points As an action limit The parameters of the experiment were determined under the single-core simulation model, and the empirical formula was obtained: ; S3: Establish state space: S31: OK , is the highest temperature during the sampling time, and As a state dimension, this state determines whether the periodic temperature management strategy adopted by the agent during this period will cause the environment to break through the set temperature constraints; S32: OK , is the temperature difference, and Added to the state space as a state feature; S33: OK , is the number of cycles experienced by the processor core within one sampling time; S4: Get the state space of each core: ; S5: Deep reinforcement learning algorithm, and the deep reinforcement learning algorithm is based on the memory design of deep deterministic policy gradient algorithm; S6: Design of reward function; S7: Initialization for practical application.
2. According to claim 1, a method for optimizing processor performance under temperature constraints based on deep reinforcement learning is characterized in that: In S21, the processor switching state time is used to switch between working and sleeping states, and the overhead of this time is ,set up , and the lower limit of the action space is set to Large, so the lower limit of the action space is set to .
3. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 1, characterized in that: In S22, there can be at least two or more periodic changes in a single simulation step, that is, , when too many switching cycles are taken, The proportion during the entire sampling time will increase.
4. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 1, characterized in that: In the S32, The calculation method is: take the first Before and after The average temperature of all and , do the difference ,Will As the temperature difference, Determined consideration The maximum value of .
5. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 1, characterized in that: In S4, when the number of cores in the simulation model increases, the dimension of the state space increases accordingly by the dimension of the number of cores to obtain the state space of the entire processor.
6. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 1, characterized in that: In S5, the sigmoid function is used as the activation function, a hidden layer containing three fully connected layers is used, and the relu function is used for activation, where the number of neurons is , and at the end a scaling layer is used to scale the output to the range required by the experiment. The design of the critic network needs to consider the dimension of the input layer. The parameters passed in are (state-action) pairs. Therefore, an overlay layer add is added after the input layer to merge the state and action. For the incoming state, a two-layer fully connected hidden layer is used to extract features. For the action, a layer of full connection is used, and the two are superimposed and passed to the relu layer for activation to obtain a Q value for evaluating the action.
7. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 6, characterized in that: In the reward function, the hard constraint is the temperature threshold , to avoid peak temperatures of each processor core When the constraint value is exceeded, Exceed When targeting different Each agent can get a different reward, and the reward method is: in For reward, is the number of cores of the multi-core processor, For the The peak temperature of the core, As the constraint value, the core temperature is set to The dividing point is divided into two intervals. Less than When the reward As the temperature increases, it increases, but when Greater than , the penalty will be larger to guide the agent to lower its temperature to the following.
8. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 7, characterized in that: The temperature of the processor cannot fully represent the performance of the processor. Additional rewards are needed to assist the agent to choose actions with high utilization. The utilization calculation method at the system level is used, that is, by calculating the ratio of the processor's working time to the total time, covering all processor cores. The calculation formula is: , Processor real effective time , invalid time , so the processor utilization is: , In order to maintain In terms of numerical unification, we choose the opposite of utilization, the empty rate, as the reward item, and guide the agent to optimize processor performance by minimizing the negative value of the empty rate, that is: in For reward, is the number of cores of the multi-core processor, and For the The time that each core is turned on and off.
9. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 8, characterized in that: The temperature is below the limit value. range as the best case and reset , the temperature of each core of the processor is in the range When the agent finds that the temperature management strategy can keep the processor core within the range for 20 consecutive times, it is considered to be in a stable state and given a large amount of reward. The current round of learning is interrupted to prevent over-learning from causing poor learning effect. Therefore, the reward function is: 。 10. The method for optimizing processor performance under temperature constraints based on deep reinforcement learning according to claim 9, characterized in that: The initialization of S7 in actual application is in the simulation environment, and its initialization is achieved through matrix operation. However, in the actual application, due to the uncertainty of the environment, the initialization method cannot be the same as that in the simulation environment. First, the temperature of the processor in the real environment is measured without additional consumption to find a stable temperature. Then, in the actual training process, the command line operation is used on the Linux system to put the CPU in a dormant state that can maintain the normal operation of the system, and it lasts for a period of time to keep its temperature stable and complete the initialization.
Citation Information
Cited By
Multi-agent thermal management method for isomorphic dark silicon multi-core chip
CN119830835A
A multi-agent thermal management method for an isomorphic dark silicon multi-core chip
CN119830835B
Gummed paper ring cylinder fixing device and sectional material gummed paper packaging equipment
CN119976543A
