JPH0215354A - I/o scheduling method - Google Patents

I/o scheduling method

Info

Publication number
JPH0215354A
JPH0215354A JP16502088A JP16502088A JPH0215354A JP H0215354 A JPH0215354 A JP H0215354A JP 16502088 A JP16502088 A JP 16502088A JP 16502088 A JP16502088 A JP 16502088A JP H0215354 A JPH0215354 A JP H0215354A
Authority
JP
Japan
Prior art keywords
control device
request
load
external storage
storage device
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
JP16502088A
Other languages
Japanese (ja)
Inventor
Noboru Urabe
昇 占部
Hiroyuki Kitajima
北嶋 弘行
Akira Yamamoto
彰 山本
Tadashi Osone
匡 大曽根
Takaaki Seki
関 高明
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 Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP16502088A priority Critical patent/JPH0215354A/en
Publication of JPH0215354A publication Critical patent/JPH0215354A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To distribute the load of a control device and to improve the through- put of I/O processing by generating an I/O request to a control device having minimum load out of control devices to be connected to an external storage device. CONSTITUTION:At the time of receiving an I/O request indicating a data name and a processing method from an I/O request part 2, an allocation deciding part 31 checks an external storage device number concerned from the I/O request. The deciding part 31 allocates the control device having minimum current load out of the control devices to be connected to the external storage device to the I/O request by referring a connecting information table 33 indicating which control device is connected to the external storage device concerned and current load information tables 34 for respective control devices and generates an I/O signal. On the other hand, an end processing means 32 informs I/O end to the originating source of the I/O signal at the time of generating an I/O end interruption and updates the load information of the table 34 corresponding to the control device ending I/O operation. Consequently, the load levels of the control devices are uniformed and the through-put of I/O operation can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はI/Oスケジューリング方法に関し、特にIl
oを発行する段階で制御装置群の負荷状況に応じ、これ
を均衡させるべくI/O要求の制御装置の割当を決定す
るI/Oスケジューリング方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an I/O scheduling method, and in particular to an I/O scheduling method.
The present invention relates to an I/O scheduling method in which allocation of I/O requests to control devices is determined in order to balance the load status of a group of control devices at the stage of issuing an I/O request.

〔従来の技術〕[Conventional technology]

従来の装置は、I/O要求を受は取るとチャネル、チャ
ネルと制御装置間のデータ径路および制御装置が未使用
の径路を順に調べ、未使用の径路に対してI/O要求を
出していた。しかし、制御装置への負荷の片寄り防止を
考えてスケジュールする方式まで考慮されていなかった
In conventional devices, when an I/O request is received, the channel, the data path between the channel and the control device, and the control device sequentially examine unused paths and issue an I/O request to the unused path. Ta. However, no consideration was given to scheduling methods to prevent imbalances in the load on the control device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、チャネル、チャネルと制御装置間のデ
ータ径路および制御装置が使用中かどうかを調べ、未使
用の径路を探してIloを発行していたが、データ転送
中に演算を行う、あるいは、該演算の演算要求を複数量
は付けることができる制御装置において、特定の制御装
置に負荷が片寄った場合、I/O処理の処理速度に問題
があった。
The above conventional technology checks whether the channel, the data path between the channel and the control device, and the control device are in use, searches for an unused path, and issues Ilo. In a control device that can handle multiple calculation requests, if the load is concentrated on a specific control device, there is a problem with the processing speed of I/O processing.

本発明の目的は、制御装置の負荷を分散し、1/O処理
のスルーブツトを向上させるI/Oスケジューリング方
法を提供することにある。
An object of the present invention is to provide an I/O scheduling method that distributes the load on a control device and improves the throughput of I/O processing.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的を達成するために、本発明は、I/O要求を制
御装置群の負荷状況と、各外部記憶装置がどの制御装置
に接続されているかの接続関係の情報を用いて、各制御
装置の負荷情報としてI/O要求の実行多重度、何ブロ
ック分のデータ転送を行うかを示す予想仕事量、および
制御装置の実質処理速度とデータ転送量により換算され
る予想所要時間の3つの情報を用いてスケジュールする
ことに特徴がある。
In order to achieve the above-mentioned object, the present invention sends I/O requests to each control device using information on the load status of the control device group and connection relationship information such as which control device each external storage device is connected to. The load information includes three types of information: the execution multiplicity of I/O requests, the expected workload indicating how many blocks of data will be transferred, and the expected required time calculated based on the actual processing speed of the control device and the amount of data transferred. The feature is that it is scheduled using .

〔作用〕[Effect]

本発明では、スケジュール部は、割当判断部と終了処理
部からなり1割当判断部は、r/○要求部からデータ名
と処理方法などを示したI/O要求を受は取ると、I/
O要求から該当する外部記憶装置番号を調べ、当該外部
記憶装置がどの制御装置と接続されているかを示す接続
情報と、各制御装置の現状の負荷情報を参照し、当該外
部記憶装置に接続しうる制御装置のうち、現在の負荷が
最小の制御装置を該I/O要求に割り当て工/○を発行
する。その後、該I/O要求による負荷量を見積って該
制御装置に対応する負荷情報を更新する。一方、終了処
理部は、I/O終了割込みがかかると、当該I/O要求
の発行元へ終了報告をし、■/○が終了した該制御装置
に対応する負荷情報テーブルの該負荷情報を更新する。
In the present invention, the schedule section includes an allocation judgment section and a termination processing section, and when the allocation judgment section receives an I/O request indicating the data name and processing method from the r/○ request section, the
Check the applicable external storage device number from the O request, refer to the connection information indicating which control device the external storage device is connected to, and the current load information of each control device, and connect to the external storage device. Among the available control devices, the control device with the smallest current load is assigned to the I/O request, and a mark/○ is issued. Thereafter, the load amount due to the I/O request is estimated and the load information corresponding to the control device is updated. On the other hand, when an I/O completion interrupt occurs, the completion processing unit reports completion to the issuer of the I/O request, and updates the load information in the load information table corresponding to the control device for which ■/○ has been completed. Update.

この方法によって、低負荷な制御装置にI/O発行が出
来るので、制御装置間の負荷を均衡し、Iloのスルー
ブツトを高めることができる。
With this method, I/O can be issued to a control device with a low load, so the load among the control devices can be balanced and the throughput of Ilo can be increased.

〔実施例〕〔Example〕

以下、本発明の一実施例を説明する。 An embodiment of the present invention will be described below.

第1図は。Figure 1 is.

本実施例の機能的構成を示す。2は工/○要求部でスケ
ジュール部3の起動を行う、3はスケジュール部で、あ
る外部記憶装置がどの制御装置と接続されているかを示
す接続情報テーブル33、ある制御装置の負荷情報テー
ブル34.接続情報テーブル33および負荷情報テーブ
ル34を基にI/O要求を制御装置に割当てI/O発行
を行う割当判断部31、および終了処理と工/○発行元
への報告処理部を行う終了処理部32から成る。第2図
は、ハードウェア構成を示す。1はCPU(中央処理装
置)、4はチャンネル、5は制御装置で、外部記憶装置
6を制御しデータ転送および演算を行う、6は外部記憶
装置でデータが格納されている。また、制御装[5は、
複数の演算要求を受は付ける要求受付バッファ51を持
っている。
The functional configuration of this embodiment is shown. 2 is an engineering/○ request unit that starts the schedule unit 3; 3 is a schedule unit; a connection information table 33 indicating which control device a certain external storage device is connected to; and a load information table 34 for a certain control device. .. An allocation determining unit 31 that allocates I/O requests to control devices based on the connection information table 33 and load information table 34 and issues I/Os, and a termination process that performs termination processing and a report processing unit to the issuer of work/○ It consists of part 32. FIG. 2 shows the hardware configuration. Reference numeral 1 is a CPU (central processing unit), 4 is a channel, and 5 is a control device that controls an external storage device 6 and performs data transfer and calculation. 6 is an external storage device in which data is stored. In addition, the control device [5 is
It has a request reception buffer 51 that receives and receives a plurality of calculation requests.

第3図および第4図は、それぞれ接続情報テーブル33
および負荷情報テーブル34の内容を表したものである
。第5図は、I/O要求ブロックの内容を示した。第6
図〜第8図は、スケジュール部3の動作をフローチャー
トで表したものである。
3 and 4 respectively show the connection information table 33.
and the contents of the load information table 34. FIG. 5 shows the contents of the I/O request block. 6th
8 to 8 are flowcharts showing the operation of the scheduler 3.

以下、第1図〜第5図と第6図〜第8図のフローチャー
トにより、スケジュール部3の動作について説明する。
The operation of the scheduler 3 will be described below with reference to flowcharts shown in FIGS. 1 to 5 and 6 to 8.

CPUI側にあるI/O要求部2からI/O要求が発行
されると、スケジュール部3は割当判断部31に起動を
かける。(第6図のステップ201,202)割当判断
部31が起動すると、まず、I/O要求ブロック20か
ら外部記憶装置番号23を求める。次に、接続情報テー
ブル33を参照し、当該外部記憶装置に接続されている
すべての制御装置について負荷情報テーブル34を調べ
、負荷が最小の制御装置(制御装置番号を特とする請求
める(第7図のステップ204.205および206)
。この場合、負荷情報テーブル34の負荷のうち、r/
O要求要求度、予想仕事量および予想所要時間のいづれ
かで判断する0次に、負荷が最小の制御装置に対してI
loを発行し、I/O発行時刻27を登録する。
When an I/O request is issued from the I/O request section 2 on the CPUI side, the schedule section 3 activates the allocation judgment section 31. (Steps 201 and 202 in FIG. 6) When the allocation determination unit 31 is activated, it first obtains the external storage device number 23 from the I/O request block 20. Next, the connection information table 33 is referred to, the load information table 34 is checked for all the control devices connected to the external storage device, and the control device with the smallest load (control device number specified) is checked. Steps 204, 205 and 206 in Figure 7)
. In this case, among the loads in the load information table 34, r/
O Requirement Determined by degree of demand, expected amount of work, and expected required time. Next, I
I/O issue time 27 is registered.

その後、負荷情報テーブル34のI/O要求要求度に1
を加え(ah4−ah+1.ここでA4−BはAにBを
代入することとする)、I/O要求ブロツク20から処
理ブロック数26 (b、とすると)を調べ負荷情報テ
ーブル34の予想仕事量に加え(bh←b h + b
ヶ)これをI/O要求ブロック20の処理待ちの全ブロ
ック数28にも登録し、該処理ブロック数26を負荷情
報テーブル34の実質処理速度(dkとする)で割って
処理時間を求め負荷情報テーブル34の予想所要時間(
ckとする)に加え(c k4−c b+ b x/ 
d k)、該制御装置の負荷情報を更新する。最後に、
I/O要求ブロック20を負荷情報テーブル34で管理
している待ち行列にポイントする(第7図のステップ2
07゜208.209)。
After that, 1 is added to the I/O request degree of the load information table 34.
(ah4-ah+1.Here, A4-B is assumed to substitute B for A), check the number of processing blocks 26 (assumed to be b) from the I/O request block 20, and calculate the expected work in the load information table 34. In addition to the amount (bh←b h + b
) This is also registered in the total number of blocks 28 waiting for processing in the I/O request block 20, and the processing time is calculated by dividing the number of processing blocks 26 by the actual processing speed (referred to as dk) in the load information table 34 and calculating the load. Estimated time required for information table 34 (
ck) in addition to (c k4-c b+ b x/
d k), updating the load information of the control device; lastly,
Point the I/O request block 20 to the queue managed by the load information table 34 (step 2 in FIG.
07°208.209).

次にI/O終了割込み時の処理について説明する。Next, processing at the time of an I/O end interrupt will be explained.

制御装置5からI/O終了報告を受けると。Upon receiving the I/O completion report from the control device 5.

CPUIは、スケジュール部3にI/O終了割込みをか
ける。スケジュール部3はI/O終了割込みがかかると
、終了処理部32に起動をかける。
The CPUI issues an I/O end interrupt to the scheduler 3. When the scheduler 3 receives an I/O end interrupt, it activates the end processor 32.

(第6図のステップ201から203)終了処理部32
が起動すると、まず、I/O終了割込みにより報告を受
けた処理要求番号、および制御装置番号(制御装置番号
をjとする)より負荷情報テーブル34の■/○要求ブ
ロックへのポイントを調べ、当該処理要求番号に対応す
る■/O要求ブロック20を探し待ち行列から除く。
(Steps 201 to 203 in FIG. 6) Termination processing unit 32
When started, first, it checks the point to the ■/○ request block in the load information table 34 from the processing request number reported by the I/O end interrupt and the control device number (assuming the control device number is j). A /O request block 20 corresponding to the processing request number is searched for and removed from the queue.

次に、当該待ち行列をポインとしている制御装置番号j
のI/O要求要求度から1を引き(aJ←aJ−1)、
予想仕事量からI/O要求ブロック20の処理ブロック
数26(該処理ブロック数をす、とする)を引き(bJ
4−bJ by)、実質処理速度dJを再定義し、負荷
情報を更新する。実質処理速度は、I/O終γ割込みを
受けた時間をt6とすると、I/O要求ブロック20の
I/O発行時刻27(tsとする)と、処理待ちの全ブ
ロック数28 Cbz とする)より次の様に計算する
Next, the control device number j that points to the queue
Subtract 1 from the I/O request level of (aJ←aJ-1),
Subtract the number of processing blocks 26 for the I/O request block 20 (the number of processing blocks is assumed to be ) from the expected workload (bJ
4-bJ by), redefine the actual processing speed dJ and update the load information. The actual processing speed is defined as the I/O issue time 27 (ts) of the I/O request block 20, and the total number of blocks waiting for processing, 28 Cbz, where the time when the I/O end γ interrupt is received is t6. ), calculate as follows.

まず、Iloを開始してから終了するまでに何ブロック
処理したかを計算すると、次のようになる。
First, the number of blocks processed from the start to the end of Ilo is calculated as follows.

bz/(te−ts) これと前回の実質処理速度との平均を新たに実質処理速
度とする。
bz/(te-ts) The average of this and the previous real processing speed is set as the new real processing speed.

dJ=(da+bz/(te−ts))/2最後に、当
該■/○要求の発行元へ終了報告をする。(第8図の2
/O,211,212,213)以上述べた方法により
、制御装置間のI/O要求要求度、予想仕事量および予
想所要時間を均衡することができる。
dJ=(da+bz/(te-ts))/2 Finally, a completion report is sent to the issuer of the ■/○ request. (2 in Figure 8
/O, 211, 212, 213) By the method described above, it is possible to balance the I/O request level, expected workload, and expected required time between control devices.

〔発明の効果〕〔Effect of the invention〕

データ転送中に演算を行う、あるいは、複数の要求を受
は付けることができる制御装置に負荷が片寄った場合、
I/O処理のフループツトが下るが、本発明によれば、
制御装置対応に負荷情報を持たせて、I/O発行および
I/O終了の際に負荷情報を更新し、負荷情報に基づい
てI/O要求を割り当てることにより、制御装置間の負
荷の片寄りを少なくできるので、■/○処理の高速化に
効果がある。
If the load is concentrated on a control device that can perform calculations or accept multiple requests during data transfer,
Although the flow rate of I/O processing is reduced, according to the present invention,
By providing load information for control devices, updating the load information at the time of I/O issue and I/O completion, and allocating I/O requests based on the load information, it is possible to distribute the load between control devices. Since the deviation can be reduced, it is effective in speeding up ■/○ processing.

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

第1図は本発明の一実施例の機能構成図、第2図は本発
明のハード接続構成図、第3図は接続情報テーブルの内
容を示す図、第4図は負荷情報テジュール部の処理フロ
ーを示した図である。 1・・・ホスト計算機、2・・・工/○要求部、3・・
・スケジュール部、31・・・割当判断部、32・・・
終了処理部、33・・・接続情報テーブル、34・・・
負荷情報テーブル、4・・・チャネル、5・・・制御装
置、51・・・要茅 図 !/ 字表ペッフY イ づ 図 茅 斗 図 弄 ♂ 図 革 乙 図 等7図
Fig. 1 is a functional block diagram of an embodiment of the present invention, Fig. 2 is a hardware connection block diagram of the present invention, Fig. 3 is a diagram showing the contents of the connection information table, and Fig. 4 is the processing of the load information processing section. It is a figure showing a flow. 1...Host computer, 2...Engineering/○ request section, 3...
-Schedule section, 31... Allocation judgment section, 32...
Termination processing unit, 33... Connection information table, 34...
Load information table, 4...channel, 5...control device, 51...required diagram! / Character table Peff Y Izuzu Kayatozu grope♂ Zuzuzuzuzu etc. 7 pictures

Claims (1)

【特許請求の範囲】 1、データ転送中に演算を行う、あるいは該演算の演算
条件を複数受け付けることができる複数の制御装置と複
数の外部記憶装置をもつ計算機システムにおいて、制御
装置群の負荷状況を監視し、外部記憶装置に接続しうる
制御装置の内、負荷が最小の制御装置に対してI/O要
求を発行することを特徴とするI/Oスケジユーリング
方法。 2、各制御装置の負荷状況として、該制御装置に対する
I/O要求の実行多重度を用いることを特徴とする請求
項第1項のI/Oスケジユーリング方法。 3、各制御装置の負荷状況として、該制御装置の予想仕
事量を用いることを特徴とする請求項第1項のI/Oス
ケジユーリング方法。 4、上記第1項において、各制御装置の負荷状況として
、該制御装置の処理速度とデータ転送量により換算され
る予想所要時間を用いることを特徴とする請求項第1項
のI/Oスケジユーリング方法。
[Claims] 1. In a computer system having a plurality of control devices and a plurality of external storage devices that can perform a calculation during data transfer or accept a plurality of calculation conditions for the calculation, the load status of a group of control devices 1. An I/O scheduling method comprising the steps of: monitoring an external storage device; and issuing an I/O request to a control device with the least load among control devices that can be connected to an external storage device. 2. The I/O scheduling method according to claim 1, wherein the load status of each control device is the multiplicity of execution of I/O requests to the control device. 3. The I/O scheduling method according to claim 1, wherein the expected workload of each control device is used as the load status of each control device. 4. The I/O schedule according to claim 1, wherein the expected required time converted from the processing speed and data transfer amount of each control device is used as the load status of each control device. Uehling method.
JP16502088A 1988-07-04 1988-07-04 I/o scheduling method Pending JPH0215354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16502088A JPH0215354A (en) 1988-07-04 1988-07-04 I/o scheduling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16502088A JPH0215354A (en) 1988-07-04 1988-07-04 I/o scheduling method

Publications (1)

Publication Number Publication Date
JPH0215354A true JPH0215354A (en) 1990-01-19

Family

ID=15804316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16502088A Pending JPH0215354A (en) 1988-07-04 1988-07-04 I/o scheduling method

Country Status (1)

Country Link
JP (1) JPH0215354A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008135048A (en) * 2007-12-26 2008-06-12 Hitachi Ltd Disk control unit provided with cross call function
JP2021518002A (en) * 2019-03-07 2021-07-29 シャンハイ センスタイム インテリジェント テクノロジー カンパニー リミテッド Resource scheduling method, equipment, system, and center server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008135048A (en) * 2007-12-26 2008-06-12 Hitachi Ltd Disk control unit provided with cross call function
JP2021518002A (en) * 2019-03-07 2021-07-29 シャンハイ センスタイム インテリジェント テクノロジー カンパニー リミテッド Resource scheduling method, equipment, system, and center server

Similar Documents

Publication Publication Date Title
US6754738B2 (en) Low overhead I/O interrupt
US6880021B2 (en) Intelligent interrupt with hypervisor collaboration
US5247671A (en) Scalable schedules for serial communications controller in data processing systems
US6473780B1 (en) Scheduling of direct memory access
JP2009282807A (en) Apparatus, method and program for message binding processing
HU219533B (en) Multimedia computer system as well as method of controlling operation of the multimedia computer system
JPS6231437A (en) Input and output control system for virtual computer system
CN111209091B (en) Scheduling method of Spark task containing private data in mixed cloud environment
US6792483B2 (en) I/O generation responsive to a workload heuristics algorithm
CN110175073B (en) Scheduling method, sending method, device and related equipment of data exchange job
JPH0215354A (en) I/o scheduling method
US8090801B1 (en) Methods and apparatus for performing remote access commands between nodes
JP2594600B2 (en) Single chip microcomputer
JP2002073354A (en) Task control device and task contol method
JPS6020845A (en) Job shop scheduling method using distributed processing system
US6748460B2 (en) Initiative passing in an I/O operation without the overhead of an interrupt
CN100478930C (en) Identifying-code configuration method of high-grade programable interruption controller
JP2526399B2 (en) Load balancing method for parallel computers
JP3227069B2 (en) I / O processing system
JP3082297B2 (en) Task control method
JPH08137703A (en) Task switching device
JP2002140201A (en) Method for updating database and database management system using the same
JPH06187171A (en) Scheduling system for interruption
JP3374480B2 (en) Data processing device
JPS59117642A (en) System for allocating processing to computer