JPS62128322A - Input/output control system - Google Patents

Input/output control system

Info

Publication number
JPS62128322A
JPS62128322A JP60268833A JP26883385A JPS62128322A JP S62128322 A JPS62128322 A JP S62128322A JP 60268833 A JP60268833 A JP 60268833A JP 26883385 A JP26883385 A JP 26883385A JP S62128322 A JPS62128322 A JP S62128322A
Authority
JP
Japan
Prior art keywords
data
buffer
blocks
block
stored
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
JP60268833A
Other languages
Japanese (ja)
Inventor
Akira Tamaki
玉木 晃
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP60268833A priority Critical patent/JPS62128322A/en
Publication of JPS62128322A publication Critical patent/JPS62128322A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To perform the logical copy of a file from a DKU to an MTU lowering a termination frequency in a tape travel by providing a table which describes the position or the size of a buffer where the data of plural blocks obtained from the DKU are stored. CONSTITUTION:A CPU1 transfers in order a file requested to copy from a DKU5 to an MMU10. When appropriate number of blocks are read from the DKU5, the CPU1 generates the first table to start up an MTU3. In a generated table, the position or the size of the buffer in which the data of plural blocks are stored is described, and an MTC2 receives it from the MMU10 and performs the readout of the data from the buffer and a transfer to the MTU3 according to the content of the table, and only the share of the number of blocks of the data included in the table can be outputted continuously to the MTU3. Thereby, the termination frequency of a magnetic tape can be lowered, and also, an interruption from the MTC2 to the CPU1 is performed once for the number of blocks included in the table in a normal operation, thereby a load on the CPU1 being reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は入出力制御方式に関し、特に中央処理装置から
出力された指令に従って磁気テープ制御装置を動作させ
、主記憶装置を介した磁気ディスク装置とストリーミン
グ機能を有するG(3気テ一プ装置間でのファイルの論
理的コピーを磁気テープの走行を止めることなく高速に
行なうことができ、ストリーミング機能の性能を最大限
に発揮させ得る入出力制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an input/output control method, and in particular operates a magnetic tape control device according to instructions output from a central processing unit, and operates a magnetic disk device via a main storage device. and G with a streaming function (input/output that enables logical copying of files between tape devices at high speed without stopping the magnetic tape, and maximizes the performance of the streaming function). Regarding control method.

(従来の技術〕 従来、第2図に示すように中央処理装置(以下CPUと
称す)1のパス6に磁気ディスク制御装置(以下DKC
と称す)4を介して磁気ディスク装置(以下D K U
と称ず)5を、磁気テープ制御装置C以下MTCと称す
)2を介して+ffff−プ装置(以下M TUと称す
)3をそれぞれ接続した情報処理システムにおいて、D
KU5に格納されたファイルをMTU3に論理的コピー
をする動作は、例えば第13図に示1者ンれに沿って次
のようにして行なわれていた。
(Prior Art) Conventionally, as shown in FIG.
(hereinafter referred to as DKU) 4 via a magnetic disk device (hereinafter referred to as DKU
In an information processing system in which a magnetic tape controller C (hereinafter referred to as MTC) 5 is connected to a +ffff- tape unit (hereinafter referred to as MTU) 3, a
The operation of logically copying a file stored in KU5 to MTU3 has been performed as follows, for example, along the flow shown in FIG.

即ち、CP LJ lからDKU5に対するリード指令
がDKC4に出力されると、DKC4はこれを解読して
先ずD K tJ 5のヘッドを必要な情報(ファイル
)が格納されている位置まで動かずためのシークコマン
ドをDKU5に送出し、次にそのソーク動作が完了する
とデータのリードコマンドをr) K U 5に送出す
る。D’K U 5はり−トコマンドを受けると詣示さ
れた情報(ファイル)の先頭を見つけファイルの1ブロ
ツク分の情報をDKC4に転送する。
That is, when a read command for DKU5 is output from CP LJ l to DKC4, DKC4 decodes this and first moves the head of DK tJ 5 to the position where the necessary information (file) is stored. A seek command is sent to the DKU5, and then, when the soak operation is completed, a data read command is sent to the KU5. When D'KU 5 receives a read command, it finds the beginning of the indicated information (file) and transfers one block of information in the file to DKC 4.

DKC4はo K IJ 5から1ブロツク分の情報が
送られると、この情報をダイレクト・メモリ・アクセス
(DMA)によりCPtJ I内の主記憶装置(以下M
MUと称す) 10に転送し、必要な転送を終えるとC
PU Iに対しδり込みを発生し、lブロック分のリー
ド動作の終了を通知するつCI) U lは、上記通知
を受けると、M T U 3に対するライト指令をMT
U2に送出する。このライト指令は、MTU2で解読さ
れ、M T [J 3にライトコマンドが送られ、MT
U3は磁気テープの走行を開始させる。MTU2はまた
C P U 1から1ブロツク分の情報をDMAにより
受は取り、これをMTU3に送出して磁気テープに記録
させる。
When the DKC4 receives one block of information from the oK IJ 5, it uses direct memory access (DMA) to transfer this information to the main memory in the CPtJ I (hereinafter M
(referred to as MU) and transfers to C after completing the necessary transfer.
When CI (CI) receives the above notification, it issues a write command to M T U 3 and sends a write command to M T U 3.
Send to U2. This write command is decoded by MTU2, the write command is sent to M T [J 3, and MTU2
U3 starts running the magnetic tape. The MTU 2 also receives one block of information from the CPU 1 by DMA, and sends it to the MTU 3 to record it on the magnetic tape.

そして、MTU2はlブロック分の情報の転送を終了す
ると、c P U lに対し割込みを発生し、ライト動
作の終了を通知する。
When the MTU 2 completes the transfer of information for one block, it generates an interrupt to cP U l and notifies it of the end of the write operation.

CPU1は上記割込みが発生ずると、上記と同1さ一 様な動作を)iイルのブロック数だけ繰返し、必l’l
、 要な論理的コピーを完結する。
When the above interrupt occurs, CPU 1 repeats the same operation as above for the number of blocks in
, complete the necessary logical copy.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで、MTU3には所謂ストリーミング機能と呼ば
れる機、能がある。これは、入力された情報をあるブロ
ックに記録した後、テープ走行を停止させることなくレ
コード間ギャップ(IRG)を書込み且つ次のブロック
の記録動作に連続的に移行する機能で1ある。但し、こ
のストリーミング機能が働くには、IRGの書込み中に
次のブロックの書込み情報が既に用意されていることが
必要であり、情報が用意されていすライトコマンドが所
定の期間に再度入力されないと、テープ走行は停止する
。MTU3では停止状態から所定の走行状態になるまで
に平均して約500m5ec程度要するから、高速な書
込みを行なわせる為にはストリーミングWiiuを最大
限に利用することが必要である。
By the way, the MTU3 has a so-called streaming function. This is a function that, after recording input information in a certain block, writes an inter-record gap (IRG) without stopping tape running and continuously moves to the recording operation of the next block. However, for this streaming function to work, it is necessary that the write information for the next block is already prepared while writing the IRG, and if the information is prepared and the chair write command is not input again within a predetermined period. , tape running stops. Since the MTU3 requires about 500 m5ec on average to go from a stopped state to a predetermined running state, it is necessary to make maximum use of the streaming Wii U in order to perform high-speed writing.

しかし、ソフトウェアで取り扱われるファイルは、ブロ
ックの集合したものであり、一つのブロックはまたレコ
ードの集合したものである。このようなファイルは、論
理的にはつながっているものであるが、DKUS上では
物理的に不連続な位置に記録されていることが多い。こ
の為、前述したl) K tJ 5のシーク時間は平均
的に例えば30m5ec程度要する。また、従来の方式
ではDKU5から1ブ1コック分の情報がCP U l
のMMUIOに転送される毎にDKC4から中央処理装
置1に割込みをかけ、またMTU3に1ブロツク分の情
+μを書き終える毎にMTU2からCP [J lに割
込みをかけて次のブロックの転送を受けるよう構成され
ているので、CP IJ Iの割込み処理回数が多く、
ごの割込み処理時間と上記シーク時間との為に、MTU
3のIRG処理中に次のブロックのデータをMTU2に
用意することができず、ストリーミング機能を最大限に
利用することができなかった。
However, a file handled by software is a collection of blocks, and one block is also a collection of records. Although such files are logically connected, they are often recorded in physically discontinuous positions on the DKUS. Therefore, the seek time of l) K tJ 5 described above requires, for example, about 30 m5ec on average. In addition, in the conventional method, information for one block and one cook from the DKU5 is transferred to the CPU
Each time data is transferred to MMUIO, DKC4 interrupts central processing unit 1, and each time one block of information + μ is written to MTU3, MTU2 issues an interrupt to CP [J l to transfer the next block. CP IJ I is configured to receive many interrupts.
MTU
During the IRG processing in step 3, the next block of data could not be prepared in MTU2, and the streaming function could not be used to its fullest extent.

このため、MTU3はlブロック毎にストフプースター
トーストソプを操返す必要があり、ファイルの転送に多
くの時間を必要とする欠点があった。
For this reason, the MTU3 has the disadvantage that it is necessary to operate the StoffpoosterToastSop for every l block, and that it takes a lot of time to transfer files.

本発明はこのような従来の問題点を解決したもので、そ
の目n勺は、D K UからMTUへのファイルの論理
的コピーをMTUのストリーミング機能が最大限に活か
せるように即らテープ走行の停止頻度を下げて行なわせ
ることができる入出力制御方式を提供するごとにある。
The present invention solves these conventional problems, and its main purpose is to logically copy files from the DKU to the MTU, i.e., to tape, so that the MTU's streaming function can be utilized to the fullest. The purpose of the present invention is to provide an input/output control method that can reduce the frequency of stopping the vehicle.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は」二足ロ的を達成するために、DKUに格納さ
れたファイルをMMUを介してストリーミング機能を有
するMTUに論理的コピーをする入出力制御方式におい
て、 前記1) K [Jに格納されたファイルを1ブロツク
ずつ前記M M [Jに設けられたバッファに順次格納
する格納手段と、 該格納手段によって所定数のブロックが前記MMUのバ
ッファに格納された後に、該バッファの位置、サイズお
よびその他の制御情報を記述した互いにチェーンされる
複数のテーブルを前記MMU上に作成するテーブル作成
手段と、 該テーブル作成手段により作成され互いにチェーンされ
るテーブルを引取り、その内容に従って前記バッファに
格納されたデータを前記MTUに転送して書込ませるM
TCとを設ける。
The present invention provides an input/output control method for logically copying files stored in a DKU to an MTU having a streaming function via an MMU in order to achieve a two-legged system. storage means for sequentially storing the stored files one block at a time in a buffer provided in the MMU; after a predetermined number of blocks are stored in the buffer of the MMU by the storage means, the position and size of the buffer are and table creation means for creating a plurality of mutually chained tables describing control information and other control information on the MMU, and receiving the tables created by the table creation means and mutually chained, and storing them in the buffer according to their contents. Transfer the written data to the MTU and write it.
A TC will be established.

〔作用〕[Effect]

MMLI上に作成されるテーブルには、DKUがら取得
した複数ブロックのデータが格納されているバッファの
位置やサイズ等が記述されており、MTCはこれをMM
[Jから引取ってその内容に従ってバッファからのデー
タの読出しとMTUへの転送を行なうものであり、MT
Uへはテーブルに含まれるブロック数分だけのデータを
連続して出力することができるので、磁気テープの停止
関度を下げることができる。また、MTCからcPUへ
の!I;IIlΔみは正常な場合テーブルに含まれるブ
rコック故について1回となり、CP Uの負荷も軽C
成することができる。
The table created on the MMLI describes the location and size of the buffer in which multiple blocks of data acquired from the DKU are stored, and the MTC uses this as the MMLI.
[It is taken from J and reads data from the buffer and transfers it to MTU according to its contents, and MT
Since data corresponding to the number of blocks included in the table can be continuously output to U, the magnetic tape stoppage rate can be lowered. Also, from MTC to cPU! In normal case, I;IIlΔ will be executed once for each block error included in the table, and the CPU load will be light.
can be achieved.

〔実施例〕〔Example〕

第1図は本発明の一実施例の要部ブロック図であり、1
は内部にMMUIOを有するCPU、2はMTC,3は
MTUであり、MTC2はハス6を介してCP IJ 
Iと1妾続され、このMTC2にMTU3が接続される
6バス6は、本発明が適用されるシステムの構成例を示
す第2図に示すように、DKC4を介してD K U 
Sとも接続されている。
FIG. 1 is a block diagram of a main part of an embodiment of the present invention.
is a CPU that has MMUIO inside, 2 is MTC, 3 is MTU, and MTC2 is connected to CP IJ via Has6.
As shown in FIG. 2, which shows an example of the configuration of a system to which the present invention is applied, the bus 6 to which the MTU 3 is connected to the MTC 2 is connected to the DKC 4 via the DKC 4.
It is also connected to S.

第1図におけるMTC2は、アドレスレジスタ101、
データレジスタ102.バス制御回路103.マイクロ
プロセッサ(以下M P Uと称ず) 104.先入先
出制御方式のバッファ (以下FIFOと称す’) 1
05゜Ill、 I’? OM2O3,RA M2O3
,アドレスカウンタ108゜データバッファ109.デ
ータカウンタ110および制御回路+12を含む。
The MTC2 in FIG. 1 includes an address register 101,
Data register 102. Bus control circuit 103. Microprocessor (hereinafter referred to as MPU) 104. First-in, first-out control buffer (hereinafter referred to as FIFO) 1
05゜Ill, I'? OM2O3,RA M2O3
, address counter 108° data buffer 109. It includes a data counter 110 and a control circuit +12.

また、第3図はDKU5からMTU3へのファイルの論
理的コピーが行なわれた際のDKU5−DKC4−CP
tJl−MTC2−MTU3におけるデータ、指令等の
流れ図、第4図はその際のCr’ U l −MTC2
−MTU 3間での処理の一例を示す流れ図、第5図は
MTCZ内での処理の一例を示す流れ図、第6図はテー
ブル内容の一例を示す図、第7図はテーブル中の制御情
報エリアの内容例を示す図、第8図はMTC2のF I
 FOIIIにテーブルのブロック情報が格納された状
態を示す図、第9図はMMUIO上に展開されるテーブ
ルチェーンの概念図である。以下、DKU5からMTU
3へのファイルの論理的コピーの動作を説明する。
Also, Figure 3 shows the DKU5-DKC4-CP when a file is logically copied from DKU5 to MTU3.
tJl-MTC2-MTU3 flowchart of data, commands, etc., Figure 4 shows Cr' U l -MTC2 at that time.
- A flowchart showing an example of processing between MTU 3, Figure 5 is a flowchart showing an example of processing within MTCZ, Figure 6 is a diagram showing an example of table contents, and Figure 7 is a control information area in the table. Figure 8 shows an example of the content of MTC2.
FIG. 9, which is a diagram showing a state in which table block information is stored in FOIII, is a conceptual diagram of a table chain developed on MMUIO. Below, MTU from DKU5
The operation of logically copying a file to 3 will be explained.

先ず、CPUIはDKLI5からコピーをしたいファイ
ルを順次MMtJIOに転送する。これは、例えば第3
図に示すように、CP U 1からDKC4に対しリー
ド指令を発し、DKC4がこれに応答してシークコマン
ドをDKU5に送出してシーク動作を行なわモると共に
続いてリードコマンドをDKU5に送出し、D K I
J 5からの1ブロック分のデータをr)M△によりC
PIJ IのMMtノ10に転送する動作が繰返される
ことにより行なわれる。
First, the CPUI sequentially transfers files to be copied from the DKLI5 to the MMtJIO. This is, for example, the third
As shown in the figure, the CPU 1 issues a read command to the DKC 4, and in response, the DKC 4 sends a seek command to the DKU 5 to perform a seek operation, and subsequently sends a read command to the DKU 5. DKI
J 1 block of data from 5 is converted to C by r) M△
This is performed by repeating the operation of transferring the data to MMt 10 of PIJ I.

上記動作により適当なブロック数(第3図ではn個のブ
ロック)をDKU5から続出したら、CPutはMTU
3に起動をかける為の最初のテーブル([)を生成する
。なお、このテーブル生成過程においても並行してDK
U5からのブロックの続出し動作等の動作を順次行なっ
ている。
When an appropriate number of blocks (n blocks in FIG. 3) are successively output from the DKU5 by the above operation, CPUt is set to MTU.
Generate the first table ([) to activate 3. In addition, during this table generation process, DK
Operations such as successive output of blocks from U5 are performed sequentially.

第6図はcputが生成する上記テーブルの一例を示す
図であり、エラ一時に第1図のRへM 107の内容を
CPUIのMMt月Oに転送するときの主記憶アドレス
を示すSPMダンプエリアポインタ。
FIG. 6 is a diagram showing an example of the above table generated by cput, and shows the SPM dump area indicating the main memory address when transferring the contents of M107 to R in FIG. pointer.

テーブル自身のサイズを示す有効テーブル長、テーブル
自身の制御状態を示す制御情報エリア、テーブル内に含
まれるブロック数、ブロックlからの動作をス;トップ
する数を示すオフセット値5MTC2が処理中のブロッ
ク番号を示すカレントブロック番号、このテーブルの処
理終了時に次に参照すべきテーブルのアドレスを示す次
テーブルアドレス、同しくこのテーブルの処理終了時に
次に参照すべきテーブルのテーブル長を示す次テープル
のテーブル長、およびブロック1情報〜ブロツクn11
t1報が含まれることを示している。なお、ブロックI
情+H〜ブロックn情輯中、バッファアドレス、レンジ
、残りレンジ、ステータスはそのブロックでのDMA転
送における開始アドレス、データ数、終了時の残りレン
ジ、終了時のステータスをそれぞれ示す。またテーブル
中の制御情報エリアは、例えば第7図に示すように16
ビノト構成であり、0〜7ビ、ト目にテーブル番号が、
8ビ1/ト目に“l“のときこのテーブルが使用可能で
あることを示し“0”のとき使えないことを示すVT(
Va目d Table)フラグが、9ビツト目に“l”
のときテーブルチェーンがこのテーブルで終わりである
ことを示すT M (Termination)フラグ
が、10ビツト目に“I″のときこのテーブルが正常に
処理を終了したことを示すCP (Completio
n)フラグが、11ビツト目に“l”のときこのテーブ
ルチェーンにエラーが発生したことを示すFE、 R(
IError)フラグが、12ビツト目に“l”のとき
このテーフ゛ルに設定された値が不適当であることを示
すIT(Illegal Tahle)フラグがそれぞ
れ格納される。
The effective table length indicating the size of the table itself, the control information area indicating the control status of the table itself, the number of blocks included in the table, the offset value indicating the number to stop the operation from block l 5 Blocks that MTC2 is processing Current block number indicating the number, Next table address indicating the address of the next table to be referenced when processing of this table is finished, Table of the next table indicating the table length of the next table to be referenced when processing of this table is finished. length, and block 1 information ~ block n11
This indicates that the t1 report is included. In addition, block I
During the information+H to block n information, the buffer address, range, remaining range, and status indicate the starting address, number of data, remaining range at the end, and status at the end of the DMA transfer in that block, respectively. In addition, the control information area in the table is, for example, 16 as shown in FIG.
It has a binoto structure, and the table number is on the 0th to 7th bit,
VT(
The flag is “l” in the 9th bit.
When the TM (Termination) flag, which indicates that the table chain ends with this table, is "I" at the 10th bit, the CP (Completio
n) FE, R(
When the IError) flag is "1" in the 12th bit, an IT (Illegal Thale) flag indicating that the value set in this table is inappropriate is stored.

なお、テーブル(11の生成時に次のテーブル(2)の
サイズが決定されていない場合は、ダミーテーブルを使
用した間接チェーン化を実施するが、この点については
後述する。
Note that if the size of the next table (2) is not determined when table (11) is generated, indirect chaining is performed using a dummy table, but this point will be described later.

さて、CPU Iは上記のような最初のテーブルf11
の生成を完了すると、第7図の制御情報エリア中のVT
フラグを”l”にセットし、第4図の流れ図に示すよう
にM7C3に対してテーブル+11の先頭アドレ辷(第
9図のXXX)を措定しMTC2を起動する竺、1 M7C3は、°テーブル(1)の先頭アドレスを受取る
と、MPU104によりテーブル(1)をCPUIのM
M[月0から引取ってRAM107に格納する(テーブ
ルリード)5゜次にM P U 104はテーブル(1
1内のVTフラグ:が“l”であることを確認した後、
RAM107の号、−プルfi+におけるカレントフ゛
ロソ、− り番号エリアとMMUIO上のテーブルfilのカレン
トブロック番号エリアにブロック番号rlJを書込む(
このとき、オフセット値が指定されていれば、書込むブ
ロック番号はオフセット値となる)。
Now, CPU I creates the first table f11 as shown above.
When the generation of VT is completed, the VT in the control information area of FIG.
Set the flag to "l", set the start address of table + 11 (XXX in Figure 9) to M7C3 as shown in the flowchart of Figure 4, and start MTC2. When the start address of (1) is received, the MPU 104 transfers table (1) to the CPU M
M [takes data from month 0 and stores it in RAM 107 (table read) 5゜Next, M P U 104 reads table (1
After confirming that the VT flag in 1 is “l”,
Write the block number rlJ to the number area of RAM 107, the current file in pull fi+, and the current block number area of table fil on MMUIO (
At this time, if an offset value is specified, the block number to be written will be the offset value).

次にMPU104は、RAM107から上記書込んだブ
LJ 7り番号に対応するブロック情報を読出して第8
図に示ずようにFIFOIIIに格納し、制御回路11
2に対して転送開始の指示を与える。
Next, the MPU 104 reads the block information corresponding to the written block LJ 7 number from the RAM 107, and
As shown in the figure, it is stored in FIFO III and the control circuit 11
2 is given an instruction to start the transfer.

制御回路112は転送開始の指示が与えられると、FI
FOIIIよりバッファアドレスとレンジを取出し、バ
ッファアドレスはアドレスカウンタ108に レンジは
データカウンタ110にセットする。
When the control circuit 112 is given an instruction to start transfer, the FI
The buffer address and range are taken out from FOIII, and the buffer address is set in the address counter 108 and the range is set in the data counter 110.

次に制御回路!12はMTU3に対してライトコマン)
′を送出する。
Next is the control circuit! 12 is a light command for MTU3)
′ is sent.

M T U 3はこのライトコ1マンFに応答して6イ
(気テープの走行を開始し、データを受取れる状態にな
ると制御回路112に対してデータ要求を行なう。
In response to this light controller F, the MTU 3 starts running the tape, and when it becomes ready to receive data, makes a data request to the control circuit 112.

制御回路+12はこのデータ要求があると、MMtJ1
0→データレジスタ102−データバッファ109−制
御回路+12−MTU3の経路を作り、データ転送を行
なう。このときアドレスカウンタ108はlハイド転送
毎に+1され、データカウンタ110は−1される。デ
ータカウンタ110のイ直が「0」になると制御回路1
12は、MPU104に1ブロツク転送終了の割込みを
発生しくなお、データカウンタ≠0でもエラーが発生す
れば割込みを発生ずる)、エラーが無ければFIFOI
IIより次のブロックのバッファアドレスとレンジを取
出し、それぞれアドレスカウンタ108.データカウン
タ110にセットし次のブロックの転送を開始する (
エラーがあれば行なわない)。
When control circuit +12 receives this data request, MMtJ1
A path from 0 to data register 102 to data buffer 109 to control circuit +12 to MTU3 is created and data is transferred. At this time, the address counter 108 is incremented by 1 every l hide transfer, and the data counter 110 is incremented by 1. When the value of the data counter 110 becomes "0", the control circuit 1
12 generates an interrupt for the end of one block transfer to the MPU 104. If an error occurs even if the data counter ≠ 0, an interrupt is generated), and if there is no error, the FIFOI
The buffer address and range of the next block are retrieved from address counter 108.II. Set the data counter 110 and start transferring the next block (
If there is an error, do not proceed).

一方、MPU104はlブロック転送終了の割込みを受
けると、終了のステータスを制御回路112より引取り
MMtJlO上のテーブル(1)における該当ブロック
のステータスエリアに書込む。またMl’U 104ば
そのステータスにエラーが無ければRAM107 とM
MIJIO上のテーブルt11のカレントブロック番号
を+lする(1!!L、エラーが有れば行なわない)。
On the other hand, when the MPU 104 receives an interrupt indicating the completion of l block transfer, it receives the completion status from the control circuit 112 and writes it in the status area of the corresponding block in table (1) on MMtJlO. Also, if there is no error in the status of Ml'U 104, RAM 107 and M
The current block number of table t11 on MIJIO is incremented by +l (1!!L, if there is an error, do not perform this).

制御回路+12は、エラーが発生するか、全てのブロッ
クを転送し終えるまで上記の動作を繰返す。
The control circuit +12 repeats the above operation until an error occurs or until all blocks have been transferred.

一方、MTU3は一つのブロックをライト後はブロック
間のギャップであるIGRを書いているので、この間に
次のライトコマンドを受取るとfil気テープの走行を
止めることなく連続走行してデータを書込む。
On the other hand, after writing one block, MTU3 writes IGR, which is the gap between blocks, so if it receives the next write command during this time, it will continue to write data without stopping the tape running. .

MPU104は、RAM107のテーブル(11の全て
のプロ、りを処理し終えると、MMIJIO−ヒのテー
ブル+11の制御τI情報エリアのCPフラグをセット
しくエラーが発生した場合はERフラグ、又はERフラ
グとITフラグをセットする)、CPUIにSす込む。
When the MPU 104 finishes processing all the programs in the RAM 107 table (11), it sets the CP flag in the control τI information area of the MMIJIO-hi table + 11. If an error occurs, it sets the CP flag or the ER flag. Set the IT flag), then run S to the CPUI.

そして、Ml)UI04はRAM107内のテーブル+
11における次テーブルアドレスと次テーブル長を参1
!りして次のテーブル(2)をMMLJIOより引取っ
てRA M 107に格納しくエラーが発生した場合は
行なわない)、上記と同様の動作を繰返す。
And Ml) UI04 is a table in RAM107 +
Refer to the next table address and next table length in 11.
! Then, the next table (2) is retrieved from MMLJIO and stored in the RAM 107 (this is not done if an error occurs), and the same operation as above is repeated.

一方、CPUIはM7C3から割込みがかかると、テー
ブル(1)の制御情報エリアの1Erlフラグとcpフ
ラグをチェックし、Er?=O且つCP= 1のときは
テーブル+11の更新(又は削除)を行なう。
On the other hand, when the CPU receives an interrupt from the M7C3, it checks the 1Erl flag and cp flag in the control information area of table (1), and checks the Erl flag and cp flag in the control information area of table (1). When =O and CP=1, table +11 is updated (or deleted).

しかし、ER=1のときは、テーブル+11のカレント
ブロック番号をテーブル+11のオフセット値にセット
し、カレントブロック番号5 ERフラグ5ITフラグ
をOにしてテーブル(1)の先頭アドレスをM7C3に
指示し起動をかけることによりリトライ処理を行なう。
However, when ER=1, the current block number of table +11 is set to the offset value of table +11, the current block number 5 ER flag 5 IT flag is set to O, and the start address of table (1) is instructed to M7C3 and started. Retry processing is performed by applying .

この場合、テーブルのr+¥構成をすることなく再試行
が可能である。また、CP 1.Jlはテーブルの処理
状況を既テーブルのカレントブロック番号エリアを見れ
ば判別できるので、必要があれば、D K tJ 5か
らのファイルのリードとMTU3へのライトの速度の調
節を以降のチェーンするテーブルのサイズ、テーブル数
を変更するごとにより可能である。
In this case, it is possible to retry without configuring the table r+\. Also, CP 1. Jl can determine the processing status of the table by looking at the current block number area of the existing table, so if necessary, adjust the speed of file read from DK tJ 5 and write to MTU 3 for subsequent chained tables. This is possible by changing the size and number of tables.

次にダミーテーブルを使用した間接チェーン化について
説明する。DKU5のソータ時間、ソステムの他の装置
の処理のオーバヘッドにより一時的にテーブルチェーン
が直結できない場合、例えば第10図に示すように有効
テーブル長、制御情報エリア、次のテーブルアドレス、
次のテーブルのテーブル長といった内容をもつダミーテ
ーブルとチェーンを取ることにより、間接チェーンとし
てテーブルのチェーンが可能である。例えば、C))U
lはテーブル(11を作成し、M7C3に対して起動を
かけたいが、テーブル(2)のサイズが決まらない場合
、テーブル(1)の“次のテーブルアドレス”と1次の
テーブルのテーブル長”のエリアに値をセットすること
ができない。このときは、第11図に示したダミーテー
ブルのテーブルアドレスとテーブル長をテーブル(11
の“次のテーブルアドレス”と“次のテーブルのテーブ
ル長”のエリアにセットし、ダミーテーブルの制御情報
エリアのVTフラグは“O”にしてM7C3に起動をか
ける。そして、M7C3がテーブル(11を処理中にテ
ーブル(2)のサイズが決定したら、cpu tはダミ
ーテーブルの“次のテーブルアドレス”と“°次のテー
ブルのテーブル長“のエリアにテーブル(2)のテーブ
ルアドレスとテーブル長を書込み、制御情報エリアのV
Tフラグを“l”にしてダミーテーブルをM7C3のF
IFOI05に格納する。
Next, indirect chaining using a dummy table will be explained. If the table chain cannot be directly connected temporarily due to the sorting time of DKU5 or processing overhead of other SYSTEM devices, for example, as shown in Fig. 10, the effective table length, control information area, next table address, etc.
It is possible to chain tables as an indirect chain by taking a dummy table and chain with contents such as the table length of the next table. For example, C)) U
l is the "next table address" of table (1) and the table length of the primary table if you want to create table (11) and start up M7C3, but the size of table (2) is not determined. value cannot be set in the area of .In this case, the table address and table length of the dummy table shown in Fig.
The VT flag in the control information area of the dummy table is set to "O" and the M7C3 is activated. Then, when the size of table (2) is determined while the M7C3 is processing table (11), CPU t writes table (2) in the "next table address" and "table length of next table" areas of the dummy table. Write the table address and table length of V in the control information area.
Set the T flag to “l” and set the dummy table to F of M7C3.
Store in IFOI05.

FIFOI05はダミーテーブルが格納されるとMPU
104に割込みをかけるように構成されており、MPU
104は割込みがかかると、FIFO105より6次の
テーブルアドレス”と6次のテーブルのテーブル長”を
続出し、RAM107内のテーブル(11の“次のテー
ブルアドレス”と“次のテーブルのテーブル長”のエリ
アに書込む。これにより、テーブル(1)とテーブル(
2)のチェーンが取られ、同様にしてテーブル(2)と
テーブル(3)、テーブル(3)とテーブル(4)とを
例えば第12図に示すようにそれぞれダミーテーブルを
用いて間接チェーン化することにより、M T U 3
のストリーミング機能を1員なわせることをより一層防
くことができる。
FIFOI05 is used by the MPU when the dummy table is stored.
104, and the MPU
When an interrupt occurs, 104 sequentially outputs the 6th table address and table length of the 6th table from the FIFO 105, and stores the table in RAM 107 (11's ``next table address'' and ``table length of the next table''). Write to the area of .This will cause table (1) and table (
The chain 2) is taken, and in the same way, table (2) and table (3) and table (3) and table (4) are made into indirect chains using dummy tables, respectively, as shown in FIG. 12, for example. By this, M T U 3
It is possible to further prevent the streaming function from being used by only one person.

なお、一つのテーブル作成時に次のテーブルのサイズが
分かっている場合にはダミーテーブルを使用することな
く直接に次のテーブルとチ、T−−ン化することができ
るので、M7C3の起動時期が多少遅れることを許容す
るならば、本発明の別の実施例として例えば第3図にお
いてテーブルfl+の生成時1υ1をテーブル(2)の
生成が可11ピな時間まで延ばす方法も採用することが
できる。
Note that if you know the size of the next table when creating one table, you can directly link it to the next table without using a dummy table, so the timing for starting M7C3 will be faster. If some delay is acceptable, as another embodiment of the present invention, for example, in FIG. 3, it is possible to adopt a method in which 1υ1 at the time of generating table fl+ is delayed until the time when table (2) can be generated. .

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

以上説明したように、本発明は、D K IJから取得
した複数ブロックのデータが格納されているバ7フアの
位置やサイズ等を記述するテーブルをMTCがM M 
[I J二から引取り、その内容に従ってMMIJトの
バッファからのデータの読出しとM ′FtJへの転送
を行なうものであり、MTUへはテーブルに含まれるブ
r1ツク故分だけのデータが連続して出力されるので7
11気テープの停止頻度を下げることができ、またMT
CからCPUへのυ1込みは正常な場合テーブルに含ま
れるプロ、り故について1回となってCPUの負荷が軽
減する。従って、D K UからMTUへのファイルの
論理的コピーをM T IJのストリーミング機能を最
大限に活かしてテープ走行の停止頻度を下げて行なわゼ
ることができる。
As explained above, the present invention allows the MTC to create a table that describes the location, size, etc. of the buffer in which multiple blocks of data acquired from the DK IJ are stored.
[The data is taken from IJ2, and according to its contents, data is read from the MMIJ buffer and transferred to M'FtJ, and data corresponding to the blocks included in the table are continuously transferred to MTU. 7.
It is possible to reduce the frequency of stopping the 11-ki tape, and it is also possible to
If υ1 is included in the table from C to the CPU, it will only be sent once for each program included in the table, and the load on the CPU will be reduced. Therefore, it is possible to logically copy files from the DKU to the MTU by making full use of the streaming function of the MTIJ and reducing the frequency with which tape running is stopped.

また、次のテーブルのテーブル長、7ドレスおよび制御
エリアを有するダミーテーブルを使用した間接チェーン
化を採用すれば、テーブルの生成時!υ1を早めること
ができるとともに途中で次のテーブルの生成が間に合わ
ないことから磁気テープの走行が停止してしまうことも
極力防止することができ、より一層MTUのストリーミ
ング機能を発揮させることができる。
In addition, if you use indirect chaining using a dummy table with the table length of the next table, 7 dresses, and a control area, when the table is generated! υ1 can be accelerated, and it is also possible to prevent as much as possible from stopping the running of the magnetic tape due to the inability to generate the next table in time, and the streaming function of the MTU can be further utilized.

4.121面の補筆な説明 第1図は本発明の一実施例の要部ブロック図、第2図は
本発明が適用されるシステムの構成例を示す図、 第3図はDKU5からMTIJ3へのファイルの論理的
コピーが行なわれた際のDKU5−DKU4−CPU1
7.MTC2−MTU3におけるデータ、毒令等の臘、
れを示す実施例の動作説明図、第4図はD +’<”+
u 5からMTU3へのファイルの論理的コピーカ;i
テなわれた際にCPUI−MTC2−MTU3間で実施
される処理の一例を示す実施例の動作説明、図、 第5図はM T’:’C2内での処理の一例を示すI、
I!すれ図、 第6図はテーブル内容の一例を示す図、厄。
4.Additional explanation for page 121 Figure 1 is a block diagram of the main parts of an embodiment of the present invention, Figure 2 is a diagram showing an example of the configuration of a system to which the present invention is applied, Figure 3 is from DKU5 to MTIJ3 DKU5-DKU4-CPU1 when a logical copy of the file is performed
7. Data on MTC2-MTU3, poison orders, etc.
An explanatory diagram of the operation of the embodiment showing this, FIG. 4 is D +'<”+
Logical copy of file from u 5 to MTU3; i
FIG. 5 is a diagram showing an example of the processing performed between the CPUI-MTC2-MTU3 when the CPU is disconnected.
I! Figure 6 is a diagram showing an example of table contents.

第7図はテニ・プル中の:し制御情報エリアの内容例を
示す図、  ゛ 第8図はMTC2のFIFOIIIにテーブルのブロッ
ク情報が格納された状態を示す図、第9図はMMUIO
上に展開されるテーブルチェーンの概念図、 第1O図はダミーテーブルの内容説明図、第1+図はF
IFOI05にダミーテーブルの情報が格納された状態
を示す図、 第12図はダミーテーブルを用いた間接チェーン化の説
明図および、 第13図は従来の処理の流れを示す図である6図におい
て、lはCPU、2はMTC23はMTI)、4はDK
(’、、5はDKU、101はアドレスレジスタ、+0
2はデータレジスタ、103はバス制御回路、+04は
マイクロプロセッサ、105.111はFIFO110
6はROM、+07はRAM、108はアドレスカウン
タ、109はデータバッファ、110はデータカウンタ
、112は制御回路である。
Figure 7 is a diagram showing an example of the contents of the control information area during teni-pull, Figure 8 is a diagram showing a state in which table block information is stored in FIFO III of MTC2, and Figure 9 is a diagram showing an example of the contents of the control information area during ten pull.
A conceptual diagram of the table chain developed above, Figure 1O is an explanatory diagram of the contents of the dummy table, Figure 1+ is F
A diagram showing a state in which dummy table information is stored in IFOI05, FIG. 12 is an explanatory diagram of indirect chaining using a dummy table, and FIG. 13 is a diagram showing the flow of conventional processing. l is CPU, 2 is MTC23 is MTI), 4 is DK
(',, 5 is DKU, 101 is address register, +0
2 is a data register, 103 is a bus control circuit, +04 is a microprocessor, 105.111 is a FIFO 110
6 is a ROM, +07 is a RAM, 108 is an address counter, 109 is a data buffer, 110 is a data counter, and 112 is a control circuit.

特許出19n人11木電気株式会社 代理人ブr理士 境  !& 巳 デ゛−タ処理システムの構成例は示す図第 2 図 テーフ′ルの内容の一例と示す図 第 6 因 制御情報エリアの内8と示すぽ 第 7 囚 FIFOlllの内容説明図 第 8 圃 り一−−−−−−−−−−−−−−−−−−一−−−−
−−−−−−−−−」テーブルチェーンの4既念図 第 9 図 ダミーテーブルの内容説明図 第10  図 FIFO105の内容説明図 第 11  図 ダミーテーブル乞用いた間接チェーシ化の説明2第12
  図
Patent issued 19n person 11 Kidenki Co., Ltd. agent Buri R. Sakai! An example of the configuration of the data processing system is shown in Fig. 2. Fig. 2 shows an example of table contents. Riichi---------------
-------------'' 4 existing diagrams of table chain Figure 9 Diagram to explain the contents of dummy table Figure 10 Figure to explain the contents of FIFO 105 Figure 11 Figure 2 Explanation of indirect chain conversion using dummy table 12
figure

Claims (1)

【特許請求の範囲】 磁気ディスク装置に格納されたファイルを主記憶装置を
介してストリーミング機能を有する磁気テープ装置に論
理的コピーをする入出力制御方式において、 前記磁気ディスク装置に格納されたファイルを1ブロッ
クずつ前記主記憶装置に設けられたバッファに順次格納
する格納手段と、 該格納手段によって所定数のブロックが前記主記憶装置
のバッファに格納された後に、該バッファの位置、サイ
ズおよびその他の制御情報を記述した互いにチェーンさ
れる複数のテーブルを前記主記憶装置上に作成するテー
ブル作成手段と、該テーブル作成手段により作成され互
いにチェーンされるテーブルを引取り、その内容に従っ
て前記バッファに格納されたデータを前記磁気テープ装
置に転送して書込ませる磁気テープ制御装置とを具備し
たことを特徴とする入出力制御方式。
[Claims] An input/output control method for logically copying files stored in a magnetic disk device to a magnetic tape device having a streaming function via a main storage device, comprising: storage means for sequentially storing one block at a time in a buffer provided in the main storage device; and after a predetermined number of blocks are stored in the buffer in the main storage device by the storage device, the location, size, and other information of the buffer are stored. table creation means for creating a plurality of mutually chained tables describing control information on the main storage; and table creation means for receiving the tables created by the table creation means and being chained together and storing them in the buffer according to their contents. An input/output control system comprising: a magnetic tape control device that transfers and writes data to the magnetic tape device.
JP60268833A 1985-11-29 1985-11-29 Input/output control system Pending JPS62128322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60268833A JPS62128322A (en) 1985-11-29 1985-11-29 Input/output control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60268833A JPS62128322A (en) 1985-11-29 1985-11-29 Input/output control system

Publications (1)

Publication Number Publication Date
JPS62128322A true JPS62128322A (en) 1987-06-10

Family

ID=17463894

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60268833A Pending JPS62128322A (en) 1985-11-29 1985-11-29 Input/output control system

Country Status (1)

Country Link
JP (1) JPS62128322A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339426A (en) * 2004-05-31 2005-12-08 Fujitsu Ltd Data processing system and setting method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339426A (en) * 2004-05-31 2005-12-08 Fujitsu Ltd Data processing system and setting method

Similar Documents

Publication Publication Date Title
JPS627572B2 (en)
JPH03204023A (en) Duplexing control system for magnetic recorder
US7596639B2 (en) Skip mask table automated context generation
JPS62128322A (en) Input/output control system
US5581458A (en) Bufered intelligent digital tape controller with onboard ECC and featuring global control variables
JPH0793101A (en) Data backup device
JPS6198437A (en) Input/output control system
JPS6198436A (en) Input/output control system
JPS58171724A (en) Copy controller of magnetic disc tape
JPS58125128A (en) Computer system
JPS61127026A (en) Optical disk controller
JPS61208119A (en) Disk controller
JPS6347937Y2 (en)
US20060031604A1 (en) DMA transfer apparatus and method of controlling data transfer
JPS6346553A (en) File copying method
JPH01501661A (en) Improved high-speed tag transfer
JPH01226064A (en) Data transfer circuit
JPS6158032A (en) Input and output control system
JPH05181613A (en) Information processor
JP2524620B2 (en) Input / output control method
JP2953874B2 (en) Magnetic tape device control method for input / output channel device
JPS6053326B2 (en) Double data recording method for input/output control equipment
JPS61127025A (en) Optical disk controller
JPH01144276A (en) System for re-formatting magnetic disk in operating
Marrevee The power of the read track and the need for a write track command for disk back-up and restore utilities