JP2012208579A - Power consumption control system, power consumption control method, and program - Google Patents

Power consumption control system, power consumption control method, and program Download PDF

Info

Publication number
JP2012208579A
JP2012208579A JP2011072002A JP2011072002A JP2012208579A JP 2012208579 A JP2012208579 A JP 2012208579A JP 2011072002 A JP2011072002 A JP 2011072002A JP 2011072002 A JP2011072002 A JP 2011072002A JP 2012208579 A JP2012208579 A JP 2012208579A
Authority
JP
Japan
Prior art keywords
power consumption
cpu
cpus
consumption control
active
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.)
Withdrawn
Application number
JP2011072002A
Other languages
Japanese (ja)
Inventor
Yu Sato
祐 佐藤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2011072002A priority Critical patent/JP2012208579A/en
Publication of JP2012208579A publication Critical patent/JP2012208579A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Power Sources (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a power consumption control system, a power consumption control method, and a program that do not depend on the P-state operation of a CPU.SOLUTION: A power consumption control system 100 includes a CPU group 102 having a plurality of CPUs. The power consumption control system 100 includes first power consumption control means 116 for selecting at least one CPU as an active CPU on the basis of the number of active CPUs, and second power consumption control means 118 for causing transition of the state of CPUs that have not been selected as active CPUs.

Description

本発明は、消費電力制御システム、消費電力制御方法、およびプログラムに関する。   The present invention relates to a power consumption control system, a power consumption control method, and a program.

計算機の消費電力制御方法として、特許文献1に記載の方法などがある。   As a computer power consumption control method, there is a method described in Patent Document 1.

たとえば、ACPI(Advanced Configuration and Power Interface)で定義されるところのCPU(Central Processing Unit)のPステートを、OS(オペレーティングシステム)がCPUの負荷状況に合わせて、消費電力の低いステートへ変更することによって省電力化を図ることがあった。   For example, the P state of the CPU (Central Processing Unit) defined by ACPI (Advanced Configuration and Power Interface) is changed by the OS (operating system) to a state with low power consumption according to the load status of the CPU. As a result, there was a case where power saving was achieved.

また、コンピュータシステムがアイドル状態(無負荷状態)にあるとき、OSはACPIで定義されるところのCステートにCPUを遷移させることで、コンピュータシステムの消費電力抑制を図ることがあった。   Further, when the computer system is in an idle state (no-load state), the OS may reduce power consumption of the computer system by causing the CPU to transition to the C state defined by ACPI.

特開2001−282560号公報JP 2001-282560 A

しかしながら、CPUが備えるPステートの数はCPUのクロック種別によって一様とは限らないため、CPUのPステート操作による消費電力制御では、全てのCPUで一様な省電力効果を期待することが困難であった。また、Cステート制御は、コンピュータシステムがアイドル状態にある際の消費電力制御に用いられていた。   However, since the number of P states included in the CPU is not necessarily uniform depending on the CPU clock type, it is difficult to expect a uniform power saving effect in all the CPUs in the power consumption control by the P state operation of the CPU. Met. In addition, the C state control is used for power consumption control when the computer system is in an idle state.

本発明は、上記事情に鑑みなされたものであって、CPUのPステート操作に依存しない、消費電力制御システム、消費電力制御方法、およびプログラムを提供することを目的とする。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a power consumption control system, a power consumption control method, and a program that do not depend on a P-state operation of a CPU.

上記目的を達成するため、本発明の第1の観点に係る消費電力制御システムは、
複数のCPUを有するCPU群を備え、
算出されたアクティブCPUの個数に基づいて、前記CPU群の中から少なくとも1つのCPUをアクティブCPUとして選択する第1消費電力制御手段と、
前記CPU群に含まれるCPUの内、前記第1消費電力制御手段によって前記アクティブCPUとして選択されなかったCPUのステートを遷移させる第2消費電力制御手段と、
を有することを特徴とする。
In order to achieve the above object, a power consumption control system according to a first aspect of the present invention includes:
A CPU group having a plurality of CPUs;
First power consumption control means for selecting at least one CPU as an active CPU from the CPU group based on the calculated number of active CPUs;
Second power consumption control means for transitioning a state of a CPU that has not been selected as the active CPU by the first power consumption control means among the CPUs included in the CPU group;
It is characterized by having.

上記目的を達成するため、本発明の第2の観点に係る上記消費電力制御システムを用いた消費電力制御方法は、
前記第1消費電力制御手段が、算出された前記アクティブCPUの個数に基づいて、前記CPU群の中からアクティブCPUを選択する第1ステップと、
前記第2消費電力制御手段が、前記CPU群に含まれるCPUの内、前記アクティブCPUとして選択されなかったCPUのステートを変更する第2ステップと、
を含むことを特徴とする。
In order to achieve the above object, a power consumption control method using the power consumption control system according to the second aspect of the present invention includes:
A first step in which the first power consumption control means selects an active CPU from the CPU group based on the calculated number of active CPUs;
A second step in which the second power consumption control means changes a state of a CPU not selected as the active CPU among the CPUs included in the CPU group;
It is characterized by including.

上記目的を達成するため、本発明の第3の観点に係るプログラムは、
コンピュータに、
算出されたアクティブCPUの個数に基づいて、CPU群の中からアクティブCPUを選択する手順と、
前記CPU群に含まれるCPUの内、前記アクティブCPUとして選択されなかったCPUのステートを変更する手順と、
を実行させる。
In order to achieve the above object, a program according to the third aspect of the present invention provides:
On the computer,
A procedure for selecting an active CPU from a group of CPUs based on the calculated number of active CPUs;
A procedure for changing a state of a CPU not selected as the active CPU among the CPUs included in the CPU group;
Is executed.

本発明によれば、CPUのPステート操作に依存しない、消費電力制御システム、消費電力制御方法、およびプログラムを提供することができる。   According to the present invention, it is possible to provide a power consumption control system, a power consumption control method, and a program that do not depend on the P-state operation of the CPU.

本実施形態に係る消費電力制御システムを示す図である。It is a figure which shows the power consumption control system which concerns on this embodiment. 本実施形態に係るCPU群の詳細を示す図である。It is a figure which shows the detail of the CPU group which concerns on this embodiment. 本実施形態に係る消費電力制御方法を示すフローチャート図である。It is a flowchart figure which shows the power consumption control method which concerns on this embodiment. 本実施形態に係る消費電力制御システムを示す図である。It is a figure which shows the power consumption control system which concerns on this embodiment. 本実施例に係る消費電力制御システムを示す図である。It is a figure which shows the power consumption control system which concerns on a present Example. 本実施例に係る消費電力制御方法を示すフローチャート図である。It is a flowchart figure which shows the power consumption control method which concerns on a present Example.

以下、本発明の実施形態に係るコンピュータの消費電力制御システム、消費電力制御方法、およびプログラムについて、図面を参照して詳細に説明する。   DESCRIPTION OF EMBODIMENTS Hereinafter, a computer power consumption control system, a power consumption control method, and a program according to embodiments of the present invention will be described in detail with reference to the drawings.

本明細書において、「CPU」は、CPU単体だけでなく、複数のCPUコアからなるCPUの各コア自体をも示すものとする。   In this specification, “CPU” indicates not only a single CPU but also each core of a CPU including a plurality of CPU cores.

図1を参照すると、本実施形態に係るコンピュータの消費電力制御システム100は、コンピュータ101と、n個(nは2以上の整数)のCPUを有するCPU群102と、コンピュータ101上で動作するOS(オペレーティングシステム)104と、主記憶装置108と、補助記憶装置110と、を有する。   Referring to FIG. 1, a computer power consumption control system 100 according to this embodiment includes a computer 101, a CPU group 102 having n (n is an integer of 2 or more) CPUs, and an OS operating on the computer 101. (Operating system) 104, main storage device 108, and auxiliary storage device 110.

CPU群102は複数のCPUを有する。CPUは、コンピュータ101の動作を制御するプロセッサであり、補助記憶装置110から主記憶装置108にロードされる、OS(オペレーティングシステム)104、OS104の下で動作する(ユーティリティを含む)各種制御手段、消費電力算出手段106、および消費電力算出手段106の下で動作する消費電力検出手段114等を実行する。CPU群102に含まれるCPUはACPIで定義されるPステート操作が行われるCPUである。   The CPU group 102 has a plurality of CPUs. The CPU is a processor that controls the operation of the computer 101, and is loaded from the auxiliary storage device 110 into the main storage device 108. The OS (operating system) 104, various control means (including utilities) operating under the OS 104, The power consumption calculating unit 106 and the power consumption detecting unit 114 operating under the power consumption calculating unit 106 are executed. The CPU included in the CPU group 102 is a CPU on which a P-state operation defined by ACPI is performed.

OS104は、その内部に、消費電力算出手段106からの要求を受け取るAPI(Application Programming Interface)112(インターフェイス)と、第1消費電力制御手段116と、第2消費電力制御手段118と、を有する。   The OS 104 includes an API (Application Programming Interface) 112 (interface) that receives a request from the power consumption calculation unit 106, a first power consumption control unit 116, and a second power consumption control unit 118.

主記憶装置108は、CPUがOS104や消費電力算出手段106等を実行する際の作業領域としての機能を有する。主記憶装置108としては、たとえば、メモリ、レジスタ、キャッシュ等を例示することができる。   The main storage device 108 has a function as a work area when the CPU executes the OS 104, the power consumption calculation unit 106, and the like. Examples of the main storage device 108 include a memory, a register, and a cache.

補助記憶装置110は、OS104、消費電力算出手段106などを格納する機能を有する。すなわち、補助記憶装置110は、本実施形態で説明する消費電力制御を実行するプログラムを格納する。補助記憶装置110としては、たとえば、HDD(ハードディスクドライブ)やCD−ROM等を例示することができる。   The auxiliary storage device 110 has a function of storing the OS 104, the power consumption calculation unit 106, and the like. That is, the auxiliary storage device 110 stores a program for executing power consumption control described in the present embodiment. Examples of the auxiliary storage device 110 include an HDD (hard disk drive) and a CD-ROM.

消費電力算出手段106はアクティブCPUの個数を指定する機能を有する。消費電力算出手段106は補助記憶装置110に格納されており、CPU群102に含まれる少なくとも1つのCPUによって読み出され、主記憶装置108を作業領域として実行される。消費電力算出手段106は消費電力検出手段114を内部に有する。消費電力検出手段114は、CPU群102に含まれる各CPUで消費されている消費電力を検出する機能を有する。   The power consumption calculation unit 106 has a function of designating the number of active CPUs. The power consumption calculation means 106 is stored in the auxiliary storage device 110, read by at least one CPU included in the CPU group 102, and executed using the main storage device 108 as a work area. The power consumption calculation means 106 has a power consumption detection means 114 inside. The power consumption detection unit 114 has a function of detecting power consumption consumed by each CPU included in the CPU group 102.

API112は、CPUによって主記憶装置108を作業領域として実行された消費電力算出手段106から、演算処理の実行が許可されるCPU(アクティブCPU)の個数に関する情報を受け取るインターフェイスとしての機能を有する。   The API 112 has a function as an interface that receives information on the number of CPUs (active CPUs) permitted to execute arithmetic processing from the power consumption calculation unit 106 executed by the CPU using the main storage device 108 as a work area.

CPU群102に含まれる少なくとも1つのCPUが、補助記憶装置110にあらかじめ格納された消費電力算出手段106およびその内部にある消費電力検出手段114を読み出して、主記憶装置108に書き込む。少なくとも1つのCPUが主記憶装置108を作業領域として消費電力検出手段114を実行し、CPU群102に含まれる各CPUで消費されている消費電力を検出し、消費電力算出手段106が消費電力検出手段114によって検出された消費電力の数値を利用する。演算処理の実行が許可されるCPU(図2に示すアクティブCPU122)の個数は、消費電力検出手段114によって検出された消費電力の数値に基づいて、CPU群102に含まれる少なくとも1つのCPUが、消費電力算出手段106を実行して算出する。   At least one CPU included in the CPU group 102 reads out the power consumption calculation unit 106 stored in advance in the auxiliary storage device 110 and the power consumption detection unit 114 therein, and writes it in the main storage device 108. At least one CPU executes the power consumption detection means 114 using the main storage device 108 as a work area, detects the power consumption consumed by each CPU included in the CPU group 102, and the power consumption calculation means 106 detects the power consumption. The power consumption value detected by the means 114 is used. The number of CPUs (active CPU 122 shown in FIG. 2) that are allowed to execute the arithmetic processing is determined based on the power consumption value detected by the power consumption detection unit 114 by at least one CPU included in the CPU group 102. Calculation is performed by executing the power consumption calculation means 106.

OS104内の第1消費電力制御手段116は、API112によって受け取られる、消費電力算出手段106によって指定されたアクティブCPUの個数に関する情報に基づいて、CPU群102に含まれるCPUの中からアクティブCPU122を選択する機能を有する。また、第1消費電力制御手段116は、第1消費電力制御手段116によってアクティブCPU122として選択されなかったCPU(図2に示すアイドルCPU124)の負荷をゼロとする機能を有する。すなわち、図2に示すように、CPU群102の中に、アクティブCPU122と、アイドルCPU124と、が含まれる。本実施形態に係る図2において、アクティブCPU122の個数は(n−3)個であり、アイドルCPU124の個数は3個である。   The first power consumption control unit 116 in the OS 104 selects the active CPU 122 from the CPUs included in the CPU group 102 based on the information regarding the number of active CPUs designated by the power consumption calculation unit 106 received by the API 112. It has the function to do. Further, the first power consumption control unit 116 has a function of setting the load of the CPU (idle CPU 124 shown in FIG. 2) that is not selected as the active CPU 122 by the first power consumption control unit 116 to zero. That is, as shown in FIG. 2, the CPU group 102 includes an active CPU 122 and an idle CPU 124. In FIG. 2 according to the present embodiment, the number of active CPUs 122 is (n−3), and the number of idle CPUs 124 is three.

OS104内の第2消費電力制御手段118は、全てのアイドルCPU124のステートを、ACPI(Advanced Configuration and Power Interface)で定義されるCステートから、電力消費がより抑制されるディープスリープ状態(C6ステート)へと遷移させる機能を有する。   The second power consumption control means 118 in the OS 104 changes the state of all idle CPUs 124 from a C state defined by ACPI (Advanced Configuration and Power Interface) to a deep sleep state (C6 state) in which power consumption is further suppressed. Has the function of transitioning to

以下、本実施形態に係るコンピュータの消費電力制御システム100を用いる消費電力制御方法200の処理手順を、図3のフローチャートを参照して説明する。   The processing procedure of the power consumption control method 200 using the computer power consumption control system 100 according to the present embodiment will be described below with reference to the flowchart of FIG.

CPU群102に含まれる少なくとも1つのCPUが、補助記憶装置110にあらかじめ格納された消費電力算出手段106およびその内部にある消費電力検出手段114を読み出して、主記憶装置108に書き込む。CPU群102に含まれる少なくとも1つのCPUが主記憶装置108を作業領域として消費電力算出手段106を実行し、消費電力算出手段106内の消費電力検出手段114がCPU群102に含まれる各CPUで消費されている消費電力を検出する(ステップS201)。   At least one CPU included in the CPU group 102 reads out the power consumption calculation unit 106 stored in advance in the auxiliary storage device 110 and the power consumption detection unit 114 therein, and writes it in the main storage device 108. At least one CPU included in the CPU group 102 executes the power consumption calculating unit 106 using the main storage device 108 as a work area, and a power consumption detecting unit 114 in the power consumption calculating unit 106 is included in each CPU included in the CPU group 102. The consumed power is detected (step S201).

CPU群102に含まれる少なくとも1つのCPUが主記憶装置108を作業領域として消費電力算出手段106を実行し、消費電力検出手段114によって検出された消費電力に基づいて、CPU群102において削減したい電力量と、コンピュータ101を稼働させるために十分なCPUの個数との間のバランスを取りながら、演算処理の実行が許可されるCPU(アクティブCPU122)の個数を算出する(ステップS202)。   At least one CPU included in the CPU group 102 executes the power consumption calculation unit 106 using the main storage device 108 as a work area, and the power to be reduced in the CPU group 102 based on the power consumption detected by the power consumption detection unit 114 The number of CPUs (active CPUs 122) that are allowed to execute arithmetic processing is calculated while balancing the amount and the number of CPUs sufficient for operating the computer 101 (step S202).

CPU群102に含まれる少なくとも1つのCPUが、ステップ202において算出されたアクティブCPU122の個数に関する情報をOS104内のAPI112に送信し、API112がその情報を受け取る(ステップS203)。   At least one CPU included in the CPU group 102 transmits information on the number of active CPUs 122 calculated in step 202 to the API 112 in the OS 104, and the API 112 receives the information (step S203).

OS104内の第1消費電力制御手段116は、API112によって受け取られたアクティブCPUの個数に関する情報に基づいて、CPU群102の中からアクティブCPU122を選択する。第1消費電力制御手段116は、第1消費電力制御手段116によってアクティブCPU122として選択されなかったCPU(アイドルCPU124)の負荷をゼロとする(ステップS204)。   The first power consumption control unit 116 in the OS 104 selects the active CPU 122 from the CPU group 102 based on the information regarding the number of active CPUs received by the API 112. The first power consumption control unit 116 sets the load on the CPU (idle CPU 124) not selected as the active CPU 122 by the first power consumption control unit 116 to zero (step S204).

OS104内の第2消費電力制御手段118は、アイドルCPU124に含まれる全てのCPUのステートを、ACPI(Advanced Configuration and Power Interface)で定義されるCステートから、電力消費がより抑制されるディープスリープ状態(C6ステート)へと遷移させる(ステップS205)。   The second power consumption control means 118 in the OS 104 sets the state of all CPUs included in the idle CPU 124 from the C state defined by ACPI (Advanced Configuration and Power Interface) to a deep sleep state in which power consumption is further suppressed. Transition to (C6 state) (step S205).

以上に示すように、コンピュータ101の消費電力制御システム100を用いたコンピュータ101の消費電力制御方法200によって、CPUのステートをC6ステートへと遷移させ、コンピュータの消費電力を制御することができる。   As described above, the power consumption control method 200 of the computer 101 using the power consumption control system 100 of the computer 101 can change the CPU state to the C6 state and control the power consumption of the computer.

各コンピュータに内蔵されるCPUのうち、演算処理の実行が許可されるCPU(アクティブCPU)の個数を制限することで、負荷がゼロの状態のCPU(アイドルCPU)を生じさせる。その結果、OS104の備える省電力機能(C6ステートへの遷移)がアイドルCPUに対して動作し、コンピュータの消費電力を低減させることができる。そのため、CPUの種別やCPUのPステート操作に依存することなく、コンピュータシステムの消費電力を制御し、消費電力を抑制することができる。   By limiting the number of CPUs (active CPUs) that are allowed to execute arithmetic processing among the CPUs built in each computer, CPUs with no load (idle CPUs) are generated. As a result, the power saving function (transition to the C6 state) provided in the OS 104 operates on the idle CPU, and the power consumption of the computer can be reduced. Therefore, the power consumption of the computer system can be controlled and the power consumption can be suppressed without depending on the type of CPU or the P-state operation of the CPU.

また、本実施形態に係る消費電力制御システム100および消費電力制御方法200においては、第1消費電力制御手段116と第2消費電力制御手段118との2つの消費電力制御手段を用いて、多段階で消費電力が制御されている。すなわち、コンピュータ101の全システムがアイドル状態になるのではなく、第1消費電力制御手段116によって一部のCPUがアイドル状態となり(アイドルCPU)、アイドルCPUについてのみ第2消費電力制御手段118がCPUのステートをディープスリープ状態に遷移させている。そのため、コンピュータ101の全システムが非アイドル状態においても、CPUの種別やCPUのPステート操作に依存することなく、消費電力を抑制することができる。   Further, in the power consumption control system 100 and the power consumption control method 200 according to the present embodiment, two stages of power consumption control means, the first power consumption control means 116 and the second power consumption control means 118, are used in a multi-stage. The power consumption is controlled. That is, the entire system of the computer 101 is not in an idle state, but a part of CPUs are in an idle state by the first power consumption control means 116 (idle CPU), and the second power consumption control means 118 is a CPU only for the idle CPU. The state is transitioned to the deep sleep state. Therefore, even when the entire system of the computer 101 is in a non-idle state, power consumption can be suppressed without depending on the CPU type or the P-state operation of the CPU.

以上、本発明の実施形態について説明したが、本発明の広義の精神と範囲を逸脱することなく、様々な実施形態及び変形が可能とされるものである。上述した実施形態は、本発明を説明するためのものであり、本発明の範囲を限定するものではない。   Although the embodiments of the present invention have been described above, various embodiments and modifications can be made without departing from the broad spirit and scope of the present invention. The above-described embodiments are for explaining the present invention, and do not limit the scope of the present invention.

たとえば、本実施形態においては、消費電力算出手段106が補助記憶装置110にあらかじめ格納されていた形態について説明したが、消費電力算出手段を格納した外部媒体(CD等)を補助記憶装置に格納してもよいし、消費電力算出手段がOSに含まれていてもよい。また、コンピュータ101に上述の処理を実行させるためのコンピュータプログラムを任意の記録媒体に格納するようにしてもよい。上記コンピュータプログラムは、コンピュータ101に、消費電力算出手段106を補助記憶装置110から読み出し、主記憶装置108において消費電力算出手段106を実行し、消費電力算出手段106によって算出された消費電力に基づいてアクティブCPUの個数を算出する手順と、算出されたアクティブCPUの個数に基づいて、CPU群102の中からアクティブCPUを選択する手順と、CPU群102に含まれるCPUの内、アクティブCPUとして選択されなかったCPUのステートを変更する手順と、を実行させる。   For example, in the present embodiment, the configuration in which the power consumption calculating unit 106 is stored in advance in the auxiliary storage device 110 has been described. However, an external medium (such as a CD) storing the power consumption calculating unit is stored in the auxiliary storage device. Alternatively, the power consumption calculating unit may be included in the OS. Further, a computer program for causing the computer 101 to execute the above-described processing may be stored in an arbitrary recording medium. The computer program reads the power consumption calculation unit 106 from the auxiliary storage device 110 to the computer 101, executes the power consumption calculation unit 106 in the main storage device 108, and based on the power consumption calculated by the power consumption calculation unit 106. A procedure for calculating the number of active CPUs, a procedure for selecting an active CPU from the CPU group 102 based on the calculated number of active CPUs, and a CPU included in the CPU group 102 selected as an active CPU. And a procedure for changing the state of the CPU that did not exist.

また、本実施形態においては、消費電力制御システム100が、複数のCPUを有するCPU群102と、主記憶装置108と、補助記憶装置110と、を備えるコンピュータ101と、OS(オペレーティングシステム)104と、を備え、消費電力算出手段106と、第1消費電力制御手段116と、第2消費電力制御手段118と、を有する形態について説明したが、図4に示すように、消費電力制御システム500が複数のCPUを有するCPU群102を備え、第1消費電力制御手段116と、第2消費電力制御手段118とを有していればよい。この形態においては、コンピュータに処理を実行させるプログラムは、コンピュータに、算出されたアクティブCPUの個数に基づいて、CPU群102の中からアクティブCPUを選択する手順と、CPU群102に含まれるCPUの内、アクティブCPUとして選択されなかったCPUのステートを変更する手順と、を実行させる。この形態においても、第1消費電力制御手段116と第2消費電力制御手段118とを用いることによって、消費電力制御システム500はCPU群102で消費される電力を抑制することができる。   In the present embodiment, the power consumption control system 100 includes a computer 101 including a CPU group 102 having a plurality of CPUs, a main storage device 108, and an auxiliary storage device 110, and an OS (operating system) 104. The power consumption calculating unit 106, the first power consumption control unit 116, and the second power consumption control unit 118 have been described. However, as shown in FIG. The CPU group 102 having a plurality of CPUs may be provided, and the first power consumption control unit 116 and the second power consumption control unit 118 may be included. In this embodiment, a program for causing a computer to execute processing is a procedure for causing a computer to select an active CPU from the CPU group 102 based on the calculated number of active CPUs, and for CPUs included in the CPU group 102. And a procedure for changing the state of a CPU that has not been selected as an active CPU. Also in this embodiment, by using the first power consumption control unit 116 and the second power consumption control unit 118, the power consumption control system 500 can suppress the power consumed by the CPU group 102.

また、本実施形態においては、消費電力算出手段106が実行され、消費電力算出手段106内の消費電力検出手段114がCPU群102に含まれる各CPUで消費されている消費電力を検出し、消費電力検出手段114によって検出された消費電力に基づいて、演算処理の実行が許可されるアクティブCPU122の個数が算出される形態について説明したが、たとえば、CPU群102に含まれる各CPUで消費されている消費電力を検出する機能を有する電力計などの消費電力検出手段を消費電力算出手段外部に設置してもよい。この場合、以下の方法には限定されないが、たとえば、ユーザが電力計の数値を適宜確認し、ユーザが随時消費電力削減の効果を確認しながら、ユーザがアクティブCPUの個数をコンソールから入力することによって消費電力算出手段106に送信する。次に、CPU群102に含まれる少なくとも1つのCPUが、ステップS202において算出されたアクティブCPU122の個数に関する情報をOS104内のAPI112に送信する。API112がその情報を受け取ることによって、OS104内の第1消費電力制御手段116がアクティブCPUの個数に関する情報に基づいてCPU群102の中からアクティブCPU122を選択する。   Further, in the present embodiment, the power consumption calculation unit 106 is executed, and the power consumption detection unit 114 in the power consumption calculation unit 106 detects the power consumption consumed by each CPU included in the CPU group 102 and consumes power. The form in which the number of active CPUs 122 that are allowed to execute arithmetic processing is calculated based on the power consumption detected by the power detection unit 114 has been described. For example, the number of active CPUs 122 included in the CPU group 102 is consumed. A power consumption detection means such as a power meter having a function of detecting the power consumption may be installed outside the power consumption calculation means. In this case, although not limited to the following method, for example, the user confirms the value of the power meter as appropriate, and the user inputs the number of active CPUs from the console while confirming the effect of reducing power consumption as needed. To the power consumption calculation means 106. Next, at least one CPU included in the CPU group 102 transmits information regarding the number of active CPUs 122 calculated in step S <b> 202 to the API 112 in the OS 104. When the API 112 receives the information, the first power consumption control unit 116 in the OS 104 selects the active CPU 122 from the CPU group 102 based on the information regarding the number of active CPUs.

また、本実施形態においては、インターフェイスであるAPI112がアクティブCPUの個数に関する情報を受け取る機能を有する形態について説明したが、たとえば、第1消費電力制御手段116などの他のモジュールがアクティブCPUの個数に関する情報を受け取る機能をさらに有していて、API112がOS104内に含まれていなくてもよい。   In this embodiment, the API 112 serving as an interface has a function of receiving information regarding the number of active CPUs. For example, another module such as the first power consumption control unit 116 relates to the number of active CPUs. It further has a function of receiving information, and the API 112 may not be included in the OS 104.

また、本実施形態においては、第2消費電力制御手段118が、ACPIで定義されるPステート操作が行われるCPUについて、ACPIで定義されるCステートからC6ステートへとCPUのステートを遷移させることによって消費電力を抑制する形態について説明したが、第2消費電力制御手段118がACPI以外の規格で定義されたCPUのステートを遷移させることによって消費電力を抑制してもよいし、Pステート操作が行われないCPUのステートを遷移させることによって消費電力を抑制してもよい。   In the present embodiment, the second power consumption control unit 118 causes the CPU state to transition from the C state defined by ACPI to the C6 state for the CPU on which the P state operation defined by ACPI is performed. However, the second power consumption control unit 118 may suppress the power consumption by changing the state of the CPU defined by a standard other than ACPI, or the P state operation may be performed. You may suppress power consumption by changing the state of CPU which is not performed.

以下、実施例を用いて本発明を具体的に説明するが、本発明は本実施例に限定されるものではなく、様々な変形が可能とされるものである。   EXAMPLES Hereinafter, although this invention is demonstrated concretely using an Example, this invention is not limited to a present Example, Various deformation | transformation is enabled.

はじめに、図5を参照して、本実施例に係るコンピュータの消費電力制御システム300の構成を説明する。消費電力制御システム300は、コンピュータ301と、4個のCPUを有するCPU群302(CPU302A、CPU302B、CPU302C、CPU302D)と、4個のCPUを有するCPU群303(CPU303A、CPU303B、CPU303C、CPU303D)と、コンピュータ301上で動作するOS(オペレーティングシステム)304と、メモリ308と、消費電力算出手段306を格納するHDD310と、を有する。   First, the configuration of a computer power consumption control system 300 according to the present embodiment will be described with reference to FIG. The power consumption control system 300 includes a computer 301, a CPU group 302 having four CPUs (CPU 302A, CPU 302B, CPU 302C, CPU 302D), and a CPU group 303 having four CPUs (CPU 303A, CPU 303B, CPU 303C, CPU 303D). An OS (operating system) 304 operating on the computer 301, a memory 308, and an HDD 310 that stores power consumption calculation means 306.

以下、図6のフローチャートを参照して、本実施例に係るコンピュータの消費電力制御システム300を用いた消費電力制御方法400の処理手順を具体的に説明する。   Hereinafter, the processing procedure of the power consumption control method 400 using the computer power consumption control system 300 according to the present embodiment will be described in detail with reference to the flowchart of FIG.

CPU302Aが、HDD310にあらかじめ格納された消費電力算出手段306およびその内部にある消費電力検出手段314を読み出して、メモリ308に書き込む。CPU302Aがメモリ308を作業領域として消費電力算出手段306を実行し、消費電力算出手段306内の消費電力検出手段314がCPU群302およびCPU群303に含まれる8個のCPUで消費されている消費電力を検出する(ステップS401)。   The CPU 302A reads the power consumption calculation unit 306 and the power consumption detection unit 314 stored therein in advance and writes them in the memory 308. The CPU 302A executes the power consumption calculating unit 306 using the memory 308 as a work area, and the power consumption detecting unit 314 in the power consumption calculating unit 306 is consumed by eight CPUs included in the CPU group 302 and the CPU group 303. The power is detected (step S401).

CPU302Aがメモリ308を作業領域として消費電力算出手段306を実行し、消費電力検出手段314によって検出されたCPUの消費電力に基づいて、CPU群302およびCPU群303において削減したい電力量と、コンピュータ301を稼働させるために十分なCPUの個数との間のバランスを取りながら、演算処理の実行が許可されるCPU(アクティブCPU)の個数を5個と算出する(ステップS402)。   The CPU 302A executes the power consumption calculation unit 306 using the memory 308 as a work area, and based on the CPU power consumption detected by the power consumption detection unit 314, the CPU 301 and the CPU group 303 are requested to reduce the amount of power and the computer 301 The number of CPUs (active CPUs) that are allowed to execute arithmetic processing is calculated as 5 while maintaining a balance with the number of CPUs sufficient to operate the CPU (step S402).

CPU302Aが、ステップ402において算出されたアクティブCPUの個数(5個)に関する情報をOS304内のAPI312に送信し、API312がその情報を受け取る(ステップS403)。   The CPU 302A transmits information regarding the number of active CPUs (five) calculated in step 402 to the API 312 in the OS 304, and the API 312 receives the information (step S403).

OS304内の第1消費電力制御手段316は、API312によって受け取られたアクティブCPUの個数(5個)に関する情報に基づいて、CPU302A、CPU302B、CPU302C、CPU302D、CPU303Aの5個をアクティブCPUとして選択する。第1消費電力制御手段316は、第1消費電力制御手段316によってアクティブCPUとして選択されなかったCPU303B、CPU303C、CPU303Dの3個をアイドルCPUとして、CPU303B、CPU303C、およびCPU303Dの負荷をゼロとする(ステップS404)。   The first power consumption control unit 316 in the OS 304 selects five CPUs 302A, 302B, 302C, 302D, and 303A as active CPUs based on the information regarding the number of active CPUs (five) received by the API 312. The first power consumption control unit 316 sets three CPUs 303B, 303C, and 303D that are not selected as active CPUs by the first power consumption control unit 316 as idle CPUs, and sets the loads on the CPU 303B, CPU 303C, and CPU 303D to zero ( Step S404).

OS304に含まれる第2消費電力制御手段318は、アイドルCPUとなったCPU303B、CPU303C、CPU303Dのステートを、ACPI(Advanced Configuration and Power Interface)で定義されるCステートから、電力消費がより抑制されるディープスリープ状態(C6ステート)へと遷移させる(ステップS405)。   The second power consumption control unit 318 included in the OS 304 further suppresses power consumption from the C state defined by ACPI (Advanced Configuration and Power Interface) for the CPU 303B, CPU 303C, and CPU 303D that have become idle CPUs. A transition is made to the deep sleep state (C6 state) (step S405).

上記の実施形態および実施例の一部および全部は、以下の付記のようにも記載されうるが、以下には限られない。   Although part and all of said embodiment and an Example can be described also as the following additional remarks, it is not restricted to the following.

(付記1)
複数のCPUを有するCPU群を備え、
算出されたアクティブCPUの個数に基づいて、前記CPU群の中から少なくとも1つのCPUをアクティブCPUとして選択する第1消費電力制御手段と、
前記CPU群に含まれるCPUの内、前記第1消費電力制御手段によって前記アクティブCPUとして選択されなかったCPUのステートを遷移させる第2消費電力制御手段と、
を有することを特徴とする消費電力制御システム。
(Appendix 1)
A CPU group having a plurality of CPUs;
First power consumption control means for selecting at least one CPU as an active CPU from the CPU group based on the calculated number of active CPUs;
Second power consumption control means for transitioning a state of a CPU that has not been selected as the active CPU by the first power consumption control means among the CPUs included in the CPU group;
A power consumption control system comprising:

(付記2)
前記CPU群に含まれるCPUはACPIで定義されるPステート操作が行われるCPUであり、
前記第2消費電力制御手段が、前記CPU群に含まれるCPUの内、前記第1消費電力制御手段によって前記アクティブCPUとして選択されなかったCPUのステートを、ACPIで定義されるCステートからACPIで定義されるC6ステートへと遷移させることを特徴とする付記1に記載の消費電力制御システム。
(Appendix 2)
CPUs included in the CPU group are CPUs that perform a P-state operation defined by ACPI.
The second power consumption control means changes the state of the CPU not selected as the active CPU by the first power consumption control means from the C states defined by ACPI to ACPI among the CPUs included in the CPU group. The power consumption control system according to appendix 1, wherein transition is made to a defined C6 state.

(付記3)
前記CPU群において消費される消費電力を検出し、検出された前記消費電力に基づいてアクティブCPUの個数を算出する消費電力算出手段をさらに備え、
前記第1消費電力制御手段は、前記消費電力算出手段によって算出された前記アクティブCPUの個数に基づいて前記CPU群の中から少なくとも1つのCPUをアクティブCPUとして選択する、
ことを特徴とする付記1または2に記載の消費電力制御システム。
(Appendix 3)
Power consumption calculating means for detecting power consumption consumed in the CPU group and calculating the number of active CPUs based on the detected power consumption;
The first power consumption control means selects at least one CPU as the active CPU from the CPU group based on the number of the active CPUs calculated by the power consumption calculation means.
The power consumption control system according to appendix 1 or 2, characterized in that:

(付記4)
前記消費電力算出手段によって算出された前記アクティブCPUの個数に関する情報を受け取るインターフェイスを前記オペレーティングシステム内にさらに有する、
ことを特徴とする付記3に記載の消費電力制御システム。
(Appendix 4)
The operating system further includes an interface for receiving information on the number of active CPUs calculated by the power consumption calculating unit.
The power consumption control system according to Supplementary Note 3, wherein

(付記5)
前記第1消費電力制御手段が、算出された前記アクティブCPUの個数に基づいて、前記CPU群の中からアクティブCPUを選択する第1ステップと、
前記第2消費電力制御手段が、前記CPU群に含まれるCPUの内、前記アクティブCPUとして選択されなかったCPUのステートを変更する第2ステップと、
を含むことを特徴とする、付記1乃至4のいずれか1つに記載の消費電力制御システムを用いた消費電力制御方法。
(Appendix 5)
A first step in which the first power consumption control means selects an active CPU from the CPU group based on the calculated number of active CPUs;
A second step in which the second power consumption control means changes a state of a CPU not selected as the active CPU among the CPUs included in the CPU group;
A power consumption control method using the power consumption control system according to any one of appendices 1 to 4.

(付記6)
前記第1ステップの前に、
前記CPU群に含まれる少なくとも1つのCPUが、前記消費電力算出手段を補助記憶装置から読み出し、主記憶装置において前記消費電力算出手段を実行し、前記消費電力に基づいてアクティブCPUの個数を算出するステップを含む、
ことを特徴とする付記5に記載の消費電力制御方法。
(Appendix 6)
Before the first step,
At least one CPU included in the CPU group reads the power consumption calculation unit from the auxiliary storage device, executes the power consumption calculation unit in the main storage device, and calculates the number of active CPUs based on the power consumption. Including steps,
The power consumption control method according to appendix 5, characterized in that:

(付記7)
コンピュータに、
算出されたアクティブCPUの個数に基づいて、CPU群の中からアクティブCPUを選択する手順と、
前記CPU群に含まれるCPUの内、前記アクティブCPUとして選択されなかったCPUのステートを変更する手順と、
を実行させるプログラム。
(Appendix 7)
On the computer,
A procedure for selecting an active CPU from a group of CPUs based on the calculated number of active CPUs;
A procedure for changing a state of a CPU not selected as the active CPU among the CPUs included in the CPU group;
A program that executes

100 消費電力制御システム
101 コンピュータ
102 CPU群
104 OS
106 消費電力算出手段
108 主記憶装置
110 補助記憶装置
112 API
114 消費電力検出手段
116 第1消費電力制御手段
118 第2消費電力制御手段
122 アクティブCPU
124 アイドルCPU
200 消費電力制御方法
300 消費電力制御システム
301 コンピュータ
302 CPU群
302A CPU
302B CPU
302C CPU
302D CPU
303 CPU群
303A CPU
303B CPU
303C CPU
303D CPU
304 OS
306 消費電力算出手段
308 メモリ
310 HDD
312 API
314 消費電力検出手段
316 第1消費電力制御手段
318 第2消費電力制御手段
400 消費電力制御方法
500 消費電力制御システム
100 power consumption control system 101 computer 102 CPU group 104 OS
106 Power consumption calculation means 108 Main storage device 110 Auxiliary storage device 112 API
114 Power consumption detection means 116 First power consumption control means 118 Second power consumption control means 122 Active CPU
124 Idle CPU
200 Power Consumption Control Method 300 Power Consumption Control System 301 Computer 302 CPU Group 302A CPU
302B CPU
302C CPU
302D CPU
303 CPU group 303A CPU
303B CPU
303C CPU
303D CPU
304 OS
306 Power consumption calculation means 308 Memory 310 HDD
312 API
314 Power consumption detection means 316 First power consumption control means 318 Second power consumption control means 400 Power consumption control method 500 Power consumption control system

Claims (7)

複数のCPUを有するCPU群を備え、
算出されたアクティブCPUの個数に基づいて、前記CPU群の中から少なくとも1つのCPUをアクティブCPUとして選択する第1消費電力制御手段と、
前記CPU群に含まれるCPUの内、前記第1消費電力制御手段によって前記アクティブCPUとして選択されなかったCPUのステートを遷移させる第2消費電力制御手段と、
を有することを特徴とする消費電力制御システム。
A CPU group having a plurality of CPUs;
First power consumption control means for selecting at least one CPU as an active CPU from the CPU group based on the calculated number of active CPUs;
Second power consumption control means for transitioning a state of a CPU that has not been selected as the active CPU by the first power consumption control means among the CPUs included in the CPU group;
A power consumption control system comprising:
前記CPU群に含まれるCPUはACPIで定義されるPステート操作が行われるCPUであり、
前記第2消費電力制御手段が、前記CPU群に含まれるCPUの内、前記第1消費電力制御手段によって前記アクティブCPUとして選択されなかったCPUのステートを、ACPIで定義されるCステートからACPIで定義されるC6ステートへと遷移させることを特徴とする請求項1に記載の消費電力制御システム。
CPUs included in the CPU group are CPUs that perform a P-state operation defined by ACPI.
The second power consumption control means changes the state of the CPU not selected as the active CPU by the first power consumption control means from the C states defined by ACPI to ACPI among the CPUs included in the CPU group. The power consumption control system according to claim 1, wherein transition is made to a defined C6 state.
前記CPU群において消費される消費電力を検出し、検出された前記消費電力に基づいてアクティブCPUの個数を算出する消費電力算出手段をさらに備え、
前記第1消費電力制御手段は、前記消費電力算出手段によって算出された前記アクティブCPUの個数に基づいて前記CPU群の中から少なくとも1つのCPUをアクティブCPUとして選択する、
ことを特徴とする請求項1または2に記載の消費電力制御システム。
Power consumption calculating means for detecting power consumption consumed in the CPU group and calculating the number of active CPUs based on the detected power consumption;
The first power consumption control means selects at least one CPU as the active CPU from the CPU group based on the number of the active CPUs calculated by the power consumption calculation means.
The power consumption control system according to claim 1 or 2.
前記消費電力算出手段によって算出された前記アクティブCPUの個数に関する情報を受け取るインターフェイスを前記オペレーティングシステム内にさらに有する、
ことを特徴とする請求項3に記載の消費電力制御システム。
The operating system further includes an interface for receiving information on the number of active CPUs calculated by the power consumption calculating unit.
The power consumption control system according to claim 3.
前記第1消費電力制御手段が、算出された前記アクティブCPUの個数に基づいて、前記CPU群の中からアクティブCPUを選択する第1ステップと、
前記第2消費電力制御手段が、前記CPU群に含まれるCPUの内、前記アクティブCPUとして選択されなかったCPUのステートを変更する第2ステップと、
を含むことを特徴とする、請求項1乃至4のいずれか1項に記載の消費電力制御システムを用いた消費電力制御方法。
A first step in which the first power consumption control means selects an active CPU from the CPU group based on the calculated number of active CPUs;
A second step in which the second power consumption control means changes a state of a CPU not selected as the active CPU among the CPUs included in the CPU group;
The power consumption control method using the power consumption control system of any one of Claims 1 thru | or 4 characterized by the above-mentioned.
前記第1ステップの前に、
前記CPU群に含まれる少なくとも1つのCPUが、前記消費電力算出手段を補助記憶装置から読み出し、主記憶装置において前記消費電力算出手段を実行し、前記消費電力に基づいてアクティブCPUの個数を算出するステップを含む、
ことを特徴とする請求項5に記載の消費電力制御方法。
Before the first step,
At least one CPU included in the CPU group reads the power consumption calculation unit from the auxiliary storage device, executes the power consumption calculation unit in the main storage device, and calculates the number of active CPUs based on the power consumption. Including steps,
The power consumption control method according to claim 5.
コンピュータに、
算出されたアクティブCPUの個数に基づいて、CPU群の中からアクティブCPUを選択する手順と、
前記CPU群に含まれるCPUの内、前記アクティブCPUとして選択されなかったCPUのステートを変更する手順と、
を実行させるプログラム。
On the computer,
A procedure for selecting an active CPU from a group of CPUs based on the calculated number of active CPUs;
A procedure for changing a state of a CPU not selected as the active CPU among the CPUs included in the CPU group;
A program that executes
JP2011072002A 2011-03-29 2011-03-29 Power consumption control system, power consumption control method, and program Withdrawn JP2012208579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011072002A JP2012208579A (en) 2011-03-29 2011-03-29 Power consumption control system, power consumption control method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011072002A JP2012208579A (en) 2011-03-29 2011-03-29 Power consumption control system, power consumption control method, and program

Publications (1)

Publication Number Publication Date
JP2012208579A true JP2012208579A (en) 2012-10-25

Family

ID=47188287

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011072002A Withdrawn JP2012208579A (en) 2011-03-29 2011-03-29 Power consumption control system, power consumption control method, and program

Country Status (1)

Country Link
JP (1) JP2012208579A (en)

Similar Documents

Publication Publication Date Title
US11513585B1 (en) Power management for a graphics processing unit or other circuit
US10664039B2 (en) Power efficient processor architecture
US8656196B2 (en) Hardware automatic performance state transitions in system on processor sleep and wake events
TWI477945B (en) Method for controlling a turbo mode frequency of a processor, and processor capable of controlling a turbo mode frequency thereof
US8954977B2 (en) Software-based thread remapping for power savings
US8966305B2 (en) Managing processor-state transitions
US9335813B2 (en) Method and system for run-time reallocation of leakage current and dynamic power supply current
KR101930183B1 (en) Processor including multiple dissimilar processor cores that implement different portions of instruction set architecture
TW201218072A (en) Providing per core voltage and frequency control
JPWO2008129786A1 (en) Multiprocessor control device, control method thereof, and integrated circuit
TW201346770A (en) Multi-level CPU high current protection
TWI553549B (en) Processor including multiple dissimilar processor cores
KR101467072B1 (en) Low power execution of a multithreaded program
US9507641B1 (en) System and method for dynamic granularity control of parallelized work in a portable computing device (PCD)
JPWO2011155047A1 (en) Multi-core processor system, power control method, and power control program
JP2010039802A (en) Multiprocessor system, scheduling method and program therefor
US9760145B2 (en) Saving the architectural state of a computing device using sectors
JP2012208579A (en) Power consumption control system, power consumption control method, and program
JP5505195B2 (en) Memory control device and control method
JP5862727B2 (en) Multi-core processor system, multi-core processor system control method, and multi-core processor system control program
JP2008293060A (en) Semiconductor device, and method for controlling voltage thereof
GB2536825A (en) Power efficient processor architecture

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20140603