CN118860953A - Processor voltage and frequency adjustment method, device, electronic device and storage medium - Google Patents
Processor voltage and frequency adjustment method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN118860953A CN118860953A CN202411329065.0A CN202411329065A CN118860953A CN 118860953 A CN118860953 A CN 118860953A CN 202411329065 A CN202411329065 A CN 202411329065A CN 118860953 A CN118860953 A CN 118860953A
- Authority
- CN
- China
- Prior art keywords
- frequency
- voltage
- core
- processing cores
- frequency adjustment
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000012545 processing Methods 0.000 claims abstract description 159
- 230000008859 change Effects 0.000 claims abstract description 39
- 238000012544 monitoring process Methods 0.000 claims abstract description 26
- 238000004590 computer program Methods 0.000 claims description 22
- 238000004364 calculation method Methods 0.000 claims description 7
- 230000004044 response Effects 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 8
- 238000007726 management method Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 5
- 238000013461 design Methods 0.000 description 4
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 3
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/177—Initialisation or configuration control
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3058—Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Power Sources (AREA)
Abstract
本发明提供了一种处理器电压和频率调整方法、装置、电子设备及存储介质。本发明提供的处理器电压和频率调整方法,包括:监听客户端的动态电压频率调整请求;获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整。本发明的处理器电压和频率调整方法,可以增强处理器在部分应用场景下的灵活性,并且可以提高处理器的能效比。
The present invention provides a processor voltage and frequency adjustment method, device, electronic device and storage medium. The processor voltage and frequency adjustment method provided by the present invention includes: monitoring the dynamic voltage and frequency adjustment request of the client; obtaining the frequency change value, timestamp and preset weight configuration value of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request; determining the adjustment order of the voltage and frequency of the multiple processing cores according to the frequency change value, the timestamp and the preset weight configuration value; adjusting the frequency and voltage of the multiple processing cores according to the adjustment order of the voltage and frequency of the multiple processing cores, and the core requested frequency value and the core requested voltage value of the multiple processing cores. The processor voltage and frequency adjustment method of the present invention can enhance the flexibility of the processor in some application scenarios, and can improve the energy efficiency ratio of the processor.
Description
技术领域Technical Field
本发明涉及处理器技术领域,尤其涉及一种处理器电压和频率调整方法、装置、电子设备及存储介质。The present invention relates to the field of processor technology, and in particular to a method, device, electronic device and storage medium for adjusting processor voltage and frequency.
背景技术Background Art
随着单处理器的性能不断提升,其提升速度遇到了诸多瓶颈。处理器厂商提出在单处理器内部上放置多个处理核心,称之为多核处理器,以此来提高处理器的整体性能。随着单处理器内集成的核心数量的不断增多,处理器整体性能也不断提升,但伴随而来的问题是,处理器功耗、设计和制造成本持续不断增加。业界主要利用动态电压和频率调整的技术来提升处理器的能效比。处理器内部多达上百数量级别的处理核心,如果要实现处理器的每个处理核心独立的动态调整电压和频率,从芯片设计角度,需要每个处理核心具备独立的电压域和时钟域,从主板设计的角度,需要外部独立给每个处理核心进行供电。部分处理器厂商采用的方案为处理器内部所有的处理核心共享唯一的电压域和时钟域,或者处理器内部的每个处理核心都拥有独立的时钟域。对于上述第一种方案,由于每个处理核心不能独立的调整频率和电压,使得在虚拟化和定频场景等部分应用场景下的灵活性不够,从而限制了用户的使用场景;在上述第二种方案中,每个处理核心不能独立的调整电压,仅能独立的调整频率,使得处理器的能效比较低。As the performance of a single processor continues to improve, its improvement speed has encountered many bottlenecks. Processor manufacturers have proposed placing multiple processing cores inside a single processor, called a multi-core processor, to improve the overall performance of the processor. As the number of cores integrated in a single processor continues to increase, the overall performance of the processor is also constantly improving, but the accompanying problem is that the power consumption, design and manufacturing costs of the processor continue to increase. The industry mainly uses dynamic voltage and frequency adjustment technology to improve the energy efficiency of the processor. There are as many as hundreds of processing cores inside the processor. If each processing core of the processor is to dynamically adjust the voltage and frequency independently, from the perspective of chip design, each processing core needs to have an independent voltage domain and clock domain. From the perspective of motherboard design, each processing core needs to be powered independently from the outside. Some processor manufacturers adopt a solution that all processing cores inside the processor share a unique voltage domain and clock domain, or each processing core inside the processor has an independent clock domain. For the first solution mentioned above, since each processing core cannot independently adjust the frequency and voltage, it lacks flexibility in some application scenarios such as virtualization and fixed-frequency scenarios, thereby limiting the user's usage scenarios; in the second solution mentioned above, each processing core cannot independently adjust the voltage, but can only independently adjust the frequency, which makes the processor energy efficiency relatively low.
发明内容Summary of the invention
本发明的目的在于提供一种处理器电压和频率调整方法、装置、电子设备及存储介质,以解决现有技术中处理器在部分应用场景下的灵活性不够以及处理器的能效比较低的技术问题。The purpose of the present invention is to provide a processor voltage and frequency adjustment method, device, electronic device and storage medium to solve the technical problems in the prior art that the processor is not flexible enough in some application scenarios and the energy efficiency of the processor is relatively low.
本发明的技术方案如下,提供了一种处理器电压和频率调整方法,包括:监听客户端的动态电压频率调整请求;The technical solution of the present invention is as follows: a method for adjusting processor voltage and frequency is provided, comprising: monitoring a dynamic voltage and frequency adjustment request from a client;
获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;Obtain frequency change values, timestamps, and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request;
根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;Determining an adjustment order of voltages and frequencies of the plurality of processing cores according to the frequency change value, the timestamp, and the preset weight configuration value;
根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整。The frequencies and voltages of the multiple processing cores are adjusted according to the adjustment order of the voltages and frequencies of the multiple processing cores, and the core-requested frequency values and core-requested voltage values of the multiple processing cores.
进一步地,所述监听客户端的动态电压频率调整请求,包括,监听多个客户端的动态电压频率调整请求;Further, the monitoring of the dynamic voltage and frequency adjustment request of the client includes monitoring the dynamic voltage and frequency adjustment requests of multiple clients;
相应的,在获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值之前,还包括,根据所述多个客户端的性能需求模式,确定所述客户端的动态电压频率调整请求的响应顺序,所述性能需求模式包括硬件自动控制性能模式、低功耗控制模式、温度控制模式、功耗控制模式或者操作系统内控制处理核心性能模式。Correspondingly, before obtaining the frequency change values, timestamps and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request, it also includes determining the response order of the dynamic voltage and frequency adjustment requests of the clients according to the performance requirement modes of the multiple clients, and the performance requirement modes include hardware automatic control performance mode, low power consumption control mode, temperature control mode, power consumption control mode or operating system internal control processing core performance mode.
进一步地,所述监听多个客户端的动态电压频率调整请求,包括:Further, monitoring the dynamic voltage and frequency adjustment requests of multiple clients includes:
每个间隔预设时长,轮询一次客户端的动态电压频率调整请求,以监听多个客户端的动态电压频率调整请求,或者,收到客户端发送的动态电压频率调整请求后,唤醒对所述动态电压频率调整请求的监听,以监听多个客户端的动态电压频率调整请求。At each interval preset duration, the client's dynamic voltage and frequency adjustment request is polled once to monitor the dynamic voltage and frequency adjustment requests of multiple clients, or, after receiving the dynamic voltage and frequency adjustment request sent by the client, the monitoring of the dynamic voltage and frequency adjustment request is woken up to monitor the dynamic voltage and frequency adjustment requests of multiple clients.
进一步地,获取所述动态电压频率调整请求对应的多个处理核心的频率变化值,包括:Further, obtaining frequency change values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request includes:
获取所述动态电压频率调整请求对应的多个处理核心的所述核心请求的频率值和当前频率值,根据所述核心请求的频率值和所述当前频率值获取频率变化值。The core-requested frequency values and current frequency values of the multiple processing cores corresponding to the dynamic voltage frequency adjustment request are obtained, and a frequency change value is obtained according to the core-requested frequency values and the current frequency values.
进一步地,获取所述动态电压频率调整请求对应的多个处理核心的时间戳,包括:Further, obtaining timestamps of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request includes:
获取所述动态电压频率调整请求对应的多个处理核心的核心请求的当前时间点和上一次核心请求的时间点,根据所述核心请求的当前时间点和上一次核心请求对应的时间点,获取时间戳。The current time point of the core request and the time point of the last core request of the multiple processing cores corresponding to the dynamic voltage and frequency adjustment request are obtained, and the timestamp is obtained according to the current time point of the core request and the time point corresponding to the last core request.
进一步地,根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序,包括:Further, determining the adjustment order of the voltage and frequency of the plurality of processing cores according to the frequency change value, the timestamp, and the preset weight configuration value includes:
根据所述频率变化值、所述时间戳、所述预设权重配置值以及仲裁计算公式确定仲裁值,根据所述仲裁值确定所述多个处理核心的电压和频率的调整顺序,所述仲裁计算公式包括,其中,V为所述仲裁值,weight为所述预设权重配置值,为频率变化值,m为预设维度值。An arbitration value is determined according to the frequency change value, the timestamp, the preset weight configuration value and an arbitration calculation formula, and an adjustment sequence of the voltage and frequency of the multiple processing cores is determined according to the arbitration value, wherein the arbitration calculation formula includes , wherein V is the arbitration value, weight is the preset weight configuration value, is the frequency change value, and m is the preset dimension value.
进一步地,根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整,包括:Further, adjusting the frequencies and voltages of the multiple processing cores according to the adjustment order of the voltages and frequencies of the multiple processing cores, and the core-requested frequency values and the core-requested voltage values of the multiple processing cores, comprises:
根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,依次对所述多个处理核心的频率和电压进行调整,若所述处理核心的核心请求的电压值小于所述处理核心当前共享电压域的实际电压值,则不对所述处理核心的电压进行调整。According to the adjustment order of the voltages and frequencies of the multiple processing cores, as well as the core-requested frequency values and core-requested voltage values of the multiple processing cores, the frequencies and voltages of the multiple processing cores are adjusted in sequence; if the core-requested voltage value of the processing core is less than the actual voltage value of the current shared voltage domain of the processing core, the voltage of the processing core is not adjusted.
本发明的另一技术方案如下,还提供了一种处理器电压和频率调整装置,包括监听模块、处理核心信息获取模块、调整顺序确定模块以及调整模块;Another technical solution of the present invention is as follows: a processor voltage and frequency adjustment device is also provided, including a monitoring module, a processing core information acquisition module, an adjustment sequence determination module and an adjustment module;
所述监听模块,用于监听客户端的动态电压频率调整请求;The monitoring module is used to monitor the dynamic voltage and frequency adjustment request of the client;
所述处理核心信息获取模块,用于获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;The processing core information acquisition module is used to obtain frequency change values, timestamps and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request;
所述调整顺序确定模块,用于根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;The adjustment sequence determination module is used to determine the adjustment sequence of the voltage and frequency of the multiple processing cores according to the frequency change value, the timestamp and the preset weight configuration value;
所述调整模块,用于根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整。The adjustment module is used to adjust the frequencies and voltages of the multiple processing cores according to the adjustment order of the voltages and frequencies of the multiple processing cores, and the core-requested frequency values and core-requested voltage values of the multiple processing cores.
本发明的另一技术方案如下,还提供了一种电子设备,包括存储器、处理器,所述存储器存储有可被所述处理器执行的计算机程序,所述处理器执行所述计算机程序时实现如上述任一项技术方案所述的处理器电压和频率调整方法。Another technical solution of the present invention is as follows: an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the processor voltage and frequency adjustment method as described in any of the above technical solutions is implemented.
本发明的另一技术方案如下,还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述任一项技术方案所述的处理器电压和频率调整方法。Another technical solution of the present invention is as follows: a computer-readable storage medium is also provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor voltage and frequency adjustment method described in any of the above technical solutions is implemented.
本发明的有益效果在于:监听客户端的动态电压频率调整请求;获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整;通过上述技术方案,可以增强处理器在部分应用场景下的灵活性,并且可以提高处理器的能效比。The beneficial effects of the present invention are: monitoring the dynamic voltage and frequency adjustment request of the client; obtaining the frequency change values, timestamps and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request; determining the adjustment order of the voltage and frequency of the multiple processing cores according to the frequency change values, the timestamps and the preset weight configuration values; adjusting the frequency and voltage of the multiple processing cores according to the adjustment order of the voltage and frequency of the multiple processing cores, as well as the core requested frequency values and core requested voltage values of the multiple processing cores; through the above technical scheme, the flexibility of the processor in some application scenarios can be enhanced, and the energy efficiency ratio of the processor can be improved.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明实施例提供的处理器电压和频率调整方法的流程示意图。FIG. 1 is a schematic flow chart of a method for adjusting processor voltage and frequency according to an embodiment of the present invention.
图2为本发明实施例提供的处理器电压和频率调整的框架示意图。FIG. 2 is a schematic diagram of a framework for adjusting processor voltage and frequency according to an embodiment of the present invention.
图3为本发明实施例提供的处理器电压和频率调整装置的结构示意图。FIG3 is a schematic diagram of the structure of a processor voltage and frequency adjustment device provided by an embodiment of the present invention.
图4为本发明实施例提供的电子设备的结构示意图。FIG. 4 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
图5为本发明实施例提供的一种计算机可读存储介质的结构示意图。FIG5 is a schematic diagram of the structure of a computer-readable storage medium provided by an embodiment of the present invention.
具体实施方式DETAILED DESCRIPTION
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
图1是本发明实施例的处理器电压和频率调整方法的流程示意图。需注意的是,若有实质上相同的结果,本发明的处理器电压和频率调整方法并不以图1所示的流程顺序为限。如图1所示,该处理器电压和频率调整方法,包括:FIG1 is a flowchart of a method for adjusting processor voltage and frequency according to an embodiment of the present invention. It should be noted that the method for adjusting processor voltage and frequency according to the present invention is not limited to the flowchart sequence shown in FIG1 if substantially the same results are achieved. As shown in FIG1 , the method for adjusting processor voltage and frequency includes:
S101,监听客户端的动态电压频率调整请求;S101, monitoring a dynamic voltage and frequency adjustment request from a client;
作为一种实施方式,处理器电压和频率调整的框架示意图,如图2所示,图2中,处理核心Core 0-n表示处理器内部的n+1个处理核心,每个处理核心可以进行动态的电压和频率调整,图2中的微型处理器单元MCU可以用于初始化配置动态电压频率调整控制单元(DVFS controller),可以以软件的方式实现该微型处理器单元的功能,也可以以软件的方式来实现动态电压频率调整控制单元的功能,实现与动态电压频率调整控制单元硬件相同的逻辑功能。As an implementation method, a framework diagram of processor voltage and frequency adjustment is shown in FIG2 . In FIG2 , processing cores Core 0-n represent n+1 processing cores inside the processor, and each processing core can perform dynamic voltage and frequency adjustment. The microprocessor unit MCU in FIG2 can be used to initialize and configure a dynamic voltage and frequency adjustment control unit (DVFS controller). The functions of the microprocessor unit can be implemented in software, and the functions of the dynamic voltage and frequency adjustment control unit can be implemented in software to achieve the same logical functions as the hardware of the dynamic voltage and frequency adjustment control unit.
在一些实施例中,所述监听多个客户端的动态电压频率调整请求,包括:In some embodiments, monitoring dynamic voltage and frequency adjustment requests from multiple clients includes:
每个间隔预设时长,轮询一次客户端的动态电压频率调整请求,以监听多个客户端的动态电压频率调整请求,或者,收到客户端发送的动态电压频率调整请求后,唤醒对所述动态电压频率调整请求的监听,以监听多个客户端的动态电压频率调整请求。At each interval preset duration, the client's dynamic voltage and frequency adjustment request is polled once to monitor the dynamic voltage and frequency adjustment requests of multiple clients, or, after receiving the dynamic voltage and frequency adjustment request sent by the client, the monitoring of the dynamic voltage and frequency adjustment request is woken up to monitor the dynamic voltage and frequency adjustment requests of multiple clients.
作为一种实施方式,在处理器启动阶段,微型处理器单元内部固件初始化动态电压频率调整控制单元,对其进行基本的配置和使能,动态电压频率调整控制单元使能后,可以处于监听状态,可以接收来自各个客户端(client)的动态电压频率调整(DVFS)请求,动态电压频率调整控制单元发监听模式可以包括主动模式和被动模式;主动模式下,可以根据配置的周期,每间隔预设时长,轮询是否有动态电压频率调整请求触发;动态电压频率调整控制单元被配置为该模式下时,动态电压频率调整控制单元,每间隔预设时长,轮询是否有动态电压频率调整请求,以批量收集各个客户端的动态电压频率调整请求;被动模式下,各个客户端可以通过发送动态电压频率调整请求,主动唤醒动态电压频率调整控制单元,动态电压频率调整控制单元收到客户端发送的动态电压频率调整请求后,会唤醒其对所述动态电压频率调整请求的监听,从而实现对所述动态电压频率调整请求的监听,以收集客户端的动态电压频率调整请求。As an implementation mode, during the processor startup phase, the internal firmware of the microprocessor unit initializes the dynamic voltage and frequency adjustment control unit, performs basic configuration and enables it. After the dynamic voltage and frequency adjustment control unit is enabled, it can be in a monitoring state and can receive dynamic voltage and frequency adjustment (DVFS) requests from various clients. The monitoring mode of the dynamic voltage and frequency adjustment control unit may include an active mode and a passive mode. In the active mode, according to the configured period, at each interval of a preset duration, polling can be performed to determine whether a dynamic voltage and frequency adjustment request is triggered. When the dynamic voltage and frequency adjustment control unit is configured in this mode, the dynamic voltage and frequency adjustment control unit polls at each interval of a preset duration to determine whether a dynamic voltage and frequency adjustment request is received, so as to collect the dynamic voltage and frequency adjustment requests of various clients in batches. In the passive mode, each client can actively wake up the dynamic voltage and frequency adjustment control unit by sending a dynamic voltage and frequency adjustment request. After receiving the dynamic voltage and frequency adjustment request sent by the client, the dynamic voltage and frequency adjustment control unit will wake up its monitoring of the dynamic voltage and frequency adjustment request, thereby realizing the monitoring of the dynamic voltage and frequency adjustment request to collect the dynamic voltage and frequency adjustment request of the client.
在一些实施例中,所述监听客户端的动态电压频率调整请求,包括,监听多个客户端的动态电压频率调整请求;In some embodiments, the monitoring of the dynamic voltage and frequency adjustment request of the client includes monitoring the dynamic voltage and frequency adjustment requests of multiple clients;
相应的,在获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值之前,还包括,根据所述多个客户端的性能需求模式,确定所述客户端的动态电压频率调整请求的响应顺序,所述性能需求模式包括硬件自动控制性能模式、低功耗控制模式、温度控制模式、功耗控制模式或者操作系统内控制处理核心性能模式。Correspondingly, before obtaining the frequency change values, timestamps and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request, it also includes determining the response order of the dynamic voltage and frequency adjustment requests of the clients according to the performance requirement modes of the multiple clients, and the performance requirement modes include hardware automatic control performance mode, low power consumption control mode, temperature control mode, power consumption control mode or operating system internal control processing core performance mode.
作为一种实施方式,根据所述多个客户端的性能需求模式,确定所述客户端的动态电压频率调整请求的响应顺序,不同性能需求模式对应的客户端的动态电压频率调整请求的响应顺序,依次可以为低功耗控制模式对应的客户端的动态电压频率调整请求、温度控制模式对应的客户端的动态电压频率调整请求、功耗控制模式对应的客户端的动态电压频率调整请求、硬件自动控制性能模式对应的客户端的动态电压频率调整请求、操作系统内控制处理核心性能模式对应的客户端的动态电压频率调整请求,其中,温度控制模式对应的客户端的动态电压频率调整请求、功耗控制模式对应的客户端的动态电压频率调整请求的响应优先级可以相同;例如,第一个客户端的性能需求模式为低功耗控制模式,第二个客户端的性能需求模式为温度控制模式,则先响应第一个客户端的动态电压频率调整请求。As an implementation mode, a response order of the dynamic voltage and frequency adjustment requests of the clients is determined according to the performance requirement modes of the multiple clients, and the response order of the dynamic voltage and frequency adjustment requests of the clients corresponding to different performance requirement modes may be, in sequence, the dynamic voltage and frequency adjustment request of the client corresponding to the low power control mode, the dynamic voltage and frequency adjustment request of the client corresponding to the temperature control mode, the dynamic voltage and frequency adjustment request of the client corresponding to the power consumption control mode, the dynamic voltage and frequency adjustment request of the client corresponding to the hardware automatic control performance mode, and the dynamic voltage and frequency adjustment request of the client corresponding to the operating system internal control processing core performance mode, wherein the response priority of the dynamic voltage and frequency adjustment request of the client corresponding to the temperature control mode and the dynamic voltage and frequency adjustment request of the client corresponding to the power consumption control mode may be the same; for example, if the performance requirement mode of the first client is the low power control mode and the performance requirement mode of the second client is the temperature control mode, the dynamic voltage and frequency adjustment request of the first client will be responded to first.
作为一种实施方式,如图2所示,动态电压频率调整请求仲裁单元(DVFS requestarbiter)可以用于仲裁各个客户端的动态电压频率调整请求,图2中,动态电压频率调整控制请求寄存器表(DVFS Request register Table),每个客户端对应一张表,硬件自动控制性能模式对应的客户端和操作系统内控制处理核心性能模式对应的客户端可以共用同一张表,表内每个条目(entry)对应每个处理核心的动态电压频率调整控制请求寄存器(DVFSRequest register),动态电压频率调整处理核心条目寄存器表,如表1所示,As an implementation mode, as shown in FIG2 , a dynamic voltage and frequency adjustment request arbitration unit (DVFS requestarbiter) can be used to arbitrate dynamic voltage and frequency adjustment requests of each client. In FIG2 , a dynamic voltage and frequency adjustment control request register table (DVFS Request register Table) corresponds to one table for each client. The client corresponding to the hardware automatic control performance mode and the client corresponding to the control processing core performance mode in the operating system can share the same table. Each entry in the table corresponds to a dynamic voltage and frequency adjustment control request register (DVFSRequest register) of each processing core. The dynamic voltage and frequency adjustment processing core entry register table is shown in Table 1.
表1 动态电压频率调整处理核心条目寄存器表Table 1 Dynamic voltage and frequency adjustment processing core entry register table
客户端的id表,如表2所示,The client's id table is shown in Table 2.
表2 客户端的id表Table 2 Client ID table
表2中的第二行表示客户端的id,表2中的第三行表示对应id的客户端的性能需求模式,表2中perf management、thermal management、power management、low powermanagement分别表示硬件自动控制性能模式、温度控制模式、功耗控制模式、低功耗控制模式,可以对每个客户端独立配置优先级,0表示最低优先级,15表示最高优先级,客户端的优先级定义如表3所示。The second row in Table 2 represents the client ID, and the third row in Table 2 represents the performance requirement mode of the client corresponding to the ID. In Table 2, perf management, thermal management, power management, and low power management respectively represent the hardware automatic control performance mode, temperature control mode, power consumption control mode, and low power consumption control mode. The priority can be configured independently for each client, 0 represents the lowest priority, and 15 represents the highest priority. The priority definition of the client is shown in Table 3.
表3 客户端的优先权表Table 3 Client priority table
表3第二行表示不同客户端对应id,表3第三行表示不同id的客户端的优先级。The second row of Table 3 indicates the IDs corresponding to different clients, and the third row of Table 3 indicates the priorities of clients with different IDs.
作为一种实施方式,图2中硬件自动控制性能单元(hardware performancemanagement)可以为硬件自动控制性能模式对应的客户端,该单元表示通过硬件自动分析处理器性能需求,来发送动态电压频率调整请求(动态电压频率调整控制请求),低功耗控制单元(low power management)可以为低功耗控制模式的客户端,该单元在处理核心进入或退出低功耗状态的时候,发送动态电压频率调整请求,温度控制单元(thermalmanagement)可以为温度控制模式的客户端,该单元采集温度,在需要温控的时候,发送动态电压频率调整请求,功耗控制单元(power limit management)可以为功耗控制模式对应的客户端,该单元采集功耗,在需要功耗控制的时候,发送动态电压频率调整请求,处理器动态电压频率调整驱动单元(CPU DVFS driver)表示操作系统内控制处理器核心性能的驱动单元,可以为操作系统内控制处理核心性能模式对应的客户端,该单元根据应用对性能的动态需求,发送动态电压频率调整请求。As an implementation mode, the hardware automatic performance control unit (hardware performance management) in Figure 2 can be a client corresponding to the hardware automatic performance control mode, and the unit indicates that the dynamic voltage and frequency adjustment request (dynamic voltage and frequency adjustment control request) is sent by automatically analyzing the processor performance requirements through hardware. The low power control unit (low power management) can be a client of the low power control mode. The unit sends a dynamic voltage and frequency adjustment request when the processing core enters or exits the low power state. The temperature control unit (thermal management) can be a client of the temperature control mode. The unit collects temperature and sends a dynamic voltage and frequency adjustment request when temperature control is required. The power consumption control unit (power limit management) can be a client corresponding to the power consumption control mode. The unit collects power consumption and sends a dynamic voltage and frequency adjustment request when power consumption control is required. The processor dynamic voltage and frequency adjustment driver unit (CPU DVFS driver) represents a driver unit that controls the core performance of the processor in the operating system, and can be a client corresponding to the core performance mode of the processing in the operating system. The unit sends a dynamic voltage and frequency adjustment request according to the dynamic performance requirements of the application.
S102,获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;S102, obtaining frequency change values, timestamps, and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request;
在一些实施例中,获取所述动态电压频率调整请求对应的多个处理核心的频率变化值,包括:In some embodiments, obtaining frequency change values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request includes:
获取所述动态电压频率调整请求对应的多个处理核心的所述核心请求的频率值和当前频率值,根据所述核心请求的频率值和所述当前频率值获取频率变化值。The core-requested frequency values and current frequency values of the multiple processing cores corresponding to the dynamic voltage frequency adjustment request are obtained, and a frequency change value is obtained according to the core-requested frequency values and the current frequency values.
作为一种实施方式,一个客户端的动态电压频率调整请求会对应多个处理核心,动态电压频率调整请求发送给处理核心后,生成处理核心的核心请求,通过获取每个处理核心的核心请求的频率值和当前频率值,进而获取多个处理核心的频率变化值。处理核心的频率变化值越大,其电压、频率调整的优先级越高。As an implementation method, a dynamic voltage and frequency adjustment request from a client corresponds to multiple processing cores. After the dynamic voltage and frequency adjustment request is sent to the processing core, a core request of the processing core is generated, and the frequency change values of the multiple processing cores are obtained by obtaining the core request frequency value and the current frequency value of each processing core. The larger the frequency change value of the processing core, the higher the priority of its voltage and frequency adjustment.
在一些实施例中,获取所述动态电压频率调整请求对应的多个处理核心的时间戳,包括:In some embodiments, obtaining timestamps of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request includes:
获取所述动态电压频率调整请求对应的多个处理核心的核心请求的当前时间点和上一次核心请求对应的时间点,根据所述核心请求的当前时间点和上一次核心请求的时间点,获取时间戳。The current time point of the core request of the multiple processing cores corresponding to the dynamic voltage and frequency adjustment request and the time point corresponding to the last core request are obtained, and the timestamp is obtained according to the current time point of the core request and the time point of the last core request.
作为一种实施方式,动态电压频率调整请求发送给处理核心后,生成处理核心的核心请求,通过获取每个处理核心的核心请求的当前时间点和上一次核心请求对应的时间点,将当前时间点减去上一次核心请求对应的时间点,得到时间戳(时间差),进而多个处理核心的时间戳。As an implementation method, after the dynamic voltage and frequency adjustment request is sent to the processing core, a core request of the processing core is generated. By obtaining the current time point of the core request of each processing core and the time point corresponding to the last core request, the current time point is subtracted from the time point corresponding to the last core request to obtain a timestamp (time difference), and then the timestamps of multiple processing cores are obtained.
S1033,根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;S1033, determining an adjustment order of voltages and frequencies of the plurality of processing cores according to the frequency change value, the timestamp, and the preset weight configuration value;
在一些实施例中,根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序,包括:In some embodiments, determining the adjustment order of the voltage and frequency of the plurality of processing cores according to the frequency change value, the timestamp, and the preset weight configuration value includes:
根据所述频率变化值、所述时间戳、所述预设权重配置值以及仲裁计算公式确定仲裁值,根据所述仲裁值确定所述多个处理核心的电压和频率的调整顺序,所述仲裁计算公式包括,其中,V为所述仲裁值,weight为所述预设权重配置值,为频率变化值,m为预设维度值。An arbitration value is determined according to the frequency change value, the timestamp, the preset weight configuration value and an arbitration calculation formula, and an adjustment sequence of the voltage and frequency of the multiple processing cores is determined according to the arbitration value, wherein the arbitration calculation formula includes , wherein V is the arbitration value, weight is the preset weight configuration value, is the frequency change value, and m is the preset dimension value.
作为一种实施方式,如图2所示,预设维度值m与预设权重配置值weight的取值范围有关,动态电压频率调整配置寄存器(DVFS configuration register),用于控制动态电压频率调整控制单元,动态电压频率调整配置寄存器的配置格式,如表4所示,As an implementation mode, as shown in FIG. 2 , the preset dimension value m is related to the value range of the preset weight configuration value weight . The dynamic voltage frequency adjustment configuration register (DVFS configuration register) is used to control the dynamic voltage frequency adjustment control unit. The configuration format of the dynamic voltage frequency adjustment configuration register is shown in Table 4.
表4 动态电压频率调整配置寄存器的配置格式Table 4 Configuration format of dynamic voltage frequency adjustment configuration register
表4的第二至五行分别是位值范围、预设权重配置、预设权重配置值以及对应的描述,预设维度值weight的取值范围0~255,则预设维度值m为256。预设权重配置值为0,对应的描述可以为倾向于仲裁最优功耗,预设权重配置值为255,对应的描述可以为倾向于仲裁最优性能,预设权重配置值为0~255中间的数字,对应的描述为,最优功耗至仲裁最优性能的中间。The second to fifth rows of Table 4 are the bit value range, preset weight configuration, preset weight configuration value and corresponding description respectively. The preset dimension value weight ranges from 0 to 255, and the preset dimension value m is 256. The preset weight configuration value is 0, and the corresponding description can be that it tends to arbitrate the optimal power consumption. The preset weight configuration value is 255, and the corresponding description can be that it tends to arbitrate the optimal performance. The preset weight configuration value is a number between 0 and 255, and the corresponding description is that it is between the optimal power consumption and the optimal performance of arbitration.
S104,根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整。S104, adjusting the frequencies and voltages of the multiple processing cores according to the adjustment order of the voltages and frequencies of the multiple processing cores, and the core-requested frequency values and core-requested voltage values of the multiple processing cores.
作为一种实施方式,同一客户端下,多个处理核心的电压和频率的调整顺序可以根据频率变化值、时间戳、预设权重配置值以及仲裁计算公式确定的仲裁值V来确定,仲裁值V越大,对应的处理核心的电压和频率的调整优先级越高,对应的处理核心的核心请求最先输入至图2的动态电压频率调整处理单元(DVFS handler),动态电压频率调整处理单元用于处理具体的动态电压频率调整请求(或核心请求),动态电压频率调整处理单元通过与时钟生成单元和板极供电模块单元,用于调整处理核心的电压和频率。图2中,处理核心Core 0-n时钟生成单元(Core 0-n clock generator),每个处理核心对应一个私有的时钟生成单元,以此来为对应的处理核心提供时钟,动态电压频率调整处理单元可以直接控制此单元来调整对应处理核心的频率。图2中,板极供电单元(voltage regulator,VR)为处理核心Core0-n提供工作需要的电压,具体的板极供电单元数目可以根据目标能效比来确定,动态电压频率调整处理单元可直接控制此单元来调整对应处理核心的电压。As an implementation method, under the same client, the adjustment order of the voltage and frequency of multiple processing cores can be determined according to the frequency change value, timestamp, preset weight configuration value and arbitration value V determined by arbitration calculation formula. The larger the arbitration value V is, the higher the adjustment priority of the voltage and frequency of the corresponding processing core is. The core request of the corresponding processing core is first input to the dynamic voltage and frequency adjustment processing unit (DVFS handler) of Figure 2. The dynamic voltage and frequency adjustment processing unit is used to process specific dynamic voltage and frequency adjustment requests (or core requests). The dynamic voltage and frequency adjustment processing unit is used to adjust the voltage and frequency of the processing core through the clock generation unit and the board power supply module unit. In Figure 2, the processing core Core 0-n clock generation unit (Core 0-n clock generator), each processing core corresponds to a private clock generation unit to provide a clock for the corresponding processing core, and the dynamic voltage and frequency adjustment processing unit can directly control this unit to adjust the frequency of the corresponding processing core. In FIG. 2 , the voltage regulator (VR) provides the voltage required for the processing cores Core0-n to work. The specific number of the voltage regulators can be determined based on the target energy efficiency ratio. The dynamic voltage and frequency adjustment processing unit can directly control this unit to adjust the voltage of the corresponding processing core.
在一些实施例中,根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整,包括:In some embodiments, adjusting the frequencies and voltages of the multiple processing cores according to the adjustment order of the voltages and frequencies of the multiple processing cores, and the core-requested frequency values and the core-requested voltage values of the multiple processing cores includes:
根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,依次对所述多个处理核心的频率和电压进行调整,若所述处理核心的核心请求的电压值小于所述处理核心当前共享电压域的实际电压值,则不对所述处理核心的电压进行调整。According to the adjustment order of the voltages and frequencies of the multiple processing cores, as well as the core-requested frequency values and core-requested voltage values of the multiple processing cores, the frequencies and voltages of the multiple processing cores are adjusted in sequence; if the core-requested voltage value of the processing core is less than the actual voltage value of the current shared voltage domain of the processing core, the voltage of the processing core is not adjusted.
作为一种实施方式,动态电压频率调整请求仲裁单元可以输出仲裁信息,动态电压频率调整处理单元接收动态电压频率调整请求仲裁单元输出的仲裁信息,根据仲裁信息来配置对应处理核心的电压和频率,仲裁信息包括处理核心id、电压id和频率id,根据处理核心id可以确定具体的处理核心,根据电压id和频率id可以分别确定具体的核心请求的频率值和核心请求的电压值。如果仲裁出的处理核心所需要电压(核心请求的电压值)小于当前共享电压域的实际电压值,可以只进行频率的调整,而不进行电压的调整。As an implementation method, the dynamic voltage and frequency adjustment request arbitration unit can output arbitration information, and the dynamic voltage and frequency adjustment processing unit receives the arbitration information output by the dynamic voltage and frequency adjustment request arbitration unit, and configures the voltage and frequency of the corresponding processing core according to the arbitration information. The arbitration information includes the processing core ID, the voltage ID and the frequency ID. The specific processing core can be determined according to the processing core ID, and the specific core requested frequency value and the core requested voltage value can be determined respectively according to the voltage ID and the frequency ID. If the voltage required by the arbitrated processing core (the voltage value requested by the core) is less than the actual voltage value of the current shared voltage domain, only the frequency can be adjusted without adjusting the voltage.
本发明实施例的处理器电压和频率调整方法,通过监听客户端的动态电压频率调整请求;获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整,可以增强处理器在部分应用场景下的灵活性,并且可以提高处理器的能效比。The processor voltage and frequency adjustment method of the embodiment of the present invention monitors the dynamic voltage and frequency adjustment request of the client; obtains the frequency change value, timestamp and preset weight configuration value of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request; determines the adjustment order of the voltage and frequency of the multiple processing cores according to the frequency change value, the timestamp and the preset weight configuration value; adjusts the frequency and voltage of the multiple processing cores according to the adjustment order of the voltage and frequency of the multiple processing cores, as well as the core requested frequency value and the core requested voltage value of the multiple processing cores, which can enhance the flexibility of the processor in some application scenarios and improve the energy efficiency ratio of the processor.
本发明实施例的处理器电压和频率调整方法,在处理器核心数目和外部供电源不是一一对应的情况下,通过可以实现每个处理核心都能动态的调整电压和频率,从而实现最大化平衡设计成本和能效比,本发明实施例的处理器电压和频率调整方法可以支持用户自定义仲裁权重参数,即预设权重配置值,为处理器提供灵活的运行模式。The processor voltage and frequency adjustment method of the embodiment of the present invention can achieve the maximum balance between design cost and energy efficiency by dynamically adjusting the voltage and frequency of each processing core when the number of processor cores and the external power supply are not one-to-one corresponding. The processor voltage and frequency adjustment method of the embodiment of the present invention can support user-defined arbitration weight parameters, that is, preset weight configuration values, to provide a flexible operating mode for the processor.
基于上述处理器电压和频率调整方法,本发明实施例还提供一种处理器电压和频率调整装置,其结构示意图,如图3所示,该处理器电压和频率调整装置30包括监听模块31、处理核心信息获取模块32、调整顺序确定模块33以及调整模块34;Based on the above processor voltage and frequency adjustment method, an embodiment of the present invention further provides a processor voltage and frequency adjustment device, whose structural diagram is shown in FIG3 . The processor voltage and frequency adjustment device 30 includes a monitoring module 31, a processing core information acquisition module 32, an adjustment sequence determination module 33, and an adjustment module 34;
所述监听模块31,用于监听客户端的动态电压频率调整请求;The monitoring module 31 is used to monitor the dynamic voltage and frequency adjustment request of the client;
所述处理核心信息获取模块32,用于获取所述动态电压频率调整请求对应的多个处理核心的频率变化值、时间戳以及预设权重配置值;The processing core information acquisition module 32 is used to obtain frequency change values, timestamps and preset weight configuration values of multiple processing cores corresponding to the dynamic voltage and frequency adjustment request;
所述调整顺序确定模块33,用于根据所述频率变化值、所述时间戳以及所述预设权重配置值,确定所述多个处理核心的电压和频率的调整顺序;The adjustment sequence determination module 33 is used to determine the adjustment sequence of the voltage and frequency of the multiple processing cores according to the frequency change value, the timestamp and the preset weight configuration value;
所述调整模块34,用于根据所述多个处理核心的电压和频率的调整顺序,以及所述多个处理核心的核心请求的频率值和核心请求的电压值,对所述多个处理核心的频率和电压进行调整。The adjustment module 34 is used to adjust the frequencies and voltages of the multiple processing cores according to the adjustment order of the voltages and frequencies of the multiple processing cores, and the core requested frequency values and core requested voltage values of the multiple processing cores.
关于上述处理器电压和频率调整装置30中各模块实现上述技术方案的其他细节,可参见上述发明实施例中提供的处理器电压和频率调整方法中的描述,此处不再赘述。For other details about how the modules in the processor voltage and frequency adjustment device 30 implement the above technical solution, please refer to the description of the processor voltage and frequency adjustment method provided in the above invention embodiment, which will not be repeated here.
基于上述处理器电压和频率调整方法,本发明实施例还提供一种电子设备40,其结构示意图,如图4所示,该电子设备40包括处理器41和与该处理器41耦合的存储器42。存储器42存储有计算机程序,计算机程序被处理器41执行时,使得处理器41执行上述实施例中的处理器电压和频率调整方法的步骤。Based on the above processor voltage and frequency adjustment method, an embodiment of the present invention further provides an electronic device 40, whose structural diagram is shown in FIG4 , and the electronic device 40 includes a processor 41 and a memory 42 coupled to the processor 41. The memory 42 stores a computer program, and when the computer program is executed by the processor 41, the processor 41 executes the steps of the processor voltage and frequency adjustment method in the above embodiment.
关于上述电子设备40中处理器41实现上述技术方案的其他细节,可参见上述发明实施例中提供的处理器电压和频率调整方法中的描述,此处不再赘述。For other details about the implementation of the above technical solution by the processor 41 in the above electronic device 40, please refer to the description of the processor voltage and frequency adjustment method provided in the above invention embodiment, which will not be repeated here.
其中,处理器41可能是一种集成电路芯片,具有信号的处理能力;处理器41还可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,其中通用处理器可以是微处理器或者该处理器41也可以是任何常规的处理器等。Among them, the processor 41 may be an integrated circuit chip with signal processing capabilities; the processor 41 may also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, wherein the general-purpose processor may be a microprocessor or the processor 41 may also be any conventional processor, etc.
本发明实施例还提供了一种计算机可读存储介质,其结构示意图,如图5所示,该存储介质50上存储有可读的计算机程序51;其中,该计算机程序51可以以软件产品的形式存储在上述存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本发明各个实施方式所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、磁碟或者光盘、只读存储器、随机存取存储器等各种可以存储程序代码的介质,或者是计算机、服务器、手机、平板等终端设备。The embodiment of the present invention also provides a computer-readable storage medium, the structure diagram of which is shown in FIG5 , wherein a readable computer program 51 is stored on the storage medium 50; wherein the computer program 51 can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk, a read-only memory, a random access memory, or a terminal device such as a computer, a server, a mobile phone, and a tablet.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.
以上对本申请所提供的技术方案进行了详细介绍,本申请中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The technical solution provided by the present application is introduced in detail above. The principles and implementation methods of the present application are explained by using specific examples in the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请的方法、设备和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, devices and computer program products according to the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411329065.0A CN118860953A (en) | 2024-09-24 | 2024-09-24 | Processor voltage and frequency adjustment method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411329065.0A CN118860953A (en) | 2024-09-24 | 2024-09-24 | Processor voltage and frequency adjustment method, device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118860953A true CN118860953A (en) | 2024-10-29 |
Family
ID=93171744
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411329065.0A Pending CN118860953A (en) | 2024-09-24 | 2024-09-24 | Processor voltage and frequency adjustment method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118860953A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101351759A (en) * | 2006-01-03 | 2009-01-21 | 先进微装置公司 | Systems and methods for operating components of integrated circuits at independent frequencies and/or voltages |
CN103229122A (en) * | 2010-09-23 | 2013-07-31 | 英特尔公司 | Providing per core voltage and frequency control |
US20210124407A1 (en) * | 2017-05-24 | 2021-04-29 | Tu Dresden | Multicore processor and method for dynamically adjusting a supply voltage and a clock speed |
CN116097196A (en) * | 2020-09-26 | 2023-05-09 | 英特尔公司 | Hierarchical power management apparatus and method |
-
2024
- 2024-09-24 CN CN202411329065.0A patent/CN118860953A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101351759A (en) * | 2006-01-03 | 2009-01-21 | 先进微装置公司 | Systems and methods for operating components of integrated circuits at independent frequencies and/or voltages |
CN103229122A (en) * | 2010-09-23 | 2013-07-31 | 英特尔公司 | Providing per core voltage and frequency control |
US20210124407A1 (en) * | 2017-05-24 | 2021-04-29 | Tu Dresden | Multicore processor and method for dynamically adjusting a supply voltage and a clock speed |
CN116097196A (en) * | 2020-09-26 | 2023-05-09 | 英特尔公司 | Hierarchical power management apparatus and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8604914B2 (en) | Smart power sockets, boards, and plugs | |
US9280172B2 (en) | Method, apparatus, and system for optimizing frequency and performance in a multidie microprocessor | |
US9563254B2 (en) | System, method and apparatus for energy efficiency and energy conservation by configuring power management parameters during run time | |
CN109931285B (en) | Fan speed regulation method and device and electronic equipment | |
TW200904061A (en) | System and method for power management in a computing device for PoE | |
TW201339820A (en) | Adaptive voltage scaling using a serial interface | |
US20160188365A1 (en) | Computational unit selection | |
CN116541227A (en) | Fault diagnosis method, device, storage medium, electronic device and BMC chip | |
CN114077296B (en) | Method, device and related equipment for controlling power supply output power | |
CN114816033A (en) | Frequency modulation method and device of processor and computing equipment | |
CN106021059A (en) | Method for controlling multiple circuit modules in chip and system on chip | |
CN114442794A (en) | Server power consumption control method, system, terminal and storage medium | |
CN118035051A (en) | Energy efficiency evaluation method, device, system and related equipment | |
JP6189545B2 (en) | Network application parallel scheduling to reduce power consumption | |
CN104572402B (en) | A kind of server and the method for realizing server energy consumption management | |
CN118860953A (en) | Processor voltage and frequency adjustment method, device, electronic device and storage medium | |
CN116521378B (en) | Sensor access method and device of server and baseboard management controller | |
CN116860339B (en) | Method, device and equipment for starting server based on MAC address information | |
CN111143055A (en) | Virtual cloud host pre-allocation method, apparatus, readable storage medium and electronic device | |
CN118277056A (en) | Task scheduling method and device, terminal equipment and storage medium | |
CN208781168U (en) | Controlling charging current and cpu performance improves the circuit and electronic product of heat dissipation | |
US20230035142A1 (en) | Input work item flow metric for computing environment telemetry | |
CN116610477A (en) | Method, device, device and storage medium for adjusting power consumption of graphics processor | |
US11785636B1 (en) | Wireless communication network access for wireless user equipment based on their wireless network slices | |
CN111913796B (en) | Generation method and delay scheduling method of delay scheduling time interval for offline 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 |