MULTI-PROCESSOR CONTROL DEVICE AND METHOD

A multi-processor control device according to an example of the invention comprises a cooperative control unit which determines priorities of requests issued from processors to a shared resource which are used to suppress a total power consumption of the processors within a range in which performance constraints of programs executed by the processors are satisfied, and determines a frequency of each of the processors so as to suppress the total power consumption within the range in which the performance constraint of the each program is satisfied, a first control unit which issues requests from the processors to the shared resource in accordance with priorities determined by the cooperative control unit, and a second control unit which controls the frequency of each of the processors in accordance with the frequency determined by the cooperative control unit.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims the benefit of priority from prior Japanese Patent Application No. 2007-133131, filed May 18, 2007, the entire contents of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a multi-processor control device and method which control a plurality of processors.

2. Description of the Related Art

As a power consumption reduction technique for a program having a constraint, there has been proposed a technique of controlling a frequency/power supply voltage so as to execute the program by using as low frequency/power supply voltage as possible within the range in which the constraint is satisfied.

    • a conventional technique determines a frequency/power supply voltage on the basis of the profile information of a program.

According to another conventional technique, when the constraint of a program is not satisfied, control is performed by using information obtained at the time of execution of the program to increase the frequency/power supply voltage so as to satisfy the constraint. In contrast to this, when there is a margin in terms of performance, a frequency/power supply voltage is determined by feedback control such as decreasing the frequency/power supply voltage.

A reference 1 (Masaaki Kondo and Hiroshi Nakamura, “Proposal of Dynamic Power Supply Voltage/Frequency Control Technique for CMP”, IPSJ SIG Technical Reports, Vol. 2005, No. 56, published May 31, 2005, p. 25, Information Processing Society of Japan) has proposed a technique of improving fairness and achieving an improvement in performance and a reduction in power consumption or energy consumption by controlling the operating frequency and power supply voltage of each processor, instead of dividing a cache, using a dynamic power supply voltage/frequency control (DVFS: Dynamic Voltage/Frequency Scaling) technique.

In general, a CMP (Chip Multi Processor) includes a resource shared by a plurality of processor cores, e.g., a memory bus.

For this reason, the performance of a program executed by each processor core greatly depends on the properties of programs simultaneously executed by other processor cores. When a resource contention occurs, the performance of a program may greatly deteriorate.

The above conventional technique cope with this problem by only increasing the frequency/power supply voltage for a program whose performance has deteriorated, but do not perform any control in consideration of the influences of the resource contention with other programs. This may degrade energy efficiency.

BRIEF SUMMARY OF THE INVENTION

A multi-processor control device according to the first example of this invention comprises a cooperative control unit which determines priorities of requests issued from a plurality of processors to a shared resource of the plurality of processors which are used to suppress at least one of a total power consumption and a total energy consumption of the plurality of processors within a range in which performance constraints of programs executed by the plurality of processors are satisfied, and determines at least one of a frequency and a power supply voltage of each of the plurality of processors so as to suppress the at least one of the total power consumption and the total energy consumption within the range in which the performance constraint of the each program is satisfied, a first control unit which issues requests from the plurality of processors to the shared resource in accordance with priorities determined by the cooperative control unit, and a second control unit which controls at least one of the frequency and the power supply voltage of each of the plurality of processors in accordance with the at least one of the frequency and the power supply voltage determined by the cooperative control unit.

A multi-processor control method according to the second example of this invention comprises executing a control algorithm which determines priorities of requests issued from a plurality of processors to a shared resource of the plurality of processors which are used to suppress at least one of a total power consumption and a total energy consumption of the plurality of processors within a range in which performance constraints of programs executed by the plurality of processors are satisfied, and at least one of a frequency and a power supply voltage of each of the plurality of processors, and issuing requests from the plurality of processors to the shared resource in accordance with priorities determined by the control algorithm and controlling the at least one of the frequency and the power supply voltage of each of the plurality of processors in accordance with the at least one of the frequency and the power supply voltage determined by the control algorithm.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING

FIG. 1 is a block diagram showing an example of the arrangement of a multi-processor control device according to the first embodiment of a present invention;

FIG. 2 is a graph showing an example of the relationship between a power consumption of a processor core PU0, a power consumption of a processor core PU1, a total power consumption of processor cores PU0 and PU1, and priorities of requests in a state in which performance constraints of programs are satisfied;

FIG. 3 is a block diagram showing an example of a request queue;

FIG. 4 is a view showing an example of a control technique of adjusting a frequency/power supply voltage at each frequency/power supply voltage adjustment interval and adjusting a priority at each priority adjustment interval;

FIG. 5 is a block diagram showing an example of the relationship between a multi-processor and a shared resource according to the third embodiment of the present invention;

FIG. 6 is a timing chart showing an example of the relationship between an operation state and stall state of a processor core;

FIG. 7 is a timing chart showing an example of temporal changes of program execution states from a start of execution to an end of execution at different frequencies;

FIG. 8 is a timing chart showing an example of the relationship between a latency constraint and the time from the start of execution of a program to the end of execution of the program;

FIG. 9 is a view showing an example of the relationship between an upper limit of an operation time and a total stall time of a processor core;

FIG. 10 is a view showing an example of a state in which priority is given to a processor core PU0 over a processor core PU1;

FIG. 11 is a view showing an example of a state in which priority is given to the processor core PU1 over the processor core PU0;

FIG. 12 is a table showing an example of a result obtained by linearly approximating the relationship between a voltage and frequency of a commercially available processor; and

FIG. 13 is a graph showing an example of evaluation made when the multi-processor control device according to the first embodiment is used and when a multi-processor control device according to the second embodiment is used.

DETAILED DESCRIPTION OF THE INVENTION

Embodiments of the present invention will be described below with reference to the views of the accompanying drawing. Note that the same reference numerals denote parts having similar functions in the following views of the drawing, and a repetitive description will be omitted.

First Embodiment

This embodiment exemplifies a device which controls a chip multi processor (CMP) having a plurality of processor cores mounted on one chip. However, a control target of this control device is not limited to a CMP. For example, a multi-processor system comprising a plurality of chips can be a control target.

This embodiment exemplifies a multi-processor control device which suppresses at least one of power consumption and energy consumption by modeling an influence of shared resource contention on performance in consideration of the influence of the shared resource contention between programs executed by the respective processor cores. The following description exemplifies a case in which power consumption is suppressed. It is, however, possible to suppress energy consumption by using a similar control technique.

This embodiment can improve a power consumption suppressing effect by adjusting the influence of shared resource contention on performance by priority control. For this purpose, a multi-processor according to this embodiment controls priority and a frequency/power supply voltage so as to minimize the overall power consumption by cooperatively performing priority control and frequency/power supply voltage control.

FIG. 1 is a block diagram showing an example of the arrangement of a multi-processor control device according to this embodiment.

A multi-processor 1 has a plurality of processor cores PU0 to PUn mounted on one chip. The programs to be executed by the processor cores PU0 to PUn have performance constraints (e.g., a latency (real time) constraint, i.e., that the upper limit of an execution time is set in advance, e.g., that a given program must be complete within a specific number of seconds).

The processor cores PU0 to PUn and a main memory 2 are connected to each other via a transfer management unit 3 and a memory bus 4. The transfer management unit 3 comprises an MMU (Memory Management Unit) 3a, a bus controller 3b, and an access queue 3c.

In this embodiment, the multi-processor control device for suppressing power consumption in the multi-processor 1 comprises the access queue 3c, an FVP cooperative control unit 5, a priority control unit 6, and a frequency/power supply voltage control unit 7.

The multi-processor control device can individually control the frequencies and power supply voltages of the processor cores PU0 to PUn of the multi-processor 1. The multi-processor control device can discriminate which one of the processor cores PU0 to PUn has issued an access request to the main memory 2, and the access request is controlled in accordance with a priority corresponding to the processor core which has issued the access request. Assume that in this embodiment, priorities correspond to the ratios at which wait times are allocated to the processor cores PU0 to PUn when access requests from the processor cores PU0 to PUn contend with each other.

The multi-processor control device controls the frequencies/power supply voltages of the processor cores PU0 to PUn in cooperation with the priorities of requests.

The processor cores PU0 to PUn are connected to the memory bus 4 and the main memory 2 as shared resources via the transfer management unit 3.

In order to execute programs (applications or processes) while satisfying performance constraints and suppress the overall power consumption, the FVP cooperative control unit 5 executes a cooperative control between the priorities of requests from the processor cores PU0 to PUn and frequencies/power supply voltages in cooperation with each other and supplies control signals to the priority control unit 6 and the frequency/power supply voltage control unit 7 on the basis of the contention state of the memory bus 4 and information of the programs operating in the processor cores PU0 to PUn. The FVP cooperative control unit 5 decreases at least one of the frequency and power supply voltage of a processor core, whose priority of a request has been increased, as compared with a case in which priority control is not performed. Increasing the priority can decrease the frequency and power supply voltage as compared with a case in which priority control is not performed. This can achieve a reduction in power consumption.

The priority control unit 6 controls the priority of an access request to the main memory 2 on the basis of a control signal received from the FVP cooperative control unit 5.

The frequency/power supply voltage control unit 7 controls at least one of the frequency and power supply voltage of each of the processor cores PU0 to PUn (only the frequency, only the power supply voltage, or both the frequency and the power supply voltage) on the basis of a control signal received from the FVP cooperative control unit 5.

A control method performed by the multi-processor control device according to this embodiment will be described below.

FIG. 2 is a graph showing an example of the relationship between the power consumption of the processor core PU0, the power consumption of the processor core PU1, the total power consumption of the processor cores PU0 and PU1, and the priorities of requests in a state in which the performance constraints of programs are satisfied.

Referring to FIG. 2, priorities represent the allocation ratios of wait times between requests from the processor cores PU0 and PU1.

A priority of 0 indicates a level at which a request from the processor core PU0 takes precedence over all requests from the processor core PU1.

A priority of 0.5 indicates a level at which the wait times allocated to requests from the processor cores PU0 and PU1 are the same.

A priority of 1 indicates a level at which a request from the processor core PU1 takes precedence over all requests from the processor core PU0.

As the priority approaches 0, a higher priority is given to a request from the processor core PU0 than to a request from the processor core PU1.

In contrast, as the priority approaches 1, a higher priority is given to a request from the processor core PU1 than to a request from the processor core PU0.

If, for example, the priority of the processor core PU0 is higher than that of the processor core PU1, a request from the processor core PU0 to a shared resource takes precedence over a request from the processor core PU1. This makes it possible to execute a program in the processor core PU0 more efficiently than a program in the processor core PU1. Accordingly, the frequency/power supply voltage of the processor core PU0 can be decreased within the range in which the performance constraint is satisfied. If, therefore, the priority of the processor core PU0 is high, the power consumption of the processor core PU0 can be reduced.

If the priority of the processor core PU1 is lower than that of the processor core PU0, a request from the processor core PU0 to a shared request takes precedence over a request from the processor core PU1. For this reason, it is difficult to execute a program in the processor core PU1 more efficiently than a program in the processor core PU0. Accordingly, the frequency/power supply voltage of the processor core PU1 needs to be increased to satisfy the performance constraint. If, therefore, the priority of the processor core PU1 is low, the power consumption of the processor core PU1 increases.

Referring to FIG. 2, a program executed by the processor core PU1 is higher in emergence than a program executed by the processor core PU0, and the processor core PU1 requires a higher processing speed than the processor core PU0 and consumes large power. For this reason, the rate of change in the relationship between the priority and power consumption of the processor core PU1 is higher than that of the processor core PU0.

It is obvious from FIG. 2 that setting the priority of the processor core PU0 to be higher than that of the processor core PU1 can suppress the total power consumption.

In this embodiment, when access requests from the processor cores PU0 to PUn to a shared resource contend with each other, higher priorities are given to programs with higher emergences. This shortens the duration of the wait state of a processor core, for the shared resource, which is to execute a program with a higher priority, and hence can decrease the speed (frequency/power supply voltage) of the processor core. Note that a frequency (=processing speed) is almost proportional to a power supply voltage. The power consumption is approximately proportional to the square of a power supply voltage.

In the state shown in FIG. 2, the total power consumption of the processor cores PU0 and PU1 can be suppressed by decreasing the priority of the processor core PU0 on the lower power consumption side, and increasing the priority of the processor core PU1 on the higher power consumption side, while suppressing the frequency/power supply voltage within the range in which the performance constraints of programs in the processor cores PU0 and PU1 are satisfied.

The priority with which the total power consumption is minimum is used as the “optimal priority” for control. The priority control unit 6 controls the actual issuance of requests so as to set this optimal priority.

A concrete example of a control algorithm which controls priorities and frequencies/power supply voltages will be described below. Note that this control algorithm is an example, and another technique can be used.

As shown in, for example, FIG. 3, when there is a request queue 3c which holds memory requests from the processor cores PU0 to PUn, the priorities of access to a shared resource can be controlled by, for example, a technique of permitting the request queue 3c issue a request which have been issued from a processor core with a high priority with precedence over a given number of requests which have been issued from other processor cores with lower priorities.

The influences of shared resource contentions on the performances of the processor cores PU0 to PUn can be formulated by constructing a performance prediction model using, as parameters, performance constrains on the respective programs (e.g., latency constraints), the numbers of times of access from the respective programs to the shared resource, the numbers of times of instruction execution of the respective programs, the performance of the shared resource (e.g., a wait time based on shared resource access at the time of independent execution), and the like. This makes it possible to obtain a priority for the shared resource with which the overall power consumption of the multi-processor 1 is minimized.

Priorities and the frequencies/power supply voltages of the processor cores PU0 to PUn can be controlled by, for example, a technique using time intervals.

FIG. 4 is a view showing an example of a control technique of adjusting a frequency/power supply voltage at each frequency/power supply voltage adjustment interval (DVFS_interval) and adjusting a priority at each priority adjustment interval.

The FVP cooperative control unit 5 checks the performances of programs in the processor cores PU0 to PUn at each frequency/power supply voltage adjustment interval to monitor whether the performance required to satisfy a performance constraint is achieved. The FVP cooperative control unit 5 then executes feedback control, e.g., increasing at least one of the frequency and the power supply voltage of a processor core which is to execute a program for which it is determined that the performance has not been achieved.

The FVP cooperative control unit 5 checks the progress state of a program at each frequency/power supply voltage adjustment interval. If the program seems to be complete earlier than the time based on the performance constraint, the FVP cooperative control unit 5 decreases at least one of the frequency and the power supply voltage (by, for example, −1). If the progress state indicates that the program seems not to be complete within the time based on the performance constraint, the FVP cooperative control unit 5 increases at least one of the frequency and the power supply voltage (by, for example, +1). Once the frequency/power supply voltage is changed, the frequency/power supply voltage is not changed in Silent_interval.

The FVP cooperative control unit 5 monitors the actual state of contention between requests from the processor cores PU0 to PUn to the shared resource at priority adjustment intervals, and executes feedback control on priorities so as to set priorities determined as optimal.

That is, the FVP cooperative control unit 5 compares the optimal priorities (optimal wait time allocations) determined from FIG. 2 and actual wait time allocations, and performs control to set priorities that make the actual wait time allocations the optimal priorities.

In general, when a program with a performance constraint to be satisfied at minimum is to be executed, power consumption can be suppressed by executing the program by using a low frequency/power supply voltage within the range in which the performance constraint is satisfied.

In a conventional multi-processor, when access contention for a shared resource such as a memory bus occurs, the performance of the program deteriorates. In this case, in order to compensate for this performance deterioration, it is necessary to operate the processor core at a high frequency/power supply voltage, resulting in an increase in power consumption.

In contrast to this, in this embodiment, the FVP cooperative control unit 5 properly controls the usage rate of a shared resource by priority control in accordance with the states of programs executed by the processor cores PU0 to PUn, and also adjusts the frequencies/power supply voltages of the processor cores PU0 to PUn in accordance with the priority control. With this operation, the overall power consumption of the multi-processor 1 is suppressed while the performance constraints of the programs are satisfied.

The effects obtained by using the above multi-processor control device will be described below.

In this embodiment, even when a contention of access requests to a shared resource occurs, a deterioration in the performance of a processor core with high power consumption can be reduced by setting the priority of an access request from the processor core with high power consumption to the shared resource to be higher than the priority of an access request from a processor core with low power consumption to the shared resource. This makes it possible to suppress the overall power consumption of the multi-processor 1.

This embodiment can further reduce the overall power consumption of the multi-processor 1 as compared with the case in which frequency/power supply voltage control and priority control are independently performed.

The multi-processor 1 is expected as an architecture which can achieve both a reduction in power consumption and an increase in performance, and is regarded as the mainstream among high-performance processors and embedded processors. The technique significance of the control according to this embodiment is very high, which can further promote a reduction in the power consumption of the multi-processor 1 while satisfying the performance constraints of programs. This technique has a high impact from the viewpoint of business.

Second Embodiment

This embodiment exemplifies a control algorithm which controls priorities and frequencies/power supply voltages by a scheme different from that in the first embodiment.

According to a performance prediction model, when the frequencies of processor cores PU0 to PUn become equal to each other, the overall power consumption is minimized.

In this embodiment, therefore, an FVP cooperative control unit 5 controls priorities such that all the frequencies of the processor cores PU0 to PUn include within a target range (more preferably become equal to each other).

Consider, for example, the two processor cores PU0 and PU1. If the frequency of the processor core PU0 is higher than that of the processor core PU1, the FVP cooperative control unit 5 increases the priority of the processor core PU0.

In contrast, if the frequency of the processor core PU1 is higher than that of the processor core PU0, the FVP cooperative control unit 5 increases the priority of the processor core PU1.

Using such a control algorithm can suppress the overall power consumption of the multi-processor 1 as in the first embodiment.

Third Embodiment

This embodiment exemplifies the performance prediction model in the first and second embodiments.

For simplification, a multi-processor (chip multi processor) 1 on which two processor cores PU0 and PU1 are mounted as shown in FIG. 5 will be described.

The processor cores PU0 and PU1 respectively incorporate caches L1 and L2, and share a memory bus 4 and a main memory 2. The processor cores PU0 and PU1 respectively execute independent programs T0 and T1. The processor cores PU0 and PU1 have latency constraints as performance constraints.

Access contention for the memory bus 4 will be described below.

As shown in FIG. 6, a processor core which is executing a program takes two states, i.e., a state (operation state) in which an instruction is being executed and a state (stall state) in which access to the cache L2 fails, and the processor core is stalled to wait for the corresponding data.

When the frequency/power supply voltage of a processor core is changed, the operation time required to complete the execution of an instruction changes, as shown in FIG. 7. Since the frequency/power supply voltage of the shared memory bus 4 is constant, the stall time is invariable.

FIG. 8 is a Liming chart showing the relationship between a latency constraint and the time from the start of execution of a program to the end of execution of the program. When a program having a latency constraint is to be executed, the time from the start of execution of the program to the end of execution of the program needs to fall within the latency constraint.

As shown in FIG. 9, a frequency/power supply voltage which is selected such that the operation time from the start of execution of a program to the end of execution of the program becomes equal to (latency constraint—stall time) is the lowest frequency/power supply voltage (which minimizes power consumption) within the range in which the performance constraint is satisfied.

Since the performance of a processor core at the time of operation is proportional to a frequency, the following expression holds for frequency selection:

frequency number of instructions of program ( latency constraint - stall time ) ( 1 )

Let Li be the latency constraint of a program Ti, mi be the number of times of cache errors against the cache L2 during the execution of the program Ti (=the number of times of access to a shared resource), si be the length of the stall time during the execution of the program Ti (=the wait time due to shared resource access at the time of independent execution of the program), lB be the time required for the shared resource to transfer data corresponding to one cache error against the cache L2 (=the shared resource occupied time per cache error against the cache L2), and Ii be the number of times of execution of the program Ti.

A case in which a processor core PUi operates independently, i.e., there is no access contention will be described first. In this case, the effective operation time ti of the processor core PUi is given by


ti=Li−si  (2)

That is, it suffices to set the frequency/power supply voltage of the processor core PUi so as to process all the instructions of the program Ti in a time ti.

A frequency fi to be set from the processor core PUi is represented by

f i = c I i t i ( 3 )

where c is a constant.

Letting Vi be the power supply voltage required to operate the processor core PUi at the frequency fi, an energy ei to be consumed when the processor core PUi executes one instruction is given by

e i = k V i 2 ( 4 )

where k is a constant.

An average power consumption Pi (energy/time) of the processor core PUi can therefore be obtained by

P i = I i L i e i = k I i V i 2 L i ( 5 )

A case in which the processor cores PU0 and PU1 are simultaneously operated will be described next.

Assume that a cache error against the cache L2 has occurred on the processor core PU0. In this case, when the processor core PU0 tries to acquire data from the main memory, the probability at which the shared resource is occupied by the processor core PU1 (the probability at which a conflict occurs) is given by

P 0 = m 1 l B L 1 ( 6 )

Assume that the temporal distribution of use of the shared resource by the processor core PU1 is uniform. In this case, the expected value of the time by which transfer by the processor core PU0 is waited at the occurrence of a conflict is represented by

E w = 1 2 l B ( 7 )

Therefore, the expected value of the stall time of the processor core PU0 per cache error against the cache L2 by the processor core PU0, which increases due to contention with the processor core PU1 is represented by

P 0 E w = m 1 l B 2 2 L 1 ( 8 )

In this case, the effective operation time of the processor core PU0 changes from t0 to t0′ represented by

t 0 = t 0 - m 0 m 1 l B 2 2 L 1 . ( 9 )

A frequency f0′ and a power supply voltage V0′ are determined by the time t0′ as in the case of independent operation.

For the processor core PU1, t1′, f0′, and V0′ are determined in the same manner as described above. Therefore, a power consumption Pi′ of each processor core in the presence of a contention is given by

P i = I i L i e i = kI i V i ′2 L i ( 10 )

Changes in power with the execution of priority control on a shared resource will be described next.

The total stall time which increases due to a contention when the processor cores PU0 and PU1 are simultaneously operated is represented as a value per unit time by

l total = m 0 L 0 m 1 l B 2 2 L 1 + m 1 L 1 m 0 l B 2 2 L 0 = m 0 m 1 l B 2 L 0 L 1 ( 11 )

In this case, ltotal does not change even when priority control is performed.

As will be described below, however, the ratio of increases in stall time (performance penalty) due to contention between the respective processor cores can be changed.

Assume that the two processor cores PU0 and PU1 simultaneously try to use a shared resource when priority control is performed. In this case, when priority is given to the processor core PU0, the state shown in FIG. 10 is set.

When priority is given to the processor core PU1, the state shown in FIG. 11 is set.

As shown in FIGS. 10 and 11, although the total sum of wait times is invariable, the wait time allocations can be changed.

Assume that there is an ideal priority control unit, which controls the ratio of performance penalties given to the processor cores PU0 and PU1 to the value given by equation (12) (when r=0, priority is always given to transfer by the processor core PU0, and when r=1, priority is always given to transfer by the processor core PU1):


PU0:PU1=r:(1−r)(0≦r≦1)  (12)

In this case, the effective operation time ti′ of each processor core is represented as the function of r as follows:


t′0=t0−L0rltotal  (13)


t′i=t1−L1(1−r)ltotal  (14)

Therefore, a total power consumption Ptotal (=Po′+P1′) of the multi-processor 1 is also the function of r, and changes in accordance with priority control.

In the following description, in the above performance prediction model, the value of r which minimizes the total power consumption Ptotal of the multi-processor 1 is generally determined as a unique value, which is minimized when dPtotal/dr given below is 0:

r P total = I 0 L 0 r e 0 + I 1 L 1 r e 1 = l total { n ( I 0 t 0 ) n + 1 + ( n - 1 ) ( I 0 t 0 ) n + + ( I 0 t 0 ) 2 - n ( I 1 t 1 ) n + 1 - ( n - 1 ) ( I 1 t 1 ) n - - ( I 1 t 1 ) 2 } ( 15 )

This leads to I0/t0′=I1/t1′, i.e., f0′=f1′, as a condition for minimum power consumption. Equalizing the frequencies required by the respective processor cores to satisfy constraints will minimize the power consumption. In this case, the value of r is given by

r min = I 1 t 0 - I 0 t 1 + I 0 L 1 l total ( I 0 L 1 + I 1 L 0 ) l total ( 16 )

The value rmin allows to obtain optimal priorities=optimal allocation ratio of wait times.

Fourth Embodiment

This embodiment exemplifies evaluation performed when the control algorithm for priorities and frequencies/power supply voltages which has been described in the first embodiment (to be referred to as the first control algorithm hereinafter) and when the control algorithm for priorities and frequencies/power supply voltages which has been described in the second embodiment (to be referred to as the second control algorithm hereinafter).

FIG. 12 is a table showing an example of the result obtained by linearly approximating the relationship between the voltage and frequency of a commercially available processor.

FIG. 13 is a graph showing an example of the states of power consumption when the first and second control algorithms are not used, when the first control algorithm is used, and when the second control algorithm is used.

FIG. 13 shows a case in which a processor core PU0 executes an H264 decoder, and the processor core PU1 executes another program “art” or “bzip2”.

As is obvious from FIG. 13, the power consumption can be suppressed by about 10% when the first or second control algorithm is used than when neither the first nor second control algorithm is used.

Note that this evaluation value changes depending on degrees of constraints and variations in load on each of the processor cores PU0 and PU1.

Each embodiment described above can be variously modified within the spirit and scope of the invention.

For example, shared resources include various types of access destinations shared by the processor cores PU0 to PUn, e.g., various types of memories, banks, PCI buses, displays, and interfaces.

The FVP cooperative control unit 5 can be implemented by software. It suffices to implement the function of the FVP cooperative control unit 5 by using at least one processor core.

In each embodiment described above, priority adjustment is implemented by making a given request take precedence over other request in the access queue 3c. However, priority adjustment can be implemented by other techniques. For example, it suffices to provide a request storage unit for each processor core and make each request storage unit issue a request to a shared resource in accordance with the control timing of the priority control unit 6.

As a control algorithm for priories and frequencies/power supply voltages, another algorithm can be used.

In each embodiment described above, various constituent elements can be freely combined or separated. For example, the FVP cooperative control unit 5, priority control unit 6, frequency/power supply voltage control unit 7 can be arbitrarily combined. The FVP cooperative control unit 5, priority control unit 6, and frequency/power supply voltage control unit 7 can be combined into one unit.

Claims

1. A multi-processor control device comprising:

a cooperative control unit which determines priorities of requests issued from a plurality of processors to a shared resource of the plurality of processors which are used to suppress at least one of a total power consumption and a total energy consumption of the plurality of processors within a range in which performance constraints of programs executed by the plurality of processors are satisfied, and determines at least one of a frequency and a power supply voltage of each of the plurality of processors so as to suppress the at least one of the total power consumption and the total energy consumption within the range in which the performance constraint of the each program is satisfied;
a first control unit which issues requests from the plurality of processors to the shared resource in accordance with priorities determined by the cooperative control unit; and
a second control unit which controls at least one of the frequency and the power supply voltage of each of the plurality of processors in accordance with the at least one of the frequency and the power supply voltage determined by the cooperative control unit.

2. A device according to claim 1, wherein the cooperative control unit sets a priority of a request from a processor which executes a program with high emergence to be higher than a priority of a request from a processor which executes a program with low emergence.

3. A device according to claim 2, wherein the cooperative control unit sets at least one of a frequency and a power supply voltage of a processor whose priority of a request has been increased to be lower than that when no priority control is performed.

4. A device according to claim 3, wherein the cooperative control unit monitors an actual state of contention from the plurality of processors to the shared resource and executes feedback control to make match the actual state of contention with the priorities,

monitors a progress state of the each program, and
performs feedback control for each processor which executes the each program so as to decrease at least one of a frequency and a power supply voltage when a progress state of the each program comes to an end earlier than a prediction result predicted on the basis of a performance prediction model and increase the at least one of the frequency and the power supply voltage when the progress state of the each program is expected not to be in time with the prediction result.

5. A device according to claim 3, wherein the cooperative control unit controls priorities of requests from the plurality of processors such that each of frequencies of the plurality of processors is included within a target range.

6. A multi-processor control method comprising:

executing a control algorithm which determines priorities of requests issued from a plurality of processors to a shared resource of the plurality of processors which are used to suppress at least one of a total power consumption and a total energy consumption of the plurality of processors within a range in which performance constraints of programs executed by the plurality of processors are satisfied, and at least one of a frequency and a power supply voltage of each of the plurality of processors; and
issuing requests from the plurality of processors to the shared resource in accordance with priorities determined by the control algorithm and controlling the at least one of the frequency and the power supply voltage of each of the plurality of processors in accordance with the at least one of the frequency and the power supply voltage determined by the control algorithm.

7. A method according to claim 6, wherein the control algorithm sets a priority of a request from a processor which executes a program with high emergence to be higher than a priority of a request from a processor which executes a program with low emergence.

8. A method according to claim 7, wherein the control algorithm sets at least one of a frequency and a power supply voltage of a processor whose priority of a request has been increased to be lower than that when no priority control is performed.

9. A method according to claim 8, wherein the control algorithm monitors an actual state of contention from the plurality of processors to the shared resource and executes feedback control to make match the actual state of contention with the priorities,

monitors a progress state of the each program, and
performs feedback control for each processor which executes the each program so as to decrease at least one of a frequency and a power supply voltage when a progress state of the each program comes to an end earlier than a prediction result predicted on the basis of a performance prediction model and increase the at least one of the frequency and the power supply voltage when the progress state of the each program is expected not to be in time with the prediction result.

10. A method according to claim 8, wherein the control algorithm controls priorities of requests from said plurality of processors such that each of frequencies of the plurality of processors is included falls within a target range.

Patent History
Publication number: 20080288796
Type: Application
Filed: May 16, 2008
Publication Date: Nov 20, 2008
Patent Grant number: 8069357
Applicant: Semiconductor Technology Academic Research Center (Yokohama-shi)
Inventors: Hiroshi Nakamura (Tokyo), Masaaki Kondo (Tokyo), Takashi Nanya (Kamakura-shi), Ryo Watanabe (Tokyo)
Application Number: 12/122,267
Classifications
Current U.S. Class: Power Conservation (713/320); Priority Scheduling (718/103)
International Classification: G06F 1/32 (20060101); G06F 9/46 (20060101);