JPH0827778B2 - Peripheral device control method - Google Patents
Peripheral device control methodInfo
- Publication number
- JPH0827778B2 JPH0827778B2 JP1018625A JP1862589A JPH0827778B2 JP H0827778 B2 JPH0827778 B2 JP H0827778B2 JP 1018625 A JP1018625 A JP 1018625A JP 1862589 A JP1862589 A JP 1862589A JP H0827778 B2 JPH0827778 B2 JP H0827778B2
- Authority
- JP
- Japan
- Prior art keywords
- magnetic tape
- command
- peripheral
- peripheral device
- read
- 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.)
- Expired - Lifetime
Links
- 230000002093 peripheral effect Effects 0.000 title claims description 54
- 238000000034 method Methods 0.000 title description 25
- 230000003111 delayed effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、周辺装置の制御方式に係り、特に高負荷時
または特定の周辺装置に対して入出力要求が偏って存在
する場合に有効な周辺装置制御方式に関するものであ
る。Description: TECHNICAL FIELD The present invention relates to a control method for peripheral devices, and is particularly effective when the load is high or when the input / output requests are biased toward specific peripheral devices. The present invention relates to a peripheral device control system.
従来、この種の周辺装置制御方式としては、上位装置
からの入出力が少くて処理が中断した場合、または一定
時間あるいは一定数の入出力要求を連続的に処理した場
合に、その周辺装置に対する処理を終了し、処理の対象
となる周辺装置を指すポインタを変更することによって
順次他の周辺装置に対する処理を実行する制御方式が用
いられていた。Conventionally, this type of peripheral device control method is to control the peripheral device when the input / output from the host device is small and the processing is interrupted, or when a constant time or a constant number of input / output requests are continuously processed. A control method has been used in which the processing is ended and the pointers pointing to the peripheral devices to be processed are changed to sequentially execute the processes to other peripheral devices.
上述した従来の周辺装置制御方式では、接続されてい
る周辺装置に対する処理を順繰りに実行するので、多数
の周辺装置が接続されている場合には、ある周辺装置が
優先的に処理すべき命令を上位装置から受け取った場合
でも、その命令を実行可能になるまでに他の周辺装置の
処理が行われるため、その間待たされることになる場合
があった。In the above-mentioned conventional peripheral device control method, since the processes for the connected peripheral devices are executed in sequence, when a large number of peripheral devices are connected, a peripheral device preferentially processes an instruction to be processed. Even when the instruction is received from the higher-level device, the process of another peripheral device is performed before the instruction can be executed, so that it may be kept waiting during that time.
例えばストリーマ型磁気テープ装置の動作を制御する
磁気テープ制御装置では、磁気テープのスタート,スト
ップの回数を減少させてスループットを向上するため大
容量のバッファを有し、上位装置からの読み出し命令ま
たは書き込み命令がある程度連続して出されていれば、
磁気テープを停止させることなく連続して読み出しまた
は書き込みを行うことができるように制御が行われる。For example, a magnetic tape control device that controls the operation of a streamer type magnetic tape device has a large-capacity buffer to reduce the number of times the magnetic tape is started and stopped and to improve the throughput. If the commands are issued to some extent in succession,
Control is performed so that reading or writing can be continuously performed without stopping the magnetic tape.
この動作はあまり長時間にわたる場合は磁気テープ制
御装置によって強制的に停止させられるようになってい
るが、一般的には数秒間にわたって連続的に行われる。
この間、磁気テープ制御装置と磁気テープ装置の間で
は、テータ転送が行われて論理的接続が保たれているの
で、他の磁気テープ装置への上位装置からの命令は実行
できず待ち状態となる。This operation is forcibly stopped by the magnetic tape control device if it takes too long, but it is generally performed continuously for several seconds.
During this time, since data transfer is performed between the magnetic tape control device and the magnetic tape device to maintain the logical connection, the command from the higher-level device to another magnetic tape device cannot be executed, and the magnetic tape device enters a waiting state. .
一方、リワインド命令やアンロード命令等に対して
は、磁気テープ装置における動作時間は数秒〜数十秒に
わたるが、動作自体は磁気テープ装置単独で行われ、磁
気テープ制御装置と磁気テープ装置間の論理的な接続
は、読み出し,書き込みの動作に比べて、極めて短い時
間しか必要としない。On the other hand, in response to a rewind instruction, an unload instruction, etc., the operation time in the magnetic tape device extends from several seconds to several tens of seconds, but the operation itself is performed by the magnetic tape device alone, and the operation between the magnetic tape control device and the magnetic tape device is performed. The logical connection requires an extremely short time as compared with the read and write operations.
いま、読み出し,書き込みの動作が連続的に行われ、
磁気テープ制御装置が特定の磁気テープ装置に対して長
時間論理的接続を保つような場合、あるいは1台の磁気
テープ制御装置に多数の磁気テープ装置が接続されてい
るような場合、すなわち高負荷の状態では、リワインド
命令やアンロード命令のような短時間の論理的接続で充
分な命令であっても、数秒〜数十秒間待たされることに
なる。Now, read and write operations are performed continuously,
When a magnetic tape controller keeps a logical connection to a specific magnetic tape device for a long time, or when many magnetic tape devices are connected to one magnetic tape controller, that is, a high load. In this state, even if a short-time logical connection such as a rewind instruction or an unload instruction is sufficient, it takes several seconds to several tens of seconds to wait.
このように磁気テープ装置単独で実行可能な命令であ
るに拘らず、その動作の開始が遅れる場合があるが、磁
気テープ装置の場合、その動作開始の遅れは磁気テープ
媒体の交換契機の遅れにつながる。また処理の開始の遅
れがあることは、上位装置に対する応答もそれだけ遅れ
ることを意味する。As described above, the start of the operation may be delayed regardless of the instruction that can be executed by the magnetic tape device alone. However, in the case of the magnetic tape device, the delay of the operation start is due to the delay of the exchange trigger of the magnetic tape medium. Connect The delay in the start of processing means that the response to the host device is also delayed accordingly.
さらに、オペレーティングシステムによっては、周辺
装置の状態の監視のために一定周期で、何らの動作も行
う必要のない命令を周辺制御装置に対して出す場合があ
るが、このような命令に対して応答が遅れた場合には、
何らの動作も必要としない命令のために、上位装置は長
時間待たされることになり、システム全体のスループッ
トの低下を招くという不都合が生じている。Further, depending on the operating system, there is a case where a command that does not need to perform any operation is issued to the peripheral control device at regular intervals to monitor the state of the peripheral device. Is delayed,
An instruction that does not require any operation causes the host device to wait for a long time, resulting in a decrease in the throughput of the entire system.
本発明は、このような従来技術の課題を解決しようと
するものであって、特定の周辺装置に読み出し命令や書
き込み命令が連続的に出されているために、あるいは高
負荷がかかっているために、他の周辺装置に対する命令
が実行待ちになっているような場合に、優先処理すべき
命令が受け付けられたときは、連続的に実行している読
み出し命令や書き込み命令等の処理を中断して、受け付
けられている優先処理すべき命令を先に実行し、これに
よって、周辺装置の極端な処理能力低下を招くことな
く、システム全体のスループットの向上を図ることがで
きる周辺装置制御方式を提供することを、その目的とし
ている。The present invention is intended to solve such a problem of the related art, and is because a read instruction or a write instruction is continuously issued to a specific peripheral device or a high load is applied. In addition, when an instruction for other peripheral devices is waiting to be executed and the instruction to be prioritized is accepted, the processing such as the continuously executed read instruction and write instruction is interrupted. A peripheral device control method that executes the received instruction to be preferentially processed first, thereby improving the throughput of the entire system without incurring an extreme decrease in the processing capacity of the peripheral device. The purpose is to do.
このような従来技術の課題を解決するため本発明の周
辺装置制御方式においては、バッファを有し,上位装置
からの読み出し/書き込み命令に応じて該バッファを介
して周辺装置との間で非同期的に読み出し/書き込みを
実行するとともに、周辺装置が単独で実行可能な予め定
められた優先的に処理すべき命令を受け付けて該命令が
処理待ち状態になっていることを示す優先コマンド受付
フラグと、処理の対象になっている周辺装置を指すポイ
ンタとを有する周辺制御装置を備えている。そして、上
位装置から周辺装置に対して優先処理すべき命令が与え
られたとき、周辺制御装置が他の周辺装置との間でデー
タ転送中であって該命令を実行できないときは、優先コ
マンド受付フラグをセットするとともに、前記ポインタ
を該処理対象周辺装置に変更し、他の周辺装置と周辺制
御装置との間のデータ転送を中断したのち、該ポインタ
によって支持された周辺装置において該優先処理すべき
命令を実行させるようにすることを特徴としている。In order to solve such a problem of the prior art, the peripheral device control method of the present invention has a buffer, and asynchronously with the peripheral device via the buffer in response to a read / write command from the host device. And a priority command acceptance flag indicating that the peripheral device accepts a predetermined executable command that can be independently executed and that the command is in a processing waiting state, And a peripheral control device having a pointer pointing to the peripheral device to be processed. When a command to be preferentially processed is given from the host device to the peripheral device and the peripheral control device is in the process of data transfer with another peripheral device and cannot execute the command, priority command acceptance A flag is set, the pointer is changed to the peripheral device to be processed, data transfer between another peripheral device and the peripheral control device is interrupted, and then the preferential processing is performed in the peripheral device supported by the pointer. It is characterized in that it executes the instruction that should be executed.
以下、本発明の一実施例を第1図ないし第2図に基づ
いて説明する。この第1図は、本発明を適用したストリ
ーマ型磁気テープ装置を制御する磁気テープ制御装置の
構成例をブロック図によって示したものである。第1図
において、符号1は磁気テープ制御装置,符号2は磁気
テープ装置を示す。この内、磁気テープ制御装置1には
大容量バッファ15が装備されている。マイクロプログラ
ム制御部16はマイクロプログラムを有し磁気テープ制御
装置1の全体の動作を制御する。入出力制御部17は図示
されない上位装置と磁気テープ制御装置1との間で入出
力の制御を行う。読み出し(READ)/書き込み(WRIT
E)回路18はバッファ15と磁気テープ装置2との間で、
インタフェース(I/F)回路19を介して読み出し,書き
込みの処理を行う。An embodiment of the present invention will be described below with reference to FIGS. 1 and 2. FIG. 1 is a block diagram showing a structural example of a magnetic tape control device for controlling a streamer type magnetic tape device to which the present invention is applied. In FIG. 1, reference numeral 1 is a magnetic tape control device, and reference numeral 2 is a magnetic tape device. Of these, the magnetic tape control device 1 is equipped with a large capacity buffer 15. The micro program control unit 16 has a micro program and controls the entire operation of the magnetic tape control device 1. The input / output control unit 17 controls input / output between a host device (not shown) and the magnetic tape control device 1. Read (READ) / Write (WRIT
E) The circuit 18 is provided between the buffer 15 and the magnetic tape device 2,
Read and write processing is performed via the interface (I / F) circuit 19.
さらにマイクロプログラム制御部16は、優先処理すべ
き命令を受け付けたことを示す優先コマンド受付フラグ
11,処理対象となる磁気テープ装置2を指示する処理ポ
インタ12,バッファ15を管理するための情報を保持する
バッファ管理テーブル13,磁気テープ装置2を含む各周
辺装置に対する制御を管理するための情報を保持するデ
バイス制御テーブル14を有している。Further, the microprogram control unit 16 sets the priority command acceptance flag indicating that the instruction to be preferentially processed has been accepted.
11, a processing pointer 12 for pointing the magnetic tape device 2 to be processed, a buffer management table 13 for holding information for managing the buffer 15, information for managing control of each peripheral device including the magnetic tape device 2. It has a device control table 14 for holding.
磁気テープ制御装置1は、磁気テープ装置2における
スタート,ストップの回数を減少させるためにバッファ
15を有している。書き込み動作時はバッファ15が上位装
置から送られたデータによってある程度満たされるま
で、磁気テープ装置2への書き込みを開始しない。また
読み出し動作時は上位装置から一旦読み出し命令を受け
取ると、次の読み出し命令が送られてこなくてもバッフ
ァ15がいっぱいになるまで磁気テープ装置2を停止させ
ることなく後続のブロックを読み出してバッファ15に格
納し、以後上位装置から読み出し命令が与えられたとき
は、バッファ15内に先読みしたデータが格納されている
限り磁気テープ装置2を動作させることなく、バッファ
15内のデータを上位装置に対して送出する。The magnetic tape control device 1 uses a buffer to reduce the number of starts and stops in the magnetic tape device 2.
Has 15 During the writing operation, writing to the magnetic tape device 2 is not started until the buffer 15 is filled to some extent with the data sent from the host device. Further, during a read operation, once a read command is received from the host device, subsequent blocks are read and the buffer 15 is read without stopping the magnetic tape device 2 until the buffer 15 is full even if the next read command is not sent. When a read command is given from the host device, the magnetic tape device 2 is not operated as long as the prefetched data is stored in the buffer 15
The data in 15 is sent to the host device.
バッファ15の上位装置側と磁気テープ装置側は、同時
に異なるデータの転送が可能であり、またこの場合にお
ける両者のデータ転送速度は等しい。従って上位装置か
らの読み出し命令または書き込み命令が1台の磁気テー
プ装置2に対して十分短い時間間隔で出されたときは、
磁気テープ装置2は停止することなく読み出しまたは書
き込みの動作を行うことができる。The host device side of the buffer 15 and the magnetic tape device side can transfer different data at the same time, and in this case, the data transfer rates of both are the same. Therefore, when a read command or a write command from the host device is issued to one magnetic tape device 2 at a sufficiently short time interval,
The magnetic tape device 2 can perform a read or write operation without stopping.
また第2図(1)(2)(3)は、第1図の実施例に
おける磁気テープ制御装置1の動作をフローチャートに
よって説明したものである。なおここでは、説明を簡単
にするため、磁気テープ制御装置1は読み出し(REA
D),書き込み(WRITE)と、リワインド,アンロード等
の優先処理すべき命令のみを扱うものとする。2 (1), (2) and (3) are flow charts for explaining the operation of the magnetic tape controller 1 in the embodiment of FIG. In addition, here, in order to simplify the explanation, the magnetic tape control device 1 reads (REA
D), write (WRITE), and only the instructions to be preferentially processed, such as rewind and unload.
以下第2図(1)(2)(3)に示されたフローチャ
ートに従って、本発明の周辺装置制御方式を用いた磁気
テープ制御装置の動作を説明する。The operation of the magnetic tape controller using the peripheral device control method of the present invention will be described below with reference to the flowcharts shown in FIGS. 2 (1) (2) (3).
磁気テープ制御装置1は上位装置からの入出力(I/
O)要求の有無を監視し(参照番号300)、上位装置から
の入出力要求があればその命令を受け取って、その命令
が読み出し(READ)命令または書き込み(WRITE)命令
であるか否かを判断する(参照番号302)。読み出し命
令または書き込み命令であったときは、バッファ管理テ
ーブル13の内容をチェックする(参照番号303)。すな
わち読み出し命令であれば、次に上位装置に対して送る
べきデータが予め先読みによってバッファ15内に格納さ
れているか否かを調べる。また、書き込み命令であれ
ば、次に上位装置から送られてくるデータブロックをバ
ッファ15に格納する余裕があるか否かを調べる。The magnetic tape controller 1 inputs / outputs (I /
O) Monitor the presence or absence of a request (reference number 300), receive the command if there is an input / output request from the host device, and check whether the command is a read (READ) command or a write (WRITE) command. Judge (reference number 302). If it is a read command or a write command, the contents of the buffer management table 13 are checked (reference numeral 303). That is, if it is a read command, it is checked whether or not the data to be sent to the next higher-level device is stored in advance in the buffer 15 by prefetching. If it is a write command, it is checked whether or not there is room to store the data block sent from the next higher-level device in the buffer 15.
そしてこれらのチェック結果から上位装置との間でデ
ータ転送可能であるか否かを判断し(参照番号304)、
データ転送可能であれば上位装置と磁気テープ装置間で
データ転送を実行し(参照番号305)、その後上位装置
から受け取った命令の終了処置を行う(参照番号30
6)。Then, it is determined from these check results whether or not data transfer is possible with the host device (reference number 304),
If data transfer is possible, data transfer is executed between the host device and the magnetic tape device (reference numeral 305), and then the command received from the host device is terminated (reference numeral 30).
6).
一方、参照番号304の判断で上位装置との間のデータ
転送が不可能であった場合、すなわち読み出し命令であ
れば上位装置へ送るデータがバッファ15内に用意されて
いないとき、または書き込み命令であればバッファ15内
に既にデータがいっぱいであって、磁気テープ装置2へ
データを書き込まなければ次のデータを受け取ることが
できないときは、磁気テープ装置2との間でデータ転送
が可能であるか否かを判断する(参照番号308)。すな
わち具体的には磁気テープ制御装置1が他の磁気テープ
装置2との間でデータ転送を行っていないかどうかを判
断する。On the other hand, if it is impossible to transfer data to the higher-level device as determined by the reference numeral 304, that is, if the data to be sent to the higher-level device is not prepared in the buffer 15 if it is a read command, or if it is a write command. If so, if the buffer 15 is already full of data and the next data cannot be received unless the data is written to the magnetic tape device 2, is it possible to transfer the data to the magnetic tape device 2? It is determined whether or not (reference numeral 308). That is, specifically, it is determined whether the magnetic tape control device 1 is not performing data transfer with another magnetic tape device 2.
他の磁気テープ装置2との間でデータ転送が行われて
いなければ、磁気テープ制御装置1は、上位装置から命
令を受け取った処理の対象となる磁気テープ装置2との
間でデータの読み出しまたは書き込みの処理を開始し
(参照番号309)、以後、バッファ内容をチェックを行
い(参照番号303)、上位装置との間でデータ転送可能
になったとき(参照番号304)、上位装置と磁気テープ
制御装置1との間でデータ転送を行い(参照番号30
5)、上位装置からの命令の終了を行う(参照番号30
6)。If data transfer is not being performed with another magnetic tape device 2, the magnetic tape control device 1 reads or writes data with the magnetic tape device 2 that is the target of the process that has received an instruction from the host device. When the writing process is started (reference number 309), the buffer contents are checked thereafter (reference number 303), and when data transfer is possible with the host device (reference number 304), the host device and the magnetic tape Data is transferred to and from the control unit 1 (reference number 30
5) Terminate the instruction from the host device (reference number 30)
6).
また参照番号308の判断で磁気テープ装置2との間で
データ転送不可能な場合は、デバイス制御テーブル14内
の対応するデバイスに関する処理待ちフラグ141をセッ
トして(参照番号310)、処理待ち状態とする。If the data cannot be transferred to and from the magnetic tape device 2 according to the reference numeral 308, the processing wait flag 141 for the corresponding device in the device control table 14 is set (reference numeral 310) and the processing wait state is set. And
上位装置から読み出し命令,書き込み命令が複数の磁
気テープ装置2に出された場合は、磁気テープ制御装置
1は同時には1台の磁気テープ装置2との間でしかデー
タを実行できないため、他の入出力命令は参照番号310
の処理を経てすべて処理待ち状態となる。When a read command and a write command are issued to a plurality of magnetic tape devices 2 from the host device, the magnetic tape control device 1 can execute data with only one magnetic tape device 2 at the same time. I / O instructions are referenced 310
After all the processing, the processing waits.
これらの処理待ち状態になっている上位装置からの入
出力命令は、デバイス制御テーブル14における、処理ポ
インタ12の指している磁気テープ装置2に対応する処理
待ちフラグ141がセットされていることによって、順次
再開される(参照番号301)。These input / output commands from the host device in the process wait state are set by the process wait flag 141 corresponding to the magnetic tape device 2 pointed to by the process pointer 12 in the device control table 14, It is restarted sequentially (reference number 301).
上位装置から受け取った命令が読み出し命令または書
き込み命令でないとき(参照番号302)、すなわち優先
処理すべき命令であった場合は、磁気テープ制御装置1
と磁気テープ装置2との間でデータ転送が行われている
か否かを調べる(参照番号311)。データ転送が行わて
いず直ちに命令が可能なときは、上位装置からの命令の
処理を実行し、終了処理を行い(参照番号312)、優先
コマンド受付フラグ11をリセットする(参照番号31
3)。When the command received from the host device is not a read command or a write command (reference numeral 302), that is, when it is a command to be preferentially processed, the magnetic tape control device 1
It is checked whether or not data is being transferred between the magnetic tape device 2 and the magnetic tape device 2 (reference numeral 311). If data transfer is not performed and an instruction can be issued immediately, processing of the instruction from the higher-level device is executed, end processing is performed (reference number 312), and the priority command reception flag 11 is reset (reference number 31).
3).
参照番号311の判断において、磁気テープ制御装置1
と磁気テープ装置2との間でデータ転送中のため直ちに
命令を実行できない場合は、優先コマンド受付フラグ11
をセットし(参照番号314)、デバイス制御テーブル14
における対応する磁気テープ装置2に関する処理待ちフ
ラグ141をセットし(参照番号315)、処理ポインタを優
先処理すべき命令の処理対象となる磁気テープ装置に変
更し(参照番号316)、命令の実行が可能になるまで待
ち状態となる。In the judgment of reference numeral 311, the magnetic tape controller 1
If the command cannot be executed immediately because data is being transferred between the device and the magnetic tape device 2, the priority command acceptance flag 11
(Reference number 314) and set the device control table 14
The process wait flag 141 relating to the corresponding magnetic tape device 2 in (1) is set (reference number 315), the processing pointer is changed to the magnetic tape device to be processed by the instruction to be preferentially processed (reference number 316), and the instruction is not executed. It will be in a waiting state until it becomes possible.
参照番号310で開始されたデータ転送は他の処理の間
に監視されており、磁気テープ制御装置1と磁気テープ
装置2の間で読み出しまたは書き込みの処理中であれば
(参照番号317)、磁気テープ装置2との間のデータ転
送が終了しているか否かを調べ(参照番号318)、デー
タ転送が終了していればバッファ管理テーブル13の内容
を調べて(参照番号319)、次のブロックのデータ転送
が可能であるか否かを判断する(参照番号320)。すな
わち読み出し処理中であれば次のブロックを磁気テープ
装置2から読み出して格納する余裕がバッファ15にある
か否かを調べ、書き込み処理中であれば次に磁気テープ
装置2へ送るべきデータがバッファ15にあるか否かを調
べる。The data transfer initiated at reference numeral 310 is being monitored during other processing, and if a read or write operation is in process between the magnetic tape controller 1 and the magnetic tape device 2 (reference numeral 317), the magnetic It is checked whether or not the data transfer with the tape device 2 is completed (reference number 318), and if the data transfer is completed, the contents of the buffer management table 13 are checked (reference number 319) to determine the next block. It is determined whether or not the data transfer is possible (reference numeral 320). That is, if the buffer 15 has room to read and store the next block from the magnetic tape device 2 if the read process is in progress, and if the write process is in progress, the next data to be sent to the magnetic tape device 2 is the buffer. Check if it is in 15.
次のブロックのデータ転送が可能であった場合は、優
先コマンド受付フラグがセット(=1)されているか否
かを調べて(参照番号321)、セットされていないとき
は磁気テープのストップ,スタートによるスループット
の低下を防止するため、直ちに次のブロックのデータ転
送を開始する(参照番号322)。When the data transfer of the next block is possible, it is checked whether or not the priority command reception flag is set (= 1) (reference number 321), and when it is not set, the magnetic tape is stopped or started. In order to prevent a decrease in throughput due to, the data transfer of the next block is immediately started (reference numeral 322).
一方、参照番号320の判断において、次のブロックの
データの転送不可の場合、すなわちバッファ15に次の読
み出しデータを格納する余裕がないか、または次に磁気
テープ装置2へ書き込むデータブロックがないときであ
って、かつ優先コマンド受付フラグ11がセットされてい
る場合(参照番号320,323)、または次のブロックのデ
ータの転送は可能であるが、優先コマンド受付フラグ11
がセットされている場合(参照番号320,321)は、磁気
テープ制御装置1と磁気テープ装置2間のデータ転送は
中止され、他の磁気テープ装置2への処理の実行が可能
な状態になる。On the other hand, in the determination of the reference number 320, when the data of the next block cannot be transferred, that is, when there is no room to store the next read data in the buffer 15 or there is no data block to be written to the magnetic tape device 2 next time. If the priority command reception flag 11 is set (reference numerals 320 and 323) or the data of the next block can be transferred, the priority command reception flag 11
If is set (reference numbers 320 and 321), the data transfer between the magnetic tape control device 1 and the magnetic tape device 2 is stopped, and the process can be executed to another magnetic tape device 2.
このとき処理ポインタ12は、優先処理すべき命令を受
け付けたとき参照番号316の処理によってセットされた
優先処理すべき命令の処理対象である磁気テープ2を指
しているので、参照番号301の判断で待ち状態になって
いる命令のうち最初に処理を再開するのは、優先処理さ
れるべき命令になる。At this time, since the processing pointer 12 points to the magnetic tape 2 which is the processing target of the instruction to be preferentially processed, which is set by the processing of reference numeral 316 when the instruction to be preferentially processed is received, it is determined at the reference numeral 301. The instruction to be restarted first among the instructions in the waiting state is the instruction to be preferentially processed.
優先処理すべき命令が実行され終了処理が行われると
(参照番号312)、優先コマンド受付フラグ1はリセッ
トされる(参照番号313)。When the command to be preferentially processed is executed and the ending process is performed (reference numeral 312), the priority command reception flag 1 is reset (reference numeral 313).
優先処理すべき命令が受け付けられ、待ち状態となっ
ている時以外は優先コマンド受付フラグ11はリセットさ
れているため、上位装置から短い時間間隔で出された入
出力命令は、磁気テープ装置2のスタート,ストップが
発生することなく実行可能である。Since the priority command acceptance flag 11 is reset except when the command to be preferentially processed is accepted and is in the waiting state, the input / output command issued from the host device at a short time interval is stored in the magnetic tape device 2. It can be executed without starting and stopping.
また上位装置からの入出力命令の間隔が開いたために
磁気テープ装置2の動作が停止した場合、またはフロー
チャート中には示していないが、1台の磁気テープ装置
2に対する処理が長時間にわたり、これを磁気テープ制
御装置1が強制的に停止させたような場合には、磁気テ
ープ装置2と磁気テープ制御装置1との間のデータ転送
は行われなくなるため、他の磁気テープ装置2への処理
の実行が可能になる。Further, when the operation of the magnetic tape device 2 is stopped due to the opening of the input / output command from the host device, or although not shown in the flowchart, the processing for one magnetic tape device 2 takes a long time, and If the magnetic tape control device 1 forcibly stops the data, the data transfer between the magnetic tape device 2 and the magnetic tape control device 1 will not be performed, and therefore the processing to another magnetic tape device 2 will be performed. Can be executed.
参照番号307および309の処理において、処理ポインタ
12は+1して更新されるので、磁気テープ装置2の動作
が停止すると、処理待ち状態になっている命令は、処理
ポインタ12の指す磁気テープ装置から順次処理されてゆ
く。In the processing of reference numbers 307 and 309, the processing pointer
Since 12 is incremented by 1 and updated, when the operation of the magnetic tape device 2 is stopped, the instructions in the processing waiting state are sequentially processed from the magnetic tape device indicated by the processing pointer 12.
以上説明したように、本発明によれば、周辺制御装置
において、予め優先的に処理したい命令を定めておくと
ともに、このような命令を受け取ったことを示す優先コ
マンド受付フラグを持たせ、優先的に処理すべき命令を
受け取ったときは、優先コマンド受付フラグをセットす
るとともに処理の対象となる周辺装置を指しているポイ
ンタを更新することによって、周辺装置が単独で実行可
能な命令や、上位装置側の要求によってできるだけ早く
応答を返す必要がある命令等を、周辺制御装置の負荷状
況を拘らず、上位装置に対して長時間待たせることなく
応答することができ、高負荷時においても周辺装置の極
端な処理能力の低下を招くことなくシステム全体のスル
ープットの向上を図ることが可能になるという従来にな
い優れた周辺装置制御方式を提供することができる。As described above, according to the present invention, in the peripheral control device, a command to be preferentially processed is defined in advance, and a priority command reception flag indicating that such a command is received is provided to give priority to the command. When a command to be processed is received, the priority command reception flag is set and the pointer pointing to the peripheral device to be processed is updated, so that the peripheral device can execute the command independently or the higher-level device. It is possible to respond to commands, etc. that need to be returned as soon as possible by the request of the user side, regardless of the load status of the peripheral control device, without having to wait for the host device for a long time. It has an unprecedented excellent peripheral device control that can improve the throughput of the entire system without incurring an extreme decrease in processing capacity. It is possible to provide a method.
第1図は本発明の周辺装置制御方式の一実施例を示すブ
ロック図、第2図(1)(2)(3)は各々第1図の動
作を説明するフローチャートである。 1…周辺制御装置としての磁気テープ制御装置、2…周
辺装置としての磁気テープ装置、11…優先コマンド受付
フラグ、12…処理ポインタ、13…バッファ管理テーブ
ル、14…デバイス制御テーブル、15…バッファ、16…マ
イクロプログラム制御部、17…入出力制御部、18…読み
出し(READ)/書き込み(WRITE)回路、19…インタフ
ェース(I/F)回路、141…処理待ちフラグ。FIG. 1 is a block diagram showing an embodiment of the peripheral device control system of the present invention, and FIGS. 2 (1), (2) and (3) are flowcharts for explaining the operation of FIG. 1, respectively. DESCRIPTION OF SYMBOLS 1 ... Magnetic tape control device as a peripheral control device, 2 ... Magnetic tape device as a peripheral device, 11 ... Priority command acceptance flag, 12 ... Processing pointer, 13 ... Buffer management table, 14 ... Device control table, 15 ... Buffer, 16 ... Micro program control section, 17 ... Input / output control section, 18 ... Read (READ) / write (WRITE) circuit, 19 ... Interface (I / F) circuit, 141 ... Processing wait flag.
Claims (1)
/書き込み命令に応じて該バッファを介して周辺装置と
の間で非同期的に読み出し/書き込みを実行するととも
に、前記周辺装置が単独で実行可能な予め定められた優
先的に処理すべき命令を受け付けて該命令が処理待ち状
態になっていることを示す優先コマンド受付フラグと,
処理の対象になっている周辺装置を指すポインタとを備
えた周辺制御装置を有し、 上位装置から周辺装置に対して優先処理すべき命令が与
えられたとき周辺制御装置が他の周辺装置との間でデー
タ転送中であって該命令を実行できないときは、前記優
先コマンド受付フラグをセットするとともに前記ポイン
タを該処理対象の周辺装置に変更し、前記他の周辺装置
と周辺制御装置との間のデータ転送を中断したのち、該
ポインタによって指示された周辺装置により該優先処理
すべき命令を実行させることを特徴とする周辺装置制御
方式。1. A buffer is provided, which asynchronously performs read / write with a peripheral device via the buffer in response to a read / write command from a host device, and the peripheral device independently executes the read / write. A priority command reception flag indicating that a predetermined predetermined priority processing command is received and the command is in a processing waiting state;
It has a peripheral control device equipped with a pointer to the peripheral device that is the target of processing, and when a command for priority processing is given to the peripheral device from a higher-level device, the peripheral control device is When the instruction cannot be executed during the data transfer between the two peripheral devices, the priority command reception flag is set, the pointer is changed to the peripheral device to be processed, and the other peripheral device and the peripheral control device are connected. A peripheral device control system characterized in that after interrupting data transfer between the peripheral devices, the peripheral device designated by the pointer executes the instruction to be preferentially processed.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1018625A JPH0827778B2 (en) | 1989-01-27 | 1989-01-27 | Peripheral device control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1018625A JPH0827778B2 (en) | 1989-01-27 | 1989-01-27 | Peripheral device control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02255927A JPH02255927A (en) | 1990-10-16 |
| JPH0827778B2 true JPH0827778B2 (en) | 1996-03-21 |
Family
ID=11976805
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1018625A Expired - Lifetime JPH0827778B2 (en) | 1989-01-27 | 1989-01-27 | Peripheral device control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0827778B2 (en) |
-
1989
- 1989-01-27 JP JP1018625A patent/JPH0827778B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02255927A (en) | 1990-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR100389104B1 (en) | Direct access storage device and method for performing write commands | |
| JPH0827778B2 (en) | Peripheral device control method | |
| JP3283928B2 (en) | Disk controller | |
| JP2541780B2 (en) | Mirror ring magnetic disk unit | |
| JPH0793101A (en) | Data backup device | |
| JP2755103B2 (en) | Storage device access method | |
| JP2803270B2 (en) | SCSI host adapter circuit | |
| JPH0447350A (en) | Main storage read/response control | |
| JPS6229831B2 (en) | ||
| US20060031604A1 (en) | DMA transfer apparatus and method of controlling data transfer | |
| JP2001084216A (en) | Data prefetch system, prefetch method and recording medium | |
| JPH05346867A (en) | Processor for restarting data transfer | |
| JP2524620B2 (en) | Input / output control method | |
| JPH0353655B2 (en) | ||
| JPH07248979A (en) | Data processing device test control method and circuit | |
| JPH06131287A (en) | Dma data transfer control system | |
| JPH04149720A (en) | Magnetic tape controller | |
| JPH05334012A (en) | Large capacity disk controller | |
| JPH0293849A (en) | Recording data transfer controller | |
| JPH08137752A (en) | Information processing device | |
| JPH04359352A (en) | Disk device | |
| JPH0132540B2 (en) | ||
| JPH02141843A (en) | Program management system | |
| JPH04342011A (en) | Asynchronous input/output controlling system | |
| JPH054694B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080321 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090321 Year of fee payment: 13 |
|
| EXPY | Cancellation because of completion of term |