JPH02238546A - Control processing system for input/output device - Google Patents

Control processing system for input/output device

Info

Publication number
JPH02238546A
JPH02238546A JP1060075A JP6007589A JPH02238546A JP H02238546 A JPH02238546 A JP H02238546A JP 1060075 A JP1060075 A JP 1060075A JP 6007589 A JP6007589 A JP 6007589A JP H02238546 A JPH02238546 A JP H02238546A
Authority
JP
Japan
Prior art keywords
input
output
request
controller
data
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
JP1060075A
Other languages
Japanese (ja)
Inventor
Taro Saito
斉藤 太郎
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP1060075A priority Critical patent/JPH02238546A/en
Publication of JPH02238546A publication Critical patent/JPH02238546A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the overall average time for input/output of data by accepting plural input/output requests via an input/output device. CONSTITUTION:An input/output device 1 contains a magnetic disk device 5, a cache memory 7 which shortens the input/output time of data, and a controller 6 which controls the device 5 and the memory 7. Plural devices 1 are controlled by an input/output control part 2. A single device 1 accepts plural input/output requests and at the same time executes one or two input/output requests in parallel with each other. Therefore a multi-request accepting part 61 is added to the controller 6 together with a next request processing part 62 which processes the prescribed one of plural accepted input/output requests. The part 62 performs its process in parallel with the input/output request that is presently carried out by the device 1. Thus the input/output time of data is shortened in a state where the data is stored in the memory 7.

Description

【発明の詳細な説明】 〔概 要〕 キャッンユメモリを有ずる入出力装置の制御処理方式に
関し データがキャッシュメモリ上に存在する場合のデータの
入出力時間を短縮することを目的とし入出力要求に要求
識別コードを付加し,これによって前記入出力要求を識
別する要求識別コード処理部を制御プログラムに設け,
前記入出力要求を複数受付ける複数要求受付部と,前記
複数の入出力要求のうちの所定の入出力要求についての
処理を行う次要求処理部とをコントローラに設け前記制
御プログラムが各々に前記要求識別コードが付加された
前記入出力装置への複数の前記入出力要求を発行し,前
記入出力装置においてある入出力要求を実行中に前記複
数要求受付部が他の入出力要求を受付けることによって
前記複数の入出力要求を受付け,前記次要求処理部が前
記他の入出力要求についての処理を行い,前記コントロ
ーラが前記入出力要求の実行完了を前記要求識別コード
と共に前記制御プログラムに通知するように構成する。
[Detailed Description of the Invention] [Summary] Regarding the control processing method of an input/output device having a cache memory, the purpose of this invention is to shorten the input/output time of data when the data exists in the cache memory. A request identification code is added to the control program, and a request identification code processing section for identifying the input/output request by this is provided in the control program,
The controller is provided with a multiple request receiving unit that accepts a plurality of the input/output requests, and a next request processing unit that processes a predetermined input/output request among the plurality of input/output requests, and the control program individually identifies the request. A plurality of input/output requests are issued to the input/output device to which the code is attached, and while a certain input/output request is being executed in the input/output device, the multiple request reception unit accepts another input/output request. A plurality of input/output requests are received, the next request processing unit processes the other input/output requests, and the controller notifies the control program of completion of execution of the input/output request together with the request identification code. Configure.

〔産業上の利用分野〕[Industrial application field]

本発明は入出力装置の制御処理方式に関し,更に詳しく
は,キャンシュメモリを有する入出力装置の制御処理方
式に関する。
The present invention relates to a control processing method for an input/output device, and more particularly to a control processing method for an input/output device having cache memory.

入出力装置6こおいては,データの入出力時間を短縮す
るために5 キャッシュメモリを設けることが行われる
。例えば.磁気ディスク装置にキャッシュメモリを設け
て.データがキャッシュメモリ上に存在する(キャソシ
ュヒソトした)場合にシーク時間,回転待ち時間を省略
してアクセス時間を極めて短くしている。
In the input/output device 6, a cache memory is provided in order to shorten data input/output time. for example. A cache memory is provided in the magnetic disk device. When data exists in the cache memory (has been cached), seek time and rotational wait time are omitted, making access time extremely short.

〔従来の技術〕[Conventional technology]

第4図は従来技術説明図であり,従来の入出力制御の様
子を示している。
FIG. 4 is an explanatory diagram of the prior art, showing the state of conventional input/output control.

第4図において.1は入出力装置,2は入出力制御部.
3は制御プログラム,5は磁気ディスク装置,6はコン
トローラ,7はキャッシュメモリ,9は%ill ’+
卸テーフ゛ノレである。
In Figure 4. 1 is an input/output device, and 2 is an input/output control unit.
3 is a control program, 5 is a magnetic disk device, 6 is a controller, 7 is a cache memory, 9 is %ill '+
This is a wholesale tape.

図示の入出力装置Iは,基本的には磁気ディスク装置5
からなり,更に,データの入出力時間の短縮化のための
キャッシュメモリ7とこれらを制御するためのコントロ
ーラ6とを有する。複数の入出力装置1が入出力制御部
2によって管理制御される。1つの入出力装置1は,通
常一度に1つの入出力要求しか実行(受付け)できない
The illustrated input/output device I is basically a magnetic disk device 5.
It further includes a cache memory 7 for shortening data input/output time and a controller 6 for controlling these. A plurality of input/output devices 1 are managed and controlled by an input/output control section 2. One input/output device 1 can normally execute (accept) only one input/output request at a time.

そこで,制御プログラム3は,複数のタスクから出され
る複数の入出力要求R。IないしR2:lを各入出力装
W1毎に逐次化(キューイング)する。
Therefore, the control program 3 handles multiple input/output requests R issued from multiple tasks. I to R2:l are serialized (queued) for each input/output device W1.

このために2制御プログラム3は制御テーブル9を備え
,各入出力装置DISKOないしDISKnについての
入出力要求の待ち行列(キュー)を作り,これらを管理
する。制御プログラム3は待ち行列の先頭とされた入出
力要求R。,及びR2について,入出力制御部2を介し
て,対応する入出力装置DISKOおよびDISK2に
実行させる。そして,制御プログラム3は,これらの処
理が終わり次第,次に待ち行列の先頭とされた入出力要
求R。2及びR22を実行させる。
For this purpose, the 2 control program 3 includes a control table 9, creates a queue of input/output requests for each of the input/output devices DISKO to DISKn, and manages them. The control program 3 is the input/output request R placed at the head of the queue. , and R2 are executed by the corresponding input/output devices DISKO and DISK2 via the input/output control unit 2. Then, as soon as these processes are completed, the control program 3 sends the input/output request R that is placed at the head of the queue. 2 and R22.

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

前述の従来技術によれば,入出力装置1が図示の如くキ
ャッシュメモリ7を有する場合には,データの入出力時
間の短縮化というキャソシュメモ’J 7を設けた意義
を著しく損なってしまう。
According to the prior art described above, when the input/output device 1 has the cache memory 7 as shown in the figure, the purpose of providing the cache memory 7, which is to shorten the data input/output time, is significantly lost.

例えば.図示の入出力要求RO2において入出力装置D
 I SKOから読出そうとするデータが,そのキャッ
シュメモリ7上に存在しているとする。
for example. In the illustrated input/output request RO2, the input/output device D
Assume that the data to be read from ISKO exists on the cache memory 7.

しかし,入出力装置D I SKOについては,先に他
のタスクからの入出力要求R。1があるためにこれが完
了するまでは当該入出力要求R。2は実行できない。そ
して,入出力要求R。1に係るデータがキャッシュメモ
リ7上に存在していないとすると.入出力要求Riの実
行の際には,シーク動作や回転待ち動作等が含まれるこ
とになる。従って.入出力要求R。2について考えれば
,データがキャッシュメモリ7上に存在するにも拘らず
.そのデータの入出力時間が長くなってしまうことにな
る。
However, for the input/output device DI SKO, the input/output request R from another task is first received. 1, the corresponding input/output request R until this is completed. 2 cannot be executed. And input/output request R. Suppose that the data related to 1 does not exist on the cache memory 7. When executing the input/output request Ri, a seek operation, a rotation waiting operation, etc. are included. Therefore. I/O request R. Considering 2, even though the data exists on the cache memory 7. The input/output time for that data becomes long.

本発明は,データ・がキャッシュメモリ上に存在する場
合のデータの入出力時間を短縮した入出力装置の制御処
理方式を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an input/output device control processing method that reduces data input/output time when data exists on a cache memory.

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

第1図は本発明の原理構成図であり.本発明によるデー
タ処理装置を示している。
Figure 1 is a diagram showing the principle structure of the present invention. 1 shows a data processing device according to the invention;

第1図において,1は入出力装置,2は入出力制御部,
3は制御プログラム.31は要求識別コード処理部,4
は主メモリ,5は磁気ディスク装置.6はコントローラ
,61は複数要求受付部62は次要求処理部,7はキャ
ソンユメモリ18は要求管理テーブルである。
In Figure 1, 1 is an input/output device, 2 is an input/output control unit,
3 is a control program. 31 is a request identification code processing unit; 4
is the main memory, and 5 is the magnetic disk device. 6 is a controller, 61 is a multiple request reception unit 62 is a next request processing unit, and 7 is a casonyu memory 18 is a request management table.

入出力装置1は,基本的には磁気ディスク装置5からな
り,更に,データの入出力時間の短縮化のためのキャッ
シュメモリ7とこれらをIII ?卸するだめのコント
ローラ6とを有する。複数の入出力装置1が入出力制御
部2によって管理され,制御される。1つの入出力装置
1は,複数の入出力要求を受付けると共に,1又は2の
入出力要求を並列して実行する。
The input/output device 1 basically consists of a magnetic disk device 5, and further includes a cache memory 7 for shortening data input/output time. It has a controller 6 for export. A plurality of input/output devices 1 are managed and controlled by an input/output control section 2. One input/output device 1 receives multiple input/output requests and executes one or two input/output requests in parallel.

このために,コントローラ6に,複数の入出力要求を受
付ける複数要求受付部61と,これが受付けた複数の入
出力要求のうちの所定の入出力要求についての処理を行
う次要求処理部62とが設けられる。次要求処理部62
による処理は.現在入出力装置1において実行中の入出
力要求と並列して行われる。
For this purpose, the controller 6 includes a multiple request receiving unit 61 that accepts multiple input/output requests, and a next request processing unit 62 that processes a predetermined input/output request among the multiple input/output requests received by the multiple request receiving unit 61. provided. Next request processing unit 62
The processing by . This is performed in parallel with the input/output request currently being executed in the input/output device 1.

制御プログラム3は,入出力制御部2に対して,1つの
入出力装W1を指定してこれへの入出力要求を複数発行
する。入出力制御部2は指定された入出力装置1へ入出
力要求を送る。
The control program 3 specifies one input/output device W1 and issues multiple input/output requests to the input/output device W1 to the input/output control unit 2. The input/output control unit 2 sends an input/output request to the designated input/output device 1.

制御プログラム3には,これら発行する入出力要求の各
々に要求識別コードを付加するための要求識別コード処
理部31が設けられる。要求識別コード処理部31は,
また,入出力要求をこれに付加された要求識別コードに
よって他の入出力要求と識別する。
The control program 3 is provided with a request identification code processing section 31 for adding a request identification code to each of these issued input/output requests. The request identification code processing unit 31
In addition, an input/output request is distinguished from other input/output requests by the request identification code added to it.

〔作 用〕[For production]

制御プログラム3は,入出力制御部2に対して1つの入
出力装置1 (DISKOとする)への複数の入出力要
求Rot,  Ro2及びR。,をこの順に発行する。
The control program 3 makes a plurality of input/output requests Rot, Ro2, and R to one input/output device 1 (discussed as DISKO) to the input/output control unit 2. , are issued in this order.

入出力要求の各々には要求識別コードが付加されている
。入出力制御部2は.複数の入出力要求ROII RO
2, RO3を順次,入出力装置DISKOへ送る。
A request identification code is attached to each input/output request. The input/output control section 2 is . Multiple input/output requestsROII RO
2. Send RO3 to the input/output device DISKO in sequence.

入出力装置D I SKOは,その複数要求受付部61
で最初の入出力要求R。,を受付け,これを実行する。
The input/output device D I SKO has its multiple request reception unit 61
The first input/output request R. , and execute it.

ここで,入出力要求Rotにおいて入出力装iDrsK
oから読出そうとするデータがキャッシュメモリ7上に
存在しないものとすると,その実行のために磁気ディス
ク装置5がコントローラ6によりアクセスされる。即ち
,実行のためのシーク動作や回転待ち動作が行われる。
Here, in the input/output request Rot, the input/output device iDrsK
Assuming that the data to be read from o does not exist on the cache memory 7, the magnetic disk device 5 is accessed by the controller 6 for execution. That is, a seek operation for execution and a rotation wait operation are performed.

入出力装置D I SKOにおいて入出力要求R。Iを
実行中に,制御プログラム3が他の入出力要求RO2を
発行し.入出力制御部2を介して入出力装iDIsKo
に送る。入出力装置DISKOの複数要求受付部61は
,この入出力要求RO2を受付ける。即ち複数要求受付
部61は,入出力装置1(DISKO)においてある入
出力要求(Rot)を実行中に他の入出力要求(Rot
)を受付けることによって.複数の入出力要求の受付け
を可能とする。
Input/output request R at input/output device D I SKO. While executing I, control program 3 issues another input/output request RO2. The input/output device iDIsKo via the input/output control unit 2
send to The multiple request accepting unit 61 of the input/output device DISKO accepts this input/output request RO2. In other words, the multiple request receiving unit 61 is configured to accept requests from other input/output requests (Rot) while executing a certain input/output request (Rot) in the input/output device 1 (DISKO).
) by accepting. Enables acceptance of multiple input/output requests.

次要求処理部62は.複数要求受付部61で前記他の入
出力要求R。2が受付けられた場合に1 当該他の入出
力要求R。2についての処理を行う。ここで,入出力要
求R。2において入出力装置DISKOから読出そうと
するデータがキャッシュメモリ7上に存在するものとす
ると.当該データの読出し即ち入出力要求R。2が実行
される。従って待ち行列の先頭及びその次の入出力要求
R。I+  R。2が並列して実行される。入出力要求
R。2は,入出力要求Rotの実行の際のシーク時間中
及び/又は回転待ち時間中に実行されるので何ら支障は
ない。
The next request processing unit 62. The multiple request receiving unit 61 receives the other input/output request R. 1 if 2 is accepted The other input/output request R. Processing for 2 is performed. Here, input/output request R. Assume that the data to be read from the input/output device DISKO in step 2 exists on the cache memory 7. Reading of the data, ie, input/output request R. 2 is executed. Therefore, the top of the queue and the next I/O request R. I+R. 2 are executed in parallel. I/O request R. 2 is executed during the seek time and/or rotation waiting time when executing the input/output request Rot, so there is no problem.

コントローラ6は.コントローラ6又は次要求処理部6
2による入出力要求R。1又はR。2の実行が完了する
と,これを制御プログラム3に通知する。この実行完了
の通知は.当該通知に係る入出力要求が発行された時に
付加されていた要求識別コードと共に行われる。従って
,制御プログラム3は,入出力要求R。2の実行完了の
通知を入出力要求ROIのそれよりも先に受けたとして
も,要求識別コードによって.どの入出力要求が完了し
たかを知ることができる。
The controller 6 is. Controller 6 or next request processing unit 6
Input/output request R by 2. 1 or R. When the execution of step 2 is completed, the control program 3 is notified of this. The notification of completion of this execution is as follows. This is done together with the request identification code that was added when the input/output request related to the notification was issued. Therefore, the control program 3 makes an input/output request R. Even if the notification of the completion of execution of step 2 is received earlier than that of the input/output request ROI, the request identification code will not be processed. You can see which I/O requests have completed.

このように,本発明によれば,データがキャッシュメモ
リ7上に存在する入出力要求についての入出力時間を短
縮することができる。
As described above, according to the present invention, the input/output time for an input/output request for which data exists on the cache memory 7 can be shortened.

〔実施例〕〔Example〕

第1図図示のデータ処理装置について更に説明する。 The data processing apparatus shown in FIG. 1 will be further explained.

制御プログラム3及び入出力制御部2は,共にI/Oス
ーパバイザを構成する。制御プログラム3は,ユーザか
ら入出力装置1についての処理の要求があると,入出力
要求としてのSIO(スター トJ/O)命令を入出力
制御部2に発行し,チャネルプログラムの実行を依頼す
る。入出力要求は.全て入出力制御部2によって受け付
けられ,管理され,制御される。入出力制御部2は,入
出力装置1で実行完了した入出力要求についての入出力
割込みを制御プログラム3に発生させ.当該実行完了を
通知する。SIO命令及び入出力割込みの際に,制御プ
ログラム3と入出力制御部2との間で,後述の所定のイ
ンクフェースに従って要求識別コードを含む所定の情報
の受け渡しが行われる。
The control program 3 and the input/output control unit 2 together constitute an I/O supervisor. When the control program 3 receives a request from the user for processing regarding the input/output device 1, it issues an SIO (start J/O) command as an input/output request to the input/output control unit 2, requesting execution of the channel program. do. Input/output requests. All are received, managed, and controlled by the input/output control unit 2. The input/output control unit 2 causes the control program 3 to generate an input/output interrupt for an input/output request that has been completed by the input/output device 1. Notify completion of the execution. At the time of an SIO command and an input/output interrupt, predetermined information including a request identification code is exchanged between the control program 3 and the input/output control unit 2 according to a predetermined ink face described later.

王メモリ4は,入出力要求の実行の結果.入出力装置1
の磁気ディスク装置5又はキャッシュメモリ7から読出
され,入出力制御部2を介して転送されたデータを格納
する。主メモリ4は.また要求識別コードを含む所定の
情和をその受け渡しのために格納する。
King memory 4 is the result of executing an input/output request. Input/output device 1
It stores data read from the magnetic disk device 5 or cache memory 7 and transferred via the input/output control unit 2. The main memory 4 is. It also stores predetermined information including a request identification code for its delivery.

コントローラ6は,入出力要求の実行のために必要な制
御を行う。例えば,入出力要求に係るデータがキャッシ
ュメモリ7上に存在せず磁気ディスク装置5に存在する
場合に,磁気ディスク装置5をアクセスして当8亥デー
タを読出す。また,入出力要求に係るデータがキャッシ
ュメモリ7上に存在する場合に,これから当該データを
読出す。
The controller 6 performs necessary control to execute input/output requests. For example, when data related to an input/output request does not exist in the cache memory 7 but exists in the magnetic disk device 5, the magnetic disk device 5 is accessed to read the relevant data. Furthermore, if data related to the input/output request exists on the cache memory 7, the data is read from there.

読出されたデータは主メモリ4に転送される。コントロ
ーラ6は,また,入出力要求の実行が完了したら,入出
力制御部2に入出力割込みを発生ずるように依頬する。
The read data is transferred to main memory 4. The controller 6 also causes the input/output control section 2 to generate an input/output interrupt when the execution of the input/output request is completed.

この入出力割込みの依頼の際に,コントローラ6から入
出力制御部2に対して,実行完了した入出力要求の要求
識別コードを知らせる必要がある。
When requesting this input/output interrupt, it is necessary for the controller 6 to notify the input/output control section 2 of the request identification code of the input/output request that has been completed.

このために,コントローラ6は要求管理テーブル8を備
え,受付けた入出力要求毎にその要求識別コードを保持
する。
For this purpose, the controller 6 includes a request management table 8, and holds a request identification code for each received input/output request.

入出力制御部2は,SIO命令を受けると直ちに指定さ
れた入出力装置1を起動し,入出力割込みの依顧を受け
ると直ちに入出力割り込みを発生させる。なお.入出力
制御部2が要求管理テーブル8を備え,要求識別コード
を入出力装置1に渡すようにしてもよい。
The input/output control unit 2 activates the specified input/output device 1 immediately upon receiving an SIO command, and immediately generates an input/output interrupt upon receiving a request for an input/output interrupt. In addition. The input/output control unit 2 may include the request management table 8 and pass the request identification code to the input/output device 1.

第2図は入出力インタフェース説明図である。FIG. 2 is an explanatory diagram of the input/output interface.

Sl○命令の際のインタフェースは第2図(A)圓示の
如くにされる。
The interface for the Sl○ command is as shown in FIG. 2(A).

SIO命令は,制御プログラム3によって発行され,命
令コードと装置アドレスレジスタ番号とからなる。装置
アドレスレジスタには,予め,制御プログラム3によっ
て,どの入出力装置1を使用するかを示すため6こ装置
アドレスが格納される。
The SIO instruction is issued by the control program 3 and consists of an instruction code and a device address register number. Six device addresses are stored in the device address register in advance by the control program 3 to indicate which input/output device 1 is to be used.

更に.SI○命令発行の際に,制御プログラム3によっ
て,主メモリ4上のSIO命令に対応する所定の位置(
固定域)に,チャネルプログラムアドレス(CAW)及
び要求識別コードが格納される。チャネノレフ゜ログラ
ムアドレスは.当8亥SIO命令で実行すべきチャネル
プログラム(CCW)が主メモリ4のどこに格納されて
いるかを示す。要求識別コードは,要求識別コード処理
部31によって格納された入出力要求を識別するための
情報である。
Furthermore. When issuing an SI○ instruction, the control program 3 moves the main memory 4 to a predetermined location corresponding to the SIO instruction (
A channel program address (CAW) and a request identification code are stored in a fixed area). The channel reflex program address is. It shows where in the main memory 4 the channel program (CCW) to be executed by this SIO instruction is stored. The request identification code is information stored by the request identification code processing unit 31 for identifying an input/output request.

一方.入出力制御部2は,受け取った命令中の装置アド
レスレジスタ番号で示された装置アドレスレジスタを参
照し,装置アドレスを知る。また,受け取った命令がs
r○命令であるので.入出力制御部2 (又はコントロ
ーラ6)は,主メモリ4上のSIO命令に対応する所定
の位置を参照し,チャネルプログラムアドレス及び要求
識別コードを知る。
on the other hand. The input/output control unit 2 refers to the device address register indicated by the device address register number in the received instruction and learns the device address. Also, if the received command is s
Because it is an r○ command. The input/output control unit 2 (or controller 6) refers to a predetermined location corresponding to the SIO command on the main memory 4 and learns the channel program address and request identification code.

入出力制御部2は,装置アドレスで指定された入出力装
置1に対して,チヤ不ルブログラムアトレス及び要求識
別コートを渡して入出力要求を実行させる。この入出力
要求を受付けた入出力装置1のコン1・ローラ6は,そ
の受付けの際に,チャネルプログラムアドレス及び要求
識別コードを要求管理テーブル8に格納する。
The input/output control unit 2 passes the channel program address and the request identification code to the input/output device 1 specified by the device address, and causes the input/output device 1 to execute the input/output request. The controller 1/roller 6 of the input/output device 1 that has accepted this input/output request stores the channel program address and request identification code in the request management table 8 upon acceptance.

入出力割込めの際のインタフェースは第2図(B)図示
の如くにされる。
The interface at the time of input/output interruption is as shown in FIG. 2(B).

入出力割込み(信号)は,入出力装置1からの依頼を受
けた入出力制御部2によって発行される。
The input/output interrupt (signal) is issued by the input/output control unit 2 that receives a request from the input/output device 1.

ごの入出力割込み発行の際,入出力制御部2によって,
主メモリ4上の当該入出力割込みに対応ずる所定の位M
(固定域)に.要求識別コード及びチャネルステイタス
ワード(CSW)が格納される。また,主メモリ4上に
は入出力割込み旧PSW(プログラムステイタスワード
)も格納される。要求識別コードは,コントローラ6に
よって要求管理テーブル8から読出され入出力割込みの
依頼と共に通知され.SlO命令のインタフェースにお
りる位置と同一の位置に格納される。チャネルステイタ
スワードは,ステイタス部と最柊CCWアドレスとがら
なる。入出力割込み旧PSWは,マスクステイタス,装
置アドレスを含む割込みコード及びIA(インストラク
ションアドレス)中断アドレスからなる。
When each input/output interrupt is issued, the input/output control unit 2
A predetermined position M corresponding to the relevant input/output interrupt on the main memory 4
(fixed area). A request identification code and a channel status word (CSW) are stored. In addition, input/output interrupt old PSW (program status word) is also stored on the main memory 4. The request identification code is read from the request management table 8 by the controller 6 and notified along with the input/output interrupt request. It is stored in the same location as the interface of the SlO instruction. The channel status word consists of a status part and a maximum CCW address. The input/output interrupt old PSW consists of a mask status, an interrupt code including a device address, and an IA (instruction address) interrupt address.

一方,入出力割込みを発生した制御プログラム3は2主
メモリ4上の当該入出力割込みに対応ずる所定の位置を
参照し,要求識別コード,チヤ不ルステイタスワード及
び入出力割込み旧PSWを知る。即ち.要求識別コード
処理部31において要求識別コードからどの入出力要求
の実行が完了したのかを知る。また5チャネルステイタ
スワードから入出力要求がどこまで実行されたかを知る
On the other hand, the control program 3 that generated the input/output interrupt refers to a predetermined location corresponding to the input/output interrupt in the main memory 4 and learns the request identification code, channel status word, and input/output interrupt old PSW. That is. The request identification code processing unit 31 determines which input/output request has been completed based on the request identification code. Also, the extent to which the input/output request has been executed can be determined from the 5 channel status word.

そして,入出力割込み旧PSWに基づいて,SIO命令
発行時の状態に復帰する。
Then, based on the input/output interrupt old PSW, the state returns to the state when the SIO instruction was issued.

なお,第2図(A)及び(B)における主メモリ4上の
要求識別コードは5実際はコードそれ自体ではなく,当
該コードが格納されているテーブル(図示せず)におけ
る当該コードのアドレスを示すようにされる。
Note that the request identification code 5 on the main memory 4 in FIGS. 2 (A) and (B) is not actually the code itself, but indicates the address of the code in the table (not shown) in which the code is stored. It will be done like this.

第3図は入出力制御処理フローである。FIG. 3 is an input/output control processing flow.

■ 制御プログラム3から入出力制御部2に対して,第
2図(A)図示のインタフェースでSIO命令すなわち
入出力要求が発行される。この時要求識別コード処理部
31によって,主メモリ4上に当該入出力要求について
の要求識別コードが格納されている。
(2) An SIO command, that is, an input/output request, is issued from the control program 3 to the input/output control section 2 through the interface shown in FIG. 2(A). At this time, the request identification code processing unit 31 stores the request identification code for the input/output request in the main memory 4.

入出力制御部2は,指定された入出力装置1に入出力要
求を渡す。
The input/output control unit 2 passes the input/output request to the designated input/output device 1.

指定された入出力装W1のコントローラ6はその複数要
求受付部61で入出力要求を受付ける。
The controller 6 of the designated input/output device W1 accepts the input/output request through its multiple request accepting unit 61.

即ち,主メモリ4の所定の位置からチャネルプログラム
アドレス及び要求識別コードをフ二ッチし2また,これ
を要求管理テーブル8に格納する。
That is, the channel program address and the request identification code are retrieved from a predetermined location in the main memory 4, and stored in the request management table 8.

■ コントローラ6は チャネルプログラムアドレスに
基づいて主ノモリ4上のチャネルプログラムをフェッチ
する。そして,コントローラ6はフェンチしたチャネル
プログラムについてエラーの有無をチェックし,エラー
が有る場合にはエラー処理を行う。
■ The controller 6 fetches the channel program on the main memory 4 based on the channel program address. Then, the controller 6 checks whether or not there is an error in the fetched channel program, and if there is an error, performs error processing.

■ エラーが無い場合,コントローラ6は,当該チャネ
ルプログラムによっーC続出そうとするデータがキャッ
シュメモリ7上に存在する(キャソシュヒントする)か
否かを調べる。
(2) If there is no error, the controller 6 checks whether data to be continuously output by the channel program exists in the cache memory 7 (cache hint).

■ 存在しない場合,コントローラ6は,磁気ディスク
装置5をアクセスするために,当該磁気ディスク装置5
が動作中か否かを調べる。
■ If it does not exist, the controller 6 connects the magnetic disk device 5 in order to access the magnetic disk device 5.
Check whether it is running.

動作中でない場合,コントローラ6は,磁気ディスク装
置5を起動し,データの読出しを行う。
If it is not in operation, the controller 6 starts up the magnetic disk device 5 and reads data.

この時,シーク動作及び回転待ち動作が行われる。At this time, a seek operation and a rotation wait operation are performed.

動作中である場合,先に受付けられた他の入出力要求の
実行中であるから,コントローラ6は当該入出力要求を
待ち行列に登録する。
If it is in operation, another input/output request that was accepted earlier is being executed, so the controller 6 registers the input/output request in the queue.

■ 存在する場合,コントローラ6は,キャソシエメモ
リ7をアクセスするために,当該キャッシュメモリ7が
制御中(磁気ディスク装置5又は主メモリ4との間での
テータ転送中)か否かを調べる。
(2) If the cache memory 7 exists, the controller 6 checks whether the cache memory 7 is under control (transferring data with the magnetic disk device 5 or the main memory 4) in order to access the cache memory 7.

制御中でない場合1 コントローラ6は,キャノシュメ
モリ7からのデータの読出し,即ち主メモリ4上へのデ
ータの転送(DMA転送)を起動する。このデータ転送
番,二要する時間は,通常,シク時間及び回転待ち時間
よりも十分に短い。
When not under control 1 The controller 6 starts reading data from the cache memory 7, that is, data transfer onto the main memory 4 (DMA transfer). The time required for this data transfer is usually sufficiently shorter than the transfer time and rotation waiting time.

制御中である場合,コン1・ローラ6は.当該入出力要
求を待ち行列に登録する。
When under control, controller 1 and roller 6. Register the input/output request in a queue.

■ 入出力要求の実行が完了すると,コントローラ6は
,入出力割込み用情報として,要求識別コド及びチャネ
ルステイタスワードを主メモリ4上に格納し,入出力制
御部2に入出力割込みの発行を依頼する。要求識別コー
ドは要求管理テーフル8から得られる。
■ When the execution of the input/output request is completed, the controller 6 stores the request identification code and channel status word in the main memory 4 as input/output interrupt information, and requests the input/output control unit 2 to issue an input/output interrupt. do. The request identification code is obtained from the request management table 8.

この依頼に基づいて,入出力制御部2から制御プログラ
ム3に対して,第2図(B)図示のインタフェースで,
入出力割込みが行われる。
Based on this request, the input/output control unit 2 sends a message to the control program 3 using the interface shown in FIG. 2(B).
An input/output interrupt occurs.

■ コントローラ6は1待ち行列を調べ,登録されてい
る入出力要求があれば.これについて処理■以下を繰り
返す。
■ Controller 6 checks queue 1 and if there is a registered input/output request. Regarding this, process ■Repeat the following.

以上の処理は.各入出力要求について並列して行われる
The above process is. Each I/O request is done in parallel.

例えば,入出力装置DISKOにおいて,入出力要求R
。1について,処理■の後処理■が行われるものとする
。この処理■に要ずろ時間は,前述の如く長いものであ
る。この入出力要求R。1についての処理■の実行中に
入出力要求R。2があると先の入出力要求R。1の処理
■と並列して7後の入出力要求R。2についで処理■な
いし■が行われる。
For example, in the input/output device DISKO, the input/output request R
. As for 1, it is assumed that the post-processing ■ of the processing ■ is performed. The time required for this process (2) is long as described above. This input/output request R. An input/output request R is made during the execution of process 1 for 1. If there is 2, it is the previous input/output request R. I/O request R after 7 in parallel with process 1 (■). After 2, processing ■ to ■ are performed.

この後,当該入出力要求R。2について処理■が行われ
ると,入出力要求RO2は待ち行列に登録される。一方
.入出力要求R。2について処理■が行われ主メモリ4
へのデータ転送が行われると3後の入出力要求R。2が
先の入出力要求R。1より早く実行完了する。このよう
な場合でも要求識別コードによって.どの入出力要求が
実行完了したのかを知ることができる。入出力要求R。
After this, the relevant input/output request R. When process (2) is performed for 2, the input/output request RO2 is registered in the queue. on the other hand. I/O request R. Processing ■ is performed for 2 and the main memory 4
When the data is transferred to R, the third input/output request occurs. 2 is the first input/output request R. Completes execution earlier than 1. Even in such cases, the request identification code is used. It is possible to know which input/output requests have completed execution. I/O request R.

2についての処理■は複数要求受付部61が行い,他の
処理■ないし■は次要求処理部62が行う。なお,実際
は入出力要求R。1についての処理■を行っている間は
,コントローラ6が空いていることを利用してコントロ
ーラ6が行うものである。
The process ``2'' regarding ``2'' is performed by the multiple request receiving unit 61, and the other processes ``2'' to ``2'' are performed by the next request processing unit 62. Note that it is actually an input/output request R. While the process 1 for 1 is being performed, the controller 6 takes advantage of the fact that the controller 6 is idle.

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

以上説明したように,本発明によれば,キヤ・2シュメ
モリを有する入出力装置の制御処理において,入出力装
置が複数の入出力要求を受付けることができるようにし
たことによって,データがキャッシュメモリ上に存在す
る場合に当該データについての入出力時間を短縮するこ
とができるのでキャッシュメモリを設けたことによる入
出力時間の短縮という効果を十分に活かし.入出力時間
の全体の平均をも短くすることができる。
As explained above, according to the present invention, in the control processing of an input/output device having a cache memory, data is stored in the cache memory by enabling the input/output device to accept multiple input/output requests. Since the input/output time for the relevant data can be shortened when the cache memory exists on the computer, the effect of shortening the input/output time by providing a cache memory can be fully utilized. The overall average input/output time can also be reduced.

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

第1図は本発明の原理構成図 第2図は入出力インタフェース説明図,第3図は入出力
制御処理フロー 第4図は従来技術説明図。 1は入出力装置,2は入出力制御部,3は制御プログラ
ム.31は要求識別コート処理部,4は主メモリ,5は
磁気ディスク装置,6はコントローラ,61は複数要求
受付部1 62は次要求処理部5 7はキャッシュメモ
リ,8は要求管理テーフルである。
FIG. 1 is a diagram showing the principle configuration of the present invention. FIG. 2 is an explanatory diagram of an input/output interface. FIG. 3 is an input/output control processing flow diagram. FIG. 4 is an explanatory diagram of a conventional technique. 1 is an input/output device, 2 is an input/output control unit, and 3 is a control program. 31 is a request identification code processing unit, 4 is a main memory, 5 is a magnetic disk device, 6 is a controller, 61 is a multiple request reception unit 1, 62 is a next request processing unit 5, 7 is a cache memory, and 8 is a request management table.

Claims (1)

【特許請求の範囲】 コントローラ(6)及びキャッシュメモリ(7)を有し
入出力要求を実行する入出力装置(1)と、前記入出力
装置(1)への前記入出力要求を発行する制御プログラ
ム(3)とを備えたデータ処理装置において、 前記入出力要求に要求識別コードを付加し、これによっ
て前記入出力要求を識別する要求識別コード処理部(3
1)を前記制御プログラム(3)に設け、前記入出力要
求を複数受付ける複数要求受付部(61)と、前記複数
の入出力要求のうちの所定の入出力要求についての処理
を行う次要求処理部(62)とを前記コントローラ(6
)に設け、 前記制御プログラム(3)が各々に前記要求識別コード
が付加された前記入出力装置(1)への複数の前記入出
力要求を発行し、 前記入出力装置(1)においてある入出力要求を実行中
に前記複数要求受付部(61)が他の入出力要求を受付
けることによって前記複数の入出力要求を受付け、 前記次要求処理部(62)が前記他の入出力要求につい
ての処理を行い、 前記コントローラ(6)が前記入出力要求の実行完了を
前記要求識別コードと共に前記制御プログラム(3)に
通知する ことを特徴とする入出力装置の制御処理方式。
[Claims] An input/output device (1) that has a controller (6) and a cache memory (7) and executes an input/output request, and a control that issues the input/output request to the input/output device (1). A request identification code processing unit (3) that adds a request identification code to the input/output request and thereby identifies the input/output request.
1) is provided in the control program (3), and includes a multiple request receiving unit (61) that receives a plurality of input/output requests, and a next request process that processes a predetermined input/output request among the plurality of input/output requests. (62) and the controller (6).
), the control program (3) issues a plurality of input/output requests to the input/output device (1), each of which has the request identification code added, and While executing an output request, the multiple request receiving unit (61) accepts the plurality of input/output requests by accepting another input/output request, and the next request processing unit (62) receives the input/output requests regarding the other input/output request. A control processing method for an input/output device, characterized in that the controller (6) notifies the control program (3) of completion of execution of the input/output request together with the request identification code.
JP1060075A 1989-03-13 1989-03-13 Control processing system for input/output device Pending JPH02238546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1060075A JPH02238546A (en) 1989-03-13 1989-03-13 Control processing system for input/output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1060075A JPH02238546A (en) 1989-03-13 1989-03-13 Control processing system for input/output device

Publications (1)

Publication Number Publication Date
JPH02238546A true JPH02238546A (en) 1990-09-20

Family

ID=13131604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1060075A Pending JPH02238546A (en) 1989-03-13 1989-03-13 Control processing system for input/output device

Country Status (1)

Country Link
JP (1) JPH02238546A (en)

Similar Documents

Publication Publication Date Title
US5548788A (en) Disk controller having host processor controls the time for transferring data to disk drive by modifying contents of the memory to indicate data is stored in the memory
JPH06161950A (en) Control method of data transmission used for computation system provided with multiple bus architecture
JP2550311B2 (en) Multiple control system of magnetic disk
JPH064220A (en) Magnetic disk subsystem
JPH02238546A (en) Control processing system for input/output device
JP2755103B2 (en) Storage device access method
JPH02291039A (en) Memory control system
JP2723388B2 (en) Internal bus control method for processor module and information processing device
JP2859396B2 (en) Data processing system
JPS62154159A (en) Burst multiplexer channel
JPH01142962A (en) Data transfer control system
JPH0567040A (en) Peripheral equipment control circuit
JPH03164924A (en) Magnetic disk access system
JP2000010899A (en) Input/output processing system and its peripheral device control method, and recording medium where its control program is recorded
JPS63201822A (en) Data processing system
JPH01112452A (en) System for controlling disk cash
JPH02272666A (en) Dma transfer control circuit
JPH11345199A (en) Input/output controller and data prefetching method therefor
JPH05274242A (en) Asynchronous input/output demon processing system
JPH06318156A (en) Service processor control system
JPH01302448A (en) Information processor
JPH0460858A (en) Interruption address setting controlling system
JPH0322151A (en) Data base processor
JPH04199217A (en) Input/output control method
JPH051502B2 (en)