JPH04307631A - Cpu distribution control system for virtual computer system - Google Patents

Cpu distribution control system for virtual computer system

Info

Publication number
JPH04307631A
JPH04307631A JP9797791A JP9797791A JPH04307631A JP H04307631 A JPH04307631 A JP H04307631A JP 9797791 A JP9797791 A JP 9797791A JP 9797791 A JP9797791 A JP 9797791A JP H04307631 A JPH04307631 A JP H04307631A
Authority
JP
Japan
Prior art keywords
time
virtual machine
virtual
cpu
computer
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
JP9797791A
Other languages
Japanese (ja)
Inventor
Shunei Motoki
元木 俊英
Katsuhiro Nojima
野島 克浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Solution Innovators Ltd
Original Assignee
NEC Corp
NEC Solution Innovators 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 NEC Corp, NEC Solution Innovators Ltd filed Critical NEC Corp
Priority to JP9797791A priority Critical patent/JPH04307631A/en
Publication of JPH04307631A publication Critical patent/JPH04307631A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To optimize the using time of a real computer, a virtual computer, and a CPU set between the virtual computers by monitoring the executing time of the virtual computer at a fixed time interval. CONSTITUTION:An executing time monitoring means 4 contained in a virtual computer monitors the CPU using time of a virtual computer 2. Then the CPU use distributing time which is calculated by a virtual computer use distributing time range setting means 5 and held by a virtual computer CPU use distributing time holding means 6 is compared with the actual CPU using time of the computer 2. Based on the difference between both times, a virtual computer time slice interval changing means 7 changes the time slice interval value of the computer 2. Thus it is possible to dynamically distribute a CPU between the virtual computer and a real computer and to operate a virtual computer system.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、仮想計算機システムに
関し、特に、仮想計算機CPU配分処理方式関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual computer system, and particularly to a virtual computer CPU distribution processing method.

【0002】0002

【従来の技術】従来、この種の仮想計算機システムにお
いては、仮想計算機中央処理装置毎に設定した優先度に
より実計算機中央処理装置の仮想計算機中央処理装置へ
の割り当て量を制御しており、仮想計算機の生成時、お
よび仮想計算機の動作中においては操作員の指示により
仮想計算機の優先度を設定することで制御を行っていた
。上述した仮想計算機システムにおいては、仮想計算機
中央処理装置への割り当て量は、仮想計算機の生成時、
および仮想計算機の動作中においては操作員により仮想
計算機の実行優先度を設定することで制御を行っていた
が、運用形態によっては実行優先度の低い仮想計算機に
対するCPUの割り当て量が少なくなったり、また、実
行優先度の高い仮想計算機内でCPUループが発生した
りすると実行優先度の低い仮想計算機や実計算機上での
ジョブに対するCPU割り当て量が少なくなったりする
という欠点がある。
[Prior Art] Conventionally, in this type of virtual computer system, the allocation amount of the real computer central processing unit to the virtual computer central processing unit is controlled based on the priority set for each virtual computer central processing unit. When a computer is created and when the virtual machine is in operation, control is performed by setting the priority of the virtual machine according to instructions from an operator. In the virtual machine system described above, the amount allocated to the virtual machine central processing unit is
While a virtual machine is in operation, it is controlled by an operator setting the execution priority of the virtual machine, but depending on the operation mode, the amount of CPU allocated to a virtual machine with a low execution priority may be reduced. Another disadvantage is that if a CPU loop occurs in a virtual machine with a high execution priority, the amount of CPU allocated to a job on a virtual machine or real computer with a low execution priority decreases.

【0003】0003

【発明が解決しようとする課題】本発明の目的は動的に
実計算中央処理装置のCPU使用時間に対する仮想計算
機中央処理装置のCPU使用時間の割合を制御し、実計
算機と仮想計算機の間で適切なCPU配分を行いながら
仮想計算機システムを運用することである。
[Problems to be Solved by the Invention] An object of the present invention is to dynamically control the ratio of the CPU usage time of a virtual computer central processing unit to the CPU usage time of a real calculation central processing unit, and to It is to operate a virtual computer system while performing appropriate CPU allocation.

【0004】0004

【課題を解決するための手段】本発明に従って実計算機
に対する仮想計算機のCPU使用時間を設定する仮想計
算機のCPU使用配分時間設定手段と、設定されたCP
U使用配分時間を保持しておく仮想計算機のCPU使用
配分時間保持手段と、仮想計算機中央処理装置が実行し
たCPU使用時間の累積を保持する仮想計算機中央処理
装置実行時間保持手段と、一定時間毎に仮想計算機中央
処理装置実行時間を監視し仮想計算機のCPU使用時間
と比較する仮想計算機の実行時間監視手段と仮想計算機
のCPU使用配分時間と仮想計算機中央処理装置実行時
間を比較し仮想計算機のCPU配分値を適合させるため
仮想計算機のタイムスライスインターバル値を変更する
ためのタイムスライスインターバル値変更手段を有する
ことを特徴とする仮想計算機システムにおけるCPU配
分制御方式が提供される。
[Means for Solving the Problems] According to the present invention, there is provided a virtual machine CPU usage allocation time setting means for setting the CPU usage time of a virtual machine with respect to a real computer;
A virtual machine CPU usage allocation time holding means for holding the U usage allocation time, a virtual computer central processing unit execution time holding means for holding the accumulated CPU usage time executed by the virtual computer central processing unit, and The execution time monitoring means for the virtual machine monitors the execution time of the central processing unit of the virtual machine and compares it with the CPU usage time of the virtual machine. A CPU distribution control method in a virtual computer system is provided, which includes a time slice interval value changing means for changing a time slice interval value of a virtual computer in order to adapt a distribution value.

【0005】[0005]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be explained with reference to the drawings.

【0006】図1は、本発明の構成を表す図である。図
2はCPU配分処理方式における制御の動作概要を表す
図である。
FIG. 1 is a diagram showing the configuration of the present invention. FIG. 2 is a diagram showing an overview of control operations in the CPU distribution processing method.

【0007】図1において、仮想計算機モニタ1内に仮
想計算機のCPU使用配分時間保持手段6を配しており
、仮想計算機の生成時、及び仮想計算機実行中なら操作
員の指示により実計算機中央処理装置実行時間に対する
仮想計算機中央処理装置実行時間の上限及び下限を仮想
計算機のCPU使用配分時間範囲設定手段5を使用して
上記仮想計算機のCPU使用配分時間保持手段6に設定
する。仮想計算機モニタ1は、1台以上の仮想計算機2
が、その運用中、任意の一定時間毎に仮想計算機の実行
時間監視手段4において、仮想計算機2内の仮想計算機
中央処理装置実行時間保持手段3により格納されている
仮想計算機実行時間を監視し、本仮想計算機実行時間を
使用し、一定時間内におけるCPU使用時間を算出する
。本CPU使用時間と仮想計算機のCPU使用配分時間
保持手段6に格納されている時間を比べ、例えばCPU
使用時間が仮想計算機のCPU使用配分時間保持手段6
に格納されている値、すなわち上限値よりも大きい場合
は、仮想計算機のタイムスライスインターバル値変更手
段7により仮想計算機2のタイムスライスインターバル
値を小さくし、CPU使用時間が仮想計算機のCPU使
用配分時間保持手段6に格納されている値、すなわち下
限値よりも小さい場合は、仮想計算機のタイムスライス
インターバル値変更手段7により、仮想計算機2のタイ
ムスライスインターバル値を大きくする操作を行う。
In FIG. 1, a virtual machine CPU usage allocation time holding means 6 is disposed in a virtual machine monitor 1, and when a virtual machine is created and when the virtual machine is running, the actual computer central processing is performed according to an operator's instruction. The upper and lower limits of the virtual computer central processing unit execution time relative to the device execution time are set in the virtual machine CPU usage allocation time holding means 6 using the virtual computer CPU usage allocation time range setting means 5. Virtual machine monitor 1 monitors one or more virtual machines 2
During its operation, the virtual machine execution time monitoring means 4 monitors the virtual machine execution time stored by the virtual machine central processing unit execution time holding means 3 in the virtual machine 2 at arbitrary fixed time intervals, This virtual machine execution time is used to calculate the CPU usage time within a certain period of time. Compare this CPU usage time with the time stored in the CPU usage allocation time holding means 6 of the virtual machine, for example,
The usage time is the CPU usage allocation time holding means 6 of the virtual computer.
If the value stored in , that is, the value stored in If the value stored in the holding unit 6 is smaller than the lower limit value, the time slice interval value changing unit 7 of the virtual machine performs an operation to increase the time slice interval value of the virtual machine 2.

【0008】図2において、CPU配分処理方式におけ
る制御の動作概要は、例えば、仮想計算機の生成時にお
いて、仮想計算機動作定義ファイル18に格納されてい
る仮想計算機中央処理装置実行時間の配分割合いをCP
U配分値の読み取り処理20にて読み出し、これを仮想
計算機のCPU使用配分時間算出処理11にて仮想計算
機CPU使用配分時間を算出し、CPU使用配分時間を
保持領域19に格納しておく。任意の一定時間間隔にて
仮想計算機の実行時間の読み取り処理13にて仮想計算
機2内に格納されている仮想計算機中央処理装置実行時
間を読み取り、CPU使用時間の算出処理14にて任意
の一定時間内におけるCPU使用時間を算出する。CP
U使用時間算出処理14にて算出されたCPU使用時間
とCPU使用配分時間の保持領域19に格納されている
値をCPU使用時間比較処理15にて比較し、その結果
として、CPU使用時間がCPU使用配分時間より長い
場合は、仮想計算機のタイムスライスインターバル値引
き下げ処理17にて、仮想計算機2のタイムスライスイ
ンターバル値を短くし、また、CPU使用時間がCPU
使用配分時間より短い場合は仮想計算機のタイムスライ
スインターバル値引き上げ処理16にて仮想計算機2の
タイムスライスインターバル値を長くする。本制御を任
意の一定時間間隔で行うことにより、動的に実計算機中
央処理装置に対する仮想計算機中央処理装置へのCPU
割り当て量を制御する。
In FIG. 2, an overview of the control operation in the CPU distribution processing method is, for example, when a virtual machine is generated, the distribution ratio of the execution time of the virtual machine central processing unit stored in the virtual machine operation definition file 18 is calculated. C.P.
The U allocation value is read in the reading process 20, and the virtual machine CPU usage allocation time is calculated in the virtual machine CPU usage allocation time calculation process 11, and the CPU usage allocation time is stored in the holding area 19. The execution time of the virtual computer central processing unit stored in the virtual machine 2 is read at an arbitrary fixed time interval in the reading process 13 of the execution time of the virtual machine, and the execution time of the virtual computer central processing unit stored in the virtual machine 2 is read at an arbitrary fixed time interval, and the execution time of the virtual machine central processing unit stored in the virtual machine 2 is read at an arbitrary fixed time interval. Calculate the CPU usage time within. C.P.
The CPU usage time calculated in the U usage time calculation process 14 and the value stored in the CPU usage allocation time holding area 19 are compared in the CPU usage time comparison process 15, and as a result, the CPU usage time is If it is longer than the usage allocation time, the time slice interval value of the virtual machine 2 is shortened in virtual machine time slice interval value reduction processing 17, and the CPU usage time is
If it is shorter than the usage allocation time, the time slice interval value of the virtual machine 2 is lengthened in the virtual machine time slice interval value increasing process 16. By performing this control at arbitrary fixed time intervals, the CPU dynamically changes from the real computer central processing unit to the virtual computer central processing unit.
Control your quota.

【0009】[0009]

【本発明の効果】以上説明したように本発明は、任意の
一定時間間隔にて仮想計算機中央処理装置に対するCP
U使用量を監視することにより動的に実計算機中央処理
装置に対する仮想計算機中央処理装置へのCPU使用量
の制御を可能としている。これにより、動的に実計算機
中央処理装置のCPU使用時間に対する仮想計算機中央
処理装置のCPU使用時間の割合いを制御し、実計算機
と仮想計算機の間で適切なCPU配分を行いながら仮想
計算機システムを運用する事ができるという効果がある
[Effects of the Present Invention] As explained above, the present invention provides a method for controlling the CP for the virtual computer central processing unit at arbitrary fixed time intervals.
By monitoring the U usage amount, it is possible to dynamically control the CPU usage amount of the virtual computer central processing unit with respect to the real computer central processing unit. This allows the virtual computer system to dynamically control the ratio of the CPU usage time of the virtual computer central processing unit to the CPU usage time of the real computer central processing unit, and to perform appropriate CPU allocation between the real computer and the virtual computer. It has the effect of being able to operate.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の構成を表す図である。FIG. 1 is a diagram showing the configuration of the present invention.

【図2】CPU配分処理方式における制御の動作概要を
表す図である。
FIG. 2 is a diagram showing an overview of control operations in the CPU allocation processing method.

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

1  仮想計算機モニタ 2  仮想計算機 3  仮想計算機中央処理装置実行時間保持手段4  
仮想計算機の実行時間監視手段 5  仮想計算機のCPU使用配分時間範囲設定手段6
  仮想計算機のCPU使用配分時間保持手段7  仮
想計算機タイムスライスインターバル値変更手段11 
 CPU使用配分時間算出処理 12  任意の一定時間間隔毎の時間監視13  仮想
計算機実行時間の読み取り処理14  仮想計算機CP
U使用時間算出処理15  CPU使用配分時間比較処
理 16  仮想計算機のタイムスライスインターバル値引
き上げ処理 17  仮想計算機のタイムスライスインターバル値引
き下げ処理 18  仮想計算機動作定義ファイル 19  CPU使用配分時間保持領域 20  CPU配分値読み取り処理
1 Virtual machine monitor 2 Virtual machine 3 Virtual machine central processing unit execution time holding means 4
Virtual machine execution time monitoring means 5 Virtual machine CPU usage allocation time range setting means 6
Virtual machine CPU usage allocation time holding means 7 Virtual machine time slice interval value changing means 11
CPU usage allocation time calculation process 12 Time monitoring at arbitrary fixed time intervals 13 Virtual machine execution time reading process 14 Virtual machine CP
U usage time calculation process 15 CPU usage allocation time comparison process 16 Virtual machine time slice interval value increase process 17 Virtual machine time slice interval value reduction process 18 Virtual computer operation definition file 19 CPU usage allocation time holding area 20 CPU allocation value reading process

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  実計算機中央処理装置を時分割して仮
想計算機中央処理装置に割り当てることにより仮想計算
機中央処理装置を実現している仮想計算機システムにお
いて、実計算機に対する仮想計算機のCPU使用配分時
間を設定する仮想計算機のCPU使用配分時間設定手段
と、設定されたCPU使用配分時間を保持しておく仮想
計算機のCPU使用配分時間保持手段と、仮想計算機中
央処理装置が実行したCPU使用時間の累積を保持する
仮想計算機中央処理装置実行時間保持手段と、一定時間
毎に仮想計算機中央処理装置実行時間を監視し仮想計算
機のCPU使用時間と比較する仮想計算機の実行時間監
視手段と、仮想計算機のCPU使用時間と仮想計算機中
央処理装置実行時間を比較し仮想計算機のCPU配分値
を適合させるため、仮想計算機のタイムスライスインタ
ーバル値を変更する仮想計算機のタイムスライスインタ
ーバル値変更手段を有することを特徴とする仮想計算機
システムにおけるCPU配分制御方式。
Claim 1: In a virtual computer system in which a virtual computer central processing unit is realized by time-sharing the real computer central processing unit and allocating it to the virtual computer central processing unit, the CPU usage allocation time of the virtual computer with respect to the real computer is A CPU usage allocation time setting means for the virtual machine to be set, a CPU usage allocation time holding means for the virtual machine that holds the set CPU usage allocation time, and an accumulation of CPU usage time executed by the virtual machine central processing unit. A virtual machine central processing unit execution time holding means for holding, a virtual machine execution time monitoring means for monitoring the virtual machine central processing unit execution time at regular intervals and comparing it with the virtual machine's CPU usage time, and a virtual machine CPU usage. A virtual machine characterized by having a time slice interval value changing means for changing a time slice interval value of the virtual machine in order to compare the time and the execution time of the virtual computer central processing unit and adapt the CPU allocation value of the virtual machine. A CPU distribution control method in a computer system.
JP9797791A 1991-04-04 1991-04-04 Cpu distribution control system for virtual computer system Pending JPH04307631A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9797791A JPH04307631A (en) 1991-04-04 1991-04-04 Cpu distribution control system for virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9797791A JPH04307631A (en) 1991-04-04 1991-04-04 Cpu distribution control system for virtual computer system

Publications (1)

Publication Number Publication Date
JPH04307631A true JPH04307631A (en) 1992-10-29

Family

ID=14206724

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9797791A Pending JPH04307631A (en) 1991-04-04 1991-04-04 Cpu distribution control system for virtual computer system

Country Status (1)

Country Link
JP (1) JPH04307631A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408393B1 (en) 1998-01-09 2002-06-18 Hitachi, Ltd. CPU power adjustment method
JP2010218151A (en) * 2009-03-16 2010-09-30 Toshiba Corp Virtual computer management mechanism and cpu time allocation control method in virtual computer system
US7865899B2 (en) 2001-11-22 2011-01-04 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
JP2014215765A (en) * 2013-04-24 2014-11-17 株式会社三菱東京Ufj銀行 Control device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6408393B1 (en) 1998-01-09 2002-06-18 Hitachi, Ltd. CPU power adjustment method
US7073076B2 (en) 1998-01-09 2006-07-04 Hitachi, Ltd. CPU power adjustment method
US7461276B2 (en) 1998-01-09 2008-12-02 Hitachi, Ltd. CPU power adjustment method
US7865899B2 (en) 2001-11-22 2011-01-04 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
US8397239B2 (en) 2001-11-22 2013-03-12 Hitachi, Ltd. Virtual computer systems and computer virtualization programs
JP2010218151A (en) * 2009-03-16 2010-09-30 Toshiba Corp Virtual computer management mechanism and cpu time allocation control method in virtual computer system
JP2014215765A (en) * 2013-04-24 2014-11-17 株式会社三菱東京Ufj銀行 Control device

Similar Documents

Publication Publication Date Title
DE60226176T2 (en) METHOD AND PROGRAMS FOR ADJUSTING PRIORITY LEVELS IN A DATA PROCESSING SYSTEM WITH MULTIPROGRAMMING AND PRIORIZED QUEENS CREATIVE EDUCATION
WO2019125557A1 (en) Scheduling memory bandwidth based on quality of service floorbackground
DE60125540T2 (en) METHOD AND DEVICE FOR A DRAIN PLANNER TO IMPLEMENT A LOG AGAINST TIME ESTIMATES FOR APPLICATION TO A DEVICE NOT CREATING ANY INTERRUPTIONS
JPH03257644A (en) Main memory control method
JP3906594B2 (en) CPU capacity adjustment method
JPH04307631A (en) Cpu distribution control system for virtual computer system
EP2541348A1 (en) Method and programming system for programming an automation component
KR101568204B1 (en) Manicore system based cpu/gpu and method for determining the number of cores of a multicore cpu for cpu/gpu concurrent processing
JP2006059052A (en) Virtual computer system
JP2522388B2 (en) How to control tasks
JP3374480B2 (en) Data processing device
JPH01156830A (en) Operating system
JP2007109250A (en) Method for adjusting cpu power
JPH0319036A (en) Dynamic dispatching system using time slice interval
JPS59125450A (en) Virtual computer control system
JPS60103458A (en) Automatic distribution method for allocation of application
JPH01259430A (en) Subtracting method for interval timer value
JPH0378836A (en) Time distribution system
JPS6010343A (en) Time slice value control system
JPH0527991A (en) Electronic processor
JPH0877029A (en) Processing request execution order control system based upon load rate
JPH06202884A (en) Multiprogram execution managment method
JPS6269324A (en) Task control system
JPH0744405A (en) Measuring control system for operating time of virtual computer in virtual computer system
JPH04264920A (en) Sysout spool control system