CN101216727A - Mapping Method for Dynamic Frequency Adjustment in Embedded Low Power Operating System - Google Patents
Mapping Method for Dynamic Frequency Adjustment in Embedded Low Power Operating System Download PDFInfo
- Publication number
- CN101216727A CN101216727A CNA2008100591862A CN200810059186A CN101216727A CN 101216727 A CN101216727 A CN 101216727A CN A2008100591862 A CNA2008100591862 A CN A2008100591862A CN 200810059186 A CN200810059186 A CN 200810059186A CN 101216727 A CN101216727 A CN 101216727A
- Authority
- CN
- China
- Prior art keywords
- processor
- frequency
- operating system
- energy
- pmu
- 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
Images
Landscapes
- Power Sources (AREA)
Abstract
本发明公开了一种嵌入式低功耗操作系统中动态频率调整的映射方法。提供了一种新的方法和技术用来建模、解决并进行优化嵌入式低功耗操作系统中处理器频率动态调整时的映射问题。本发明通过利用处理器运行频率向上向下映射的方法将理论处理器最节能频率映射到实际可调节电压,以达到节能的目的,同时保证系统的性能要求。该发明基于一个处理器频率映射模型,通过映射模型将理论处理器最节能频率映射到实际可调整的处理器频率。操作系统在执行过程中,动态调频调压技术,根据性能要求和处理器运行情况确定处理器在当前性能要求下的理论最节能运行频率,然后通过映射模型映射到实际处理器频率,以达到节能目的。
The invention discloses a mapping method for dynamic frequency adjustment in an embedded low-power consumption operating system. A new method and technology are provided to model, solve and optimize the mapping problem when the processor frequency is dynamically adjusted in an embedded low-power operating system. The present invention maps the most energy-saving frequency of the theoretical processor to the actual adjustable voltage by using the method of upward-downward mapping of the operating frequency of the processor, so as to achieve the purpose of energy saving and ensure the performance requirements of the system at the same time. The invention is based on a processor frequency mapping model, through which the theoretical processor most energy-saving frequency is mapped to the actual adjustable processor frequency. During the execution of the operating system, the dynamic frequency and voltage regulation technology determines the theoretically most energy-efficient operating frequency of the processor under the current performance requirements according to the performance requirements and the operating conditions of the processor, and then maps it to the actual processor frequency through the mapping model to achieve energy saving Purpose.
Description
技术领域technical field
本发明涉及基于嵌入式系统软件节能技术,特别是涉及一种面向嵌入式低功耗操作系统中动态频率调整的映射方法。The invention relates to an energy-saving technology based on embedded system software, in particular to a mapping method for dynamic frequency adjustment in an embedded low-power operating system.
背景技术Background technique
在便携式嵌入式设备电源管理领域,目前的困难在于既要满足便携式终端对电源供电的要求,又要做到占用空间小、重量轻和供电时间更长。下一代消费类电子产品的电源解决方案重点应该集中在硬件和软件两方面技术,包括:(1)在小巧外形尺寸下,如何实现所需电源性能的工艺和技术,涉及热管理、降噪、电池管理和功能整合等技术;(2)动态功率管理技术,它取决于CPU性能、软件、中间件以及用户对更换电池的时间间隔等要求;(3)动态功率管理技术对操作系统内核和驱动器,以及应用编程接口(API)对驱动器、中间件和应用本身的影响。In the field of power management of portable embedded devices, the current difficulty lies in not only meeting the requirements of portable terminals for power supply, but also achieving small footprint, light weight and longer power supply time. Power solutions for next-generation consumer electronics should focus on both hardware and software technologies, including: (1) How to achieve the required power performance in a small form factor, involving thermal management, noise reduction, Technologies such as battery management and functional integration; (2) dynamic power management technology, which depends on CPU performance, software, middleware, and user requirements for battery replacement intervals; (3) dynamic power management technology for operating system kernels and drivers , and the impact of application programming interfaces (APIs) on drivers, middleware, and the applications themselves.
现在嵌入式设备的功能变得越来越强大,功能也越来越丰富。随着嵌入式设备功能越来越多,用户对嵌入式设备电池的能量需求也越来越高,现有的锂离子电池已经越来越难以满足消费者对正常使用时间的要求。对此,业界主要采取两种方法,一是开发具备更高能量密度的新型电池技术,如燃料电池,在可以预见的5年内,电池技术不可能有很大的突破;二是在电池的能量转换效率和节能方面下功夫。在目前新的高能电池技术(如燃料电池)仍不成熟的情况下,下一代手持设备的电源管理只能从提高电源利用率和降低功耗这二个方面着手。Now the functions of embedded devices are becoming more and more powerful, and the functions are becoming more and more abundant. As embedded devices have more and more functions, users have higher and higher energy requirements for embedded device batteries. It has become increasingly difficult for existing lithium-ion batteries to meet consumers' requirements for normal use time. In this regard, the industry mainly adopts two methods. One is to develop new battery technologies with higher energy density, such as fuel cells. In the foreseeable five years, there will be no major breakthroughs in battery technology; Work hard on conversion efficiency and energy saving. Under the condition that new high-energy battery technologies (such as fuel cells) are still immature, the power management of next-generation handheld devices can only start from two aspects: improving power utilization and reducing power consumption.
如何延长电池的使用寿命,以及尽量减少电池能量的消耗已经成为嵌入式领域的一个研究热点。现在主要集中在硬件设计和软件优化两方面。其中软件优化方面现在主要包括系统软件和应用软件两方面。系统软件主要集中在编译器和操作系统内核两块。How to prolong battery life and minimize battery energy consumption has become a research hotspot in the embedded field. Now it mainly focuses on hardware design and software optimization. Among them, software optimization now mainly includes two aspects of system software and application software. The system software is mainly concentrated in the compiler and the operating system kernel.
在操作系统领域,现在主要的电源管理方法是利用操作系统内核,动态的调整系统处理器和总线的频率,降低系统的整体能耗。而且系统可以通过动态频率指令改变系统状态,是系统处于低功耗状态,以达到节能的目的。在编译器方面,现在主要通过编译器在编译应用程序阶段,对代码进行优化,使代码尽量的紧凑以及访问设备尽量集中,以达到节能的目的。In the operating system field, the current main power management method is to use the operating system kernel to dynamically adjust the frequency of the system processor and the bus to reduce the overall energy consumption of the system. Moreover, the system can change the system state through the dynamic frequency command, so that the system is in a low power consumption state to achieve the purpose of energy saving. In terms of the compiler, the compiler is now mainly used to optimize the code during the compilation of the application program, so that the code is as compact as possible and the access devices are concentrated as much as possible, so as to achieve the purpose of energy saving.
由于现在处理器一般都只支持非连续的频率调整,即处理器只支持一系列的特定频率,而通过以上电源管理方法获得的最优处理器频率并一定就是处理器支持的特定频率,不能直接运用到处理器上。需要通过一定的映射模型,将最优处理器频率映射到相应的处理器实际频率上。那么这就需要开发相应的映射方法,在保证系统性能要求的同时,能够将最优处理器频率映射到相应的处理器实际频率。Since the current processors generally only support discontinuous frequency adjustment, that is, the processor only supports a series of specific frequencies, and the optimal processor frequency obtained through the above power management methods is not necessarily the specific frequency supported by the processor, and cannot be directly adjusted. applied to the processor. It is necessary to use a certain mapping model to map the optimal processor frequency to the corresponding actual frequency of the processor. Then it is necessary to develop a corresponding mapping method, which can map the optimal processor frequency to the corresponding actual processor frequency while ensuring the system performance requirements.
发明内容Contents of the invention
本发明的目的在于提供一种嵌入式低功耗操作系统中动态频率调整的映射方法。The object of the present invention is to provide a mapping method for dynamic frequency adjustment in an embedded low power consumption operating system.
本发明解决其技术问题采用的技术方案的步骤如下:The steps of the technical solution adopted by the present invention to solve its technical problems are as follows:
1)动态采集系统事件:1) Dynamically collect system events:
硬件平台都具有性能监视模块PMU,PMU在整个系统运行过程中采集运行事件发生数,包括处理器运行时频率,处理器内存缺失;The hardware platform has a performance monitoring module PMU, and the PMU collects the number of running events during the entire system running, including the frequency of the processor when it is running, and the lack of processor memory;
操作系统通过指令对PMU设置,设置PMU采集事件的类型和采集事件发生数的上限值,当PMU每采集到一个需要采集的事件,PMU有个相应的计数器,这个计数器将加1;当采集到的事件发生数达到设置的上限值,PMU将发出一个中断,打断正在运行的程序;中断程序读取PMU采集到的各种事件发生数并累加到操作系统保存的事件发生数值上;The operating system sets the PMU through instructions to set the type of PMU acquisition event and the upper limit of the number of acquisition events. When the PMU collects an event that needs to be collected, the PMU has a corresponding counter, and this counter will increase by 1; When the number of events detected reaches the set upper limit, the PMU will send an interrupt to interrupt the running program; the interrupt program reads the number of various events collected by the PMU and adds them to the event value saved by the operating system;
在本发明中,要求PMU采集两种系统事件,包括:处理器运行的指令数,处理器运行的空闲指令NOP数;In the present invention, the PMU is required to collect two kinds of system events, including: the number of instructions that the processor runs, and the number of idle instructions NOPs that the processor runs;
2)计算处理器理论最节能频率:2) Calculate the theoretical most energy-saving frequency of the processor:
操作系统通过定时器中断当前操作,操作系统通过设置定时器的定时长度t来定时中断当前操作,定时器中断处理程序计算处理器在当前性能要求下的理论最节能频率;操作系统根据PMU获取的事件发生数值,计算当前处理器的空闲比m;并将操作系统保存的事件发生数清0;通过如下映射公式得到在当前性能要求处理器理论最节能频率:The operating system interrupts the current operation through the timer. The operating system interrupts the current operation regularly by setting the timing length t of the timer. The timer interrupt handler calculates the theoretical most energy-saving frequency of the processor under the current performance requirements; the operating system obtains the frequency based on the PMU Calculate the idle ratio m of the current processor by calculating the number of event occurrences; clear the number of events saved by the operating system to 0; use the following mapping formula to obtain the theoretically most energy-saving frequency of the processor at the current performance requirements:
f=P(m,x)=m×fmax×xf=P(m,x)=m×f max ×x
其中:in:
m是当前处理器的空闲比,m=NOP指令数/处理器运行的指令数,m is the idle ratio of the current processor, m=number of NOP instructions/number of instructions run by the processor,
x是当前性能要求,取值范围为0~1,x is the current performance requirement, and its value ranges from 0 to 1.
f为当前性能要求处理器理论最节能频率,f is the theoretical most energy-saving frequency of the processor required by the current performance,
P(m,x)为映射公式,此映射公式将根据当前x和m参数获得最节能频率,P(m, x) is the mapping formula, which will obtain the most energy-saving frequency according to the current x and m parameters,
fmax为处理器的最高运行速度;f max is the highest operating speed of the processor;
3)理论运行频率映射到实际处理器频率:3) The theoretical operating frequency is mapped to the actual processor frequency:
由于现在处理器一般都只支持非连续的频率调整,即处理器只支持一系列的特定频率,所以当操作系统计算出当前性能要求处理器理论最节能频率f后,处理器并不一定支持,如果计算出的理论频率f正好是处理器支持的某个特定频率,那么操作系统直接通过动态平率调整指令将处理器的运行频率设置为f,否则将通过如下公式在保证不影响运行性能的前提下将f映射到实际频率:Since the current processors generally only support discontinuous frequency adjustment, that is, the processor only supports a series of specific frequencies, so when the operating system calculates the current performance requirements of the theoretically most energy-saving frequency f of the processor, the processor does not necessarily support it. If the calculated theoretical frequency f happens to be a specific frequency supported by the processor, then the operating system directly sets the operating frequency of the processor to f through the dynamic rate adjustment instruction, otherwise the following formula will be used to ensure that the operating performance will not be affected Map f to the actual frequency under the premise:
N/f=NH/fH+(N-NH)/fL N/f=N H /f H +(NN H )/f L
其中in
N是在处理器频率f下定时器长度t的时间内完成可运行的时钟数,即N=f×t,N is the number of clocks that can be run within the time of the timer length t under the processor frequency f, that is, N=f×t,
f是当前性能要求处理器理论最节能频率,f is the theoretically most energy-efficient frequency of the processor required by the current performance,
NH是处理器运行在频率fH下的周期数,N H is the number of cycles the processor is running at frequency f H ,
fH是处理器支持的特定频率,且fH大于f,f H is a specific frequency supported by the processor, and f H is greater than f,
fL是处理器支持的特定频率,且fL小于f,f L is a specific frequency supported by the processor, and f L is less than f,
即f正好落入由fH和fL组成的区间内,且fH和fL之间的差值最小,根据处理器支持的特定频率,可以通过f值的大小,找到相应的fH和fL;然后通过公式计算出NH的值,这样就能知道为了将f映射到实际运行频率同时保证性能,任务需要在fH频率下运行的周期数NH,同时也就能够计算出在fL频率下运行的周期数N-NH;That is, f just falls into the interval composed of f H and f L , and the difference between f H and f L is the smallest. According to the specific frequency supported by the processor, the corresponding f H and f can be found through the value of f. f L ; then the value of N H is calculated by the formula, so that in order to map f to the actual operating frequency while ensuring the performance, the number of cycles N H that the task needs to run at the frequency of f H can be calculated at the same time The number of cycles NN H running at f L frequency;
通过上述公式,就可以将f映射到实际处理器频率fH和fL,同时保证性能不变;处理器就可以先将处理器频率调整到fH频率下运行NH周期,然后将处理器频率调整到fL频率下运行N-NH周期。Through the above formula, f can be mapped to the actual processor frequency f H and f L while ensuring the same performance; the processor can first adjust the processor frequency to f H frequency to run N H cycles, and then the processor The frequency is adjusted to run NN H cycles at f L frequency.
本发明与背景技术相比,具有的有益的效果是:Compared with the background technology, the present invention has the beneficial effects that:
本发明通过利用处理器运行频率向上向下映射的方法将理论处理器最节能频率映射到实际可调节电压,以达到节能的目的,同时保证系统的性能要求。该发明基于一个处理器频率映射模型,通过映射模型将理论处理器最节能频率映射到实际可调整的处理器频率。操作系统在执行过程中,动态调频调压技术,根据性能要求和处理器运行情况确定处理器在当前性能要求下的理论最节能运行频率,然后通过映射模型映射到实际处理器频率,以达到节能目的。The invention maps the theoretical processor's most energy-saving frequency to the actual adjustable voltage by using the method of upward-downward mapping of the operating frequency of the processor, so as to achieve the purpose of energy saving and ensure the performance requirements of the system at the same time. The invention is based on a processor frequency mapping model, through which the theoretical processor most energy-saving frequency is mapped to the actual adjustable processor frequency. During the execution of the operating system, the dynamic frequency modulation and voltage regulation technology determines the theoretically most energy-efficient operating frequency of the processor under the current performance requirements according to the performance requirements and the operating conditions of the processor, and then maps it to the actual processor frequency through the mapping model to achieve energy saving Purpose.
(1)性能保证。应用程序在系统中运行时,通过频率映射模型将理论处理器最节能频率映射到实际可调整的处理器频率,本模型具有一个前提就是保证系统的性能。(1) Performance Guarantee. When the application program is running in the system, the theoretical processor's most energy-saving frequency is mapped to the actual adjustable processor frequency through the frequency mapping model. The premise of this model is to ensure the performance of the system.
(2)稳定性。操作系统将动态调整系统状态的权利掌握在自己手中,而不是下放给应用程序,这样系统就能在兼顾全局的情况下动态调整系统的状态,保证系统的稳定。(2) Stability. The operating system holds the right to dynamically adjust the system state in its own hands, instead of delegating it to the application program, so that the system can dynamically adjust the system state while taking into account the overall situation to ensure system stability.
(3)实用性。本发明可以尽量少的修改系统的代码,达到节能目的,映射模型十分简单,易于实现。在经过反复的验证,这个方法可以很好的减少程序员的工作量,十分实用。(3) Practicality. The invention can modify the code of the system as little as possible to achieve the purpose of energy saving, and the mapping model is very simple and easy to realize. After repeated verification, this method can reduce the workload of programmers very well and is very practical.
附图说明Description of drawings
附图是整个系统工作的流程图。Accompanying drawing is the flowchart of whole system work.
具体实施方式Detailed ways
如附图所示,在实施嵌入式低功耗操作系统中动态频率调整的映射方法时,操作系统在调度过程中,考虑了性能和节能两个约束,将理论最节能处理器频率f映射到实际处理器频率。As shown in the accompanying drawing, when implementing the mapping method of dynamic frequency adjustment in the embedded low-power operating system, the operating system considers the two constraints of performance and energy saving during the scheduling process, and maps the theoretical most energy-saving processor frequency f to Actual processor frequency.
1)动态采集系统事件1) Dynamically collect system events
现在流行的硬件平台都具有性能监视模块PMU,PMU可以在整个系统运行过程中采集运行事件,包括处理器运行时频率,处理器内存缺失等;PMU都具有两个以上的寄存器用来保存采集到的事件发生数量;如Intel Xscale处理器上的PMU可以同时采集两个事件。Now popular hardware platforms all have a performance monitoring module PMU, which can collect running events during the entire system running, including processor running frequency, processor memory loss, etc.; PMU has more than two registers to save the collected The number of events occurred; for example, the PMU on the Intel Xscale processor can collect two events at the same time.
操作系统可以通过特殊的指令对PMU设置,设置PMU采集事件的类型和采集事件发生数的上限值,当PMU每采集到一个需要采集的事件,PMU有个相应的计数器,这个计数器将加1也可以减1,这主要和所用的PMU特性有关;当采集到的事件发生数达到设置的上限值,PMU将发出一个中断,打断正在运行的程序;中断程序读取PMU采集到的各种事件发生数并累加到操作系统保存的事件发生数值上;The operating system can set the PMU through special instructions, set the type of PMU acquisition event and the upper limit of the number of acquisition events. When the PMU collects an event that needs to be collected, the PMU has a corresponding counter, and this counter will increase by 1. It can also be reduced by 1, which is mainly related to the characteristics of the PMU used; when the number of collected events reaches the upper limit value set, the PMU will send an interrupt to interrupt the running program; the interrupt program reads the various events collected by the PMU. The number of occurrences of various events is added to the value of event occurrences saved by the operating system;
以Intel Xscale处理器上的PMU为例,它有两个性能监视计数器PMN0和PMN1,用来针对系统某类事件进行计数,所监视的事件在寄存器PMNC里面进行设置,同时在PMNO和PMN1中设置事件发生数,相应的事件每发生一次,对应的计数器加1,当PMN0和PMN1溢出时系统将产生一个中断,PMNC也是一个32位的寄存器,它可以对所有的计数器进行归零操作,还可以对PMN0和PMN1所要监视的事件进行设置。Taking the PMU on the Intel Xscale processor as an example, it has two performance monitoring counters PMN0 and PMN1, which are used to count certain types of system events. The monitored events are set in the register PMNC, and are set in PMNO and PMN1 at the same time. The number of events, each time the corresponding event occurs, the corresponding counter is incremented by 1. When PMN0 and PMN1 overflow, the system will generate an interrupt. PMNC is also a 32-bit register, which can reset all counters to zero. Set the events to be monitored by PMN0 and PMN1.
在本发明中,要求PMU采集两种系统事件,包括:处理器内存缺失,处理器运行的指令数;In the present invention, the PMU is required to collect two kinds of system events, including: processor memory loss, the number of instructions run by the processor;
2)计算处理器理论最节能频率2) Calculate the theoretical most energy-saving frequency of the processor
操作系统通过定时器中断当前操作,操作系统通过设置定时器的定时长度t来定时中断当前操作,定时器中断处理程序计算处理器在当前性能要求下的理论最节能频率;操作系统根据PMU获取的事件发生数,计算当前处理器的空闲比m;并将操作系统保存的事件发生数清0;通过如下映射公式得到在当前性能要求处理器理论最节能频率:The operating system interrupts the current operation through the timer. The operating system interrupts the current operation regularly by setting the timing length t of the timer. The timer interrupt handler calculates the theoretical most energy-saving frequency of the processor under the current performance requirements; the operating system obtains the frequency based on the PMU Calculate the idle ratio m of the current processor according to the number of events; clear the number of events saved by the operating system to 0; use the following mapping formula to obtain the theoretically most energy-saving frequency of the processor with current performance requirements:
f=P(m,x)=m×fmax×xf=P(m,x)=m×f max ×x
其中in
m是当前处理器的空闲比,m=NOP指令数/处理器运行的指令数,m is the idle ratio of the current processor, m=number of NOP instructions/number of instructions run by the processor,
x是当前性能要求,取值范围为0~1,x is the current performance requirement, and its value ranges from 0 to 1.
f为当前性能要求处理器理论最节能频率,f is the theoretical most energy-saving frequency of the processor required by the current performance,
P(m,x)为映射公式,此映射公式将根据当前x和m参数获得最节能频率,P(m, x) is the mapping formula, which will obtain the most energy-saving frequency according to the current x and m parameters,
fmax为处理器的最高运行速度;f max is the highest operating speed of the processor;
P(m,x)为映射公式,此映射公式将根据当前x和m参数获得最节能频率,以Intel XcalePXA255为例,处理器的最高运行频率fmax为400MHZ,那么根据m和x可得到f=400×m×x,假设现在m为0.4而x为1就是性能最高的情况下,那么f=160MHZ。P(m, x) is the mapping formula. This mapping formula will obtain the most energy-saving frequency according to the current x and m parameters. Taking Intel XcalePXA255 as an example, the maximum operating frequency f max of the processor is 400MHZ, then f can be obtained according to m and x =400×m×x, assuming that m is 0.4 and x is 1, which is the highest performance, then f=160MHZ.
3)理论运行频率映射到实际处理器频率3) The theoretical operating frequency is mapped to the actual processor frequency
由于现在处理器一般都只支持非连续的频率调整,即处理器只支持一系列的特定频率,所以当操作系统计算出当前性能要求处理器理论最节能频率f后,处理器并不一定支持,如果计算出的理论频率f正好是处理器支持的某个特定频率,那么操作系统可以直接通过动态平率调整指令将处理器的运行频率设置为f,否则将通过如下公式在保证不影响运行性能的前提下将f映射到实际频率:Since the current processors generally only support discontinuous frequency adjustment, that is, the processor only supports a series of specific frequencies, so when the operating system calculates the current performance requirements of the theoretically most energy-saving frequency f of the processor, the processor does not necessarily support it. If the calculated theoretical frequency f happens to be a specific frequency supported by the processor, then the operating system can directly set the operating frequency of the processor to f through the dynamic rate adjustment instruction, otherwise the following formula will be used to ensure that the operating performance will not be affected Map f to the actual frequency under the premise of :
N/f=NH/fH+(N-NH)/fL N/f=N H /f H +(NN H )/f L
其中in
N是在处理器频率f下定时器长度t的时间内完成可运行的时钟数,即N=f×t,N is the number of clocks that can be run within the time of the timer length t under the processor frequency f, that is, N=f×t,
f是当前性能要求处理器理论最节能频率,f is the theoretically most energy-efficient frequency of the processor required by the current performance,
NH是处理器运行在频率fH下的周期数,N H is the number of cycles the processor is running at frequency f H ,
fH是处理器支持的特定频率,且fH大于f,f H is a specific frequency supported by the processor, and f H is greater than f,
fL是处理器支持的特定频率,且fL小于f,f L is a specific frequency supported by the processor, and f L is less than f,
即f正好落入由fH和fL组成的区间内,且fH和fL之间的差值最小,根据处理器支持的特定频率,可以通过f值的大小,找到相应的fH和fL;然后通过公式计算出NH的值,这样就能知道为了将f映射到实际运行频率同时保证性能,任务需要在fH频率下运行的周期数NH,同时也就能够计算出在fL频率下运行的周期数N-NH;That is, f just falls into the interval composed of f H and f L , and the difference between f H and f L is the smallest. According to the specific frequency supported by the processor, the corresponding f H and f can be found through the value of f. f L ; then the value of N H is calculated by the formula, so that in order to map f to the actual operating frequency while ensuring the performance, the number of cycles N H that the task needs to run at the frequency of f H can be calculated at the same time The number of cycles NN H running at f L frequency;
通过上述公式,就可以将f映射到实际处理器频率fH和fL,同时保证性能不变;处理器就可以先将处理器频率调整到fH频率下运行NH周期,然后将处理器频率调整到fL频率下运行N-NH周期。以Intel Xscale为例,Xscale PXA255芯片支持4个特定频率,分别为400MHZ,300MHZ,200MHZ,100MHZ。假设现在f=340MHZ,t=10us,那么N=3400个周期。因为300<f<400,且300和400最接近f,那么可以得到fH=400,fL=300。通过公式N/f=NH/fH+(N-NH)/fL,可以计算出NH=1600个周期,而N-NH=1800个周期,即处理器在400MHZ下运行1600个周期,然后在300MHZ下运行1800个周期。Through the above formula, f can be mapped to the actual processor frequency f H and f L while ensuring the same performance; the processor can first adjust the processor frequency to f H frequency to run N H cycles, and then the processor The frequency is adjusted to run NN H cycles at f L frequency. Taking Intel Xscale as an example, the Xscale PXA255 chip supports 4 specific frequencies, namely 400MHZ, 300MHZ, 200MHZ, and 100MHZ. Suppose now f=340MHZ, t=10us, then N=3400 cycles. Since 300<f<400, and 300 and 400 are closest to f, then f H =400, f L =300 can be obtained. Through the formula N/f=N H /f H +(NN H )/f L , it can be calculated that N H =1600 cycles, and NN H =1800 cycles, that is, the processor runs for 1600 cycles at 400MHZ, and then Runs 1800 cycles at 300MHZ.
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100591862A CN101216727A (en) | 2008-01-16 | 2008-01-16 | Mapping Method for Dynamic Frequency Adjustment in Embedded Low Power Operating System |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2008100591862A CN101216727A (en) | 2008-01-16 | 2008-01-16 | Mapping Method for Dynamic Frequency Adjustment in Embedded Low Power Operating System |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101216727A true CN101216727A (en) | 2008-07-09 |
Family
ID=39623170
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2008100591862A Pending CN101216727A (en) | 2008-01-16 | 2008-01-16 | Mapping Method for Dynamic Frequency Adjustment in Embedded Low Power Operating System |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101216727A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010091598A1 (en) * | 2009-02-11 | 2010-08-19 | 上海芯豪微电子有限公司 | Method and device for automatic real-time adjustment of clock frequency or supply voltage of processor system |
CN101604198B (en) * | 2009-07-10 | 2010-09-29 | 杭州电子科技大学 | A Method of Reducing Power Consumption of Embedded System |
CN101866213A (en) * | 2010-07-23 | 2010-10-20 | 上海交通大学 | Energy Saving Method of Embedded System with SPM-DMA Structure |
CN104011621A (en) * | 2011-12-22 | 2014-08-27 | 英特尔公司 | A method, apparatus, and system for energy efficiency and energy conservation including enhanced temperature based voltage control |
CN104424031A (en) * | 2013-08-23 | 2015-03-18 | 中兴通讯股份有限公司 | Working frequency control method and device for processor |
CN105677482A (en) * | 2015-12-31 | 2016-06-15 | 联想(北京)有限公司 | Frequency adjusting method and electronic equipment |
CN108509255A (en) * | 2017-02-24 | 2018-09-07 | 龙芯中科技术有限公司 | The treating method and apparatus of hardware interrupts |
CN109085911A (en) * | 2018-07-11 | 2018-12-25 | 深圳超多维科技有限公司 | A kind of dynamic frequency method, apparatus, equipment and storage medium |
CN110045951A (en) * | 2019-04-22 | 2019-07-23 | 国网山西省电力公司电力科学研究院 | A kind of developing instrument that neural network hardware low-power consumption customizes |
-
2008
- 2008-01-16 CN CNA2008100591862A patent/CN101216727A/en active Pending
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010091598A1 (en) * | 2009-02-11 | 2010-08-19 | 上海芯豪微电子有限公司 | Method and device for automatic real-time adjustment of clock frequency or supply voltage of processor system |
CN101604198B (en) * | 2009-07-10 | 2010-09-29 | 杭州电子科技大学 | A Method of Reducing Power Consumption of Embedded System |
CN101866213A (en) * | 2010-07-23 | 2010-10-20 | 上海交通大学 | Energy Saving Method of Embedded System with SPM-DMA Structure |
CN104011621B (en) * | 2011-12-22 | 2016-12-14 | 英特尔公司 | Based on temperature voltage-controlled for efficiency with energy-conservation methods, devices and systems including strengthen |
CN104011621A (en) * | 2011-12-22 | 2014-08-27 | 英特尔公司 | A method, apparatus, and system for energy efficiency and energy conservation including enhanced temperature based voltage control |
CN104424031A (en) * | 2013-08-23 | 2015-03-18 | 中兴通讯股份有限公司 | Working frequency control method and device for processor |
CN104424031B (en) * | 2013-08-23 | 2021-01-26 | 中兴通讯股份有限公司 | Method and device for controlling working frequency of processor |
CN105677482A (en) * | 2015-12-31 | 2016-06-15 | 联想(北京)有限公司 | Frequency adjusting method and electronic equipment |
CN105677482B (en) * | 2015-12-31 | 2020-12-18 | 联想(北京)有限公司 | Frequency adjusting method and electronic equipment |
CN108509255A (en) * | 2017-02-24 | 2018-09-07 | 龙芯中科技术有限公司 | The treating method and apparatus of hardware interrupts |
CN108509255B (en) * | 2017-02-24 | 2021-01-22 | 龙芯中科技术股份有限公司 | Method and device for processing hardware interrupt |
CN109085911A (en) * | 2018-07-11 | 2018-12-25 | 深圳超多维科技有限公司 | A kind of dynamic frequency method, apparatus, equipment and storage medium |
CN110045951A (en) * | 2019-04-22 | 2019-07-23 | 国网山西省电力公司电力科学研究院 | A kind of developing instrument that neural network hardware low-power consumption customizes |
CN110045951B (en) * | 2019-04-22 | 2022-04-15 | 国网山西省电力公司电力科学研究院 | A low-power customized development tool for neural network hardware |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101216727A (en) | Mapping Method for Dynamic Frequency Adjustment in Embedded Low Power Operating System | |
CN100416463C (en) | Scheduling method for low-power real-time task parameter model for embedded systems | |
CN100465857C (en) | A Simplified Method for Low-power Real-time Task Scheduling in Embedded Systems | |
US8181051B2 (en) | Electronic apparatus and method of conserving energy | |
Gu et al. | Energy efficient scheduling of servers with multi-sleep modes for cloud data center | |
CN101271406A (en) | Online Redistribution Method of Slack Time in RM Low Power Scheduling of Embedded System | |
CN104216502B (en) | SoC (system on chip) dynamic voltage frequency scaling method with foresight | |
RU2010139638A (en) | ENERGY SAVING FLOW PLANNING AND DYNAMIC USE OF PROCESSORS | |
CN101436098A (en) | Method and apparatus for reducing power consumption of multiple-core symmetrical multiprocessing system | |
CN100590571C (en) | MSR Method for EDF Low Power Scheduling in Real-Time Embedded Systems | |
CN101510115B (en) | Method for controlling processor frequency when program operation by using dynamic compiler | |
CN101237656B (en) | Method for improving terminal service duration and terminal device using this method | |
CN100365543C (en) | Energy-saving Method for Dynamically Adjusting Processor Frequency by Kernel | |
CN106970835A (en) | Fixed priority resource limited system level energy consumption optimization method | |
US20140059372A1 (en) | Method and apparatus to save power upon resume in multi-core system | |
CN101604198B (en) | A Method of Reducing Power Consumption of Embedded System | |
CN103559092B (en) | The peak power control method of heterogeneous Computing node | |
CN1936776A (en) | Method for simplifying low-power-consumption real-time task scheduling of inlaid system | |
Pratik et al. | Power Optimization Tuning Techniques for Core C-States in Microprocessors with Hybrid Architecture | |
Zhang et al. | Global EDF-based online, energy-efficient real-time scheduling in multi-core platform | |
Jing-Jing et al. | System-level power management for low-power SOC design | |
Li et al. | A two-stage strategy to optimize energy consumption for latency-critical workload under QoS constraint | |
Liu | Research and Application of Low Power Design Strategies in Embedded Systems | |
El Ghor et al. | Towards multiprocessor scheduling in distributed real-time systems under energy constraints | |
TW202433280A (en) | Microcontroller and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20080709 |