JPH06105445B2 - Input/Output Control System - Google Patents
Input/Output Control SystemInfo
- Publication number
- JPH06105445B2 JPH06105445B2 JP3986885A JP3986885A JPH06105445B2 JP H06105445 B2 JPH06105445 B2 JP H06105445B2 JP 3986885 A JP3986885 A JP 3986885A JP 3986885 A JP3986885 A JP 3986885A JP H06105445 B2 JPH06105445 B2 JP H06105445B2
- Authority
- JP
- Japan
- Prior art keywords
- input
- data transfer
- time
- output
- output 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.)
- Expired - Lifetime
Links
Description
【発明の詳細な説明】 〔発明の利用分野〕 本発明は、入出力制御システムに関し、特にデータ転送
処理に先立つて行われる入出力装置の立上げ制御を、制
御装置とオフラインで行う方式に関するものである。Description: FIELD OF THE APPLICATION OF THE ART The present invention relates to an input/output control system, and more particularly to a method for performing input/output device start-up control, which is performed prior to data transfer processing, offline from a control device.
従来の磁気テープ装置は、真空カラムを備えているの
で、それによつて磁気テープの立上げ処理を高速に行う
ことができる。これに対して、カートリツジ型磁気テー
プ装置は、軽量化、小型化のために磁気テープ装置の高
速立上げ処理には不可欠な真空カラムを除去している。
このため、立上げ処理をオフラインで行い、立上げ後、
データ転送が可能になつた段階で、磁気テープ装置を制
御装置と再結合する。このように、従来のカートリツジ
型磁気テープ装置では、デイスク装置と全く同じような
制御方法が提案されていた。すなわち、立上げ処理をオ
フラインで行う従来の入出力装置の制御方式では、転送
パスが空いているとき、データ転送を行う必要がある入
出力装置には、すべて立上げ要求を発行し、立上げ処理
が完了した時に、制御装置と再結合する方法が、一般的
であつた。なお、立上げ処理が完了した時に、他の入出
力装置でデータ転送を行つているパスが占有されている
場合には、再立上げ処理に入ることになる。デイスク装
置の場合は1回転分の処理に入るわけである。従つて、
データ転送パスの利用効率は必ずしもよくはなかつた
(特開昭60−142456号公報参照)。 Conventional magnetic tape devices are equipped with a vacuum column, which allows for high-speed start-up of the magnetic tape. In contrast, cartridge-type magnetic tape devices do not include the vacuum column, which is essential for high-speed start-up of the magnetic tape device, in order to reduce weight and size.
Therefore, the startup process is performed offline, and after startup,
When data transfer becomes possible, the magnetic tape device is reconnected to the control device. In this way, for conventional cartridge-type magnetic tape devices, a control method exactly similar to that for disk devices has been proposed. That is, in conventional I/O device control methods that perform startup processing offline, when the transfer path is free, a startup request is issued to all I/O devices that need to perform data transfer, and when startup processing is completed, the device is reconnected to the control device. Note that when startup processing is completed, if a path that is transferring data with another I/O device is occupied, restart startup processing will be started. In the case of disk devices, processing for one rotation will be started. Therefore,
The data transfer path was not always utilized efficiently (see Japanese Patent Laid-Open Publication No. 60-142456).
本発明の目的は、このような従来の問題を改善し、デー
タ転送処理に先立つて行われる立上げ処理をオフライン
で行う場合、入出力装置と制御装置との間のデータ転送
パスを効率よく使用することができる入出力制御システ
ムを提供することにある。 The object of the present invention is to provide an input/output control system which improves on the above-mentioned conventional problems and can efficiently use the data transfer path between the input/output device and the control device when the start-up process prior to the data transfer process is performed offline.
〔発明の概要〕 上記目的を達成するため、本発明の入出力制御システム
は、それぞれオフラインで立上げ処理を開始し、予め知
られたデータ転送速度でデータの転送を要求する複数台
の入出力装置と、中央処理装置と、中央処理装置に接続
され、中央処理装置により選択されるチャネル装置と、
チャネル装置に接続され、チャネル装置と入出力装置間
のデータ転送を制御し、チャネル装置からの要求に応答
して、入出力装置の任意の1つに立上げ処理開始の要求
を発行し、また、予め知られた立上げ開始時刻、予め知
られたデータ転送速度およびデータ転送量に基づいて、
入出力装置の転送終了時刻を算出する演算手段を含む入
出力制御装置と、同時には1台の入出力装置のデータの
みを転送するために、入出力装置と入出力制御装置間に
結合されたデータ転送パスとを有し、かつ入出力制御装
置内には、現在データ転送中の入出力装置のデータ転送
完了時刻に、入出力装置とは別の入出力装置の立上げ処
理が完了するように、チャネル装置からの要求に応答す
る手段とを具備したことに特徴がある。In order to achieve the above object, an input/output control system of the present invention comprises a plurality of input/output devices each of which starts startup processing offline and requests data transfer at a known data transfer rate, a central processing unit, a channel device connected to the central processing unit and selected by the central processing unit,
a control unit connected to the channel device, controlling data transfer between the channel device and the input/output devices, issuing a request to start a start-up process to any one of the input/output devices in response to a request from the channel device, and based on a known start-up time, a known data transfer rate, and a known data transfer amount,
The system is characterized by having an input/output control device including a calculation means for calculating the transfer end time of the input/output device, and a data transfer path connected between the input/output device and the input/output control device in order to transfer data of only one input/output device at a time, and further comprising means in the input/output control device for responding to a request from a channel device so that the start-up process of an input/output device other than the input/output device is completed at the data transfer completion time of the input/output device currently transferring data.
以下、本発明の原理および実施例を、図面により詳細に
説明する。 The principles and embodiments of the present invention will be described in detail below with reference to the drawings.
デイスク装置の場合には、常に円板が回転しているた
め、データ転送を開始する時間を制御することが困難で
ある。これに対して、磁気テープ装置のような入出力装
置では、入出力装置が停止状態から一定速度状態になる
までが立上げ処理となり、この時間はほぼ一定時間であ
るため、データ転送を開始する時間を制御することが可
能である。In the case of a disk device, since the disk is constantly rotating, it is difficult to control the time when data transfer starts. In contrast, in an I/O device such as a magnetic tape device, the start-up process is performed from the I/O device's stopped state until it reaches a constant speed, and this time is almost constant, so it is possible to control the time when data transfer starts.
また、入出力装置のデータ転送時間は、一定分布であ
り、転送データ量も一般には予め知ることができるの
で、データ転送完了時刻を予測することは可能である。
従つて、現在データ転送中の入出力装置の転送処理が、
丁度完了する時刻に、入出力処理を必要とする他の入出
力装置がデータ転送を開始できるように、その入出力装
置に対して立上げ開始時間を制御することが可能にな
る。これにより、データ転送路を効率よく利用すること
ができる。Furthermore, the data transfer time of an input/output device has a certain distribution, and the amount of data to be transferred can generally be known in advance, so it is possible to predict the time at which the data transfer will be completed.
Therefore, the transfer process of the input/output device currently transferring data is
It is possible to control the start-up time for an I/O device so that another I/O device requiring I/O processing can start data transfer just at the time of completion, thereby making it possible to efficiently utilize the data transfer path.
この動作をさらに詳しく述べる。この場合、入出力装
置、つまり真空カラムを除去したカートリツジ型磁気テ
ープ装置は、次のような特性を持つものとする。To explain this operation in more detail, it is assumed that the input/output device, that is, the cartridge type magnetic tape device with the vacuum column removed, has the following characteristics:
(a)データ転送開始時間を制御することができる。
(b)データ転送開始時間から逆算して、立上げ処理開
始時間を算出することができる(立上げ処理に要する時
間が、立上げ処理開始時刻に予め知ることができるた
め)。(a) The time when data transfer starts can be controlled.
(b) The start-up processing start time can be calculated by counting backwards from the data transfer start time (because the time required for the start-up processing can be known in advance at the start time of the start-up processing).
上記特性を持つことができる理由は、前述のように、カ
ートリツジ型磁気テープ装置の立上げ時間がほぼ一定で
あるためである。この場合、各立上げ処理において、そ
れぞれの立上げ時間が異なつていても差し支えないが、
立上げ処理に入る前に、この時間がわかつていなければ
ならない。ただし、以下では説明を簡単にするため、立
上げ時間はすべての装置に対して一定であると仮定す
る。一般に、入出力装置のデータ転送時間は一定分布で
あり、データ転送開始時には、データ転送量は判明して
いるため、データ転送を行う入出力装置のデータ転送完
了時刻は予め算出できる。従つて、上記(a),(b)
の特性を持つ入出力装置に対しては、ある入出力装置の
データ転送完了時刻に別の入出力装置のデータ転送が開
始できるように、立上げ処理を開始することができる。The reason why the above characteristics can be obtained is that the start-up time of the cartridge type magnetic tape device is almost constant, as mentioned above. In this case, it is acceptable for the start-up times to differ for each start-up process.
This time must be known before starting the startup process. However, in the following explanation, for simplicity, it is assumed that the startup time is constant for all devices. In general, the data transfer time of an I/O device has a constant distribution, and the amount of data transfer is known at the start of the data transfer, so the data transfer completion time of the I/O device performing the data transfer can be calculated in advance. Therefore, the above (a) and (b)
For input/output devices having the above characteristics, start-up processing can be started so that data transfer for one input/output device can start at the time when data transfer for another input/output device is completed.
ここでは、真空カラムを除去したカートリツジ型磁気テ
ープ装置を、単にMTと略記することにする。いま、デー
タ転送が終了して、データ転送パスが空く時刻をTと
し、MTの立上げ時間をtとすると、あるMTのデータ転送
を時刻Tに開始するためには、時刻(T−t)に立上げ
処理を開始させる必要がある。しかし、時刻(T−t)
には、データ転送を行つている別のMTによつて、データ
転送路が占有されている可能性があるため、無条件で立
上げ要求を指示することはできない。このため、MTにタ
イマを持たせ、予めデータ転送路が空いているときに、
何時間後に立上げ処理を開始せよという要求を発行する
ことにより、時刻(T−t)にMTの立上げ処理を開始さ
せるのである。Here, the cartridge type magnetic tape device without the vacuum column is simply abbreviated as MT. If the time when data transfer ends and the data transfer path becomes free is T, and the start-up time of MT is t, then in order to start data transfer of a certain MT at time T, the start-up process must be started at time (T-t). However, at time (T-t),
In the case of a MT, the data transfer path may be occupied by another MT that is transferring data, so the MT cannot unconditionally issue a startup request. For this reason, the MT is equipped with a timer, which is set up to start the MT when the data transfer path is free.
By issuing a request for starting the start-up process after a certain number of hours, the start-up process of MT is started at time (T-t).
第2図は、本発明が適用される入出力制御系のブロツク
図である。FIG. 2 is a block diagram of an input/output control system to which the present invention is applied.
10はCPU、11は主記憶装置、12はチヤネル、13は制御装
置、14はデータ転送パス、15はMT、16はタイマである。Reference numeral 10 denotes a CPU, 11 denotes a main memory device, 12 denotes a channel, 13 denotes a control device, 14 denotes a data transfer path, 15 denotes an MT, and 16 denotes a timer.
MTすなわち真空カラムを除去した磁気テープ装置の場合
には、立上げ処理時間が長くなるため、1回の入出力処
理で複数ブロツクのデータの先読み・まとめ書きを行
う。このため、制御装置13にはバツフアを内蔵し、この
バツフア内に先読みしたデータを蓄積するとともに、チ
ヤネル12から受取つたデータもこのバツフアに一旦蓄積
し、その後まとめてMT15の群に書込むのが一般的であ
る。しかし、本発明の対象となる立上げ制御方式は、バ
ツフアの有無に直接関係しないため、ここではバツフア
を設けずに、先読み・まとめ書きを行わない場合につい
て述べる。なお、本発明による入出力制御方式は、バツ
フアを設けて、先読み・まとめ書きを行う場合にも同じ
ように適用可能である。In the case of a magnetic tape device without a MT (vacuum column), the startup time is long, so multiple blocks of data are read ahead and written in one I/O process. For this reason, a buffer is built into the control device 13, and the read ahead data is stored in this buffer, and the data received from the channel 12 is also stored in this buffer, and then written in a batch to the MT 15 group. However, since the startup control method that is the subject of this invention is not directly related to the presence or absence of a buffer, the case where no buffer is provided and no read ahead and no batch writing are performed will be described here. The I/O control method of this invention can also be applied to the case where a buffer is provided and read ahead and batch writing are performed.
第3図は、第2図の制御装置の詳細構成図であり、第4
図は第3図の待ち行列キユーの内部構成図であり、第5
図は第3図のMT管理情報部の内部構成図である。FIG. 3 is a detailed block diagram of the control device shown in FIG.
The figure shows the internal structure of the queue shown in FIG.
This figure shows the internal structure of the MT management information section in FIG.
第3図に示すように、制御装置13は、データ転送処理と
制御処理を行うプロセツサ20、現在の時刻を表すブロツ
ク21、待ち行列キユー22、MT管理情報部23より構成され
る。待ち行列キユー22には、第4図に示すように、立上
げ要求を発行したMTの認識子(MTiD)30が配列されてい
る。左側のMTiDから順番にプロセツサ20に入力されて、
処理される。第5図に示すように、MT管理情報部23は、
データ転送バス空き時間40、MTデータ転送速度41、MT立
上げ時間42、MTブロツク長43の各情報を保持している。
これらの情報はMT群の中の各MT16についての情報であ
る。データ転送パス空き時間40は、データ転送パス14が
空く時刻を示す。MTデータ転送速度41、MT立上げ時間42
は、それぞれMT群中の各MTの転送速度と、立上げ時間を
表している。ここでは、これらの情報は、各MTに共通で
あるために、それぞれ1個づつ記載されている。MTブロ
ツク長43は、MT群中の各MTごとのブロツク長を示してい
る。As shown in Fig. 3, the control device 13 is composed of a processor 20 which performs data transfer processing and control processing, a block 21 which indicates the current time, a queue 22, and an MT management information section 23. As shown in Fig. 4, the queue 22 has an array of identifiers (MTiDs) 30 of the MTs which have issued startup requests. The MTiDs are input to the processor 20 in order starting from the left side,
As shown in FIG. 5, the MT management information section 23
Each piece of information, such as data transfer bus idle time 40, MT data transfer rate 41, MT start-up time 42, and MT block length 43, is held.
These pieces of information are about each MT 16 in the MT group. The data transfer path free time 40 indicates the time when the data transfer path 14 is free. The MT data transfer rate 41, the MT start-up time 42
Each indicates the transfer speed and startup time of each MT in the MT group. Since this information is common to each MT, each is listed one by one. MT block length 43 indicates the block length of each MT in the MT group.
データ転送パス14は、この場合、データ転送だけでな
く、立上げ要求を発行する際にも用いられる。このとき
に、何単位時間後に立上げ処理を開始するという情報も
転送することになる。MT群中のMT15は、いずれも真空カ
ラムのないMTで、立上げ処理時間が大きいため、立上げ
処理を制御装置13とはオフラインで行う。立上げ処理が
完了し、MT15の走行速度が一定の状態となり、データ転
送が可能になつた段階で、制御装置13と再結合される。In this case, the data transfer path 14 is used not only for data transfer but also when issuing a start-up request. At this time, information on the unit time after which the start-up process will start is also transferred. All MTs 15 in the MT group do not have vacuum columns, and since the start-up process takes a long time, the start-up process is performed offline from the control device 13. Once the start-up process is complete, the running speed of MT 15 becomes constant, and data transfer becomes possible, it is reconnected to the control device 13.
第1図は、本発明の一実施例を示す制御装置のプロセツ
サにおける処理フローチヤートである。FIG. 1 is a process flow chart in a processor of a control device showing one embodiment of the present invention.
この場合には、プロセツサ20が直接データ転送処理を実
行するため、プロセツサ20が実行を開始するのは、チヤ
ネル12から入出力要求を受取つた時か(ステツプ10
1)、あるいはMT群中のMTのいずれかの立上げ完了通知
を受け取つた時(ステツプ100)である。先ず、MT15の
立上げ完了通知を受取つたた場合には、チヤネル12との
所定の手続きを行い(ステツプ102)、次にデータ転送
を行う(ステツプ103)。データ転送が終了したなら
ば、待ち行列キユー22の先頭のMTiD30をキユー22から外
す。次に、別の立上げ完了のMTがあるかを調べる(ステ
ツプ100)。In this case, since the processor 20 directly executes the data transfer process, the processor 20 starts execution when it receives an I/O request from the channel 12 (step 10).
1), or when a start-up completion notification is received for any of the MTs in the MT group (step 100). First, when a start-up completion notification for MT 15 is received, a predetermined procedure is carried out with channel 12 (step 102), and then data transfer is carried out (step 103). When the data transfer is completed, MTiD 30 at the head of queue 22 is removed from queue 22. Next, a check is made to see if there is another MT whose start-up has been completed (step 100).
次に、チヤネル12からの入出力要求を受取ると、この場
合には、直ちにMTに対して立上げ要求を発行する(ステ
ツプ106)。ただし、何単位時間後に、立上げ処理を開
始するかを指定する必要があるため、上記発行に先立つ
て立上げ処理開始時間を算出する(ステツプ105)。次
に、データ転送パス空き時間の更新を行つた後(ステツ
プ107)、ステツプ100に戻る。Next, when an I/O request is received from the channel 12, in this case a start-up request is immediately issued to the MT (step 106). However, since it is necessary to specify how many units of time the start-up process should be started after, the start-up process start time is calculated prior to the issuance (step 105). Next, the data transfer path idle time is updated (step 107), and the process returns to step 100.
上記の立上げ処理開始時間の算出方法は、次のようにし
て求める。The start-up process start time is calculated as follows.
先ず、次式で定義されたSを求める。First, S defined by the following formula is calculated.
S=(データ転送バス空き時間40)−クロツク21より得られた現在の時刻)−
(MTの立上げ時間42) ……(1) Sが0以下の場合には、直ちに立上げ処理に入るよう
に、MT群中の該当するMT15に要求を発行する。そうでな
い場合には、S時間後に立上げ処理を開始せよという要
求を発行する(ここまでの処理を、ステツプ105で行
う)。S=(data transfer bus idle time 40)--current time obtained from the clock 21)--
(MT startup time 42) ... (1) If S is equal to or less than 0, a request is issued to the corresponding MT 15 in the MT group to immediately enter startup processing. If not, a request is issued to start startup processing after S time (the processing up to this point is carried out in step 105).
上記のデータ転送パス空き時間40の更新方法は、次のよ
うにして行う。これは、いま立上げ処理要求を発行した
MT15により、さらにデータ転送パス14が予約されれたた
めである。このMT15のデータ転送時間は、このMT15に対
応するMTブロツク長43をMT転送速度41で割算することに
より算出できる。算出して得られた値をuとすると、こ
れ以外にオーバヘツド時間Vを加えた時間だけ、新たに
データ転送パス14が占有されることになる。従つて、S
が0より大きい場合には、次式によりデータ転送パス空
き時間を更新する。The data transfer path free time 40 is updated as follows.
This is because the data transfer path 14 has been further reserved by the MT 15. The data transfer time of this MT 15 can be calculated by dividing the MT block length 43 corresponding to this MT 15 by the MT transfer speed 41. If the calculated value is u, the data transfer path 14 will be newly occupied for the time plus overhead time V.
If is greater than 0, the data transfer path free time is updated by the following formula.
(データ転送パス空き時間40)←(データ転送パス空き時間40)+u+V ……
(2) Sが0以下の場合には、直ちにMTの立上げ処理が開始さ
れたことになるため、次式に従つてデータ転送パス空き
時間を更新する。(Data transfer path free time 40) ← (Data transfer path free time 40) + u + V ……
(2) If S is equal to or less than 0, this means that the MT startup process has started immediately, so the data transfer path idle time is updated according to the following formula:
(データ転送パス空き時間40)←(クロツク21より得られる現在時刻)+(MTの
立上げ時間42)+u+V ……(3) さらに、このMT15の認識子をMTiD30として、待ち行列キ
ユー22の最後尾に登録する(ここまでを、ステツプ107
により行う)。この後に、ステツプ100に戻る。(Data transfer path idle time 40)←(Current time obtained from the clock 21)+(MT start-up time 42)+u+V (3) Furthermore, the identifier of this MT 15 is registered as MTiD 30 at the end of the queue 22 (up to this point is step 107).
After this, the process returns to step 100.
このように、従来の方式では、入出力処理の対象となつ
た装置は、並行して立上げ処理が実行され、転送が可能
になつた装置からデータの転送を行つていた。しかし、
転送が可能になつた時点で、他の装置がデータ転送処理
を行つている場合には、再び立上げ処理を行う必要があ
るため、データ転送路の使用効率が非常に悪くなる。一
方、本実施例では、データ転送路の使用効率がきわめて
よくなるため、性能の向上が期待できる。In this way, in the conventional method, the devices that were the subject of input/output processing were started up in parallel, and data was transferred from the device that was ready for transfer. However,
If another device is currently transferring data when data transfer becomes possible, the start-up process must be performed again, resulting in a very poor use of the data transfer path. On the other hand, in this embodiment, the use of the data transfer path is extremely efficient, so performance can be expected to improve.
第6図は、本発明の他の実施例を示す入出力制御系のブ
ロツク図である。FIG. 6 is a block diagram of an input/output control system showing another embodiment of the present invention.
第6図において、殆んどの装置は第2図と同じである
が、データ転送パス14の他に、制御情報用パス17を新た
に設けている点、およびタイマ16が不要になつた点のみ
が異なる。また、制御装置の内部構成も異なるため、こ
こでは制御装置を13Aとする。In Fig. 6, most of the devices are the same as those in Fig. 2, except that a control information path 17 is newly provided in addition to the data transfer path 14, and that the timer 16 is no longer necessary. Also, since the internal structure of the control device is different, the control device is designated here as 13A.
第7図は、第6図の制御装置13Aの内部構成図である。
この制御装置13Aは、データ転送処理等の制御を行うプ
ロセツサ20、チヤネル12とMT群中の1台のMT15との間の
データ転送を行うデータ転送装置28、現在時刻を表すク
ロツク21、タイマ完了フラグ25、指定単位時間後にタイ
マ完了フラグ25をオンにするタイマ装置24、入出力要求
をキユーイングする待ち行列キユー22、MT管理情報部2
3、およびデータ転送装置28が転送中であることを示す
データ転送フラグ27より構成されている。データ転送装
置28は、転送が完了すると、データ転送フラグ27をOFF7
する。FIG. 7 is a diagram showing the internal configuration of the control device 13A shown in FIG.
This control device 13A includes a processor 20 for controlling data transfer processing, a data transfer device 28 for transferring data between the channel 12 and one MT 15 in the MT group, a clock 21 for indicating the current time, a timer completion flag 25, a timer device 24 for turning on the timer completion flag 25 after a specified unit time has elapsed, a queue 22 for queuing input/output requests, and an MT management information section 2
3, and a data transfer flag 27 indicating that the data transfer device 28 is in the process of transferring data. When the data transfer device 28 completes the transfer, it turns the data transfer flag 27 OFF.
do.
第8図は、第7図の待ち行列キユー22の構成図である。FIG. 8 is a block diagram of the queue 22 of FIG.
待ち行列キユー22には、MT群中のMT15を識別する認識子
(MTiD)30およびそのMTに対する立上げ処理が行われて
いるか、まだ行われていないかを示す立上げフラグ31
(ONのときには立上げ中、OFFのときには立上げに入つ
ていないことを示す)が、格納されている。The queue 22 stores an identifier (MTiD) 30 for identifying an MT 15 in the MT group and a launch flag 31 indicating whether the launch process for the MT has been performed or not.
(When ON, it indicates that startup is in progress, and when OFF, it indicates that startup has not yet begun) is stored.
なお、第7図のMT管理情報部23の内部構成は、第5図に
示したものと同じである。データ転送パス14が空く時刻
を示すデータ転送パス空き時刻40、MTの転送速度41、MT
の立上げ時間42、MTブロツク長43が、格納されている。The internal structure of the MT management information section 23 in Fig. 7 is the same as that shown in Fig. 5. The data transfer path free time 40 indicating the time when the data transfer path 14 is free, the transfer speed 41 of the MT,
The start-up time 42 and the MT block length 43 are stored.
データ転送用パス14と制御情報用パス17は、それぞれ同
時には、MT群中の1台のMT15のみと転送することができ
る。この場合にも、MT15は、真空カラムのないMTである
ため、立上げ処理時間が大きく、従つてMT15の立上げ処
理は、制御装置13Aとオフラインで行われる。立上げ処
理が完了し、MT15の走行速度が一定の状態となり、デー
タ転送が可能となつた段階で制御装置13Aと再結合す
る。Data transfer path 14 and control information path 17 can each transfer data to only one MT 15 in the MT group at a time. Even in this case, since MT 15 is an MT without a vacuum column, the start-up process takes a long time, and therefore the start-up process of MT 15 is performed offline with control device 13A. Once the start-up process is complete, the running speed of MT 15 becomes constant, and data transfer becomes possible, it is reconnected to control device 13A.
第9図および第10図は、第7図の制御装置のプロセツサ
の処理フローチヤートである。9 and 10 are process flow charts of the processor of the control device of FIG.
プロセツサ20は、MT群中のMT15のいずれかの立上げ処理
が完了した時(ステツプ500)、またはデータ転送が完
了した時(すなわち、データ転送フラグ27がOFFになつ
た時、ステツプ501)またはタイマ完了フラグ25がオン
になつた時(ステツプ502)、またはチヤネル12からの
入出力要求を受取つた時(ステツプ503)のいずれかで
処理を開始する。図より明らかなように、MT15の立上げ
処理が完了しているか否かのチェック(すなわち、ステ
ツプ500)が、最優先される。以下、それぞれの場合に
実行される処理について述べる。The processor 20 starts processing when the start-up process of any of the MTs 15 in the MT group is completed (step 500), when the data transfer is completed (i.e., when the data transfer flag 27 is turned OFF, step 501), when the timer completion flag 25 is turned ON (step 502), or when an I/O request is received from the channel 12 (step 503). As is clear from the figure, the check as to whether the start-up process of the MT 15 is completed (i.e., step 500) has the highest priority. The processing executed in each case will be described below.
MT群中のMT15のいずれかの立上げ処理が完了した場合に
は、そのMT15とチヤネル12とのデータ転送処理に入るこ
とになる。すなわち、チヤネル12と所定の処理を行つた
後、(ステツプ504)、データ転送装置28を起動して、
データ転送処理を実行させる(ステツプ505)。When the start-up process of any one of the MTs 15 in the MT group is completed, data transfer process between that MT 15 and the channel 12 is started. That is, after a predetermined process is performed with the channel 12 (step 504), the data transfer device 28 is started,
A data transfer process is executed (step 505).
次に、データ転送処理が完了した時、すなわち、データ
転送フラグ27がOFFになつた時には、データ転送フラグ2
7をONにして(ステツプ505A)、待ち行列キユー22の先
頭のMTiD30を待ち行列キユー22から外す(ステツプ50
6)。Next, when the data transfer process is completed, that is, when the data transfer flag 27 is turned OFF, the data transfer flag 2
7 is turned ON (step 505A), and the MTiD 30 at the head of the queue 22 is removed from the queue 22 (step 50
6).
次に、タイマ完了フラグ25がONになつた時には、MT群中
のいずれかのMT15に対する立上げ処理要求を発行する必
要がある。これは、待ち行列キユー22の先頭から立上げ
フラグ31を調べ、最初に立上げフラグ31がOFFであるも
のが見付つた時、これに対応したMTiD30が立上げ処理を
行うべきMT15ということになる。すなわち、立上げフラ
グ31がOFFのMTiD30を見付けて(ステツプ507)、この立
上げフラグ31をONにする(ステツプ508)。そして、該
当するMT15に制御情報用パス17を介して立上げ要求を発
行する(ステツプ509)。待ち行列キユー22の先頭から
サーチして、立上げフラグ31を調べ、OFFのものを見付
ける。これが見付からないときには、ステツプ513にジ
ヤンプする(ステツプ501)。見付かつたときには、こ
れに対応するMTiD30の立上げを準備する必要がある。先
ず、この立上げ処理をいつ行うべきかを調べる(ステツ
プ511)。この時間Sは、次のようにして算出すること
ができる。Next, when the timer completion flag 25 is turned ON, it is necessary to issue a wake-up processing request to one of the MTs 15 in the MT group. This is done by checking the wake-up flag 31 from the head of the queue 22, and when the first one with the wake-up flag 31 OFF is found, the corresponding MTiD 30 is the MT 15 to be wake-up processed. That is, the MTiD 30 with the wake-up flag 31 OFF is found (step 507), and this wake-up flag 31 is turned ON (step 508). Then, a wake-up request is issued to the corresponding MT 15 via the control information path 17 (step 509). The wake-up flag 31 is searched from the head of the queue 22, and an OFF one is found. If this is not found, a jump is made to step 513 (step 501). When it is found, it is necessary to prepare the wake-up of the corresponding MTiD 30. First, it is checked when this wake-up processing should be performed (step 511). The time S can be calculated as follows.
S=(データ転送パス空き時間40)−(MTの立上げ処理時間42) ……(4) その後、タイマ装置24が現時点から所定時間後(S′)
にタイマ完了フラグ25をONにするように、そのタイマ装
置24を起動する(ステツプ512)。この所定時間S′
は、次のようにして算出する。S = (data transfer path idle time 40) - (MT startup processing time 42) ... (4) After that, the timer device 24 counts down from the current time to a predetermined time (S').
The timer device 24 is started so as to turn on the timer completion flag 25 at the predetermined time S' (step 512).
is calculated as follows:
S′=S−(クロツク21より得た現在時刻)……(5) さらに、データパス空き時間40を更新する必要が生じる
(ステツプ513)。これは、いま立上げ処理を準備したM
T群中のMT15により、さらにデータ転送パス14が予約さ
れたためである。このMT15のデータ転送時間は、このMT
に対応するMTブロツク長43をMT転送速度41で割算するこ
とにより算出できる。この値をuとする。実際には、こ
れ以外にオーバヘツド時間Vを加えた時間だけ、新たに
データ転送パス14が占有されることになる。従つて、デ
ータ転送パス空き時間40は、次のように更新される。S' = S - (the current time obtained from the clock 21) ... (5) Furthermore, it becomes necessary to update the data path idle time 40 (step 513). This is because the M
This is because the data transfer path 14 is further reserved by MT 15 in the T group. The data transfer time of this MT 15 is
This can be calculated by dividing the MT block length 43 corresponding to the MT transfer rate 41. This value is called u. In reality, the data transfer path 14 will be newly occupied for a time period that includes overhead time V in addition to this. Therefore, the data transfer path idle time 40 is updated as follows:
(データ転送パス空き時間40)←(データ転送パス空き時間40)+u+V ……
(6) この後に、ステツプ500に戻る。(Data transfer path free time 40) ← (Data transfer path free time 40) + u + V ……
(6) After this, return to step 500.
最後に、チヤネル12から入出力要求を受取つた場合(ス
テツプ503)について述べる。Finally, the case where an I/O request is received from channel 12 (step 503) will be described.
先ず、待ち行列キユー22が空きであるか否かを調べる
(ステツプ514)。空きでないときには、ステツプ518に
ジヤンプし、空きのときには、このMTに対する立上げ要
求を発行する(ステツプ515)。立上げ要求を発行した
後、データ転送パス空き時間40のセツトを行う(ステツ
プ516)。データ転送パス空き時間の値は、次式により
決定される。First, it is checked whether the queue 22 is empty (step 514). If it is not empty, a jump is made to step 518, and if it is empty, a wake-up request is issued to this MT (step 515). After the wake-up request is issued, the data transfer path idle time 40 is set (step 516). The value of the data transfer path idle time is determined by the following formula:
(データ転送パス空き時間40)←(クロツク21より得られる現在時刻)+(MT立
上げ時間42)+u+V ……(7) なお、uとVについては、前の定義したものと同じであ
る。(data transfer path idle time 40)←(current time obtained from the clock 21)+(MT startup time 42)+u+V (7) Note that u and V are the same as those defined previously.
データ転送パス空き時間40のセツトが終了した後、この
MT15の認識子(MTiD)30を待ち行列キユー22にセツトす
る(ステツプ517)。この後、ステツプ500に戻る。After the data transfer path free time 40 set is completed,
The identifier (MTiD) 30 of the MT 15 is set in the queue 22 (step 517). After this, the process returns to step 500.
待ち行列キユー22が空いていない場合には、待ち行列キ
ユー22の先頭からサーチして、立上げフラグ31がOFFで
あるMT15を見付ける(ステツプ518)。これが見付かつ
た時には、ステツプ522にジヤンプする。また、見付か
らない場合には、このMT15に対する立上げ処理を直ちに
行うか(ステツプ519)、あるいはタイマ装置24を起動
して一定時間後に立上げ処理を行うか(ステツプ520)
を判別する必要がある。これは、データ転送パス空き時
間40が何時になつているかによつて決定される。すなわ
ち、直ちに立上げ処理を開始しても、立上げ完了時刻が
データ転送パス空き時間40より遅くなれば、直ちに立上
げ処理を開始する必要がある。そうでない場合には、立
上げ処理がデータ転送パス空き時間40に完了するよう
に、立上げ処理時間を遅らせる必要がある。ステツプ51
9におけるこの判別は、具体的には次のようにして行
う。If the queue 22 is not empty, a search is made from the top of the queue 22 to find an MT 15 whose startup flag 31 is OFF (step 518). If such an MT 15 is found, a jump is made to step 522. If such an MT 15 is not found, a startup process is immediately performed for this MT 15 (step 519), or the timer device 24 is started to perform startup process after a fixed time (step 520).
This is determined based on the time of the data transfer path free time 40. In other words, even if the start-up process is started immediately, if the start-up completion time is later than the data transfer path free time 40, the start-up process must be started immediately. If this is not the case, the start-up process time must be delayed so that the start-up process is completed within the data transfer path free time 40.
Specifically, this determination in 9 is carried out as follows.
S=(データ転送パス空き時間40)−(クロツク21より得られる現在時刻)−
(MTの立上げ時間42) ……(8) Sが0以下になれば、直ちに立上げ処理を開始することになるため、ステツプ51 5にジヤンプする。Sが0より大きい場合には、現在よ
りS時間後に、立上げ要求を発行すればよい。このた
め、t時間後にタイマ完了フラグ25をONにするようにタ
イマ装置24に要求を出す(ステツプ520)。次に、このM
T15の認識子をMTiD30として、待ち行列キユー22の最後
尾に追加する(ステツプ521)。この時、立上げフラグ3
1をOFFにリセツトする。この後、ステツプ500に戻る。S=(data transfer path idle time 40)-(current time obtained from clock 21)-
(MT start-up time 42) ... (8) If S becomes 0 or less, the start-up process will start immediately, so jump to step 515. If S is greater than 0, a start-up request can be issued S hours from the present. For this reason, a request is issued to the timer device 24 to turn on the timer completion flag 25 after t hours (step 520). Next, this M
The identifier of T15 is added to the end of the queue 22 as MTiD30 (step 521).
1 is reset to OFF. Then, the process returns to step 500.
待ち行列キユー22に既に立上げフラグ31がOFFであるMT1
5があれば、もうこのMT15のためにタイマ装置24が起動
されているため、入出力要求を受付けたMT15の認識子
を、MTiD30として待ち行列キユー22の最後尾に追加する
(ステツプ522)。この時、立上げフラグ31をOFFにす
る。この後、ステツプ500に戻る。MT1 whose startup flag 31 is already OFF is in the queue 22.
If there is an MT 15, the timer device 24 has already been started for this MT 15, so the identifier of the MT 15 which has accepted the I/O request is added to the end of the queue 22 as the MTiD 30 (step 522). At this time, the start-up flag 31 is turned OFF. After this, the process returns to step 500.
このように、本実施例においては、入出力装置のデータ
転送時間が一定分布であり、かつ転送データ量が既知で
あり、しかもデータ転送完了時刻が予測可能であること
に基づいて、立上げ要求を発行する専用のパスを設け、
入出力処理を必要とする他の入出力装置が丁度その時刻
に立上げ処理を完了するように、立上げ開始時刻を制御
することが可能となるため、効率のよいデータ転送を行
うことができる。In this way, in this embodiment, a dedicated path is provided for issuing a start-up request based on the fact that the data transfer time of the input/output device has a certain distribution, the amount of data to be transferred is known, and the data transfer completion time is predictable.
Since it is possible to control the start-up time so that other input/output devices requiring input/output processing will complete their start-up processing at exactly that time, efficient data transfer can be achieved.
以上説明したように、本発明によれば、データ転送処理
に先立つて行われる立上げ処理をオフラインで行う入出
力装置に対して、制御装置との間のデータ転送パスを効
率よく使用することが可能になるので、効率のよいデー
タ転送を行うことができる。 As described above, according to the present invention, for an input/output device that performs start-up processing offline prior to data transfer processing, it is possible to efficiently use the data transfer path between the control device, thereby enabling efficient data transfer.
第1図は本発明の一実施例を示す制御装置の処理フロー
チヤート、第2図は本発明が適用される入出力制御系の
全体ブロツク図、第3図は第2図の制御装置の詳細構成
図、第4図は第3図の待ち行列キユーの構成図、第5図
は第3図のMT管理情報部の詳細構成図、第6図は本発明
の他の実施例を示す入出力制御系の全体ブロツク図、第
7図は第6図の制御装置の詳細構成図、第8図は第7図
の待ち行列キユーの構成図、第9図および第10図は第6
図の制御装置の処理フローチヤートである。 10:CPU、11:主記憶装置、12:チヤネル、13,13A:制御装
置、14:データ転送パス、15:入出力装置(MT)、16:タ
イマ、17:制御情報用パス、20:プロセツサ、21:クロツ
ク、22:待ち行列キユー、23:MT管理情報部、24:タイマ
装置、25:タイマ完了フラグ、27:データ転送フラグ、2
8:データ転送装置。 FIG. 1 is a process flow chart of a control device showing one embodiment of the present invention, FIG. 2 is an overall block diagram of an input/output control system to which the present invention is applied, FIG. 3 is a detailed block diagram of the control device of FIG. 2, FIG. 4 is a block diagram of the queue of FIG. 3, FIG. 5 is a detailed block diagram of the MT management information section of FIG. 3, FIG. 6 is an overall block diagram of an input/output control system showing another embodiment of the present invention, FIG. 7 is a detailed block diagram of the control device of FIG. 6, FIG. 8 is a block diagram of the queue of FIG. 7, FIGS.
1 is a process flow chart of the control device shown in FIG. 10: CPU, 11: main memory device, 12: channel, 13, 13A: control device, 14: data transfer path, 15: input/output device (MT), 16: timer, 17: control information path, 20: processor, 21: clock, 22: queue, 23: MT management information section, 24: timer device, 25: timer completion flag, 27: data transfer flag, 2
8: Data transfer device.
Claims (4)
し、予め知られたデータ転送速度でデータの転送を要求
する複数台の入出力装置と、中央処理装置と、該中央処
理装置に接続され、該中央処理装置により選択されるチ
ャネル装置と、該チャネル装置に接続され、該チャネル
装置と入出力装置間のデータ転送を制御し、該チャネル
装置からの要求に応答して、入出力装置の任意の1つに
立上げ処理開始の要求を発行し、また、予め知られた立
上げ開始時刻、予め知られたデータ転送速度およびデー
タ転送量に基づいて、上記入出力装置の転送終了時刻を
算出する演算手段を含む入出力制御装置と、同時には1
台の入出力装置のデータのみを転送するために、該入出
力装置と入出力制御装置間に結合されたデータ転送パス
とを有し、かつ上記入出力制御装置内には、現在データ
転送中の入出力装置のデータ転送完了時刻に、該入出力
装置とは別の入出力装置の立上げ処理が完了するよう
に、チャネル装置からの要求に応答する手段とを具備し
たことを特徴とする入出力制御システム。[Claim 1] A computer system comprising: a plurality of input/output devices each of which starts a startup process offline and requests a data transfer at a known data transfer rate; a central processing unit; a channel device connected to said central processing unit and selected by said central processing unit; an input/output control device including calculation means connected to said channel device, which controls data transfer between said channel device and the input/output devices, and which issues a request to start startup process to any one of the input/output devices in response to a request from said channel device, and which calculates a transfer end time for said input/output devices based on a known startup start time, a known data transfer rate, and a known amount of data transferred;
an input/output control system having a data transfer path connected between the input/output device and an input/output control device in order to transfer only data from the input/output device, and comprising means in the input/output control device for responding to a request from a channel device so that start-up processing of an input/output device other than the input/output device is completed at the data transfer completion time of the input/output device currently transferring data.
システムにおいて、上記複数の入出力装置は、それぞれ
タイマを有し、かつ上記入出力制御装置は上記タイマを
それぞれ任意の単位時間にセツトして、該単位時間の経
過後に上記入出力装置に立上げ処理を開始させる手段を
含むことを特徴とする入出力制御システム。[Claim 2] In the input/output control system described in claim 1, each of the multiple input/output devices has a timer, and the input/output control device includes means for setting each of the timers to an arbitrary unit time and causing the input/output device to start start-up processing after the unit time has elapsed.
の入出力制御システムにおいて、上記入出力制御装置
は、1台の入出力装置がデータ転送時間を終了する時刻
を算出し、その時刻に別の入出力装置が立上げ処理を開
始できる時刻を予め知られた立上げ開始時刻に基づいて
算出する手段と、上記データ転送パスがデータを転送し
ていないとき、別の入出力装置に対して該データ転送パ
スを介して立上げ開始要求を発行する手段とを具備し、
上記入出力装置は発行された開始要求を受けると、算出
された開始時刻に別の入出力装置のタイマーをセツトす
るようにしたことを特徴とする入出力制御システム。3. In the input/output control system according to claim 1 or 2, said input/output control device comprises means for calculating a time when one input/output device will end its data transfer time, and calculating a time when another input/output device can start start-up processing at that time based on a known start-up start time, and means for issuing a start-up start request to the other input/output device via the data transfer path when the data transfer path is not transferring data,
An input/output control system according to the present invention, characterized in that, when the input/output device receives the issued start request, it sets a timer of another input/output device to the calculated start time.
システムにおいて、上記入出力制御装置は、予め知られ
た立上げ開始時刻、予め知られたデータ転送速度および
中央処理装置により指定されたデータ転送量に基づい
て、上記入出力装置の転送終了時刻を算出する演算手段
と、ある入出力装置のデータ転送に優先するデータ転送
が終了し、上記入出力装置のデータ転送が開始される間
で、データ転送パスがデータを転送していない期間に、
該データ転送パスを介して別の入出力装置に対して立上
げ要求を発行する手段とを有することを特徴とする入出
力制御システム。4. In the input/output control system according to claim 1, said input/output control device comprises: a calculation means for calculating a transfer end time of said input/output device based on a known start time of startup, a known data transfer rate, and a data transfer amount designated by a central processing unit; and a calculation means for calculating a transfer end time of said input/output device based on a known start time of startup, a known data transfer rate, and a data transfer amount designated by a central processing unit, and a calculation means for calculating a transfer end time of said input/output device based on a known start time of startup,
and means for issuing a startup request to another input/output device via said data transfer path.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3986885A JPH06105445B2 (en) | 1985-02-28 | 1985-02-28 | Input/Output Control System |
| US07/293,555 US4926324A (en) | 1985-02-28 | 1989-01-05 | I/O control system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3986885A JPH06105445B2 (en) | 1985-02-28 | 1985-02-28 | Input/Output Control System |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61199152A JPS61199152A (en) | 1986-09-03 |
| JPH06105445B2 true JPH06105445B2 (en) | 1994-12-21 |
Family
ID=12564948
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3986885A Expired - Lifetime JPH06105445B2 (en) | 1985-02-28 | 1985-02-28 | Input/Output Control System |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06105445B2 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS63107448A (en) * | 1986-10-23 | 1988-05-12 | Calsonic Corp | Flat motor |
| JPH0682335B2 (en) * | 1987-04-10 | 1994-10-19 | 日本電気株式会社 | Journal record storage medium switching control system |
-
1985
- 1985-02-28 JP JP3986885A patent/JPH06105445B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61199152A (en) | 1986-09-03 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6178486B1 (en) | Time allocation shared memory arbitration for disk drive controller | |
| US5911078A (en) | Method for multithreaded disk drive operation in a computer system | |
| US4926324A (en) | I/O control system and method | |
| JPH06105445B2 (en) | Input/Output Control System | |
| JP2587434B2 (en) | Data input / output processing method | |
| JP3185954B2 (en) | How to archive and recall files | |
| EP0478337B1 (en) | Process of storing data on, or retrieving data from a plurality of disks | |
| JPH06105446B2 (en) | Data transfer control method | |
| JPS5836373B2 (en) | Access time variable device | |
| JPS62179035A (en) | Sharing multiplexing volume system | |
| JP2823624B2 (en) | I/O interface control method | |
| JPH07114522A (en) | Multiprocessor system | |
| CN121326409A (en) | Processor system and interrupt response method | |
| JPS633339B2 (en) | ||
| JPS6126095B2 (en) | ||
| JP3524954B2 (en) | Disk controller | |
| CN120803736A (en) | Memory copying method, memory copying system, electronic equipment and storage medium | |
| JPH0462093B2 (en) | ||
| JPH0346033A (en) | Inter-job data transfer control method | |
| JPS59231626A (en) | Start system of input and output device | |
| JPS62134718A (en) | Data access control system | |
| JPS6048563A (en) | Channel control system | |
| JPS5850369B2 (en) | Data transfer method | |
| JPH08106363A (en) | Multi-disc device | |
| JPH08161168A (en) | Data processing device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| EXPY | Cancellation because of completion of term |