JP2010044460A - Power source control device, computer system, power source control method, power source control program and recording medium - Google Patents

Power source control device, computer system, power source control method, power source control program and recording medium Download PDF

Info

Publication number
JP2010044460A
JP2010044460A JP2008206220A JP2008206220A JP2010044460A JP 2010044460 A JP2010044460 A JP 2010044460A JP 2008206220 A JP2008206220 A JP 2008206220A JP 2008206220 A JP2008206220 A JP 2008206220A JP 2010044460 A JP2010044460 A JP 2010044460A
Authority
JP
Japan
Prior art keywords
cpu
main memory
task
page
power supply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008206220A
Other languages
Japanese (ja)
Inventor
Hisayoshi Kurosawa
寿好 黒澤
Toshio Matsumoto
利夫 松本
Masanori Hayashigoe
正紀 林越
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology 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 Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2008206220A priority Critical patent/JP2010044460A/en
Publication of JP2010044460A publication Critical patent/JP2010044460A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a power source control device for saving supply power to a main memory. <P>SOLUTION: In this computer system equipped with a CPU 1 and a main memory 2 which operate in a normal power mode or a power saving mode, a power source control part 3 which controls the power source supply of the main memory 2 is provided with a CPU monitoring part 6 for instructing the stop of power source supply to the main memory 2 when determining that the CPU 1 is shifted to the power saving mode based on the mode signal of the CPU 1, and for instructing the start of power source supply to the main memory 2 when determining that the CPU 1 is restored to the normal power mode, and configured to control power source supply to the main memory 2 based on the instruction. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、計算機システムのメインメモリに対する電源制御装置、計算機システム、電源制御方法、電源制御プログラムおよび記録媒体に関する。   The present invention relates to a power supply control device, a computer system, a power supply control method, a power supply control program, and a recording medium for a main memory of a computer system.

一般的な計算機システムは、単純化すると、プログラムを実行するCPU(Central Processing Unit)と、各種IO(Input/Output:入出力)デバイスとCPUとを介在するIO制御部と、プログラムやデータを格納するためのメインメモリと、各ハードウェア構成部へ電力を供給する電源制御部からなる。   In general, a general computer system stores a central processing unit (CPU) that executes a program, an IO control unit that interposes various input / output (IO) devices and a CPU, and stores programs and data. And a power supply controller that supplies power to each hardware component.

従来、メインメモリにはSRAM(Static Random Access Memory)やDRAM(Dynamic Random Access Memory)のように、揮発性メモリと呼ばれるものが主に用いられる。揮発性メモリは、給電を停止するとその内容は消滅してしまう特性を有するため、これらをメインメモリとして用いるシステムでのメインメモリの省電力制御としては、動作クロックの停止に留まっていた。   Conventionally, a so-called volatile memory such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory) is mainly used as the main memory. Since the volatile memory has a characteristic that its contents disappear when power supply is stopped, the power saving control of the main memory in the system using these as the main memory is limited to stopping the operation clock.

一方、メインメモリとして、不揮発性メモリが用いられる計算機システムも登場している。たとえば、下記特許文献1では、不揮発性メモリとしてMRAM(Magnetic Random Access Memory)を用いたシステムが開示されている。   On the other hand, a computer system using a nonvolatile memory as a main memory has also appeared. For example, Patent Document 1 below discloses a system using an MRAM (Magnetic Random Access Memory) as a non-volatile memory.

特開2003−104137号公報JP 2003-104137 A

しかしながら、上記従来の不揮発性メモリを用いた計算機システムでは、MRAMをROM(Read Only Memory)の代わりとして、計算機システムの電源OFF状態でもデータを保持する程度にしか利用していない。そのため、MRAMの不揮発性という特徴を、計算機システムの省電力化に活かしていない、という問題があった。   However, in the computer system using the conventional nonvolatile memory, the MRAM is used instead of ROM (Read Only Memory) only to the extent that data is retained even when the computer system is powered off. Therefore, there has been a problem that the non-volatile characteristic of MRAM is not utilized for power saving of the computer system.

本発明は、上記に鑑みてなされたものであって、計算機システムの動作中に、不揮発性メモリをメインメモリとして用いる場合に、従来のシステムに比べメインメモリへの給電電力の省電力化を図ることができる電源制御装置、計算機システム、電源制御方法、電源制御プログラムおよび記録媒体を得ることを目的とする。   The present invention has been made in view of the above. When a non-volatile memory is used as a main memory during the operation of a computer system, the power supply power to the main memory can be reduced compared to a conventional system. An object is to obtain a power control apparatus, a computer system, a power control method, a power control program, and a recording medium.

上述した課題を解決し、目的を達成するために、本発明は、通常電力モードまたは省電力モードで動作するCPUとメインメモリとを備える計算機システムにおいて、前記メインメモリの電源供給を制御する電源制御装置であって、前記CPUのモードを示すモード信号を検出し、前記モード信号に基づいてCPUが省電力モードに移行したと判断した場合は前記メインメモリへの電源供給の停止を指示し、前記モード信号に基づいてCPUが通常電力モードに復帰したと判断した場合は前記メインメモリへの電源供給の開始を指示するCPU監視手段、を備え、前記指示に基づいて前記メインメモリへの電源供給を制御することを特徴とする。   In order to solve the above-described problems and achieve the object, the present invention provides a power control for controlling power supply of the main memory in a computer system including a CPU and a main memory that operate in a normal power mode or a power saving mode. A device that detects a mode signal indicating a mode of the CPU and instructs the CPU to stop supplying power to the main memory when it is determined that the CPU has shifted to a power saving mode based on the mode signal; CPU monitoring means for instructing the start of power supply to the main memory when it is determined that the CPU has returned to the normal power mode based on the mode signal, and supplying power to the main memory based on the instruction It is characterized by controlling.

この発明によれば、CPUのMODE端子に接続するCPU監視部を備えることとし、CPU監視部がMODE端子から出力される電圧に基づいて省電力モードに移行したと判断した場合にはメインメモリへの給電を停止するようにしたので、メインメモリへの給電電力の省電力化を図ることができる、という効果を奏する。   According to the present invention, the CPU monitoring unit connected to the MODE terminal of the CPU is provided, and when it is determined that the CPU monitoring unit has shifted to the power saving mode based on the voltage output from the MODE terminal, the main memory is provided. Therefore, there is an effect that it is possible to save power supplied to the main memory.

以下に、本発明にかかる電源制御装置および電源制御方法の実施の形態を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Embodiments of a power supply control device and a power supply control method according to the present invention will be described below in detail with reference to the drawings. Note that the present invention is not limited to the embodiments.

実施の形態1.
図1は、本発明にかかる計算機システムの実施の形態1の構成例を示す図である。図1に示すように、本実施の形態の計算機システムは、プログラムを実行するCPU(Central Processing Unit)1と、プログラムやデータを格納するためのメインメモリ2と、各ハードウェア構成部へ電力を供給し、本発明にかかる電源制御装置としての機能を有する電源制御部3と、を備えている。また、CPU1およびメインメモリ2は、メモリバス4に接続している。また、電源制御部3は、電源供給ライン5を介してメインメモリ2に電源を供給する。
Embodiment 1 FIG.
FIG. 1 is a diagram showing a configuration example of a first embodiment of a computer system according to the present invention. As shown in FIG. 1, the computer system according to the present embodiment includes a CPU (Central Processing Unit) 1 that executes a program, a main memory 2 that stores programs and data, and power to each hardware component. And a power supply control unit 3 having a function as a power supply control device according to the present invention. The CPU 1 and the main memory 2 are connected to the memory bus 4. The power control unit 3 supplies power to the main memory 2 via the power supply line 5.

本実施の形態の電源制御部3は、メインメモリ2への電源供給の有無を制御する。また、電源制御部3は、CPU監視部6を備えており、CPU監視部6は、CPU1のMODE端子7と接続している。このMODE端子7(図示のMODEに対応)は、省電力機能を有したCPUが一般に備えている端子であり、通常動作モードでは電圧Highが、省電力モードでは電圧Lowが出力される。   The power control unit 3 according to the present embodiment controls whether power is supplied to the main memory 2. Further, the power supply control unit 3 includes a CPU monitoring unit 6, and the CPU monitoring unit 6 is connected to the MODE terminal 7 of the CPU 1. This MODE terminal 7 (corresponding to MODE shown in the figure) is a terminal that is generally provided in a CPU having a power saving function, and outputs a voltage High in the normal operation mode and a voltage Low in the power saving mode.

CPU監視部6は、MODE端子7から出力される電圧がHighからLowになった場合、CPU1が省電力モードへ移行したと判断し、メインメモリ2へのアクセスが不要となるため、メインメモリ2への給電を停止する。また、CPU監視部6は、MODE端子7から出力される電圧がLowからHighになった場合、CPU1が通常動作モードへ移行したと判断し、プログラムの読み出しやデータへのアクセスを可能とするため、メインメモリ2への給電を再開する。   When the voltage output from the MODE terminal 7 changes from High to Low, the CPU monitoring unit 6 determines that the CPU 1 has shifted to the power saving mode, and access to the main memory 2 becomes unnecessary. Stop power supply to. In addition, when the voltage output from the MODE terminal 7 changes from low to high, the CPU monitoring unit 6 determines that the CPU 1 has shifted to the normal operation mode and enables reading of a program and access to data. Then, the power supply to the main memory 2 is resumed.

このように、本実施の形態では、電源制御部3にCPU1のMODE端子7に接続するCPU監視部6を備えることとし、CPU監視部6がMODE端子7から出力される電圧に基づいて省電力モードに移行したと判断した場合には、メインメモリ2への給電を停止するようにした。このため、メインメモリ2への給電電力の省電力化を図ることができる。   Thus, in this embodiment, the power supply control unit 3 includes the CPU monitoring unit 6 connected to the MODE terminal 7 of the CPU 1, and the CPU monitoring unit 6 saves power based on the voltage output from the MODE terminal 7. When it is determined that the mode has been changed, the power supply to the main memory 2 is stopped. For this reason, it is possible to save the power supplied to the main memory 2.

実施の形態2.
図2は、本発明にかかる計算機システムの実施の形態2の構成例を示す図である。図2に示すように本実施の形態の計算機システムは、実施の形態1の計算機システムに、ゲート9とクロック発生装置10を追加し、電源制御部3を電源制御部3aに替える以外は、実施の形態1の計算機システムと同様である。実施の形態1と同様の機能を有する構成要素は同一の符号を付して説明を省略する。
Embodiment 2. FIG.
FIG. 2 is a diagram showing a configuration example of the computer system according to the second embodiment of the present invention. As shown in FIG. 2, the computer system according to the present embodiment is implemented except that the gate 9 and the clock generator 10 are added to the computer system according to the first embodiment, and the power control unit 3 is replaced with the power control unit 3a. It is the same as that of the computer system of the form 1 of. Components having the same functions as those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態の電源制御部3aは、メインメモリ2の電源供給の有無を制御し、また、CPU監視部6aを備えている。CPU監視部6a、CPU1の動作クロックを供給するクロック信号線が接続されるEXCLK端子8(図示のEXCLKに対応)に接続される。一般にCPUは内部にレジスタやキャッシュメモリを搭載している。このため、CPUの省電力化は、クロックを停止することで実現されており、CPUへのクロック供給をON/OFFするために、クロック発生装置に対してON/OFFの信号を送っている。   The power control unit 3a according to the present embodiment controls whether or not the main memory 2 is supplied with power, and includes a CPU monitoring unit 6a. The CPU monitoring unit 6a is connected to an EXCLK terminal 8 (corresponding to EXCLK shown) to which a clock signal line for supplying an operation clock of the CPU 1 is connected. Generally, a CPU is equipped with a register and a cache memory. For this reason, power saving of the CPU is realized by stopping the clock, and an ON / OFF signal is sent to the clock generator in order to turn on / off the clock supply to the CPU.

本実施の形態のCPU1も、上記のような一般的な省電力化の機能を有していることとする。具体的には、CPU1は、EXCLK端子8とクロック発生装置10との間にゲート9を設け、CPU1が、ゲート9のONとOFFを制御する。そして、通常の動作時は、CPU1はゲート9をONとし、クロック発生装置10からCPU1にクロックが供給される。また、省電力モード時は、CPU1は、ゲート9をOFFとし、クロック発生装置10からクロックがCPU1に供給されない。   The CPU 1 of the present embodiment also has a general power saving function as described above. Specifically, the CPU 1 provides a gate 9 between the EXCLK terminal 8 and the clock generator 10, and the CPU 1 controls the ON and OFF of the gate 9. During normal operation, the CPU 1 turns on the gate 9 and a clock is supplied from the clock generator 10 to the CPU 1. In the power saving mode, the CPU 1 turns off the gate 9 and no clock is supplied from the clock generator 10 to the CPU 1.

本実施の形態では、CPU監視部6aが、EXCLK端子8から出力されるクロックを取得し、CPU1へのクロック供給有無を監視する。そして、CPU監視部6aは、EXCLK端子8から出力される信号に基づいてCPU1にクロック供給中であると判断した場合は、メインメモリ2への給電を行い、CPU1にクロック供給中でないと判断した場合には、メインメモリ2への給電を停止する。   In the present embodiment, the CPU monitoring unit 6a acquires the clock output from the EXCLK terminal 8 and monitors whether the clock is supplied to the CPU 1. When the CPU monitoring unit 6a determines that the clock is being supplied to the CPU 1 based on the signal output from the EXCLK terminal 8, the CPU monitoring unit 6a determines that the power is supplied to the main memory 2 and the CPU 1 is not supplying the clock. In this case, power supply to the main memory 2 is stopped.

なお、CPU監視部6aにCPU1へ供給されるクロック信号と同じクロック信号を入力すると、CPU1のEXCLK端子8へクロックが供給されているか否かを、CPU1のクロック1周期以内に検出することができる。   When the same clock signal as the clock signal supplied to the CPU 1 is input to the CPU monitoring unit 6a, it can be detected within one cycle of the clock of the CPU 1 whether or not the clock is supplied to the EXCLK terminal 8 of the CPU 1. .

なお、本実施の形態では、EXCLK端子8へ入力される信号に基づいてCPU1が省電力モードであるか否かを判断するようにしたが、CPU1が省電力モードであるか否かを判断できる他の信号がある場合には、CPU監視部6aは、他の信号に基づいてメインメモリ2への給電の有無を制御するようにしてもよい。   In the present embodiment, it is determined whether the CPU 1 is in the power saving mode based on the signal input to the EXCLK terminal 8, but it is possible to determine whether the CPU 1 is in the power saving mode. When there is another signal, the CPU monitoring unit 6a may control whether to supply power to the main memory 2 based on the other signal.

このように、本実施の形態では、CPU監視部6aが、CPU1へのクロック供給の有無を監視し、クロックの供給の有無に基づいてメインメモリ2への給電を制御するようにした。このため、メインメモリ2への給電電力の省電力化を図ることができる。   As described above, in the present embodiment, the CPU monitoring unit 6a monitors the presence or absence of clock supply to the CPU 1 and controls the power supply to the main memory 2 based on the presence or absence of clock supply. For this reason, it is possible to save the power supplied to the main memory 2.

実施の形態3.
図3は、本発明にかかる計算機システムの実施の形態3の構成例を示す図である。図3に示すように本実施の形態の計算機システムは、実施の形態1の計算機システムのCPU1,電源制御部3をそれぞれCPU1a,電源制御部3bに替える以外は実施の形態1の計算機システムと同様である。実施の形態1と同様の機能を有する構成要素は同一の符号を付して説明を省略する。
Embodiment 3 FIG.
FIG. 3 is a diagram showing a configuration example of the third embodiment of the computer system according to the present invention. As shown in FIG. 3, the computer system according to the present embodiment is the same as the computer system according to the first embodiment except that the CPU 1 and the power control unit 3 of the computer system according to the first embodiment are replaced with the CPU 1a and the power control unit 3b, respectively. It is. Components having the same functions as those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態のCPU1aは、2段の省電力モードMODE#0,MODE#1を有し、第1のMODE端子11(図示のMODE#0に対応),第2のMODE端子12(図示のMODE#1に対応)により、モードを監視可能とする。CPU1aが通常動作モードの場合は、第1のMODE端子11,第2のMODE端子12から出力される電圧はいずれもHighとし、省電力モードMODE#0では、第1のMODE端子11から出力される電圧がLow,第2のMODE端子12から出力される電圧はHighとする。また、省電力モードMODE#1では、第1のMODE端子11から出力される電圧がHigh,第2のMODE端子12から出力される電圧はLowとする。   The CPU 1a of the present embodiment has two-stage power saving modes MODE # 0 and MODE # 1, and includes a first MODE terminal 11 (corresponding to MODE # 0 shown) and a second MODE terminal 12 (shown). The mode can be monitored according to MODE # 1. When the CPU 1a is in the normal operation mode, the voltages output from the first MODE terminal 11 and the second MODE terminal 12 are both set to High. In the power saving mode MODE # 0, the voltage is output from the first MODE terminal 11. The voltage output from the second MODE terminal 12 is high. In the power saving mode MODE # 1, the voltage output from the first MODE terminal 11 is High, and the voltage output from the second MODE terminal 12 is Low.

電源制御部3bは、メインメモリ2の電源供給の有無を制御する。また、電源制御部3bは、CPU監視部6bと、AND回路13と、OR回路14,15と、2bitの設定レジスタである設定レジスタ16と、を備え、図3に示すように、CPU1aの第1のMODE端子11にOR回路14が、第2のMODE端子12にOR回路15が、それぞれ接続している。また、OR回路14およびOR回路15の出力はAND回路13に出力され、AND回路13の出力はCPU監視部6bに入力される。さらに、設定レジスタ16は、OR回路14およびOR回路15に接続されている。   The power control unit 3b controls whether the main memory 2 is supplied with power. The power supply control unit 3b includes a CPU monitoring unit 6b, an AND circuit 13, OR circuits 14 and 15, and a setting register 16 which is a 2-bit setting register. As shown in FIG. An OR circuit 14 is connected to one MODE terminal 11, and an OR circuit 15 is connected to the second MODE terminal 12. The outputs of the OR circuit 14 and the OR circuit 15 are output to the AND circuit 13, and the output of the AND circuit 13 is input to the CPU monitoring unit 6b. Further, the setting register 16 is connected to the OR circuit 14 and the OR circuit 15.

設定レジスタ16は、上位bitが省電力モードMODE#1に対応し、下位bitが省電力モードMODE#0に対応することとする。そして、設定レジスタ16は、値が”1”の場合は、対応する省電力モードにCPU1aが移行してもメインメモリ2への給電を行い、値が”0”なら対応する省電力モードにCPU1aが移行するとメインメモリ2への給電を停止する、という意味を有することとする。設定レジスタ16の値は、ユーザの操作などにより設定可能とする。   In the setting register 16, the upper bit corresponds to the power saving mode MODE # 1, and the lower bit corresponds to the power saving mode MODE # 0. If the value is “1”, the setting register 16 supplies power to the main memory 2 even if the CPU 1a shifts to the corresponding power saving mode. If the value is “0”, the setting register 16 sets the CPU 1a to the corresponding power saving mode. , It means that power supply to the main memory 2 is stopped. The value of the setting register 16 can be set by a user operation or the like.

そして、CPU監視部6bは、第1のMODE端子11、第2のMODE端子12、設定レジスタ16の値に基づいて、メインメモリ2への給電を制御する。具体的には、たとえば、設定レジスタが図3のように“01”(上位bitが“0”、下位bitが“1”)の場合、第1のMODE端子11の出力電圧Lowであっても、メインメモリ2への給電を停止せず、第2のMODE端子12の出力電圧がLowであった場合にメインメモリ2への給電を停止する。   Then, the CPU monitoring unit 6 b controls power supply to the main memory 2 based on the values of the first MODE terminal 11, the second MODE terminal 12, and the setting register 16. Specifically, for example, when the setting register is “01” (upper bit is “0” and lower bit is “1”) as shown in FIG. 3, even if the output voltage of the first MODE terminal 11 is Low. The power supply to the main memory 2 is stopped when the output voltage of the second MODE terminal 12 is Low without stopping the power supply to the main memory 2.

なお、本実施の形態では、2bitの設定レジスタ16とAND回路13とOR回路14,15とを用いて、CPU1aの省電力モードごとのメインメモリ2への給電の有無を設定するようにしたが、これに限らず、省電力モードごとのメインメモリ2への給電の有無を設定できる方法であればどのような方法を用いてもよい。   In the present embodiment, the presence / absence of power supply to the main memory 2 for each power saving mode of the CPU 1a is set by using the 2-bit setting register 16, the AND circuit 13, and the OR circuits 14 and 15. However, the present invention is not limited to this, and any method may be used as long as it can set whether to supply power to the main memory 2 for each power saving mode.

また、CPU1aの省電力モードが3種類以上ある場合についても、それぞれのモードを示す信号を電源制御部3bが取得し、モードごとにメインメモリ2への給電を行うか否かを設定できるようにしておけば、上記と同様の電源制御を行うことができる。   Further, even when there are three or more power saving modes of the CPU 1a, the power supply control unit 3b acquires signals indicating the respective modes, and can set whether to supply power to the main memory 2 for each mode. Then, the same power supply control as described above can be performed.

このように、本実施の形態では、CPU1aの省電力モードが2種類以上ある場合に、モードごとにメインメモリ2への給電を停止するか否かを設定し、CPU監視部6bが、CPU1aの省電力モードを示す信号を取得し、取得した信号が給電を停止すると設定されたモードであった場合に、給電を停止するようにした。このため、CPU1aの省電力モードが複数ある場合に、それぞれのモードに応じたメインメモリ2の省電力化を図ることができる。   Thus, in this embodiment, when there are two or more power saving modes of the CPU 1a, it is set for each mode whether or not the power supply to the main memory 2 is stopped, and the CPU monitoring unit 6b A signal indicating the power saving mode is acquired, and when the acquired signal is a mode set to stop power supply, power supply is stopped. For this reason, when there are a plurality of power saving modes of the CPU 1a, the power saving of the main memory 2 according to each mode can be achieved.

実施の形態4.
図4は、本発明にかかる計算機システムの実施の形態4の構成例を示す図である。図4に示すように本実施の形態の計算機システムは、実施の形態1の計算機システムのCPU1,電源制御部3をそれぞれCPU1b,電源制御部3cに替える以外は実施の形態1の計算機システムと同様である。実施の形態1と同様の機能を有する構成要素は同一の符号を付して説明を省略する。
Embodiment 4 FIG.
FIG. 4 is a diagram showing a configuration example of a fourth embodiment of the computer system according to the present invention. As shown in FIG. 4, the computer system according to the present embodiment is the same as the computer system according to the first embodiment except that the CPU 1 and the power control unit 3 of the computer system according to the first embodiment are replaced with the CPU 1b and the power control unit 3c, respectively. It is. Components having the same functions as those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態の電源制御部3cは、メインメモリ2の電源供給の有無を制御する。また、電源制御部3cは、カウンタタイマ部17とメモリバス監視部18を備えている。メモリバス監視部18は、CPU1bからメインメモリ2へのアクセスを常時監視している。通常の計算機システムでは、メインメモリはCPUの特定のアドレス範囲に対応付けられているため、メモリバス監視部18は、CPU1bから出力されるアドレス値が、メインメモリ2に対応するアドレス範囲内か否かを判断することにより、メインメモリ2へのアクセスか否かを判断できる。   The power control unit 3c according to the present embodiment controls whether or not the main memory 2 is supplied with power. The power supply control unit 3c includes a counter timer unit 17 and a memory bus monitoring unit 18. The memory bus monitoring unit 18 constantly monitors access from the CPU 1b to the main memory 2. In a normal computer system, the main memory is associated with a specific address range of the CPU. Therefore, the memory bus monitoring unit 18 determines whether the address value output from the CPU 1b is within the address range corresponding to the main memory 2. It can be determined whether or not the main memory 2 is accessed.

また、メモリバス監視部18は、CPU1bからメインメモリ2へのアクセスを検出すると、カウンタタイマ部17をリセットする。カウンタタイマ部17は、起動時は所定の初期値に設定されており、一定の時間間隔毎にカウントダウンしていき、カウンタ値が0となるとタイムアウトを通知する。電源制御部3cは、タイムアウトを検出するとメインメモリ2への給電を停止する。   Further, the memory bus monitoring unit 18 resets the counter timer unit 17 when detecting access to the main memory 2 from the CPU 1b. The counter timer unit 17 is set to a predetermined initial value at the time of activation, counts down at regular time intervals, and notifies a timeout when the counter value becomes zero. The power supply control unit 3c stops power supply to the main memory 2 when it detects a timeout.

これにより、CPU1bからメインメモリ2へのアクセスが一定時間(カウンタタイマ部17の初期値に対応)以上なされなかった場合に、メインメモリ2の給電を停止し、省電力化を図ることができる。   As a result, when the CPU 1b does not access the main memory 2 for a certain period of time (corresponding to the initial value of the counter timer unit 17), power supply to the main memory 2 can be stopped to save power.

なお、メインメモリ2への給電が停止されている状態で、CPU1bからメインメモリ2へのアクセスがあると、メモリバス監視部18がそれを検出し、カウンタタイマ部17をリセットすることでカウンタ値が初期値に戻され、メインメモリ2への給電が再開される。   In addition, when the power to the main memory 2 is stopped and the CPU 1b accesses the main memory 2, the memory bus monitoring unit 18 detects this and resets the counter timer unit 17 to reset the counter value. Is returned to the initial value, and the power supply to the main memory 2 is resumed.

このように、本実施の形態では、カウンタタイマ部17が所定の初期値からカウントダウンを行い、メモリバス監視部18がメインメモリ2へのアクセスを検出すると、カウンタタイマ部17を初期値にリセットするようにした。そして、カウンタタイマ部17のカウント値が0になった場合に、メインメモリ2への給電を停止するようにした。このため、CPU1bからメインメモリ2へのアクセスが一定時間(カウンタタイマ部17の初期値に対応)以上なされなかった場合に、メインメモリ2の給電を停止し、省電力化を図ることができる。   Thus, in the present embodiment, when the counter timer unit 17 counts down from a predetermined initial value and the memory bus monitoring unit 18 detects access to the main memory 2, the counter timer unit 17 is reset to the initial value. I did it. The power supply to the main memory 2 is stopped when the count value of the counter timer unit 17 becomes zero. For this reason, when the access from the CPU 1b to the main memory 2 is not performed for a certain period of time (corresponding to the initial value of the counter timer unit 17), power supply to the main memory 2 can be stopped to save power.

実施の形態5.
図5は、本発明にかかる電源制御部3dの実施の形態5の構成例を示す図である。図5に示すように本実施の形態の電源制御部3dは、メモリバス監視部18aとカウンタタイマ部17aと、を備えている。また、電源制御部3dは、メインメモリ2への電源供給の有無を制御する。本実施の形態の計算機システムの構成は、電源制御部3cを電源制御部3dに替える以外は実施の形態4の計算機システムと同様である。実施の形態1と同様の機能を有する構成要素は同一の符号を付して説明を省略する。
Embodiment 5 FIG.
FIG. 5 is a diagram illustrating a configuration example of the fifth embodiment of the power control unit 3d according to the present invention. As shown in FIG. 5, the power supply control unit 3d of the present embodiment includes a memory bus monitoring unit 18a and a counter timer unit 17a. The power control unit 3d controls whether or not power is supplied to the main memory 2. The configuration of the computer system of the present embodiment is the same as that of the computer system of the fourth embodiment, except that the power control unit 3c is replaced with the power control unit 3d. Components having the same functions as those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態のカウンタタイマ部17aは、カウンタタイマ19−1〜19−Nで構成される。通常の計算機システムでは、メインメモリは複数のメモリブロックやメモリチップで構成されていることが多く、それらを個々に給電制御できる場合も多い。また、一般的に、給電制御対象となる個々のメモリブロックまたはメモリチップは、それぞれ連続したアドレス範囲でCPUからアクセスできるようになっている。そのため、個々のメモリブロックまたはメモリチップに、カウンタタイマ19−1〜19−Nをそれぞれ1対1で対応付ける。   The counter timer unit 17a of the present embodiment includes counter timers 19-1 to 19-N. In a normal computer system, the main memory is often composed of a plurality of memory blocks and memory chips, and power supply control can be performed for each of them. In general, each memory block or memory chip that is a power supply control target can be accessed from a CPU in a continuous address range. Therefore, the counter timers 19-1 to 19-N are associated with each memory block or memory chip on a one-to-one basis.

また、メモリバス監視部18aは、CPU1bからのメインメモリ2へのアクセスを検出した際に、そのアドレス値からどのメモリブロックまたはメモリチップへのアクセスかを算出する。そして、カウンタタイマ19−1〜19−Nのうち算出したメモリブロックまたはメモリチップに対応付けられたカウンタタイマをリセットする。各カウンタタイマは、実施の形態4のカウンタタイマ部17と同様に機能し、起動値には所定の初期値が設定され、一定の時間ごとにカウントダウンを行い、カウント値が0の場合には対応するメモリブロックまたはメモリチップへの給電を停止する。   Further, when the memory bus monitoring unit 18a detects an access to the main memory 2 from the CPU 1b, the memory bus monitoring unit 18a calculates which memory block or memory chip is accessed from the address value. Then, the counter timer associated with the calculated memory block or memory chip among the counter timers 19-1 to 19-N is reset. Each counter timer functions in the same manner as the counter timer unit 17 of the fourth embodiment, and a predetermined initial value is set as the start value, counts down at regular time intervals, and the counter value is 0. The power supply to the memory block or memory chip to be stopped is stopped.

このように、本実施の形態では、カウンタタイマ部17aがメインメモリ2を構成する各メモリブロックまたは各メモリチップにそれぞれ対応するカウンタタイマ19−1〜19−Nを備え、カウンタタイマ19−1〜19−Nは起動されると初期値からカウントダウンを行い、カウント値が0になると対応するメモリブロックまたはメモリチップへの給電を停止する。また、メモリバス監視部18aは、メインメモリ2へのアクセスを検出すると、アドレス値に基づいてアクセスするメモリブロックまたはメモリチップを求め、対応するカウンタタイマ19−1〜19−Nをリセットする。このため、CPU1bからメインメモリ2を構成するメモリブロックまたはメモリチップへのアクセスが一定時間以上なされなかった場合に、そのメモリブロックまたはメモリチップへの給電を停止し、省電力化を図ることができる。   As described above, in the present embodiment, the counter timer unit 17a includes the counter timers 19-1 to 19-N corresponding to the memory blocks or the memory chips constituting the main memory 2, respectively. 19-N counts down from the initial value when activated, and stops power supply to the corresponding memory block or memory chip when the count value reaches zero. Further, when detecting access to the main memory 2, the memory bus monitoring unit 18a obtains a memory block or memory chip to be accessed based on the address value, and resets the corresponding counter timers 19-1 to 19-N. For this reason, when the CPU 1b does not access the memory block or memory chip constituting the main memory 2 for a predetermined time or longer, power supply to the memory block or memory chip can be stopped to save power. .

実施の形態6.
図6は、本発明にかかる計算機システムの実施の形態6の構成例を示す図である。図6に示すように本実施の形態の計算機システムは、実施の形態1の計算機システムの電源制御部3をそれぞれCPU1に替え、IO制御部20を追加する以外は実施の形態1の計算機システムと同様である。また、本実施の形態の電源制御部3eは、IO制御部20からCPU1への割込み信号を監視する外部割込み受信部21を備えている。また、電源制御部3eは、メインメモリ2への電源供給の有無を制御する。実施の形態1と同様の機能を有する構成要素は同一の符号を付して説明を省略する。
Embodiment 6 FIG.
FIG. 6 is a diagram showing a configuration example of the computer system according to the sixth embodiment of the present invention. As shown in FIG. 6, the computer system according to the present embodiment is the same as the computer system according to the first embodiment except that the power supply control unit 3 of the computer system according to the first embodiment is replaced with the CPU 1 and an IO control unit 20 is added. It is the same. The power supply control unit 3e according to the present embodiment includes an external interrupt reception unit 21 that monitors an interrupt signal from the IO control unit 20 to the CPU 1. The power control unit 3e controls whether or not power is supplied to the main memory 2. Components having the same functions as those in the first embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態では、たとえば、実施の形態1の電源制御方法によって、CPU1が省電力モードになった場合にメインメモリ2への給電を停止する制御を行っていることとする。なお、実施の形態2または4で説明した電源制御方法で、メインメモリ2への給電の停止制御を行っていることとしてもよい。   In this embodiment, for example, it is assumed that control is performed to stop power supply to the main memory 2 when the CPU 1 enters the power saving mode by the power supply control method of the first embodiment. The power supply control method described in Embodiment 2 or 4 may be used to stop power supply to the main memory 2.

CPU1が省電力モードから通常動作モードへ戻るためには、一般に外部からの割込みを必要とし、この割込みは、OS(Operating System)タイマや各種入力装置によって発生され、IO制御部20を介してCPU1に送信される。本実施の形態では、IO制御部20からCPU1への割込み信号線を外部割込み受信部21にも接続し、外部割込み受信部21は、IO制御部20からの割込み信号を監視する。そして、外部割込み受信部21は、割込み信号に基づいてIO制御部20からCPU1への割込み発生を検出すると、メインメモリ2への給電を再開し、CPU1の通常動作モード復帰によるメインメモリ2へのアクセスに備える。   In order for the CPU 1 to return from the power saving mode to the normal operation mode, an external interrupt is generally required. This interrupt is generated by an OS (Operating System) timer or various input devices, and the CPU 1 via the IO control unit 20 Sent to. In the present embodiment, an interrupt signal line from the IO control unit 20 to the CPU 1 is also connected to the external interrupt reception unit 21, and the external interrupt reception unit 21 monitors an interrupt signal from the IO control unit 20. When the external interrupt reception unit 21 detects the occurrence of an interrupt from the IO control unit 20 to the CPU 1 based on the interrupt signal, the external interrupt reception unit 21 resumes power supply to the main memory 2 and returns to the main memory 2 by the CPU 1 returning to the normal operation mode. Prepare for access.

通常のCPUでは、割込み信号線から割込み信号を受信して、省電力モードから通常動作モードへ移行するまでに、数クロック分の時間を必要とする。上述のように、IO制御部20からCPU1への割込み発生を検出するメインメモリ2への給電を再開するような電源制御を行うことにより、CPU1が通常モードに復帰した後のメインメモリ2へのアクセスを安全に行うことができる。   A normal CPU requires several clocks to receive an interrupt signal from the interrupt signal line and shift from the power saving mode to the normal operation mode. As described above, by performing power supply control that resumes power supply to the main memory 2 that detects the occurrence of an interrupt from the IO control unit 20 to the CPU 1, the CPU 1 returns to the main memory 2 after returning to the normal mode. Access can be done safely.

このように、本実施の形態では、電源制御部3eの外部割込み受信部21が、IO制御部20からCPU1への割込み発生を検出し、電源制御部3eは、割込みを検出するとメインメモリ2への給電を再開するようにした。このため、実施の形態1の効果に加え、さらに、CPU1が通常モードに復帰した後のメインメモリ2へのアクセスを安全に行うことができる。   Thus, in the present embodiment, the external interrupt receiving unit 21 of the power supply control unit 3e detects the occurrence of an interrupt from the IO control unit 20 to the CPU 1, and when the power supply control unit 3e detects an interrupt, the external control unit 3e returns to the main memory 2. The power supply of was resumed. Therefore, in addition to the effects of the first embodiment, it is possible to safely access the main memory 2 after the CPU 1 returns to the normal mode.

実施の形態7.
図7は、本発明にかかる計算機システムの実施の形態7の構成例を示す図である。図7に示すように本実施の形態の計算機システムは、実施の形態6の計算機システムの電源制御部3eを電源制御部3fに替え、ゲート22を追加する以外は実施の形態6の計算機システムと同様である。また、本実施の形態の電源制御部3fは、IO制御部20からCPU1への割込み信号を監視する外部割込み受信部21aとWait回路23を備えている。また、電源制御部3fは、メインメモリ2への電源供給の有無を制御する。実施の形態6と同様の機能を有する構成要素は同一の符号を付して説明を省略する。
Embodiment 7 FIG.
FIG. 7 is a diagram showing a configuration example of the seventh embodiment of the computer system according to the present invention. As shown in FIG. 7, the computer system according to the present embodiment is the same as the computer system according to the sixth embodiment except that the power control unit 3e of the computer system according to the sixth embodiment is replaced with a power control unit 3f and a gate 22 is added. It is the same. In addition, the power supply control unit 3f of the present embodiment includes an external interrupt reception unit 21a and a wait circuit 23 that monitor an interrupt signal from the IO control unit 20 to the CPU 1. Further, the power control unit 3 f controls whether or not power is supplied to the main memory 2. Components having functions similar to those of the sixth embodiment are denoted by the same reference numerals, and description thereof is omitted.

本実施の形態では、実施の形態6と同様、たとえば、実施の形態1の電源制御方法によって、CPU1が省電力モードになった場合にメインメモリ2への給電を停止する制御を行っていることとする。なお、実施の形態2または4で説明した電源制御方法で、メインメモリ2への給電の停止制御を行っていることとしてもよい。   In the present embodiment, as in the sixth embodiment, for example, by the power control method of the first embodiment, when the CPU 1 enters the power saving mode, the power supply to the main memory 2 is stopped. And The power supply control method described in Embodiment 2 or 4 may be used to stop power supply to the main memory 2.

本実施の形態では、実施の形態6と同様に、IO制御部20からCPU1に送信される割込み信号を監視するが、本実施の形態では、IO制御部20からCPU1への割込み信号線にゲート22を設け、外部割込み受信部21aが、ゲート22のON/OFFを制御する。   In the present embodiment, as in the sixth embodiment, an interrupt signal transmitted from the IO control unit 20 to the CPU 1 is monitored. In this embodiment, the interrupt signal line from the IO control unit 20 to the CPU 1 is gated. 22, and the external interrupt receiving unit 21 a controls ON / OFF of the gate 22.

通常の電源制御では、給電を再開してから、デバイスが必要とする電圧が安定するまでに多少の時間を要するものが多い。本実施の形態の電源制御部3fは、CPU1が省電力モードになるとメインメモリ2への給電をOFFするが、その際、ゲート22をOFFとし、IO制御部20からの割込み信号がCPU1へ送信されないようにする。そして、この状態で、外部割込み受信部21aがIO制御部20からCPU1への割込みを検出すると、電源制御部3fがメインメモリ2への給電を再開するとともに、外部割込み受信部21aはWait回路23を起動する。   In normal power supply control, there are many cases where some time is required until the voltage required by the device is stabilized after power supply is resumed. The power supply control unit 3f of the present embodiment turns off the power supply to the main memory 2 when the CPU 1 enters the power saving mode. At this time, the gate 22 is turned off and an interrupt signal from the IO control unit 20 is transmitted to the CPU 1. Do not be. In this state, when the external interrupt receiving unit 21 a detects an interrupt from the IO control unit 20 to the CPU 1, the power supply control unit 3 f resumes power feeding to the main memory 2, and the external interrupt receiving unit 21 a Start up.

Wait回路23は、起動されるとメインメモリ2への給電電圧が安定化するまで待機する。Wait回路23は、たとえば、メインメモリ2への給電開始から給電電圧の安定化までの時間に基づいて所定の待機時間を設定して待機してもよいし、給電電圧をモニタし、所定の安定化の条件を満たすまで待機するようにしてもよい。Wait回路23が待機を終了すると、外部割込み受信部21aは、ゲート22をONにする。これにより、IO制御部20からの割込みをCPU1へ送信されるようになる。   When activated, the wait circuit 23 waits until the power supply voltage to the main memory 2 is stabilized. The Wait circuit 23 may set and wait for a predetermined standby time based on the time from the start of power supply to the main memory 2 to the stabilization of the power supply voltage, or may monitor the power supply voltage and perform a predetermined stability. You may make it wait until the conditions of conversion are satisfied. When the wait circuit 23 finishes waiting, the external interrupt receiver 21a turns on the gate 22. As a result, an interrupt from the IO control unit 20 is transmitted to the CPU 1.

このように、本実施の形態では、IO制御部20からCPU1への割込み信号線にゲート22を設け、外部割込み受信部21aは、CPU1が省電力モードになるとゲート22をOFFし、IO制御部20からCPU1への割込みを検出した場合には、メインメモリ2への電源供給を開始し、供給電圧が安定した後にゲート22をONするようにした。このため、実施の形態1の効果に加え、メインメモリ2に給電を再開してからデバイスが必要とする電圧が安定するまでに時間を要する場合でも、省電力モードから復帰した後のメインメモリ2へのアクセスをより安全に行なえるようにすることができる。   Thus, in this embodiment, the gate 22 is provided on the interrupt signal line from the IO control unit 20 to the CPU 1, and the external interrupt reception unit 21 a turns off the gate 22 when the CPU 1 enters the power saving mode, and the IO control unit When an interrupt from the CPU 20 to the CPU 1 is detected, power supply to the main memory 2 is started, and the gate 22 is turned on after the supply voltage is stabilized. For this reason, in addition to the effects of the first embodiment, the main memory 2 after returning from the power saving mode even when it takes time until the voltage required by the device is stabilized after the power supply to the main memory 2 is resumed. Can be accessed more securely.

実施の形態8.
図8は、本発明にかかる計算機システムの実施の形態8のOn Demand Paging機能に関連する機能構成例を示す図である。図8に示すように、本実施の形態のOn Demand Paging機能に関連する構成要素は、オペレーティングシステム30,メインメモリ2,HDD(Hard disk drive)32である。
Embodiment 8 FIG.
FIG. 8 is a diagram showing a functional configuration example related to the On Demand Paging function of the eighth embodiment of the computer system according to the present invention. As shown in FIG. 8, the components related to the On Demand Paging function of the present embodiment are an operating system 30, a main memory 2, and an HDD (Hard disk drive) 32.

本実施の形態では、実施の形態5の計算機システムは、実施の形態5の構成を有することとし、実施の形態5で説明した電源制御方法により、メインメモリ2への給電をメモリブロックまたはメモリチップ(以下、メインメモリBANKという)単位で制御していることとする。実施の形態5と同様の構成要素および動作については説明を省略する。   In the present embodiment, the computer system of the fifth embodiment has the configuration of the fifth embodiment, and the power supply control method described in the fifth embodiment supplies power to the main memory 2 in the memory block or memory chip. It is assumed that control is performed in units (hereinafter referred to as main memory BANK). The description of the same components and operations as those in the fifth embodiment is omitted.

仮想記憶システムを実現しているオペレーティングシステムでは、On Demand Paging機能により、実際のメインメモリのサイズよりも大きなサイズのプログラム・データが仮想的なメインメモリへ配置されているように、アプリケーションソフトウェアへ見せている。On Demand Paging機能では、HDD等の外部記憶装置上に、メインメモリ以上のサイズのSwap領域またはPageFileと呼ばれる領域を用意しておき、ページ単位(仮想記憶システムを実現する仮想アドレスと物理アドレス間の変換単位)でメインメモリとSwap領域またはPageFileとの間で、必要に応じてデータのコピーを行なっている。この外部記憶装置上のSwap領域またはPageFileからメインメモリへデータをコピーする処理をPage In処理、メインメモリからSwap領域またはPageFileへデータをコピーする処理をPage Out処理と呼ぶ。   In an operating system that implements a virtual storage system, the On Demand Paging function makes it appear to application software as if program data larger than the actual main memory size is located in the virtual main memory. ing. In the On Demand Paging function, an area called Swap area or PageFile larger than the main memory is prepared on an external storage device such as an HDD, and a page unit (between a virtual address and a physical address that implements a virtual storage system) Data is copied as needed between the main memory and the Swap area or PageFile. The process of copying data from the Swap area or PageFile on the external storage device to the main memory is called Page In process, and the process of copying data from the main memory to the Swap area or PageFile is called Page Out process.

Page In処理は、CPUが、メインメモリ上になくSwap領域またはPageFile内にあるプログラムまたはデータを必要とする場合で起動される。Page In処理では、メインメモリ内の空き領域を探索し、CPUが必要とするプログラムまたはデータをSwap領域またはPageFileからメインメモリへコピーし、仮想アドレス/物理アドレス変換の整合を取れるようにアドレス変換テーブルを更新する。   The Page In process is activated when the CPU needs a program or data that is not in the main memory but is in the Swap area or PageFile. Page In processing searches for free space in the main memory, copies the program or data required by the CPU from the Swap area or PageFile to the main memory, and addresses conversion table so that the virtual address / physical address conversion can be matched Update.

また、Page Out処理は、CPUがメインメモリ上に新たなメモリを必要とするにもかかわらず空き領域が存在しない場合に起動される。Page Out処理では、あらかじめ決められた法則でメインメモリから特定のページを抽出し、抽出したページをメインメモリからSwap領域またはPageFileへコピーした後、抽出したページを空きメモリとして再利用できるようにする。   The Page Out process is started when the CPU needs a new memory on the main memory but there is no free area. In Page Out processing, a specific page is extracted from the main memory according to a predetermined rule, and after the extracted page is copied from the main memory to the Swap area or PageFile, the extracted page can be reused as free memory. .

本実施の形態でも、上述のようなPage In処理およびPage In処理を行っていることとする。図8に示すように、本実施の形態のメモリは複数のメインメモリBANKで構成されることとし、それぞれを識別する番号であるBANK Noが付与されていることとする。図8に示すように、本実施の形態のオペレーティングシステム30は、On Demand Paging処理を実行するOn Demand Paging機能部31とBANK管理テーブルを保持するBANK管理テーブル記憶部34とを備え、On Demand Paging機能部31は、さらにPage In処理部33を備えている。BANK管理テーブルは、メインメモリ2の空き領域を検索する際の、検索順序を定義する管理テーブルであり、図8に示すように、優先度ごとにBANK Noが格納されている。なお、ここでは、優先度の数値が小さいほど優先度が高いこととし、またBANK管理テーブルは優先度の高い順(優先度の数値の小さい順)にエントリが格納されていることとする。   Also in this embodiment, it is assumed that the Page In process and the Page In process as described above are performed. As shown in FIG. 8, it is assumed that the memory according to the present embodiment is composed of a plurality of main memories BANK, and a BANK No that is a number for identifying each of them is given. As shown in FIG. 8, the operating system 30 of the present embodiment includes an On Demand Paging function unit 31 that executes On Demand Paging processing and a BANK management table storage unit 34 that holds a BANK management table, and includes On Demand Paging. The function unit 31 further includes a Page In processing unit 33. The BANK management table is a management table that defines a search order when searching for free areas in the main memory 2, and stores a BANK No for each priority as shown in FIG. Here, it is assumed that the smaller the numerical value of the priority is, the higher the priority is, and the BANK management table stores entries in the order of high priority (the order of the numerical value of the priority is small).

つづいて、本実施の形態のPage In処理の動作を説明する。図9は、本実施の形態のPage In処理手順の一例を示すフローチャートである。まず、メインメモリ2上になくSwap領域またはPageFileに存在するプログラムまたはデータを、CPU1が必要とした場合、本実施の形態のPage In処理が起動される。たとえば、仮想アドレスと物理アドレスの変換ミスによるCPU例外が発生し、それをオペレーティングシステム30が検出することにより、メインメモリ2上になくSwap領域またはPageFileに存在するプログラムまたはデータを、CPU1が必要としたことを検知する。   Next, the operation of the Page In process according to this embodiment will be described. FIG. 9 is a flowchart illustrating an example of the Page In processing procedure of the present embodiment. First, when the CPU 1 needs a program or data that is not in the main memory 2 but exists in the Swap area or PageFile, the Page In process of this embodiment is started. For example, when a CPU exception occurs due to a translation error between a virtual address and a physical address and the operating system 30 detects this, the CPU 1 needs a program or data that is not in the main memory 2 but exists in the Swap area or PageFile. Detecting that

Page In処理が起動されると、まず、Page In処理部33は、変数iを0に初期化する(ステップS11)。つぎに、Page In処理部33は、BANK管理テーブルを検索して優先度がiであるメインメモリBANKのBANK Noを得る(ステップS12)。   When the Page In process is activated, first, the Page In processing unit 33 initializes a variable i to 0 (step S11). Next, the Page In processing unit 33 searches the BANK management table and obtains a BANK No of the main memory BANK having the priority i (step S12).

つぎに、Page In処理部33は、BANK管理テーブルに含まれる全てのBANK Noに対応するメインメモリBANKについて後述のステップS14,S15の処理が終了したか否かを判断する(ステップS13)。ステップS13の判断は、BANK管理テーブルは優先度の数値の低い順に格納されているため、ステップS12で優先度iのBANK Noが見つからなかった場合には、全てのBANK Noについて処理が終了したと判断できる。BANK管理テーブルに含まれる全てのBANK Noについての処理が終了したと判断した場合(ステップS13 Yes)には、処理を終了する。   Next, the Page In processing unit 33 determines whether or not the processing of steps S14 and S15 described later has been completed for the main memory BANK corresponding to all BANK Nos included in the BANK management table (step S13). The determination in step S13 is that the BANK management table is stored in ascending order of the numerical values of priority. Therefore, if no BANK No of priority i is found in step S12, the processing is completed for all BANK Nos. I can judge. If it is determined that the processing for all BANK Nos included in the BANK management table has been completed (step S13 Yes), the processing is terminated.

また、ステップS13で、BANK管理テーブルに含まれる全てのBANK Noについての処理が終了していないと判断した場合(ステップS13 No)には、Page In処理部33は、ステップS12で得たBANK Noに対応するメインメモリBANK内の空き領域を探索する(ステップS14)。そして、Page In処理部33は、ステップS14で探索した結果に基づいて、ステップS12で得たBANK Noに対応するメインメモリBANKに空き領域が存在するか否かを判断する(ステップS15)。ステップS12で得たBANK Noに対応するメインメモリBANKに空き領域が存在しないと判断した場合(ステップS15 No)には、i=i+1とし(ステップS16)、ステップS12に戻り、つぎの優先度についてステップS16までの処理を繰り返す。   If it is determined in step S13 that the processing for all BANK Nos included in the BANK management table has not been completed (No in step S13), the Page In processing unit 33 determines the BANK No obtained in step S12. An empty area in the main memory BANK corresponding to is searched (step S14). Then, the Page In processing unit 33 determines whether or not there is an empty area in the main memory BANK corresponding to BANK No obtained in step S12 based on the search result in step S14 (step S15). If it is determined that there is no free area in the main memory BANK corresponding to BANK No obtained in step S12 (No in step S15), i = i + 1 is set (step S16), the process returns to step S12, and the next priority is set. The processing up to step S16 is repeated.

ステップS15で、ステップS12で得たBANK Noに対応するメインメモリBANKに空き領域が存在すると判断した場合(ステップS15 Yes)には、Page In処理部33は、HDD32上のSwap領域またはPageFileから所望のプログラムまたはデータをステップS14で探索したメインメモリBANKの空き領域へコピーする(ステップS17)。そして、Page In処理部33は、ステップS14で探索したメインメモリBANKの空き領域を、CPU1が必要とする処理に用いることができるよう、アドレス変換テーブルを更新して(ステップS18)、Page In処理を終了する。   If it is determined in step S15 that a free area exists in the main memory BANK corresponding to BANK No obtained in step S12 (Yes in step S15), the Page In processing unit 33 selects a desired area from the Swap area or PageFile on the HDD 32. Are copied to the empty area of the main memory BANK searched in step S14 (step S17). Then, the Page In processing unit 33 updates the address conversion table so that the free area of the main memory BANK searched in Step S14 can be used for the processing required by the CPU 1 (Step S18), and the Page In processing Exit.

なお、ステップS13で、BANK管理テーブルに含まれる全てのBANK Noについての処理が終了したと判断した場合(ステップS13 Yes)は、Page In処理は異常終了となる。この場合、Page In処理の呼出し元へメモリ不足としてエラーリターンするか、On Demand Paging機能部31のもう1つの処理機能であるPage Out処理を行い強制的に空きメモリを作成する。   If it is determined in step S13 that the process for all BANK Nos included in the BANK management table has been completed (Yes in step S13), the Page In process ends abnormally. In this case, an error is returned to the caller of the Page In process as a memory shortage, or Page Out processing, which is another processing function of the On Demand Paging function unit 31, is performed to forcibly create free memory.

以上のように、BANK管理テーブルの優先度に基づいてPage In処理を行うため、時系列的にみるとPage Inされるメモリ領域が、特定のメインメモリBANKに集中する結果が得られる。一方、プログラムにはアクセスの局所性と呼ばれる、統計的にみて近傍のプログラム,データへ連続してアクセスする特性が知られており、上記の特定のメインメモリBANKへのPage Inの集中により、その特定のメインメモリBANK以外のメインメモリBANKへのアクセス頻度が減少する。したがって、実施の形態5で説明した電源制御部3dがメインメモリBANKへの給電を停止する期間を長くすることができる。   As described above, since the Page In process is performed based on the priority of the BANK management table, a result of concentrating the memory area to be Page In concentrated on a specific main memory BANK is obtained in time series. On the other hand, a program is known to have a characteristic of accessing neighboring programs and data in a statistical manner called locality of access, and due to the concentration of Page In to the specific main memory BANK, Access frequency to the main memory BANK other than the specific main memory BANK is reduced. Therefore, it is possible to lengthen the period during which the power supply control unit 3d described in the fifth embodiment stops supplying power to the main memory BANK.

このように、本実施の形態では、優先度に対応するBANK NoをBANK管理テーブルとして保持し、BANK管理テーブルに基づいて、優先度順にPage In処理で用いるメインメモリBANKを選択するようにした。このため、特定のメインメモリBANK以外のメインメモリBANKへのアクセス頻度が減少し、電源制御部3dがメインメモリBANKへの給電を停止する期間を長くすることができ、実施の形態5よりさらに効率的にメインメモリ2の省電力化を図ることができる。   As described above, in this embodiment, the BANK No corresponding to the priority is held as the BANK management table, and the main memory BANK used in the Page In process is selected in the order of priority based on the BANK management table. For this reason, the frequency of access to the main memory BANK other than the specific main memory BANK is reduced, and the period during which the power supply control unit 3d stops supplying power to the main memory BANK can be lengthened, which is more efficient than the fifth embodiment. In particular, power saving of the main memory 2 can be achieved.

実施の形態9.
図10は、本発明にかかる計算機システムの実施の形態9のOn Demand Paging機能のPage Out処理に関連する機能構成例を示す図である。図10に示すように、本実施の形態のOn Demand Paging機能のPage Out処理に関連する構成要素は、オペレーティングシステム30a,メインメモリ2,HDD32である。
Embodiment 9 FIG.
FIG. 10 is a diagram showing a functional configuration example related to the page out process of the On Demand Paging function of the computer system according to the ninth embodiment of the present invention. As shown in FIG. 10, the components related to the page out process of the On Demand Paging function of this embodiment are an operating system 30a, main memory 2, and HDD 32.

本実施の形態では、実施の形態5の計算機システムは、実施の形態5の構成を有することとし、実施の形態5で説明した電源制御方法により、メインメモリ2への給電をインメモリBANK単位で制御していることとする。実施の形態5と同様の構成要素および動作については説明を省略する。   In the present embodiment, the computer system of the fifth embodiment has the configuration of the fifth embodiment, and the power supply control method described in the fifth embodiment supplies power to the main memory 2 in units of in-memory BANK. Suppose you are in control. The description of the same components and operations as those in the fifth embodiment is omitted.

図10に示すように、本実施の形態のオペレーティングシステム30aは、On Demand Paging処理を実行するOn Demand Paging機能部31aとBANK管理テーブルを保持するBANK管理テーブル記憶部34とを備え、On Demand Paging機能部31aは、さらにPage Out処理部35を備えている。本実施の形態のBANK管理テーブル記憶部34は、実施の形態8のBANK管理テーブル記憶部34と同様であるが、Page Out処理では、メインメモリ2から強制的に追い出すページが格納されているメインメモリBANKを決めるために用いる。   As shown in FIG. 10, the operating system 30a of the present embodiment includes an On Demand Paging function unit 31a that executes On Demand Paging processing and a BANK management table storage unit 34 that holds a BANK management table, and includes On Demand Paging. The functional unit 31a further includes a Page Out processing unit 35. The BANK management table storage unit 34 according to the present embodiment is the same as the BANK management table storage unit 34 according to the eighth embodiment. However, in the Page Out process, a main page that forcibly ejects the main memory 2 is stored. Used to determine the memory BANK.

つづいて、本実施の形態のPage Out処理の動作を説明する。図11は、本実施の形態のPage Out処理手順の一例を示すフローチャートである。CPU1が新たな空きメモリを必要とした場合に、メインメモリ2上に空きが無いと、本実施の形態のPage Out処理が起動される。   Next, the operation of Page Out processing according to the present embodiment will be described. FIG. 11 is a flowchart showing an example of the Page Out processing procedure of the present embodiment. When the CPU 1 needs a new free memory, if there is no free space on the main memory 2, the Page Out process of the present embodiment is started.

Page Out処理が起動されると、まず、Page Out処理部35は、変数iを0に初期化する(ステップS21)。つぎに、Page Out処理部35は、BANK管理テーブルを検索して優先度がiであるメインメモリBANKのBANK Noを得る(ステップS22)。   When the Page Out process is activated, first, the Page Out processing unit 35 initializes a variable i to 0 (step S21). Next, the Page Out processing unit 35 searches the BANK management table and obtains the BANK No. of the main memory BANK having the priority i (step S22).

つぎに、Page Out処理部35は、BANK管理テーブルに含まれる全てのBANK Noに対応するメインメモリBANKについて後述のステップS24,S25の処理が終了したか否かを判断する(ステップS23)。BANK管理テーブルに含まれる全てのBANK Noについての処理が終了したと判断した場合(ステップS23 Yes)には、処理を終了する。   Next, the Page Out processing unit 35 determines whether or not the processes of steps S24 and S25 described later have been completed for the main memory BANK corresponding to all BANK Nos included in the BANK management table (step S23). If it is determined that the processing for all BANK Nos included in the BANK management table has been completed (Yes in step S23), the processing is terminated.

また、ステップS23で、BANK管理テーブルに含まれる全てのBANK Noについての処理が終了していないと判断した場合(ステップS23 No)には、Page Out処理部35は、ステップS22で得たBANK Noに対応するメインメモリBANK内のPage Out可能なページを探索する(ステップS24)。通常のオペレーティングシステムでは、プログラムの実行性能を重視して、Page Outを禁止するページを設定している機能を有している。本実施の形態でもその機能を有することとし、ステップS24では、Page Outを禁止しているか否かの情報を参照することとする。そして、ステップS24の探索結果によりPage Out可能な対象ページがあるか否かを判断する(ステップS25)。Page Out可能な対象ページが無いと判断した場合(ステップS25 No)には、i=i+1とし(ステップS26)、ステップS22に戻り、つぎの優先度についてステップS26までの処理を繰り返す。   If it is determined in step S23 that the processing for all BANK Nos included in the BANK management table has not been completed (No in step S23), the Page Out processing unit 35 determines the BANK No obtained in step S22. A page outable page in the main memory BANK corresponding to is searched (step S24). A normal operating system has a function of setting a page for which Page Out is prohibited with emphasis on the program execution performance. This embodiment also has this function, and in step S24, information on whether or not Page Out is prohibited is referred to. Then, based on the search result in step S24, it is determined whether there is a target page that can be paged out (step S25). If it is determined that there is no target page that can be paged out (No in step S25), i = i + 1 is set (step S26), the process returns to step S22, and the process up to step S26 is repeated for the next priority.

ステップS25で、Page Out可能な対象ページがあると判断した場合(ステップS25 Yes)には、ステップS24で探索して得たPage Out可能なページをHDD32上のSwap領域またはPageFileへコピーする(ステップS27)。そして、Page Out処理部35は、最後に、ステップS24で探索して得たPage Out可能なページを、CPU1が利用できないように、アドレス変換テーブルを更新し(そのページへCPU1がアクセスした場合に、Page In処理が動作できるようにするため、CPU例外が発生するようアドレス変換テーブルを更新する。:ステップS28)、Page Out処理を終了する。   If it is determined in step S25 that there is a target page that can be paged out (step S25 Yes), the pageable page obtained by searching in step S24 is copied to the Swap area or PageFile on the HDD 32 (step S25). S27). Finally, the page out processing unit 35 updates the address conversion table so that the CPU 1 cannot use the page outable page obtained by searching in step S24 (when the CPU 1 accesses the page). In order to enable the Page In process, the address conversion table is updated so that a CPU exception occurs: Step S28), and the Page Out process is terminated.

なお、ステップS23で、BANK管理テーブルに含まれる全てのBANK Noについての処理が終了したと判断して(ステップS23 Yes)、終了した場合には、Page Out処理は異常終了となるため、呼出し元へエラーリターンする。   In step S23, it is determined that the processing for all BANK Nos included in the BANK management table has been completed (Yes in step S23). If the processing is completed, the Page Out processing ends abnormally. Return to error.

以上のように、BANK管理テーブルの優先度に基づいてPage In処理を行うため、時系列的にみるとPage Outされるメモリ領域が、特定のメインメモリBANKに集中する結果が得られる。一方、プログラムにはアクセスの局所性と呼ばれる、統計的にみて近傍のプログラム,データへ連続してアクセスする特性が知られており、上記の特定のメインメモリBANKへのPage Outの集中により、その特定のメインメモリBANK以外のメインメモリBANKへのアクセス頻度が減少する。したがって、実施の形態5で説明した電源制御部3dがメインメモリBANKへの給電を停止する期間を長くすることができる。   As described above, since the Page In process is performed based on the priority of the BANK management table, the result is that the memory area to be paged out is concentrated in a specific main memory BANK in time series. On the other hand, a program is known to have a characteristic of accessing neighboring programs and data in a statistical manner called locality of access, and due to the concentration of Page Out to the specific main memory BANK, Access frequency to the main memory BANK other than the specific main memory BANK is reduced. Therefore, it is possible to lengthen the period during which the power supply control unit 3d described in the fifth embodiment stops supplying power to the main memory BANK.

なお、本実施の形態では、実施の形態5の電源制御方法を行う計算機システムでのPage Out処理について説明したが、実施の形態8と同様のPage In処理を行う計算機システムで本実施の形態のPage Out処理を行うようにしてもよい。この場合、Page In処理で用いるBANK管理テーブルとPage Out処理で用いるBANK管理テーブルとでは、メインメモリBANKに対応づける優先度は同じでもよいし異なってもよい。   In the present embodiment, the Page Out process in the computer system that performs the power control method according to the fifth embodiment has been described. However, the computer system that performs the same Page In process as in the eighth embodiment may be used. Page Out processing may be performed. In this case, the BANK management table used in the Page In process and the BANK management table used in the Page Out process may have the same or different priorities associated with the main memory BANK.

このように、本実施の形態では、優先度に対応するBANK NoをBANK管理テーブルとして保持し、BANK管理テーブルに基づいて、優先度順にPage Out処理で用いるメインメモリBANKを選択するようにした。このため、特定のメインメモリBANK以外のメインメモリBANKへのアクセス頻度が減少し、電源制御部3dがメインメモリBANKへの給電を停止する期間を長くすることができ、実施の形態5よりさらに効率的にメインメモリ2の省電力化を図ることができる。   As described above, in this embodiment, the BANK No corresponding to the priority is held as the BANK management table, and the main memory BANK used in the page out process is selected in order of priority based on the BANK management table. For this reason, the frequency of access to the main memory BANK other than the specific main memory BANK is reduced, and the period during which the power supply control unit 3d stops supplying power to the main memory BANK can be lengthened, which is more efficient than the fifth embodiment. In particular, power saving of the main memory 2 can be achieved.

実施の形態10.
図12は、本発明にかかる計算機システムの実施の形態10のスケジューラ機能に関連する機能構成例を示す図である。図12に示すように、本実施の形態のスケジューラ機能に関連する構成要素は、オペレーティングシステム30b,メインメモリ2である。
Embodiment 10 FIG.
FIG. 12 is a diagram showing a functional configuration example related to the scheduler function of the computer system according to the tenth embodiment of the present invention. As shown in FIG. 12, the components related to the scheduler function of the present embodiment are an operating system 30b and a main memory 2.

本実施の形態では、実施の形態5の計算機システムは、実施の形態5の構成を有することとし、実施の形態5で説明した電源制御方法により、メインメモリ2への給電をメインメモリBANK単位で制御していることとする。実施の形態5と同様の構成要素および動作については説明を省略する。   In the present embodiment, the computer system of the fifth embodiment has the configuration of the fifth embodiment, and power supply to the main memory 2 is performed in units of main memory BANK by the power control method described in the fifth embodiment. Suppose you are in control. The description of the same components and operations as those in the fifth embodiment is omitted.

図12に示すように、本実施の形態のオペレーティングシステム30bは、スケジューラ36,タスク配置テーブル記憶部37,Readyキュー38を備えている。また、Run Task39は、実行中のタスクを示している。また、本実施の形態のメインメモリ2は、実施の形態8または9と同様にメインメモリBANKごとにBANK Noが付与されていることとする。   As shown in FIG. 12, the operating system 30b of the present embodiment includes a scheduler 36, a task arrangement table storage unit 37, and a Ready queue 38. Run Task 39 indicates a task being executed. Also, in the main memory 2 of the present embodiment, a BANK No is assigned to each main memory BANK as in the eighth or ninth embodiment.

Readyキュー38は、CPU1で実行可能な状態のタスクが優先度順に並べられ、かつ同一の優先度のタスクはリスト構造でつながれている。各タスクは、識別するための番号が付与されていることとし、図12では、識別番号に#を付してしている。Readyキュー38で、Taskが#(−1)となっている箇所は、該当の優先度を有するCPU1で実行可能な状態のタスクが存在しないことを示している。   In the Ready queue 38, tasks that can be executed by the CPU 1 are arranged in order of priority, and tasks having the same priority are connected in a list structure. Each task is given a number for identification. In FIG. 12, the identification number is given #. In the Ready queue 38, a portion where Task is # (-1) indicates that there is no task that can be executed by the CPU 1 having the corresponding priority.

また、図12の例では、メインメモリ2は、BANK NoがNo.1のメインメモリBANKにタスク#1とタスク#2が配置されており、BANK NoがNo.2のメインメモリBANKにタスク#3とタスク#4が配置されていることとする。さらに、Run Task39として、タスク番号#1のタスクが実行されていることとする。タスク配置テーブル記憶部37に格納されているタスク配置テーブルは、タスク番号とそのタスク番号のタスクが配置されているBANK Noが格納されている。この例のように、一般には、1つのメインメモリBANKに複数のタスク領域が配置されている。   In the example of FIG. 12, the main memory 2 has the BANK No. Task # 1 and Task # 2 are allocated in the main memory BANK 1 and BANK No. It is assumed that task # 3 and task # 4 are arranged in the second main memory BANK. Furthermore, it is assumed that the task of task number # 1 is being executed as Run Task 39. The task allocation table stored in the task allocation table storage unit 37 stores a task number and a BANK No in which a task with the task number is allocated. As in this example, generally, a plurality of task areas are arranged in one main memory BANK.

つづいて、本実施の形態のスケジューラ36の動作を説明する。図13は、本実施の形態のスケジューラ36の処理手順の一例を示すフローチャートである。たとえば、現在実行中のタスクであるRun Task39が終了したり、IO処理等の完了を待ち合わせた結果CPUの使用権を他のタスクへ受け渡す必要が生じたりした場合などに、オペレーティングシステム30bのスケジューラ36の処理が起動される。   Next, the operation of the scheduler 36 of this embodiment will be described. FIG. 13 is a flowchart illustrating an example of a processing procedure of the scheduler 36 according to the present embodiment. For example, the scheduler of the operating system 30b is used when the run task 39, which is currently being executed, is terminated, or when the CPU usage right needs to be transferred to another task as a result of waiting for completion of IO processing or the like. The process 36 is started.

処理が起動されると、まず、スケジューラ36は、タスク配置テーブルを参照し、Run Task39が配置されているBANK Noを取得し、変数iに取得したBANK Noを代入する(ステップS31)。つぎに、スケジューラ36は、変数jをj=0に初期化する(ステップS32)。つぎに、スケジューラ36は、Readyキュー38を検索して優先度がjであるタスクのタスク番号を得る(ステップS33)。   When the process is started, the scheduler 36 first refers to the task allocation table, acquires the BANK No where the Run Task 39 is allocated, and substitutes the acquired BANK No for the variable i (step S31). Next, the scheduler 36 initializes the variable j to j = 0 (step S32). Next, the scheduler 36 searches the Ready queue 38 and obtains the task number of the task whose priority is j (step S33).

そして、スケジューラ36は、ステップS33で得たタスク番号が(−1)に等しいか否かを判断する(ステップS34)。ステップS33で得たタスク番号が(−1)に等しいと判断した場合(ステップS34 Yes)には、優先度jがReadyキュー38に含まれる最後の優先度であるか否かを判断する(ステップS35)。優先度jがReadyキュー38に含まれる最後の優先度でないと判断した場合(ステップS35 No)には、スケジューラ36は、j=j+1とし(ステップS36)、ステップS33に戻りステップS36までの処理を繰り返す。   Then, the scheduler 36 determines whether or not the task number obtained in step S33 is equal to (-1) (step S34). If it is determined that the task number obtained in step S33 is equal to (-1) (Yes in step S34), it is determined whether or not the priority j is the last priority included in the ready queue 38 (step S34). S35). When it is determined that the priority j is not the last priority included in the Ready queue 38 (No in step S35), the scheduler 36 sets j = j + 1 (step S36), returns to step S33, and performs the processing up to step S36. repeat.

ステップS35で、優先度jがReadyキューに含まれる最後の優先度であると判断した場合(ステップS35 Yes)には、Readyキュー38に含まれる全エントリを探索した結果、次に実行するタスクが存在しないこととなるため、CPU1をアイドル状態へ移行させて(ステップS37)、スケジュール処理を終了する。   If it is determined in step S35 that the priority j is the last priority included in the Ready queue (Yes in step S35), as a result of searching all entries included in the Ready queue 38, the next task to be executed is Since it does not exist, the CPU 1 is shifted to the idle state (step S37), and the scheduling process is terminated.

また、ステップS34で、ステップS33で得たタスク番号が(−1)でないと判断した場合(ステップS34 No)には、スケジューラ36は、そのタスク番号のタスクが配置されている BANK Noをタスク配置テーブルから取得し、変数kに取得したBANK Noを代入する(ステップS38)。つぎに、スケジューラ36は、k=iであるか否かを判断し(ステップS39)、k=iでない場合には(ステップS39 No)、優先度jに対応する他のタスクがReadyキュー38にあるか否かを判断する(ステップS40)。優先度jに対応する他のタスクがReadyキュー38にあると判断した場合(ステップS40 Yes)には、Readyキュー38に格納されている優先度jのタスクで、ステップS38の処理を行っていないタスクについてステップS38からステップS40の処理を繰り返す。   If it is determined in step S34 that the task number obtained in step S33 is not (-1) (No in step S34), the scheduler 36 assigns the BANK No in which the task with the task number is arranged as a task arrangement. The BANK No acquired from the table and substituted for the variable k is substituted (step S38). Next, the scheduler 36 determines whether or not k = i (step S39). If k = i is not satisfied (No in step S39), another task corresponding to the priority j is placed in the ready queue 38. It is determined whether or not there is (step S40). If it is determined that another task corresponding to the priority j is in the Ready queue 38 (Yes in Step S40), the task of the priority j stored in the Ready queue 38 is not processed in Step S38. The process from step S38 to step S40 is repeated for the task.

ステップS40で優先度jに対応する他のタスクがReadyキュー38にないと判断した場合(ステップS40 No)には、Readyキュー38には優先度jでかつk=iの条件を満たすタスクが存在しないため、Readyキュー38に含まれる優先度jに対応する先頭タスクのタスク番号を求め、次のタスクとして決定する(ステップS41)。そして、現在のRun Task39から決定したタスクへディスパッチを行う(ステップS42)。そして、スケジューラ36は、決定したタスクをReadyキュー38から削除する(ステップS43)。そして、現在実行中のRun Task39を決定したタスクに入替え(ステップS44)、スケジュール処理を終了する。   If it is determined in step S40 that no other task corresponding to the priority j is in the ready queue 38 (No in step S40), there is a task in the ready queue 38 that satisfies the condition of priority j and k = i. Therefore, the task number of the first task corresponding to the priority j included in the Ready queue 38 is obtained and determined as the next task (step S41). Then, dispatch is performed to the task determined from the current Run Task 39 (step S42). Then, the scheduler 36 deletes the determined task from the Ready queue 38 (step S43). Then, the currently executed Run Task 39 is replaced with the determined task (Step S44), and the scheduling process is terminated.

ステップS39で、k=iであると判断した場合(ステップS39 Yes)には、ステップS38で取得したkに対応するタスクを次のタスクとして決定し、ステップS42に進む。   If it is determined in step S39 that k = i (Yes in step S39), the task corresponding to k acquired in step S38 is determined as the next task, and the process proceeds to step S42.

図12に示した状態では、ステップS34では、j=2でタスク#4を得て、ステップS38に進む。そして、ここでは、Run Task39としてタスク#1が実行中であるとしているため、i=1(BANK NoがNo.1)である。ステップS38では、BANK Noとしてk=No.2を得る。したがって、初回のステップS39では、kはiに等しくなく、ステップS40に進み、優先度j=2のタスク番号#2がReadyキュー38に存在するため、タスク番号#2についてステップS38,S39の処理を再度行う。そして、ステップS39では、k=iとなるため、ステップS42で、タスク#1からタスク#2へディスパッチを行うことになる。   In the state shown in FIG. 12, in step S34, task = 2 is obtained with j = 2, and the process proceeds to step S38. Here, since task # 1 is being executed as Run Task 39, i = 1 (BANK No is No. 1). In step S38, BANK No. is set as k = No. Get 2. Therefore, in the first step S39, k is not equal to i, and the process proceeds to step S40. Since task number # 2 with priority j = 2 exists in the ready queue 38, the processing of steps S38 and S39 is performed for task number # 2. Again. Since k = i in step S39, dispatch is performed from task # 1 to task # 2 in step S42.

以上のような処理を行うと、同じ優先度でk=iのタスクがある場合には、k=iのタスクを次のタスクとして決定するようにしているので、同じBANK NoのメインメモリBANKに配置されているタスクへディスパッチを行うようになる。このため、同一メインメモリBANK内の処理が続く確率があがり、それ以外のメインメモリBANKへのアクセス頻度が減少する。   When the processing as described above is performed, if there is a task with k = i with the same priority, the task with k = i is determined as the next task, so the main memory BANK with the same BANK No. Dispatch to the task that has been placed. For this reason, the probability that processing in the same main memory BANK will continue increases, and the access frequency to other main memories BANK decreases.

なお、本実施の形態では、Readyキュー38とタスク配置テーブルを用いて上述のようなスケジューラ36の処理を行うようにしたが、優先度とそれに対応するタスク番号が管理され、また、タスク番号に対応するタスクが配置されているBANK Noが管理されていれば、これに限らずどのような構成としてもよい。図14は、本実施の形態のReadyキュー38とタスク配置テーブルを統合したReadyキュー38aを示す図である。たとえば、図14に示すように、Readyキュー38aに、優先度ごとに、その優先度に対応するタスク番号を格納し、さらに、そのタスク番号が配置されているBANK Noも合わせて格納しておき、Readyキュー38とタスク配置テーブルのかわりにReadyキュー38aを参照するようにしてもよい。   In this embodiment, the processing of the scheduler 36 as described above is performed using the Ready queue 38 and the task allocation table. However, the priority and the corresponding task number are managed, and the task number The configuration is not limited to this as long as the BANK No in which the corresponding task is arranged is managed. FIG. 14 is a diagram showing a ready queue 38a in which the ready queue 38 and the task allocation table of the present embodiment are integrated. For example, as shown in FIG. 14, for each priority, the task number corresponding to the priority is stored in the Ready queue 38a, and the BANK No where the task number is arranged is also stored. Instead of the Ready queue 38 and the task arrangement table, the Ready queue 38a may be referred to.

なお、本実施の形態では、スケジューラ36の処理について説明したが、Page In処理を実施の形態8と同様のPage In処理を行うようにしてもよい。また、Page Out処理を実施の形態9と同様のPage Out処理を行うようにしてもよい。また、Page In処理を実施の形態8と同様のPage In処理とし、かつ、Page Out処理を実施の形態9と同様のPage Out処理としてもよい。   In the present embodiment, the process of the scheduler 36 has been described. However, the Page In process similar to that of the eighth embodiment may be performed. Further, the Page Out process may be performed in the same way as in the ninth embodiment. Further, the Page In process may be the same as the page in process of the eighth embodiment, and the Page Out process may be the same as the page out process of the ninth embodiment.

このように、本実施の形態では、スケジューラ36は、同一の優先度のタスクのなかに、Run Task39として実行中のタスクが配置されているメインメモリBANKに配置されているタスクがある場合にそのタスクを次のタスクとして決定するようにした。このため、できるだけ同一のメインメモリBANKに存在するタスクへディスパッチできるようになり、特定のメインメモリBANK上でプログラムが連続実行される確率があがる。その結果、その特定のメインメモリBANK以外のメインメモリBANKへのアクセス頻度が減少するため、電源制御部3dが行う電源制御で、メインメモリBANKの給電が停止する頻度を上げることができ、より効率的にメインメモリ2の省電力化を図ることができる。   As described above, in the present embodiment, the scheduler 36, when there is a task arranged in the main memory BANK in which a task being executed as the Run Task 39 is arranged among the tasks having the same priority, The task is determined as the next task. For this reason, it becomes possible to dispatch to tasks existing in the same main memory BANK as much as possible, and there is a probability that a program is continuously executed on a specific main memory BANK. As a result, since the frequency of access to the main memory BANK other than the specific main memory BANK decreases, the power control performed by the power control unit 3d can increase the frequency at which the power supply to the main memory BANK is stopped. In particular, power saving of the main memory 2 can be achieved.

以上のように、本発明にかかる電源制御装置、計算機システム、電源制御方法、電源制御プログラムおよび記録媒体は、計算機システムのメインメモリに対する電源を制御する計算機システムに有用であり、特に、メインメモリに不揮発性メモリを用いる計算機システムに適している。   As described above, the power supply control device, the computer system, the power supply control method, the power supply control program, and the recording medium according to the present invention are useful for a computer system that controls the power supply to the main memory of the computer system. It is suitable for a computer system using a non-volatile memory.

本発明にかかる計算機システムの実施の形態1の構成例を示す図である。It is a figure which shows the structural example of Embodiment 1 of the computer system concerning this invention. 本発明にかかる計算機システムの実施の形態2の構成例を示す図である。It is a figure which shows the structural example of Embodiment 2 of the computer system concerning this invention. 本発明にかかる計算機システムの実施の形態3の構成例を示す図である。It is a figure which shows the structural example of Embodiment 3 of the computer system concerning this invention. 本発明にかかる計算機システムの実施の形態4の構成例を示す図である。It is a figure which shows the structural example of Embodiment 4 of the computer system concerning this invention. 本発明にかかる電源制御部の実施の形態5の構成例を示す図である。It is a figure which shows the structural example of Embodiment 5 of the power supply control part concerning this invention. 本発明にかかる計算機システムの実施の形態6の構成例を示す図である。It is a figure which shows the structural example of Embodiment 6 of the computer system concerning this invention. 本発明にかかる計算機システムの実施の形態7の構成例を示す図である。It is a figure which shows the structural example of Embodiment 7 of the computer system concerning this invention. 本発明にかかる計算機システムの実施の形態8のOn Demand Paging機能に関連する機能構成例を示す図である。It is a figure which shows the function structural example relevant to the On Demand Paging function of Embodiment 8 of the computer system concerning this invention. 実施の形態8のPage In処理手順の一例を示すフローチャートである。29 is a flowchart illustrating an example of a Page In processing procedure according to the eighth embodiment. 本発明にかかる計算機システムの実施の形態9のOn Demand Paging機能のPage Out処理に関連する機能構成例を示す図である。It is a figure which shows the function structural example relevant to the Page Out process of the On Demand Paging function of Embodiment 9 of the computer system concerning this invention. 実施の形態9のPage Out処理手順の一例を示すフローチャートである。30 is a flowchart illustrating an example of a Page Out processing procedure according to the ninth embodiment. 本発明にかかる計算機システムの実施の形態10のスケジューラ機能に関連する機能構成例を示す図である。It is a figure which shows the function structural example relevant to the scheduler function of Embodiment 10 of the computer system concerning this invention. 実施の形態10のスケジューラの処理手順の一例を示すフローチャートである。FIG. 42 is a flowchart illustrating an example of a processing procedure of a scheduler according to the tenth embodiment. 実施の形態10のReadyキューとタスク配置テーブルを統合したReadyキューを示す図である。FIG. 44 is a diagram illustrating a ready queue obtained by integrating the ready queue and the task arrangement table according to the tenth embodiment.

符号の説明Explanation of symbols

1,1a,1b CPU
2 メインメモリ
3,3a,3b,3c,3d,3e,3f 電源制御部
4 メモリバス
5 電源供給ライン
6,6a,6b CPU監視部
7 MODE端子
8 EXCLK端子
9 ゲート
10 クロック発生装置
11 第1のMODE端子
12 第2のMODE端子
13 AND回路
14,15 OR回路
16 設定レジスタ
17,17a カウンタタイマ部
18,18a メモリバス監視部
19−1〜19−N カウンタタイマ
20 IO制御部
21,21a 外部割込み受信部
22 ゲート
23 Wait回路
30,30a,30b オペレーティングシステム
31,31a On Demand Paging機能部
32 HDD
33 Page In処理部
34 BANK管理テーブル記憶部
35 Page Out処理部
36 スケジューラ
37 タスク配置テーブル記憶部
38,38a Readyキュー
39 Run Task
1,1a, 1b CPU
2 Main memory 3, 3a, 3b, 3c, 3d, 3e, 3f Power control unit 4 Memory bus 5 Power supply line 6, 6a, 6b CPU monitoring unit 7 MODE terminal 8 EXCLK terminal 9 Gate 10 Clock generator 11 First MODE terminal 12 Second MODE terminal 13 AND circuit 14, 15 OR circuit 16 Setting register 17, 17a Counter timer unit 18, 18a Memory bus monitoring unit 19-1 to 19-N Counter timer 20 IO control unit 21, 21a External interrupt Receiving unit 22 Gate 23 Wait circuit 30, 30a, 30b Operating system 31, 31a On Demand Paging function unit 32 HDD
33 Page In processing unit 34 BANK management table storage unit 35 Page Out processing unit 36 Scheduler 37 Task allocation table storage unit 38, 38a Ready queue 39 Run Task

Claims (20)

通常電力モードまたは省電力モードで動作するCPUとメインメモリとを備える計算機システムにおいて、前記メインメモリの電源供給を制御する電源制御装置であって、
前記CPUのモードを示すモード信号を検出し、前記モード信号に基づいてCPUが省電力モードに移行したと判断した場合は前記メインメモリへの電源供給の停止を指示し、前記モード信号に基づいてCPUが通常電力モードに復帰したと判断した場合は前記メインメモリへの電源供給の開始を指示するCPU監視手段、
を備え、
前記指示に基づいて前記メインメモリへの電源供給を制御することを特徴とする電源制御装置。
In a computer system including a CPU and a main memory that operate in a normal power mode or a power saving mode, a power control device that controls power supply of the main memory,
A mode signal indicating the mode of the CPU is detected, and when it is determined that the CPU has shifted to the power saving mode based on the mode signal, an instruction to stop power supply to the main memory is issued, and based on the mode signal CPU monitoring means for instructing the start of power supply to the main memory when it is determined that the CPU has returned to the normal power mode;
With
A power supply control device that controls power supply to the main memory based on the instruction.
前記モード信号を、モードごとに設定される前記CPUのモード端子の電圧値とすることを特徴とする請求項1に記載の電源制御装置。   The power control apparatus according to claim 1, wherein the mode signal is a voltage value of a mode terminal of the CPU set for each mode. 前記CPUは省電力モードとして2種類以上のモードを有することとし、
さらに、
前記CPUのモードごとにメインメモリへの電源供給を停止するか否かの設定情報を格納するための設定格納手段、
を備え、
前記CPU監視手段は、前記CPUが省電力モードに移行したと判断した場合、さらに前記設定情報に基づいてそのモードが電源供給を停止すると設定されているか否かを判断し、そのモードが電源供給を停止しないと設定されている場合は、電源供給の停止を指示しないことを特徴とする請求項2に記載の電源制御装置。
The CPU has two or more modes as power saving modes,
further,
Setting storage means for storing setting information as to whether or not to stop the power supply to the main memory for each mode of the CPU;
With
When the CPU monitoring unit determines that the CPU has shifted to the power saving mode, the CPU monitoring unit further determines, based on the setting information, whether or not the mode is set to stop power supply, and the mode supplies power. The power supply control device according to claim 2, wherein when it is set not to stop the power supply, the power supply stop is not instructed.
前記CPUは、省電力モードでは動作クロックの供給を停止することとし、また、前記モード信号を、前記CPUに動作クロックを供給するクロック信号とし、
前記CPU監視手段は、前記クロック信号の供給が停止した場合は省電力モードに移行したと判断し、前記クロック信号の供給が開始された場合は通常電力モードに復帰したと判断することを特徴とする請求項1に記載の電源制御装置。
The CPU stops supply of an operation clock in the power saving mode, and the mode signal is a clock signal for supplying an operation clock to the CPU.
The CPU monitoring unit determines that the power saving mode is entered when the supply of the clock signal is stopped, and judges that the mode is returned to the normal power mode when the supply of the clock signal is started. The power supply control device according to claim 1.
CPUとメインメモリとを備え、前記CPUがメモリバスを用いて前記メインメモリへアクセスする計算機システムにおいて、前記メインメモリの電源供給を制御する電源制御装置であって、
所定の初期値から一定時間ごとにカウント値を減じ、カウント値が0になった場合に、メインメモリへの電源供給を停止するよう指示するカウンタタイマ手段と、
前記CPUによる前記メインメモリへのアクセスを監視し、アクセスがあった場合には、前記カウンタタイマ手段のカウント値を初期値にリセットするメモリバス監視手段と、
を備えることを特徴とする電源制御装置。
In a computer system comprising a CPU and a main memory, wherein the CPU accesses the main memory using a memory bus, a power control device for controlling the power supply of the main memory,
A counter timer means for instructing to stop the power supply to the main memory when the count value is decremented from a predetermined initial value every predetermined time and the count value becomes 0;
Memory bus monitoring means for monitoring access to the main memory by the CPU and resetting the count value of the counter timer means to an initial value when there is access;
A power supply control device comprising:
前記メインメモリは、個別に給電が可能な複数のメモリバンクで構成されることとし、
前記カウンタタイマ手段を、前記メモリバンクごとに備え、
前記メモリバス監視手段は、前記CPUによるアクセスを前記メモリバンクごとに監視し、アクセスがあったメモリバンクに対応するカウンタタイマ手段を初期値にリセットすることを特徴とする請求項5に記載の電源制御装置。
The main memory is composed of a plurality of memory banks that can be individually powered,
The counter timer means is provided for each memory bank,
6. The power supply according to claim 5, wherein the memory bus monitoring means monitors access by the CPU for each memory bank and resets counter timer means corresponding to the accessed memory bank to an initial value. Control device.
前記CPUに送信される外部割込み信号の有無を監視し、前記外部割込み信号を検出したときに、前記メインメモリへの電源供給が停止している場合には、前記メインメモリへの電源供給の開始を指示する外部割込み監視手段、
をさらに備え、
さらに前記外部割込み監視手段の指示に基づいて前記メインメモリへの電源供給を制御することを特徴とする請求項1〜4のいずれか1つに記載の電源制御装置。
Monitors the presence or absence of an external interrupt signal transmitted to the CPU, and starts power supply to the main memory if the power supply to the main memory is stopped when the external interrupt signal is detected External interrupt monitoring means to instruct
Further comprising
5. The power supply control device according to claim 1, further comprising controlling power supply to the main memory based on an instruction from the external interrupt monitoring unit.
前記CPUへの前記外部割込み信号の入力の可否を制御するゲート回路手段と、
起動されると所定の設定時間だけ待機し、待機が終了すると待機終了を通知する待機手段と、
をさらに備え、
前記外部割込み監視手段は、
前記CPU監視手段が前記メインメモリへの電源供給を停止した場合には、前記ゲート回路手段を閉じることにより前記CPUへの前記外部割込み信号の入力を不可とし、
前記外部割込み信号を検出した場合には、さらに、前記待機手段を起動し、前記待機手段から待機終了通知を受信した時点で前記ゲート回路手段を開けることにより前記CPUへの前記外部割込み信号の入力を可とすることを特徴とする請求項7に記載の電源制御装置。
Gate circuit means for controlling whether or not the external interrupt signal can be input to the CPU;
Waiting means for waiting for a predetermined set time when activated, and for notifying completion of waiting when waiting is completed,
Further comprising
The external interrupt monitoring means includes
When the CPU monitoring means stops supplying power to the main memory, the external interrupt signal cannot be input to the CPU by closing the gate circuit means,
When the external interrupt signal is detected, the external interrupt signal is input to the CPU by starting the standby means and opening the gate circuit means when receiving the standby end notification from the standby means. The power supply control device according to claim 7, wherein:
CPUと個別に給電可能な複数のメモリバンクで構成されるメインメモリとを備える計算機システムであって、
請求項6に記載の電源制御装置と、
メモリバンクごとのページイン元として選択するための優先順位を示す優先度をページインバンク管理テーブルとして記憶するためのページインバンク管理テーブル記憶手段と、
ページイン要求が発生した場合に、前記ページインバンク管理テーブルを参照し、前記優先度の高いメモリバンクから順に空き領域を探索し、空き領域があると判断したメモリバンクをページイン先のメモリバンクとして決定して所定のページイン処理を行うページイン処理手段と、
を備えることを特徴とする計算機システム。
A computer system comprising a CPU and a main memory composed of a plurality of memory banks that can be individually powered,
A power supply control device according to claim 6,
Page-in bank management table storage means for storing a priority indicating a priority order for selecting as a page-in source for each memory bank as a page-in bank management table;
When a page-in request is generated, the page-in bank management table is referred to, an empty area is searched in order from the memory bank with the highest priority, and the memory bank determined to have an empty area is determined as the page-in destination memory bank. Page-in processing means for performing predetermined page-in processing by determining as
A computer system comprising:
前記メモリバンクごとのページアウト対象として選択するための優先順位を示す優先度をページアウトバンク管理テーブルとして記憶するためのページアウトバンク管理テーブル記憶手段と、
ページアウト要求が発生した場合に、前記ページアウトバンク管理テーブルを参照し、前記優先度の高いメモリバンクから順にページアウト可能領域を探索し、ページアウト可能領域があると判断したメモリバンクをページアウト対象のメモリバンクとして決定して所定のページアウト処理を行うページアウト処理手段と、
をさらに備えることを特徴とする請求項9に記載の計算機システム。
Page out bank management table storage means for storing a priority indicating a priority order for selecting as a page out target for each memory bank as a page out bank management table;
When a page-out request occurs, the page-out bank management table is referred to, a page-out possible area is searched in order from the memory bank with the highest priority, and a memory bank determined to have a page-out available area is paged out. Page-out processing means for determining a target memory bank and performing predetermined page-out processing;
The computer system according to claim 9, further comprising:
CPUと個別に給電可能な複数のメモリバンクで構成されるメインメモリとを備える計算機システムであって、
請求項6に記載の電源制御装置と、
前記メモリバンクごとのページアウト対象として選択するための優先順位を示す優先度をページアウトバンク管理テーブルとして記憶するためのページアウトバンク管理テーブル記憶手段と、
ページアウト要求が発生した場合に、前記ページアウトバンク管理テーブルを参照し、前記優先度の高いメモリバンクから順にページアウト可能領域を探索し、ページアウト可能領域があると判断したメモリバンクをページアウト対象のメモリバンクとして決定して所定のページアウト処理を行うページアウト処理手段と、
を備えることを特徴とする計算機システム。
A computer system comprising a CPU and a main memory composed of a plurality of memory banks that can be individually powered,
A power supply control device according to claim 6,
Page out bank management table storage means for storing a priority indicating a priority order for selecting as a page out target for each memory bank as a page out bank management table;
When a page-out request occurs, the page-out bank management table is referred to, a page-out possible area is searched in order from the memory bank with the highest priority, and a memory bank determined to have a page-out available area is paged out. Page-out processing means for determining a target memory bank and performing predetermined page-out processing;
A computer system comprising:
CPUと個別に給電可能な複数のメモリバンクで構成されるメインメモリとを備える計算機システムであって、
請求項6に記載の電源制御装置と、
実行する優先度とタスクの識別番号とを対応付けて記憶するためのReadyキューと、
タスクの識別番号と、その識別番号に対応するタスクが配置されるメインメモリバンクの識別子とを対応付けてタスク配置テーブルとして記憶するためのタスク配置テーブル記憶手段と、
現在実行中のタスクが配置されているメモリバンクの識別子を前記タスク配置テーブルから取得し、取得した識別番号を第1の番号とし、また、実行可能なタスクのうち前記Readyキューに記憶されている優先度が最も高いタスクの識別番号を読み出し、その識別番号に対応するメモリバンクの識別子を第2の番号として前記タスク配置テーブルから取得し、前記第1の番号と一致する前記第2の番号に対応するタスク番号がある場合には、そのタスク番号に対応するタスクを次に実行するタスクとして決定し、一方、前記第1の番号と一致する前記第2の番号に対応するタスク番号が無い場合は、前記Readyキューに記憶されているその優先度に対応するタスクの識別番号のうちの1つを次に実行するタスクとして決定するスケジューラと、
を備えることを特徴とする計算機システム。
A computer system comprising a CPU and a main memory composed of a plurality of memory banks that can be individually powered,
A power supply control device according to claim 6,
A Ready queue for storing a priority to be executed and a task identification number in association with each other;
Task allocation table storage means for associating and storing the task identification number and the identifier of the main memory bank where the task corresponding to the identification number is allocated as a task allocation table;
The identifier of the memory bank in which the currently executing task is allocated is acquired from the task allocation table, the acquired identification number is set as the first number, and among the executable tasks, stored in the Ready queue The identification number of the task with the highest priority is read out, the identifier of the memory bank corresponding to the identification number is obtained as the second number from the task arrangement table, and the second number that matches the first number is obtained. When there is a corresponding task number, the task corresponding to the task number is determined as a task to be executed next, while there is no task number corresponding to the second number that matches the first number Is a schedule for determining one of task identification numbers corresponding to the priority stored in the Ready queue as a task to be executed next. And over La,
A computer system comprising:
実行する優先度とタスクの識別番号とを対応付けて記憶するためのReadyキューと、
タスクの識別番号と、その識別番号に対応するタスクが配置されるメインメモリバンクの識別子と対応付けてタスク配置テーブルとして記憶するためのタスク配置テーブル記憶手段と、
現在実行中のタスクが配置されているメモリバンクの識別子を前記タスク配置テーブルから取得し、取得した識別番号を第1の番号とし、また、実行可能なタスクのうち前記Readyキューに記憶されている優先度が最も高いタスクの識別番号を読み出し、その識別番号に対応するメモリバンクの識別子を第2の番号として前記タスク配置テーブルから取得し、前記第1の番号と一致する前記第2の番号に対応するタスク番号がある場合には、そのタスク番号に対応するタスクを次に実行するタスクとして決定し、一方、前記第1の番号と一致する前記第2の番号に対応するタスク番号が無い場合は、前記Readyキューに記憶されているその優先度に対応するタスクの識別番号のうちの1つを次に実行するタスクとして決定するスケジューラと、
をさらに備えることを特徴とする請求項9、10または11に記載の計算機システム。
A Ready queue for storing a priority to be executed and a task identification number in association with each other;
Task allocation table storage means for storing the task identification number in association with the identifier of the main memory bank where the task corresponding to the identification number is allocated, and storing it as a task allocation table;
The identifier of the memory bank in which the currently executing task is allocated is acquired from the task allocation table, the acquired identification number is set as the first number, and among the executable tasks, stored in the Ready queue The identification number of the task with the highest priority is read out, the identifier of the memory bank corresponding to the identification number is obtained as the second number from the task arrangement table, and the second number that matches the first number is obtained. When there is a corresponding task number, the task corresponding to the task number is determined as a task to be executed next, while there is no task number corresponding to the second number that matches the first number Is a schedule for determining one of task identification numbers corresponding to the priority stored in the Ready queue as a task to be executed next. And over La,
The computer system according to claim 9, 10 or 11, further comprising:
通常電力モードまたは省電力モードで動作するCPUとメインメモリとを備える計算機システムにおいて、前記メインメモリの電源供給を制御する電源制御方法であって、
前記CPUのモードを示すモード信号を検出し、前記モード信号に基づいてCPUが省電力モードに移行したと判断した場合は、前記メインメモリへの電源供給の停止を指示し、前記モード信号に基づいてCPUが通常電力モードに復帰したと判断した場合は、前記メインメモリへの電源供給の開始を指示するCPU監視ステップと、
前記指示に基づいて前記メインメモリの電源供給を制御する電源制御ステップと、
を含むことを特徴とする電源制御方法。
In a computer system including a CPU and a main memory that operate in a normal power mode or a power saving mode, a power control method for controlling power supply of the main memory,
When a mode signal indicating the mode of the CPU is detected and it is determined that the CPU has shifted to the power saving mode based on the mode signal, an instruction to stop power supply to the main memory is given, and the mode signal is If the CPU determines that the CPU has returned to the normal power mode, a CPU monitoring step for instructing start of power supply to the main memory;
A power control step for controlling the power supply of the main memory based on the instruction;
A power supply control method comprising:
CPUとメインメモリとを備え、前記CPUがメモリバスを用いて前記メインメモリへアクセスする計算機システムにおいて、前記メインメモリの電源供給を制御する電源制御方法であって、
所定の初期値から一定時間ごとにカウンタのカウント値を減じ、カウント値が0となった場合に、メインメモリへの電源供給を停止するよう指示するカウンタタイマステップと、
前記CPUによる前記メインメモリへのアクセスを監視し、アクセスがあった場合には、前記カウンタのカウント値を初期値にリセットするメモリバス監視ステップと、
を含むことを特徴とする電源制御方法。
In a computer system comprising a CPU and a main memory, wherein the CPU accesses the main memory using a memory bus, a power control method for controlling power supply of the main memory,
A counter timer step for instructing to stop the power supply to the main memory when the count value is decremented from a predetermined initial value every predetermined time and the count value becomes 0;
A memory bus monitoring step of monitoring access to the main memory by the CPU and resetting the count value of the counter to an initial value when there is an access;
A power supply control method comprising:
CPUと個別に給電可能な複数のメモリバンクで構成されるメインメモリとを備える計算機システムにおける電源制御方法であって、
前記メモリバンクごとのページイン元として選択するための優先順位を示す優先度をページインバンク管理テーブルとして記憶するためのページインバンク管理テーブル記憶ステップと、
ページイン要求が発生した場合に、前記ページインバンク管理テーブルを参照し、前記優先度の高いメモリバンクから順に空き領域を探索し、空き領域があると判断したメモリバンクをページイン先のメモリバンクとして決定して所定のページイン処理を行うページイン処理ステップと、
前記メモリバンクごとにカウンタのカウント値を所定の初期値に設定し、それぞれのカウント値を一定時間ごとに減じ、カウント値が0となった場合に、そのカウント値に対応するメモリバンクへの電源供給を停止するよう指示するカウンタタイマステップと、
前記CPUによる前記メインメモリへのアクセスをメモリバンクごとに監視し、アクセスがあった場合には、アクセスのあったメモリバンクに対応する前記カウンタのカウント値を初期値にリセットするメモリバス監視ステップと、
前記指示に基づいて前記メインメモリの電源供給を制御する電源制御ステップと、
を含むことを特徴とする電源制御方法。
A power control method in a computer system comprising a CPU and a main memory composed of a plurality of memory banks that can be individually powered,
A page-in-bank management table storage step for storing a priority indicating a priority order for selecting as a page-in source for each memory bank as a page-in-bank management table;
When a page-in request is generated, the page-in bank management table is referred to, an empty area is searched in order from the memory bank with the highest priority, and the memory bank determined to have an empty area is determined as the page-in destination memory bank. A page-in processing step for performing a predetermined page-in process by determining as
When the count value of the counter is set to a predetermined initial value for each memory bank, and each count value is decreased at regular intervals, and the count value becomes 0, the power supply to the memory bank corresponding to the count value A counter timer step instructing to stop the supply;
A memory bus monitoring step of monitoring access to the main memory by the CPU for each memory bank, and resetting a count value of the counter corresponding to the accessed memory bank to an initial value when accessed; ,
A power control step for controlling the power supply of the main memory based on the instruction;
A power supply control method comprising:
CPUと個別に給電可能な複数のメモリバンクで構成されるメインメモリとを備える計算機システムにおける電源制御方法であって、
前記メモリバンクごとのページアウト対象として選択するための優先順位を示す優先度をページアウトバンク管理テーブルとして記憶するためのページアウトバンク管理テーブル記憶ステップと、
ページアウト要求が発生した場合に、前記ページアウトバンク管理テーブルを参照し、前記優先度の高いメモリバンクから順にページアウト可能領域を探索し、ページアウト可能領域があると判断したメモリバンクをページアウト対象のメモリバンクとして決定して所定のページアウト処理を行うページアウトステップと、
前記メモリバンクごとにカウンタのカウント値を所定の初期値に設定し、それぞれのカウント値を一定時間ごとに減じ、カウント値が0となった場合に、そのカウント値に対応するメモリバンクへの電源供給を停止するよう指示するカウンタタイマステップと、
前記CPUによる前記メインメモリへのアクセスをメモリバンクごとに監視し、アクセスがあった場合には、アクセスのあったメモリバンクに対応するカウンタのカウント値を初期値にリセットするメモリバス監視ステップと、
前記指示に基づいて前記メインメモリの電源供給を制御する電源制御ステップと、
を含むことを特徴とする電源制御方法。
A power control method in a computer system comprising a CPU and a main memory composed of a plurality of memory banks that can be individually powered,
A page-out bank management table storage step for storing, as a page-out bank management table, a priority indicating a priority order for selecting as a page-out target for each memory bank;
When a page-out request occurs, the page-out bank management table is referred to, a page-out possible area is searched in order from the memory bank with the highest priority, and a memory bank determined to have a page-out available area is paged out. A page-out step for determining a target memory bank and performing a predetermined page-out process;
When the count value of the counter is set to a predetermined initial value for each memory bank, and each count value is decremented at regular intervals, and the count value becomes 0, the power supply to the memory bank corresponding to the count value A counter timer step instructing to stop the supply;
A memory bus monitoring step of monitoring access to the main memory by the CPU for each memory bank, and resetting a count value of a counter corresponding to the accessed memory bank to an initial value when accessed;
A power control step for controlling the power supply of the main memory based on the instruction;
A power supply control method comprising:
CPUと個別に給電可能な複数のメモリバンクで構成されるメインメモリとを備える計算機システムにおける電源制御方法であって、
実行する優先度とタスクの識別番号とを対応付けてReadyキューに記憶するReadyキューステップと、
タスクの識別番号と、その識別番号に対応するタスクが配置されるメインメモリバンクの識別子と対応付けてタスク配置テーブルとして記憶するタスク配置テーブル記憶ステップと、
現在実行中のタスクが配置されているメモリバンクの識別子を前記タスク配置テーブルから取得し、取得した識別番号を第1の番号とし、また、実行可能なタスクのうち前記Readyキューに記憶されている優先度が最も高いタスクの識別番号を読み出し、その識別番号に対応するメモリバンクの識別子を第2の番号として前記タスク配置テーブルから取得し、前記第1の番号と一致する前記第2の番号に対応するタスク番号がある場合には、そのタスク番号に対応するタスクを次に実行するタスクとして決定し、一方、前記第1の番号と一致する前記第2の番号に対応するタスク番号が無い場合は、前記Readyキューに記憶されているその優先度に対応するタスクの識別番号のうちの1つを次に実行するタスクとして決定するスケジューリングステップと、
前記メモリバンクごとにカウンタのカウント値を所定の初期値に設定し、それぞれのカウント値を一定時間ごとに減じ、カウント値が0となった場合に、そのカウント値に対応するメモリバンクへの電源供給を停止するよう指示するカウンタタイマステップと、
前記CPUによる前記メインメモリへのアクセスをメモリバンクごとに監視し、アクセスがあった場合には、アクセスのあったメモリバンクに対応するカウント値を初期値にリセットするメモリバス監視ステップと、
前記指示に基づいて前記メインメモリの電源供給を制御する電源制御ステップと、
を含むことを特徴とする電源制御方法。
A power control method in a computer system comprising a CPU and a main memory composed of a plurality of memory banks that can be individually powered,
A ready queue step for storing the priority to be executed and the identification number of the task in association with the ready queue;
A task allocation table storage step for storing the task identification number and the task allocation table in association with the identifier of the main memory bank where the task corresponding to the identification number is allocated;
The identifier of the memory bank in which the currently executing task is allocated is acquired from the task allocation table, the acquired identification number is set as the first number, and among the executable tasks, stored in the Ready queue The identification number of the task with the highest priority is read out, the identifier of the memory bank corresponding to the identification number is obtained as the second number from the task arrangement table, and the second number that matches the first number is obtained. When there is a corresponding task number, the task corresponding to the task number is determined as a task to be executed next, while there is no task number corresponding to the second number that matches the first number Is a schedule for determining one of task identification numbers corresponding to the priority stored in the Ready queue as a task to be executed next. And over the ring step,
When the count value of the counter is set to a predetermined initial value for each memory bank, and each count value is decreased at regular intervals, and the count value becomes 0, the power supply to the memory bank corresponding to the count value A counter timer step instructing to stop the supply;
A memory bus monitoring step of monitoring access to the main memory by the CPU for each memory bank, and resetting a count value corresponding to the accessed memory bank to an initial value when accessed;
A power control step for controlling the power supply of the main memory based on the instruction;
A power supply control method comprising:
請求項16、17または18の電源制御方法をコンピュータに実行させることを特徴とする電源制御プログラム。   A power control program for causing a computer to execute the power control method according to claim 16, 17 or 18. 請求項19の電源制御プログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the power supply control program according to claim 19 is recorded.
JP2008206220A 2008-08-08 2008-08-08 Power source control device, computer system, power source control method, power source control program and recording medium Pending JP2010044460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008206220A JP2010044460A (en) 2008-08-08 2008-08-08 Power source control device, computer system, power source control method, power source control program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008206220A JP2010044460A (en) 2008-08-08 2008-08-08 Power source control device, computer system, power source control method, power source control program and recording medium

Publications (1)

Publication Number Publication Date
JP2010044460A true JP2010044460A (en) 2010-02-25

Family

ID=42015816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008206220A Pending JP2010044460A (en) 2008-08-08 2008-08-08 Power source control device, computer system, power source control method, power source control program and recording medium

Country Status (1)

Country Link
JP (1) JP2010044460A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203585A (en) * 2011-03-24 2012-10-22 Toshiba Corp Information processing apparatus
JP2013030024A (en) * 2011-07-28 2013-02-07 Toshiba Corp Information processing device
KR20130100719A (en) 2012-03-01 2013-09-11 가부시키가이샤 한도오따이 에네루기 켄큐쇼 Semiconductor device
JP2013254512A (en) * 2013-08-05 2013-12-19 Toshiba Corp Information processing device
CN103543815A (en) * 2012-07-09 2014-01-29 株式会社东芝 Information processing apparatus and information processing method
WO2015015756A1 (en) * 2013-08-02 2015-02-05 日本電気株式会社 Power saving control system for server equipped with non-volatile memory, control device, control method, and control program
US8990521B2 (en) 2011-11-24 2015-03-24 Kabushiki Kaisha Toshiba Information processing device and computer program product
WO2024148977A1 (en) * 2023-01-11 2024-07-18 超聚变数字技术有限公司 Power supply method, hard disk, and computing device

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012203585A (en) * 2011-03-24 2012-10-22 Toshiba Corp Information processing apparatus
JP2013030024A (en) * 2011-07-28 2013-02-07 Toshiba Corp Information processing device
US8990521B2 (en) 2011-11-24 2015-03-24 Kabushiki Kaisha Toshiba Information processing device and computer program product
KR20130100719A (en) 2012-03-01 2013-09-11 가부시키가이샤 한도오따이 에네루기 켄큐쇼 Semiconductor device
US9207751B2 (en) 2012-03-01 2015-12-08 Semiconductor Energy Laboratory Co., Ltd. Semiconductor device
CN103543815A (en) * 2012-07-09 2014-01-29 株式会社东芝 Information processing apparatus and information processing method
JP2014016782A (en) * 2012-07-09 2014-01-30 Toshiba Corp Information processing device and program
WO2015015756A1 (en) * 2013-08-02 2015-02-05 日本電気株式会社 Power saving control system for server equipped with non-volatile memory, control device, control method, and control program
JP2013254512A (en) * 2013-08-05 2013-12-19 Toshiba Corp Information processing device
WO2024148977A1 (en) * 2023-01-11 2024-07-18 超聚变数字技术有限公司 Power supply method, hard disk, and computing device

Similar Documents

Publication Publication Date Title
JP2010044460A (en) Power source control device, computer system, power source control method, power source control program and recording medium
US20060085794A1 (en) Information processing system, information processing method, and program
JP4281421B2 (en) Information processing system, control method therefor, and computer program
JP5989574B2 (en) Computer, memory management method and program
JP4902501B2 (en) Power control method, computer system, and program
US20030009701A1 (en) Computer system and computer-readable recording medium
JP2011095916A (en) Electronic apparatus
JP2008040606A (en) Low power consumption memory management method and computer using its method
US8645612B2 (en) Information processing device and information processing method
JP2019159802A (en) Power control method of storage device and storage device
WO2006117950A1 (en) Power controller in information processor
US20140013140A1 (en) Information processing apparatus and computer program product
WO2005069148A2 (en) Memory management method and related system
JP5636677B2 (en) Electronic device, power saving control method thereof, and program
US20140297927A1 (en) Information processing apparatus, information processing method, and recording medium
JPWO2011033626A1 (en) Computer system
JP5045163B2 (en) Arithmetic processing device and control method of arithmetic processing device
JP4170364B2 (en) Processor
JP6054203B2 (en) Information processing apparatus, device control method, and program
JP2007334403A (en) System and method for supporting trouble of computer system
JP2005196343A (en) Memory management device, memory management method and program
JP2008262451A (en) Memory power supply management device and memory power supply management method
JP2010061620A (en) Dma device and dma transfer method
US7007134B2 (en) Microcomputer, method of controlling cache memory, and method of controlling clock
JP2007317176A (en) Terminal unit

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100519