JPH0926889A - Virtual machine system - Google Patents

Virtual machine system

Info

Publication number
JPH0926889A
JPH0926889A JP17713495A JP17713495A JPH0926889A JP H0926889 A JPH0926889 A JP H0926889A JP 17713495 A JP17713495 A JP 17713495A JP 17713495 A JP17713495 A JP 17713495A JP H0926889 A JPH0926889 A JP H0926889A
Authority
JP
Japan
Prior art keywords
processor
virtual
vmcp
quota
allocation
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
JP17713495A
Other languages
Japanese (ja)
Inventor
Hiroyuki Yamauchi
宏之 山内
Kenichi Oyamada
健一 小山田
Takayoshi Asai
孝好 浅井
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP17713495A priority Critical patent/JPH0926889A/en
Publication of JPH0926889A publication Critical patent/JPH0926889A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To change the setting of the assigning amount of the processor for each VM from guests OS working on virtual machines(VM), in the virtual machine system composed of plural virtual machines and a virtual computer control program(VMCP) controlling these VM. SOLUTION: When the OS on a VM designates a specified VM and issues a processor assignment amount changing instruction, the control is passed to a VMCP 1 and the VMCP 1 changes the processor assigning amount of the VM which is set to a VM control table and is designated to a designated value. Subsequently, the VMCP 1 performs the scheduling in which processor time is assigned to the VM in accordance with the changed processor assigning amount.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、仮想計算機システムに
係わり、特に各仮想計算機(VM)に割当てるプロセッ
サ時間の割当てスケジューリングを制御する仮想計算機
システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual computer system, and more particularly to a virtual computer system for controlling allocation scheduling of processor time allocated to each virtual machine (VM).

【0002】[0002]

【従来の技術】仮想計算機システムは、複数の仮想計算
機(VM)とこれらVMを制御する仮想計算機制御プロ
グラム(VMCP)とから構成される。各VMでは1つ
のオペレーティングシステム(OS)が動作する。VM
CPと各VMのOSとは1台の実計算機の主記憶装置上
にロードされ、実行される。VMCPのもつ機能の1つ
として各VMに対するハードウェア資源としてのプロセ
ッサ時間の割当てスケジューリングがある。VMに対す
るプロセッサの割当て方式として、プロセッサを特定の
VMに占有使用させる占有割当て方式とプロセッサを複
数のVMで共用する共用割当て方式とがある。
2. Description of the Related Art A virtual computer system is composed of a plurality of virtual computers (VM) and a virtual computer control program (VMCP) for controlling these VMs. One operating system (OS) operates in each VM. VM
The CP and the OS of each VM are loaded and executed on the main memory of one real computer. One of the functions of the VMCP is scheduling of processor time allocation as a hardware resource for each VM. As a processor allocation method for VMs, there are an exclusive allocation method in which a processor is used exclusively by a specific VM and a shared allocation method in which a plurality of VMs share a processor.

【0003】プロセッサの共用割当て方式では、各VM
についてのプロセッサの割当て量をあらかじめ定義して
おき、VMCPはこのプロセッサ割当て量に従ってプロ
セッサ時間を共用する各VMに割当てる。
In the shared allocation system of processors, each VM is
Is defined in advance, and the VMCP allocates the processor time to each VM that shares the processor time according to the processor allocation.

【0004】[0004]

【発明が解決しようとする課題】上記のプロセッサ割当
て量の定義値を変更する場合には、オペレータがVMC
Pに対するコマンドを発行して変更しなければならな
い。このため例えば昼の時間帯と夜の時間帯でVMへの
プロセッサ割当て量を変更したい場合、あるいはホット
スタンバイシステムにおいて緊急時に現用系から待機系
へシステムの切り換えを行った後にただちに待機系及び
現用系のプロセッサ割当て量を変更したい場合には、オ
ペレータの介入が必要となり、オペレータの操作ミスを
起こしやすく、緊急時の対応が遅れる、システムの自動
運転ができない等の問題があった。
When changing the definition value of the above-mentioned processor quota, the operator must change the VMC.
A command to P must be issued to change. For this reason, for example, when it is desired to change the processor allocation amount to the VM in the daytime and the nighttime, or in the hot standby system, the standby system and the active system are immediately switched after the system is switched from the active system to the standby system in an emergency. When it is desired to change the processor allocation amount, there is a problem that operator intervention is required, an operator error is likely to occur, an emergency response is delayed, and the system cannot be automatically operated.

【0005】本発明は、外部条件の変化に応じて自動的
にプロセッサ割当て量を変更する仮想計算機システムを
提供することを目的とする。
An object of the present invention is to provide a virtual computer system that automatically changes the processor allocation amount according to changes in external conditions.

【0006】[0006]

【課題を解決するための手段】本発明は、OSが外部条
件の変化に応じて特定のVMを指定してプロセッサ割当
て量を変更する指令を発行し、VMCPが指定されたV
Mのプロセッサ割当て量を変更する仮想計算機システム
を特徴とする。
According to the present invention, an OS issues a command to change a processor allocation amount by designating a specific VM according to a change in an external condition, and a VMCP designated V is designated.
The virtual machine system is characterized by changing the processor allocation amount of M.

【0007】[0007]

【作用】運用スケジュールに従ってあるいは緊急事態等
に応じて関連するVMのプロセッサ割当て量をオペレー
タの介入なしで変更できる。またプロセッサ割当て量の
定義値と実際のプロセッサ使用時間とを比較することに
より、プロセッサ使用時間の過不足に応じてプロセッサ
割当て量の定義値を変更できる。
According to the operation schedule or the emergency situation, the processor quota of the related VM can be changed without operator intervention. Further, by comparing the definition value of the processor allocation amount and the actual processor usage time, the definition value of the processor allocation amount can be changed according to the excess or deficiency of the processor usage time.

【0008】[0008]

【実施例】以下、本発明の一実施例について図面を用い
て説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0009】仮想計算機システムのハードウェアは、少
なくとも1台の命令プロセッサ(IP)、主記憶装置、
入出力制御装置及び入出力装置で構成される。計算機が
複数のIPを有するときには、この複数のIPが共通の
主記憶装置を共用し、いわゆる緊密結合のマルチプロセ
ッサの形態で動作する。仮想計算機システムは、複数の
仮想計算機(VM)とこれらVMを制御する仮想計算機
制御プログラム(VMCP)とから構成される。各VM
では1つのオペレーティングシステム(OS)とこのO
Sによって制御される処理プログラムが動作する。VM
上で動作するOSはゲストOSと呼ばれる。VMCP、
ゲストOS及び処理プログラムは主記憶装置上に格納さ
れ、IPによって実行される。各VMが使用するプロセ
ッサは論理的なものであるから実プロセッサとしてのI
Pと区別するために仮想IPと呼ばれる。各VMは少な
くとも1つの仮想IPを使用し、VMがマルチプロセッ
サ環境で動作するときには複数の仮想IPを使用する。
VMCPは各VMについて設定された仮想IPに実際の
IPを一時的に割当てる。
The hardware of the virtual machine system includes at least one instruction processor (IP), a main memory,
It is composed of an input / output control device and an input / output device. When the computer has a plurality of IPs, the plurality of IPs share a common main memory and operate in the form of so-called tightly coupled multiprocessors. The virtual machine system is composed of a plurality of virtual machines (VM) and a virtual machine control program (VMCP) that controls these VMs. Each VM
Then one operating system (OS) and this O
The processing program controlled by S operates. VM
The OS operating on the above is called a guest OS. VMCP,
The guest OS and the processing program are stored in the main storage device and executed by IP. Since the processor used by each VM is logical, I as a real processor
It is called a virtual IP to distinguish it from P. Each VM uses at least one virtual IP, and multiple VMs when the VM operates in a multiprocessor environment.
The VMCP temporarily assigns the real IP to the virtual IP set for each VM.

【0010】図1は、本実施例の仮想計算機システムの
機能的な構成を示す図である。図で点線の矢印は制御の
方向を示し、実線の矢印は情報の受け渡しを示す。VM
CP1は各VM2にIPを割当てるスケジューリングを
行う。各VM2を区別するためにVM2−1,2−2,
・・・のように符号をつけている。各VM2ではゲスト
OS及びその処理プログラムが動作する。VM制御テー
ブル3は各VM2を管理するためのテーブルであり、V
M制御テーブル3−1,3−2,・・・はそれぞれVM
2−1,2−2,・・・に対応する。仮想IP管理テー
ブル4は各仮想IPに対する実IPの割当てを管理する
ためのテーブルであり、仮想IP1,2,・・・に対応
して仮想IP管理テーブル4−1,4−2,・・・のよ
うに符号をつけている。運用スケジュール5はVMの運
用スケジュールについての情報を格納するファイルであ
る。運用スケジュール5は主記憶装置又は外部記憶装置
上に格納される。
FIG. 1 is a diagram showing the functional configuration of the virtual computer system of this embodiment. In the figure, the dotted arrows indicate the direction of control, and the solid arrows indicate the passing of information. VM
CP1 performs scheduling for assigning an IP to each VM2. In order to distinguish each VM2, VM2-1, 2-2,
The numbers are attached like ... The guest OS and its processing program operate in each VM 2. The VM control table 3 is a table for managing each VM 2,
The M control tables 3-1, 3-2, ...
2-1, 2-2, ... The virtual IP management table 4 is a table for managing the allocation of the real IP to each virtual IP, and the virtual IP management tables 4-1, 4-2, ... Corresponding to the virtual IPs 1, 2 ,. The code is attached like. The operation schedule 5 is a file that stores information about the operation schedule of the VM. The operation schedule 5 is stored in the main storage device or the external storage device.

【0011】VMCP1はVM制御テーブル3及び仮想
IP管理テーブル4を使用して各VM2にIPを割当て
るスケジューリングを行う。VM上の計算機運転プログ
ラムなどの処理プログラムが運用スケジュール5を参照
して運用のスケジュールを変更するときにはそのゲスト
OSに指令を発行する。ゲストOSがプロセッサ割当て
量変更命令を発行すると制御はVMCP1に移り、VM
CP1は当該VMに対応するVM制御テーブル3のプロ
セッサ割当て量を変更し、以後この変更されたプロセッ
サ割当て量に従ってVMのスケジューリングを行う。
The VMCP 1 uses the VM control table 3 and the virtual IP management table 4 to perform scheduling for assigning an IP to each VM 2. When a processing program such as a computer operating program on the VM refers to the operation schedule 5 and changes the operation schedule, it issues a command to the guest OS. When the guest OS issues a processor quota change command, control is transferred to VMCP1 and VM
The CP 1 changes the processor allocation amount of the VM control table 3 corresponding to the VM, and thereafter schedules the VM according to the changed processor allocation amount.

【0012】図2(a)は、各VMに対応するVM制御
テーブル3のうち本発明に関連する項目のデータ形式の
例を示す図である。仮想IP番号31は当VMについて
設定された仮想IPの番号である。プロセッサ割当て量
33は当VMについて割当てるIP1台当りの割当て量
を定義するものであり、割当て量はタイムスライスを単
位としてその個数で設定される。タイムスライスは通常
10ms〜25ms程度の時間である。
FIG. 2A is a diagram showing an example of a data format of items related to the present invention in the VM control table 3 corresponding to each VM. The virtual IP number 31 is the number of the virtual IP set for this VM. The processor quota 33 defines the quota per IP unit to be assigned to this VM, and the quota is set by the number of time slices as a unit. The time slice is usually about 10 ms to 25 ms.

【0013】図2(b)は、各仮想IPに対応する仮想
IP管理テーブル4のうち本発明に関連する項目のデー
タ形式の例を示す図である。プロセッサ割当て属性41
は当仮想IPが実IPを占有するように割当てるか、他
の仮想IPと共用するように割当てるかを示す識別子で
ある。VMが複数の仮想IPを設定するときにはそのプ
ロセッサ割当て属性41はすべて同一である。タイムス
ライス割当て数42はVMCP1が当仮想IPにタイム
スライスを割当てるときに制御に使用するカウンタであ
る。プロセッサ使用時間43は当仮想IPが実IPを使
用した時間の累計値を格納する。実IP番号44は当仮
想IPに対して占有的に又は一時的に割当てられた実I
Pの番号である。VM制御テーブル3及び仮想IP管理
テーブル4は主記憶装置上のVMCP1の領域内に設定
される。
FIG. 2B is a diagram showing an example of the data format of items related to the present invention in the virtual IP management table 4 corresponding to each virtual IP. Processor allocation attribute 41
Is an identifier indicating whether the virtual IP is allocated to occupy the real IP or to be shared with another virtual IP. When the VM sets a plurality of virtual IPs, the processor allocation attributes 41 are all the same. The time slice allocation number 42 is a counter used for control when the VMCP 1 allocates a time slice to this virtual IP. The processor usage time 43 stores the cumulative value of the times when the virtual IP uses the real IP. The real IP number 44 is the real I assigned exclusively or temporarily to this virtual IP.
It is the P number. The VM control table 3 and the virtual IP management table 4 are set in the area of the VMCP 1 on the main storage device.

【0014】VMCP1は、プロセッサ割当て属性41
に共用の識別子を設定する仮想IPについて、当仮想I
Pの仮想IP番号31が設定されたVM制御テーブル3
のプロセッサ割当て量33の値をタイムスライス割当て
数42に設定する。次にVMCP1はタイムスライス割
当て数42が1以上の最初の仮想IPに実IPの最初の
タイムスライスを割当て、タイムスライスの満了時に当
仮想IPのタイムスライス割当て数42から1を減じ、
タイムスライス割当て数42が1以上の次の仮想IPに
実IPの次のタイムスライスを割当て、タイムスライス
の満了時にその仮想IPのタイムスライス割当て数42
から1を減じる。このようにして各仮想IPにラウンド
ロビン式に順にタイムスライスを割当てていき、すべて
の仮想IPのタイムスライス割当て数42が0になった
時点で再び上記のようにプロセッサ割当て量33の値を
タイムスライス割当て数42に設定してタイムスライス
による各VMへのプロセッサ時間の割当てスケジューリ
ングを繰り返す。VMCP1は、仮想IPが実際にIP
を使用した時間を計数し、その値を当仮想IPについて
のプロセッサ使用時間43に加算する。なおVMが割当
てられたタイムスライスを使い切る前に入出力待ち等プ
ロセッサを使用しない状態になると、VMCP1はその
タイムスライスを打ち切り、次の仮想IPに次のタイム
スライスを割当てる。従って各VMについて設定した仮
想IPのプロセッサ使用時間43はプロセッサ割当て量
33に定義した値を正確に反映したものになるとは限ら
ない。
VMCP1 has a processor allocation attribute 41
For a virtual IP that sets a shared identifier in
VM control table 3 in which virtual IP number 31 of P is set
The value of the processor allocation amount 33 is set to the time slice allocation number 42. Next, the VMCP 1 allocates the first time slice of the real IP to the first virtual IP whose time slice allocation number 42 is 1 or more, and subtracts 1 from the time slice allocation number 42 of this virtual IP when the time slice expires.
The next time slice of the real IP is allocated to the next virtual IP whose time slice allocation number 42 is 1 or more, and when the time slice expires, the time slice allocation number 42 of the virtual IP.
Subtract 1 from. In this way, time slices are sequentially allocated to each virtual IP in a round-robin manner, and when the number of time slice allocations 42 of all virtual IPs becomes 0, the value of the processor allocation amount 33 is set again as described above. The slice allocation number 42 is set and the scheduling of processor time allocation to each VM by the time slice is repeated. VMCP1 is actually a virtual IP
Is counted, and the value is added to the processor usage time 43 for this virtual IP. If the processor is not used such as waiting for I / O before the VM runs out of the allocated time slice, the VMCP 1 terminates the time slice and allocates the next time slice to the next virtual IP. Therefore, the virtual IP processor usage time 43 set for each VM does not always accurately reflect the value defined in the processor allocation amount 33.

【0015】図3は、ゲストOSが発行するプロセッサ
割当て量変更命令61とそのパラメータ領域のデータ形
式を示す図である。
FIG. 3 is a diagram showing a processor quota change instruction 61 issued by the guest OS and the data format of its parameter area.

【0016】図3(a)は、命令の形式を示すもので、
プロセッサ割当て量変更命令61は命令コード、ベース
レジスタ(B1)の指定及びディスプレイスメント(D
1)の指定から成る。B1とD1とから得られるオペラ
ンド領域62には、要求種別コード63及びパラメータ
領域アドレス64を設定する。要求種別コード63は命
令が要求する機能を指定するもので、(1)プロセッサ
割当て量33の変更要求、(2)プロセッサ割当て量3
3の通知要求及び(3)プロセッサ使用時間43の通知
要求の3種類ある。パラメータ領域アドレス64はパラ
メータ領域65,70の先頭アドレスを指定する。オペ
ランド領域62及びパラメータ領域65,70は主記憶
装置上の当ゲストOSの領域内に設定される。
FIG. 3A shows the format of the instruction.
The processor quota change instruction 61 includes an instruction code, designation of the base register (B1) and displacement (D
It consists of the designation of 1). A request type code 63 and a parameter area address 64 are set in the operand area 62 obtained from B1 and D1. The request type code 63 designates the function requested by the instruction, and includes (1) a request for changing the processor quota 33, (2) a processor quota 3
There are three types of notification request of 3 and (3) notification request of the processor usage time 43. The parameter area address 64 specifies the start addresses of the parameter areas 65 and 70. The operand area 62 and the parameter areas 65 and 70 are set in the area of the guest OS on the main storage device.

【0017】図3(b)は要求種別コード63が(1)
プロセッサ割当て量33の変更要求又は(2)プロセッ
サ割当て量33の通知要求の場合のパラメータ領域65
のデータ形式を示す図である。パラメータ領域長66は
パラメータ領域65の領域長を格納する。VMID67
は対象とするVMの識別コードである。完了コード68
は命令実行が完了したときの完了コードを設定する。プ
ロセッサ割当て量69は要求種別コード63が(1)プ
ロセッサ割当て量33の変更要求の場合には新たに要求
するプロセッサ割当て量を格納し、(2)プロセッサ割
当て量33の通知要求の場合には当VMのプロセッサ割
当て量33を格納する。パラメータ領域長66、VMI
D67及び(1)プロセッサ割当て量33の変更要求の
場合のプロセッサ割当て量69はゲストOSによって設
定される。完了コード68及び(2)プロセッサ割当て
量33の通知要求の場合のプロセッサ割当て量69はV
MCP1によって設定される。
In FIG. 3B, the request type code 63 is (1).
Parameter area 65 in case of request for changing processor quota 33 or (2) request for notifying processor quota 33
FIG. 3 is a diagram showing a data format of the data. The parameter area length 66 stores the area length of the parameter area 65. VMID67
Is the identification code of the target VM. Completion code 68
Sets the completion code when the instruction execution is completed. The processor allocation amount 69 stores the newly requested processor allocation amount when the request type code 63 is (1) a change request for the processor allocation amount 33, and is stored when the request type code 63 is (2) a notification request for the processor allocation amount 33. The processor allocation amount 33 of the VM is stored. Parameter area length 66, VMI
D67 and (1) the processor allocation amount 69 in the case of the request to change the processor allocation amount 33 is set by the guest OS. In the case of the notification request of the completion code 68 and (2) processor quota 33, the processor quota 69 is V
It is set by MCP1.

【0018】図3(c)は、要求種別コード63が
(3)プロセッサ使用時間43の通知要求である場合の
パラメータ領域70のデータ形式を示す図である。パラ
メータ領域長66はパラメータ領域70の領域長を格納
する。VMID67及び完了コード68はパラメータ領
域65の場合と同様である。仮想IP番号31及びプロ
セッサ使用時間43はそれぞれ当VMについて設定され
た仮想IPの番号と実IPの使用時間である。パラメー
タ領域長66及びVMID67はゲストOSによって設
定される。完了コード68、仮想IP番号31及びプロ
セッサ使用時間43はVMCP1によって設定される。
FIG. 3C is a diagram showing the data format of the parameter area 70 when the request type code 63 is (3) notification request of the processor usage time 43. The parameter area length 66 stores the area length of the parameter area 70. The VMID 67 and the completion code 68 are the same as those in the parameter area 65. The virtual IP number 31 and the processor usage time 43 are respectively the virtual IP number and the usage time of the real IP set for this VM. The parameter area length 66 and the VMID 67 are set by the guest OS. The completion code 68, the virtual IP number 31, and the processor usage time 43 are set by the VMCP 1.

【0019】図4は、プロセッサ割当て量変更命令61
の処理を行うVMCP1の処理の流れを示すフローチャ
ートである。ゲストOSがプロセッサ割当て量変更命令
61を発行すると、IPハードウェアはVMに関する命
令であることを検出してVMCP1に制御を渡す。VM
CP1は命令のオペランド領域62にあるパラメータ領
域アドレス64からパラメータ領域65,70にアクセ
スし、パラメータを取得する(ステップ11)。次にV
MID67から対象とするVMの識別コードを得て指定
されたVMのVM制御テーブル3を参照し、設定されて
いる仮想IP番号31から仮想IP管理テーブル4を参
照し、そのプロセッサ割当て属性41を参照する。プロ
セッサ割当て属性41が共用であれば(ステップ12共
用)、要求種別コード63から要求種別コードを判定す
る(ステップ13)。要求種別コードがプロセッサ割当
て量33の変更要求であれば、パラメータ領域65に設
定されたプロセッサ割当て量69を指定されたVMのプ
ロセッサ割当て量33に設定する(ステップ14)。要
求種別コードがプロセッサ割当て量33の通知要求であ
れば、指定されたVMのプロセッサ割当て量33を当ゲ
ストOSのパラメータ領域65のプロセッサ割当て量6
9に格納する(ステップ15)。要求種別コードがプロ
セッサ使用時間43の通知要求であれば、指定されたV
MのVM制御テーブル3に設定されている仮想IP番号
31と対応するプロセッサ使用時間43とをパラメータ
領域70に格納する(ステップ16)。ステップ14,
15又は16の処理が終わったとき、VMCP1は完了
コード68に正常コードを格納して(ステップ17)、
処理を終了する。プロセッサ割当て属性41が占有であ
れば(ステップ12占有)、完了コード68にエラー終
了コードを格納して(ステップ18)、処理を終了す
る。
FIG. 4 shows a processor quota change instruction 61.
6 is a flowchart showing a flow of processing of VMCP 1 that performs processing of FIG. When the guest OS issues the processor quota change instruction 61, the IP hardware detects that the instruction is a VM-related instruction and passes control to the VMCP 1. VM
The CP1 accesses the parameter areas 65 and 70 from the parameter area address 64 in the operand area 62 of the instruction and acquires the parameters (step 11). Then V
The identification code of the target VM is obtained from the MID 67, the VM control table 3 of the designated VM is referenced, the virtual IP management table 4 is referenced from the set virtual IP number 31, and the processor allocation attribute 41 is referenced. To do. If the processor allocation attribute 41 is shared (shared in step 12), the request type code is judged from the request type code 63 (step 13). If the request type code is a request for changing the processor quota 33, the processor quota 69 set in the parameter area 65 is set to the processor quota 33 of the designated VM (step 14). If the request type code is a notification request of the processor quota 33, the processor quota 33 of the specified VM is set to the processor quota 6 of the parameter area 65 of the guest OS.
9 (step 15). If the request type code is a notification request of the processor usage time 43, the specified V
The virtual IP number 31 set in the VM control table 3 of M and the corresponding processor usage time 43 are stored in the parameter area 70 (step 16). Step 14,
When the processing of 15 or 16 is finished, the VMCP 1 stores a normal code in the completion code 68 (step 17),
The process ends. If the processor allocation attribute 41 is occupied (step 12 occupied), the error end code is stored in the completion code 68 (step 18), and the process ends.

【0020】以下、上記のプロセッサ割当て量変更命令
をどのように使用するかについて、ゲストOS及びその
制御下の処理プログラムの処理を説明する。ゲストOS
がプロセッサ割当て量の通知要求を発行すると、任意の
VMのプロセッサ割当て量33を知ることができる。次
にゲストOSがプロセッサ使用時間の通知要求を発行す
ると、指定されたVMについて設定された仮想IPの実
際のプロセッサ使用時間を知ることができる。当ゲスト
OSの制御下の運用プログラムは各VMのプロセッサ割
当て量と経過時間とから各VMのプロセッサ使用時間を
計算することができる。計算された各VMのプロセッサ
使用時間と実際のプロセッサ使用時間とを比較すること
によって各VMのプロセッサ割当て量33の設定が妥当
であるかどうか判定できる。プロセッサ割当て量33の
変更が必要であれば、ゲストOSを介してプロセッサ割
当て量の変更要求を発行し、目的とするVMのプロセッ
サ割当て量33を変更できる。また各VMの実際のプロ
セッサ使用時間を記憶装置に蓄積すれば、VMの稼働に
ついての統計情報を得ることができる。さらに昼の時間
帯と夜の時間帯でVMの稼働状態を変更する場合には、
運用プログラムが運用スケジュール5に従って所定の時
刻になったとき関連するVMについてのプロセッサ割当
て量を変更することによって目的を達成することができ
る。例えばVM2−1のプロセッサ割当て量を増加さ
せ、逆にVM2−2のプロセッサ割当て量を減少させる
などである。また例えばVM2−1を現用系、VM2−
2を待機系とするホットスタンバイシステムにおいて、
ハードウェアの障害又はソフトウェアのバグなどによ
り、現用系から待機系へシステムを切り換えるとき、シ
ステムの切り換え後ただちにVM2−1とVM2−2の
プロセッサ割当て量を変更してVM2−2に多くのタイ
ムスライスを割当てるようにVMスケジューリングを行
うことができる。なお2組の実計算機の各々に同一バー
ジョンのVMCPと制御されるVMとを設定し、一方の
計算機上のVMを現用系、他方の計算機上のVMを待機
系とするホットスタンバイシステムでもVMのプロセッ
サ割当て量を変更できる。一方の計算機上のVMと他方
の計算機上のVMとが通信を行うために、両計算機が通
信路又は外部記憶装置を介して接続されていることが必
要である。
The process of the guest OS and the process program under the control of the guest OS will be described below as to how the above-mentioned processor quota changing instruction is used. Guest OS
Issues a processor quota notification request, it is possible to know the processor quota 33 of an arbitrary VM. Next, when the guest OS issues a processor usage time notification request, it is possible to know the actual processor usage time of the virtual IP set for the specified VM. The operation program under the control of this guest OS can calculate the processor usage time of each VM from the processor allocation amount of each VM and the elapsed time. By comparing the calculated processor usage time of each VM with the actual processor usage time, it is possible to determine whether the setting of the processor quota 33 of each VM is appropriate. If the processor quota 33 needs to be changed, a processor quota change request can be issued via the guest OS to change the processor quota 33 of the target VM. Further, by storing the actual processor usage time of each VM in the storage device, statistical information about the operation of the VM can be obtained. In addition, when changing the VM operating status between daytime and nighttime,
The object can be achieved by changing the processor allocation amount for the associated VM when the operation program reaches a predetermined time according to the operation schedule 5. For example, the processor quota of VM2-1 is increased and the processor quota of VM2-2 is decreased. Further, for example, VM2-1 is the active system, VM2-
In the hot standby system with 2 as the standby system,
When the system is switched from the active system to the standby system due to a hardware failure or software bug, the processor quotas of VM2-1 and VM2-2 are changed immediately after the system is switched, and many time slices are allocated to VM2-2. VM scheduling can be done to allocate It should be noted that even in the hot standby system in which the VMCP of the same version and the VM to be controlled are set in each of the two sets of real computers and the VM on one computer is the active system and the VM on the other computer is the standby system You can change the processor quota. In order for the VM on one computer and the VM on the other computer to communicate with each other, it is necessary that both computers are connected via a communication path or an external storage device.

【0021】本実施例によれば、計算機の運用スケジュ
ールに従って目的の時刻に各VMのプロセッサ割当て量
をオペレータの介入なしで変更することができる。また
ホットスタンバイシステムにおいて、現用系のVMから
待機系のVMへ切り換えたときただちに各VMのプロセ
ッサ割当て量を変更することができる。
According to this embodiment, the processor allocation amount of each VM can be changed at a target time according to the operation schedule of the computer without operator intervention. Further, in the hot standby system, the processor allocation amount of each VM can be changed immediately when the active VM is switched to the standby VM.

【0022】[0022]

【発明の効果】本発明によれば、外部条件の変化に応じ
て関連するVMのプロセッサ割当て量をオペレータの介
入なしで変更できるとともに、プロセッサ割当て量の設
定値と実際のプロセッサ使用時間とを比較することによ
り、プロセッサ割当て量の調整を自動的に行うことがで
きる。
According to the present invention, the processor quota of the related VM can be changed according to the change of the external condition without operator intervention, and the set value of the processor quota is compared with the actual processor usage time. By doing so, the processor allocation amount can be automatically adjusted.

【図面の簡単な説明】[Brief description of drawings]

【図1】実施例の仮想計算機システムの構成を示す図で
ある。
FIG. 1 is a diagram showing a configuration of a virtual computer system according to an embodiment.

【図2】実施例のVM制御テーブル3及び仮想IP管理
テーブル4のデータ形式を示す図である。
FIG. 2 is a diagram showing a data format of a VM control table 3 and a virtual IP management table 4 according to the embodiment.

【図3】実施例のプロセッサ割当て量変更命令とそのパ
ラメータ領域のデータ形式を示す図である。
FIG. 3 is a diagram showing a data format of a processor quota change instruction and its parameter area according to the embodiment.

【図4】プロセッサ割当て量変更命令の処理を行うVM
CP1の処理の流れを示すフローチャートである。
FIG. 4 is a VM that processes a processor quota change instruction.
It is a flow chart which shows a flow of processing of CP1.

【符号の説明】[Explanation of symbols]

1:VMCP、2:VM、33:プロセッサ割当て量、
61:プロセッサ割当て量変更命令、69:プロセッサ
割当て量
1: VMCP, 2: VM, 33: processor allocation amount,
61: Processor quota change instruction, 69: Processor quota

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】複数の仮想計算機(VM)が設定され、各
VMで動作するオペレーティングシステム(OS)と、
各VMについて設定されたプロセッサ割当て量に従って
各VMへのプロセッサ時間の割当てスケジューリングを
行う仮想計算機制御手段(VMCP)とを有する仮想計
算機システムにおいて、 該OSは外部条件の変化に応じて特定のVMを指定して
該プロセッサ割当て量を変更する指令を発行する手段を
設け、 該VMCPは指定されたVMの該プロセッサ割当て量を
変更する手段を設けたことを特徴とする仮想計算機シス
テム。
1. A plurality of virtual machines (VMs) are set, and an operating system (OS) operating on each VM,
In a virtual machine system having a virtual machine control unit (VMCP) for scheduling allocation of processor time to each VM according to a processor quota set for each VM, the OS sets a specific VM according to a change in external conditions. A virtual machine system comprising means for issuing a command for designating and changing the processor allocation amount, and the VMCP having means for changing the processor allocation amount of a specified VM.
JP17713495A 1995-07-13 1995-07-13 Virtual machine system Pending JPH0926889A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17713495A JPH0926889A (en) 1995-07-13 1995-07-13 Virtual machine system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17713495A JPH0926889A (en) 1995-07-13 1995-07-13 Virtual machine system

Publications (1)

Publication Number Publication Date
JPH0926889A true JPH0926889A (en) 1997-01-28

Family

ID=16025781

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17713495A Pending JPH0926889A (en) 1995-07-13 1995-07-13 Virtual machine system

Country Status (1)

Country Link
JP (1) JPH0926889A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1185547A (en) * 1997-09-12 1999-03-30 Hitachi Ltd Virtual cluster configuration method
JPH11194972A (en) * 1997-12-26 1999-07-21 Nec Corp Resource division management method using resource block and machine readable record medium for recording program
JP2003067351A (en) * 2001-08-28 2003-03-07 Nec System Technologies Ltd Configuration control system of distributed computer
JP2004508616A (en) * 2000-06-20 2004-03-18 テラスプリング・インコーポレーテッド Method and apparatus for controlling an extensible computing system
US7117499B2 (en) 2001-11-22 2006-10-03 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
US7290259B2 (en) 2000-12-28 2007-10-30 Hitachi, Ltd. Virtual computer system with dynamic resource reallocation
KR100790304B1 (en) * 2006-11-10 2008-01-02 주식회사 대우일렉트로닉스 Method for executing of java virtual machine scheduling and operating system scheduling
JP2008165410A (en) * 2006-12-27 2008-07-17 Toshiba Corp Guest os scheduling method and virtual machine monitor
JP2009110404A (en) * 2007-10-31 2009-05-21 Toshiba Corp Virtual machine system and guest os scheduling method in the same system
US7941799B2 (en) 2004-05-27 2011-05-10 International Business Machines Corporation Interpreting I/O operation requests from pageable guests without host intervention
US8214622B2 (en) 2004-05-27 2012-07-03 International Business Machines Corporation Facilitating management of storage of a pageable mode virtual environment absent intervention of a host of the environment

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1185547A (en) * 1997-09-12 1999-03-30 Hitachi Ltd Virtual cluster configuration method
JPH11194972A (en) * 1997-12-26 1999-07-21 Nec Corp Resource division management method using resource block and machine readable record medium for recording program
JP4712279B2 (en) * 2000-06-20 2011-06-29 テラスプリング・インコーポレーテッド Method and apparatus for controlling extensible computing system
JP2004508616A (en) * 2000-06-20 2004-03-18 テラスプリング・インコーポレーテッド Method and apparatus for controlling an extensible computing system
US7290259B2 (en) 2000-12-28 2007-10-30 Hitachi, Ltd. Virtual computer system with dynamic resource reallocation
JP2003067351A (en) * 2001-08-28 2003-03-07 Nec System Technologies Ltd Configuration control system of distributed computer
US8397239B2 (en) 2001-11-22 2013-03-12 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
US7865899B2 (en) 2001-11-22 2011-01-04 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
US7117499B2 (en) 2001-11-22 2006-10-03 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
US8214622B2 (en) 2004-05-27 2012-07-03 International Business Machines Corporation Facilitating management of storage of a pageable mode virtual environment absent intervention of a host of the environment
US7941799B2 (en) 2004-05-27 2011-05-10 International Business Machines Corporation Interpreting I/O operation requests from pageable guests without host intervention
US8196139B2 (en) 2004-05-27 2012-06-05 International Business Machines Corporation Interpreting I/O operation requests from pageable guests without host intervention
US8819393B2 (en) 2004-05-27 2014-08-26 International Business Machines Corporation Facilitating management of storage of a pageable mode virtual environment absent intervention of a host of the environment
US8904390B2 (en) 2004-05-27 2014-12-02 International Business Machines Corporation Interpreting I/O operation requests from pageable guests without host intervention
US9086905B2 (en) 2004-05-27 2015-07-21 International Business Machines Corporation Interpreting I/O operation requests from pageable guests without host intervention
US10223300B2 (en) 2004-05-27 2019-03-05 International Business Machines Corporation Set buffer state instruction
US10698845B2 (en) 2004-05-27 2020-06-30 International Business Machines Corporation Set buffer state instruction
KR100790304B1 (en) * 2006-11-10 2008-01-02 주식회사 대우일렉트로닉스 Method for executing of java virtual machine scheduling and operating system scheduling
JP2008165410A (en) * 2006-12-27 2008-07-17 Toshiba Corp Guest os scheduling method and virtual machine monitor
US8291413B2 (en) 2007-10-31 2012-10-16 Kabushiki Kaisha Toshiba Virtual computer system managing schedule for allocating CPU to guest OSes and guest OS scheduling method
JP2009110404A (en) * 2007-10-31 2009-05-21 Toshiba Corp Virtual machine system and guest os scheduling method in the same system

Similar Documents

Publication Publication Date Title
US7065761B2 (en) Nonvolatile logical partition system data management
US20130247056A1 (en) Virtual machine control method and virtual machine
US6598069B1 (en) Method and apparatus for assigning resources to logical partition clusters
US20070255798A1 (en) Brokered virtualized application execution
WO1997010549A1 (en) Electronic computer system
CN112052068A (en) Method and device for binding CPU (central processing unit) of Kubernetes container platform
JP7048638B2 (en) Control device
JP5396339B2 (en) Resource control method and resource control system
JPH0926889A (en) Virtual machine system
JPH03257644A (en) Main memory control method
JPH06103092A (en) Virtual computer system
JP5178778B2 (en) Virtual machine and CPU allocation method
CN117311990B (en) Resource adjustment method and device, electronic equipment, storage medium and training platform
US11561843B2 (en) Automated performance tuning using workload profiling in a distributed computing environment
JP3906594B2 (en) CPU capacity adjustment method
WO2020075351A1 (en) Control device
US20200334070A1 (en) Management of dynamic sharing of central processing units
CN112468458B (en) Scheduling method based on neutron layering mechanism
JP6857153B2 (en) Control device
JPH06110717A (en) Complex computer system
JP2571260B2 (en) Operating environment selection processing method using logic clock
JP2003076562A (en) Method, device for quantitatively controlling memory, computer program and recording medium
JPH04346136A (en) Virtual instruction processor structure control method
JP2001265613A (en) Virtual computer system
JP2022014311A (en) Control device