CN104714621A - DVS scheduling algorithm based on partitioning operation system - Google Patents
DVS scheduling algorithm based on partitioning operation system Download PDFInfo
- Publication number
- CN104714621A CN104714621A CN201310688800.2A CN201310688800A CN104714621A CN 104714621 A CN104714621 A CN 104714621A CN 201310688800 A CN201310688800 A CN 201310688800A CN 104714621 A CN104714621 A CN 104714621A
- Authority
- CN
- China
- Prior art keywords
- voltage
- task
- dvs
- processor
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The invention provides a DVS scheduling algorithm based on a partitioning operation system. According to the method, free time of a processor is dynamically estimated, and power consumption is effectively reduced at a small cost on the condition of ensuring high response speed of the processor; a data item of free task operation time t1 recorded according to partitioning before voltage reduction is additionally arranged in a task control block of a free task; whether the free task operation time t1 before voltage reduction meets a voltage switching condition is judged; when the free task operation time t1 meets the voltage switching condition, frequency reduction operation is executed until partitioning is finished; when partitioning is finished, frequency raising operation is executed. The problem of overheating, caused by high-speed computation, of the onboard embedded processor is solved, the service life of the processor is prolonged, and the fault rate of the processor is reduced.
Description
Technical field
The invention belongs to embedded OS field, relate to a kind of dynamic electric voltage grade for partition operating system and regulate DVS method for scheduling task.
Background technology
Along with the development of avlomcs system integration, the requirement of computer system arithmetic capability is also more and more higher.For this reason, airborne computer system adopts high performance hardware system thus reaches the target improving processing speed.Meanwhile, the reliability of computing system is increasingly important, and airborne computer is with the target of the hardware and software redundancy of each level for cost realization raising reliability.Unfortunately, no matter be that high performance hardware system or redundancy backup have all increased substantially system energy consumption.The system power dissipation of great number adds the burden of electric power system, and the heat of generation becomes severe by hardware running environment, thus reduces the overall life of system.DVS task scheduling is the important content of operating system power managed, the power management of processor when Study system runs.It, by reducing DVS processor clock frequency when processor execution load is lower, reaches the object reducing system power dissipation.DVS task scheduling not only needs the different qualities according to task, designs corresponding dispatching algorithm, as real-time and un-real time job, and cycle and aperiodic task etc.DVS task scheduling also needs to meet the difference restriction of original dispatching algorithm, as seized and can not seize, dynamically and fixed priority etc.The DVS dispatching method of un-real time job is relatively simple, and task does not have clear and definite restriction closing time, and the target that un-real time job DVS dispatches ensures lowest power consumption is pursued on the basis that task can complete according to the dispatching algorithm of current employing.Current un-real time job DVS model can be classified as three classes substantially: 1) state algorithm; 2) based on the algorithm of averaging time; 3) based on the algorithm of power consumption material time.The DVS of real-time task dispatches the execution time predictability that the most important condition is guarantee system.Common real-time task scheduling method has two kinds: RMS(based on the Rate-Monotonic Scheduling Algorithm of priority) and EDF(off period priority algorithm the earliest).But traditional two kinds of methods are all too complicated, computing cost is large, is not suitable for the airborne embedded system very high to requirement of real-time.
Summary of the invention
The object of the invention is: the invention provides a kind of DVS dispatching algorithm based on partition operating system, dynamic estimation processor free time, under the condition ensureing processor high response speed, effectively reduce power consumption with very little cost.
Technical solution of the present invention is:
1, based on the DVS dispatching algorithm of partition operating system, it is characterized in that: comprise the following steps:
1] in the task control block (TCB) of idle task, the data item that one is pressed idle task t1 working time before partitioned record step-down is increased;
2] before judging step-down, whether idle task t1 working time meets voltage-switching conditions: when idle task working time before step-down
Time, meet voltage-switching conditions, perform frequency reducing operation, until point end of extent;
Wherein Echange is the voltage switching energy consumption of chip, and Vlarge is voltage before step-down, and Vsmall is voltage after step-down, and tchange is the voltage switching time of chip, and k is the scale factor of energy consumption and voltage relationship;
3] at the end of subregion, raising frequency operation is performed.
In above-mentioned steps 2, before step-down, idle task t1 working time meets voltage-switching conditions continuous 5 times, performs frequency reducing operation.
Above-mentioned steps 1] also comprise following link: for various chip, by various chip
value calculates, and is made into MAP table; Step 2] also comprise, query steps 1] MAP that makes table, before judging step-down, whether idle task t1 working time meets voltage-switching conditions.
Advantage of the present invention is: in the algorithm complex of the method and subregion, the quantity, execution time etc. of task is irrelevant; In subregion, the increase of task amount can not cause the increase of algorithm complex, and thus this dispatching method effectively can ensure the real-time of system.Because algorithm complex is low, the cost this algorithm being embedded into partition operating system is also very low, and based on this algorithm, function partition operating system realizing reduce power consumption is feasible.Under the development trend of airborne computer synthesization, multiple processor reduces to consume energy simultaneously and effectively extends lifetime of system, has great practical value.Solve the problems of excessive heat that airborne flush bonding processor brings due to high-speed computation, extend the processor life-span, reduce processor fault rate.
Embodiment
Basis based on the DVS dispatching algorithm of partition operating system is partition operating system, and space isolation task time between subregion, the task in subregion is based on priority scheduling.Subregion free time is to processor speed not requirement.
In subregion, adopt the method for " collection ", the free time dynamically recording of each subregion is got off, adopts certain algorithm to assess it, when the conditions are met, carry out voltage and lower switching.Before subregion execution terminates, recovery voltage value, ensures that the operation of next subregion is unaffected.
Condition is the voltage switching time be less than slack time, and the energy ezpenditure that voltage switching brings is less than the power consumption that other slack times reduce voltage " earning ".
The voltage switching time of chip is tchange, obtains by searching chip handbook;
Before step-down, voltage is that the value of Vlarge, Vlarge sets in advance with reference to chip handbook;
After step-down, voltage is Vsmall; The value of Vsmall sets in advance with reference to chip handbook;
Slack time is trelax;
The voltage switching energy consumption of chip is Echange, obtains by searching chip handbook;
The scale factor of energy consumption and voltage relationship is: power consumption/Vlarge that k, k=Vlarge are corresponding
2, the power consumption that Vlarge is corresponding can be inquired about chip handbook and be obtained;
Saving energy consumption Es is:
Es=(Vlarge
2-Vsmall
2)(trelax–2*tchange)*k-Echange;(1)
When Es is greater than 0, represent that the method by reducing supply voltage minimizing energy consumption is feasible.
Formula (1) is by becoming after conversion:
trelax=(Es+Echange)/(k*(Vlarge
2-Vsmall
2))+2*tchange;(2)
Value in formula (2) on the right of equation is all determined except Es, and therefore, the condition that voltage changes becomes
trelax>(Echange)/(k*(Vlarge
2-Vsmall
2))+2*tchange;(3)
The free time of partition operating system " collection " and the pass of slack time are:
trelax=t2–t1;(4)
T1 is the idle task working time before step-down, and t2 is the idle task working time after step-down, there is proportionate relationship between t1 and t2, t2=t1 (Vsmall/Vlarge) (5);
Formula (4), (5) are brought into (3):
Time
the critical value of subregion voltage switching, if this value can calculate at the beginning of system, as long as whether idle task t1 working time and switch threshold value can obtain voltage and can reduce compare step-down in system operation before.Calculate simple, the switching time of task can not be increased, also can not the real-time of influential system.
Below based on certain partition operating system of ARINC653, the present invention is described in further detail.
The ARINC653 application programming interfaces standard that to be American Electronic engineering association define for the modularization comprehensive avionics system of aviation civil aircraft is the important evidence designing multi partition operating system in the world.A lot of ripe operating system is had at present based on this standard.
DVS dispatching algorithm based on partition operating system is made up of following steps:
1, in task control block (TCB), the data item that one is pressed idle task t1 working time before partitioned record step-down is increased.
Task control block (TCB) is the unique data structure of logger task information in operating system, a kind of high efficiency method that free time records is exactly the working time of recording idle task, using the data item of this time as task control block (TCB), can quick obtaining and this information of amendment.
2, before judging step-down, whether idle task t1 working time meets voltage-switching conditions.
Voltage-switching conditions is: idle task t1> working time before step-down
if meet voltage-switching conditions, perform frequency reducing operation, until point end of extent;
The fast frequency fluctuation of idle task in subregion, assess the degree of stability of free time, before step-down, idle task t1 working time meets voltage-switching conditions continuous 5 times, performs frequency reducing operation.
In partition operating system, do not adopt the operation mixing down to park mode, because the switching power consumption of this operation is large, the time is long, and the overhead brought reduces the real-time of system, therefore, only adopts frequency reducing and raising frequency operation.For different processors, frequency reducing is different with the time of raising frequency, different current voltage and expection voltage needed for power consumption make in advance MAP table, voltage-switching conditions is by acquisition of tabling look-up.
3, at the end of subregion, raising frequency operation is performed.
In subregion insulation request subregion, the execution of task can not affect the operation of other subregions, and frequency reducing operation also will ensure not impact other subregions, thus, completes raising frequency operation in subregion finishing scheduling.
Claims (3)
1., based on the DVS dispatching algorithm of partition operating system, it is characterized in that: comprise the following steps:
1] in the task control block (TCB) of idle task, the data item that one is pressed idle task t1 working time before partitioned record step-down is increased;
2] before judging step-down, whether idle task t1 working time meets voltage-switching conditions: when idle task working time before step-down
Time, meet voltage-switching conditions, perform frequency reducing operation, until point end of extent;
Wherein Echange is the voltage switching energy consumption of chip, and Vlarge is voltage before step-down, and Vsmall is voltage after step-down, and tchange is the voltage switching time of chip, and k is the scale factor of energy consumption and voltage relationship;
3] at the end of subregion, raising frequency operation is performed.
2. the DVS dispatching algorithm based on partition operating system according to claim 1, is characterized in that: in step 2, and before step-down, idle task t1 working time meets voltage-switching conditions continuous 5 times, performs frequency reducing operation.
3. the DVS dispatching algorithm based on partition operating system according to claim 1 and 2, is characterized in that: step 1] also comprise following link: for various chip, by various chip
value calculates, and is made into MAP table; Step 2] also comprise, query steps 1] MAP that makes table, before judging step-down, whether idle task t1 working time meets voltage-switching conditions.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310688800.2A CN104714621B (en) | 2013-12-14 | 2013-12-14 | DVS scheduling algorithm based on partitioning operation system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310688800.2A CN104714621B (en) | 2013-12-14 | 2013-12-14 | DVS scheduling algorithm based on partitioning operation system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104714621A true CN104714621A (en) | 2015-06-17 |
CN104714621B CN104714621B (en) | 2017-05-17 |
Family
ID=53414035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310688800.2A Active CN104714621B (en) | 2013-12-14 | 2013-12-14 | DVS scheduling algorithm based on partitioning operation system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714621B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776272A (en) * | 2016-11-11 | 2017-05-31 | 西北工业大学 | Embedded system real-time performance testing method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101044445A (en) * | 2004-11-02 | 2007-09-26 | 英特尔公司 | Method and apparatus to control temperature of processor |
US7730340B2 (en) * | 2007-02-16 | 2010-06-01 | Intel Corporation | Method and apparatus for dynamic voltage and frequency scaling |
US20130007413A1 (en) * | 2011-06-10 | 2013-01-03 | Qualcomm Incorporated | System and Apparatus For Consolidated Dynamic Frequency/Voltage Control |
-
2013
- 2013-12-14 CN CN201310688800.2A patent/CN104714621B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101044445A (en) * | 2004-11-02 | 2007-09-26 | 英特尔公司 | Method and apparatus to control temperature of processor |
US7730340B2 (en) * | 2007-02-16 | 2010-06-01 | Intel Corporation | Method and apparatus for dynamic voltage and frequency scaling |
US20130007413A1 (en) * | 2011-06-10 | 2013-01-03 | Qualcomm Incorporated | System and Apparatus For Consolidated Dynamic Frequency/Voltage Control |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106776272A (en) * | 2016-11-11 | 2017-05-31 | 西北工业大学 | Embedded system real-time performance testing method |
CN106776272B (en) * | 2016-11-11 | 2019-11-05 | 西北工业大学 | Embedded system real-time performance testing method |
Also Published As
Publication number | Publication date |
---|---|
CN104714621B (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108984292B (en) | Fixed priority periodic task energy consumption optimization method for hybrid key system | |
US9800052B2 (en) | Method and apparatus for power management using distributed generation | |
US8555283B2 (en) | Temperature-aware and energy-aware scheduling in a computer system | |
WO2021073085A1 (en) | Microservice-oriented nanosecond-level power resource allocation method and system | |
CN104199736A (en) | Method for saving energy of data center under cloud environment | |
CN103399626B (en) | Towards Parallel application dispatching system and the method for the power-aware of hybrid compute environment | |
JPH09185589A (en) | Information processing system and power saving method for the system | |
CN113672383A (en) | Cloud computing resource scheduling method, system, terminal and storage medium | |
CN102135906A (en) | Power consumption control method and system orienting to embedded real-time operating system | |
CN104808770A (en) | Data center energy consumption management method and system based on dynamic frequency modulation | |
CN103488540A (en) | Energy consumption optimization resource scheduling method for heterogeneous cloud data center | |
CN103076870A (en) | Application fusing scheduling and resource dynamic configuring method of energy consumption drive in data center | |
CN104035542A (en) | Virtual machine migration method and system for balancing calculation energy consumption and refrigeration energy consumption | |
CN103810043A (en) | Energy-saving scheduling method suitable for numerical control system periodic tasks | |
CN104932281A (en) | Household micro-power-grid energy-using system and realization method for intelligent electricity consumption interaction thereof | |
Han et al. | Energy minimization for fault tolerant scheduling of periodic fixed-priority applications on multiprocessor platforms | |
CN104102532B (en) | Research-on-research stream scheduling method based on low energy consumption in a kind of isomeric group | |
CN104714621A (en) | DVS scheduling algorithm based on partitioning operation system | |
Peng et al. | Energy-efficient management of data centers using a renewable-aware scheduler | |
CN106201658A (en) | A kind of migration virtual machine destination host multiple-objection optimization system of selection | |
CN107329817B (en) | Standby standby system mixed partitioning reliability perception energy consumption optimization method | |
CN105353865A (en) | Multiprocessor based dynamic frequency adjustment method | |
CN104866375A (en) | Virtual machine migration method and apparatus | |
CN102902878B (en) | A kind of energy cost perception dispatching method | |
Thiam et al. | An energy-efficient VM migrations optimization in cloud data centers |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |