JPH05313924A - Measuring mechanism for virtual computer - Google Patents

Measuring mechanism for virtual computer

Info

Publication number
JPH05313924A
JPH05313924A JP12032392A JP12032392A JPH05313924A JP H05313924 A JPH05313924 A JP H05313924A JP 12032392 A JP12032392 A JP 12032392A JP 12032392 A JP12032392 A JP 12032392A JP H05313924 A JPH05313924 A JP H05313924A
Authority
JP
Japan
Prior art keywords
time
virtual computer
virtual machine
virtual
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
JP12032392A
Other languages
Japanese (ja)
Inventor
Seisuke Takeshima
靖祐 竹島
Hidenori Sankai
秀則 山開
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
Hitachi Computer Engineering Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Computer Engineering Co 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, Hitachi Computer Engineering Co Ltd filed Critical Hitachi Ltd
Priority to JP12032392A priority Critical patent/JPH05313924A/en
Publication of JPH05313924A publication Critical patent/JPH05313924A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To maintain the performance of a virtual computer system and to secure the high measuring accuracy of the operating time of a virtual computer by providing a mechanism to measure the operating time of the virtual computer kept in a wait state. CONSTITUTION:When a working virtual computer 104 is brought into a wait state, a wait state measuring mechanism starts to measure the time when an interruption is applied to the computer 104 and accumulates these measured time. This operation is repeated every time the computer 104 is brought into a wait state after the operation of the computer 104 is interrupted and the control is given again to a virtual computer control program VMCP 102. When the VMCP 102 is controlled again, the accumulated value of time is given to the VMCP 102. Thus, the VMCP 102 adds the received value to the value (the time measured by an SIE instruction and covering from the start of operation of the virtual computer to the return of control to the VMCP 102) measured by a conventional method in order to know the operating time of the computer 104. In such a constitution, the performance of a virtual computer system is maintained and the high measuring accuracy is secured for the operating time of a virtual computer.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は仮想計算機システムの制
御及びチュ−ニングに係り、特に仮想計算機の動作を継
続させ、仮想計算機の性能を維持する方式の仮想計算機
システムのチュ−ニングを可能とする機構に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to control and tuning of a virtual computer system, and in particular, enables tuning of a virtual computer system of a method of maintaining the performance of the virtual computer by continuing the operation of the virtual computer. Related to the mechanism.

【0002】[0002]

【従来の技術】仮想計算機システムにおいては、オペレ
−タによつて指示された実行比率を基に、仮想計算機制
御プログラム(以後VMCPと称す)が各々の仮想計算
機を実計算機上で時分割に動作させている。
2. Description of the Related Art In a virtual computer system, a virtual computer control program (hereinafter referred to as VMCP) operates each virtual computer on a real computer in time division based on an execution ratio designated by an operator. I am letting you.

【0003】このときVMCPは与えられた実行比率に
従い各仮想計算機に分割した実行時間(以後タイムスラ
イスと称す)を割り振るが、仮想計算機の動作は変動す
るため、仮想計算機の実行時間を測定し、実行時間情報
を基にオペレ−タが実行比率をチュ−ニングし、最適な
タイムスライスを各仮想計算機に与えることが必要とな
る。
At this time, the VMCP allocates a divided execution time (hereinafter referred to as a time slice) to each virtual computer according to a given execution ratio, but since the operation of the virtual computer fluctuates, the execution time of the virtual computer is measured, It is necessary for the operator to tune the execution ratio based on the execution time information and give an optimum time slice to each virtual computer.

【0004】なおこの種の仮想計算機システムの資源管
理に関連する技術を開示する公知例として特開昭64−
2145号などがある。
As a publicly known example for disclosing a technique related to the resource management of this kind of virtual computer system, Japanese Patent Laid-Open No. 64-64-
2145 and so on.

【0005】[0005]

【発明が解決しようとする課題】前記の様に仮想計算機
の実行時間の測定は仮想計算機システムの運用に必要な
技術であり、一般に仮想計算機制御プログラムが発行す
る仮想計算機動作命令(以後SIE命令と称す)によ
り、その仮想計算機の動作が開始され、仮想計算機の動作
を中断しVMCPに制御が戻る(以後インタセプシヨン
と称す)までの時間を計測する事で実現している。
As described above, the measurement of the execution time of the virtual machine is a technique necessary for the operation of the virtual machine system. Generally, the virtual machine operation command (hereinafter referred to as SIE command) issued by the virtual machine control program is used. This is realized by measuring the time until the operation of the virtual machine is started, the operation of the virtual machine is interrupted, and the control returns to VMCP (hereinafter referred to as interception).

【0006】ここで仮想計算機がウエイト状態に陥つた
時、インタセプシヨンを起こす事により、ウエイト時間
のオ−バ−ヘッドを排除し、計測した仮想計算機の実行
時間の精度を保証している。
[0006] Here, when the virtual machine falls into the wait state, interception is caused to eliminate the overhead of the wait time and guarantee the accuracy of the measured execution time of the virtual machine.

【0007】この時仮想計算機に対して報告される割込
みの処理はVMCPによるシミュレ−ションにより実現
されるが、それは仮想計算機自身が割込みを処理する場
合と比べて大きな処理ステップを費やすため、仮想計算
機システムの性能が低下する問題が有った。
At this time, the processing of the interrupt reported to the virtual machine is realized by the simulation by VMCP, but since it consumes a large processing step as compared with the case where the virtual machine itself processes the interrupt, the virtual machine is processed. There was a problem that system performance deteriorated.

【0008】そこで仮想計算機がウエイト状態に陥つた
時、インタセプシヨンを抑止してシステム性能の低下を
抑える事が出来るが、この場合仮想計算機のウエイト時
間が計測時間に含まれる為、実行時間の計測精度は保証
されない問題が有った。
Therefore, when the virtual machine falls into the wait state, it is possible to suppress the interception and suppress the deterioration of the system performance. In this case, however, since the wait time of the virtual machine is included in the measurement time, the execution time is reduced. There was a problem that the measurement accuracy was not guaranteed.

【0009】本発明の目的は、仮想計算機のウエイト
時、インタセプシヨンを抑止した仮想計算機の実行時間
の計測精度を保証する方式を提供することに有る。
An object of the present invention is to provide a method for guaranteeing the measurement accuracy of the execution time of a virtual machine in which the interception is suppressed when the virtual machine is waiting.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、ウエイト状態の仮想計算機の動作時間を
測定する機構を設け、VMCPにその計測情報を与える
事により、従来の計測情報と合わせて仮想計算機の正確
な実行時間情報をVMCPが得るものである。
In order to achieve the above object, the present invention is provided with a mechanism for measuring the operating time of a virtual computer in a wait state, and the measured information is given to a VMCP to obtain the conventional measured information. Together with this, the VMCP obtains accurate execution time information of the virtual machine.

【0011】[0011]

【作用】動作中の仮想計算機がウエイト状態に入ったと
き、ウエイト状態を計測する機構が起動し仮想計算機に
割込みが入るまでの時間を測定し累積する、これを仮想
計算機の動作が中断しVMCPに制御が戻るまで仮想計
算機がウエイトに入る毎に繰り返す、VMCPに制御が
戻った時、その累積値をVMCPに与え、VMCPは従
来の手法で測定した値(SIE命令により、その仮想計
算機の動作が開始され、VMCPに戻るまでの測定値)
と合わせて仮想計算機の実行時間を知ることができる、
この様にして本発明で仮想計算機システムの性能を維持
し、仮想計算機実行時間の測定精度を確保出来る。
When a virtual computer in operation enters a wait state, a mechanism for measuring the wait state is activated, and the time until an interrupt is input to the virtual computer is measured and accumulated. This interrupts the operation of the virtual computer and the VMCP. It repeats every time the virtual machine enters the wait state until control is returned to. When the control returns to VMCP, the cumulative value is given to VMCP, and VMCP is the value measured by the conventional method (the operation of the virtual machine by the SIE instruction). (Measurement value until starting and returning to VMCP)
You can know the execution time of the virtual machine together with
In this way, the present invention can maintain the performance of the virtual computer system and secure the measurement accuracy of the virtual computer execution time.

【0012】[0012]

【実施例】図1は本発明に係る仮想計算機システムの一
実施例の構成図である。
1 is a block diagram of an embodiment of a virtual computer system according to the present invention.

【0013】計算器101は仮想計算機を制御するVM
CP102と、VMCP102のもとで動作する仮想計
算機104、SIE命令を実現するSIE機構105、
SIE命令のオペランドである状態記述108、及び計
算器の計時機構(以後TODと称す)125を有する。
The computer 101 is a VM that controls a virtual computer.
CP 102, virtual machine 104 operating under VMCP 102, SIE mechanism 105 for realizing SIE instructions,
It has a state description 108, which is an operand of the SIE instruction, and a timing mechanism (hereinafter referred to as TOD) 125 of a calculator.

【0014】VMCP102は計算器の初期状態におい
ては、図示しない外部記憶装置に格納されており、仮想
計算機システムのオペレ−タによる起動操作により、図
示しない主記憶装置にロ−ド及び起動され、主記憶装置
上に仮想計算機104及び状態記述108を生成する。
The VMCP 102 is stored in an external storage device (not shown) in the initial state of the computer, and is loaded and activated in a main storage device (not shown) by an activation operation by an operator of the virtual computer system. The virtual computer 104 and the state description 108 are generated on the storage device.

【0015】又オペレ−タによりVMCP102の仮想
計算機動作環境の設定を図示しないコンソ−ル装置によ
り操作できるものとする。
It is also assumed that the operator can operate the setting of the virtual computer operating environment of the VMCP 102 by a console device (not shown).

【0016】VMCP102とSIE機構105及び仮
想計算機104には、仮想計算機104の起動とインタ
セプシヨンを実現するインタ−フェ−ス106が設けら
れ、VMCP102と状態記述108間には通常の記憶
装置アクセス手段110、SIE機構105と状態記述
108にはオペランド読みだし及び書き込み用のアクセ
ス手段111が設けられている。
The VMCP 102, the SIE mechanism 105, and the virtual machine 104 are provided with an interface 106 for realizing the activation and interception of the virtual machine 104, and a normal storage device access is provided between the VMCP 102 and the state description 108. The means 110, the SIE mechanism 105 and the state description 108 are provided with access means 111 for reading and writing operands.

【0017】SIE機構105内部には仮想計算機10
4のウエイト状態を計測する機構であるウエイト状態計
測機構107が具備されておりその内部に、フラグ12
3、時刻記憶手段121、及び122がレジスタとして
具備されている、ウエイト状態計測機構107はTOD
125から時刻を読み出せるようになつており、その値
は計測に十分な精度を持つているものとする。
Inside the SIE mechanism 105, the virtual computer 10
The weight state measuring mechanism 107 which is a mechanism for measuring the weight state of No. 4 is provided, and the flag 12 is provided therein.
3, the time storage means 121 and 122 are provided as registers, and the weight state measuring mechanism 107 is TOD.
The time can be read out from 125, and the value has sufficient accuracy for measurement.

【0018】状態記述108内部にはウエイト状態計測
機構107を活性/非活性化する為のフラグ120、及
びVMCP102が測定した時間を参照するための記憶
部である時刻情報124を具備する。
The state description 108 is provided with a flag 120 for activating / deactivating the weight state measuring mechanism 107, and time information 124 which is a storage unit for referring to the time measured by the VMCP 102.

【0019】次に図1に示す仮想計算機システムの動作
を図2及び図3に従い説明する。
Next, the operation of the virtual computer system shown in FIG. 1 will be described with reference to FIGS.

【0020】ここでVMCP102はすでに動作可能な
状態であり仮想計算機104は主記憶装置に生成されて
いるものとする。
Here, it is assumed that the VMCP 102 is already in an operable state and the virtual machine 104 has been created in the main storage device.

【0021】VMCP102が仮想計算機の動作を開始
する時、102は時刻情報124に初期値を設定しフラ
グ120を立て、SIE命令を発行し(ステップ20
1)、SIE機構105及びウエイト状態計測機構10
7が動作を開始する。以後SIE機構105が動作を開
始すると自動的にウエイト状態計測機構107も動作を
連動して開始するするものとする。
When the VMCP 102 starts the operation of the virtual machine, the 102 sets the initial value in the time information 124, sets the flag 120, and issues the SIE instruction (step 20).
1), SIE mechanism 105 and weight state measuring mechanism 10
7 starts operation. After that, when the SIE mechanism 105 starts its operation, the weight state measuring mechanism 107 automatically starts its operation.

【0022】この時フラグ120を立てる又は立てない
はオペレ−タによるVMCP102の仮想計算機動作環
境の設定操作による。
At this time, whether the flag 120 is set or not set depends on the setting operation of the virtual computer operating environment of the VMCP 102 by the operator.

【0023】起動されたSIE機構105はフラグ12
0を判定し(ステップ202)、フラグ120が立って
いればウエイト状態計測機構107が初期値を設定され
た時刻情報124の値を時刻記憶手段122に設定する
(ステップ203)、その後SIE機構105により仮
想計算機104が動作を開始する。
The activated SIE mechanism 105 has a flag 12
If 0 is determined (step 202) and the flag 120 is set, the weight state measuring mechanism 107 sets the value of the time information 124 to which the initial value is set in the time storing means 122 (step 203), and then the SIE mechanism 105. This causes the virtual computer 104 to start operating.

【0024】仮想計算機104が動作中、ウエイト状態
に入った時(ステップ204)SIE機構105が介入
しフラグ120を判定する(ステップ205)、120
が立っていればウエイト状態計測機構107がTODよ
り時刻を読みだし、時刻記憶手段121に設定する(ス
テップ206)、更にウエイト状態の計測中を示すフラ
グ123を立てる(ステップ207)、その後105の
介入を終了し割込みが起こるまでウエイト状態を継続す
る、120が立っていなければSIE機構105により
インタセプシヨンが行われVMCP102に制御が移る
(ステップ208)、この場合は従来と同じ処理であ
る。
When the virtual computer 104 enters a wait state while operating (step 204), the SIE mechanism 105 intervenes to determine the flag 120 (step 205), 120
If is set, the weight state measuring mechanism 107 reads the time from the TOD and sets the time in the time storage means 121 (step 206). Further, a flag 123 indicating that the weight state is being measured is set (step 207), and then 105. The wait state is continued until the intervention is ended and an interrupt occurs. If 120 is not set, the SIE mechanism 105 intercepts and transfers control to the VMCP 102 (step 208). In this case, the same processing as in the conventional case is performed.

【0025】ウエイト状態の仮想計算機104に割込み
が起こった場合(ステップ209)SIE機構105が
介入し、ウエイト状態計測機構107がフラグ123を
判定し(ステップ210)、123が立っていればその
時の時刻をTODより読みだし、時刻記憶手段121の
値との差を計算することにより仮想計算機104のウエ
イト状態が継続していた時間を算出し、その値と時刻記
憶手段122の内容を加算し122に格納する(ステッ
プ211)、その後ウエイト状態の計測を終了した事を
示す為にフラグ123をクリアし(ステップ212)、
通常の割込み処理にもどる(ステップ213)。これで
仮想計算機104のウエイト時間が時刻記憶手段122
に加算された。
When an interrupt occurs in the virtual computer 104 in the wait state (step 209), the SIE mechanism 105 intervenes, and the wait state measuring mechanism 107 judges the flag 123 (step 210). The time is read from TOD and the difference between the time and the value of the time storage means 121 is calculated to calculate the time during which the wait state of the virtual machine 104 continues, and the value and the content of the time storage means 122 are added to 122 (Step 211), and then the flag 123 is cleared to indicate that the measurement of the weight state is completed (step 212),
The process returns to normal interrupt processing (step 213). With this, the wait time of the virtual computer 104 is stored in the time storage means 122.
Was added to.

【0026】仮想計算機104のウエイトの処理は仮想
計算機の動作中に複数回繰り返される事も考えられる
が、その時はステップ204から213が繰り返され計
測時間が時刻記憶手段122に累積される。
The weight processing of the virtual computer 104 may be repeated a plurality of times during the operation of the virtual computer. In that case, steps 204 to 213 are repeated and the measurement time is accumulated in the time storage means 122.

【0027】ここでフラグ123を設けたのは、仮想計
算機が通常動作中に割込みが起こった場合のステップ2
11の動作を抑止し誤動作を防ぐ為である。
The flag 123 is provided here in step 2 when an interrupt occurs during normal operation of the virtual machine.
This is to prevent the operation of 11 and prevent malfunction.

【0028】仮想計算機104にSIE機構105によ
りインタセプシヨンが起きたとき(ステップ214)、
105はフラグ120を判定しウエイト状態計測機構1
07が時刻記憶手段122の値を時刻情報124に設定
する。
When interception occurs in the virtual machine 104 by the SIE mechanism 105 (step 214),
Reference numeral 105 determines the flag 120 to determine the weight state measuring mechanism 1
07 sets the value of the time storage means 122 in the time information 124.

【0029】これによりVMCP102に制御が戻った
時102は仮想計算機104のウエイト時間を知ること
が出来る。インタセプシヨンが起こるのは、仮想計算機
104がタイムスライスを使い切った時、又は104で
発行する特権命令が仮想計算機システムに影響を与える
とSIE機構105が判断した場合である。
As a result, when the control returns to the VMCP 102, the wait time of the virtual computer 104 can be known. Interception occurs when the virtual machine 104 runs out of time slices, or when the SIE mechanism 105 determines that a privileged instruction issued at 104 affects the virtual machine system.

【0030】VMCP102は従来の手法と同様にSI
E命令発行から仮想計算機104が動作しインタセプシ
ヨンにより102へ制御が戻るまでの時間を計測してお
り、上記で得られたウエイト時間情報と合わせて仮想計
算機104の正確な実行時間を知る事ができる。
The VMCP 102 uses SI as in the conventional method.
The time from issuing the E instruction to the time when the virtual computer 104 operates and the control returns to 102 by the interception is measured, and it is necessary to know the accurate execution time of the virtual computer 104 together with the wait time information obtained above. You can

【0031】ここで注目すべきはVMCP102により
フラグ120を立てることにより仮想計算機のウエイト
時のインタセプシヨンを抑止し、割込みを仮想計算機に
直接実行させている事である。
It should be noted here that the flag 120 is set by the VMCP 102 so that the interception during the wait of the virtual machine is suppressed and the interrupt is directly executed by the virtual machine.

【0032】又フラグ120を立てないことにより仮想
計算機にインタセプシヨンを起し、仮想計算機の実行時
間計測を従来と同様の手法で実現させる事もできる。
Further, by not setting the flag 120, it is possible to cause an interception in the virtual machine and measure the execution time of the virtual machine by the same method as the conventional method.

【0033】ここで時刻記憶手段122を設けず、ステ
ップ211で時刻情報124に直接ウエイト時間情報を
累積することも考えられる、その場合ステップ203、
216を省略することが出来るが、割込み処理に主記憶
装置へのアクセスを伴う無視できないオ−バ−ヘッドを
生じ、仮想計算機実行性能に影響する、一般にSIE命
令及びインタセプシヨン処理は多くの処理ステップを費
やす為主記憶装置へのアクセスによるステップ203、
216のオ−バ−ヘッドはあまり問題ではない。
Here, it may be considered that the time storage means 122 is not provided and the wait time information is directly accumulated in the time information 124 in step 211. In that case, step 203,
Although 216 can be omitted, the SIE instruction and interception processing, which causes a non-negligible overhead accompanied with access to the main storage device in the interrupt processing and affects the virtual computer execution performance, generally involves a lot of processing. Step 203 by accessing the main memory to spend steps
The 216 overhead is less of a problem.

【0034】なお図1の実施例では仮想計算機は1個と
しているが、複数の仮想計算機を動作させる場合、1時
点で動作する仮想計算機は1個である事から図1の様に
仮想計算機を1個で表現しても一般性を失わない。
In the embodiment of FIG. 1, the number of virtual machines is one. However, when operating a plurality of virtual machines, the number of virtual machines operating at one time point is one. Therefore, as shown in FIG. Even if it is expressed by one, the generality is not lost.

【0035】次に図4は本発明係る仮想計算機システム
のもう一つの実施例の構成図の一部である。前実施例と
の重複部は省略してある、即ち図1でのSIE機構10
5を図4のSIE機構300及びプログラム状態語30
3と入れ替えたものが全体像である。
Next, FIG. 4 is a part of a configuration diagram of another embodiment of the virtual computer system according to the present invention. The overlapping part with the previous embodiment is omitted, that is, the SIE mechanism 10 in FIG.
5 is the SIE mechanism 300 and program state word 30 of FIG.
The whole picture is replaced with 3.

【0036】ここでSIE機構300はウエイト状態計
測機構301を内部に持ち、301は時刻記憶手段30
2及び302の内容を定期的にカウントアップ出来るカ
ウンタ305を具備する。このSIE機構300は計算
機のウエイト状態を示すプログラム状態語303のウエ
イトビット304の状態を受けられる様に配線されてお
り、304が立ち計算機がウエイト状態に入った時SI
E機構300の指示によりウエイト状態計測機構301
が計算機の動作と並行してカウントアップを始め、30
4が落ちたときカウントを停止する様に構成されてい
る。
Here, the SIE mechanism 300 has a weight state measuring mechanism 301 inside, and 301 is the time storage means 30.
A counter 305 capable of periodically counting up the contents of 2 and 302 is provided. The SIE mechanism 300 is wired so that it can receive the state of the wait bit 304 of the program state word 303 indicating the wait state of the computer, and when the SIE mechanism 304 stands up and the computer enters the wait state, it is SI.
The weight state measuring mechanism 301 is instructed by the E mechanism 300.
Started counting up in parallel with the operation of the computer, 30
It is configured to stop counting when 4 is dropped.

【0037】図4に示す仮想計算機システムの動作を説
明する、時刻記憶手段302の扱いは図1における時刻
記憶手段122と同じである、すなわちSIE命令にお
いて時刻情報124より初期値を設定し、インタセプシ
ヨンで124へ書き戻しを行う。
The operation of the time storage means 302 for explaining the operation of the virtual computer system shown in FIG. 4 is the same as that of the time storage means 122 in FIG. 1, that is, the initial value is set from the time information 124 in the SIE instruction and the interface is set. Write back to 124 with the separation.

【0038】次に本実施例でのカウントアップ処理を図
5に従い説明する、SIE命令及びインタセプシヨン処
理は前実施例と同じなので省略する。仮想計算機がウエ
イト状態に入った時(ステップ310)、SIE機構3
00が介入しフラグ120を判定する(ステップ31
1)、120が立っていればSIE機構300がウエイ
ト状態計測機構301にカウント開始指示を出し(ステ
ップ314)、カウンタ305は計算機の動作と並行し
てカウントアップを始める(ステップ311)、ここで
カウントアップする時間間隔は測定精度に十分なものと
する。その後300の介入を終了し割込みが起こるまで
ウエイト状態を継続する(ステップ315)、120が
立っていなければSIE機構301によりインタセプシ
ヨンが行われVMCPに制御が移る(ステップ31
2)。
Next, the count-up processing in this embodiment will be described with reference to FIG. 5. The SIE instruction and interception processing are the same as in the previous embodiment, and will be omitted. When the virtual computer enters the wait state (step 310), the SIE mechanism 3
00 intervenes to determine the flag 120 (step 31
1) If 120 is standing, the SIE mechanism 300 issues a count start instruction to the weight state measuring mechanism 301 (step 314), and the counter 305 starts counting up in parallel with the operation of the computer (step 311). The time interval for counting up should be sufficient for measurement accuracy. Thereafter, the intervention of 300 is completed and the wait state is continued until an interrupt occurs (step 315). If 120 is not set, the SIE mechanism 301 performs the interception and the control is transferred to the VMCP (step 31).
2).

【0039】ウエイト状態の仮想計算機に割込みが起こ
った場合(ステップ316)仮想計算機の割込み処理に
より、プログラム状態語303に記憶装置からデ−タが
ロ−ドされる、このときウエイトビット304は割込み
処理によりクリアされ(ステップ317)、ウエイト状
態計測機構301にカウント停止信号が送られ、カウン
タ305が停止し、時刻記憶手段302に仮想計算機の
ウエイト時間が累積される。
When an interrupt occurs in the virtual computer in the wait state (step 316), the interrupt process of the virtual computer causes the program status word 303 to be loaded with data from the storage device. At this time, the wait bit 304 is interrupted. It is cleared by the processing (step 317), the count stop signal is sent to the weight state measuring mechanism 301, the counter 305 is stopped, and the wait time of the virtual machine is accumulated in the time storage means 302.

【0040】この様に本実施例では前実施例と同じ効果
を得ることができ、更に前実施例の図2ステップ20
6、207、図3ステップ211、212が不要とな
り、ウエイト及び割込み処理が高速化する、しかし前実
施例はマイクロプログラムにより実現が可能であるが、
本実施例では論理回路によらなければ実現出来ない為、
前実施例と比べて容易かつ安価には実施できない。
As described above, in this embodiment, the same effect as that of the previous embodiment can be obtained, and the step 20 in FIG.
6, 207 and steps 211 and 212 in FIG. 3 are unnecessary, and the wait and interrupt processing is speeded up. However, although the previous embodiment can be realized by a microprogram,
In this embodiment, since it cannot be realized without using a logic circuit,
It cannot be implemented easily and inexpensively as compared with the previous embodiment.

【0041】[0041]

【発明の効果】以上の様に、本発明によれば仮想計算機
システムの性能を維持し、仮想計算機実行時間の測定精
度を確保出来る。
As described above, according to the present invention, the performance of the virtual computer system can be maintained and the measurement accuracy of the virtual computer execution time can be secured.

【0042】[0042]

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

【図1】[Figure 1]

【図4】本発明による仮想計算機システムによる仮想計
算機実行時間の測定方式の一実施例を示す図である。
FIG. 4 is a diagram showing an embodiment of a method for measuring virtual computer execution time by the virtual computer system according to the present invention.

【図2】[Fig. 2]

【図3】[Figure 3]

【図5】仮想計算機実行時間の測定方式の処理フロ−を
示す図である。
FIG. 5 is a diagram showing a processing flow of a method for measuring a virtual computer execution time.

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

101 計算機 102 VMCP 104 仮想計算機 105 SIE機構 106 SIEインタ−フェ−ス 107 ウエイト状態計測機構 108 状態記述 110 102と108間の記憶装置アクセス手段 111 105と108間のオペランド読みだし及び書
き込み用のアクセス手段 120 フラグ 121 時刻記憶手段 122 時刻記憶手段 123 フラグ 124 時刻情報 125 TOD 300 SIE機構 301 ウエイト状態計測機構 302 時刻記憶手段 303 プログラム状態語 304 ウエイトビット 305 カウンタ
101 computer 102 VMCP 104 virtual computer 105 SIE mechanism 106 SIE interface 107 weight status measuring mechanism 108 state description 110 storage access means between 102 and 108 access means for operand reading and writing between 105 and 108 120 flag 121 time storage means 122 time storage means 123 flag 124 time information 125 TOD 300 SIE mechanism 301 wait state measuring mechanism 302 time storage means 303 program state word 304 weight bit 305 counter

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 少なくとも2個以上の仮想計算機を制御
するために、仮想計算機制御プログラムが発行する仮想
計算機動作命令により、その仮想計算機の動作が開始さ
れ、その仮想計算機の動作が仮想計算機システムの動作
に影響を与える場合、仮想計算機の動作を中断し仮想計
算機制御プログラムに制御が戻る実行形態機を持ち、仮
想計算機が割込みを直接実行出来るように、仮想計算機
がウエイト状態に入った時制御プログラムに制御が戻ら
ない機構を持つ仮想計算機システムにおいて、 ウエイト状態の仮想計算機の動作時間を測定する機構
と、仮想計算機制御プログラムにその測定情報を与える
機構とを有することを特徴とする仮想計算機システム
1. In order to control at least two or more virtual machines, a virtual machine operation command issued by a virtual machine control program starts the operation of the virtual machine, and the operation of the virtual machine is performed by a virtual machine system. When the virtual machine enters the wait state so that the virtual machine can directly execute an interrupt, it has an execution mode machine that interrupts the operation of the virtual machine and returns control to the virtual machine control program when it affects the operation. In a virtual machine system having a mechanism in which control is not returned to the virtual machine, the virtual machine system is characterized by having a mechanism for measuring the operating time of the virtual machine in a wait state and a mechanism for giving the measurement information to the virtual machine control program.
【請求項2】 請求項1において、ウエイト状態に入っ
た仮想計算機の制御を仮想計算機制御プログラムに戻さ
ない機構と連動し、前記仮想計算機のウエイト時間を測
定する機構を仮想計算機システムのオペレ−タによる操
作を契機として、仮想計算機制御プログラムにより抑止
又は動作する事を特徴とする仮想計算機システム。
2. The operator of a virtual computer system according to claim 1, wherein a mechanism for measuring a wait time of the virtual computer is interlocked with a mechanism that does not return control of the virtual computer that has entered the wait state to the virtual computer control program. A virtual computer system characterized by being restrained or operated by a virtual computer control program triggered by an operation by.
JP12032392A 1992-05-13 1992-05-13 Measuring mechanism for virtual computer Pending JPH05313924A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12032392A JPH05313924A (en) 1992-05-13 1992-05-13 Measuring mechanism for virtual computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12032392A JPH05313924A (en) 1992-05-13 1992-05-13 Measuring mechanism for virtual computer

Publications (1)

Publication Number Publication Date
JPH05313924A true JPH05313924A (en) 1993-11-26

Family

ID=14783412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12032392A Pending JPH05313924A (en) 1992-05-13 1992-05-13 Measuring mechanism for virtual computer

Country Status (1)

Country Link
JP (1) JPH05313924A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09212467A (en) * 1996-01-30 1997-08-15 Fujitsu Ltd Load decentralization control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09212467A (en) * 1996-01-30 1997-08-15 Fujitsu Ltd Load decentralization control system

Similar Documents

Publication Publication Date Title
US4812967A (en) Method and apparatus for controlling interrupts in a virtual machine system
US4860190A (en) Computer system for controlling virtual machines
US4924382A (en) Debugging microprocessor capable of switching between emulation and monitor without accessing stack area
JPH06110740A (en) Method and means for measuring channel-using time
JP5353227B2 (en) Information processing apparatus having performance measurement program, performance measurement method, and performance measurement function.
US4943915A (en) Apparatus and method for synchronization of a coprocessor unit in a pipelined central processing unit
EP0290942B1 (en) Guest machine execution control system for virtual machine system
JPH05313924A (en) Measuring mechanism for virtual computer
US4816992A (en) Method of operating a data processing system in response to an interrupt
US5813039A (en) Guest execution control system, method and computer process for a virtual machine system
JP2624798B2 (en) Processing unit debugging mechanism
JPS6120900B2 (en)
JPS6126095B2 (en)
JP2587451B2 (en) I / O control method in virtual machine system
JPS599936B2 (en) data monitoring device
JPH03269640A (en) Virtual computer system
JPH01211048A (en) Measuring system for executing instruction number of program
JPH05181748A (en) Cache memory device
JPH0744405A (en) Measuring control system for operating time of virtual computer in virtual computer system
JPS6134167B2 (en)
JPH05241852A (en) Interruption generating device for information processing system
JPS6031649A (en) Timer controlling method in virtual computer system
JPH06266630A (en) Input/output controller with trace function
JPH11102298A (en) Timer control method, and its circuit and program recording medium
JPS6139135A (en) Interval timer interruption controller of virtual computer system