[go: up one dir, main page]

CN111984109A - Central processing unit frequency modulation method, system and medium based on substrate management controller - Google Patents

Central processing unit frequency modulation method, system and medium based on substrate management controller Download PDF

Info

Publication number
CN111984109A
CN111984109A CN202010780008.XA CN202010780008A CN111984109A CN 111984109 A CN111984109 A CN 111984109A CN 202010780008 A CN202010780008 A CN 202010780008A CN 111984109 A CN111984109 A CN 111984109A
Authority
CN
China
Prior art keywords
processing unit
central processing
frequency
management controller
temperature
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.)
Pending
Application number
CN202010780008.XA
Other languages
Chinese (zh)
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.)
CETC 32 Research Institute
Original Assignee
CETC 32 Research Institute
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 CETC 32 Research Institute filed Critical CETC 32 Research Institute
Priority to CN202010780008.XA priority Critical patent/CN111984109A/en
Publication of CN111984109A publication Critical patent/CN111984109A/en
Pending legal-status Critical Current

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/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency
    • 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/3234Power saving characterised by the action undertaken
    • G06F1/3243Power saving in microcontroller unit
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5012Processor sets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Power Sources (AREA)

Abstract

The invention provides a method, a system and a medium for frequency modulation of a central processing unit based on a substrate management controller, wherein the method comprises the following steps: step 1: reading the temperature of the central processing unit in real time through a substrate management controller; step 2: reading the load of a central processing unit in real time through a substrate management controller; and step 3: adjusting the frequency of the central processing unit through the substrate management controller according to the read temperature and load; and 4, step 4: setting a corresponding general input-output port level value according to the adjusted frequency; and 5: converting the clock PLL configuration of the central processing unit through the complex programmable logic device according to the general input-output port level value; step 6: and (5) repeatedly executing the steps 1 to 5 until the frequency modulation is up to the preset condition. The invention reduces the CPU frequency when ensuring that the temperature of the CPU is over high to the upper limit, and effectively avoids the defects of system crash, restart and the like caused by over high temperature of the CPU.

Description

Central processing unit frequency modulation method, system and medium based on substrate management controller
Technical Field
The invention relates to the technical field of CPU frequency modulation, in particular to a method, a system and a medium for modulating the frequency of a central processing unit based on a substrate management controller.
Background
Energy conservation is an important social awareness in the world today, and refers to a series of actions that reduce energy consumption and increase energy utilization as much as possible. At present, many foreign CPU manufacturers develop their own energy saving technologies, such as EIST technology of intel and PowerNow technology of AMD, and the domestic processor has a big gap from foreign in the next aspect.
The current domestic processor basically works at a fixed main frequency and cannot be dynamically adjusted according to the current load and heat dissipation conditions. According to the invention, the working temperature and the load of the processor are detected in real time through the BMC, the working frequency of the CPU is adjusted in real time according to the current load and the working temperature, and the use performance and the use energy consumption of the CPU are balanced on the premise that the CPU is not damaged due to system crash, restart and the like caused by overhigh temperature.
A CPU: central processing unit, central processor;
BMC: a Basebard Management Controller, a substrate Management Controller;
CPLD: complex Programmable Logic Device.
Patent document CN102566726A (application No. 201010591310.7) discloses a network device for automatically controlling power consumption, which includes a power supply unit, a CPU, and a power consumption control module electrically connected to the power supply unit and the CPU, wherein the power supply unit is used for supplying power to the network device, the power consumption control module comprises a Baseboard Management Controller (BMC) connected to the power supply unit, and a north bridge chip connected between the BMC and the CPU, wherein the north bridge chip comprises a management engine connected to the BMC and the CPU, the BMC presets an upper power consumption limit of the network device, the management engine measures the power consumption of the network device by detecting the power output by the power supply unit and transmits the power to the BMC, when the BMC detects that the power output by the power supply unit is not appropriate to the preset upper power consumption limit, the BMC controls the management engine to adjust the working frequency of the CPU, and correspondingly adjusting the power consumption of the network equipment until the power consumption output by the power supply unit is equivalent to the preset upper power limit.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a method, a system and a medium for frequency modulation of a central processing unit based on a substrate management controller.
The method for frequency modulation of the central processing unit based on the substrate management controller provided by the invention comprises the following steps:
step 1: reading the temperature of the central processing unit in real time through a substrate management controller;
step 2: reading the load of a central processing unit in real time through a substrate management controller;
and step 3: adjusting the frequency of the central processing unit through the substrate management controller according to the read temperature and load;
and 4, step 4: setting a corresponding general input-output port level value according to the adjusted frequency;
and 5: converting the clock PLL configuration of the central processing unit through the complex programmable logic device according to the general input-output port level value;
step 6: and (5) repeatedly executing the steps 1 to 5 until the frequency modulation is up to the preset condition.
Preferably, the baseboard management controller reads the temperature of the central processing unit in real time through the I2C bus.
Preferably, the adjusting the frequency of the central processing unit in step 3 includes:
reading the temperature of the central processing unit, and judging whether the temperature of the central processing unit reaches an upper limit or not;
if the temperature of the central processing unit reaches the upper limit, reducing the frequency of the central processing unit; if the temperature of the CPU does not reach the upper limit, the frequency of the CPU is increased.
Preferably, the adjusting the frequency of the central processing unit in step 3 further includes:
reading the load of the central processing unit, and judging whether the load of the central processing unit is more than 60%;
if the load of the central processing unit is more than 60%, the frequency of the central processing unit is firstly increased; if the load of the central processing unit is lower than 60%, the frequency of the central processing unit is reduced.
The invention provides a central processing unit frequency modulation system based on a substrate management controller, which comprises:
module M1: reading the temperature of the central processing unit in real time through a substrate management controller;
module M2: reading the load of a central processing unit in real time through a substrate management controller;
module M3: adjusting the frequency of the central processing unit through the substrate management controller according to the read temperature and load;
module M4: setting a corresponding general input-output port level value according to the adjusted frequency;
module M5: converting the clock PLL configuration of the central processing unit through the complex programmable logic device according to the general input-output port level value;
module M6: and repeatedly calling the module M1-the module M5 until the frequency modulation is stopped when the preset condition is met.
Preferably, the baseboard management controller reads the temperature of the central processing unit in real time through the I2C bus.
Preferably, the adjustment of the central processor frequency in the module M3 includes:
reading the temperature of the central processing unit, and judging whether the temperature of the central processing unit reaches an upper limit or not;
if the temperature of the central processing unit reaches the upper limit, reducing the frequency of the central processing unit; if the temperature of the CPU does not reach the upper limit, the frequency of the CPU is increased.
Preferably, the adjusting the frequency of the central processing unit in the module M3 further includes:
reading the load of the central processing unit, and judging whether the load of the central processing unit is more than 60%;
if the load of the central processing unit is more than 60%, the frequency of the central processing unit is firstly increased; if the load of the central processing unit is lower than 60%, the frequency of the central processing unit is reduced.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention reduces the CPU frequency when ensuring that the temperature of the CPU is over high to the upper limit, and effectively avoids the defects of system crash, restart and the like caused by over high temperature of the CPU;
2. the invention reduces the CPU frequency when the CPU load is smaller, thereby reducing the energy consumption and effectively saving the energy;
3. the invention raises CPU frequency when CPU load is large, and ensures performance of CPU to be fully exerted.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a connection relationship diagram of CPU, BMC and CPLD;
FIG. 2 is a flow chart of the BMC's determination of CPU temperature and load.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
Example (b):
according to the central processing unit frequency modulation method based on the baseboard management controller provided by the invention, the step of dynamically adjusting the frequency of the SW1621 processor by the BMC is as follows:
step 1, reading the temperature of a processor in real time by BMC through I2 CBus;
step 2, reading the load of the processor in real time by the BMC;
step 3, the BMC determines how to adjust the CPU frequency according to the read temperature and load, and the judgment process is as shown in FIG. 2;
step 4, the BMC sets a corresponding GPIO according to the truth table;
and 5, converting the 3.3V level value GPIO into a 1.8V setting CFG _ CORE _ H [3:0 ];
and 6, finishing primary frequency modulation, and repeating the steps 1-5 to finish final frequency modulation.
The CORE clock is generated via configuration pins CFG _ CORE [3:0] _ H. The core clock configuration pin definition table is as follows:
CFG_CORE_H[3:0] core frequency (MHz) CFG_CORE_H[3:0] Core frequency (MHz)
0000 200 1000 1750
0001 800 1001 1800
0010 1000 1010 1850
0011 1200 1011 1900
0100 1400 1100 1950
0101 1500 1101 2000
0110 1600 1110 2050
0111 1700 1111 2100
The connection relation diagram of the CPU, the BMC and the CPLD is shown in figure 1.
The invention provides a central processing unit frequency modulation system based on a substrate management controller, which comprises:
module M1: reading the temperature of the central processing unit in real time through a substrate management controller;
module M2: reading the load of a central processing unit in real time through a substrate management controller;
module M3: adjusting the frequency of the central processing unit through the substrate management controller according to the read temperature and load;
module M4: setting a corresponding general input-output port level value according to the adjusted frequency;
module M5: converting the clock PLL configuration of the central processing unit through the complex programmable logic device according to the general input-output port level value;
module M6: and repeatedly calling the module M1-the module M5 until the frequency modulation is stopped when the preset condition is met.
Preferably, the baseboard management controller reads the temperature of the central processing unit in real time through the I2C bus.
Preferably, the adjustment of the central processor frequency in the module M3 includes:
reading the temperature of the central processing unit, and judging whether the temperature of the central processing unit reaches an upper limit or not;
if the temperature of the central processing unit reaches the upper limit, reducing the frequency of the central processing unit; if the temperature of the CPU does not reach the upper limit, the frequency of the CPU is increased.
Preferably, the adjusting the frequency of the central processing unit in the module M3 further includes:
reading the load of the central processing unit, and judging whether the load of the central processing unit is more than 60%;
if the load of the central processing unit is more than 60%, the frequency of the central processing unit is firstly increased; if the load of the central processing unit is lower than 60%, the frequency of the central processing unit is reduced.
According to the present invention, a computer-readable storage medium is provided, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as described above.
In the description of the present application, it is to be understood that the terms "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and thus, should not be construed as limiting the present application.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (9)

1. A central processing unit frequency modulation method based on a substrate management controller is characterized by comprising the following steps:
step 1: reading the temperature of the central processing unit in real time through a substrate management controller;
step 2: reading the load of a central processing unit in real time through a substrate management controller;
and step 3: adjusting the frequency of the central processing unit through the substrate management controller according to the read temperature and load;
and 4, step 4: setting a corresponding general input-output port level value according to the adjusted frequency;
and 5: converting the clock PLL configuration of the central processing unit through the complex programmable logic device according to the general input-output port level value;
step 6: and (5) repeatedly executing the steps 1 to 5 until the frequency modulation is up to the preset condition.
2. The method of claim 1, wherein the baseboard management controller reads the temperature of the central processing unit in real time through an I2C bus.
3. The method of claim 1, wherein the adjusting the frequency of the central processing unit in step 3 comprises:
reading the temperature of the central processing unit, and judging whether the temperature of the central processing unit reaches an upper limit or not;
if the temperature of the central processing unit reaches the upper limit, reducing the frequency of the central processing unit; if the temperature of the CPU does not reach the upper limit, the frequency of the CPU is increased.
4. The baseboard management controller-based central processing unit frequency modulation method of claim 3, wherein the adjusting the central processing unit frequency in step 3 further comprises:
reading the load of the central processing unit, and judging whether the load of the central processing unit is more than 60%;
if the load of the central processing unit is more than 60%, the frequency of the central processing unit is firstly increased; if the load of the central processing unit is lower than 60%, the frequency of the central processing unit is reduced.
5. The utility model provides a central processing unit frequency modulation system based on base plate management controller which characterized in that includes:
module M1: reading the temperature of the central processing unit in real time through a substrate management controller;
module M2: reading the load of a central processing unit in real time through a substrate management controller;
module M3: adjusting the frequency of the central processing unit through the substrate management controller according to the read temperature and load;
module M4: setting a corresponding general input-output port level value according to the adjusted frequency;
module M5: converting the clock PLL configuration of the central processing unit through the complex programmable logic device according to the general input-output port level value;
module M6: and repeatedly calling the module M1-the module M5 until the frequency modulation is stopped when the preset condition is met.
6. The baseboard management controller-based central processing unit frequency modulation system of claim 5, wherein the baseboard management controller reads the temperature of the central processing unit in real time through an I2C bus.
7. The baseboard management controller-based central processor frequency modulation system of claim 5, wherein the adjustment of the central processor frequency in module M3 comprises:
reading the temperature of the central processing unit, and judging whether the temperature of the central processing unit reaches an upper limit or not;
if the temperature of the central processing unit reaches the upper limit, reducing the frequency of the central processing unit; if the temperature of the CPU does not reach the upper limit, the frequency of the CPU is increased.
8. The bmc-based cpu frequency tuning system of claim 7 wherein the module M3 further comprises:
reading the load of the central processing unit, and judging whether the load of the central processing unit is more than 60%;
if the load of the central processing unit is more than 60%, the frequency of the central processing unit is firstly increased; if the load of the central processing unit is lower than 60%, the frequency of the central processing unit is reduced.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202010780008.XA 2020-08-05 2020-08-05 Central processing unit frequency modulation method, system and medium based on substrate management controller Pending CN111984109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010780008.XA CN111984109A (en) 2020-08-05 2020-08-05 Central processing unit frequency modulation method, system and medium based on substrate management controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010780008.XA CN111984109A (en) 2020-08-05 2020-08-05 Central processing unit frequency modulation method, system and medium based on substrate management controller

Publications (1)

Publication Number Publication Date
CN111984109A true CN111984109A (en) 2020-11-24

Family

ID=73445093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010780008.XA Pending CN111984109A (en) 2020-08-05 2020-08-05 Central processing unit frequency modulation method, system and medium based on substrate management controller

Country Status (1)

Country Link
CN (1) CN111984109A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020137A (en) * 2021-10-29 2022-02-08 西安超越申泰信息科技有限公司 Method for adaptively adjusting power consumption of CPU frequency control system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719084A (en) * 2009-12-11 2010-06-02 中国人民解放军国防科学技术大学 Method for reducing GPU failure rate by modulating GPU frequency
CN203239605U (en) * 2013-03-29 2013-10-16 浪潮电子信息产业股份有限公司 Fan board with controllable rotation speed based on single four-path system
CN106445055A (en) * 2016-09-09 2017-02-22 郑州云海信息技术有限公司 Power supply protection mechanism of Rack server
CN106481537A (en) * 2016-11-25 2017-03-08 广东美的制冷设备有限公司 The control method of compressor, device and household electrical appliance
CN106598814A (en) * 2016-12-26 2017-04-26 郑州云海信息技术有限公司 Design method for realizing overheating protection on server system
CN107809241A (en) * 2017-11-07 2018-03-16 晶晨半导体(上海)股份有限公司 A kind of frequency dividing adjusting method of PLL
CN110134217A (en) * 2019-04-10 2019-08-16 深圳市普威技术有限公司 A kind of CPU power consumption managing device
CN111023413A (en) * 2019-12-18 2020-04-17 宁波奥克斯电气股份有限公司 Air conditioner control method and device and air conditioner

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719084A (en) * 2009-12-11 2010-06-02 中国人民解放军国防科学技术大学 Method for reducing GPU failure rate by modulating GPU frequency
CN203239605U (en) * 2013-03-29 2013-10-16 浪潮电子信息产业股份有限公司 Fan board with controllable rotation speed based on single four-path system
CN106445055A (en) * 2016-09-09 2017-02-22 郑州云海信息技术有限公司 Power supply protection mechanism of Rack server
CN106481537A (en) * 2016-11-25 2017-03-08 广东美的制冷设备有限公司 The control method of compressor, device and household electrical appliance
CN106598814A (en) * 2016-12-26 2017-04-26 郑州云海信息技术有限公司 Design method for realizing overheating protection on server system
CN107809241A (en) * 2017-11-07 2018-03-16 晶晨半导体(上海)股份有限公司 A kind of frequency dividing adjusting method of PLL
CN110134217A (en) * 2019-04-10 2019-08-16 深圳市普威技术有限公司 A kind of CPU power consumption managing device
CN111023413A (en) * 2019-12-18 2020-04-17 宁波奥克斯电气股份有限公司 Air conditioner control method and device and air conditioner

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114020137A (en) * 2021-10-29 2022-02-08 西安超越申泰信息科技有限公司 Method for adaptively adjusting power consumption of CPU frequency control system

Similar Documents

Publication Publication Date Title
CN101477403B (en) A method for automatic control of system power consumption
US9703357B2 (en) Power management method and apparatus, and power supply system
CN107797644A (en) A kind of SOC dynamic voltage frequency adjusts implementation method
WO2021043300A1 (en) Operation frequency adjustment method for switched power supply, and device
CN103902016A (en) Server power consumption management method oriented to scene prediction
CN104615415A (en) Information processing method and electronic equipment
CN102955534A (en) Fan control system and fan control method
CN109032682A (en) A kind of noise control system and method
CN111984109A (en) Central processing unit frequency modulation method, system and medium based on substrate management controller
KR102060431B1 (en) Apparatus and method for managing power in multi-core system
CN102566726A (en) Automatic power consumption control network equipment and power consumption control method thereof
CN101571743A (en) Power management method for mainboard and display card thereof
CN104572402B (en) A kind of server and the method for realizing server energy consumption management
CN115167640A (en) Computer power management control system and method based on Feiteng FT2000 processor
CN112394803B (en) Domestic server power consumption real-time dynamic adjusting method
CN205263730U (en) Novel IO riser integrated circuit board based on POWER platform
CN114142550A (en) Control method and device of energy storage device and energy storage device
CN111629424B (en) Power management method, corresponding system and device
CN104578388A (en) Power supply configuration method and device
CN103064504B (en) Method for energy conservation of main board of server
CN110764428A (en) A state management system for household electrical equipment
CN1280688C (en) Power management system for computer systems
CN101452337A (en) Control method and device for peripheral equipment
CN108445800A (en) A kind of number PCU power-supply systems
KR100763527B1 (en) Method and device managing power in embedded linux system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201124