CN102508708A - Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm - Google Patents

Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm Download PDF

Info

Publication number
CN102508708A
CN102508708A CN2011103869585A CN201110386958A CN102508708A CN 102508708 A CN102508708 A CN 102508708A CN 2011103869585 A CN2011103869585 A CN 2011103869585A CN 201110386958 A CN201110386958 A CN 201110386958A CN 102508708 A CN102508708 A CN 102508708A
Authority
CN
China
Prior art keywords
task
priority
scheduling
energy
algorithm
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
Application number
CN2011103869585A
Other languages
Chinese (zh)
Other versions
CN102508708B (en
Inventor
徐成
陈晓明
曾理宁
马炳周
朱晔
李涛
张良
舒攀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan University
Original Assignee
Hunan University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan University filed Critical Hunan University
Priority to CN201110386958.5A priority Critical patent/CN102508708B/en
Publication of CN102508708A publication Critical patent/CN102508708A/en
Application granted granted Critical
Publication of CN102508708B publication Critical patent/CN102508708B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm comprises the improved genetic algorithm used for determining task priority and energy-saving schedule algorithm based on zooming priority. The flow of the heterogeneous multi-core energy-saving task schedule method includes (1), initializing population information; (2), entering a loop body and determining the task priority by the aid of genetic algorithm; (3), determining schedule sequence of tasks on a processor according to a task DAG (directed acyclic graph) and division strategies; (4), realizing dynamic voltage zooming on the basis of feasible task schedule according to relation of saving energy of the tasks and prolonging time; (5), calculating fitness of a current population and sorting the current population; and (6), updating the population by the aid of the improved genetic algorithm, determining new task priority, quitting if termination conditions are met, and continuing iteration if the termination conditions are not met.

Description

Based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm
Technical field
The present invention is mainly concerned with the design field of embedded system, refers in particular to a kind of based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm.
Background technology
For solving the power problems in the Embedded System Design, the dynamic voltage scaling technology of rising in recent years has caused the extensive concern of industry.At present, many popular low power processors are all supported DVS (dynamic voltage scaling technology) technology, and the DVS technology promptly is to reduce system power dissipation through the voltage of real time altering processor unit and frequency.Yet the system frequency reduction will cause task execution time elongated, possibly influence the real-time of system.Thereby, in the voltage scaling process, need to select suitable dispatching method, under the situation that does not influence system performance, power consumption is optimized.
Under other heterogeneous multiprocessor system of discrete voltage level associated task is carried out energy-saving distribution and be proved to be the problem that belongs to very difficult already having, need to adopt heuritic approach that it is found the solution usually.
In the prior art; What have is expressed as the voltage scaling problem integer programming problem; Wherein representational is the energy perception algorithm of dispatching many speed periodic duty and aperiodic task simultaneously, but it is too big to be based on the algorithm complex of integer programming, is difficult in the reality and is used widely.
Some researcher combines random algorithm and energy gradient technology to solve the distribution and the task scheduling problem of relaxation time sheet simultaneously; The energy-conservation otherness that algorithm but average or Random assignment sheet slack time has been ignored different task can't realize optimum energy-saving effect.
The also energy gradient of with good grounds task and execution time calculating priority level; Under priority instructs, carry out then random schedule and based on the tabulation dispatching algorithm of priority; But the dispatching algorithm based on priority has very big limitation on solution space merely, is difficult to obtain system optimal and separates.
Other have with traditional genetic algorithm with the tabulation scheduling strategy combine; The execution sequence that heredity tabulation dispatching algorithm sets the tasks is proposed; Accomplish the energy-saving distribution under the heterogeneous polynuclear environment in conjunction with relevant dynamic voltage scaling algorithm; Though but the dispatching algorithm that is based on traditional genetic algorithm has wide solution space, the local optimal searching function is not strong, thereby influences energy-saving effect.
Summary of the invention
The technical matters that the present invention will solve just is: to the technical matters that prior art exists, the present invention provides that a kind of principle is simple, working time short, have preferable energy-saving effect based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm; It is characterized in that; By being used for setting the tasks the improvement genetic algorithm of priority and form based on the energy-saving distribution algorithm of convergent-divergent priority, its flow process is: the population information initializing is carried out in (1); (2) get into loop body through the genetic algorithm priority that sets the tasks; (3) according to task DAG figure and partition strategy, dispatching sequence on processor sets the tasks; (4) save energy and the relation between time expand according to task, at the feasible enterprising action attitude voltage scaling in task scheduling basis; (5) calculate current colony fitness and ordering; (6) adopt improved genetic algorithm that population is upgraded, confirm new task priority,, otherwise continue iteration if satisfy end condition then withdraw from.
As further improvement of the present invention:
In the said step (1), convert task priority into the chromosome of tissue in certain sequence, wherein chromosomal coding adopts one dimension bit string form; Code length is that task node is counted n in the task image, the dispatching priority of the corresponding task of each gene representation, and span is [0; N-1]; The low more corresponding priority of numerical value is high more, for the identical task of priority, then sorts according to mission number.
The flow process of said step (6) is:
(6.1) colony is carried out selection operation, from current colony, select individuality, intersect and mutation operation as parent; Select the operator execution in step following:
The individual number Nsel that (6.1.1) selects according to calculation of parameter needs such as number of groups in the genetic algorithm;
(6.1.2) according to the ranking results of front ordering, select to be positioned at the anterior Nsel/2 individuals of formation;
(6.1.3) adopt random algorithm, in formation, evenly produce the Nsel/2 individuals in all the other individualities;
(6.1.4) with above-mentioned (6.1.2) and the common Nsel individuals that (6.1.3) produces intersect as selection result and make a variation the selection course end;
(6.2) carry out interlace operation: adopt 2 crossover operators;
(6.3) mutation operation: mutation operator is that certain gene in the individuality is carried out stochastic transformation in valid value range, also is certain task executions priority of randomly changing;
(6.4) colony upgrades, and execution in step is following:
(6.4.1) the scheduling energy consumption Echild of the newly-generated individuality of calculating;
(6.4.2) Echild and its former generation's scheduling energy consumption Eparent relatively divides two kinds of situation to consider: if Echild less than Eparent, then selects the chromosome of new generation; If Echild more than or equal to Eparent, then accepts new chromosome with probability P receive, the computing method following formula of Preceive:
P receive = e - ( E child - E parent ) / T T = 1 P Σ i = 1 P ( E i - E ‾ ) 2
Wherein, E is a natural constant; Ei is the pairing energy consumption of individual i;
Figure BDA0000114535900000022
on average carries out energy consumption for colony, and P is a population size;
(6.4.3) go to upgrade colony with the new chromosome of selecting;
If (6.4.4) also have new chromosome to be untreated, then forward (6.4.1) to, upgrade otherwise finish colony.
The flow process of said energy-saving distribution algorithm based on convergent-divergent priority is:
(4.1) carry out algorithm initialization;
(4.2) all tasks are composed with ceiling voltage;
(4.3) adopt priority chain list scheduling algorithm to carry out task scheduling, algorithm is according to input informations such as duty mapping, voltage level and task priorities, and the output of determinacy ground task scheduling strategy, execution time and energy consumption can not be dispatched and then returned an invalid value;
(4.4) other scheduling result of ceiling voltage level is judged, do not had scale space, return the scheduling energy if the execution time, is explained this scheduling more than or equal to closing time.
(4.5) carry out voltage convergent-divergent process repeatedly, wherein to each can convergent-divergent task operate as follows:
Reduce the laggard row major level of a voltage level chain list scheduling, if satisfy the off period, the convergent-divergent priority of calculation task Ti under current voltage then, priority is following formula:
ZoomPriority ( i , k ) = K coe · E ( T i , P j , V k ) - E ( T i , P j , V k - 1 ) t ( T i , P j , V k - 1 ) - t ( T i , P j , V k )
In the formula, and ZoomPriority (i, k): task T iConvergent-divergent priority under current voltage.K CoeBe scale-up factor, E (T i, P j, V k): task T iIn processor P jIn with electric pressure V kThe energy consumption of operation.T (T i, P j, V k): task T iIn processor P jIn with electric pressure V kThe time of operation;
(4.6) maximum so far scalable priority of record and corresponding scheduling result thereof;
(4.7) feasible optimum convergent-divergent task is reduced a voltage level, and if upgrade the current optimal energy consumption and do not find scalable task then return the current optimal power consumption values, algorithm withdraws from.
Compared with prior art; The invention has the advantages that: the present invention is through improving traditional genetic algorithm; Avoided it to be absorbed in the shortcoming of local optimum easily; Can satisfy the energy-saving distribution that uses under the solution space based on convergent-divergent priority, adopt the dynamic voltage scaling technology under the heterogeneous polynuclear environment, to realize energy-conservation task scheduling.The present invention influences the multifarious selection operator of colony and colony's update mechanism at first to the not good defective of traditional genetic algorithm local search ability through improving, and expands the solution space of genetic algorithm, and dispatching priority sets the tasks; Then, the individuality to genetic algorithm is confirmed has designed a kind of energy-saving distribution algorithm based on voltage scaling priority, carries out voltage-regulation through the task of selecting repeatedly to have best zooming effect, optimizes each individual scheduling energy consumption; At last, select optimum scheduling scheme, realize the energy-conservation task scheduling under the heterogeneous polynuclear environment through the genetic iteration operation.Experimental result shows, the synthesis energy saving rate and working times two the aspect factor, the present invention has obviously superior overall performance.
Description of drawings
Fig. 1 is a kind of synoptic diagram of DAG task image instance;
Fig. 2 is a schematic flow sheet of the present invention;
Fig. 3 is based on the schematic flow sheet of the energy-saving distribution algorithm of convergent-divergent priority among the present invention.
Embodiment
Below will combine Figure of description and specific embodiment that the present invention is explained further details.
Under the heterogeneous polynuclear environment; Task image to dependence before and after having carries out the energy consumption optimal scheduling; This problem can be described below: Task Distribution is arrived rational processor; And confirm the working voltage of this processor, and satisfy under the prerequisite of off period of all tasks, realize entire system energy consumption optimal target.Generally speaking, the scheduling strategy of on heterogeneous multi-nucleus processor, seeking energetic optimum can be divided into three phases, is respectively task division, task scheduling and dynamic voltage scaling.Task division is to each processor with Task Distribution; Task scheduling on the basis of task division, the execution sequence that sets the tasks; Dynamic voltage scaling is the execution voltage that sets the tasks.
Earlier to involved in the present invention to energy model, system model and task model describe.
For example, for CMOS (complementary metal oxide semiconductor (CMOS)) circuit, dynamic power consumption is the main source that system capacity consumes.For same processing unit, P Dyn(dynamic power consumption) and V DdRelation between (supply voltage of system) and f (operating frequency) three is as shown in the formula (1) and formula (2).
f = K ic · ( V dd - V t ) 2 V dd - - - ( 1 )
P dyn = C ef · V dd 2 · f - - - ( 2 )
Wherein, C EfThe efficient loading electric capacity of indication circuit, K IcRepresent the constant relevant, V with circuit tThe threshold voltage of the normal operation of expression system.What formula (1) was represented is the relation between supply voltage and the processor frequencies, and what formula (2) disclosed is the relation between dynamic power consumption, supply voltage, the processor frequencies three.
In addition, according to the relation between task execution time and the system energy consumption, obtain formula (3) and (4):
t = N c f - - - ( 3 )
E dyn=P dyn·t (4)
Wherein, N cThe expression task is carried out required processor operations number of times, confirms that by task attribute and corresponding processing device structure thereof t is a task execution time, E DynThe dynamic energy consumption of expression system according to formula (2), (3), (4), obtains formula (5):
E dyn = C ef · V dd 2 · N c - - - ( 5 )
Can find out from formula (5), if the processor that task is shone upon is confirmed N then cBe a constant, thereby the processor dynamic power consumption become a square proportional relation with supply voltage.If want to reduce power consumption of processing unit, then can realize through reducing system voltage.But the supply voltage of system can not reduce arbitrarily, and it can not be lower than the normal working voltage threshold values V of system tCan know by formula (1), satisfy V Dd>V tPrerequisite under, frequency f is about supply voltage V DdIncreasing function, when voltage reduced, the frequency of processor also decreased, and so just possibly cause the task off period to miss, thus the definite voltage scaling that how reasonably to carry out of needs.
This heterogeneous multiprocessor system by a series of possess the dynamic voltage scaling function but processing unit that performance there are differences (Processing Element PE) forms, and is expressed as PE={PE1, PE2 ..., PEm}, each processing unit PE j(j=1,2 ... m) have some discrete voltage mode V (j, k), k=1 wherein, 2 ... N (j), N (j) expression processing unit PE jThe different electric die pressing type that has.PE jVoltage mode V (j, power consumption under k) and frequency use respectively P (j, k) and f (j k) representes.Adopt bus mode to communicate between the different processing units, the power consumption of bus is P bThereby total dynamic energy consumption Etotal can be by representing with formula (6) in the task implementation:
E total = Σ i = 1 n Σ j = 1 m Σ k = 1 N j ( θ ( i , j , k ) × P ( i , j , k ) × t exe ( i , j , k ) ) + P b · t c - - - ( 6 )
Wherein, n, m represent number of tasks and processor unit number respectively, and (i, j k) represent task T to P iAt processing unit PE jGo up (j, the dynamic power consumption when k) carrying out, t with voltage level V Exe(i, j k) are the corresponding execution time, and θ (i, j k) are a choice function, and it has 0,1 two value, have only task T iBe divided into processing unit PE jGo up and with voltage mode V (j, when k) carrying out, (value k) just is 1 to θ, otherwise is 0 for i, j; t cBe the total call duration time between the task under the current division.
For the task-set in the dispatching algorithm, (Directed Acyclic Graph DAG) representes to adopt directed acyclic graph usually.Fig. 1 is a simple DAG task image, and each node is represented a task, and the communication between the task is represented on the limit between the node, numeral be communication cost.Have dependence between the task, for example, task T6 is only complete at its all father node T4 and T5, and result of calculation could be carried out after sending.
Here adopt the DAG task image, task-set with doublet G (T, C) expression, T={T1 wherein, T2 ..., Tn} representes n set of tasks to be carried out, C is the set of communication limit, C (i, j) expression task T iTo T jBetween communication overhead.Here the task model that adopts also has following character:
(1) periodic duty model, task-set arrived according to certain cycle, and each task-set must be accomplished in off period tdeadline,
(2) task can not be seized, and begins on the unit to carry out in case task is managed somewhere, finishes just to discharge this processing unit until it.
(3) have before and after the task of dependence when being assigned to different processing units, the communication overhead between then must the consideration task; Dependence task on the same processor is not considered call duration time.
The present invention is under the prerequisite of dividing that sets the tasks, proposition a kind of based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm, and it is by being used for setting the tasks the improvement genetic algorithm of priority and form based on the energy-saving distribution algorithm of convergent-divergent priority.As shown in Figure 2, method of the present invention is at first carried out the population information initializing, gets into loop body then.Earlier through genetic algorithm is improved, priority sets the tasks in loop body; Again according to task DAG figure and partition strategy, dispatching sequence on processor sets the tasks; Save energy and the relation between time expand according to task at last, at the feasible enterprising action attitude voltage scaling in task scheduling basis; Next, calculate current colony fitness and ordering; Adopt improved genetic algorithm that population is upgraded, confirm new task priority,, otherwise continue iteration if satisfy end condition then withdraw from.
The traditional genetic algorithm is absorbed in locally optimal solution easily when solving like challenges such as task schedulings.When the key that addresses this problem is to keep algorithm the convergence speed, also to keep the diversity of colony.The present invention improves through selection operator and the population update strategy to traditional genetic algorithm; Adding is to the selection probability of the not good enough individuality of temporary transient performance; Increase the diversity of population; Improve the overall situation and the local optimal searching ability of genetic algorithm, improved genetic algorithm is used for carrying out energy-conservation task scheduling on the heterogeneous multiprocessor system, thereby realizes energy-conservation effect.
Detailed process of the present invention is:
1. colony is carried out initialization: convert task priority into the chromosome of tissue in certain sequence.Wherein chromosomal coding adopts one dimension bit string form; Code length is that task node is counted n in the task image, the dispatching priority of the corresponding task of each gene representation, and span is [0; N-1]; The low more corresponding priority of numerical value is high more, for the identical task of priority, then sorts according to mission number.DAG figure as shown in Figure 1, it comprises 9 tasks, and a kind of possible chromosome coding is 342587164, and the priority of expression task 1 is 3, and the priority of task 2 is 4, by that analogy.
2. energy-saving distribution and ordering: at first progressively the energy-saving distribution algorithm based on convergent-divergent priority among the employing of the individuality in colony the present invention is carried out energy-saving distribution; The input informations such as task priority that this algorithm is confirmed according to genetic algorithm return individual schedule strategy and corresponding energy consumption, time etc.; Then the scheduling energy consumption of individuality is carried out ascending sort, what energy consumption was minimum is positioned at formation foremost.
3. genetic iteration:
3.1 colony is carried out selection operation, from current colony, select individuality, intersect and mutation operation as parent.
The present invention will preferentially select operator and select operator to combine at random through taking all factors into consideration good property of population and diversity, improve selecting operator.Through to selecting operator to improve, under the prerequisite that does not increase algorithm complex, can guarantee the quality and the diversity of colony simultaneously, reduce the possibility that it is absorbed in local optimum.Improve and select the operator execution in step following:
(1) the individual number Nsel that selects according to calculation of parameter needs such as number of groups in the genetic algorithm;
(2), select to be positioned at the anterior Nsel/2 individuals of formation according to the ranking results of front ordering;
(3) adopt random algorithm, in formation, evenly produce the Nsel/2 individuals in all the other individualities;
(4) the common Nsel individuals that (2), (3) step is produced is intersected as selection result and is made a variation, and selection course finishes.
3.2 carry out interlace operation: the present invention adopts 2 crossover operators, and this operator is simple to operate for the chromosome of one-dimension array coding, and can expand solution space preferably.
3.3 mutation operation: mutation operator is that certain gene in the individuality is carried out stochastic transformation in valid value range, also is certain task executions priority of randomly changing, thus the diversity of expansion solution space.
3.4. colony upgrades: for genetic algorithm, multifarious colony is beneficial to and forms wide solution space, prevents to be absorbed in local optimum, and then obtains globally optimal solution with more great probability.Colony's update mechanism of traditional genetic algorithm is directly upgraded colony with more excellent individuality in filial generation and the parent, and the energy-conservation task scheduling of this strategy often causes precocious phenomenon.To this specific background of the energy-conservation task scheduling of heterogeneous polynuclear, the present invention adopts the Metropolis acceptance criterion that colony's update mechanism in the traditional genetic algorithm is improved.
The Metropolis acceptance criterion is the importance sampling method that people such as Metropolis proposed in nineteen fifty-three, and it both can tend to the direction search of objective optimization, can accept bad separating according to certain probability again.This acceptance criteria is generally used for the simulated annealing process, and can it be extrapolated in the middle of the energy-saving distribution, and improved colony update mechanism is following:
(1) the scheduling energy consumption Echild of the newly-generated individuality of calculating;
(2) Echild and its former generation's scheduling energy consumption Eparent relatively divides two kinds of situation to consider: if Echild less than Eparent, then selects the chromosome of new generation; If Echild more than or equal to Eparent, then accepts new chromosome with probability P receive, the computing method of Preceive are suc as formula (7).
(3) go to upgrade colony with the new chromosome of selecting;
(4) if also have new chromosome to be untreated, then forward (1) to, upgrade otherwise finish colony.
Formula (7) is confirmed new chromosomal probability of acceptance Preceive according to Metropolis acceptance criterion and task energy, and computing method are as follows:
P receive = e - ( E child - E parent ) / T T = 1 P Σ i = 1 P ( E i - E ‾ ) 2 - - - ( 7 )
Wherein, E is a natural constant; Ei is the pairing energy consumption of individual i;
Figure BDA0000114535900000072
on average carries out energy consumption for colony, and P is a population size.
4. the validity of this iteration is judged; If this iteration and last iteration least energy consumption ratio less than significant indexes, explain that then filial generation has had remarkable improvement, invalid iterations uIter is put 0; And write down this iteration optimum solution, otherwise uIter is added 1.When reaching maximum iteration time ITERMAX or invalid iterations above UMAXITER, program withdraws from.
In the present embodiment; Based on the energy-saving distribution algorithm of convergent-divergent priority is inputs such as the task priority confirmed according to genetic algorithm and DAG task image, processor structure information, duty mapping; Carry out the voltage scaling energy-saving distribution, its output result be information such as the system's execution time, energy consumption under energy-saving distribution strategy and this strategy.
Before providing arthmetic statement, the Several Parameters of using in the definition algorithm earlier, as follows.
Figure BDA0000114535900000081
Referring to Fig. 3, in the present embodiment, be based on the flow process of the energy-saving distribution algorithm of convergent-divergent priority:
2.1 carry out algorithm initialization.
2.2 all tasks are composed with ceiling voltage.
2.3 (Priority List Schedule Algorithm PLSA) carries out task scheduling, and this algorithm is classical polynomial time task scheduling algorithm to adopt priority chain list scheduling algorithm.Algorithm is according to input informations such as duty mapping, voltage level and task priorities, and the output of determinacy ground task scheduling strategy, execution time and energy consumption can not be dispatched and then returned an invalid value.
2.4 other scheduling result of ceiling voltage level is judged, if, explaining this scheduling more than or equal to closing time, the execution time do not have scale space, return the scheduling energy.
2.5 carry out voltage convergent-divergent process repeatedly.Wherein to each can convergent-divergent task operate as follows:
Reduce the laggard row major level of a voltage level chain list scheduling, if satisfy the off period, the convergent-divergent priority of calculation task Ti under current voltage then.Priority is calculated suc as formula (8).
ZoomPriority ( i , k ) = K coe · E ( T i , P j , V k ) - E ( T i , P j , V k - 1 ) t ( T i , P j , V k - 1 ) - t ( T i , P j , V k ) - - - ( 8 )
In the formula (8), and ZoomPriority (i, k): task T iConvergent-divergent priority under current voltage.K CoeBe scale-up factor, E (T i, P j, V k): task T iIn processor P jIn with electric pressure V kThe energy consumption of operation.T (T i, P j, V k): task T iIn processor P jIn with electric pressure V kThe time of operation.
The fraction molecule is that voltage reduces the energy that rank is practiced thrift, and denominator is the task run time that corresponding operating increased.
2.6 write down maximum so far scalable priority and corresponding scheduling result thereof.
2.7 feasible optimum convergent-divergent task is reduced a voltage level, and if upgrade the current optimal energy consumption and do not find scalable task then return the current optimal power consumption values, algorithm withdraws from.
All find out a feasible OPTIMAL TASK based on the each loop iteration of energy-saving distribution algorithm of convergent-divergent priority and carry out convergent-divergent, till can't proceeding convergent-divergent.Through iterating, individual energy consumption is optimized.
Below only be preferred implementation of the present invention, protection scope of the present invention also not only is confined to the foregoing description, and all technical schemes that belongs under the thinking of the present invention all belong to protection scope of the present invention.Should be pointed out that for those skilled in the art some improvement and retouching not breaking away under the principle of the invention prerequisite should be regarded as protection scope of the present invention.

Claims (4)

1. one kind based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm; It is characterized in that; By being used for setting the tasks the improvement genetic algorithm of priority and form based on the energy-saving distribution algorithm of convergent-divergent priority, its flow process is: the population information initializing is carried out in (1); (2) get into loop body through the genetic algorithm priority that sets the tasks; (3) according to task DAG figure and partition strategy, dispatching sequence on processor sets the tasks; (4) save energy and the relation between time expand according to task, at the feasible enterprising action attitude voltage scaling in task scheduling basis; (5) calculate current colony fitness and ordering; (6) adopt improved genetic algorithm that population is upgraded, confirm new task priority,, otherwise continue iteration if satisfy end condition then withdraw from.
2. according to claim 1 based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm, it is characterized in that: in the said step (1), convert task priority into the chromosome of tissue in certain sequence; Wherein chromosomal coding adopts one dimension bit string form; Code length is that task node is counted n in the task image, the dispatching priority of the corresponding task of each gene representation, and span is [0; N-1]; The low more corresponding priority of numerical value is high more, for the identical task of priority, then sorts according to mission number.
3. according to claim 1 based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improves genetic algorithm, it is characterized in that the flow process of said step (6) is:
(6.1) colony is carried out selection operation, from current colony, select individuality, intersect and mutation operation as parent; Select the operator execution in step following:
The individual number Nsel that (6.1.1) selects according to calculation of parameter needs such as number of groups in the genetic algorithm;
(6.1.2) according to the ranking results of front ordering, select to be positioned at the anterior Nsel/2 individuals of formation;
(6.1.3) adopt random algorithm, in formation, evenly produce the Nsel/2 individuals in all the other individualities;
(6.1.4) with above-mentioned (6.1.2) and the common Nsel individuals that (6.1.3) produces intersect as selection result and make a variation the selection course end;
(6.2) carry out interlace operation: adopt 2 crossover operators;
(6.3) mutation operation: mutation operator is that certain gene in the individuality is carried out stochastic transformation in valid value range, also is certain task executions priority of randomly changing;
(6.4) colony upgrades, and execution in step is following:
(6.4.1) the scheduling energy consumption Echild of the newly-generated individuality of calculating;
(6.42) Echild and its former generation's scheduling energy consumption Eparent relatively divides two kinds of situation to consider: if Echild less than Eparent, then selects the chromosome of new generation; If Echild more than or equal to Eparent, then accepts new chromosome with probability P receive, the computing method following formula of Preceive:
P receive = e - ( E child - E parent ) / T T = 1 P Σ i = 1 P ( E i - E ‾ ) 2
Wherein, E is a natural constant; Ei is the pairing energy consumption of individual i;
Figure FDA0000114535890000022
on average carries out energy consumption for colony, and P is a population size;
(6.4.3) go to upgrade colony with the new chromosome of selecting;
If (6.4.4) also have new chromosome to be untreated, then forward (6.4.1) to, upgrade otherwise finish colony.
4. describedly it is characterized in that according to claim 1 or 2 or 3 that the flow process of said energy-saving distribution algorithm based on convergent-divergent priority is based on the energy-conservation method for scheduling task of heterogeneous polynuclear that improve genetic algorithm:
(4.1) carry out algorithm initialization;
(42) all tasks are composed with ceiling voltage;
(4.3) adopt priority chain list scheduling algorithm to carry out task scheduling, algorithm is according to input informations such as duty mapping, voltage level and task priorities, and the output of determinacy ground task scheduling strategy, execution time and energy consumption can not be dispatched and then returned an invalid value;
(4.4) other scheduling result of ceiling voltage level is judged, do not had scale space, return the scheduling energy if the execution time, is explained this scheduling more than or equal to closing time;
(4.5) carry out voltage convergent-divergent process repeatedly, wherein to each can convergent-divergent task operate as follows:
Reduce the laggard row major level of a voltage level chain list scheduling, if satisfy the off period, the convergent-divergent priority of calculation task Ti under current voltage then, priority is following formula:
ZoomPriority ( i , k ) = K coe · E ( T i , P j , V k ) - E ( T i , P j , V k - 1 ) t ( T i , P j , V k - 1 ) - t ( T i , P j , V k )
In the formula, and ZoomPriority (i, k): task T iConvergent-divergent priority under current voltage.K CoeBe scale-up factor, E (T i, P j, V k): task T iIn processor P jIn with electric pressure V kThe energy consumption of operation.T (T i, P j, V k): task T iIn processor P jIn with electric pressure V kThe time of operation;
(4.6) maximum so far scalable priority of record and corresponding scheduling result thereof;
(4.7) feasible optimum convergent-divergent task is reduced a voltage level, and upgrade the current optimal energy consumption, if do not find scalable task then return the current optimal power consumption values, algorithm withdraws from.
CN201110386958.5A 2011-11-30 2011-11-30 Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm Expired - Fee Related CN102508708B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110386958.5A CN102508708B (en) 2011-11-30 2011-11-30 Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110386958.5A CN102508708B (en) 2011-11-30 2011-11-30 Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm

Publications (2)

Publication Number Publication Date
CN102508708A true CN102508708A (en) 2012-06-20
CN102508708B CN102508708B (en) 2014-04-23

Family

ID=46220800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110386958.5A Expired - Fee Related CN102508708B (en) 2011-11-30 2011-11-30 Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm

Country Status (1)

Country Link
CN (1) CN102508708B (en)

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866912A (en) * 2012-10-16 2013-01-09 首都师范大学 Single-instruction-set heterogeneous multi-core system static task scheduling method
CN103235640A (en) * 2013-01-08 2013-08-07 北京邮电大学 DVFS-based energy-saving dispatching method for large-scale parallel tasks
CN103473120A (en) * 2012-12-25 2013-12-25 北京航空航天大学 Acceleration-factor-based multi-core real-time system task partitioning method
CN103473134A (en) * 2013-09-23 2013-12-25 哈尔滨工程大学 Dependent task scheduling method of heterogeneous multi-core processor
CN106155799A (en) * 2016-08-03 2016-11-23 上海理工大学 Codelet dispatching method based on genetic algorithm
CN107704319A (en) * 2017-10-18 2018-02-16 哈尔滨工程大学 Improve the CMP method for scheduling task of fireworks algorithm
CN105138404B (en) * 2015-10-09 2018-04-03 电子科技大学 Towards power consumption delay and the multi-core array method for scheduling task of thermal balance
CN108153592A (en) * 2017-12-22 2018-06-12 北京工业大学 A kind of NoC mapping methods based on improved adaptive GA-IAGA
CN109117258A (en) * 2018-07-24 2019-01-01 合肥工业大学 A kind of multiple nucleus system Static task scheduling method that task based access control is mobile
CN109857532A (en) * 2019-01-22 2019-06-07 杭州电子科技大学 DAG method for scheduling task based on the search of Monte Carlo tree
CN109871270A (en) * 2019-01-22 2019-06-11 深圳大学 Scheduling scheme generation method and device
CN110221838A (en) * 2019-05-28 2019-09-10 中国科学院高能物理研究所 A method of the optimization of program Automated Design is carried out based on genetic algorithm and directed acyclic graph
CN110543148A (en) * 2018-05-28 2019-12-06 华为技术有限公司 task scheduling method and device
CN110908782A (en) * 2019-11-01 2020-03-24 湖北省楚天云有限公司 Genetic algorithm optimization-based packaging type distributed job task scheduling method and system
CN110989538A (en) * 2019-12-23 2020-04-10 北京化工大学 Closed-loop scheduling optimization method for complex production process
CN111061569A (en) * 2019-12-18 2020-04-24 北京工业大学 Heterogeneous multi-core processor task allocation and scheduling strategy based on genetic algorithm
CN111083010A (en) * 2019-12-17 2020-04-28 深圳市网心科技有限公司 Speed measurement method and device and computer readable storage medium
CN111210157A (en) * 2020-01-13 2020-05-29 上海威派格智慧水务股份有限公司 Dynamic storage adjusting method for water tank
CN111461525A (en) * 2020-03-30 2020-07-28 华至云链科技(苏州)有限公司 Parallel computing production scheduling system and method based on dynamic load
CN111857988A (en) * 2020-06-19 2020-10-30 北京航空航天大学 Container task scheduling method and device based on task management system
CN112084033A (en) * 2020-09-17 2020-12-15 南方电网数字电网研究院有限公司 Task allocation method and device of multi-core system, computer equipment and storage medium
CN113031522A (en) * 2019-12-25 2021-06-25 沈阳高精数控智能技术股份有限公司 Low-power-consumption scheduling method suitable for periodically dependent tasks of open type numerical control system
CN113377542A (en) * 2021-06-24 2021-09-10 东南大学 Network node task mapping method of multi-core embedded system
CN113485819A (en) * 2021-08-03 2021-10-08 北京八分量信息科技有限公司 Heterogeneous task preprocessing method and device and related products
CN113656073A (en) * 2021-08-18 2021-11-16 哈尔滨工业大学 Parallel scheduling mode recombination method based on large mode set, computer and storage medium
CN115712507A (en) * 2022-11-29 2023-02-24 上海船舶运输科学研究所有限公司 Method for calculating task priority of ship gateway
CN116430738A (en) * 2023-06-14 2023-07-14 北京理工大学 Self-adaptive dynamic scheduling method of hybrid key system
CN117573307A (en) * 2023-11-13 2024-02-20 纬创软件(武汉)有限公司 Method and system for overall management of multiple tasks in cloud environment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387952A (en) * 2008-09-24 2009-03-18 上海大学 Single-chip multi-processor task scheduling and managing method
CN102193826A (en) * 2011-05-24 2011-09-21 哈尔滨工程大学 Method for high-efficiency task scheduling of heterogeneous multi-core processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101387952A (en) * 2008-09-24 2009-03-18 上海大学 Single-chip multi-processor task scheduling and managing method
CN102193826A (en) * 2011-05-24 2011-09-21 哈尔滨工程大学 Method for high-efficiency task scheduling of heterogeneous multi-core processor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张冬松等: "多核系统中基于动态电压频率调节的实时节能调度研究", 《计算机工程与科学》 *
彭蔓蔓: "异构多核处理器的任务分配及能耗的研究", 《计算机应用研究》 *

Cited By (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866912A (en) * 2012-10-16 2013-01-09 首都师范大学 Single-instruction-set heterogeneous multi-core system static task scheduling method
CN103473120A (en) * 2012-12-25 2013-12-25 北京航空航天大学 Acceleration-factor-based multi-core real-time system task partitioning method
CN103235640A (en) * 2013-01-08 2013-08-07 北京邮电大学 DVFS-based energy-saving dispatching method for large-scale parallel tasks
CN103235640B (en) * 2013-01-08 2016-01-13 北京邮电大学 A kind of large-scale parallel task energy-saving scheduling method based on DVFS technology
CN103473134A (en) * 2013-09-23 2013-12-25 哈尔滨工程大学 Dependent task scheduling method of heterogeneous multi-core processor
CN103473134B (en) * 2013-09-23 2016-08-17 哈尔滨工程大学 A kind of dependence task dispatching method of heterogeneous multi-nucleus processor
CN105138404B (en) * 2015-10-09 2018-04-03 电子科技大学 Towards power consumption delay and the multi-core array method for scheduling task of thermal balance
CN106155799A (en) * 2016-08-03 2016-11-23 上海理工大学 Codelet dispatching method based on genetic algorithm
CN106155799B (en) * 2016-08-03 2019-07-23 上海理工大学 Codelet dispatching method based on genetic algorithm
CN107704319A (en) * 2017-10-18 2018-02-16 哈尔滨工程大学 Improve the CMP method for scheduling task of fireworks algorithm
CN108153592A (en) * 2017-12-22 2018-06-12 北京工业大学 A kind of NoC mapping methods based on improved adaptive GA-IAGA
CN108153592B (en) * 2017-12-22 2021-09-17 北京工业大学 NoC mapping method based on improved genetic algorithm
CN110543148A (en) * 2018-05-28 2019-12-06 华为技术有限公司 task scheduling method and device
CN109117258A (en) * 2018-07-24 2019-01-01 合肥工业大学 A kind of multiple nucleus system Static task scheduling method that task based access control is mobile
CN109857532A (en) * 2019-01-22 2019-06-07 杭州电子科技大学 DAG method for scheduling task based on the search of Monte Carlo tree
CN109871270A (en) * 2019-01-22 2019-06-11 深圳大学 Scheduling scheme generation method and device
CN109871270B (en) * 2019-01-22 2021-04-02 深圳大学 Scheduling scheme generation method and device
CN109857532B (en) * 2019-01-22 2020-11-17 杭州电子科技大学 DAG task scheduling method based on Monte Carlo tree search
CN110221838B (en) * 2019-05-28 2020-10-27 中国科学院高能物理研究所 Method for carrying out automatic program design optimization based on genetic algorithm and directed acyclic graph
CN110221838A (en) * 2019-05-28 2019-09-10 中国科学院高能物理研究所 A method of the optimization of program Automated Design is carried out based on genetic algorithm and directed acyclic graph
CN110908782A (en) * 2019-11-01 2020-03-24 湖北省楚天云有限公司 Genetic algorithm optimization-based packaging type distributed job task scheduling method and system
CN111083010A (en) * 2019-12-17 2020-04-28 深圳市网心科技有限公司 Speed measurement method and device and computer readable storage medium
CN111061569B (en) * 2019-12-18 2023-05-09 北京工业大学 Heterogeneous multi-core processor task allocation and scheduling strategy based on genetic algorithm
CN111061569A (en) * 2019-12-18 2020-04-24 北京工业大学 Heterogeneous multi-core processor task allocation and scheduling strategy based on genetic algorithm
CN110989538B (en) * 2019-12-23 2021-06-08 北京化工大学 Closed-loop scheduling optimization method for complex production process
CN110989538A (en) * 2019-12-23 2020-04-10 北京化工大学 Closed-loop scheduling optimization method for complex production process
CN113031522A (en) * 2019-12-25 2021-06-25 沈阳高精数控智能技术股份有限公司 Low-power-consumption scheduling method suitable for periodically dependent tasks of open type numerical control system
CN111210157B (en) * 2020-01-13 2023-05-12 上海威派格智慧水务股份有限公司 Dynamic water tank regulating and accumulating method
CN111210157A (en) * 2020-01-13 2020-05-29 上海威派格智慧水务股份有限公司 Dynamic storage adjusting method for water tank
CN111461525A (en) * 2020-03-30 2020-07-28 华至云链科技(苏州)有限公司 Parallel computing production scheduling system and method based on dynamic load
CN111461525B (en) * 2020-03-30 2023-12-29 华至云链科技(苏州)有限公司 Parallel computing production scheduling system and method based on dynamic load
CN111857988A (en) * 2020-06-19 2020-10-30 北京航空航天大学 Container task scheduling method and device based on task management system
CN111857988B (en) * 2020-06-19 2022-11-18 北京航空航天大学 Container task scheduling method and device based on task management system
CN112084033A (en) * 2020-09-17 2020-12-15 南方电网数字电网研究院有限公司 Task allocation method and device of multi-core system, computer equipment and storage medium
CN113377542A (en) * 2021-06-24 2021-09-10 东南大学 Network node task mapping method of multi-core embedded system
CN113377542B (en) * 2021-06-24 2024-03-26 东南大学 Network node task mapping method of multi-core embedded system
CN113485819A (en) * 2021-08-03 2021-10-08 北京八分量信息科技有限公司 Heterogeneous task preprocessing method and device and related products
CN113656073A (en) * 2021-08-18 2021-11-16 哈尔滨工业大学 Parallel scheduling mode recombination method based on large mode set, computer and storage medium
CN115712507B (en) * 2022-11-29 2023-11-14 上海船舶运输科学研究所有限公司 Method for calculating task priority of ship gateway
CN115712507A (en) * 2022-11-29 2023-02-24 上海船舶运输科学研究所有限公司 Method for calculating task priority of ship gateway
CN116430738A (en) * 2023-06-14 2023-07-14 北京理工大学 Self-adaptive dynamic scheduling method of hybrid key system
CN116430738B (en) * 2023-06-14 2023-08-15 北京理工大学 Self-adaptive dynamic scheduling method of hybrid key system
CN117573307A (en) * 2023-11-13 2024-02-20 纬创软件(武汉)有限公司 Method and system for overall management of multiple tasks in cloud environment
CN117573307B (en) * 2023-11-13 2024-04-09 纬创软件(武汉)有限公司 Method and system for overall management of multiple tasks in cloud environment

Also Published As

Publication number Publication date
CN102508708B (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN102508708A (en) Heterogeneous multi-core energy-saving task schedule method based on improved genetic algorithm
Yuan et al. An integrated search heuristic for large-scale flexible job shop scheduling problems
CN111459628B (en) Spark platform task scheduling method based on improved quantum ant colony algorithm
CN102866912A (en) Single-instruction-set heterogeneous multi-core system static task scheduling method
CN101593132B (en) Multi-core parallel simulated annealing method based on thread constructing module
CN110351679B (en) Wireless sensor network resource allocation method based on improved simulated annealing
CN105512954A (en) Integrated search method for large-scale flexible job shop scheduling
Wu et al. A deadline-aware estimation of distribution algorithm for resource scheduling in fog computing systems
CN105117326A (en) Test case set generation method based on combination chaotic sequence
Wang et al. Parallel k-pso based on mapreduce
CN103500123A (en) Parallel computation dispatch method in heterogeneous environment
CN103455131B (en) A kind of based on method for scheduling task energy consumption minimized in the embedded system of probability
CN109582985A (en) A kind of NoC mapping method of improved genetic Annealing
Song et al. An efficient scheduling algorithm for energy consumption constrained parallel applications on heterogeneous distributed systems
CN101834320B (en) Method and device for scheduling batteries
CN107220463B (en) A kind of mixing polarity XNOR/OR circuit area optimization method
CN109582457A (en) Network-on-chip heterogeneous multi-core system task schedule and mapping
CN108733491B (en) Thermal sensing and low-energy-consumption task scheduling method for heterogeneous MPSoC system
CN116985146B (en) Robot parallel disassembly planning method for retired electronic products
Sheng et al. Research on the influence maximization based on community detection
CN110851257A (en) Genetic and differential hybrid evolution cloud computing task scheduling algorithm based on early-stage catastrophe strategy
Shenassa et al. A novel intelligent method for task scheduling in multiprocessor systems using genetic algorithm
Zhang et al. Task scheduling of cloud computing based on Improved CHC algorithm
CN104573846A (en) Polymorphic job shop layout optimization method based on CA-PSO (Cellular Automata-Particle Swarm Optimization) hybrid optimization algorithm
Khanli et al. LGR: the new genetic based scheduler for grid computing systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140423

Termination date: 20141130

EXPY Termination of patent right or utility model