CN111190471A - Control method, control device and electronic equipment - Google Patents

Control method, control device and electronic equipment Download PDF

Info

Publication number
CN111190471A
CN111190471A CN202010002094.1A CN202010002094A CN111190471A CN 111190471 A CN111190471 A CN 111190471A CN 202010002094 A CN202010002094 A CN 202010002094A CN 111190471 A CN111190471 A CN 111190471A
Authority
CN
China
Prior art keywords
processors
processor
power consumption
parameters
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010002094.1A
Other languages
Chinese (zh)
Other versions
CN111190471B (en
Inventor
鲁希达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010002094.1A priority Critical patent/CN111190471B/en
Publication of CN111190471A publication Critical patent/CN111190471A/en
Application granted granted Critical
Publication of CN111190471B publication Critical patent/CN111190471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a control method, a control device and an electronic device, wherein the control method comprises the following steps: obtaining usage parameters of at least two processors of an electronic device; under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions; wherein the heat dissipation parameter is related to at least power consumption parameters of the at least two processors. The control method provided by the embodiment of the application can dynamically adjust the power consumption parameters of at least two processors based on the service condition of the electronic equipment, so that the heat dissipation parameters of the electronic equipment meet the heat dissipation condition, the safe and stable operation of the electronic equipment can be ensured, the requirement of a user on the processing capacity of the electronic equipment can be better met, and the improvement of user experience is facilitated.

Description

Control method, control device and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a control method, a control device, and an electronic device.
Background
The overall heat dissipation power consumption of a heat dissipation system of an electronic device is determined after the electronic device leaves a factory, in order to avoid the problems that the overall power consumption of processors such as a Central Processing Unit (CPU) and a Graphic Processing Unit (GPU) exceeds the heat dissipation power consumption of the heat dissipation system, and the system is unstable and crashes, a fixed upper power consumption limit value is usually set for the CPU and the GPU when the electronic device leaves the factory, and the upper power consumption limit value is usually lower than the maximum power consumption which can be output by the CPU and the GPU, so that the overall power consumption of the CPU and the GPU is lower than the heat dissipation power consumption of the system. However, in different usage scenarios, the processing power requirements of the CPU and the GPU are different, for example, in game and parallel computing, the processing power requirement on the GPU is high, but the processing power requirement on the CPU is not high, and for example, in usage scenarios such as daily office, coding, complex computing algorithm, and the like, the processing power requirement on the CPU is high, but the processing power requirement on the GPU is not high. Therefore, the method for setting the upper limit value of the fixed power consumption for the processor without distinguishing the use scenes can improve the stability and the safety of the system, but greatly limits the processing capacity of the electronic equipment.
Content of application
The embodiment of the application provides the following technical scheme:
one aspect of the present application provides a control method, including:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions;
wherein the heat dissipation parameter is related to at least power consumption parameters of the at least two processors.
In some embodiments, the adjusting the power consumption parameters of the at least two processors so that the heat dissipation parameter of the electronic device satisfies the heat dissipation condition includes:
and adjusting the power consumption parameters of the at least two processors at least based on the determined scene mode of the electronic equipment, so that the heat dissipation parameters of the electronic equipment in the current scene mode meet the heat dissipation conditions.
In some embodiments, detecting that a duration for which a first usage parameter of a first processor of the at least two processors is maintained at a first threshold meets a first time threshold, determining that the adjustment condition is satisfied; or the like, or, alternatively,
detecting that the duration of the second usage parameter of the second processor of the at least two processors, which is maintained at the second threshold, meets a second time threshold, and determining that the adjustment condition is met; or the like, or, alternatively,
and determining that the adjustment condition is met by detecting that the duration of the first usage parameter of the first processor of the at least two processors maintained at the third threshold value meets a third time threshold value and the duration of the second usage parameter of the second processor of the at least two processors maintained at the fourth threshold value meets a fourth time threshold value.
In some embodiments, further comprising:
determining a scene mode in which the electronic device is located based on the usage parameters of the at least two processors; or the like, or, alternatively,
and determining the scene mode of the electronic equipment based on the use parameters of the at least two processors and the running information of the electronic equipment.
In some embodiments, the determining the scene mode in which the electronic device is located based on the usage parameters of the at least two processors comprises:
determining that the electronic device is in a first scene mode if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the usage parameter of a first processor of the at least two processors meets a fifth threshold and the usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold;
determining that the electronic device is in a fourth scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a tenth threshold.
In some embodiments, the determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device includes:
determining that the electronic device is in a first scene mode if the electronic device runs a first type of application, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the electronic device runs a first number of first type tasks, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the electronic device runs a second number of applications of a second type, and if a usage parameter of a first processor of the at least two processors meets an eighth threshold and a usage parameter of a second processor of the at least two processors meets a ninth threshold;
and determining that the electronic equipment is in a fourth scene mode under the condition that the electronic equipment runs a second type of task, the use parameter of a first processor in the at least two processors meets a tenth threshold value, and the use parameter of a second processor in the at least two processors meets a ninth threshold value.
In some embodiments, the adjusting the power consumption parameters of the at least two processors based on at least the determined scene mode in which the electronic device is located so that the heat dissipation parameters of the electronic device in the current scene mode meet the heat dissipation condition includes:
obtaining a maximum power consumption limit value of the electronic equipment at least based on the identification information of the electronic equipment;
adjusting power consumption parameters of the at least two processors based on the scene mode of the electronic equipment and the maximum power consumption limit, so that the heat dissipation parameters of the electronic equipment in the current scene mode conform to the maximum power consumption limit;
wherein the heat dissipation parameter of the electronic device has a first relationship with the power consumption parameters of the at least two processors.
In some embodiments, adjusting the power consumption parameters of the at least two processors comprises:
in the case that the electronic device includes a first processor and a second processor, increasing the power consumption of the first processor to a first power consumption value while decreasing the power consumption of the second processor to a second power consumption value, wherein a sum of the first power consumption value and the second power consumption value conforms to the maximum power consumption limit value; or the like, or, alternatively,
in the case where the electronic device includes a first processor and a second processor, reducing power consumption of the first processor to a third power consumption value while increasing power consumption of the second processor to a fourth power consumption value, wherein a sum of the third power consumption value and the fourth power consumption value conforms to the maximum power consumption limit value.
Another aspect of the present application provides a control apparatus, including:
the device comprises an obtaining module, a processing module and a processing module, wherein the obtaining module is used for obtaining the use parameters of at least two processors of the electronic equipment;
the adjusting module is used for adjusting the power consumption parameters of the at least two processors under the condition that the use parameters meet adjusting conditions, so that the heat dissipation parameters of the electronic equipment meet heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
A third aspect of the application provides an electronic device, comprising at least a memory and a processor, the memory having an executable program stored thereon, the processor implementing the following steps when executing the executable program on the memory:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
A fourth aspect of the present application provides a storage medium storing a computer program which, when executed, implements the steps of:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
The beneficial effects of the embodiment of the application are that:
according to the control method, the use parameters of at least two processors of the electronic equipment are obtained, the power consumption parameters of the at least two processors are adjusted under the condition that the use parameters meet the adjustment conditions, and the heat dissipation parameters of the electronic equipment meet the heat dissipation conditions. By using the control method, the power consumption parameters of at least two processors can be dynamically adjusted based on the service condition of the electronic equipment, so that the heat dissipation parameters of the electronic equipment meet the heat dissipation conditions, the safe and stable operation of the electronic equipment can be ensured, the requirements of users on the processing capacity of the electronic equipment can be better met, and the control method is beneficial to improving the user experience.
Drawings
FIG. 1 is a flow chart of a control method according to an embodiment of the present application;
FIG. 2 is a flowchart of one embodiment of step S200 of the control method according to the embodiment of the present application;
fig. 3 is a block diagram of a control device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Description of reference numerals:
10-obtaining a module; 20-an adjustment module; 901-a memory; 902-a processor.
Detailed Description
Various aspects and features of the present application are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the present application. Accordingly, the foregoing description should not be construed as limiting, but merely as exemplifications of embodiments. Those skilled in the art will envision other modifications within the scope and spirit of the application.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with a general description of the application given above and the detailed description of the embodiments given below, serve to explain the principles of the application.
These and other characteristics of the present application will become apparent from the following description of preferred forms of embodiment, given as non-limiting examples, with reference to the attached drawings.
It should also be understood that, although the present application has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of application, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the application, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the application of unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present application in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the application.
The embodiment of the application provides a control method, which comprises the following steps:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions;
wherein the heat dissipation parameter is related to at least power consumption parameters of the at least two processors.
According to the control method, the use parameters of at least two processors of the electronic equipment are obtained, the power consumption parameters of the at least two processors are adjusted under the condition that the use parameters meet the adjustment conditions, and the heat dissipation parameters of the electronic equipment meet the heat dissipation conditions. By using the control method, the power consumption parameters of at least two processors can be dynamically adjusted based on the service condition of the electronic equipment, so that the heat dissipation parameters of the electronic equipment meet the heat dissipation conditions, the safe and stable operation of the electronic equipment can be ensured, the requirements of users on the processing capacity of the electronic equipment can be better met, and the control method is beneficial to improving the user experience.
In order to better understand the technical solution, the following detailed description is made on a specific flow of the control method in conjunction with the drawings and specific embodiments.
Fig. 1 is a flowchart of a control method according to an embodiment of the present application, and referring to fig. 1, the control method according to the embodiment of the present application specifically includes the following steps:
s100, obtaining the use parameters of at least two processors of the electronic equipment.
The usage parameters are used to characterize the workload of the processor, the duration of maintenance at a certain workload, and the like. The usage parameters may include one or more of the following parameters: usage, thread count, process count, physical memory, system load, etc.
The use parameters of the processor in the application can be obtained based on a self-checking program of the electronic equipment, and can also be obtained based on hardware parameter calculation. For example, the usage parameters of the at least two processors may be obtained by a task management program of an operating system of the electronic device, or the usage parameters of the electronic device may be obtained by, for example, a basic input/output system or a driver of the electronic device, so as to determine the usage states of the at least two processors.
The electronic device may be, for exampleDesktop computers, notebook computers, all-in-one computers, tablet computers, smart phones, etc., which are not listed here. The electronic device includes at least two processors. The processor may be a processing device including one or more general purpose processing devices such as a microprocessor, Central Processing Unit (CPU), Graphics Processing Unit (GPU), Accelerated Processing Unit (APU), or the like. More specifically, the processor may be a Complex Instruction Set Computing (CISC) microprocessor, Reduced Instruction Set Computing (RISC) microprocessor, Very Long Instruction Word (VLIW) microprocessor, processor implementing other instruction sets, or processors implementing a combination of instruction sets. The processor may also be one or more special-purpose processing devices such as an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), a system on a chip (SOC), or the like. As will be appreciated by those skilled in the art, in some embodiments, the processor may be a special purpose processor rather than a general purpose processor. The processor may include one or more known processing devices, such as from Pentium, Core, manufactured by IntelTMXeon TM, or
Figure BDA0002353857960000071
Series of microprocessors, Turion manufactured by AMDTMTM、AthlonTM、SempronTM、OpteronTM、FXTM、PhenomTMA family of microprocessors, or any of the various processors manufactured by sun microsystems, inc. The processor may also include an accelerated processing unit, such as by AMDTMTable type A-4(6,8) series of the manufactureTMXeon Phi manufactured by IntelTMAnd (4) series.
S200, under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions; wherein the heat dissipation parameter is related to at least power consumption parameters of the at least two processors.
After the use parameters of the at least two processors of the electronic device are acquired, whether the use parameters of the at least two processors meet the adjustment condition can be judged. The adjusting condition is a triggering condition for triggering the adjustment of the power consumption parameters of the at least two processors, and when the using parameters meet the adjusting condition, the adjustment of the power consumption parameters of the at least two processors is triggered.
In the operation process of the electronic device, the real-time power consumption of the processor can be controlled based on the power consumption parameter of the processor, because the real-time power consumption of the processor is usually positively correlated with the processing task of the processor, and the heat dissipation parameter of the electronic device, namely the real-time power consumption of the electronic device, is determined. For example, when a processing task is executed, the processing capability of a processor is required to be high, the maximum power consumption limit of the processor can be increased, and the maximum power consumption limit of at least another processor is reduced, so that the processing capability of the processing task is increased, the heat dissipation system of the electronic device can meet the real-time heat dissipation requirement of the electronic device, and the electronic device can be ensured to run safely and stably.
The adjustment condition may be a condition related to a usage parameter and/or time of the processor. The power consumption parameter of the processor may include a maximum power consumption limit of the processor at which the processor is maintained without being forced down, among other parameters. For example, the power consumption parameters may include a short-term, audio power consumption (PL2) and/or a long-term power consumption (PL1) of the processor, and a maximum time to maintain the short-term, audio power consumption, and the like. The heat dissipation parameters of the electronic device include real-time power consumption of the whole electronic device or the at least two processors in the electronic device, and are used for representing real-time heat productivity of the electronic device. The maximum power consumption limit of the processor can control the real-time power consumption of the processor, and the real-time power consumption of the at least two processors can be adjusted by adjusting the maximum power consumption limit of the at least two processors, so that the real-time power consumption of the electronic equipment is adjusted, namely the heat dissipation parameter of the electronic equipment is adjusted. The heat dissipation condition is used to comprehensively characterize the heat dissipation capability of the electronic device, and for example, the heat dissipation condition may include a maximum power consumption limit of the electronic device, a rated heat dissipation power of a heat dissipation system of the electronic device, a rated heat dissipation power of each heat dissipation fan in the heat dissipation system, a maximum temperature limit allowed to be reached by each temperature detection point or each heat generating component in the electronic device, and a maximum duration allowed to be maintained at the maximum temperature limit. In other embodiments, the heat dissipation condition may represent a maximum heat dissipation capability of the electronic device, and the heat dissipation parameter of the electronic device satisfying the heat dissipation condition may be that a sum of power consumptions of at least two processors of the electronic device after adjustment does not exceed the maximum heat dissipation capability of the electronic device, for example, the sum of the power consumptions of the at least two processors is not greater than the maximum heat dissipation capability of the electronic device.
According to the control method, the use parameters of at least two processors of the electronic equipment are obtained, and the use parameters can reflect the load condition of the processors, so that the use condition of the electronic equipment is indirectly represented. Under the condition that the use parameters meet the adjustment conditions, the adjustment of the power consumption parameters of at least two processors is triggered, the heat dissipation parameters of the electronic equipment meet the heat dissipation conditions, and the heat dissipation power of the electronic equipment can meet the real-time heat dissipation requirements of the electronic equipment. The processing capacities of the at least two processors can be adjusted by adjusting the power consumption parameters of the at least two processors, so that the processing capacities of the at least two processors are matched with the processing tasks executed under the current use condition of the electronic equipment, the requirement of a user on the processing capacity of the electronic equipment under the current use condition is met under the condition that the heat dissipation of the electronic equipment is guaranteed, and the improvement of user experience is facilitated.
In the specific implementation process, the adjustment condition may have various forms, and there may be various corresponding methods for determining whether the usage parameter satisfies the adjustment condition. In one embodiment, the adjustment condition may be determined to be satisfied if it is detected that a duration for which a first usage parameter of a first processor of the at least two processors is maintained at a first threshold value meets a first time threshold value.
Maintaining the first usage parameter of the first processor at the first threshold may be if the first usage parameter of the first processor is maintained greater than the first threshold, i.e., the load of the first processor is maintained at a higher level. The first usage parameter of the first processor is maintained at the first threshold, which is also the case when the first usage parameter of the first processor is maintained less than the first threshold, i.e. the load of the first processor is maintained at a lower level. Taking the first processor as the CPU as an example, when the duration that the usage rate of the CPU is maintained to be greater than the first threshold meets the first time threshold, it indicates that the demand on the processing capability of the CPU is high under the current usage condition of the electronic device, and more processing tasks need to be executed by the CPU, and it may be determined that the adjustment condition is satisfied. Still taking the first processor as the CPU as an example, when the duration of the usage rate of the CPU being maintained at less than the first threshold meets the first time threshold, it indicates that the requirement of the processing capability of the CPU is low under the current usage condition of the electronic device, and the number of processing tasks that need to be executed by the CPU is small, and it may also be determined that the adjustment condition is satisfied. The short-time fluctuation of the load of the first processor may cause the first usage parameter of the first processor to reach the first threshold value, and then the first usage parameter may be determined to satisfy the adjustment condition, and at this time, if the power consumption parameters of at least two processors are adjusted, the power consumption parameters of the at least two processors may be caused to be mismatched with the long-time usage condition of the electronic device. By setting the first time threshold, the first use parameter of the first processor not only needs to satisfy the first threshold, but also needs to meet the first time threshold at the time length of the first threshold, so that the adjustment condition can represent the long-time use condition of the first processor, thereby avoiding the error adjustment caused by the short-time fluctuation of the first processor, and improving the adjustment accuracy.
In another embodiment, it is determined that the adjustment condition is satisfied when a duration for which the second usage parameter of the second processor of the at least two processors is maintained at the second threshold is detected to meet a second time threshold. The second usage parameter of the second processor being maintained at the second threshold may be a condition that the second usage parameter of the second processor is maintained greater than the second threshold, i.e. the load of the second processor is maintained at a higher level. The second usage parameter of the second processor is maintained at the second threshold, which is the condition that the second usage parameter of the second processor is maintained less than the second threshold, that is, the load of the second processor is maintained at a lower level. Taking the first processor as the GPU as an example, when the duration that the usage rate of the GPU is maintained to be greater than the second threshold meets the second time threshold, it indicates that the processing capability requirement on the GPU is high under the current usage condition of the electronic device, and more tasks need to be executed by the GPU, and it can be determined that the adjustment condition is satisfied. Still taking the second processor as the GPU as an example, when the duration during which the usage rate of the GPU is maintained to be less than the second threshold meets the second time threshold, it indicates that the processing capability requirement on the GPU is low and the number of tasks that need to be executed by the GPU is small under the current usage condition of the electronic device, and it may also be determined that the adjustment condition is satisfied.
In yet another case, the adjustment condition is determined to be satisfied upon detecting that a duration of time for which the first usage parameter of the first of the at least two processors is maintained at the third threshold value meets a third time threshold value and a duration of time for which the second usage parameter of the second of the at least two processors is maintained at a fourth threshold value meets a fourth time threshold value. For example, taking the first processor as the CPU and the second processor as the GPU as an example, in the case that the duration in which the usage rate of the CPU is maintained to be greater than the third threshold value meets the third time threshold value, and the duration in which the usage rate of the GPU is maintained to be less than the fourth threshold value meets the fourth time threshold value, it may be determined that the adjustment condition is satisfied. If one or a part of the processors meet the adjustment condition and the other or another part of the processors do not meet the adjustment condition, the power consumption parameters of the at least two processors are adjusted, the task execution of the other or another part of the processors which do not meet the adjustment condition may be affected, and the normal operation of the electronic device and the use experience of the user may be affected. Whether the adjustment condition is met or not is determined by using the use parameters of the first processor and the second processor, so that the use conditions of the at least two processors can be relatively comprehensively represented, and the problem is avoided.
In some embodiments, the adjusting the power consumption parameters of the at least two processors so that the heat dissipation parameter of the electronic device satisfies the heat dissipation condition includes:
and adjusting the power consumption parameters of the at least two processors at least based on the determined scene mode of the electronic equipment, so that the heat dissipation parameters of the electronic equipment in the current scene mode meet the heat dissipation conditions.
The power consumption parameter of the processor can control the real-time power consumption of the processor and the processing performance of the processor, and although the processing performance of the processor is often proportional to the real-time power consumption of the processor, the real-time power consumption of the processor cannot be infinitely increased. Because the overall heat dissipation capability of the heat dissipation system is fixed, if the maximum power consumption limits of various processors are configured as the rated power consumption limits thereof when the electronic device leaves a factory, the sum of the maximum power consumption limits of the various processors exceeds the heat dissipation power of the heat dissipation system, and the heat dissipation system cannot meet the heat dissipation requirements of all heat-generating components in the operation process, so that the electronic device is unstable or crashed. For the above reasons, when the electronic device leaves the factory, the maximum power consumption limit of various processors of the electronic device usually does not reach the rated power consumption limit.
Taking a CPU and a GPU as an example, the rated power consumption of the CPU may be 120W, the rated power consumption of the GPU may be 150W, but the maximum heat dissipation power allocated to various processors by the heat dissipation system is only 200W, when the electronic device leaves a factory, the maximum power consumption limit of the CPU is usually configured with 100W, and the maximum power consumption limit of the GPU is usually configured with 100W, so as to avoid exceeding the heat dissipation power of the heat dissipation system.
The scene mode refers to a current usage scene of the electronic device, and may include an application scene currently running by the electronic device, or an executed processing task scene, and the like. The scene mode may include, for example, a game mode, a parallel computing mode, an office mode, or a compiler mode, among others. The electronic device is in different scene modes, and usually has a large difference in processing power requirements for various processors, for example, a game scene has a high processing power requirement for a GPU and a low processing power requirement for a CPU. Thus, in a gaming scenario, the real-time power consumption of the GPU is typically high, while the real-time power consumption of the CPU is typically low. If each processor still adopts fixed power consumption parameters to control the real-time power consumption of each processor, even if the heat dissipation power of the heat dissipation system still has a margin, the real-time power consumption of the GPU still cannot be further improved, and the processing capability of the GPU still cannot be continuously improved, which severely limits each processor to release the maximum processing capability thereof.
Therefore, after the scene mode of the electronic device is determined, the power consumption parameters of the at least two processors can be adjusted based on the scene mode, so that the processing capabilities of the at least two processors are adapted to the processing task executed or the application program run in the current usage scene under the condition that the heat dissipation parameters of the electronic device in the current scene mode meet the heat dissipation conditions. That is, under the condition that the real-time power consumption of the electronic device in the current scene mode meets the heat dissipation power or the maximum heat dissipation capacity that can be provided by the heat dissipation system, the processing capacities of the at least two processors are adapted to the processing capacity requirements of the at least two processors in the current usage scene. For example, when it is determined that the electronic device is in a game scene, the maximum power consumption limit values of the CPU and the GPU may be adjusted, and the processing capabilities of the CPU and the GPU may be adapted to the processing capability requirements of the game scene for the CPU and the GPU under the condition that the heat dissipation power of the electronic device can dissipate the maximum heat generation amount of the CPU and the GPU.
In one embodiment, the scene mode of the electronic device may be determined based on the usage parameters of the at least two processors. In different scene modes, the processing tasks executed by the processor are different, and the real-time states of the use parameters such as the load and the utilization rate of the processor are also different. Therefore, the scene mode of the electronic device can be determined based on the usage parameters of the at least two processors. Still take the CPU and the GPU as examples, the CPU mainly includes a controller, an operator, a register, a cache, and a data/control/status bus, the CPU executes instructions in sequence when working, and the CPU is good at processing such as distributed, coordinated control, and complex operations, and has strong versatility. The GPU executes the instructions in a parallel mode, and has strong image processing capacity, special effect processing capacity and parallel computing capacity. In the operation process of the electronic equipment, the CPU can determine whether the task is executed by the CPU or the GPU according to different task types, and loads of the CPU and the GPU are different in different scene modes, so that the scene mode of the electronic equipment can be judged based on the loads of the CPU and the GPU.
In one case, the determining the scene mode in which the electronic device is located based on the usage parameters of the at least two processors may include:
determining that the electronic device is in a first scene mode if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold. Taking the usage parameter as the load of the processor as an example, the fifth threshold and the sixth threshold are both load thresholds. The specific values of the fifth threshold and the sixth threshold can be configured according to practical experience and experimental data. Taking the first processor as GPU and the second processor as CPU for example, the fifth threshold may be, for example, a load greater than 100%, and the sixth threshold may be, for example, a load less than 50%. When the load of the GPU is greater than 100% and the load of the CPU is less than 50%, the task amount of the graphic processing task in the current scene mode is large, and the task amount of the complex operation type processing task is relatively small, it can be determined that the electronic device is possibly in a game scene mode, for example.
In another case, the determining the scene mode in which the electronic device is located based on the usage parameters of the at least two processors may include:
determining that the electronic device is in a second scene mode if the usage parameter of a first processor of the at least two processors meets a fifth threshold and the usage parameter of a second processor of the at least two processors meets a seventh threshold. Taking the first processor as GPU and the second processor as CPU for example, the fifth threshold may be, for example, a load greater than 100%, and the sixth threshold may be, for example, a load less than 40%. When the load of the GPU is greater than 100% and the load of the CPU is less than 40%, it indicates that the current scene mode requires a larger number of processes to be executed in parallel, and the number of processes to be executed sequentially is relatively smaller, so that it can be determined that the electronic device may be in, for example, a parallel computing scene mode.
In yet another case, the determining the scene mode in which the electronic device is located based on the usage parameters of the at least two processors may include:
determining that the electronic device is in a third scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold. Taking the first processor as GPU and the second processor as CPU for example, the eighth threshold may be, for example, a load less than 10%, and the ninth threshold may be a load greater than 70%. When the load of the GPU is less than 10% and the load of the CPU is greater than 70%, it is determined that the current scene mode requires fewer graphics processing tasks to be executed and more complex computing tasks to be executed, and it may be determined that the electronic device may be in a scene mode such as daily office or software coding.
In another scenario, the determining the scene mode of the electronic device based on the usage parameters of the at least two processors may include:
determining that the electronic device is in a fourth scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a tenth threshold. Taking the first processor as GPU and the second processor as CPU for example, the eighth threshold may be, for example, a load less than 10%, and the tenth threshold may be, for example, a load greater than 100%. When the load of the GPU is less than 10% and the load of the CPU is greater than 100%, it is indicated that the current scene mode requires fewer graphics processing tasks to be executed, and the amount of complex computing tasks to be executed is extremely large, so that it can be determined that the electronic device may be in a complex computing or compiler scene mode, for example.
In another embodiment, the scene mode in which the electronic device is located may be determined based on the usage parameters of the at least two processors and the operational information of the electronic device. The running information may include running state information of an application program in the electronic device, task type information of the executed processing task, task quantity information, and the like. On the basis of judging the scene mode of the electronic equipment based on the use parameters of the at least two processors, the scene mode of the electronic equipment is judged together with the running information of the electronic equipment, and the accuracy of judging the scene mode of the electronic equipment can be improved.
In one case, the determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device includes:
determining that the electronic device is in a first scene mode if the electronic device runs a first type of application and a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold. The first type of application may be, for example, a game type application, and in particular, name information, type information, description information, identification information, or the like of the running application may be acquired by, for example, a task management program, and the running application on the electronic device may be determined based on the acquired information. Taking the first processor as GPU and the second processor as CPU for example, the fifth threshold may be, for example, a load greater than 100%, and the sixth threshold may be, for example, a load less than 50%. When the load of the GPU is greater than 100%, the load of the CPU is less than 50%, and the game-like application is running on the electronic device, then it may be determined that the electronic device may be in, for example, a game scene mode.
In another case, the determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device includes:
determining that the electronic device is in a second scene mode if the electronic device runs a first number of tasks of a first type, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a seventh threshold. The first type of task may be a task such as a caching task, a branching task, a pre-fetching task, a decoding task, and graphics processing. The first number is two or more integers. In a specific implementation process, the number of processes being executed, file names executed by the processes, description information, and the like may be obtained by, for example, the task management program to determine whether the first type task is executed on the electronic device, and the number of the first type tasks executed. Taking the first processor as GPU and the second processor as CPU for example, the fifth threshold may be, for example, a load greater than 100%, and the sixth threshold may be, for example, a load less than 40%. When the load of the GPU is greater than 100%, the load of the CPU is less than 40%, and a first number of tasks of a first type are running on the electronic device, then it may be determined that the electronic device may be in, for example, a parallel computing scenario mode.
In another case, the determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device includes:
determining that the electronic device is in a third scene mode if the electronic device runs a second number of applications of a second type, and if a usage parameter of a first processor of the at least two processors meets an eighth threshold and a usage parameter of a second processor of the at least two processors meets a ninth threshold. The second type of application may be an office type application or a software code, and the second number may be one or more. In particular implementation, name information, type information, description information, identification information, or the like of the running applications may be acquired by, for example, the task management program, and the running applications on the electronic device and the number of the certain type of applications may be determined based on the acquired information. Taking the first processor as GPU and the second processor as CPU for example, the eighth threshold may be, for example, a load less than 10%, and the ninth threshold may be a load greater than 70%. When the load of the GPU is less than 10%, the load of the CPU is greater than 70%, and a second number of office-type applications are running on the electronic device, it is indicated that the electronic device may be in a scene mode such as daily office or software coding.
In another case, the determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device includes: and determining that the electronic equipment is in a fourth scene mode under the condition that the electronic equipment runs a second type of task, the use parameter of a first processor in the at least two processors meets an eighth threshold value, and the use parameter of a second processor in the at least two processors meets a tenth threshold value. The second type task may be, for example, a complex computing task or a compiling task, and may obtain running information such as a name of a process being executed by the system, a description of the process, a number of threads corresponding to a certain process, a percentage of the process occupying the processor in unit time, and the like, and determine whether the electronic device runs the second type task. Taking the first processor as GPU and the second processor as CPU for example, the eighth threshold may be, for example, a load less than 10%, and the tenth threshold may be, for example, a load greater than 100%. When the load of the GPU is less than 10%, the load of the CPU is greater than 100%, and the electronic device runs, for example, a complex computation task or a compilation task, it may be determined that the electronic device may be in a scene mode of, for example, a complex computation or a compilation program.
In some embodiments, the adjusting the power consumption parameters of the at least two processors based on at least the determined scene mode in which the electronic device is located, so that the heat dissipation parameters of the electronic device in the current scene mode meet the heat dissipation condition, may include:
s201, obtaining the highest power consumption limit value of the electronic equipment at least based on the identification information of the electronic equipment. The maximum power consumption limit may be a maximum power consumption limit of the whole electronic device, or may be a maximum power consumption limit of the at least two processors. The identification information may include a device model, a device type, or device configuration information of the electronic device, etc. The maximum power consumption limit of the electronic device may be matched from a preset correspondence table based on the device model and the device type information. The maximum power consumption limit of the electronic device may also be directly obtained from the device configuration information. For example, the rated heat dissipation power of the heat dissipation system of the electronic device may be 200W, the maximum power consumption limit of the CPU may be 100W, and the maximum power consumption limit of the GPU may also be 100W.
S202, adjusting power consumption parameters of the at least two processors based on the scene mode of the electronic device and the maximum power consumption limit, so that the heat dissipation parameters of the electronic device in the current scene mode meet the maximum power consumption limit; wherein the heat dissipation parameter of the electronic device has a first relationship with the power consumption parameters of the at least two processors. The power consumption parameter of the processor may be a maximum power consumption limit that the real-time power consumption of the processor can reach, which may be, for example, a short-term, turbo power consumption (PL2) and/or a long-term power consumption (PL 1). The heat dissipation parameter of the electronic device may be the real-time power consumption of the whole electronic device, or the real-time power consumption of the at least two processors. The real-time power consumption of the processor can be controlled based on the maximum power consumption limit value of the processor, so that the real-time power consumption of the electronic equipment can be controlled, namely, the heat dissipation parameters of the electronic equipment are adjusted, and therefore the heat dissipation parameters of the electronic equipment in the current scene mode can accord with the maximum power consumption limit value of the electronic equipment. Generally, the heat dissipation parameter of an electronic device is greater than the power consumption parameter of a certain processor.
In one embodiment, adjusting the power consumption parameters of the at least two processors may include:
in the case where the electronic device includes a first processor and a second processor, increasing power consumption of the first processor to a first power consumption value while decreasing power consumption of the second processor to a second power consumption value, wherein a sum of the first power consumption value and the second power consumption value meets the maximum power consumption limit.
The power consumption of the first processor refers to the maximum real-time power consumption of the first processor, and the power consumption of the second processor refers to the maximum real-time power consumption of the second processor. The first processor may be, for example, a GPU and the second processor may be, for example, a CPU. The maximum real-time power consumption of both the GPU and the CPU may be, for example, 100W by default. It should be noted that the maximum power consumption limit is the maximum real-time power consumption of the first processor and the second processor, not the maximum real-time power consumption of the electronic device as a whole. When the electronic device is in, for example, a game scene mode, the maximum real-time power consumption of the GPU may be adjusted to, for example, 120W, and the maximum real-time power consumption of the CPU may be adjusted to, for example, 80W, so that the maximum real-time power consumption of both the GPU and the CPU still meets the maximum power consumption limit. When the electronic device is in, for example, a parallel computing scenario mode, the maximum real-time power consumption of the GPU may be adjusted to, for example, 140W, and the maximum real-time power consumption of the CPU may be adjusted to, for example, 60W, so that the maximum real-time power consumption of both the GPU and the CPU still meets the maximum power consumption limit.
In another embodiment, adjusting the power consumption parameters of the at least two processors may include:
in the case where the electronic device includes a first processor and a second processor, reducing power consumption of the first processor to a third power consumption value while increasing power consumption of the second processor to a fourth power consumption value, wherein a sum of the third power consumption value and the fourth power consumption value conforms to the maximum power consumption limit value.
The power consumption of the first processor refers to the maximum real-time power consumption of the first processor, and the power consumption of the second processor refers to the maximum real-time power consumption of the second processor. The first processor may be, for example, a GPU and the second processor may be, for example, a CPU. The maximum real-time power consumption of both the GPU and the CPU may be, for example, 100W by default. It should be noted that the maximum power consumption limit is the maximum real-time power consumption of the first processor and the second processor, not the maximum real-time power consumption of the electronic device as a whole. When the electronic device is in, for example, a daily office scenario mode or a software coding scenario mode, the maximum real-time power consumption of the GPU may be adjusted to, for example, 90W, and the maximum real-time power consumption of the CPU may be adjusted to, for example, 110W, so that the maximum real-time power consumption of both the GPU and the CPU still meets the maximum power consumption limit. When the electronic device is in, for example, a complex computing scenario mode or a compiler scenario mode, the maximum real-time power consumption of the GPU may be adjusted to, for example, 80W, and the maximum real-time power consumption of the CPU may be adjusted to, for example, 120W, so that the maximum real-time power consumption of both the GPU and the CPU still meets the maximum power consumption limit.
In particular, there are various ways to adjust power consumption parameters of a processor. Taking intel platform as an example, it can be implemented by adjusting configuration parameters of intel dynamic platform and heat dissipation framework (DPTF), such as critical Policy parameter (critical Policy), Passive Policy parameter (Passive Policy), and Adaptive Policy parameter (Adaptive performance Policy). Taking the platform of ultra-Weir Semiconductors (AMDs) as an example, the maximum power consumption limit of a processor, such as short-term Rui-frequency power consumption (PL2) and long-term Power consumption (PL1), may be set by a basic input output system requesting the driver of the processor. Taking the Graphic Processor (GPU) of england as an example, the maximum power limit of the GPU may be adjusted through a reserved thermal control interface. The maximum power consumption limit of the processor may also be adjusted by, for example, the basic input output system or a driver of the processor. Of course, the above adjustment method is only an example, and does not constitute a specific limitation on the adjustment method of the maximum power consumption of the processing unit, and different adjustment methods may be adopted for different processors, and there may be multiple adjustment methods for the same processor.
The present application also provides a control device, which includes:
the device comprises an obtaining module, a processing module and a processing module, wherein the obtaining module is used for obtaining the use parameters of at least two processors of the electronic equipment;
the adjusting module is used for adjusting the power consumption parameters of the at least two processors under the condition that the use parameters meet adjusting conditions, so that the heat dissipation parameters of the electronic equipment meet heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
In some embodiments, the adjustment module is specifically configured to:
and adjusting the power consumption parameters of the at least two processors at least based on the determined scene mode of the electronic equipment, so that the heat dissipation parameters of the electronic equipment in the current scene mode meet the heat dissipation conditions.
In some embodiments, the adjustment module is specifically configured to:
detecting that the duration of the first usage parameter of the first processor of the at least two processors, which is maintained at the first threshold value, meets a first time threshold value, and determining that the adjustment condition is met; or the like, or, alternatively,
detecting that the duration of the second usage parameter of the second processor of the at least two processors, which is maintained at the second threshold, meets a second time threshold, and determining that the adjustment condition is met; or the like, or, alternatively,
and determining that the adjustment condition is met by detecting that the duration of the first usage parameter of the first processor of the at least two processors maintained at the third threshold value meets a third time threshold value and the duration of the second usage parameter of the second processor of the at least two processors maintained at the fourth threshold value meets a fourth time threshold value.
In some embodiments, further comprising:
a first determination module for determining a scene mode in which the electronic device is located based on the usage parameters of the at least two processors; or the like, or, alternatively,
and the second determination module is used for determining the scene mode of the electronic equipment based on the use parameters of the at least two processors and the running information of the electronic equipment.
In some embodiments, the first determining module is specifically configured to:
determining that the electronic device is in a first scene mode if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the usage parameter of a first processor of the at least two processors meets a fifth threshold and the usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold;
determining that the electronic device is in a fourth scene mode if the usage parameter of a first processor of the at least two processors meets a tenth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold.
In some embodiments, the second determining module is specifically configured to:
determining that the electronic device is in a first scene mode if the electronic device runs a first type of application, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the electronic device runs a first number of first type tasks, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the electronic device runs a second number of applications of a second type, and if a usage parameter of a first processor of the at least two processors meets an eighth threshold and a usage parameter of a second processor of the at least two processors meets a ninth threshold;
and determining that the electronic equipment is in a fourth scene mode under the condition that the electronic equipment runs a second type of task, the use parameter of a first processor in the at least two processors meets a tenth threshold value, and the use parameter of a second processor in the at least two processors meets a ninth threshold value.
In some embodiments, the adjusting module specifically includes:
the acquisition unit is used for acquiring the maximum power consumption limit value of the electronic equipment at least based on the identification information of the electronic equipment;
the adjusting unit is used for adjusting the power consumption parameters of the at least two processors based on the scene mode of the electronic equipment and the maximum power consumption limit, so that the heat dissipation parameters of the electronic equipment in the current scene mode conform to the maximum power consumption limit; wherein the heat dissipation parameter of the electronic device has a first relationship with the power consumption parameters of the at least two processors.
In some embodiments, the adjusting unit is specifically configured to:
in the case that the electronic device includes a first processor and a second processor, increasing the power consumption of the first processor to a first power consumption value while decreasing the power consumption of the second processor to a second power consumption value, wherein a sum of the first power consumption value and the second power consumption value conforms to the maximum power consumption limit value; or the like, or, alternatively,
in the case where the electronic device includes a first processor and a second processor, reducing power consumption of the first processor to a third power consumption value while increasing power consumption of the second processor to a fourth power consumption value, wherein a sum of the third power consumption value and the fourth power consumption value conforms to the maximum power consumption limit value.
The embodiment of the present application further provides an electronic device, which at least includes a memory 901 and a processor 902, where the memory 901 stores an executable program, and the processor 902 implements the following steps when executing the executable program on the memory 901:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
When the processor 902 executes the executable program stored in the memory 901 to adjust the power consumption parameters of the at least two processors so that the heat dissipation parameters of the electronic device satisfy the heat dissipation conditions, the following steps are specifically implemented: and adjusting the power consumption parameters of the at least two processors at least based on the determined scene mode of the electronic equipment, so that the heat dissipation parameters of the electronic equipment in the current scene mode meet the heat dissipation conditions.
The processor 902, when executing the executable program stored on the memory 901, is further configured to implement the steps of:
detecting that the duration of the first usage parameter of the first processor of the at least two processors, which is maintained at the first threshold value, meets a first time threshold value, and determining that the adjustment condition is met; or the like, or, alternatively,
detecting that the duration of the second usage parameter of the second processor of the at least two processors, which is maintained at the second threshold, meets a second time threshold, and determining that the adjustment condition is met; or the like, or, alternatively,
and determining that the adjustment condition is met by detecting that the duration of the first usage parameter of the first processor of the at least two processors maintained at the third threshold value meets a third time threshold value and the duration of the second usage parameter of the second processor of the at least two processors maintained at the fourth threshold value meets a fourth time threshold value.
The processor 902, when executing the executable program stored on the memory 901, is further configured to implement the steps of:
determining a scene mode in which the electronic device is located based on the usage parameters of the at least two processors; or the like, or, alternatively,
and determining the scene mode of the electronic equipment based on the use parameters of the at least two processors and the running information of the electronic equipment.
When the processor 902 executes the executable program stored in the memory 901 and determining the scene mode of the electronic device based on the usage parameters of the at least two processors, the following steps are specifically implemented:
determining that the electronic device is in a first scene mode if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the usage parameter of a first processor of the at least two processors meets a fifth threshold and the usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold;
determining that the electronic device is in a fourth scene mode if the usage parameter of a first processor of the at least two processors meets a tenth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold.
When the processor 902 executes the executable program stored in the memory 901 and determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device, the following steps are specifically implemented:
determining that the electronic device is in a first scene mode if the electronic device runs a first type of application, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the electronic device runs a first number of first type tasks, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the electronic device runs a second number of applications of a second type, and if a usage parameter of a first processor of the at least two processors meets an eighth threshold and a usage parameter of a second processor of the at least two processors meets a ninth threshold;
and determining that the electronic equipment is in a fourth scene mode under the condition that the electronic equipment runs a second type of task, the use parameter of a first processor in the at least two processors meets a tenth threshold value, and the use parameter of a second processor in the at least two processors meets a ninth threshold value.
When the processor 902 executes the executable program, which is stored in the memory 901 and adjusts the power consumption parameters of the at least two processors based on at least the determined scene mode where the electronic device is located, so that the heat dissipation parameters of the electronic device in the current scene mode meet the heat dissipation conditions, the following steps are specifically implemented:
obtaining a maximum power consumption limit value of the electronic equipment at least based on the identification information of the electronic equipment;
adjusting power consumption parameters of the at least two processors based on the scene mode of the electronic equipment and the maximum power consumption limit, so that the heat dissipation parameters of the electronic equipment in the current scene mode conform to the maximum power consumption limit;
wherein the heat dissipation parameter of the electronic device has a first relationship with the power consumption parameters of the at least two processors.
When the processor 902 executes the executable program stored in the memory 901 for adjusting the power consumption parameters of the at least two processors, the following steps are specifically implemented:
in the case that the electronic device includes a first processor and a second processor, increasing the power consumption of the first processor to a first power consumption value while decreasing the power consumption of the second processor to a second power consumption value, wherein a sum of the first power consumption value and the second power consumption value conforms to the maximum power consumption limit value; or the like, or, alternatively,
in the case where the electronic device includes a first processor and a second processor, reducing power consumption of the first processor to a third power consumption value while increasing power consumption of the second processor to a fourth power consumption value, wherein a sum of the third power consumption value and the fourth power consumption value conforms to the maximum power consumption limit value.
The embodiment of the present application further provides a storage medium, which stores a computer program, and when the computer program is executed, the control method provided in any one of the above embodiments of the present application is implemented.
The above embodiments are only exemplary embodiments of the present application, and are not intended to limit the present application, and the protection scope of the present application is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present application and such modifications and equivalents should also be considered to be within the scope of the present application.

Claims (10)

1. A control method, comprising:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions;
wherein the heat dissipation parameter is related to at least power consumption parameters of the at least two processors.
2. The method of claim 1, the adjusting power consumption parameters of the at least two processors such that heat dissipation parameters of an electronic device satisfy heat dissipation conditions, comprising:
and adjusting the power consumption parameters of the at least two processors at least based on the determined scene mode of the electronic equipment, so that the heat dissipation parameters of the electronic equipment in the current scene mode meet the heat dissipation conditions.
3. The method of claim 1, detecting that a duration for which a first usage parameter of a first processor of the at least two processors is maintained at a first threshold meets a first time threshold, determining that the adjustment condition is satisfied; or the like, or, alternatively,
detecting that the duration of the second usage parameter of the second processor of the at least two processors, which is maintained at the second threshold, meets a second time threshold, and determining that the adjustment condition is met; or the like, or, alternatively,
and determining that the adjustment condition is met by detecting that the duration of the first usage parameter of the first processor of the at least two processors maintained at the third threshold value meets a third time threshold value and the duration of the second usage parameter of the second processor of the at least two processors maintained at the fourth threshold value meets a fourth time threshold value.
4. The method of claim 2, further comprising:
determining a scene mode in which the electronic device is located based on the usage parameters of the at least two processors; or the like, or, alternatively,
and determining the scene mode of the electronic equipment based on the use parameters of the at least two processors and the running information of the electronic equipment.
5. The method of claim 4, wherein the determining the scene mode the electronic device is in based on the usage parameters of the at least two processors comprises:
determining that the electronic device is in a first scene mode if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the usage parameter of a first processor of the at least two processors meets a fifth threshold and the usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a ninth threshold;
determining that the electronic device is in a fourth scene mode if the usage parameter of a first processor of the at least two processors meets an eighth threshold and the usage parameter of a second processor of the at least two processors meets a tenth threshold.
6. The method of claim 4, wherein the determining the scene mode of the electronic device based on the usage parameters of the at least two processors and the operation information of the electronic device comprises:
determining that the electronic device is in a first scene mode if the electronic device runs a first type of application, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a sixth threshold;
determining that the electronic device is in a second scene mode if the electronic device runs a first number of first type tasks, and if a usage parameter of a first processor of the at least two processors meets a fifth threshold and a usage parameter of a second processor of the at least two processors meets a seventh threshold;
determining that the electronic device is in a third scene mode if the electronic device runs a second number of applications of a second type, and if a usage parameter of a first processor of the at least two processors meets an eighth threshold and a usage parameter of a second processor of the at least two processors meets a ninth threshold;
and determining that the electronic equipment is in a fourth scene mode under the condition that the electronic equipment runs a second type of task, the use parameter of a first processor in the at least two processors meets an eighth threshold value, and the use parameter of a second processor in the at least two processors meets a tenth threshold value.
7. The method of claim 2, wherein the adjusting the power consumption parameters of the at least two processors based on at least the determined scene mode in which the electronic device is located so that the heat dissipation parameters of the electronic device in the current scene mode meet the heat dissipation conditions comprises:
obtaining a maximum power consumption limit value of the electronic equipment at least based on the identification information of the electronic equipment;
adjusting power consumption parameters of the at least two processors based on the scene mode of the electronic equipment and the maximum power consumption limit, so that the heat dissipation parameters of the electronic equipment in the current scene mode conform to the maximum power consumption limit;
wherein the heat dissipation parameter of the electronic device has a first relationship with the power consumption parameters of the at least two processors.
8. The method of claim 7, wherein adjusting the power consumption parameters of the at least two processors comprises:
in the case that the electronic device includes a first processor and a second processor, increasing the power consumption of the first processor to a first power consumption value while decreasing the power consumption of the second processor to a second power consumption value, wherein a sum of the first power consumption value and the second power consumption value conforms to the maximum power consumption limit value; or the like, or, alternatively,
in the case where the electronic device includes a first processor and a second processor, reducing power consumption of the first processor to a third power consumption value while increasing power consumption of the second processor to a fourth power consumption value, wherein a sum of the third power consumption value and the fourth power consumption value conforms to the maximum power consumption limit value.
9. A control device, comprising:
the device comprises an obtaining module, a processing module and a processing module, wherein the obtaining module is used for obtaining the use parameters of at least two processors of the electronic equipment;
the adjusting module is used for adjusting the power consumption parameters of the at least two processors under the condition that the use parameters meet adjusting conditions, so that the heat dissipation parameters of the electronic equipment meet heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
10. An electronic device comprising at least a memory having an executable program stored thereon and a processor, the processor when executing the executable program on the memory implementing the steps of:
obtaining usage parameters of at least two processors of an electronic device;
under the condition that the use parameters meet the adjustment conditions, adjusting the power consumption parameters of the at least two processors to enable the heat dissipation parameters of the electronic equipment to meet the heat dissipation conditions; wherein the heat dissipation condition is related to at least power consumption parameters of the at least two processors.
CN202010002094.1A 2020-01-02 2020-01-02 Control method, control device and electronic equipment Active CN111190471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010002094.1A CN111190471B (en) 2020-01-02 2020-01-02 Control method, control device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010002094.1A CN111190471B (en) 2020-01-02 2020-01-02 Control method, control device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111190471A true CN111190471A (en) 2020-05-22
CN111190471B CN111190471B (en) 2022-04-22

Family

ID=70710680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010002094.1A Active CN111190471B (en) 2020-01-02 2020-01-02 Control method, control device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111190471B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111619401A (en) * 2020-05-29 2020-09-04 重庆长安汽车股份有限公司 Auxiliary power generation control method and system of extended-range fuel cell vehicle, vehicle control unit and extended-range fuel cell vehicle
CN111796658A (en) * 2020-06-30 2020-10-20 联想(北京)有限公司 Information processing method, electronic equipment and computer readable storage medium
CN112631413A (en) * 2020-12-07 2021-04-09 合肥联宝信息技术有限公司 Power adjusting method and device
CN112685258A (en) * 2020-12-31 2021-04-20 联想(北京)有限公司 Control method and device and electronic equipment
CN113672466A (en) * 2021-08-23 2021-11-19 联想(北京)有限公司 Control method and device and electronic equipment
WO2022110199A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Power consumption control apparatus, processor, and power consumption control method
CN117311989A (en) * 2023-11-28 2023-12-29 四川并济科技有限公司 GPU cluster dynamic power management system and method

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020053684A1 (en) * 2000-08-21 2002-05-09 Gerard Chauvel Task based adaptative profilig and debugging
US20070198863A1 (en) * 2006-02-17 2007-08-23 Pradip Bose Method and system for controlling power in a chip through a power-performance monitor and control unit
CN101630192A (en) * 2008-06-30 2010-01-20 英特尔公司 Intervention of independent self-regulation of power consumption devices
CN105045359A (en) * 2015-07-28 2015-11-11 深圳市万普拉斯科技有限公司 Heat dissipation control method and apparatus
US20160266629A1 (en) * 2015-03-09 2016-09-15 Advanced Micro Devices, Inc. Changing power limits based on device state
CN106559579A (en) * 2016-11-30 2017-04-05 努比亚技术有限公司 Mobile terminal and CPU/GPU scheduling parameter update methods
CN107329757A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Mobile terminal key adaptive approach, mobile terminal and readable storage medium storing program for executing
CN107390852A (en) * 2017-06-23 2017-11-24 联想(北京)有限公司 A kind of control method, electronic equipment and computer-readable recording medium
CN110233926A (en) * 2018-03-05 2019-09-13 联发科技股份有限公司 Power management method and electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020053684A1 (en) * 2000-08-21 2002-05-09 Gerard Chauvel Task based adaptative profilig and debugging
US20070198863A1 (en) * 2006-02-17 2007-08-23 Pradip Bose Method and system for controlling power in a chip through a power-performance monitor and control unit
CN101630192A (en) * 2008-06-30 2010-01-20 英特尔公司 Intervention of independent self-regulation of power consumption devices
US20160266629A1 (en) * 2015-03-09 2016-09-15 Advanced Micro Devices, Inc. Changing power limits based on device state
CN105045359A (en) * 2015-07-28 2015-11-11 深圳市万普拉斯科技有限公司 Heat dissipation control method and apparatus
CN106559579A (en) * 2016-11-30 2017-04-05 努比亚技术有限公司 Mobile terminal and CPU/GPU scheduling parameter update methods
CN107390852A (en) * 2017-06-23 2017-11-24 联想(北京)有限公司 A kind of control method, electronic equipment and computer-readable recording medium
CN107329757A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Mobile terminal key adaptive approach, mobile terminal and readable storage medium storing program for executing
CN110233926A (en) * 2018-03-05 2019-09-13 联发科技股份有限公司 Power management method and electronic device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111619401A (en) * 2020-05-29 2020-09-04 重庆长安汽车股份有限公司 Auxiliary power generation control method and system of extended-range fuel cell vehicle, vehicle control unit and extended-range fuel cell vehicle
CN111796658A (en) * 2020-06-30 2020-10-20 联想(北京)有限公司 Information processing method, electronic equipment and computer readable storage medium
CN111796658B (en) * 2020-06-30 2022-08-19 联想(北京)有限公司 Information processing method, electronic equipment and computer readable storage medium
WO2022110199A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Power consumption control apparatus, processor, and power consumption control method
CN112631413A (en) * 2020-12-07 2021-04-09 合肥联宝信息技术有限公司 Power adjusting method and device
CN112631413B (en) * 2020-12-07 2022-02-08 合肥联宝信息技术有限公司 Power adjusting method and device
CN112685258A (en) * 2020-12-31 2021-04-20 联想(北京)有限公司 Control method and device and electronic equipment
CN113672466A (en) * 2021-08-23 2021-11-19 联想(北京)有限公司 Control method and device and electronic equipment
CN117311989A (en) * 2023-11-28 2023-12-29 四川并济科技有限公司 GPU cluster dynamic power management system and method
CN117311989B (en) * 2023-11-28 2024-02-02 四川并济科技有限公司 GPU cluster dynamic power management system and method

Also Published As

Publication number Publication date
CN111190471B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN111190471B (en) Control method, control device and electronic equipment
US9696782B2 (en) Battery parameter-based power management for suppressing power spikes
CN108780349B (en) System and method for intelligent thermal management in a system-on-chip with heterogeneous cluster architecture
US11307628B2 (en) Multi-level CPU high current protection
CN107003711B (en) System and method for core drop mitigation based on license status
CN107003685B (en) Maximum current protection of system
CN107515663B (en) Method and device for adjusting running frequency of central processing unit kernel
CN112003795B (en) Method, system, equipment and storage medium for dynamically preventing traffic attack
US20130205149A1 (en) Apparatus and method for dynamically adjusting frequency of central processing unit
WO2014099024A1 (en) Dynamic balancing of power across a plurality of processor domains according to power policy control bias
CN110941325B (en) Frequency modulation method and device of processor and computing equipment
EP2804076A2 (en) Adaptively Limiting a Maximum Operating Frequency in a Multicore Processor
US20160342191A1 (en) Cpu frequency scaling apparatus and method
Sundriyal et al. Per-call energy saving strategies in all-to-all communications
CN111697556A (en) Operation control method of electrical equipment and terminal equipment
CN105471614A (en) Overload protection method and device and server
CN112558748B (en) Method, device and equipment for limiting power consumption of server and readable storage medium
Zhang et al. Sensitivity analysis for edf scheduled arbitrary deadline real-time systems
WO2021057023A1 (en) Method and system for reducing power consumption by automatically allocating computing resource on the basis of component temperature
US11262832B2 (en) Power consumption control of computing devices
US11853111B2 (en) System and method for controlling electrical current supply in a multi-processor core system via instruction per cycle reduction
CN111309480A (en) Method and equipment for dynamic power consumption capping regulation and control
CN113612216A (en) Energy routing control method and device and energy routing system
KR20070059839A (en) Method and device managing power in embedded linux system
US11714442B2 (en) Controlling electrical power consumption for elements in an electronic device based on a platform electrical power limit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant