CN107992183B - CPU power consumption limit value optimization method and electronic equipment - Google Patents

CPU power consumption limit value optimization method and electronic equipment Download PDF

Info

Publication number
CN107992183B
CN107992183B CN201711366391.9A CN201711366391A CN107992183B CN 107992183 B CN107992183 B CN 107992183B CN 201711366391 A CN201711366391 A CN 201711366391A CN 107992183 B CN107992183 B CN 107992183B
Authority
CN
China
Prior art keywords
cpu
power consumption
frequency
limit value
consumption limit
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.)
Active
Application number
CN201711366391.9A
Other languages
Chinese (zh)
Other versions
CN107992183A (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 CN201711366391.9A priority Critical patent/CN107992183B/en
Publication of CN107992183A publication Critical patent/CN107992183A/en
Application granted granted Critical
Publication of CN107992183B publication Critical patent/CN107992183B/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/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • G06F9/4893Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues taking into account power or heat criteria
    • 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)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The method obtains the maximum clock frequency which can be supported by the CPU and the parameter information of the preset safety parameters of the CPU after obtaining the optimization instruction for indicating the optimization of the CPU power consumption limit, and optimizes the CPU power consumption limit corresponding to the maximum Rui frequency of the CPU based on the maximum clock frequency and the parameter information of the preset safety parameters. Therefore, the scheme for automatically optimizing the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is provided, compared with a manual optimization mode in the prior art, the automatic mode is more convenient, and in the automatic optimization process, the parameter information of the preset safety parameters of the CPU is considered, so that the CPU can be effectively prevented from running under an unsafe condition, and the safety of the CPU is ensured.

Description

CPU power consumption limit value optimization method and electronic equipment
Technical Field
The invention belongs to the technical field of CPU (Central Processing Unit) performance optimization, and particularly relates to a CPU power consumption limit optimization method and electronic equipment.
Background
The CPU frequency, which is the clock frequency when the CPU core is working, has a main frequency and a Rui frequency. The main frequency of the CPU represents the oscillation speed of the digital pulse signal in the CPU, and the main frequency has no direct relation with the actual operational capability of the CPU; the CPU frequency is a technology that after an operation program is started, the processor can automatically accelerate to a proper frequency, so that the original operation speed can be increased by 10-20% to ensure the smooth operation of the program, and the maximum frequency is the highest frequency which can be reached when the CPU frequency is automatically turned.
The CPU has two Power consumption values of PL1 and PL2 corresponding to the main frequency and the maximum turbo frequency, and at present, the Power consumption value PL1 corresponding to the main frequency of the CPU is TDP (Thermal Design Power) and the Power consumption value PL2 corresponding to the maximum turbo frequency of the CPU is PL1 × 1.2 by default. According to this definition, after the CPU is pressurized such that the Rui _ Frequency rises to trigger the PL2 (i.e., the power consumption value corresponding to the Rui _ Frequency reaches the PL2), the frequency is pulled down. However, in practical applications, the default PL2 value, i.e. the power consumption value corresponding to the maximum turbo frequency, often does not reach the optimum value, i.e. from the design point of the hardware platform of the device or the heat dissipation design, etc., the CPU may be able to support the higher turbo frequency, however, due to the limitation of the PL2 value, the CPU may not reach the higher turbo frequency. In response to this problem, the prior art often adopts a manual setting mode with multiple attempts to change the value of the PL2 so as to optimize the value of the PL 2.
However, the method for manually setting the PL2 value to optimize the PL2 value is not convenient enough, and meanwhile, the method for manually setting the PL2 value has poor safety, so that the CPU can run under unsafe power consumption, and the CPU is damaged.
Disclosure of Invention
In view of this, an object of the present application is to provide a method for optimizing a power limit of a CPU and an electronic device, so as to conveniently and reasonably optimize the power limit corresponding to the maximum frequency of the CPU.
Therefore, the application discloses the following technical scheme:
a method for optimizing a CPU power consumption limit, the method comprising:
obtaining an optimization instruction for indicating an optimized CPU power limit value, wherein the CPU power limit value corresponds to the maximum Rui frequency of a CPU;
acquiring parameter information of a maximum clock frequency which can be supported by the CPU and a preset safety parameter of the CPU;
and optimizing the CPU power consumption limit value based on the maximum clock frequency and the parameter information of the preset safety parameter.
The method preferably, the obtaining an optimization instruction for indicating an optimized CPU power consumption limit includes:
and in the BIOS self-checking process of the basic input/output system, obtaining an optimization instruction for indicating the limit value of the optimized CPU power consumption.
Preferably, the method for obtaining parameter information of the predetermined security parameter of the CPU includes:
and obtaining a safe power consumption threshold and a safe heat dissipation parameter threshold of the CPU.
Preferably, in the method, the optimizing the CPU power consumption limit value based on the maximum clock frequency and the parameter information of the predetermined safety parameter includes:
under the condition that the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, gradually pressurizing the CPU so as to gradually increase the clock frequency of the CPU until the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold, and stopping pressurizing;
and obtaining the CPU power consumption value when the pressurization is stopped, and taking the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value.
The above method, preferably, further comprises:
and setting the optimized CPU power consumption limit value in a preset storage position through the BIOS so as to replace the original CPU power consumption limit value in the storage position.
An electronic device, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring an optimization instruction for indicating the optimization of a CPU power consumption limit value, and the CPU power consumption limit value corresponds to the maximum Rui frequency of a CPU;
a second obtaining unit, configured to obtain parameter information of a maximum clock frequency that can be supported by the CPU and a predetermined security parameter of the CPU;
and the optimization unit is used for optimizing the CPU power consumption limit value based on the maximum clock frequency and the parameter information of the preset safety parameter.
Preferably, in the electronic device, the first obtaining unit is specifically configured to:
and in the self-checking process of the BIOS, obtaining an optimization instruction for indicating the limit value of the power consumption of the optimized CPU.
Preferably, in the electronic device, the obtaining, by the second obtaining unit, parameter information of a predetermined security parameter of the CPU specifically includes:
and acquiring a safe power consumption threshold and a safe heat dissipation parameter threshold of the CPU.
Preferably, the optimization unit of the electronic device is specifically configured to:
under the condition that the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, gradually pressurizing the CPU so as to gradually increase the clock frequency of the CPU until the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold, and stopping pressurizing;
and obtaining the CPU power consumption value when the pressurization is stopped, and taking the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value.
Preferably, the electronic device further includes:
and the setting unit is used for setting the optimized CPU power consumption limit value in a preset storage position through the BIOS so as to replace the original CPU power consumption limit value in the storage position.
Based on the above scheme, it can be known that the application discloses a method for optimizing a CPU power consumption limit and an electronic device, where after an optimization instruction for instructing optimization of the CPU power consumption limit is obtained, parameter information of a maximum clock frequency that can be supported by a CPU and a predetermined safety parameter of the CPU is obtained, and the CPU power consumption limit corresponding to the maximum frequency of the CPU is optimized based on the maximum clock frequency and the parameter information of the predetermined safety parameter. Therefore, the scheme for automatically optimizing the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is provided, compared with a manual optimization mode in the prior art, the automatic mode is more convenient, and in the automatic optimization process, the parameter information of the preset safety parameters of the CPU is considered, so that the CPU can be effectively prevented from running under an unsafe condition, and the safety of the CPU is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flowchart of a first embodiment of a method for optimizing a CPU power consumption limit value provided in the present application;
FIG. 2 is a flowchart of a second embodiment of a method for optimizing a CPU power consumption limit value provided by the present application;
FIG. 3 is a flowchart of a third embodiment of a method for optimizing a CPU power consumption limit value provided in the present application;
fig. 4 is a schematic structural diagram of a fourth embodiment of an electronic device provided in the present application;
fig. 5 is a schematic structural diagram of a sixth embodiment of an electronic device provided in the present application.
Detailed Description
For reference and clarity, the technical terms, abbreviations or acronyms used hereinafter are to be construed in summary as follows:
TDP: the English is called Thermaldesign Power, namely the Power consumption of the heat dissipation design. The method is mainly used for designing systems by computer system manufacturers, heat sink/fan manufacturers, chassis manufacturers and the like. Generally, TDP is mainly applied to CPUs, and the TDP value of a CPU corresponds to the highest heat dissipation heat that a final version of a CPU in a series may reach at full load (theoretical utilization of the CPU is 100%), and the heat sink must ensure that the temperature of a processor is still within a design range when the TDP of the processor is maximum.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a method for optimizing a CPU power consumption limit, which may be applied to an electronic device, where the electronic device may be various intelligent terminals such as a smart phone and a tablet computer, or may also be various computer devices such as a notebook, a desktop, and an all-in-one machine, as shown in fig. 1, the method includes the following steps:
step 101, obtaining an optimization instruction for indicating an optimized CPU power consumption limit, where the CPU power consumption limit corresponds to a maximum frequency of the CPU.
The optimization instruction is used for indicating that the CPU power limit value corresponding to the maximum Rui frequency of the CPU of the electronic equipment is optimized, so that the CPU can be supported to automatically Rui frequency to higher frequency, and the requirement of the program on the higher Rui frequency of the CPU during running is further met.
The optimization instruction may be triggered by a user of the electronic device by performing a corresponding operation on an interface of the electronic device, or may also be triggered automatically by the electronic device, which is not limited in this embodiment.
And 102, acquiring parameter information of the maximum clock frequency which can be supported by the CPU and a preset safety parameter of the CPU.
After the optimization instruction is obtained, the instruction is responded to optimize the CPU power consumption limit value corresponding to the maximum Rui frequency of the CPU.
In response to the instruction, the present embodiment first obtains the maximum clock frequency that can be supported by the CPU, so as to provide a required data basis for optimizing the CPU power consumption limit, and meanwhile, in view of safety, in order to avoid that the CPU runs under an unsafe condition, such as running under an unsafe power consumption or running under an unsafe heat dissipation condition, during the process of optimizing the CPU power consumption limit, the present embodiment also obtains parameter information of a predetermined safety parameter, so as to provide required safety reference information for optimizing the CPU power consumption limit.
The parameter information of the predetermined safety parameter may correspondingly include, but is not limited to, a safety power consumption threshold value and a safety heat dissipation parameter threshold value of the CPU.
And 103, optimizing the power consumption limit value of the CPU based on the maximum clock frequency and the parameter information of the preset safety parameter.
On the basis of the above steps, this step optimizes the CPU power consumption limit corresponding to the maximum frequency of the CPU based on the obtained maximum clock frequency and the parameter information of the predetermined safety parameter, such as a safety power consumption threshold, a safety heat dissipation parameter threshold, and the like, so that the CPU can be subjected to turbo-frequency to a higher frequency based on the optimized power consumption limit when the subsequent CPU is subjected to auto-turbo-frequency.
Based on the above scheme, it can be known that, according to the method for optimizing the power consumption limit of the CPU disclosed in the present application, after the optimization instruction for instructing to optimize the power consumption limit of the CPU is obtained, the maximum clock frequency that can be supported by the CPU and the parameter information of the predetermined safety parameter of the CPU are obtained, and the power consumption limit of the CPU corresponding to the maximum frequency of the CPU is optimized based on the maximum clock frequency and the parameter information of the predetermined safety parameter. Therefore, the scheme for automatically optimizing the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is provided, compared with a manual optimization mode in the prior art, the automatic mode is more convenient, and in the automatic optimization process, the parameter information of the preset safety parameters of the CPU is considered, so that the CPU can be effectively prevented from running under an unsafe condition, and the safety of the CPU is ensured.
The above-described method of the present application will be described in further detail in the following example two. Referring to fig. 2, fig. 2 is a flowchart of a second embodiment of the method for optimizing the CPU power consumption limit disclosed in the present application, and in the second embodiment, the method may be implemented by the following processing procedures:
step 201, in a BIOS (Basic Input Output System) self-checking process, obtaining an optimization instruction for indicating an optimized CPU power consumption limit.
In this embodiment, preferably, the optimization instruction is triggered in an automatic triggering manner, that is, the optimization instruction for indicating the power consumption limit of the CPU is automatically triggered by the electronic device. As a possible implementation manner, in the embodiment, the optimization instruction is preferably automatically triggered by the electronic device in the BIOS self-checking process.
Then, this step correspondingly obtains the optimized instruction during the BIOS self-test, and then, the instruction may be responded by executing the following steps of the method of this embodiment, so as to optimize the CPU power consumption limit corresponding to the maximum frequency of the CPU.
Step 202, obtaining the maximum clock frequency which can be supported by the CPU, and obtaining a safe power consumption threshold and a safe heat dissipation parameter threshold of the CPU.
After the optimization instruction is obtained, in order to respond to the instruction, the maximum clock frequency which can be supported by the CPU is obtained in the step, so that a required data basis is provided for optimizing the power consumption limit value of the CPU; and meanwhile, parameter information of preset safety parameters such as a safety power consumption threshold value and a safety heat dissipation parameter threshold value of the CPU is obtained, so that required safety reference information is provided for optimizing the CPU power consumption limit value.
And 203, under the condition that the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, gradually pressurizing the CPU so as to gradually increase the clock frequency of the CPU, and stopping pressurizing until the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold.
When the CPU power consumption limit corresponding to the maximum frequency of the CPU is optimized, it is first detected whether the current heat dissipation parameter value of the CPU is lower than the safe heat dissipation parameter threshold, if so, the CPU power consumption limit is no longer optimized for safety, otherwise, if not, the CPU power consumption limit is continuously tested to obtain the optimal CPU power consumption limit.
Specifically, under the condition that the current heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, the clock frequency of the CPU can be gradually increased by gradually pressurizing the CPU, wherein the power consumption value of the CPU is correspondingly gradually increased in the process of continuously pressurizing the CPU to gradually increase the clock frequency of the CPU, so that the optimal limit value that the power consumption of the CPU can reach is dynamically tested.
It should be noted that the optimal CPU power limit should not exceed the safe power threshold of the CPU based on safety considerations, in addition to being able to support the CPU's turbo to higher frequencies. In view of this, in this step, when the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, the CPU is continuously pressurized, so that in the process of gradually increasing the clock frequency of the CPU, when the clock frequency of the CPU reaches the maximum clock frequency, or the power consumption value of the CPU reaches the safe power consumption threshold, pressurization is stopped, and since the power consumption value of the CPU corresponding to the time when pressurization is stopped can support the CPU to reach the maximum clock frequency, or the power consumption value of the CPU reaches the safe power consumption threshold of the CPU (when pressurization is continued again, the CPU operates under an unsafe power consumption condition), the power consumption value of the CPU at this time can be considered as the optimal power consumption limit value of the CPU.
And step 204, obtaining the CPU power consumption value when the pressurization is stopped, and taking the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value.
On the basis of the steps, the step obtains the CPU power consumption value when the pressurization is stopped, and takes the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value, thereby realizing the optimization of the CPU power consumption limit value corresponding to the maximum Rui frequency of the CPU. Subsequently, based on the optimized CPU power consumption limit value, the CPU can be supported to reach higher frequency, and the CPU can be operated under the condition of safe power consumption.
When the method is implemented specifically, a corresponding executable file can be embedded in the BOIS code, and the executable file comprises corresponding codes for realizing each processing step in the method, so that in the power-on self-test process of the electronic equipment, the BIOS can call the executable file to automatically trigger an optimization instruction for indicating the power consumption limit value of the optimized CPU, respond to the instruction to obtain the maximum clock frequency which can be supported by the CPU and the parameter information of the preset safety parameters of the CPU, on the basis, the CPU of the equipment is subjected to a pressurization test, and finally, the optimal power consumption limit value of the CPU is obtained based on the pressurization test process, so that the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is optimized.
According to the embodiment, the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is optimized by performing the pressurization test on the CPU in the power-on self-test process of the electronic equipment, and based on the optimized power consumption limit value of the CPU, the Rui frequency of the CPU can be supported to be higher, and the CPU can be operated under the safe power consumption condition.
Referring to fig. 3, fig. 3 is a flowchart of a third embodiment of the method for optimizing the CPU power consumption limit disclosed in the present application, and in the third embodiment, the method may further include the following steps:
step 205, setting the optimized CPU power consumption limit value in a predetermined storage location through the BIOS to replace the original CPU power consumption limit value in the storage location.
Specifically, on the basis of performing a pressurization test on the CPU, obtaining a CPU power consumption value when pressurization is stopped, and taking the CPU power consumption value as an optimized CPU power consumption limit value, the optimized CPU power consumption limit value may be set in a predetermined storage location, for example, may be set in a register corresponding to an MSR of the CPU, so as to replace an original CPU power consumption limit value in the storage location, so that the optimized CPU power consumption limit value becomes effective.
Subsequently, when the CPU core frequency needs to be executed, the optimized CPU power consumption limit value can be read from the storage position, and the core frequency process of the CPU is controlled by utilizing the optimized CPU power consumption limit value. Based on the optimized CPU power consumption limit value, the CPU can be supported to reach higher frequency, and the CPU can be operated under the safe power consumption condition.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a fourth embodiment of an electronic device disclosed in the present application, where the electronic device may be various smart terminals such as a smart phone and a tablet computer, or may also be various computer devices such as a notebook, a desktop, and a kiosk, and as shown in fig. 4, the electronic device includes:
a first obtaining unit 100, configured to obtain an optimization instruction for indicating an optimized CPU power limit, where the CPU power limit corresponds to a maximum core frequency of the CPU.
The optimization instruction is used for indicating that the CPU power limit value corresponding to the maximum Rui frequency of the CPU of the electronic equipment is optimized, so that the CPU can be supported to automatically Rui frequency to higher frequency, and the requirement of the program on the higher Rui frequency of the CPU during running is further met.
The optimization instruction may be triggered by a user of the electronic device by performing a corresponding operation on an interface of the electronic device, or may also be triggered automatically by the electronic device, which is not limited in this embodiment.
A second obtaining unit 200 for obtaining parameter information of a maximum clock frequency that the CPU can support and a predetermined security parameter of the CPU.
After the optimization instruction is obtained, the instruction is responded to optimize the CPU power consumption limit value corresponding to the maximum Rui frequency of the CPU.
In response to the instruction, the present embodiment first obtains the maximum clock frequency that can be supported by the CPU, so as to provide a required data basis for optimizing the CPU power consumption limit, and meanwhile, in view of safety, in order to avoid that the CPU runs under an unsafe condition, such as running under an unsafe power consumption or running under an unsafe heat dissipation condition, during the process of optimizing the CPU power consumption limit, the present embodiment also obtains parameter information of a predetermined safety parameter, so as to provide required safety reference information for optimizing the CPU power consumption limit.
The parameter information of the predetermined safety parameter may correspondingly include, but is not limited to, a safety power consumption threshold value and a safety heat dissipation parameter threshold value of the CPU.
An optimizing unit 300, configured to optimize the CPU power consumption limit value based on the maximum clock frequency and the parameter information of the predetermined safety parameter.
On the basis of the above processing, the CPU power consumption limit corresponding to the maximum core frequency of the CPU may be optimized based on the obtained maximum clock frequency and the parameter information of the predetermined safety parameter, such as a safety power consumption threshold, a safety heat dissipation parameter threshold, and the like, so that when the subsequent CPU is automatically in core frequency, the CPU can be subjected to core frequency to a higher frequency based on the optimized power consumption limit.
Based on the above scheme, it can be seen that, after obtaining the optimization instruction for instructing to optimize the CPU power consumption limit, the electronic device disclosed in the present application obtains the maximum clock frequency that can be supported by the CPU and the parameter information of the predetermined safety parameter of the CPU, and optimizes the CPU power consumption limit corresponding to the maximum frequency of the CPU based on the maximum clock frequency and the parameter information of the predetermined safety parameter. Therefore, the scheme for automatically optimizing the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is provided, compared with a manual optimization mode in the prior art, the automatic mode is more convenient, and in the automatic optimization process, the parameter information of the preset safety parameters of the CPU is considered, so that the CPU can be effectively prevented from running under an unsafe condition, and the safety of the CPU is ensured.
The detailed explanation of each unit included in the electronic device of the present application is continued in the following fifth embodiment.
In this embodiment, the first obtaining unit 100 in the electronic device is specifically configured to: and in the self-checking process of the BIOS, obtaining an optimization instruction for indicating the limit value of the power consumption of the optimized CPU.
The present embodiment preferably uses an automatic triggering manner to trigger the optimization instruction, that is, the optimization instruction for indicating the optimized CPU power consumption limit is automatically triggered by the electronic device. As a possible implementation manner, in the embodiment, the optimization instruction is preferably automatically triggered by the electronic device in the BIOS self-checking process.
Then, the first obtaining unit 100 correspondingly obtains the optimized instruction in the BIOS self-test process, and then may respond to the optimized instruction by executing the functions provided by other units of the electronic device, so as to optimize the CPU power consumption limit corresponding to the maximum frequency of the CPU.
Correspondingly, the second obtaining unit 200 is specifically configured to: and acquiring the maximum clock frequency which can be supported by the CPU, and acquiring a safe power consumption threshold and a safe heat dissipation parameter threshold of the CPU.
After obtaining the optimization instruction, in order to respond to the instruction, the second obtaining unit 200 obtains the maximum clock frequency that can be supported by the CPU, so as to provide a required data basis for optimizing the power consumption limit value of the CPU; and meanwhile, parameter information of preset safety parameters such as a safety power consumption threshold value and a safety heat dissipation parameter threshold value of the CPU is obtained, so that required safety reference information is provided for optimizing the power consumption limit value of the CPU.
Correspondingly, the optimization unit 300 is specifically configured to: under the condition that the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, gradually pressurizing the CPU so as to gradually increase the clock frequency of the CPU until the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold, and stopping pressurizing; and obtaining the CPU power consumption value when the pressurization is stopped, and taking the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value.
When the CPU power consumption limit corresponding to the maximum frequency of the CPU is optimized, it is first detected whether the current heat dissipation parameter value of the CPU is lower than the safe heat dissipation parameter threshold, if so, the CPU power consumption limit is no longer optimized for safety, otherwise, if not, the CPU power consumption limit is continuously tested to obtain the optimal CPU power consumption limit.
Specifically, under the condition that the current heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, the clock frequency of the CPU can be gradually increased by gradually pressurizing the CPU, wherein the power consumption value of the CPU is correspondingly gradually increased in the process of continuously pressurizing the CPU to gradually increase the clock frequency of the CPU, so that the optimal limit value that the power consumption of the CPU can reach is dynamically tested.
It should be noted that the optimal CPU power limit should not exceed the safe power threshold of the CPU based on safety considerations, in addition to being able to support the CPU's turbo to higher frequencies. In view of this, in the process that the clock frequency of the CPU is gradually increased by continuously pressurizing the CPU when the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, the pressurization is stopped when the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold, and since the power consumption value of the CPU corresponding to the time when the pressurization is stopped can support the CPU to reach the maximum clock frequency or reaches the safe power consumption threshold of the CPU (the CPU operates under the unsafe power consumption condition by continuing the pressurization), the power consumption value of the CPU at this time can be considered as the optimal power consumption limit value of the CPU.
Therefore, the CPU power consumption value at the time of stopping pressurization can be obtained and used as the optimized CPU power consumption limit value, thereby optimizing the CPU power consumption limit value corresponding to the maximum frequency of the CPU. Subsequently, based on the optimized CPU power consumption limit value, the CPU can be supported to reach higher frequency, and the CPU can be operated under the condition of safe power consumption.
When the method is implemented specifically, a corresponding executable file can be embedded in the BOIS code, and the executable file comprises corresponding codes for realizing the functions of all units in the electronic equipment, so that in the power-on self-test process of the electronic equipment, the BIOS can call the executable file to automatically trigger an optimization instruction for indicating the power consumption limit value of the optimized CPU, respond to the instruction to obtain the maximum clock frequency which can be supported by the CPU and the parameter information of the preset safety parameters of the CPU, perform the pressure test on the CPU of the equipment on the basis, and finally obtain the optimal power consumption limit value of the CPU based on the pressure test process, thereby realizing the optimization of the power consumption limit value of the CPU corresponding to the maximum frequency of the Rui of the CPU.
According to the embodiment, the power consumption limit value of the CPU corresponding to the maximum Rui frequency of the CPU is optimized by performing the pressurization test on the CPU in the power-on self-test process of the electronic equipment, and based on the optimized power consumption limit value of the CPU, the Rui frequency of the CPU can be supported to be higher, and the CPU can be operated under the safe power consumption condition.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a sixth embodiment of an electronic device disclosed in the present application, and in the sixth embodiment, the electronic device may further include:
a setting unit 400, configured to set, by the BIOS, the optimized CPU power consumption limit value in a predetermined storage location, so as to replace an original CPU power consumption limit value in the storage location.
Specifically, on the basis of performing a pressurization test on the CPU, obtaining a CPU power consumption value when pressurization is stopped, and taking the CPU power consumption value as an optimized CPU power consumption limit value, the optimized CPU power consumption limit value may be set in a predetermined storage location, for example, may be set in a register corresponding to an MSR of the CPU, so as to replace an original CPU power consumption limit value in the storage location, so that the optimized CPU power consumption limit value becomes effective.
Subsequently, when the CPU core frequency needs to be executed, the optimized CPU power consumption limit value can be read from the storage position, and the core frequency process of the CPU is controlled by utilizing the optimized CPU power consumption limit value. Based on the optimized CPU power consumption limit value, the CPU can be supported to reach higher frequency, and the CPU can be operated under the safe power consumption condition.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
For convenience of description, the above system or apparatus is described as being divided into various modules or units by function, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
Finally, it is further noted that, herein, relational terms such as first, second, third, fourth, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for optimizing a CPU power consumption limit, the method comprising:
the method comprises the steps that an optimization instruction used for indicating optimization of a CPU power consumption limit value is obtained through automatic triggering of electronic equipment, the optimization instruction is used for indicating optimization of the CPU power consumption limit value corresponding to the maximum Rui frequency of a CPU, so that the CPU can be supported to automatically Rui frequency to higher frequency, and the CPU power consumption limit value corresponds to the maximum Rui frequency of the CPU;
acquiring parameter information of a maximum clock frequency which can be supported by the CPU and a preset safety parameter of the CPU;
optimizing a CPU power consumption limit value corresponding to the CPU maximum Rui frequency based on the maximum clock frequency and the parameter information of the preset safety parameter so as to determine an optimized CPU maximum Rui frequency power consumption limit value;
and carrying out the Rui frequency on the CPU based on the optimized maximum Rui frequency power consumption limit value of the CPU when the program runs so as to ensure that the maximum Rui frequency does not exceed the CPU frequency corresponding to the power consumption limit value.
2. The method of claim 1, wherein obtaining optimization instructions for indicating an optimized CPU power consumption limit comprises:
and in the BIOS self-checking process of the basic input/output system, obtaining an optimization instruction for indicating the limit value of the optimized CPU power consumption.
3. The method of claim 1, wherein the obtaining parameter information of the predetermined security parameters of the CPU comprises:
and obtaining a safe power consumption threshold and a safe heat dissipation parameter threshold of the CPU.
4. The method of claim 3, wherein optimizing the CPU power consumption limit based on the maximum clock frequency and the parameter information of the predetermined safety parameter comprises:
under the condition that the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, gradually pressurizing the CPU so as to gradually increase the clock frequency of the CPU until the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold, and stopping pressurizing;
and obtaining the CPU power consumption value when the pressurization is stopped, and taking the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value.
5. The method of claim 2, further comprising:
and setting the optimized CPU power consumption limit value in a preset storage position through the BIOS so as to replace the original CPU power consumption limit value in the storage position.
6. An electronic device, comprising:
the device comprises a first acquisition unit, a first processing unit and a second acquisition unit, wherein the first acquisition unit is used for automatically triggering and acquiring an optimization instruction for indicating and optimizing a CPU power consumption limit value through electronic equipment, the optimization instruction is used for indicating and optimizing the CPU power consumption limit value corresponding to the maximum Rui frequency of the CPU so as to support the CPU to automatically Rui frequency to higher frequency, and the CPU power consumption limit value corresponds to the maximum Rui frequency of the CPU;
a second obtaining unit, configured to obtain parameter information of a maximum clock frequency that can be supported by the CPU and a predetermined security parameter of the CPU;
the optimization unit is used for optimizing the CPU power consumption limit value corresponding to the CPU maximum Rui frequency based on the maximum clock frequency and the parameter information of the preset safety parameter so as to determine an optimized CPU maximum Rui frequency power consumption limit value; and carrying out the Rui frequency on the CPU based on the optimized maximum Rui frequency power consumption limit value of the CPU when the program runs so as to ensure that the maximum Rui frequency does not exceed the CPU frequency corresponding to the power consumption limit value.
7. The electronic device according to claim 6, wherein the first obtaining unit is specifically configured to:
and in the BIOS self-checking process, obtaining an optimization instruction for indicating the power consumption limit value of the optimized CPU.
8. The electronic device according to claim 6, wherein the obtaining, by the second obtaining unit, parameter information of a predetermined security parameter of the CPU specifically includes:
and obtaining a safe power consumption threshold and a safe heat dissipation parameter threshold of the CPU.
9. The electronic device according to claim 8, wherein the optimization unit is specifically configured to:
under the condition that the heat dissipation parameter value of the CPU is not lower than the safe heat dissipation parameter threshold, gradually pressurizing the CPU so as to gradually increase the clock frequency of the CPU until the clock frequency of the CPU reaches the maximum clock frequency or the power consumption value of the CPU reaches the safe power consumption threshold, and stopping pressurizing;
and obtaining the CPU power consumption value when the pressurization is stopped, and taking the CPU power consumption value when the pressurization is stopped as the optimized CPU power consumption limit value.
10. The electronic device of claim 7, further comprising:
and the setting unit is used for setting the optimized CPU power consumption limit value in a preset storage position through the BIOS so as to replace the original CPU power consumption limit value in the storage position.
CN201711366391.9A 2017-12-18 2017-12-18 CPU power consumption limit value optimization method and electronic equipment Active CN107992183B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711366391.9A CN107992183B (en) 2017-12-18 2017-12-18 CPU power consumption limit value optimization method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711366391.9A CN107992183B (en) 2017-12-18 2017-12-18 CPU power consumption limit value optimization method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107992183A CN107992183A (en) 2018-05-04
CN107992183B true CN107992183B (en) 2022-05-31

Family

ID=62037787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711366391.9A Active CN107992183B (en) 2017-12-18 2017-12-18 CPU power consumption limit value optimization method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107992183B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111142640B (en) * 2019-12-31 2021-11-16 联想(北京)有限公司 Control method of electronic equipment
CN116391162A (en) * 2020-11-10 2023-07-04 华为技术有限公司 Power consumption control method and device
CN112685258A (en) * 2020-12-31 2021-04-20 联想(北京)有限公司 Control method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475790A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Intelligent mobile terminal power consumption management method
CN105992985A (en) * 2013-11-21 2016-10-05 高通股份有限公司 Method and system for optimizing a core voltage level and operating frequency of individual subcomponents for reducing power consumption within a portable computing device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3769200B2 (en) * 2001-03-06 2006-04-19 インターナショナル・ビジネス・マシーンズ・コーポレーション Cooling fan control method and apparatus
US6948082B2 (en) * 2002-05-17 2005-09-20 International Business Machines Corporation Method and apparatus for software-assisted thermal management for electronic systems
JP2007233782A (en) * 2006-03-02 2007-09-13 Lenovo Singapore Pte Ltd Control method for heating value, and computer
CN101477403B (en) * 2009-01-22 2011-10-05 浪潮电子信息产业股份有限公司 Automatic control method for system power consumption
CN102566726A (en) * 2010-12-16 2012-07-11 鸿富锦精密工业(深圳)有限公司 Automatic power consumption control network equipment and power consumption control method thereof
JP2014120072A (en) * 2012-12-18 2014-06-30 Toshiba Corp Information processor and method for controlling information processor
CN104808717B (en) * 2015-02-12 2017-01-04 广东欧珀移动通信有限公司 A kind of temperature-controlled process and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103475790A (en) * 2013-09-06 2013-12-25 中国科学院计算技术研究所 Intelligent mobile terminal power consumption management method
CN105992985A (en) * 2013-11-21 2016-10-05 高通股份有限公司 Method and system for optimizing a core voltage level and operating frequency of individual subcomponents for reducing power consumption within a portable computing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Improvement of power-performance efficiency for high-end computing";R.Ge等;《19th IEEE International Parallel and Distributed Processing Symposium》;20051231;1-8 *
"面向高性能计算机系统的动态电压调节技术研究与能耗优化算法实现";罗兆成;《中国优秀硕士学位论文全文数据库-信息科技辑》;20141115(第11期);I137-76 *

Also Published As

Publication number Publication date
CN107992183A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US11429439B2 (en) Task scheduling based on performance control conditions for multiple processing units
US9081558B2 (en) System and method for dynamically controlling a plurality of cores in a multicore central processing unit based on tempature
CN107992183B (en) CPU power consumption limit value optimization method and electronic equipment
JP6132009B2 (en) Method and system for confirming proper operation of computing device after system change
CN107770088B (en) Flow control method and device
CN106371540B (en) System power management method, chip and electronic equipment
CN103136019A (en) Method and device used for uploading configuration information
WO2020015203A1 (en) System recovery method and device
CN111176919B (en) FPGA test method, device and storage medium
US11500647B2 (en) Systems and methods for achieving faster boot times using BIOS attribute mitigation
CN105528203A (en) CPU use control system and method
US9645634B2 (en) Systems and methods for non-uniform power supply unit load sharing
JP2018072944A (en) Program, system and information processing method
CN105556461A (en) Techniques for pre-OS image rewriting to provide cross-architecture support, security introspection, and performance optimization
US20160048389A1 (en) System and method for supporting part replacement
TW201617777A (en) Electronic apparatus and wake-up method thereof
CN107357654B (en) Method and device for controlling over-frequency working state of CPU
US20120185713A1 (en) Server, storage medium, and method for controlling sleep and wakeup function of the server
US10228882B2 (en) Semiconductor device and memory access control method
US11243590B2 (en) Systems and methods for minimizing system hardware throttling due to power supply unit environmental effective capacity
US10884464B2 (en) Systems and methods for thermal throttling via processor core count reduction and thermal load line shift
CN108920198B (en) Method, system and server for changing system energy efficiency mode in BIOS
CN110581920A (en) Equipment operation mode control method and device
EP3069256A1 (en) Techniques for processing custom events
US20170329374A1 (en) Method for Controlling Fan in Tiny Computer

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