JP2000215071A - Virtual computer system - Google Patents

Virtual computer system

Info

Publication number
JP2000215071A
JP2000215071A JP11012711A JP1271199A JP2000215071A JP 2000215071 A JP2000215071 A JP 2000215071A JP 11012711 A JP11012711 A JP 11012711A JP 1271199 A JP1271199 A JP 1271199A JP 2000215071 A JP2000215071 A JP 2000215071A
Authority
JP
Japan
Prior art keywords
processor
task
guest
instruction processor
physical
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
JP11012711A
Other languages
Japanese (ja)
Inventor
Yoshihiro Harima
良洋 播磨
Toyohisa Imada
豊寿 今田
Hideaki Amano
英昭 天野
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 JP11012711A priority Critical patent/JP2000215071A/en
Publication of JP2000215071A publication Critical patent/JP2000215071A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To improve the efficiency of a guest program process by providing a processor dedicated to a control program (host program) process and avoiding a conflict of resources between a guest program and the host program. SOLUTION: In a common memory, a host task queue 53 wherein tasks of a host are queued, a fixed guest task queue #1 (54) of guest tasks operating only on an instruction processor #1, a fixed guest task queue #2 (55) of guest tasks operating only on an instruction processor #2, and a floating guest task queue of guest tasks which can operate on any of the processor #1 or #2 are present; and a processor #3 mainly dispatches the tasks in the host task queue and the processor #1 mainly dispatches the tasks in the task queue #1 and floating guest task queue and dispatches the tasks in the host task queue only when no task is present in those queues. The processor #2 is also the same with the processor #1.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は仮想計算機システム
に係り、特に物理計算機の複数の物理命令プロセッサを
有し、複数の物理命令プロセッサを論理的に分割して使
用する仮想命令プロセッサを備える計算機システムに関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual computer system, and more particularly to a computer system having a plurality of physical instruction processors of a physical computer, and having a virtual instruction processor that logically divides and uses the plurality of physical instruction processors. About.

【0002】[0002]

【従来の技術】仮想計算機は、物理計算機上のプロセッ
サ、メモリなどのハードウェア資源を仮想計算機制御プ
ログラム(以下、単に制御プログラムと称す)が配分・
シミュレートすることにより1台の物理計算機上に複数
の仮想計算機が実現される。このように物理計算機を管
理し仮想計算機システムを実現している制御プログラム
をホストと呼ぶ。また、仮想計算機上で走行しているプ
ログラムをゲストと呼ぶ。
2. Description of the Related Art In a virtual computer, a virtual computer control program (hereinafter simply referred to as a control program) distributes hardware resources such as a processor and a memory on a physical computer.
By performing the simulation, a plurality of virtual computers are realized on one physical computer. A control program that manages a physical computer and implements a virtual computer system in this manner is called a host. A program running on the virtual machine is called a guest.

【0003】ユーザのプログラムはゲスト上で走行する
ものであり、ゲストを効率的に動作させるためには制御
プログラム処理にかかる処理時間やオーバヘッドなどを
低減し、可能な限りゲストプログラムの処理にハードウ
ェア資源を割り当てることが望ましい。しかし、従来の
方式においてはホストプログラムの走行とゲストプログ
ラムの走行は任意の物理プロセッサ上で時分割に処理さ
れ、基本的にはホストとゲストのハードウェア資源の区
別はないため同一のハードウェア資源をホストとゲスト
で共有して使用している。そのため、ある一定時間にお
いては物理プロセッサ上で処理されるプログラムはホス
トプログラムのみが占有して使用する場合が発生し、ゲ
ストプログラム側からみればそれらの処理時間を含めた
プログラムの応答時間がゲストプログラムの応答時間と
なっている。この場合、ホストの資源占有時間が短い場
合は問題とならないが、ホストが実行時間が大きいタス
クを実行している場合や性能測定、トレース採取などの
ゲストには直接関連のない保守コマンド等のホスト処理
に時間を要する事柄が発生した場合はゲストの実処理時
間が増大するため問題となる。この種の技術に関連のあ
る文献としては例えば特願平10−9055号「情報処
理装置のアーキテクチャの変更方式」がある。
[0003] The user program runs on the guest, and in order to operate the guest efficiently, the processing time and overhead required for the control program processing are reduced, and hardware processing is performed to the guest program as much as possible. It is desirable to allocate resources. However, in the conventional method, the running of the host program and the running of the guest program are processed in a time-division manner on an arbitrary physical processor, and there is basically no distinction between the hardware resources of the host and the guest. Is shared between the host and guest. For this reason, during a certain period of time, a program processed on the physical processor may be occupied and used only by the host program, and from the guest program side, the response time of the program including the processing time may be the guest program. Response time. In this case, if the resource occupancy time of the host is short, this is not a problem.However, if the host is executing a task with a long execution time, or a host such as a maintenance command that is not directly related to the guest, such as performance measurement or trace collection. If an event that requires time for processing occurs, a problem arises because the actual processing time of the guest increases. As a document related to this type of technology, there is, for example, Japanese Patent Application No. 10-9055, “Method of Changing Architecture of Information Processing Apparatus”.

【0004】[0004]

【発明が解決しようとする課題】上述のようにホストと
ゲストが、動作するプロセッサ資源を共有する従来の方
式ではホストプログラムが資源を占有する時間の増加に
伴ってゲストプログラム処理にかかる実時間が増大しゲ
ストからみた処理能力の低下が発生する問題は事実上不
可避である。本発明の目的はプロセッサ資源のゲスト割
当て率を増加させ処理効率の向上を図ることにある。
As described above, in the conventional method in which the host and the guest share the operating processor resources, the real time required for the guest program processing increases as the time required for the host program to occupy the resources increases. The problem of an increase and a decrease in processing capacity as seen from the guest occurs is practically unavoidable. An object of the present invention is to increase the guest allocation rate of processor resources to improve processing efficiency.

【0005】[0005]

【課題を解決するための手段】上記の目的を達成するた
め、本発明は、複数の物理命令プロセッサを有する物理
計算機を備え、該複数の物理命令プロセッサを論理的に
分割して使用する仮想命令プロセッサを備える仮想計算
機システムにおいて、前記複数の物理命令プロセッサの
内の少なくとも1台の物理命令プロセッサを仮想計算機
システムの制御プログラム(ホストプログラム)の処理
専用の物理命令プロセッサとするようにしている。
SUMMARY OF THE INVENTION To achieve the above object, the present invention provides a virtual computer which comprises a physical computer having a plurality of physical instruction processors, and uses the plurality of physical instruction processors by dividing them logically. In a virtual machine system having a processor, at least one of the plurality of physical instruction processors is a physical instruction processor dedicated to processing a control program (host program) of the virtual machine system.

【0006】また、前記仮想計算機システムが待機用の
物理命令プロセッサを有する場合には、該待機用の物理
命令プロセッサを前記仮想計算機システムの制御プログ
ラム(ホストプログラム)の処理専用の物理命令プロセ
ッサとするようにしている。
When the virtual computer system has a standby physical instruction processor, the standby physical instruction processor is a physical instruction processor dedicated to processing a control program (host program) of the virtual computer system. Like that.

【0007】また、前記仮想計算機システムの記憶装置
に前記制御プログラムが実行するタスクのみがキューイ
ングされているタスクキューを備えるようにしている。
Further, a task queue in which only the tasks executed by the control program are queued is provided in the storage device of the virtual machine system.

【0008】[0008]

【発明の実施の形態】以下、本発明の一実施例を図面を
用いて説明する。図1は本発明の一実施例にかかる計算
機システムの構成を物理計算機と仮想計算機との関係で
説明するブロック図である。図1では物理計算機におけ
る物理命令プロセッサへの仮想計算機システムのタスク
割当てを示している。図1において1は第1の命令プロ
セッサ(物理プロセッサ)であり、2は第2の命令プロ
セッサ(物理命令プロセッサ)である。なお、第1と第
2の2つの命令プロセッサ(物理プロセッサ)を示した
が、命令プロセッサ(物理プロセッサ)は1つでもよ
い。3は第3のプロセッサであり制御プログラム用プロ
セッサ(物理命令プロセッサ)である。なお、命令プロ
セッサ(物理プロセッサ)の他に、命令プロセッサ(物
理プロセッサ)に障害が発生したとき、切り替え使用さ
れるユーザには見えない待機用の命令プロセッサ(物理
プロセッサ)がある場合には、この待機用の命令プロセ
ッサ(物理プロセッサ)を上記第3のプロセッサである
制御プログラム用プロセッサ(物理命令プロセッサ)と
して使用するようにしてもよい。第1の命令プロセッサ
1および第2の命令プロセッサ2、第3の制御プログラ
ム用プロセッサの各々のプロセッサは、図1において、
それぞれ#1、#2、#3の番号を内部に保持してい
る。16はコンソール、4は共通メモリである。共通メ
モリ4は、第1の命令プロセッサ1、第2の命令プロセ
ッサ2および第3の制御プログラム用プロセッサ3のい
づれからもアクセス可能となっている。コンソール16
はオペレータと仮想計算機14との間のユーザインタフ
ェースとなる表示入出力装置である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram for explaining the configuration of a computer system according to an embodiment of the present invention in relation to a physical computer and a virtual computer. FIG. 1 shows task assignment of a virtual computer system to a physical instruction processor in a physical computer. In FIG. 1, reference numeral 1 denotes a first instruction processor (physical processor), and reference numeral 2 denotes a second instruction processor (physical instruction processor). Although the first and second instruction processors (physical processors) are shown, the number of instruction processors (physical processors) may be one. Reference numeral 3 denotes a third processor, which is a control program processor (physical instruction processor). When a failure occurs in the instruction processor (physical processor) in addition to the instruction processor (physical processor), if there is a standby instruction processor (physical processor) that is invisible to the user to be switched and used, The standby instruction processor (physical processor) may be used as the control program processor (physical instruction processor) as the third processor. Each processor of the first instruction processor 1, the second instruction processor 2, and the third control program processor is, in FIG.
The numbers # 1, # 2, and # 3 are stored therein. 16 is a console and 4 is a common memory. The common memory 4 can be accessed from any of the first instruction processor 1, the second instruction processor 2, and the third control program processor 3. Console 16
Is a display input / output device serving as a user interface between the operator and the virtual computer 14.

【0009】仮想計算機14には、物理命令プロセッサ
である第1の命令プロセッサ1(命令プロセッサ #
1)上で動作するモニタタスク11とフレームタスク1
3と論理パーティション(LPAR #1)タスク5が
生成される。また、同じく物理命令プロセッサの第1の
命令プロセッサ1上で動作し、論理パーティション(L
PAR #1)タスク5の制御下に動作する仮想命令プ
ロセッサ(LIP #1.1)タスク7が生成されるこ
とにより1つの仮想計算機が構成されシステム運用がな
される。また、必要に応じて、第1の命令プロセッサ1
(命令プロセッサ #1)上で動作する論理パーティシ
ョン(LPAR #1)タスク5の制御下に動作する仮
想命令プロセッサ(LIP #1.2)タスク8が生成
されて、物理命令プロセッサの第1または第2の命令プ
ロセッサ(命令プロセッサ#1または命令プロセッサ#
2)上で動作する。
The virtual machine 14 has a first instruction processor 1 (instruction processor #) which is a physical instruction processor.
1) Monitor task 11 and frame task 1 operating on
3 and a logical partition (LPAR # 1) task 5 are generated. Further, it operates on the first instruction processor 1 of the physical instruction processor, and operates in the logical partition (L
By generating a virtual instruction processor (LIP # 1.1) task 7 operating under the control of the PAR # 1) task 5, one virtual machine is configured and the system is operated. Also, if necessary, the first instruction processor 1
A virtual instruction processor (LIP # 1.2) task 8 operating under control of a logical partition (LPAR # 1) task 5 operating on (instruction processor # 1) is generated, and the first or second physical instruction processor is executed. 2 instruction processors (instruction processor # 1 or instruction processor #
2) work on

【0010】仮想計算機14には、物理命令プロセッサ
である第2の命令プロセッサ2(命令プロセッサ #
2)上で動作するモニタタスク12と論理パーティショ
ン(LPAR #2)タスク6が生成される。また、同
じく物理命令プロセッサの第2の命令プロセッサ2上で
動作し、論理パーティション(LPAR #2)タスク
6の制御下に動作する仮想命令プロセッサ(LIP #
2.1)タスク9が生成されることにより1つの仮想計
算機が構成されシステム運用がなされる。また、必要に
応じて、第2の命令プロセッサ2(命令プロセッサ #
2)上で動作する論理パーティション(LPAR #
2)タスク6の制御下に動作する仮想命令プロセッサ
(LIP #2.2)タスク10が生成されて、物理命
令プロセッサの第1または第2の命令プロセッサ(命令
プロセッサ#1または命令プロセッサ#2)上で動作す
る。
The virtual machine 14 has a second instruction processor 2 (instruction processor #) which is a physical instruction processor.
2) A monitor task 12 and a logical partition (LPAR # 2) task 6 operating on the above are generated. Also, the virtual instruction processor (LIP #) operates on the second instruction processor 2 of the physical instruction processor and operates under the control of the logical partition (LPAR # 2) task 6.
2.1) By generating the task 9, one virtual machine is configured and the system is operated. If necessary, the second instruction processor 2 (instruction processor #
2) Logical partition operating on (LPAR #)
2) A virtual instruction processor (LIP # 2.2) task 10 operating under the control of task 6 is generated, and the first or second instruction processor (instruction processor # 1 or instruction processor # 2) of the physical instruction processor is generated. Works on.

【0011】また制御プログラム用プロセッサ(#3)
上で動作するモニタタスク17、他プロセッサよりも優
先して制御プログラム用プロセッサ上で動作するダンプ
タスク18などが生成される。また、モニタタスクは各
プロセッサ上で1つづつ生成され動作する。なお、命令
プロセッサ2、制御プログラム用プロセッサ3における
フレームタスクは図示省略している。
A control program processor (# 3)
A monitor task 17 operating on the processor, a dump task 18 operating on the control program processor with priority over other processors, and the like are generated. The monitor tasks are generated and operated one by one on each processor. The frame tasks in the instruction processor 2 and the control program processor 3 are not shown.

【0012】なお、共通メモリ4には特定のプロセッサ
上で動作するように決められた特定の仮想命令プロセッ
サ(LIP)タスク以外の任意の物理命令プロセッサお
よび制御プログラム用プロセッサ上で動作し、主にホス
トプログラムの処理を行うタスクをキューイングする第
1のタスクキュー19(タスクキュー#1)が設けられ
る。また、物理命令プロセッサ1(命令プロセッサ#
1)上のみで動作し主にゲストプログラムの処理を行う
タスクをキューイングする第2のタスクキュー20(タ
スクキュー#2)が設けられる。また、物理命令プロセ
ッサ2(命令プロセッサ#2)上のみで動作し、主にゲ
ストプログラムの処理を行うタスクをキューイングする
第3のタスクキュー21(タスクキュー#3)が設けら
れる。また、物理命令プロセッサ1(命令プロセッサ#
1)および物理命令プロセッサ2(命令プロセッサ#
2)の任意の物理命令プロセッサ上で動作し、主にゲス
トプログラムの処理を行うタスクをキューイングする第
4のタスクキュー22(タスクキュー#4)が設けられ
る。このように各々の物理命令プロセッサ、制御プログ
ラム用プロセッサに対応して、該物理命令プロセッサ上
で動作するタスクをキューイングする各々のタスクキュ
ーが設けられる。これらのキューを各プロセッサ上で動
作するモニタタスクが参照しタスク処理を行うことによ
り、各プロセッサはそれぞれのタスク処理を行いシステ
ム運用がなされる。
The common memory 4 operates on an arbitrary physical instruction processor and a control program processor other than a specific virtual instruction processor (LIP) task determined to operate on a specific processor. A first task queue 19 (task queue # 1) for queuing a task for processing the host program is provided. The physical instruction processor 1 (instruction processor #
1) There is provided a second task queue 20 (task queue # 2) for queuing a task that operates only on the top and mainly performs processing of a guest program. Further, a third task queue 21 (task queue # 3) that operates only on the physical instruction processor 2 (instruction processor # 2) and queues a task that mainly performs processing of a guest program is provided. The physical instruction processor 1 (instruction processor #
1) and physical instruction processor 2 (instruction processor #)
A fourth task queue 22 (task queue # 4) that operates on an arbitrary physical instruction processor of 2) and queues mainly a task for processing a guest program is provided. Thus, each task queue for queuing a task operating on the physical instruction processor is provided corresponding to each physical instruction processor and control program processor. A monitor task operating on each processor refers to these queues to perform task processing, so that each processor performs its own task processing and performs system operation.

【0013】図2は、仮想計算機のシステム構成を示す
ブロック図である。図2において31はモニタセクショ
ンであり、モニタセクション21はタスク管理機能、割
り込みハンドラ機構、タイマ制御機能、およびマクロ制
御機能を持っている。36、37、38、39は仮想プ
ロセッサセクションであり、これらの仮想命令プロセッ
サ(以下LIPと略称する)セクションは、命令エミュ
レータ機能、割り込みシミュレータ機能を持っている。
また32、33は論理パーティションセクションであ
り、論理パーティション(以下LPARと略称する)セ
クションは仮想命令プロセッサを制御するLIP制御機
能を持っている。仮想命令プロセッサの機能を実現する
LIPセクション36,37(LIP#1.1、#1.
2)はLPARセクション32(LPAR#1)により
制御されLIPセクション38、39(LIP#2.
1、#2.2)はLPARセクション33(LPAR#
2)により制御される。オペレーティングシステムはL
PAR単位に1個稼動することができる。また、34は
フレームセクションであり、コンソール(16;図1)
を経由して、オペレータからのコマンドやデータを入出
力する入出力機能を有している。また、35はダンプセ
クションであり、トレースを採取する機能を有してい
る。各セクションの処理機能はタスク処理により実行さ
れているので、各セクション間のデータ連絡は、タスク
間通信機能を用いて、仮想計算機内部のコマンドやデー
タの通信が可能となっている。ここでホストプログラム
やゲストプログラムがプロセッサで実行状態にあること
をディスパッチされているという。
FIG. 2 is a block diagram showing a system configuration of the virtual machine. In FIG. 2, reference numeral 31 denotes a monitor section, and the monitor section 21 has a task management function, an interrupt handler mechanism, a timer control function, and a macro control function. Reference numerals 36, 37, 38, and 39 denote virtual processor sections. These virtual instruction processor (hereinafter abbreviated as LIP) sections have an instruction emulator function and an interrupt simulator function.
Reference numerals 32 and 33 denote logical partition sections. The logical partition (hereinafter abbreviated as LPAR) section has a LIP control function for controlling a virtual instruction processor. LIP sections 36 and 37 (LIP # 1.1, # 1.
2) is controlled by the LPAR section 32 (LPAR # 1) and LIP sections 38 and 39 (LIP # 2.
1, # 2.2) is the LPAR section 33 (LPAR #
Controlled by 2). Operating system is L
One can operate for each PAR. Reference numeral 34 denotes a frame section, which is a console (16; FIG. 1).
And has an input / output function for inputting / outputting commands and data from an operator via the interface. Reference numeral 35 denotes a dump section, which has a function of collecting a trace. Since the processing function of each section is executed by task processing, data communication between the sections can communicate commands and data inside the virtual machine using the inter-task communication function. Here, the fact that the host program and the guest program are being executed by the processor is referred to as being dispatched.

【0014】上記システムで命令プロセッサと制御プロ
グラム用プロセッサに対して、命令プロセッサにゲスト
プログラムの処理、制御プログラム用プロセッサにホス
トプログラムの処理を割り当てる処理について述べる。
図3は各命令プロセッサ、制御プログラム用プロセッサ
のタスクをディスパッチする際のタスクキュー参照図で
ある。実際のシステムにおいてはプロセッサの処理能力
により、さらに多くのキューを参照する場合も当然発生
するが、ここでは説明を容易にするため図3以外のプロ
セッサのキュー参照は省略する。共通メモリにはホスト
のタスクがキューイングされているホストタスクキュー
(53)、命令プロセッサ#1(51)上のみで動作す
るゲストのタスクがキューイングされている固定ゲスト
タスクキュー#1(54)、命令プロセッサ#2(5
2)上でのみ動作するゲストのタスクがキューイングさ
れている固定ゲストタスクキュー#2(55)、命令プ
ロセッサ#1(51)および命令プロセッサ#2(5
2)のいづれの命令プロセッサ上でも動作可能なゲスト
のタスクがキューイングされている浮動ゲストタスクキ
ュー(56)が存在している。
A process of allocating the processing of the guest program to the instruction processor and the processing of the host program to the processor for the control program for the instruction processor and the control program processor in the above system will be described.
FIG. 3 is a task queue reference diagram when dispatching tasks of each instruction processor and control program processor. In an actual system, it is natural that more queues may be referred to depending on the processing capability of the processor. However, reference to queues of processors other than FIG. A host task queue (53) in which a host task is queued in the common memory, and a fixed guest task queue # 1 (54) in which a guest task operating only on the instruction processor # 1 (51) is queued. , Instruction processor # 2 (5
2) Fixed guest task queue # 2 (55) in which guest tasks operating only on the queue are queued, instruction processor # 1 (51), and instruction processor # 2 (5).
2) There is a floating guest task queue (56) in which guest tasks operable on any of the instruction processors are queued.

【0015】制御プログラム用プロセッサ#3(50)
は主にホストタスクキュー中のタスクをディスパッチ
し、命令プロセッサ#1(51)は固定ゲストタスクキ
ュー#1(54)および浮動ゲストタスクキュー(5
6)中のタスクを主にディスパッチし、それらのキュー
中にディスパッチすべきタスクが存在しないときのみホ
ストタスクキュー53中のタスクをディスパッチする。
同様に命令プロセッサ#2(52)は固定ゲストタスク
キュー#2(55)および浮動ゲストタスクキュー(5
6)中のタスクを主にディスパッチし、それらのキュー
中にディスパッチすべきタスクが存在しないときのみホ
ストタスクキュー(53)中のタスクをディスパッチす
る。このように動作させることによりホストプログラム
の処理(制御プログラムの処理)とゲストプログラムの
処理を制御プログラム用プロセッサと各命令プロセッサ
に振り分けることが可能となる。
Control program processor # 3 (50)
Dispatches tasks in the host task queue mainly, and the instruction processor # 1 (51) dispatches the fixed guest task queue # 1 (54) and the floating guest task queue (5).
6) The tasks in the host task queue 53 are dispatched only when there are no tasks to be dispatched in those queues.
Similarly, the instruction processor # 2 (52) has a fixed guest task queue # 2 (55) and a floating guest task queue (5).
6) The tasks in the host task queue (53) are dispatched mainly when there are no tasks to be dispatched in those queues. By operating as described above, the processing of the host program (processing of the control program) and the processing of the guest program can be distributed to the control program processor and each instruction processor.

【0016】処理例としてゲストプログラムが実行され
ている最中にコンソール16からトレース採取要求を受
け付けた場合の動作を示す。説明を容易にするため、図
1を用いて説明する。物理命令プロセッサ1(命令プロ
セッサ#1)、物理命令プロセッサ2(命令プロセッサ
#2)上ではゲストプログラムが動作し、制御プログラ
ム用プロセッサ3上では現在タスク待ちのウェイト状態
であるとする。まず、コンソール16よりユーザからト
レース採取要求が入力されたならば、割り込みが発生
し、いづれかの物理プロセッサに割り込みが通知され、
その物理プロセッサ上で動作するモニタタスクが割り込
みを受け取り、そのプロセッサ上のフレームタスクをデ
ィスパッチする。ここでは割り込みを受け取る物理命令
プロセッサが図1の物理命令プロセッサ1(命令プロセ
ッサ#1)であったとして説明する。割り込みを受け取
った物理命令プロセッサ1(命令プロセッサ#1)はゲ
ストの実行を中断し、モニタタスク11をディスパッチ
する。ディスパッチされたモニタタスク11はフレーム
タスク13をディスパッチし、フレームタスク13はコ
ンソールに入力されたコマンドを解析し、そのコマンド
がトレース採取要求であることをモニタタスク11に通
知する。モニタタスク11はダンプタスクを第1のタス
クキュー19(タスクキュー#1)にエンキューし、割
り込みで中断したゲストプログラムを再度ディスパッチ
しゲストプログラムの処理を続行する。
As an example of processing, an operation when a trace collection request is received from the console 16 while a guest program is being executed will be described. The description will be made with reference to FIG. It is assumed that the guest program runs on the physical instruction processor 1 (instruction processor # 1) and the physical instruction processor 2 (instruction processor # 2), and the control program processor 3 is currently in a wait state waiting for a task. First, when a trace collection request is input from the console 16 by a user, an interrupt occurs, and the interrupt is notified to one of the physical processors.
A monitor task running on that physical processor receives the interrupt and dispatches a frame task on that processor. Here, it is assumed that the physical instruction processor receiving the interrupt is the physical instruction processor 1 (instruction processor # 1) in FIG. Upon receiving the interrupt, the physical instruction processor 1 (instruction processor # 1) suspends the execution of the guest and dispatches the monitor task 11. The dispatched monitor task 11 dispatches the frame task 13, and the frame task 13 analyzes a command input to the console, and notifies the monitor task 11 that the command is a trace collection request. The monitor task 11 enqueues the dump task in the first task queue 19 (task queue # 1), dispatches the interrupted guest program again, and continues the processing of the guest program.

【0017】図4は制御プログラム処理用プロセッサの
動作フロー図である。制御プログラム処理用プロセッサ
3上で動作するモニタタスク17は優先してタスクキュ
ー19(タスクキュー#1)を検索することにより制御
プログラム中心にタスク処理を行う。先のモニタタスク
11にエンキューされたダンプタスク18をモニタタス
ク17がタスクキュー19(タスクキュー#1)を検索
して(102;図4)、タスクキュー19(タスクキュ
ー#1)にダンプタスクがエンキューされているのを図
4の103のステップで発見する。もしもディスパッチ
すべきタスクが存在しなければ再度タスクキュー19の
検索を始める。この場合はディスパッチすべきダンプタ
スク18を図4の103のステップでタスクキュー19
(タスクキュー#1)中に発見するので、トレースを採
取するタスクであるダンプタスク18をディスパッチ
し、制御プログラム専用プロセッサ上でその後の処理を
行うことによりトレース採取の処理をゲストプログラム
の実行の中断時間のオーバヘッドを増加させることなし
に行うことができる。ダンプタスクの全ての処理が終了
したならば再度タスクキュー19(タスクキュー#1)
の検索を始める。
FIG. 4 is an operation flowchart of the control program processing processor. The monitor task 17 operating on the control program processing processor 3 preferentially searches the task queue 19 (task queue # 1) to perform task processing mainly on the control program. The monitor task 17 searches the task queue 19 (task queue # 1) for the dump task 18 enqueued in the previous monitor task 11 (102; FIG. 4), and the dump task is stored in the task queue 19 (task queue # 1). Enqueue is found at step 103 in FIG. If there is no task to be dispatched, the search of the task queue 19 is started again. In this case, the dump task 18 to be dispatched is set to the task queue 19 in step 103 in FIG.
(Task queue # 1), so that the dump task 18 which is a task for collecting a trace is dispatched, and the subsequent processing is performed on a processor dedicated to the control program, so that the processing for collecting the trace is interrupted in the execution of the guest program. This can be done without increasing the time overhead. When all processes of the dump task have been completed, the task queue 19 (task queue # 1) is again executed.
Start searching for.

【0018】[0018]

【発明の効果】以上に説明したように、本発明の制御プ
ログラム処理専用プロセッサを設けることにより制御プ
ログラムとゲストプログラム間で、制御プログラムは制
御プログラム処理用プロセッサ、ゲストプログラムは通
常の命令プロセッサで処理を行うというように処理を区
別させることができ、制御プログラムとゲストプログラ
ム間のプロセッサ資源の奪いあいにより発生する待ち時
間を減少させることが可能となり、ゲストプログラムに
対するプロセッサ資源の割当て時間を増加させることが
できる。また、処理に時間のかかるトレース採取を行う
ダンプタスクなどの実行を制御プログラム処理用プロセ
ッサで行うので、通常の命令プロセッサで時間のかかる
ダンプタスクなどの実行を行う必要がなく、ゲストプロ
グラムの処理が待たされることがなくなる。
As described above, by providing the processor dedicated to processing the control program of the present invention, the control program is processed by the processor for processing the control program and the guest program is processed by the ordinary instruction processor between the control program and the guest program. The processing can be distinguished by performing the processing, and the waiting time generated due to the competition of the processor resources between the control program and the guest program can be reduced, and the allocation time of the processor resources to the guest program can be increased. Can be. In addition, since the control program processing processor performs execution of the dump task that collects traces that take time to process, it is not necessary to execute the time-consuming dump task with an ordinary instruction processor. No more waiting.

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

【図1】 本発明の一実施例にかかる計算機システムの
構成を物理計算機および仮想計算機との関係で説明する
ブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a computer system according to an embodiment of the present invention in relation to a physical computer and a virtual computer.

【図2】 仮想計算機のシステム構成を示す機能構成の
ブロック図である。
FIG. 2 is a block diagram of a functional configuration showing a system configuration of a virtual machine.

【図3】 各プロセッサがディスパッチすべきタスクを
検索するキューを参照する際の各プロセッサとタスクキ
ューの関係を示す図である。
FIG. 3 is a diagram illustrating a relationship between each processor and a task queue when each processor refers to a queue for searching for a task to be dispatched;

【図4】 制御プログラム処理用プロセッサの動作処理
のフローを示フローチャートである。
FIG. 4 is a flowchart showing a flow of an operation process of a control program processing processor.

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

1,50 第1の命令プロセッサ(物理命令プロセッサ) 2,51 第2の命令プロセッサ(物理命令プロセッ
サ) 3,52 制御プログラム用プロセッサ(物理命令プロ
セッサ) 4,57 共通メモリ 5,6 LPAR(論理パーティション)タスク 7〜10 LIP(仮想命令プロセッサ)タスク 11,12,17 モニタタスク 13 フレームタスク 16 コンソール 18 ダンプタスク 19〜22,53〜56 タスクキュー 14 仮想計算機 15 物理計算機
1,50 First instruction processor (physical instruction processor) 2,51 Second instruction processor (physical instruction processor) 3,52 Control program processor (physical instruction processor) 4,57 Common memory 5,6 LPAR (logical partition) ) Tasks 7 to 10 LIP (Virtual Instruction Processor) Tasks 11, 12, 17 Monitor Tasks 13 Frame Tasks 16 Console 18 Dump Tasks 19 to 22, 53 to 56 Task Queues 14 Virtual Computers 15 Physical Computers

───────────────────────────────────────────────────── フロントページの続き (72)発明者 天野 英昭 神奈川県秦野市堀山下1番地 株式会社日 立製作所汎用コンピュータ事業部内 Fターム(参考) 5B045 EE29 GG02 GG09 5B098 AA10 BA03 BB05 EE06 GA04 GA07 GB13 GC16 GD02 GD14 HH01 HH04  ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Hideaki Amano 1st Horiyamashita, Hadano-shi, Kanagawa F-term, General-purpose Computer Division, Hitachi, Ltd. 5B045 EE29 GG02 GG09 5B098 AA10 BA03 BB05 EE06 GA04 GA07 GB13 GC16 GD02 GD14 HH01 HH04

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の物理命令プロセッサを有する物理
計算機を備え、該複数の物理命令プロセッサを論理的に
分割して使用する仮想命令プロセッサを備える仮想計算
機システムにおいて、 前記複数の物理命令プロセッサの内の少なくとも1台の
物理命令プロセッサを仮想計算機システムの制御プログ
ラム(ホストプログラム)の処理専用の物理命令プロセ
ッサとすることを特徴とする仮想計算機システム。
1. A virtual computer system comprising: a physical computer having a plurality of physical instruction processors; and a virtual instruction processor which logically divides and uses the plurality of physical instruction processors. Wherein at least one physical instruction processor is a physical instruction processor dedicated to processing a control program (host program) of the virtual computer system.
【請求項2】 請求項1記載の仮想計算機システムにお
いて、 該仮想計算機システムが待機用の物理命令プロセッサを
有する場合には、該待機用の物理命令プロセッサを前記
仮想計算機システムの制御プログラム(ホストプログラ
ム)の処理専用の物理命令プロセッサとすることを特徴
とする仮想計算機システム。
2. The virtual computer system according to claim 1, wherein when the virtual computer system has a standby physical instruction processor, the standby physical instruction processor is controlled by a control program (host program) of the virtual computer system. A virtual computer system characterized in that it is a physical instruction processor dedicated to the processing of (1).
【請求項3】 請求項1または請求項2記載の仮想計算
機システムにおいて、 該仮想計算機システムの記憶装置に前記制御プログラム
が実行するタスクのみがキューイングされているタスク
キューを備えることを特徴とする仮想計算機システム。
3. The virtual computer system according to claim 1, wherein the storage device of the virtual computer system includes a task queue in which only tasks executed by the control program are queued. Virtual computer system.
JP11012711A 1999-01-21 1999-01-21 Virtual computer system Pending JP2000215071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11012711A JP2000215071A (en) 1999-01-21 1999-01-21 Virtual computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11012711A JP2000215071A (en) 1999-01-21 1999-01-21 Virtual computer system

Publications (1)

Publication Number Publication Date
JP2000215071A true JP2000215071A (en) 2000-08-04

Family

ID=11813017

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11012711A Pending JP2000215071A (en) 1999-01-21 1999-01-21 Virtual computer system

Country Status (1)

Country Link
JP (1) JP2000215071A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7159216B2 (en) 2001-11-07 2007-01-02 International Business Machines Corporation Method and apparatus for dispatching tasks in a non-uniform memory access (NUMA) computer system
US7251815B2 (en) 2003-04-29 2007-07-31 International Business Machines Corporation Multiple virtual machines sharing processor and work queue in memory having program/dispatch functions for assigning and accessing work items while the virtual machine was not idle
US7299468B2 (en) 2003-04-29 2007-11-20 International Business Machines Corporation Management of virtual machines to utilize shared resources
US8387049B2 (en) 2005-07-15 2013-02-26 International Business Machines Corporation Facilitating processing within computing environments supporting pageable guests
US8386721B2 (en) 2003-10-23 2013-02-26 Hitachi, Ltd. Storage having logical partitioning capability and systems which include the storage
JP2015228075A (en) * 2014-05-30 2015-12-17 日本電信電話株式会社 Computer resources allocation device and computer resources allocation program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7159216B2 (en) 2001-11-07 2007-01-02 International Business Machines Corporation Method and apparatus for dispatching tasks in a non-uniform memory access (NUMA) computer system
US8122451B2 (en) 2001-11-07 2012-02-21 International Business Machines Corporation Method and apparatus for dispatching tasks in a non-uniform memory access (NUMA) computer system
US7251815B2 (en) 2003-04-29 2007-07-31 International Business Machines Corporation Multiple virtual machines sharing processor and work queue in memory having program/dispatch functions for assigning and accessing work items while the virtual machine was not idle
US7299468B2 (en) 2003-04-29 2007-11-20 International Business Machines Corporation Management of virtual machines to utilize shared resources
US7784053B2 (en) 2003-04-29 2010-08-24 International Business Machines Corporation Management of virtual machines to utilize shared resources
US8386721B2 (en) 2003-10-23 2013-02-26 Hitachi, Ltd. Storage having logical partitioning capability and systems which include the storage
US8387049B2 (en) 2005-07-15 2013-02-26 International Business Machines Corporation Facilitating processing within computing environments supporting pageable guests
US10684800B2 (en) 2005-07-15 2020-06-16 International Business Machines Corporation Facilitating processing within computing environments supporting pageable guests
JP2015228075A (en) * 2014-05-30 2015-12-17 日本電信電話株式会社 Computer resources allocation device and computer resources allocation program

Similar Documents

Publication Publication Date Title
JP3989911B2 (en) Virtualization of global interrupt queue
US7454756B2 (en) Method, apparatus and system for seamlessly sharing devices amongst virtual machines
US5506975A (en) Virtual machine I/O interrupt control method compares number of pending I/O interrupt conditions for non-running virtual machines with predetermined number
US9052957B2 (en) Method and system for conducting intensive multitask and multiflow calculation in real-time
KR20070100367A (en) Method, apparatus and system for dynamically reassigning memory from one virtual machine to another
JP2008506187A (en) Method and system for parallel execution of multiple kernels
JP2002318699A (en) Virtual computer system
JP2003256221A (en) Parallel process executing method and multi-processor type computer
JP5458998B2 (en) Virtual machine system and virtual machine management method
CN103744716A (en) Dynamic interrupt balanced mapping method based on current virtual central processing unit (VCPU) scheduling state
JPH05210522A (en) Method of changing dispatch-mode
AU603876B2 (en) Multiple i/o bus virtual broadcast of programmed i/o instructions
US8214837B2 (en) Method, apparatus and system for dynamically allocating sequestered computing resources
JP2009223842A (en) Virtual machine control program and virtual machine system
US11169837B2 (en) Fast thread execution transition
JP2000215071A (en) Virtual computer system
JPH11272480A (en) On-chip real time os
JPH07129518A (en) Computer system
JPH0470935A (en) Computer system
JPH04346136A (en) Virtual instruction processor structure control method
JP2864255B2 (en) Virtual computer system
JP2001229038A (en) Multi-operating computer system
JP2003005987A (en) Emulation device
JPH02113339A (en) Virtual computer control system
JPS6313218B2 (en)

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040317