Dynamic thermal design power consumption adjusting method and device, equipment, medium and program product

By obtaining the real-time frame rate and power consumption of the computing device, performing error calculation and multi-level adjustment, and dynamically adjusting the TDP value, the problem that the static TDP adjustment in the computing device cannot adapt to the real-time performance requirements is solved, and fast response and efficient power consumption management are achieved.

CN120633140APending Publication Date: 2025-09-12SHENZHEN XUNLONG SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510593017.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-09
Publication Date
2025-09-12

AI Technical Summary

Technical Problem

In existing technologies, the thermal design power (TDP) adjustment method for computing devices is usually static adjustment, which cannot dynamically adapt to real-time performance requirements, resulting in resource waste or insufficient performance. The lack of a real-time feedback mechanism has low adjustment efficiency and cannot quickly respond to performance fluctuations.

Method used

By obtaining the real-time frame rate and real-time power consumption of the device, error calculation is performed, and the TDP value is dynamically adjusted using preset adjustment models and multi-level adjustment strategies, including smoothing and slight adjustment strategies, to optimize power consumption balance.

Benefits of technology

It achieves rapid response to performance fluctuations, improves adjustment efficiency, reduces performance fluctuations and excessive power consumption, implements fine-grained TDP control, and improves the performance management efficiency of computing devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120633140A_ABST
    Figure CN120633140A_ABST
Patent Text Reader

Abstract

The invention relates to a dynamic thermal design power consumption adjusting method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a real-time frame number and real-time power consumption of equipment; performing error calculation according to the real-time frame number and the target frame number to obtain an error calculation result; performing power consumption adjustment calculation according to the error calculation result and a preset adjustment model to obtain a to-be-adjusted power consumption value; and performing power consumption adjustment on the real-time power consumption according to the to-be-adjusted power consumption value and a preset multi-level adjustment strategy. By adopting the method, the TDP value can be dynamically adjusted according to performance requirements in a rapidly changing use scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of computing device performance management, and in particular to a dynamic thermal design power consumption adjustment method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of computing device technology, there is a higher demand for performance adjustment in the performance management of computing devices. The existing technology usually uses a fixed value for static adjustment of thermal design power (TDP), which cannot dynamically adapt to the balance between real-time performance requirements and power consumption, resulting in resource waste or insufficient performance. In addition, there is a lack of real-time feedback mechanism, low adjustment efficiency, and an inability to quickly respond to performance fluctuations. Therefore, there is an urgent need for a dynamic thermal design power adjustment method that can dynamically adjust the TDP value according to performance requirements in rapidly changing usage scenarios. Summary of the Invention

[0003] Based on this, it is necessary to provide a dynamic thermal design power consumption adjustment method, device, computer equipment, computer-readable storage medium and computer program product that can dynamically adjust the TDP value according to performance requirements in rapidly changing usage scenarios to address the above technical problems.

[0004] In a first aspect, the present application provides a dynamic thermal design power consumption adjustment method, comprising:

[0005] Get the real-time frame rate and real-time power consumption of the device;

[0006] Perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result;

[0007] Perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted;

[0008] The real-time power consumption is adjusted according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0009] In one embodiment, the preset adjustment model includes: a power consumption adjustment limit range and a power consumption adjustment coefficient; performing power consumption adjustment calculation based on the error calculation result and the preset adjustment model to obtain the power consumption value to be adjusted includes:

[0010] Perform power consumption calculation based on the power consumption adjustment coefficient and the error calculation result to obtain a candidate power consumption value;

[0011] The candidate power consumption value is restricted and adjusted according to the power consumption adjustment restriction range to obtain the power consumption value to be adjusted.

[0012] In one embodiment, the preset multi-level adjustment strategy includes: a smooth adjustment strategy and a slight adjustment strategy; and the power consumption adjustment of the real-time power consumption according to the power consumption value to be adjusted and the preset multi-level adjustment strategy includes:

[0013] Performing power consumption smoothing adjustment on the real-time power consumption according to the power consumption value to be adjusted and the smoothing adjustment strategy;

[0014] When the real-time frame number of the device meets a preset condition, the real-time power consumption is slightly adjusted using the slight adjustment strategy.

[0015] In one embodiment, the step of smoothly adjusting the real-time power consumption according to the power consumption value to be adjusted and the smooth adjustment strategy includes:

[0016] Obtaining the real-time frame rate change rate of the device;

[0017] When the real-time frame rate of change exceeds a preset threshold, a smoothing adjustment calculation is performed according to the real-time frame rate of change and a preset smoothing coefficient to obtain a smoothing adjustment value;

[0018] The real-time power consumption is smoothly adjusted according to the smooth adjustment value and the power consumption value to be adjusted.

[0019] In one embodiment, the method further comprises:

[0020] Acquiring application scenario data of the device;

[0021] Determining a target adjustment strategy from the preset multi-level adjustment strategies according to the application scenario data;

[0022] The real-time power consumption is adjusted according to the target adjustment strategy.

[0023] In one embodiment, the method further comprises:

[0024] When the application scenario data is a plug-in and off-power switching scenario, obtaining power connection information of the device;

[0025] Determining a power dynamic adjustment strategy from the preset multi-level adjustment strategy according to the power connection information; the power dynamic adjustment strategy is used to optimize the balance between the real-time frame rate and the real-time power consumption;

[0026] The real-time power consumption is adjusted according to the power dynamic adjustment strategy.

[0027] In a second aspect, the present application further provides a dynamic thermal design power consumption adjustment device, comprising:

[0028] Acquisition module, used to obtain the real-time frame rate of the device;

[0029] An error calculation module is used to perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result;

[0030] A calculation module, configured to perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted;

[0031] The power consumption adjustment module is used to adjust the power consumption of the device according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0032] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0033] Get the real-time frame rate and real-time power consumption of the device;

[0034] Perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result;

[0035] Perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted;

[0036] The real-time power consumption is adjusted according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0038] Get the real-time frame rate and real-time power consumption of the device;

[0039] Perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result;

[0040] Perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted;

[0041] The real-time power consumption is adjusted according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0042] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:

[0043] Get the real-time frame rate and real-time power consumption of the device;

[0044] Perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result;

[0045] Perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted;

[0046] The real-time power consumption is adjusted according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0047] The above-mentioned dynamic thermal design power consumption adjustment method, apparatus, computer equipment, computer-readable storage medium, and computer program product obtain the real-time frame rate and real-time power consumption of the device; perform error calculation based on the real-time frame rate and target frame rate to obtain the error calculation result; perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain the power consumption value to be adjusted; and adjust the real-time power consumption based on the power consumption value to be adjusted and a preset multi-level adjustment strategy. Therefore, by acquiring the real-time frame rate and real-time power consumption of the device through real-time data sampling, and performing error calculation based on the real-time frame rate and target frame rate, an intelligent feedback mechanism is constructed, which can quickly respond to performance fluctuations and improve adjustment efficiency. At the same time, a multi-level adjustment strategy is adopted to achieve fine-grained TDP control, reducing performance fluctuations and excessive power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0049] Figure 1 A diagram illustrating an application environment of a dynamic thermal design power consumption adjustment method according to an embodiment;

[0050] Figure 2 1 is a flow chart of a method for adjusting dynamic thermal design power consumption in one embodiment;

[0051] Figure 3 1 is a flow chart of a method for adjusting dynamic thermal design power consumption in one embodiment;

[0052] Figure 4 A structural block diagram of a dynamic thermal design power consumption adjustment device in one embodiment;

[0053] Figure 5 FIG. 1 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0055] The dynamic thermal design power consumption adjustment method provided in the embodiment of the present application can be applied to Figure 1 In the computer device application environment shown, the computer device 102 obtains the real-time frame rate and real-time power consumption of the computer device; performs error calculation based on the real-time frame rate and the target frame rate to obtain an error calculation result; performs power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted; and adjusts the real-time power consumption based on the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0056] In an exemplary embodiment, Figure 2 As shown, a dynamic thermal design power consumption adjustment method is provided, which is applied to Figure 1 The computer device 102 in the example is used as an example to illustrate the method, which includes the following steps S202 to S208.

[0057] Step S202: Acquire the real-time frame rate and real-time power consumption of the device.

[0058] The real-time frame rate may be FPS (Frames Per Second), and the real-time power consumption may be TDP (Thermal Design Power). TDP is calculated based on the real-time CPU temperature, CPU load, GPU temperature, and GPU power consumption.

[0059] In some embodiments, the real-time frame rate of the device can be obtained through the AutoTDPWatchdog_Elapsed method. This method is triggered at regular intervals to obtain the real-time frame rate and limit its range. The real-time frame rate can be limited to 5 to 500 FPS.

[0060] In some embodiments, key performance data during runtime may be periodically acquired through a data sampling module of a performance management module (PerformanceManager), so as to calculate real-time power consumption data based on the key performance data.

[0061] Step S204 , performing error calculation based on the real-time frame number and the target frame number to obtain an error calculation result.

[0062] The error calculation refers to calculating the error value between the real-time frame number and the target frame number, and using the error value as the error calculation result.

[0063] In some embodiments, an error calculation is performed based on the real-time frame number and the target frame number to obtain an error calculation result. The specific error calculation process is shown in the following formula (1):

[0064] controllerError = AutoTDPTargetFPS – processValueFPS(1);

[0065] Among them, controllerError is the error calculation result, AutoTDPTargetFPS is the target frame rate set by the user, and processValueFPS is the real-time frame rate obtained by sampling. It should be noted that the positive or negative value of the error calculation result indicates the gap between the current performance requirement and the actual device operating status, which is an important basis for TDP adjustment.

[0066] Step S206 , performing power consumption adjustment calculation according to the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted.

[0067] The preset adjustment model is a pre-set model for controlling the TDP adjustment range.

[0068] In some embodiments, the preset adjustment model includes: a power consumption adjustment limit range and a power consumption adjustment coefficient; performing power consumption adjustment calculation based on the error calculation result and the preset adjustment model to obtain the power consumption value to be adjusted, including: performing power consumption calculation based on the power consumption adjustment coefficient and the error calculation result to obtain a candidate power consumption value; limiting and adjusting the candidate power consumption value according to the power consumption adjustment limit range to obtain the power consumption value to be adjusted.

[0069] In some embodiments, the error calculation result is input into a preset adjustment model to perform power consumption adjustment calculation, and the TDP value that needs to be adjusted is dynamically calculated to obtain a candidate power consumption value. The specific power consumption adjustment calculation process is shown in the following formula (2):

[0070] AutoTDP += controllerError * adjustmentFactor(2);

[0071] The adjustment coefficient is a sensitivity adjustment parameter used to control the TDP adjustment range.

[0072] In some embodiments, the preset adjustment model further limits the candidate power consumption value to a maximum and minimum TDP range of the power consumption adjustment limit range allowed by the device through the power consumption adjustment limit range, thereby ensuring safe operation of the device.

[0073] Step S208 : adjusting the real-time power consumption according to the power consumption value to be adjusted and the preset multi-level adjustment strategy.

[0074] In some embodiments, the preset multi-level adjustment strategy includes: a smooth adjustment strategy and a slight adjustment strategy; the real-time power consumption is adjusted according to the power consumption value to be adjusted and the preset multi-level adjustment strategy, including: smooth adjustment of the real-time power consumption according to the power consumption value to be adjusted and the smooth adjustment strategy; when the real-time frame number of the device meets the preset conditions, the real-time power consumption is slightly adjusted through the slight adjustment strategy.

[0075] Among them, the smooth adjustment strategy is pre-designed to avoid sharp fluctuations in FPS and TDP, and the slight adjustment strategy is a control strategy that slightly reduces the TDP value to reduce fluctuations when the FPS is close to the target frame rate.

[0076] In some embodiments, the real-time power consumption is smoothly adjusted according to the power consumption value to be adjusted and the smoothing adjustment strategy, including: obtaining the real-time frame rate of change of the device; when the real-time frame rate of change exceeds a preset threshold, performing a smoothing adjustment calculation according to the real-time frame rate of change and a preset smoothing coefficient to obtain a smoothing adjustment value; and performing a power consumption smoothing adjustment on the real-time power consumption according to the smoothing adjustment value and the power consumption value to be adjusted.

[0077] In some embodiments, the real-time frame rate of change (DTerm) of the device is obtained by the AutoTDPDamper method. When the real-time frame rate of change exceeds a preset threshold, a smoothing adjustment calculation is performed based on the real-time frame rate of change and a preset smoothing coefficient to obtain a smoothing adjustment value. The real-time power consumption is smoothly adjusted based on the smoothing adjustment value and the power consumption value to be adjusted. The real-time power consumption is smoothly adjusted to the target power consumption value corresponding to the power consumption value to be adjusted based on the smoothing adjustment value, so as to achieve refined smoothing adjustment. The specific calculation process and smoothing adjustment process are shown in the following formulas (3) and (4):

[0078] DTerm = (real-time frame number - previous frame number) / time interval (3);

[0079] Smoothing adjustment value = DTerm * preset smoothing coefficient (4);

[0080] It should be noted that when the real-time frame rate of change exceeds a preset threshold, the preset smoothing coefficient will limit the adjustment range, thereby reducing the impact of fluctuations on user experience.

[0081] In some embodiments, the slight adjustment strategy is to fine-tune the FPS by using the AutoTDPDipper method when the FPS approaches the target value, slightly reducing the TDP value to reduce fluctuations. It should be noted that when the slight adjustment strategy is adopted, a state counter is introduced to determine the continuous fluctuation of the device, and the performance output of the device is stabilized by the correction value Modifier.

[0082] In some embodiments, after the real-time power consumption is adjusted according to the power consumption value to be adjusted and the preset multi-level adjustment strategy, the latest TDP value will be applied to the device through the RequestTDP method, that is, by calling the hardware interface SetTDPLimit, the calculated target TDP value will be passed to the processor to take effect immediately. It should be noted that in certain circumstances (such as the user turns off dynamic adjustment or the device exits high-performance mode), the TDP will be restored to the default value through the RestoreTDP method, and the dynamic adjustment function will be stopped.

[0083] In the above-mentioned dynamic thermal design power consumption adjustment method, the real-time frame rate and real-time power consumption of the device are obtained; an error calculation is performed based on the real-time frame rate and the target frame rate to obtain an error calculation result; a power consumption adjustment calculation is performed based on the error calculation result and a preset adjustment model to obtain the power consumption value to be adjusted; and the real-time power consumption is adjusted based on the power consumption value to be adjusted and a preset multi-level adjustment strategy. Therefore, by obtaining the real-time frame rate and real-time power consumption of the device through real-time data sampling and performing an error calculation based on the real-time frame rate and the target frame rate, an intelligent feedback mechanism is constructed, which can quickly respond to performance fluctuations and improve adjustment efficiency. At the same time, a multi-level adjustment strategy is adopted to achieve fine-grained TDP control, reducing performance fluctuations and excessive power consumption.

[0084] In an exemplary embodiment, Figure 3 As shown, in order to ensure the adaptability of dynamic adjustment, the dynamic thermal design power adjustment method supports multiple application scenarios, and the dynamic thermal design power adjustment method further includes steps S302 to S306.

[0085] Step S302: Acquire application scenario data of the device.

[0086] Among them, the application scenario data can be the usage scenario of the device, such as a gaming scenario or an office scenario, or the current device status, such as a plug-in and off-power switching scenario, but is not limited thereto.

[0087] In some embodiments, the application scenario data of the device can be obtained by comprehensively collecting the performance and environmental data of the device, including FPS (frame rate), CPU temperature and load, GPU temperature and power consumption, and the device's plugged in or unplugged status, but is not limited thereto.

[0088] Step S304: determining a target adjustment strategy from preset multi-level adjustment strategies according to the application scenario data.

[0089] The target adjustment strategy is a specific adjustment strategy determined based on the TDP requirements and performance requirements of application scenario data.

[0090] In some embodiments, if the application scenario data shows that the current device is in a gaming scenario, that is, when the device is running a high-load game, the target adjustment strategy is to meet performance requirements by increasing the TDP value and reduce power consumption to prevent overheating when the frame rate is close to the target.

[0091] In some embodiments, if the application scenario data shows that the current device is in an office scenario, that is, in a low-load scenario, the target adjustment strategy is to reduce the TDP value through the dynamic adjustment module to extend the device battery life.

[0092] Step S306: adjusting the real-time power consumption according to the target adjustment strategy.

[0093] In some embodiments, real-time power consumption is adjusted according to a target adjustment strategy. The target adjustment strategy may include a specific smooth adjustment strategy and a slight adjustment strategy, and an error calculation of the adjustment value may be performed based on the specific value of the power consumption, thereby achieving an accurate power consumption adjustment process.

[0094] In some embodiments, the method also includes: when the application scenario data is a plug-in and off-power switching scenario, obtaining the power connection information of the device; determining a power dynamic adjustment strategy from a preset multi-level adjustment strategy based on the power connection information; the power dynamic adjustment strategy is used to optimize the balance between the real-time frame rate and the real-time power consumption; and adjusting the real-time power consumption according to the power dynamic adjustment strategy.

[0095] In some embodiments, if the application scenario data shows that the current device is in a plug-in and off-power switching scenario, the target adjustment strategy needs to be based on whether the device is connected to a power source, and the dynamic adjustment module can automatically switch to different TDP strategies to optimize the trade-off between power consumption and performance.

[0096] In this embodiment, by determining the target adjustment strategy from the preset multi-level adjustment strategy based on the application scenario data, a variety of usage scenarios (such as plugged-in state, gaming and office mode) are supported, and the flexibility and adaptability of TDP adjustment are improved, thereby significantly optimizing the user experience. In combination with this technical solution, dynamic TDP adjustment means are used to overcome the limitations of traditional static TDP adjustment, and dynamic adaptation of real-time performance requirements and power consumption balance is achieved, effectively avoiding resource waste or insufficient performance problems; through real-time data sampling and error calculation, an intelligent feedback mechanism is constructed, which can quickly respond to performance fluctuations and improve adjustment efficiency; multi-level adjustment strategies (such as smooth adjustment strategies and slight adjustment strategies) are adopted to achieve fine-grained TDP control and reduce performance fluctuations and excessive power consumption.

[0097] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0098] Based on the same inventive concept, embodiments of the present application also provide a dynamic thermal design power adjustment device for implementing the aforementioned dynamic thermal design power adjustment method. The solution provided by this device is similar to the solution described in the aforementioned method. Therefore, the specific limitations of one or more embodiments of the dynamic thermal design power adjustment device provided below can be found in the above-described limitations of the dynamic thermal design power adjustment method and will not be further elaborated here.

[0099] In an exemplary embodiment, Figure 4 As shown, a dynamic thermal design power consumption adjustment device is provided, including: an acquisition module 401, an error calculation module 402, a calculation module 403 and a power consumption adjustment module 404, wherein:

[0100] Acquisition module 401, used to obtain the real-time frame number of the device;

[0101] The error calculation module 402 is used to perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result;

[0102] The calculation module 403 is used to perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted;

[0103] The power consumption adjustment module 404 is configured to adjust the power consumption of the device according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

[0104] In some embodiments, the preset adjustment model includes: a power consumption adjustment limit range and a power consumption adjustment coefficient; the calculation module 403 is also used to perform power consumption calculation based on the power consumption adjustment coefficient and the error calculation result to obtain a candidate power consumption value; and the candidate power consumption value is restricted and adjusted according to the power consumption adjustment limit range to obtain a power consumption value to be adjusted.

[0105] In some embodiments, the preset multi-level adjustment strategy includes: a smooth adjustment strategy and a slight adjustment strategy; the power consumption adjustment module 404 is also used to perform a smooth adjustment of the real-time power consumption according to the power consumption value to be adjusted and the smooth adjustment strategy; when the real-time frame number of the device meets the preset conditions, the real-time power consumption is slightly adjusted through the slight adjustment strategy.

[0106] In some embodiments, the power consumption adjustment module 404 is also used to obtain the real-time frame rate change rate of the device; when the real-time frame rate change rate exceeds a preset threshold, a smoothing adjustment calculation is performed based on the real-time frame rate change rate and a preset smoothing coefficient to obtain a smoothing adjustment value; and the real-time power consumption is smoothly adjusted based on the smoothing adjustment value and the power consumption value to be adjusted.

[0107] In some embodiments, the device further includes: a scenario feedback adjustment module for acquiring application scenario data of the device; determining a target adjustment strategy from a preset multi-level adjustment strategy based on the application scenario data; and adjusting the real-time power consumption based on the target adjustment strategy.

[0108] In some embodiments, the scene feedback adjustment module is also used to obtain the power connection information of the device when the application scenario data is a plug-in and off-power switching scenario; determine the power dynamic adjustment strategy from the preset multi-level adjustment strategy based on the power connection information; the power dynamic adjustment strategy is used to optimize the balance between the real-time frame rate and the real-time power consumption; and adjust the real-time power consumption according to the power dynamic strategy.

[0109] In the above-mentioned dynamic thermal design power consumption adjustment device, the real-time frame rate and real-time power consumption of the device are obtained; an error calculation is performed based on the real-time frame rate and the target frame rate to obtain an error calculation result; a power consumption adjustment calculation is performed based on the error calculation result and a preset adjustment model to obtain the power consumption value to be adjusted; and the real-time power consumption is adjusted based on the power consumption value to be adjusted and a preset multi-level adjustment strategy. Therefore, by acquiring the real-time frame rate and real-time power consumption of the device through real-time data sampling and performing an error calculation based on the real-time frame rate and the target frame rate, an intelligent feedback mechanism is constructed, which can quickly respond to performance fluctuations and improve adjustment efficiency. At the same time, a multi-level adjustment strategy is adopted to achieve fine-grained TDP control, reducing performance fluctuations and excessive power consumption.

[0110] Each module in the above-mentioned dynamic thermal design power adjustment device can be implemented in whole or in part through software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in hardware form, or can be stored in a memory in the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0111] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 5 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O) and a communication interface. The processor, memory and input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The database of the computer device is used to store preset adjustment models. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a dynamic thermal design power consumption adjustment method is implemented.

[0112] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0113] In an exemplary embodiment, a computer device is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps of the above-mentioned dynamic thermal design power consumption adjustment method when executing the computer program.

[0114] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned dynamic thermal design power consumption adjustment method are implemented.

[0115] In one embodiment, a computer program product is provided, comprising a computer program, which implements the steps of the above-mentioned dynamic thermal design power consumption adjustment method when executed by a processor.

[0116] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0117] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. In particular, any reference to memory, database, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.

[0118] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0119] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.

Claims

1. A dynamic thermal design power consumption adjustment method, characterized in that: The method comprises: Get the real-time frame rate and real-time power consumption of the device; Perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result; Perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted; The real-time power consumption is adjusted according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

2. The method according to claim 1, characterized in that The preset adjustment model includes: a power consumption adjustment limit range and a power consumption adjustment coefficient; performing power consumption adjustment calculation according to the error calculation result and the preset adjustment model to obtain the power consumption value to be adjusted includes: Perform power consumption calculation based on the power consumption adjustment coefficient and the error calculation result to obtain a candidate power consumption value; The candidate power consumption value is restricted and adjusted according to the power consumption adjustment restriction range to obtain the power consumption value to be adjusted.

3. The method according to claim 1, characterized in that The preset multi-level adjustment strategy includes: a smooth adjustment strategy and a slight adjustment strategy; the power consumption adjustment of the real-time power consumption according to the power consumption value to be adjusted and the preset multi-level adjustment strategy includes: Performing power consumption smoothing adjustment on the real-time power consumption according to the power consumption value to be adjusted and the smoothing adjustment strategy; When the real-time frame number of the device meets a preset condition, the real-time power consumption is slightly adjusted using the slight adjustment strategy.

4. The method according to claim 3, characterized in that The performing smooth power consumption adjustment on the real-time power consumption according to the power consumption value to be adjusted and the smooth adjustment strategy includes: Obtaining the real-time frame rate change rate of the device; When the real-time frame rate of change exceeds a preset threshold, a smoothing adjustment calculation is performed according to the real-time frame rate of change and a preset smoothing coefficient to obtain a smoothing adjustment value; The real-time power consumption is smoothly adjusted according to the smooth adjustment value and the power consumption value to be adjusted.

5. The method according to claim 1, wherein The method further comprises: Acquiring application scenario data of the device; Determining a target adjustment strategy from the preset multi-level adjustment strategies according to the application scenario data; The real-time power consumption is adjusted according to the target adjustment strategy.

6. The method according to claim 5, characterized in that The method further comprises: When the application scenario data is a plug-in and off-power switching scenario, obtaining power connection information of the device; Determining a power dynamic adjustment strategy from the preset multi-level adjustment strategy according to the power connection information; the power dynamic adjustment strategy is used to optimize the balance between the real-time frame rate and the real-time power consumption; The real-time power consumption is adjusted according to the power dynamic adjustment strategy.

7. A dynamic thermal design power consumption adjustment device, characterized in that: The device comprises: Acquisition module, used to obtain the real-time frame rate of the device; An error calculation module is used to perform error calculation based on the real-time frame number and the target frame number to obtain an error calculation result; A calculation module, configured to perform power consumption adjustment calculation based on the error calculation result and a preset adjustment model to obtain a power consumption value to be adjusted; The power consumption adjustment module is used to adjust the power consumption of the device according to the power consumption value to be adjusted and a preset multi-level adjustment strategy.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.