JP2006323872A - Spare resource providing method and computer system for logical partition - Google Patents
Spare resource providing method and computer system for logical partition Download PDFInfo
- Publication number
- JP2006323872A JP2006323872A JP2006209353A JP2006209353A JP2006323872A JP 2006323872 A JP2006323872 A JP 2006323872A JP 2006209353 A JP2006209353 A JP 2006209353A JP 2006209353 A JP2006209353 A JP 2006209353A JP 2006323872 A JP2006323872 A JP 2006323872A
- Authority
- JP
- Japan
- Prior art keywords
- resource
- logical partition
- resources
- allocation
- logical
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は、論理区画式計算機システムに係り、特に、ハイパバイザと呼ばれる制御プログラムにより複数の論理区画を設け、それぞれの論理区画でオペレーティングシステム(ゲストOS)を稼動させる論理区画式計算機システムに関する。 The present invention relates to a logically partitioned computer system, and more particularly to a logically partitioned computer system in which a plurality of logical partitions are provided by a control program called a hypervisor and an operating system (guest OS) is operated in each logical partition.
1つの物理計算機上で複数のオペレーティングシステム(ゲストOS)を稼動させる技術として、論理区画を作成して制御する論理区画式計算機システムが知られている。 As a technique for operating a plurality of operating systems (guest OSs) on one physical computer, a logically partitioned computer system that creates and controls logical partitions is known.
論理区画式計算機システムは、ハイパバイザと呼ばれる論理区画の制御をする制御プログラムにより構成される。 The logically partitioned computer system is configured by a control program that controls a logical partition called a hypervisor.
ハイパバイザは、論理区画の制御をする核となる制御プログラムであり、命令プロセッサ、主記憶装置、入出力チャネル等のリソース(計算機資源)の割り当て制御を行う。 The hypervisor is a control program serving as a core for controlling logical partitions, and performs allocation control of resources (computer resources) such as an instruction processor, a main storage device, and input / output channels.
ハイパバイザは、論理区画を設けるために、物理リソースを論理的に切り分け、論理区画間の壁を作る制御プログラムであり、ハイパバイザの役割は、ハードウェアへの「壁」の設定が主である。 The hypervisor is a control program that logically separates physical resources and creates a wall between logical partitions in order to provide a logical partition. The role of the hypervisor is mainly to set a “wall” to hardware.
論理区画式計算機システムでは、論理区画ごとに、ゲストOS稼動時に必要となるリソース量を事前に見積り、見積りに従って論理区画の構成定義を行い、論理区画を生成する際、構成定義に従いリソースを割り当てる。 In the logical partition computer system, for each logical partition, the amount of resources required when the guest OS is operating is estimated in advance, the logical partition configuration is defined according to the estimation, and when the logical partition is generated, resources are allocated according to the configuration definition.
昼夜間でそれぞれの論理区画に必要とされるリソースが異なる場合、オペレータの操作または自動運転スケジュールに従い、論理区画間のリソース割り当てを計画的に変更する運用が行われている。 When the resources required for each logical partition are different during the day and night, an operation is performed in which the resource allocation between the logical partitions is systematically changed according to the operator's operation or the automatic operation schedule.
この運用方法については、特許文献1に詳しく述べられている。
なお、特許文献1は仮想計算機システムを前提としたものであるが、仮想計算機システムは論理区画と同等の機能を持つものであり、リソースの区画化方法も概ね同じである。
This operation method is described in detail in
Although
また、最近の計算機の料金体系として、従量制の課金方式も登場している。
これは、予め多くのリソースを搭載しておき、使用したリソース量に応じて、計算機の使用料が決まるというものである。
In addition, a pay-as-you-go billing system has appeared as a recent fee structure for computers.
This is because a lot of resources are loaded in advance, and the usage fee of the computer is determined according to the amount of resources used.
掛かる負荷に比例してリソースが必要なため、計算機を使用しただけ料金が掛かることになる。 Since resources are required in proportion to the applied load, a fee is charged only by using a computer.
従来の計算機システムでは、負荷に耐えうるだけの十分なリソースを、あらかじめ用意しておく必要がある。 In a conventional computer system, it is necessary to prepare in advance enough resources to withstand the load.
もし、十分なリソースが割り当てられず、許容以上の負荷が計算機システムへと掛かった場合、ゲストOSの処理が極端に遅くなる等の重大な問題が生じることがある。 If sufficient resources are not allocated and an excessive load is applied to the computer system, serious problems such as extremely slow processing of the guest OS may occur.
この処理が極端に遅くなる現象の1つとして、一般的にスローダウンと呼ばれるものがある。
例えば、主記憶不足により生じるスローダウン現象として、スラッシングがある。スラッシングは仮想記憶システムで、実記憶装置が不足すると、ページングが多発する。
One phenomenon that makes this process extremely slow is generally called slowdown.
For example, there is thrashing as a slowdown phenomenon caused by a lack of main memory. Thrashing is a virtual storage system, and paging occurs frequently when there is a shortage of real storage devices.
この状態がひどくなると、ページイン・ページアウト処理のため、制御プログラムで処理時間の大部分を費やすようになり、ユーザプログラムがほとんど動作しなくなる。 If this state becomes severe, the control program spends most of the processing time because of page-in / page-out processing, and the user program hardly operates.
一方、スローダウンを防ぐため、リソースを与え過ぎれば、十分にリソースが活用されず無駄となる。 On the other hand, if too much resources are provided to prevent slowdown, the resources are not fully utilized and are wasted.
例えば、WWWサーバのように、アクセスの集中により突発的に高負荷の生じるシステムにおいては、高負荷時に備えて多くのリソースが必要になるが、一方、過大なリソースは低負荷時には十分使用されず、無駄となってしまい、コストパフォーマンスが低いという問題が生じる。 For example, in a system that suddenly generates a high load due to concentration of access, such as a WWW server, many resources are required in preparation for a high load. On the other hand, an excessive resource is not used sufficiently at a low load. The problem is that the cost performance is low.
前述の従量制の課金方式を用いた計算機システムでは、ユーザにとっては、使用したリソース量に応じた料金が掛かることから、コストパフォーマンスは良いと言えるが、ベンダーにとっては過大なリソースの設置が負担となる。 In the computer system using the above-mentioned pay-as-you-go system, the user will be charged according to the amount of resources used, so it can be said that cost performance is good, but the installation of excessive resources is a burden for the vendor. Become.
また、従量制の課金方式であるため、計算機使用料が変動してしまうという側面もある。 In addition, since it is a pay-as-you-go system, there is an aspect that the computer usage fee fluctuates.
本発明の目的は、論理区画式計算機システムにおいて、前記の計算機システムの従来技術の問題点を解決し、計算機システムを運用する際の必要なリソースの追加割り当てを可能にし、また無駄なリソースを減少させ、低いコストで安定稼動させることのできる論理区画式計算機システムを提供することにある。 An object of the present invention is to solve the problems of the prior art of the above computer system in a logically partitioned computer system, enable additional allocation of necessary resources when operating the computer system, and reduce useless resources And providing a logically partitioned computer system that can be stably operated at a low cost.
上記目的を達成するために、本発明では、1つの物理計算機中に1つ以上の論理区画を設け、論理区画のそれぞれでオペレーティングシステムを稼動させる論理区画式計算機システムにおいて、
論理区画の予備リソース自動付与方法としては、
各論理区画においては、割り当てられているリソース量の内の使用しているリソース量を監視し、監視の結果、所定の閾値以上にリソースを使用している場合には物理計算機に対してリソースの割り当てを要求し、リソース全体に対して所定の閾値以上の余剰がある場合にはリソースの回収を要求し、
物理計算機においては、該要求を受けて、割り当て要求の場合には前記論理区画に予備リソースを割り当て、回収要求の場合には該論理区画に割り当て中のリソースを回収して予備リソースにするという方法を取っている。
In order to achieve the above object, the present invention provides a logically partitioned computer system in which one or more logical partitions are provided in one physical computer and an operating system is run in each logical partition.
As a spare resource automatic grant method for logical partitions,
In each logical partition, the amount of resources used within the allocated resource amount is monitored, and if the result of monitoring indicates that the resource is used above a predetermined threshold, Request allocation, request resource recovery if there is a surplus above a predetermined threshold for the entire resource,
In the physical computer, a method of receiving the request and allocating a spare resource to the logical partition in the case of an allocation request, and collecting a resource being allocated to the logical partition in the case of a collection request to make a spare resource Is taking.
また、前記論理区画式計算機システムとしては、
物理計算機には、該物理計算機に割り当てられているリソースを管理するリソース管理手段と、前記各論理区画に対するリソースの割り当てあるいは回収を行う割り当て/回収手段を設け、
各論理区画には、割り当てられているリソース量の内の使用しているリソース量を監視する監視手段と、この監視手段の監視結果に基づいて前記割り当て/回収手段にリソースの追加あるいは切離しを要求する追加/切離手段を設ける。
In addition, as the logical partitioned computer system,
The physical computer is provided with resource management means for managing resources assigned to the physical computer, and assignment / recovery means for assigning or collecting resources for each logical partition,
Each logical partition requests monitoring means for monitoring the amount of resources used among the allocated resources, and requests the allocation / recovery means to add or disconnect resources based on the monitoring results of the monitoring means. Additional / separating means are provided.
そして、割り当て/回収手段は、追加/切離手段からの要求に従い前記リソース管理手段に問い合わせ、割り当て要求の場合には予備リソースがあるときリソースを論理区画に割り当て、回収要求の場合には前記リソース管理手段にリソースを予備リソースとして回収する構成を取っている。 Then, the allocation / collection means inquires to the resource management means according to the request from the addition / separation means, and in the case of the allocation request, the resource is allocated to the logical partition when there is a spare resource, and in the case of the recovery request, the resource The management means is configured to collect resources as spare resources.
さらに、論理区画式計算機システムでは、前記物理計算機に外部リソース追加/切離手段を設け、オペレータからのリソースの追加あるいは切離しの指示によって該外部リソース追加/切離手段は、前記リソース管理手段に対して外部リソースを追加あるいは切離す構成を取っている。 Further, in the logically partitioned computer system, an external resource addition / separation unit is provided in the physical computer, and the external resource addition / separation unit is in response to the resource management unit according to an instruction to add or disconnect the resource from the operator. To add or disconnect external resources.
さらに、論理区画式計算機システムでは、物理計算機に、前記各論理区画毎に管理テーブルが設けられ、この管理テーブルに予備リソース割当て可否情報を設定しておく。そして、前記論理区画の追加/切離手段からリソースの割り当て要求を受けたときは、該論理区画の管理テーブルの予備リソース割当て可否情報の内容を調べ、その内容が、リソース割当て可を示していれば予備リソースの割り当てを行い、リソース割当て不可を示していれば予備リソースの割り当てを行わない構成を取っている。 Further, in the logical partition computer system, a management table is provided for each logical partition in the physical computer, and spare resource allocation availability information is set in this management table. When a resource allocation request is received from the logical partition addition / separation means, the content of the spare resource allocation availability information in the management table of the logical partition is examined, and the content indicates whether resource allocation is possible. In this configuration, spare resources are allocated, and if no resource allocation is indicated, spare resources are not allocated.
さらに、論理区画式計算機システムでは、前記リソース管理手段に、各予備リソース毎に予備リソースを割り当てられる論理区画を設定しておき、前記論理区画の追加/切離手段から割り当て要求を受けたときには、要求した論理区画に対して、この論理区画に割り当て可能と設定されている予備リソースを割り当てる構成を取っている。 Further, in the logical partition type computer system, when a logical partition to which a spare resource is allocated for each spare resource is set in the resource management unit, and an allocation request is received from the logical partition addition / separation unit, A configuration is adopted in which a reserved resource set to be assignable to the logical partition is assigned to the requested logical partition.
以上説明したように本発明によれば、ゲストOSで発生するリソース不足に対し監視を行うゲストリソース監視手段と、どの論理区画へも即座に割り当てることのできる予備リソースを設けることにより、低コストで複数のゲストOSを安定稼動させることが可能となる。 As described above, according to the present invention, it is possible to reduce the cost by providing guest resource monitoring means for monitoring a resource shortage occurring in the guest OS and a spare resource that can be immediately allocated to any logical partition. Multiple guest OSes can be operated stably.
以下、本発明による論理区画式計算機システムの一実施形態を図面により詳細に説明する。
図1は本発明の一実施形態による論理区画式計算機システムの構成を示すブロック図であり、まず、図1を参照して、本発明による論理区画への予備リソース自動付与システムについて説明する。
Hereinafter, an embodiment of a logically partitioned computer system according to the present invention will be described in detail with reference to the drawings.
FIG. 1 is a block diagram showing the configuration of a logically partitioned computer system according to an embodiment of the present invention. First, a system for automatically assigning spare resources to logical partitions according to the present invention will be described with reference to FIG.
図1において、11はハイパバイザ、12は論理区画、13はオペレーティングシステム(ゲストOS)、30は予備リソース割り当て/回収手段、60はゲストOSの使用するリソース量を監視するゲストリソース監視手段、40はゲストリソース追加/切離手段、50は外部リソース追加/切離手段、100はリソース管理テーブル、20はハードウェアリソース、14はゲストリソース、15は予備リソース、16はハイパバイザとゲストOSに認識されていない外部リソース、17はハイパバイザのリソース管理テーブルを監視するハイパバイザリソース監視手段である。 In FIG. 1, 11 is a hypervisor, 12 is a logical partition, 13 is an operating system (guest OS), 30 is a spare resource allocation / collection means, 60 is a guest resource monitoring means for monitoring the amount of resources used by the guest OS, and 40 is Guest resource adding / detaching means, 50 external resource adding / detaching means, 100 resource management table, 20 hardware resource, 14 guest resource, 15 spare resource, 16 recognized by hypervisor and guest OS No external resource, 17 is a hypervisor resource monitoring means for monitoring the resource management table of the hypervisor.
論理区画式計算機システムは、物理計算機のリソースである命令プロセッサ201、主記憶装置202、入出力チャネル203等を分割し、複数の論理区画12を生成して構成される。
それぞれの論理区画12は、ゲストOS13を動作させることが出来る。ゲストOSから見ると、論理区画はあたかも独立した1つの計算機のように見える。
論理区画式の計算機システムの基本構造については、よく知られており、米国特許第4843541号にも記述されている。
The logically partitioned computer system is configured by dividing a
Each
The basic structure of a logically partitioned computer system is well known and is described in US Pat. No. 4,843,451.
図2は、リソースの構成を示す図である。
計算機システムは、前述のように、リソースとして命令プロセッサ、主記憶装置、入出力チャネルを持ち、ハイパバイザは、論理区画に対するこれらのリソース割り当てを制御する。
図1に示されるゲストリソース14、予備リソース15、外部リソース16は、図2で示される3種の資源のうちの一部または全てを示している。
FIG. 2 is a diagram illustrating a resource configuration.
As described above, the computer system has an instruction processor, main memory, and input / output channels as resources, and the hypervisor controls the allocation of these resources to the logical partitions.
The
論理区画式の計算機システムでは、システム設計時に、論理区画へ掛かる負荷を見積もり、論理区画へ割り当てるリソース量を決めて稼動させる。 In a logical partition type computer system, when a system is designed, the load applied to the logical partition is estimated, and the amount of resources to be allocated to the logical partition is determined and operated.
図3は、ハイパバイザの予備リソース割り当て/回収手段の処理を説明するフローチャート、図4は、ゲストOSのゲストリソース追加/切離手段の処理を説明するフローチャート、図6は、ゲストOSのゲストリソース監視手段の処理を説明するフローチャートである。 FIG. 3 is a flowchart for explaining the processing of the spare resource allocation / collection means of the hypervisor, FIG. 4 is a flowchart for explaining the processing of the guest OS guest resource adding / detaching means, and FIG. 6 is the guest OS guest resource monitoring. It is a flowchart explaining the process of a means.
以下、これらの図を参照して、予備リソースをゲストOSへ割り当てる手法を説明する。
ゲストOSのゲストリソース監視手段60は、ある一定時間間隔をおいてゲストOSの使用するリソースの監視を行い、高負荷等の発生によりゲストリソースの余剰リソースが減少し、ある回数の監視を行った結果、余剰リソースがある閾値以下となっている場合、あるいは、余剰リソースが減少する前に、減少の特徴を表す指標がある閾値以下となっている場合には、ゲストOSがリソース不足状態、あるいは、リソース不足に至る危険状態であると検知する(ステップ601)。
例えば命令プロセッサの場合であれば、ある監視回数の間、命令プロセッサ使用率が99%以上、かつ、オンライントランザクションの応答時間が通常時の2倍以上であるとき、
主記憶装置であれば、実記憶装置の容量不足を検出し、空き領域を確保するため、OS内のメモリ制御プログラムに対して、OS内の稼動監視プログラムが発行する、複数回のページアウト指令にもかかわらず、次々と仮想記憶へのアクセスが発生し、空き領域が生じないことから、OSがスラッシング状態を検出したとき、
入出力チャネルであれば、ある監視回数の間チャネルビジー率が80%以上のとき、
リソース不足状態を検知したとして、ゲストリソース追加/切離手段16へリソース不足を報告する(ステップ603)。
尚、リソース不足を判断するための閾値は、業務内容やシステムの稼動状況に応じ、ゲストOS毎のパラメタやコマンド等で与えるものとし、ユーザによる稼働中の設定変更を可能としてもよい。
Hereinafter, a method for allocating spare resources to the guest OS will be described with reference to these drawings.
The guest OS guest resource monitoring means 60 monitors the resources used by the guest OS at a certain time interval, and the surplus resources of the guest resources are reduced due to the occurrence of a heavy load, etc., and is monitored a certain number of times. As a result, if the surplus resource is below a certain threshold, or if the index indicating the reduction feature is below a certain threshold before the surplus resource is reduced, the guest OS is in a resource shortage state, or Then, it is detected that the resource is in a dangerous state (step 601).
For example, in the case of an instruction processor, when the instruction processor usage rate is 99% or more for a certain number of monitoring times and the response time of the online transaction is more than twice the normal time,
If it is a main storage device, multiple page-out commands issued by the operation monitoring program in the OS to the memory control program in the OS in order to detect a shortage of capacity in the real storage device and secure free space Nevertheless, since the virtual memory is accessed one after another and no free space is generated, when the OS detects a thrashing state,
For I / O channels, when the channel busy rate is 80% or more for a certain number of monitoring times,
If a resource shortage state is detected, the resource shortage is reported to the guest resource addition / detachment means 16 (step 603).
Note that the threshold for determining the shortage of resources is given by parameters, commands, etc. for each guest OS according to the business contents and the operating status of the system, and the user may be able to change settings during operation.
ゲストリソース追加/切離手段40では、ゲストリソース監視手段からのリソース不足の通知を受けると(ステップ401)、ゲストOSの状態から必要となるリソース量を判断し、ハイパバイザの予備リソース割り当て/回収手段に対し、リソースの割り当て要求として、リソースの種類と量を報告する(ステップ402)。 When the guest resource addition / separation means 40 receives a resource shortage notification from the guest resource monitoring means (step 401), it determines the required resource amount from the state of the guest OS, and allocates / recovers a spare resource for the hypervisor. On the other hand, the resource type and amount are reported as a resource allocation request (step 402).
例えば、主記憶装置の場合、“主記憶装置16MB”のように報告される。
次に、ハイパバイザの予備リソース割り当て/回収手段30では、ゲストリソース追加/切離手段40からリソース割り当て要求を受け取ると、ゲストOSからの要求種別を判定し(ステップ301)、リソース割り当て要求の場合、ステップ302以降を実行する。
For example, in the case of the main storage device, it is reported as “
Next, when the reserve resource allocation / collection means 30 of the hypervisor receives a resource allocation request from the guest resource addition / detachment means 40, it determines the request type from the guest OS (step 301). Step 302 and subsequent steps are executed.
ステップ303では、リソース管理テーブル100を参照し、要求された予備リソースの確保を行う(ステップ304)。
(ステップ302の論理区画の判定については後述。)
ハイパバイザのリソース管理テーブル100の詳細を図10に示す。
予備リソースを確保するには、現在割り当てられている論理区画の論理区画番号が設定されている論理区画割り当てマップ1005を参照すればよい。
論理区画番号は1から昇順に付与されるものとし、リソースが論理区画へ未割り当ての場合は、0を設定することとする。よって、論理区画割り当てマップが0であるリソースをリソース管理テーブルから探すことにより、割り当て可能な予備リソースを見つけ出すことができる。
In
(The logical partition determination in
Details of the hypervisor resource management table 100 are shown in FIG.
In order to secure a spare resource, the logical
The logical partition number is assigned in ascending order from 1. If the resource is not allocated to the logical partition, 0 is set. Therefore, a searchable resource can be found by searching the resource management table for a resource whose logical partition allocation map is 0.
もし、割り当て可能な予備リソースが十分でない場合には、ゲストOSと計算機の操作を行うオペレータへと報告する(ステップ307)。 If there are not enough reserve resources that can be allocated, a report is sent to the operator who operates the guest OS and the computer (step 307).
一方、割り当てに十分な予備リソースをハイパバイザが保持していた場合は、割り当て要求を報告した論理区画へ割り当てるリソースの種類と量を報告し(ステップ305)、リソース管理テーブルの論理区画割り当てマップ(1005,1010,1013)へ、割り当てを行った論理区画の論理区画番号を登録する(ステップ308)。 On the other hand, if the hypervisor has sufficient spare resources for allocation, the type and amount of resources allocated to the logical partition that reported the allocation request are reported (step 305), and the logical partition allocation map (1005) in the resource management table is reported. , 1010, 1013), the logical partition number of the assigned logical partition is registered (step 308).
ゲストリソース追加/切離手段40では、ハイパバイザからのリソース割り当ての通知を受けると(ステップ401)、ゲストOSでリソースの利用ができるように、ゲストOS内の情報(リソースを管理するテーブル類)を変更する(ステップ406)。 When the guest resource adding / separating means 40 receives a resource allocation notification from the hypervisor (step 401), the guest OS information (tables for managing resources) is stored in the guest OS so that the resource can be used. Change (step 406).
以上の処理で、ハイパバイザの予備リソースを論理区画へと割り当てを行い、ゲストOSで割り当てられたリソースが利用できるようになる。 With the above processing, the spare resource of the hypervisor is allocated to the logical partition, and the resource allocated by the guest OS can be used.
次に、リソースの種別毎に論理区画へ割り当てる手順を詳細に説明する。
図7は、命令プロセッサの割り当て状態を示している例である。
物理命令プロセッサ1,2(701,702)が論理区画1(704)の論理命令プロセッサ1,2(705,706)へ、物理命令プロセッサ3(703)が論理区画2(707)の論理命令プロセッサ3(708)へ割り当てられている。
Next, a procedure for assigning to a logical partition for each resource type will be described in detail.
FIG. 7 is an example showing an assignment state of instruction processors.
ここで、論理区画2で命令プロセッサの不足が生じると、予備リソースの物理命令プロセッサ4(704)が論理区画2の論理命令プロセッサ4(709)として割り当てられる。
この場合、リソース管理テーブルの命令プロセッサ番号4の論理区画割り当てマップが0から2へ変更される。
Here, when an instruction processor shortage occurs in the
In this case, the logical partition allocation map of instruction processor number 4 in the resource management table is changed from 0 to 2.
図8は、主記憶装置の割り当て状態を示している例である。
論理区画1,2,3へ主記憶装置が割り当てられていて(803,804,805)、論理区画3で主記憶装置の不足が生じると、論理区画3の主記憶空間(806)へ主記憶装置の予備リソース(802)が割り当てられる。
この場合、リソース管理テーブルは、主記憶番号6の論理区画割り当てマップが0から3へ変更される。
FIG. 8 is an example showing the allocation state of the main storage device.
When main storage is allocated to
In this case, in the resource management table, the logical partition allocation map of the
図9は、入出力チャネルの割り当て状態が示されている例である。
論理区画1(901)へは入出力チャネル903,904が、論理区画2(902)へは入出力チャネル905が割り当てられていて、入出力装置907を介して入出力装置908とアクセスを行う。
論理区画2で入出力チャネルの不足が生じた場合、論理区画2へ入出力チャネル(906)が割り当てられる。
FIG. 9 is an example in which the input / output channel allocation state is shown.
Input /
When a shortage of input / output channels occurs in
この場合、リソース管理テーブルは、チャネル番号4の論理区画割り当てマップが0から2へ変更される。 In this case, the logical partition allocation map of channel number 4 is changed from 0 to 2 in the resource management table.
次に、論理区画からリソースを回収する方法の一例を説明する。
高負荷により論理区画に対し、予備リソースを割り当てた後、論理区画への負荷が減少してリソースに余剰が生じ、複数回の監視のいずれの結果も、例えば、論理区画へ割り当てられているリソースの全体に対して30%以上の余剰があったならば、ゲストリソース監視手段60はリソース余剰を検出したとして(ステップ602)、ゲストリソース追加/切離手段40へリソースの余剰を報告する(ステップ604)。
Next, an example of a method for collecting resources from a logical partition will be described.
After allocating spare resources to a logical partition due to a high load, the load on the logical partition is reduced, resulting in a surplus in the resource, and any of the results of multiple monitoring, for example, resources allocated to the logical partition If there is a surplus of 30% or more with respect to the entire resource, the guest resource monitoring means 60 detects the resource surplus (step 602) and reports the resource surplus to the guest resource adding / detaching means 40 (step 604).
ゲストリソース追加/切離手段40は、リソース余剰の報告を受けると(ステップ401)ゲストOSの内部テーブルからリソース情報を削除して(ステップ403)、ハイパバイザに対してリソース回収要求を行う(ステップ405)。 Upon receiving the resource surplus report (step 401), the guest resource adding / separating means 40 deletes the resource information from the internal table of the guest OS (step 403) and makes a resource collection request to the hypervisor (step 405). ).
次に、ハイパバイザの予備リソース割り当て/回収手段ではリソース回収要求を受けると、ゲストOSからの要求種別を判別し(ステップ301)、リソース回収要求の場合、ステップ306以降を実行する。ステップ306では論理区画からリソースを回収し、その後、リソース管理テーブルの該当するエントリの論理区画割り当てマップ(1005,1010,1013)を0へ変更し(ステップ308)、ハイパバイザの予備リソースとして保持する。
以上述べたようにして、論理区画のリソースが不足した場合でも、即座にリソースの追加が行われ、ゲストOSのスローダウン等の重大な問題を回避することができる。
Next, when the hypervisor reserve resource allocation / recovery unit receives a resource recovery request, it determines the request type from the guest OS (step 301), and in the case of a resource recovery request, executes
As described above, even when the resources of the logical partition are insufficient, the resources are immediately added, and a serious problem such as a slowdown of the guest OS can be avoided.
また、一度論理区画へ付与されたリソースは、不要となると予備リソースとしてハイパバイザへと回収され、再び、リソース不足の生じた論理区画へ割り当てられるまでハイパバイザで保持される。 Also, once a resource that has been granted to a logical partition becomes unnecessary, it is collected as a spare resource to the hypervisor, and is retained by the hypervisor again until it is assigned to a logical partition where a resource shortage has occurred.
次に、外部リソースの追加と切離しについて説明する。
多数の論理区画から予備リソース割り当て要求があると、ハイパバイザは要求された予備リソースの確保ができなくなる場合が考えられる。
このような事態に対し、事前に対処するため、ハイパバイザの保持する予備リソースを監視するハイパバイザリソース監視手段17を設け、予備リソースの残量がある閾値を下回った場合に、メッセージを出力する等してオペレータへと報告する。
Next, adding and disconnecting external resources will be described.
If there are spare resource allocation requests from a large number of logical partitions, the hypervisor may not be able to secure the requested spare resources.
In order to cope with such a situation in advance, a hypervisor resource monitoring means 17 for monitoring the reserve resource held by the hypervisor is provided, and a message is output when the remaining amount of the reserve resource falls below a certain threshold. Report to the operator.
これにより、計算機へリソースの追加購入・増設等の対処が可能になる。
この物理計算機へ追加されたリソースを外部リソースと呼ぶこととし、外部リソースの追加と切離しのプロセスを以下で述べる。
This makes it possible to deal with additional purchase / expansion of resources to the computer.
The resource added to the physical computer is referred to as an external resource, and the process of adding and disconnecting external resources is described below.
保守員は物理計算機へリソースの増設を行い、物理的に使用可能な状態とする。
次に、オペレータのコマンド投入により、外部リソース追加/切離手段へリソース追加要求が送られ、外部リソース追加/切離手段はリソース追加要求を受けると(501)、リソース管理テーブル100へ増設された外部リソースを予備リソースとして追加し(ステップ502)、増設されたリソースをハイパバイザで管理できるようにする。
Maintenance personnel add resources to the physical computer to make it physically usable.
Next, upon addition of an operator command, a resource addition request is sent to the external resource addition / detachment means. When the external resource addition / detachment means receives the resource addition request (501), it is added to the resource management table 100. An external resource is added as a spare resource (step 502) so that the increased resource can be managed by the hypervisor.
このようにして、ハイパバイザの予備リソースが不足した場合にもシステムを停止させることなく、稼働中に予備リソースの追加を行う。 In this way, even when the spare resources of the hypervisor are insufficient, the spare resources are added during operation without stopping the system.
一方、外部リソースの切離しを行う場合も同様に、オペレータのコマンド投入等により、外部リソース追加/切離手段50へ、リソース切離し要求が送られると(501)、外部リソース追加/切離手段はリソース管理テーブル100から、要求のあったリソースの情報を削除して、予備リソースから切離しを行い、物理計算機から撤去することのできる外部リソースとする。
最後に保守員が、外部リソースとなったリソースを計算機から撤去する。
On the other hand, in the case of disconnecting an external resource, similarly, when a resource disconnection request is sent to the external resource adding / disconnecting means 50 by an operator command input (501), the external resource adding / disconnecting means The requested resource information is deleted from the management table 100, separated from the spare resource, and made an external resource that can be removed from the physical computer.
Finally, the maintenance staff removes the resources that have become external resources from the computer.
次に、ある論理区画で予備リソースを万一使い切ってしまい、オンライン本番業務のように重要で優先度の高い論理区画において、予備リソースが使えなくなるという問題を回避するため、以下に、予備リソースを柔軟に利用する2つの実施例を述べる。 Next, in order to avoid the problem that a spare resource is used up in a logical partition that is important and high in priority, such as online production, in the event that a spare resource is used up in a certain logical partition, Two examples of flexible use will be described.
一点目は、ある論理区画で予備リソースの割り当てを受けるか否かを選択できるようにする方法である。
初期設定時または稼働中の操作により、論理区画毎に予備リソースの割り当て可否を選択する。
その可否は、ゲストOSからリソース割り当て要求があった場合、その論理区画に対して割り当て可能であるかどうかの判定を行う際に用いる。
The first point is a method for enabling selection of whether or not a spare resource is allocated in a certain logical partition.
Whether to allocate a spare resource for each logical partition is selected at the time of initial setting or during operation.
The availability is used when determining whether or not the logical partition can be allocated when a resource allocation request is received from the guest OS.
この判定は、図3のステップ302に該当する。 This determination corresponds to step 302 in FIG.
また、その可否情報は、図11に示す論理区画毎の構成情報を格納する論理区画管理テーブル1101に、予備リソースの割り当て可否情報を格納する領域(1105)を設け、そこに保持する。
なお、論理区画管理テーブルは、論理区画名1102、論理区画番号1103、主記憶容量1104等の、ハイパバイザが1つ1つの論理区画の構成を管理するための情報を格納するもので、論理区画式計算機システムにおいては構成上必須のものである。
In addition, the availability information is stored in the logical partition management table 1101 that stores configuration information for each logical partition shown in FIG. 11 by providing an area (1105) for storing reserve resource allocation availability information.
The logical partition management table stores information for the hypervisor to manage the configuration of each logical partition, such as the
論理区画への割り当て可否判定(ステップ302)の詳細は図13で示すように、ゲストOSからリソース割り当て要求があった場合(ステップ301)、要求のあった論理区画の論理区画管理テーブルを参照し(ステップ1301)、予備リソース割り当て可否の値が可であれば、次の処理(ステップ303)へと進む、また、値が否であれば、ゲストOSからのリソース割り当て要求に対して何もせず終了する(ステップ1304)。 As shown in FIG. 13, the details of the determination of whether or not to assign to a logical partition (step 302), when a resource allocation request is received from the guest OS (step 301), refer to the logical partition management table of the requested logical partition. (Step 1301) If the reserve resource allocation value is acceptable, the process proceeds to the next processing (Step 303). If the value is not, nothing is done in response to the resource allocation request from the guest OS. The process ends (step 1304).
二点目は、予備リソースを区画化し、その区画毎に割り当て可能な論理区画を設定する方法である。 The second point is a method of partitioning a spare resource and setting a logical partition that can be assigned to each partition.
図10に示すように、各予備リソースの区画に、論理区画割り当て可能マップ1006,1011,1014を設定し、論理区画番号がマップに存在する論理区画にのみ、区画化リソースの割り当てを可能とする。
この論理区画割り当て可能マップは、予備リソース割り当て/回収手段において、割り当て要求に応じ、必要な予備リソースを確保する際に(ステップ304)参照する。
予備リソースの確保は、図12で示す通り、リソース管理テーブルの論理区画割り当てマップ(1005,1010,1013)の値が0、かつ、論理区画割り当て可能マップ(1006,1011,1014)の値に、割り当て要求のあった論理区画の論理区画番号が存在するリソースを検索することで達成される。
As shown in FIG. 10, logical partition
This logical partition allocatable map is referred to when reserve resource allocation / collection means secures necessary reserve resources in response to an allocation request (step 304).
As shown in FIG. 12, the reserve resource is secured by setting the logical partition allocation map (1005, 1010, 1013) value of the resource management table to 0 and the logical partition allocation map (1006, 1011, 1014). This is achieved by searching for a resource in which the logical partition number of the logical partition for which an allocation request has been made exists.
例えば、主記憶を確保する場合であれば、図10において、論理区画割り当てマップ1010を参照し、論理区画2へ割り当てのできる主記憶装置を先頭エントリから順に検索すると、主記憶番号6,7の主記憶装置が検出できる。
For example, in the case of securing the main memory, referring to the logical
また、論理区画3へ割り当てのできる主記憶装置を同様に検索すると、主記憶番号が6の主記憶装置が検出できる。
また、論理区画1へ割り当てのできる主記憶装置を同様に検索すると、割り当てのできる主記憶装置は検出されない。
Similarly, when a main storage device that can be allocated to the
Similarly, if a main storage device that can be allocated to the
この例では、論理区画1の要求は抑止され、論理区画3に対しては64MBを上限とできることから、論理区画2のために64MBの主記憶リソースを確保するという制御が可能となる。
以上の2つの方法により、重要な論理区画へ多くの予備リソースを確保しておくといった、柔軟な利用が可能となる。
In this example, the request for the
With the above two methods, flexible use such as securing a large number of spare resources in important logical partitions becomes possible.
11 ハイパバイザ
12 論理区画
13 ゲストOS
14 ゲストリソース
15 予備リソース
16 外部リソース
17 ハイパバイザリソース監視手段
20 ハードウェアリソース
30 予備リソース割り当て/回収手段
40 ゲストリソース追加/切離手段
50 外部リソース追加/切離手段
60 ゲストリソース監視手段
100 リソース管理テーブル
11
14
Claims (2)
前記各論理区画においては、割り当てられているリソース量の内の使用しているリソース量を監視し、監視結果に基づき前記物理計算機に対してリソースの割り当てあるいは回収を要求し、
前記物理計算機においては、該要求を受けて、割り当て要求の場合には前記論理区画に予備リソースを割り当て、回収要求の場合には該論理区画に割り当て中のリソースを予備リソースにすることを特徴とする論理区画の予備リソース提供方法。 A method for providing a spare resource for a logical partition in a logical partition computer system in which a plurality of logical partitions are provided in one physical computer and an operating system is operated in each logical partition,
In each of the logical partitions, the amount of resources used in the allocated amount of resources is monitored, and based on the monitoring result, resource allocation or collection is requested from the physical computer,
The physical computer receives the request, allocates a reserve resource to the logical partition in the case of an allocation request, and sets a resource currently allocated to the logical partition as a reserve resource in the case of a collection request. To provide spare resources for logical partitions
前記物理計算機は、該物理計算機に割り当てられているリソースを管理するリソース管理手段と、前記各論理区画に対するリソースの割り当てあるいは回収を行う割り当て/回収手段を有し、
前記各論理区画は、割り当てられているリソース量の内の使用しているリソース量を監視する監視手段と、該監視手段の監視結果に基づき前記割り当て/回収手段にリソースの追加あるいは切離しを要求する追加/切離手段を有し、
前記割り当て/回収手段は、前記追加/切離手段からの要求に従い前記リソース管理手段に問い合わせ、割り当て要求の場合には予備リソースがあるときリソースを前記論理区画に割り当て、回収要求の場合には前記リソース管理手段にリソースを予備リソースとして回収することを特徴とする計算機システム。
In a computer system in which a plurality of logical partitions are provided in one physical computer and an operating system is operated in each logical partition,
The physical computer has resource management means for managing resources assigned to the physical computer, and assignment / recovery means for assigning or collecting resources for each logical partition,
Each of the logical partitions requests monitoring means for monitoring the amount of resources used among the allocated resource amounts, and requests the allocation / collection means to add or detach resources based on the monitoring result of the monitoring means. Have add / detach means,
The allocation / collection means inquires to the resource management means according to a request from the addition / separation means, allocates a resource to the logical partition when there is a reserve resource in the case of an allocation request, and A computer system, wherein a resource is collected by a resource management means as a reserve resource.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006209353A JP2006323872A (en) | 2006-08-01 | 2006-08-01 | Spare resource providing method and computer system for logical partition |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006209353A JP2006323872A (en) | 2006-08-01 | 2006-08-01 | Spare resource providing method and computer system for logical partition |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000228302A Division JP2002041304A (en) | 2000-07-28 | 2000-07-28 | Method for automatically assigning spare resources to logical partitions and logical partition type computer system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006323872A true JP2006323872A (en) | 2006-11-30 |
| JP2006323872A5 JP2006323872A5 (en) | 2008-12-11 |
Family
ID=37543445
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006209353A Pending JP2006323872A (en) | 2006-08-01 | 2006-08-01 | Spare resource providing method and computer system for logical partition |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2006323872A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010205207A (en) * | 2009-03-06 | 2010-09-16 | Nec Corp | Host computer, multipath system, and method and program for allocating path |
| JP2010205208A (en) * | 2009-03-06 | 2010-09-16 | Nec Corp | Host computer, multipath system, and method and program for allocating path |
| JP2011248653A (en) * | 2010-05-27 | 2011-12-08 | Fujitsu Ltd | Fault processing program, control method, and information processor |
| JP2013109556A (en) * | 2011-11-21 | 2013-06-06 | Bank Of Tokyo-Mitsubishi Ufj Ltd | Monitoring controller |
| US9104494B2 (en) | 2007-04-13 | 2015-08-11 | Nec Corporation | Virtual computer system and its optimization method |
| JP2022519102A (en) * | 2019-02-05 | 2022-03-18 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Increased virtual machine processing power for anomalous events |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62150437A (en) * | 1985-12-24 | 1987-07-04 | Mitsubishi Electric Corp | Buffer management system |
| JPS642145A (en) * | 1987-06-25 | 1989-01-06 | Fujitsu Ltd | Resource control system for virtual computer system |
| JPH01316833A (en) * | 1988-06-17 | 1989-12-21 | Nec Corp | System for changing constitution of virtual computer system |
| JPH02257225A (en) * | 1989-03-29 | 1990-10-18 | Nec Corp | Buffer managing device for computer system |
| JPH04314147A (en) * | 1991-04-12 | 1992-11-05 | Nec Corp | Memory managing system |
-
2006
- 2006-08-01 JP JP2006209353A patent/JP2006323872A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62150437A (en) * | 1985-12-24 | 1987-07-04 | Mitsubishi Electric Corp | Buffer management system |
| JPS642145A (en) * | 1987-06-25 | 1989-01-06 | Fujitsu Ltd | Resource control system for virtual computer system |
| JPH01316833A (en) * | 1988-06-17 | 1989-12-21 | Nec Corp | System for changing constitution of virtual computer system |
| JPH02257225A (en) * | 1989-03-29 | 1990-10-18 | Nec Corp | Buffer managing device for computer system |
| JPH04314147A (en) * | 1991-04-12 | 1992-11-05 | Nec Corp | Memory managing system |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9104494B2 (en) | 2007-04-13 | 2015-08-11 | Nec Corporation | Virtual computer system and its optimization method |
| JP2010205207A (en) * | 2009-03-06 | 2010-09-16 | Nec Corp | Host computer, multipath system, and method and program for allocating path |
| JP2010205208A (en) * | 2009-03-06 | 2010-09-16 | Nec Corp | Host computer, multipath system, and method and program for allocating path |
| JP2011248653A (en) * | 2010-05-27 | 2011-12-08 | Fujitsu Ltd | Fault processing program, control method, and information processor |
| JP2013109556A (en) * | 2011-11-21 | 2013-06-06 | Bank Of Tokyo-Mitsubishi Ufj Ltd | Monitoring controller |
| JP2022519102A (en) * | 2019-02-05 | 2022-03-18 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Increased virtual machine processing power for anomalous events |
| JP7465045B2 (en) | 2019-02-05 | 2024-04-10 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Increased virtual machine processing power for abnormal events |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2002041304A (en) | Method for automatically assigning spare resources to logical partitions and logical partition type computer system | |
| JP5417287B2 (en) | Computer system and computer system control method | |
| CN102473134B (en) | Management server, management method, and management program for virtual hard disk | |
| US10333859B2 (en) | Multi-tenant resource coordination method | |
| TWI353525B (en) | Apparatus, system, and method for autonomic contro | |
| US8631403B2 (en) | Method and system for managing tasks by dynamically scaling centralized virtual center in virtual infrastructure | |
| US7433945B2 (en) | Dynamic configuration and self-tuning of inter-nodal communication resources in a database management system | |
| CN106452818B (en) | Resource scheduling method and system | |
| US20130103835A1 (en) | Resource management method, resource management device, and program product | |
| US20100229171A1 (en) | Management computer, computer system and physical resource allocation method | |
| JP2016526735A (en) | Virtual hadoop manager | |
| US8677374B2 (en) | Resource management in a virtualized environment | |
| JP2001331333A (en) | Computer system and control method for computer system | |
| US9792142B2 (en) | Information processing device and resource allocation method | |
| JP2012094030A (en) | Computer system and processing control method | |
| CN112749135B (en) | Method, apparatus and computer program product for balancing storage space of a file system | |
| JP2006323872A (en) | Spare resource providing method and computer system for logical partition | |
| CN114389955B (en) | Embedded Platform Heterogeneous Resource Pool Management Method | |
| US8332611B2 (en) | Method and system for managing memory | |
| JP2017138895A (en) | Virtualization environment management system and virtualization environment management method | |
| US8458719B2 (en) | Storage management in a data processing system | |
| CN114546587A (en) | A method for expanding and shrinking capacity of online image recognition service and related device | |
| KR20160043706A (en) | Virtual machine scaling apparatus and method for thereof | |
| CN120386639B (en) | External device memory management method and system | |
| CN106844021B (en) | Computing environment resource management system and management method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070621 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070621 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081027 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100525 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100714 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20101130 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110225 |
|
| A911 | Transfer to examiner for re-examination before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20110302 |
|
| A912 | Re-examination (zenchi) completed and case transferred to appeal board |
Free format text: JAPANESE INTERMEDIATE CODE: A912 Effective date: 20110617 |