JP2000311064A - Control system for buffer in data transfer controller - Google Patents

Control system for buffer in data transfer controller

Info

Publication number
JP2000311064A
JP2000311064A JP11121448A JP12144899A JP2000311064A JP 2000311064 A JP2000311064 A JP 2000311064A JP 11121448 A JP11121448 A JP 11121448A JP 12144899 A JP12144899 A JP 12144899A JP 2000311064 A JP2000311064 A JP 2000311064A
Authority
JP
Japan
Prior art keywords
buffer
magnetic tape
data
data transfer
tape recording
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
JP11121448A
Other languages
Japanese (ja)
Inventor
Hajime Nonaka
肇 野中
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 JP11121448A priority Critical patent/JP2000311064A/en
Publication of JP2000311064A publication Critical patent/JP2000311064A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PROBLEM TO BE SOLVED: To enhance the efficiency of data transfer by performing data transfer control on the basis of the driving condition of a magnetic tape recorder which includes the buildup time until an accumulation quantity of buffer data and magnetic tape recorder reach a stationary speed. SOLUTION: In a main control part 15, it is judged whether data should be written to a magnetic tape recorder 120 from a buffer 11 by using a data transfer time, a total amount of data existing in the buffer 11 at that moment, the buildup time of the magnetic recorder 120 and information stored in a storage part 14. When the condition for writing is met, the main control part 15 drives the magnetic tape recorder 120 and starts a second timer 13. When the magnetic tape recorder 120 is completely activated, the timer value of the second timer 13 is read and stored in a storage part 14. the storage part 14 holds this value and feeds it back to the writing condition. In this way, data transfer control is performed on the basis of the driving condition of the magnetic tape recorder 120.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、磁気テープ制御装
置におけるバッファの制御方式に関し、特にデータ転送
の停止を起すことが無く、効率良くデータ転送を行うこ
とが可能な磁気テープ制御装置におけるバッファの制御
方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer control method in a magnetic tape control device, and more particularly, to a buffer control method in a magnetic tape control device capable of performing data transfer efficiently without stopping data transfer. Related to the control method.

【0002】[0002]

【従来の技術】図8は、従来の大型コンピュータの外部
記憶装置として使用する磁気テープ制御装置におけるバ
ッファの制御方式の一例を示す図である。図8に示すよ
うに、この方式は、データを送出する上位装置100
と、磁気テープ記録装置120を制御する磁気テープ制
御装置110とを備えてなる。この磁気テープ制御装置
110は、上位装置100からのデータを一時的に格納
するバッファ111と、これらの構成要素100,11
1,120の制御を行う主制御部112から構成され
る。
2. Description of the Related Art FIG. 8 is a diagram showing an example of a buffer control method in a conventional magnetic tape control device used as an external storage device of a large computer. As shown in FIG. 8, this method uses a host device 100 that sends data.
And a magnetic tape control device 110 for controlling the magnetic tape recording device 120. The magnetic tape control device 110 includes a buffer 111 for temporarily storing data from the higher-level device 100, and these components 100, 11
It is composed of a main control unit 112 for controlling 1, 120.

【0003】これらの構成要素100,111,120
は、それぞれ概略つぎのように動作する。上位装置10
0は、主制御部112に対してコマンドを送信する。コ
マンドを受信した主制御部112は、上位装置100か
らバッファ111に対してデータを転送する。バッファ
111は受信したデータを格納する。主制御部112は
磁気テープ記録装置を駆動させるための条件(磁気テー
プ記録装置駆動条件)の判断を行い、バッファ111か
ら磁気テープ記録装置120へとデータの転送を行い、
磁気テープ記録装置120を駆動させる。
[0003] These components 100, 111, 120
Operate as follows. Host device 10
0 transmits a command to the main control unit 112. Upon receiving the command, the main control unit 112 transfers data from the host device 100 to the buffer 111. The buffer 111 stores the received data. The main control unit 112 determines conditions for driving the magnetic tape recording device (magnetic tape recording device driving conditions), transfers data from the buffer 111 to the magnetic tape recording device 120,
The magnetic tape recording device 120 is driven.

【0004】図9は、前記構成のバッファ制御方式の動
作を示すフローチャートである。先ず、上位装置100
が主制御部112へコマンドを送信する。主制御部11
2は上位装置100からバッファ111へデータ転送を
開始させる(ステップA1)。主制御部112はバッフ
ァ111内のデータ量を見ながら書き込み条件の判断を
行う(ステップA2)。磁気テープ記録装置120の駆
動条件が成立していなければ(ステップA2、ノー)、
再びステップA1へと戻る。磁気テープ記録装置駆動条
件が成立していれば(ステップA2、イエス)、バッフ
ァ111から磁気テープ記録装置120へとデータ転送
を開始させる(ステップA3)。
FIG. 9 is a flowchart showing the operation of the buffer control system having the above-described configuration. First, the host device 100
Transmits a command to the main control unit 112. Main control unit 11
2 starts data transfer from the host device 100 to the buffer 111 (step A1). The main control unit 112 determines the write condition while observing the amount of data in the buffer 111 (step A2). If the driving condition of the magnetic tape recording device 120 is not satisfied (step A2, no),
It returns to step A1 again. If the magnetic tape recording device drive condition is satisfied (step A2, YES), data transfer from the buffer 111 to the magnetic tape recording device 120 is started (step A3).

【0005】もし、既にバッファ111が満杯になって
いるならば(ステップA4、イエス)、上位装置100
からバッファ111へのデータ転送を中止させる(ステ
ップA7)。また、バッファ111が満杯ではなく、バ
ッファ111が空で無いならば、引き続きバッファ11
1から磁気テープ記録装置120へのデータ転送を行う
(ステップA5、ノー)。バッファ111が空であるな
らば(ステップA5、イエス)、磁気テープ記録装置1
20を停止させる(ステップA6)。そして、主制御部
112に上位装置100からのコマンドが有るならば、
主制御部112は上位装置100からバッファ111へ
のデータ転送を行う(ステップA1へ戻る)。主制御部
112にコマンドが無いならば(ステップA8、ノ
ー)、磁気テープ制御装置110は動作を終了する。
If the buffer 111 is already full (step A4, Yes), the host device 100
Then, the data transfer to the buffer 111 is stopped (step A7). If the buffer 111 is not full and the buffer 111 is not empty, the buffer 11
1 to the magnetic tape recording device 120 (step A5, No). If the buffer 111 is empty (step A5, Yes), the magnetic tape recording device 1
20 is stopped (step A6). If the main control unit 112 has a command from the host device 100,
The main control unit 112 transfers data from the host device 100 to the buffer 111 (return to step A1). If there is no command in the main control unit 112 (step A8, No), the magnetic tape control device 110 ends the operation.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、この従
来技術には次の問題点があった。即ち、バッファ111
の磁気テープ記録装置駆動条件は一定であるために、上
位装置100からの転送速度が変動することによって容
易にバッファ111満杯及びバッファ111空を招きや
すく、磁気テープ記録装置120の停止(ステップA
6)及び、上位装置100からのデータ転送停止(ステ
ップA7)が頻発し、このため、上位装置100からバ
ッファ111を介して磁気テープ記録装置120へデー
タを転送する効率が低下することである。
However, this prior art has the following problems. That is, the buffer 111
Since the drive condition of the magnetic tape recording device is constant, the transfer speed from the host device 100 fluctuates, so that the buffer 111 is easily filled up and the buffer 111 becomes empty, and the magnetic tape recording device 120 is stopped (step A).
6) Also, data transfer from the higher-level device 100 stops frequently (step A7), and the efficiency of transferring data from the higher-level device 100 to the magnetic tape recording device 120 via the buffer 111 is reduced.

【0007】そこで本発明の課題は、上位装置からバッ
ファを介して磁気テープ記録装置へデータを転送する場
合に、データ転送の停止を起すことが無く、効率良くデ
ータ転送をすることが可能な磁気テープ制御装置におけ
るバッファの制御方式を提供することである。
Accordingly, an object of the present invention is to provide a magnetic recording apparatus capable of efficiently transferring data without stopping data transfer when transferring data from a host device to a magnetic tape recording device via a buffer. An object of the present invention is to provide a buffer control method in a tape control device.

【0008】[0008]

【課題を解決するための手段】前記課題を解決するため
に本発明は、上位装置が持つデータを、データ転送制御
装置が備えるバッファを介して磁気テープ記録装置に書
き込むデータ転送制御装置におけるバッファの制御方式
において、前記バッファのデータの蓄積量および前記磁
気テープ記録装置が定常速度に達するまでの立上り時間
を含む磁気テープ記録装置の駆動条件に基づいて前記デ
ータの転送制御を行うことを特徴とする。
SUMMARY OF THE INVENTION In order to solve the above-mentioned problems, the present invention provides a data transfer control device for writing data held by a host device to a magnetic tape recording device via a buffer provided in the data transfer control device. In the control method, the data transfer control is performed based on a drive condition of the magnetic tape recording device including a storage amount of data in the buffer and a rise time until the magnetic tape recording device reaches a steady speed. .

【0009】このようにすれば、バッファのデータの蓄
積量および前記磁気テープ記録装置が定常速度に達する
までの立上り時間等の変動する要因を含む磁気テープ記
録装置の駆動条件に基づいて微調整を行いつつデータの
転送制御を行うので、データ転送の停止を起すことが無
く、効率良くデータ転送をすることが可能となる。
With this configuration, fine adjustment can be performed based on the driving conditions of the magnetic tape recording apparatus, including the amount of data stored in the buffer and the fluctuation factors such as the rise time until the magnetic tape recording apparatus reaches a steady speed. Since the data transfer control is performed while the data transfer is being performed, the data transfer can be efficiently performed without stopping the data transfer.

【0010】[0010]

【発明の実施の形態】以下、本発明を図示の実施例に基
づいて説明する。なお、既に説明した部分には同一符号
を付し、重複記載を省略する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the illustrated embodiment. Note that the same reference numerals are given to the already described portions, and redundant description is omitted.

【0011】[I]第1実施例 図1を参照すると、本実施例は、大別してデータを送出
する上位装置100と、磁気テープ記録装置120を制
御する磁気テープ制御装置10と、磁気テープ記録装置
120からなる。
[I] First Embodiment Referring to FIG. 1, this embodiment is roughly divided into a high-order device 100 for sending data, a magnetic tape control device 10 for controlling a magnetic tape recording device 120, and a magnetic tape recording device. It comprises the device 120.

【0012】磁気テープ制御装置10は、上位装置10
0からのデータを一時的に格納するバッファ11と、
「第1監視手段」をなすデータの転送時間を計測する第
1タイマ12と、「第2監視手段」をなす磁気テープ記
録装置120の立上がり時間を計測する第2タイマ13
と、該第2タイマ13の計測値およびバッファ11内の
データ量を記憶する記憶部14と、これらの構成要素1
00,120,11,12,13,14の制御を行う主
制御部15とを備えて構成される。ここに、磁気テープ
記録装置120の立上り時間とは、データを安定して記
録するのに必要な定常速度に達するまでの時間をいう。
The magnetic tape control device 10 includes a host device 10
A buffer 11 for temporarily storing data from 0;
A first timer 12 for measuring a data transfer time forming a "first monitoring means" and a second timer 13 for measuring a rise time of a magnetic tape recording device 120 forming a "second monitoring means"
A storage unit 14 for storing the measured value of the second timer 13 and the amount of data in the buffer 11;
00, 120, 11, 12, 13, and 14 are provided. Here, the rise time of the magnetic tape recording device 120 refers to a time required to reach a steady speed required for stably recording data.

【0013】これらの構成要素100,120,11,
12,13,14は、それぞれ概略次のように動作す
る。上位装置100は主制御部15に対してコマンドを
送信する。コマンドを受信した主制御部112は、上位
装置100からバッファ11に対してデータを転送させ
る。バッファ11は受信したデータを格納する。この
時、第1タイマ12は転送時間を計測し、主制御部15
に通知する。主制御部15は記憶部14の値とバッファ
11からデータ量を得て、バッファ11から磁気テープ
記録装置120へとデータの転送の判断を行い、磁気テ
ープ記録装置120を駆動させる。この時、第2タイマ
13は磁気テープ記録装置120が立ち上がる時間を測
定し、主制御部15に通知し、記憶部14にその値を保
存する。
These components 100, 120, 11,
12, 13, and 14 operate as follows. The host device 100 transmits a command to the main control unit 15. The main control unit 112 that has received the command causes the host device 100 to transfer data to the buffer 11. The buffer 11 stores the received data. At this time, the first timer 12 measures the transfer time, and the main control unit 15
Notify. The main control unit 15 obtains the value of the storage unit 14 and the data amount from the buffer 11, determines the transfer of data from the buffer 11 to the magnetic tape recording device 120, and drives the magnetic tape recording device 120. At this time, the second timer 13 measures the time when the magnetic tape recording device 120 starts up, notifies the main control unit 15 and stores the value in the storage unit 14.

【0014】(1)本実施例の概略動作 図1,図2において、上位装置100は主制御部15に
対して書込みコマンドを送出すると、コマンドを受領し
た主制御部15は、上位装置100からバッファ11に
対して受領した書込みデータの転送を行う(ステップS
1)。この時、主制御部15は第1タイマ12を用いて
一定量のデータの転送時間を計測する(ステップS
2)。
(1) Schematic Operation of the Present Embodiment In FIGS. 1 and 2, when the host device 100 sends a write command to the main control unit 15, the main control unit 15 that has received the command transmits the write command from the host device 100. The received write data is transferred to the buffer 11 (step S
1). At this time, the main control unit 15 measures the transfer time of a certain amount of data using the first timer 12 (Step S).
2).

【0015】主制御部15は、データ転送時間と、バッ
ファ11内にその時点で存在するデータの総量(バッフ
ァ内データ量)と、磁気テープ記録装置120の立ち上
がり時間と、記憶部14に記憶された情報(次に説明す
る)とを用いて、バッファ11から磁気テープ記録装置
120へデータを書込むか否かを判断する(ステップS
3)。
The main control unit 15 stores the data transfer time, the total amount of data existing in the buffer 11 at that time (the amount of data in the buffer), the rise time of the magnetic tape recording device 120, and the storage unit 14. It is determined whether data is to be written from the buffer 11 to the magnetic tape recording device 120 using the information (described below) (step S).
3).

【0016】書込む為の条件(磁気テープ記録装置駆動
条件)が成立した時(ステップS3、イエス)、主制御
部15は磁気テープ記録装置120を駆動させ、第2タ
イマ13をスタートさせる(ステップS4)。磁気テー
プ記録装置120が完全に立ち上がったならば(ステッ
プS5、イエス)、第2タイマ13のタイマ値を読み込
み、記憶部14に記憶させる(ステップS6)。記憶部
14はこの値を保持し、書き込み条件(磁気テープ記録
装置駆動条件)にフィードバックさせる(ステップS
7)。
When the condition for writing (drive condition of the magnetic tape recording device) is satisfied (step S3, Yes), the main controller 15 drives the magnetic tape recording device 120 and starts the second timer 13 (step S3). S4). When the magnetic tape recording device 120 has completely started up (step S5, Yes), the timer value of the second timer 13 is read and stored in the storage unit 14 (step S6). The storage unit 14 holds this value and feeds it back to the writing condition (magnetic tape recording device driving condition) (Step S
7).

【0017】このようにしてバッファ11、第1タイマ
12及び第2タイマ13、記憶部14を設けることで磁
気テープ記録装置120を駆動する条件(磁気テープ記
録装置駆動条件)を微調整し、磁気テープ記録装置12
0の起動から完全に立ち上がるまでの時間の損失を軽減
し、高速にデータを書込むことが可能となる(ステップ
S8)。
By providing the buffer 11, the first timer 12, the second timer 13, and the storage unit 14 in this manner, the conditions for driving the magnetic tape recording device 120 (the magnetic tape recording device driving conditions) are finely adjusted. Tape recording device 12
It is possible to reduce the loss of the time from the start of 0 to the complete startup and to write data at high speed (step S8).

【0018】(2)詳細動作 次に、図1及び、図3のフローチャートを参照して本実
施例の全体の動作について詳細に説明する。
(2) Detailed Operation Next, the overall operation of the present embodiment will be described in detail with reference to the flowcharts of FIGS.

【0019】先ず、上位装置100が主制御部15へコ
マンドを送信する。主制御部15は上位装置100から
バッファ11へデータ転送を開始させる(図3のステッ
プA1)。次に第1タイマ12をスタートさせる(ステ
ップA2)。次にバッファ11内に一定量のデータが転
送されたならば(ステップA3、イエス)、第1タイマ
12の読み込みを行い(ステップA4)、この第1タイ
マ12の値、およびバッファ11のデータ量から磁気テ
ープ記録装置の駆動判定(磁気テープ装置駆動条件の判
定)を行う(ステップA5)。一定量以上のデータが転
送されていないならば(ステップA3、ノー)、再び一
定量以上のデータ転送がなされるまで第1タイマ12を
止めずに、ステップA3に戻る。
First, the host device 100 transmits a command to the main control unit 15. The main control unit 15 starts data transfer from the host device 100 to the buffer 11 (step A1 in FIG. 3). Next, the first timer 12 is started (step A2). Next, when a certain amount of data is transferred into the buffer 11 (step A3, YES), the first timer 12 is read (step A4), and the value of the first timer 12 and the data amount of the buffer 11 are read. To determine the drive of the magnetic tape recording device (determination of the drive condition of the magnetic tape device) (step A5). If a certain amount or more of data has not been transferred (step A3, No), the process returns to step A3 without stopping the first timer 12 until a certain amount or more of data is transferred again.

【0020】ここで、磁気テープ記録装置駆動条件を例
示する。バッファ11のサイズをBキロバイトとする。
また、第1タイマ12の読み込み条件となるデータ転送
量をdキロバイトとし、その時のタイマの値をTミリ
秒、磁気テープ記録装置120の立ち上がり時間をDミ
リ秒とする。主制御部15は、バッファ11からデータ
量がbキロバイトであることを得る。現在のデータ転送
速度を保ったままDミリ秒データが転送され続けたと仮
定した場合の上位装置100から転送されると予測され
るデータ量は、{d(キロバイト)÷T(ミリ秒)×
D(ミリ秒)}であるから、磁気テープ記録装置駆動条
件を、{d(キロバイト)÷T(ミリ秒)×D(ミリ
秒)+b(キロバイト)≧ B}とする。
Here, the driving conditions of the magnetic tape recording device will be exemplified. The size of the buffer 11 is B kilobytes.
Further, the data transfer amount serving as a read condition of the first timer 12 is d kilobytes, the timer value at that time is T milliseconds, and the rise time of the magnetic tape recording device 120 is D milliseconds. The main controller 15 obtains from the buffer 11 that the data amount is b kilobytes. Assuming that D millisecond data is continuously transferred while maintaining the current data transfer speed, the amount of data predicted to be transferred from the higher-level device 100 is {d (kilobytes) ÷ T (milliseconds) ×
D (milliseconds)}, the driving condition of the magnetic tape recording device is {d (kilobytes) {T (milliseconds) × D (milliseconds) + b (kilobytes) ≧ B}.

【0021】磁気テープ記録装置駆動条件が成立してい
なければ(ステップA5、ノー)、再びステップA1へ
と戻る。磁気テープ記録装置駆動条件が成立していれば
(ステップA5、イエス)、主制御部15はこの時のバ
ッファ11内のデータ量を記憶部14にセットし(ステ
ップA6)、第2タイマ13をスタートさせ、磁気テー
プ記録装置120を駆動させる。磁気テープ記録装置1
20が完全に立ち上がったならば(ステップA8、イエ
ス)、第2タイマ13の値を読み込み、記憶部14に第
2タイマ13の値を通知し(ステップA9)、バッファ
11から磁気テープ記録装置120へとデータ転送を開
始させる(ステップA10)。
If the magnetic tape recording device driving conditions are not satisfied (step A5, NO), the process returns to step A1. If the magnetic tape recording device drive condition is satisfied (step A5, Yes), the main control unit 15 sets the data amount in the buffer 11 at this time in the storage unit 14 (step A6), and sets the second timer 13 to Then, the magnetic tape recording device 120 is driven. Magnetic tape recording device 1
If 20 has completely started (step A8, YES), the value of the second timer 13 is read, and the value of the second timer 13 is notified to the storage unit 14 (step A9). To start data transfer (step A10).

【0022】もし、バッファ11が満杯になっているな
らば(ステップA11、イエス)、上位装置100から
バッファ11へのデータ転送を中止させ(ステップA1
4)、またバッファ11が満杯ではなく、バッファ11
が空で無いならば(ステップA12、ノー)、引き続き
バッファ11から磁気テープ記録装置120へのデータ
転送を行う(ステップA10)。バッファ11が空であ
るならば磁気テープ記録装置を停止させる(ステップA
13)。主制御部15に上位装置100からのコマンド
が有るならば(ステップA15,イエス)、主制御部1
5は上位装置100からバッファ11へのデータ転送を
行う(ステップA1へ戻る)。主制御部15にコマンド
が無いならば(ステップA15、ノー)、磁気テープ制
御装置10は動作を終了する。
If the buffer 11 is full (step A11, Yes), the data transfer from the host device 100 to the buffer 11 is stopped (step A1).
4) Also, the buffer 11 is not full and the buffer 11
Is not empty (step A12, No), the data transfer from the buffer 11 to the magnetic tape recording device 120 is performed (step A10). If the buffer 11 is empty, the magnetic tape recording device is stopped (step A).
13). If the main control unit 15 has a command from the host device 100 (step A15, Yes), the main control unit 1
5 transfers data from the host device 100 to the buffer 11 (return to step A1). If there is no command in the main control unit 15 (step A15, No), the magnetic tape control device 10 ends the operation.

【0023】(3)具体例 次に、図1、及び図3のフローチャート、及び図4,図
5,図6を参照して具体例を用いて説明する。
(3) Specific Example Next, a specific example will be described with reference to the flowcharts of FIGS. 1 and 3 and FIGS. 4, 5, and 6.

【0024】第1具体例 本具体例は、図4に示すように、バッファ11にデータ
を蓄える余力が十分にある場合である。
First Specific Example In this specific example, as shown in FIG. 4, there is a sufficient capacity for storing data in the buffer 11.

【0025】図3に示すように、上位装置100からデ
ータを書込むよう受信した主制御部15は、上位装置1
00からバッファ11に対してデータ転送を行い(ステ
ップA1)、第1タイマ12をスタートさせる(ステッ
プA2)。ここで、図4に示すように、バッファ11の
サイズを500キロバイトであるとする(B=50
0)。また、タイマの読み込み条件となるデータ転送量
を5キロバイトとし(d=5)、磁気テープ記録装置1
20の立ち上がり時間を100ミリ秒と予測する(D=
100)。以上の値から磁気テープ記録装置駆動条件
は、{5(キロバイト)÷T(ミリ秒)×100(ミリ
秒)+ b(キロバイト)≧ 500}となる。
As shown in FIG. 3, the main control unit 15 which has received the data from the higher-level device 100 to write the data,
From 00, data is transferred to the buffer 11 (step A1), and the first timer 12 is started (step A2). Here, as shown in FIG. 4, it is assumed that the size of the buffer 11 is 500 kilobytes (B = 50
0). Further, the data transfer amount serving as a reading condition of the timer is set to 5 kilobytes (d = 5).
20 with a rise time of 100 ms (D =
100). From the above values, the driving condition of the magnetic tape recording device is {5 (kilobytes) {T (milliseconds) × 100 (milliseconds) + b (kilobytes) ≧ 500}.

【0026】この条件を固定させ、以降5キロバイトの
データが上位装置100からバッファ11へ転送される
たびに第1タイマ12を読み込む(ステップA4)。例
えば100キロまでデータをバッファ11に転送させた
後(b=100)、第1タイマ12の読み込みを行った
とする(ステップA3)。ここで、第1タイマ12の値
が5ミリ秒であったとすると(T=5)(ステップA
4)、現在のデータ転送速度を保ったまま100ミリ秒
データが転送され続けたと仮定した場合(図4の予測
線)、{5(キロバイト)÷ 5(ミリ秒)×100
(ミリ秒)+100(キロバイト)=200(キロバイ
ト)<500 }であるから磁気テープ記録装置駆動条
件は成立していない(ステップA5、ノー)。よって引
き続き上位装置100からバッファ11へのデータ転送
を行わせる(ステップA1)。
After fixing this condition, the first timer 12 is read each time 5 kilobytes of data are transferred from the host device 100 to the buffer 11 (step A4). For example, it is assumed that the data is transferred to the buffer 11 up to 100 km (b = 100), and then the first timer 12 is read (step A3). Here, assuming that the value of the first timer 12 is 5 milliseconds (T = 5) (step A).
4), assuming that 100 milliseconds of data are continuously transferred while maintaining the current data transfer rate (the prediction line in FIG. 4), {5 (kilobytes)} 5 (milliseconds) × 100
(Milliseconds) +100 (kilobytes) = 200 (kilobytes) <500 °, so that the magnetic tape recording device driving condition is not satisfied (step A5, no). Therefore, the data transfer from the host device 100 to the buffer 11 is continuously performed (step A1).

【0027】第2具体例 本具体例は、図5に示すように、バッファ11が間もな
く満杯になると予測される場合である。
Second Specific Example In this specific example, as shown in FIG. 5, the buffer 11 is expected to become full soon.

【0028】次に、図5に示すように、400キロバイ
トのデータがバッファ11内にたまった時を考える(b
=400)。この時のタイマ値が同様に5ミリ秒である
とすると磁気テープ記録装置駆動条件は(図5の予測
線)、{5(キロバイト)÷5(ミリ秒)×100(ミ
リ秒)+400(キロバイト)=500(キロバイト)
≧500 }より磁気テープ記録装置120の立ち上が
り時間が終了したと同時にバッファ11が満杯になると
予測されるので、主制御部15は記憶部14に400キ
ロバイトという値を記憶させる。
Next, as shown in FIG. 5, consider the case where 400 kilobytes of data are stored in the buffer 11 (b).
= 400). Assuming that the timer value at this time is also 5 milliseconds, the driving condition of the magnetic tape recording apparatus is as follows (predicted line in FIG. 5): (5 (kilobytes) ÷ 5 (ms) × 100 (ms) +400 ( Kilobytes) = 500 (kilobytes)
Since it is predicted that the rise time of the magnetic tape recording device 120 has expired from ≧ 500 °, the buffer 11 is expected to be full at the same time, so the main control unit 15 stores a value of 400 kilobytes in the storage unit 14.

【0029】磁気テープ記録装置駆動条件を満足させた
ので(ステップA5、イエス)、第2タイマ13をスタ
ートさせ(ステップA7)、磁気テープ記録装置120
を駆動させる。磁気テープ記録装置が完全に立ち上がっ
た状態ならば(ステップA8、イエス)、第2タイマ1
3の読込みを行う。第2タイマ13の値が120ミリ秒
であったとし、この値を記憶部14に通知する(ステッ
プA9)。次にバッファ11から磁気テープ記録装置1
20へとデータ転送を開始させる(ステップA10)。
バッファ11が空になると(ステップA12、イエ
ス)、主制御部15は磁気テープ記録装置120を停止
させ(ステップA13)、さらに主制御部15にコマン
ドがあるとすると(ステップA15、イエス)、再びス
テップA1に戻る。
Since the driving conditions of the magnetic tape recording device have been satisfied (step A5, Yes), the second timer 13 is started (step A7), and the magnetic tape recording device 120 is started.
Drive. If the magnetic tape recording apparatus has completely started up (step A8, Yes), the second timer 1
3 is read. Assuming that the value of the second timer 13 is 120 milliseconds, this value is notified to the storage unit 14 (step A9). Next, from the buffer 11 to the magnetic tape recording device 1
Data transfer is started to step 20 (step A10).
When the buffer 11 becomes empty (Step A12, Yes), the main control unit 15 stops the magnetic tape recording device 120 (Step A13), and when there is a command in the main control unit 15 (Step A15, Yes), the main control unit 15 again operates. It returns to step A1.

【0030】第3具体例 本具体例も図6に示すように、バッファ11が間もなく
満杯になると予測される場合であるが、前記第2具体例
との相違点は、第2具体例で実行した実際の測定値を用
いて駆動条件の微調整を行った点である。
Third Specific Example As shown in FIG. 6, this specific example is also a case where the buffer 11 is expected to be full soon. The difference from the second specific example is that The fine adjustment of the driving conditions was performed using the actual measured values.

【0031】主制御部15にコマンドがあるので上位装
置100からバッファ11にデータ転送を行う(ステッ
プA1)。前記第2具体例で説明した如く記憶部14に
「400キロバイト、120ミリ秒」なる値が記憶され
ているので、磁気テープ記録装置の立ち上がり時間は1
00ミリ秒と予測していたが、この値を用いて磁気テー
プ記録装置駆動条件を変更する。
Since there is a command in the main control unit 15, data transfer is performed from the host device 100 to the buffer 11 (step A1). Since the value "400 kilobytes, 120 milliseconds" is stored in the storage unit 14 as described in the second specific example, the rise time of the magnetic tape recording device is one.
Although it was predicted to be 00 milliseconds, the drive conditions of the magnetic tape recording device are changed using this value.

【0032】即ち、{5(キロバイト) ÷ T(ミリ
秒)× 120(ミリ秒) + b(キロバイト) < 50
0}となる(ステップA5)。380キロバイトのデー
タがバッファ11内にたまった時(b=380)、同様
に第1タイマ12が5ミリ秒の値を読み込んだとするな
らば、{5(キロバイト) ÷ 5(ミリ秒)× 120
(ミリ秒) + 380(キロバイト)=500≧ 50
0} となり、120ミリ秒後にバッファ11が満杯に
なると予測されるので(図6の予測線)、磁気テープ記
録装置駆動条件が成立する。
That is, {5 (kilobytes)} T (milliseconds) × 120 (milliseconds) + b (kilobytes) <50
0 ° (step A5). When 380 kilobytes of data are stored in the buffer 11 (b = 380), similarly, if the first timer 12 reads a value of 5 milliseconds, {5 (kilobytes)} 5 (milliseconds) × 120
(Milliseconds) + 380 (kilobytes) = 500 ≥ 50
0}, and it is predicted that the buffer 11 will be full after 120 milliseconds (predicted line in FIG. 6), so that the magnetic tape recording device driving condition is satisfied.

【0033】以降、同じデータ転送状態ならば、記憶部
14の値をこれから磁気テープ記録装置120が立ち上
がるのに要するであろう時間として磁気テープ記録装置
駆動条件を変更する。ここに述べた磁気テープ記録装置
駆動条件は、タイマの磁気テープ記録装置120の立ち
上がり時間の値のみを用いたものであり、一例に過ぎな
い。例えば記憶部14の第2タイマ13の値とタイマの
値の平均値を使用するなどといった磁気テープ記録装置
駆動条件も例として挙げる事が出来る。
Thereafter, if the data transfer state is the same, the drive condition of the magnetic tape recording device is changed by setting the value of the storage unit 14 to the time required for the magnetic tape recording device 120 to start up. The driving conditions of the magnetic tape recording device described here use only the value of the rise time of the magnetic tape recording device 120 of the timer, and are merely examples. For example, a driving condition of the magnetic tape recording apparatus such as using an average value of the value of the second timer 13 and the value of the timer of the storage unit 14 can be cited as an example.

【0034】[II]第2実施例 本実施例は、バッファ11から磁気テープ記録装置12
0へデータ転送を行う際に、もしバッファ11が満杯に
なった時、上位装置100からバッファ11へのデータ
転送を中止するとともに記憶部14がバッファが満杯に
なった事を記憶するという点が異なる。
[II] Second Embodiment In the present embodiment, the buffer 11 is
When the buffer 11 is full when data is transferred to 0, the data transfer from the host device 100 to the buffer 11 is stopped and the storage unit 14 stores the fact that the buffer is full. different.

【0035】図1および図7のフローチャートを参照し
て本実施例の全体の動作について詳細に説明する。な
お、図7において、ステップB1〜B7は、図3のステ
ップA1〜ステップA7と同一動作であるので、重複説
明を省略する。
The overall operation of the present embodiment will be described in detail with reference to the flowcharts of FIGS. Note that in FIG. 7, steps B1 to B7 are the same operations as steps A1 to A7 in FIG.

【0036】磁気テープ記録装置120が立ち上がり
(図7のステップB8)、第2タイマ13の値を読み込
み、記憶部14に第2タイマ13の値を通知したとする
(ステップB9)。ここでバッファ11から磁気テープ
記録装置120へとデータ転送を開始させた後、バッフ
ァが満杯になったとする(ステップB11、イエス)。
この時、上位装置100からバッファ11へのデータ転
送を中止させ(ステップB14)、バッファが満杯にな
ったことを記憶部14に記憶させる。この後同様の動作
を行い、ステップB1に戻り、磁気テープ記録装置の駆
動条件判定を行うとする(ステップB5)。
Assume that the magnetic tape recording device 120 starts up (step B8 in FIG. 7), reads the value of the second timer 13, and notifies the storage unit 14 of the value of the second timer 13 (step B9). Here, it is assumed that after the data transfer from the buffer 11 to the magnetic tape recording device 120 is started, the buffer becomes full (step B11, Yes).
At this time, the data transfer from the host device 100 to the buffer 11 is stopped (step B14), and the fact that the buffer is full is stored in the storage unit 14. Thereafter, the same operation is performed, and the process returns to step B1 to determine the drive condition of the magnetic tape recording device (step B5).

【0037】この時、記憶部14は第2タイマ13の値
とバッファが満杯になったことを記憶している。バッフ
ァが満杯になったということは、磁気テープ記録装置の
立ち上がり時間が予測していたものよりも小さい事を示
すので、磁気テープ記録装置駆動条件として、現在の判
定条件よりもさらに早目に磁気テープ記録装置を駆動す
れば、バッファ11が満杯になる事を防ぐことが出来る
と予測され、上位装置100からバッファ11へのデー
タ転送中止を防ぐ事ができる。このため、データ転送効
率を向上させることができる。
At this time, the storage unit 14 stores the value of the second timer 13 and the fact that the buffer is full. The fact that the buffer is full indicates that the rise time of the magnetic tape recording device is shorter than expected, so that the magnetic tape recording device drive condition is determined to be shorter than the current judgment condition. By driving the tape recording apparatus, it is predicted that the buffer 11 can be prevented from being full, and the suspension of data transfer from the host apparatus 100 to the buffer 11 can be prevented. For this reason, data transfer efficiency can be improved.

【0038】[0038]

【発明の効果】以上説明したように本発明によれば、バ
ッファのデータの蓄積量および磁気テープ記録装置が定
常速度に達するまでの立上り時間を含む磁気テープ記録
装置の駆動条件に基づいて、微調整を行いつつ前記デー
タの転送制御を行うので、常に高速転送を保ちつつ、バ
ッファを介して上位装置から磁気テープ記録装置へとデ
ータ転送を行うことができる。
As described above, according to the present invention, the fine data is stored on the basis of the driving conditions of the magnetic tape recording device including the amount of data stored in the buffer and the rise time until the magnetic tape recording device reaches a steady speed. Since the data transfer control is performed while performing the adjustment, the data transfer from the host device to the magnetic tape recording device via the buffer can be performed while always maintaining the high-speed transfer.

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

【図1】本発明の第1,第2実施例のシステム構成図で
ある。
FIG. 1 is a system configuration diagram of first and second embodiments of the present invention.

【図2】同第1実施例の概略フローチャートである。FIG. 2 is a schematic flowchart of the first embodiment.

【図3】同第1実施例のフローチャートである。FIG. 3 is a flowchart of the first embodiment.

【図4】バッファが満杯になるまでに余力がある場合の
予測線である。
FIG. 4 is a prediction line in a case where there is a margin until the buffer becomes full.

【図5】バッファが満杯になるまでに余力の無い場合の
予測線である。
FIG. 5 is a prediction line in a case where there is no remaining capacity until the buffer becomes full.

【図6】バッファが満杯になるまでに余力の無い場合の
予測線であるが、図5で実行した実際の測定値を用いて
駆動条件の微調整を行った場合の予測線である。
FIG. 6 is a prediction line in the case where there is no remaining capacity until the buffer is full, but is a prediction line in the case where fine adjustment of the driving condition is performed using the actual measurement value executed in FIG. 5;

【図7】同第2実施例のフローチャートである。FIG. 7 is a flowchart of the second embodiment.

【図8】従来例のシステム構成図である。FIG. 8 is a system configuration diagram of a conventional example.

【図9】従来例のフローチャートである。FIG. 9 is a flowchart of a conventional example.

【符号の説明】[Explanation of symbols]

10 磁気テープ制御装置 11 バッファ 12 第1タイマ 13 第2タイマ 14 記憶部 15 主制御部 100 上位装置 120 磁気テープ記録装置 Reference Signs List 10 magnetic tape control device 11 buffer 12 first timer 13 second timer 14 storage unit 15 main control unit 100 host device 120 magnetic tape recording device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 上位装置が持つデータを、データ転送制
御装置が備えるバッファを介して磁気テープ記録装置に
書き込むデータ転送制御装置におけるバッファの制御方
式において、 前記バッファのデータの蓄積量および前記磁気テープ記
録装置が定常速度に達するまでの立上り時間を含む磁気
テープ記録装置の駆動条件に基づいて前記データの転送
制御を行うことを特徴とするデータ転送制御装置におけ
るバッファの制御方式。
1. A buffer control method in a data transfer control device for writing data held by a higher-level device to a magnetic tape recording device via a buffer provided in the data transfer control device, wherein the data storage amount of the buffer and the magnetic tape A buffer control method in a data transfer control device, wherein the data transfer control is performed based on driving conditions of a magnetic tape recording device including a rise time until the recording device reaches a steady speed.
【請求項2】 前記磁気テープ記録装置が定常速度に達
するまでの時間を計測し、該計測時間を前記磁気テープ
記録装置の駆動条件にフィードバックして転送制御を行
うことを特徴とする請求項1記載のデータ転送制御装置
におけるバッファの制御方式。
2. A transfer control is performed by measuring a time required for the magnetic tape recording device to reach a steady speed, and feeding back the measured time to a driving condition of the magnetic tape recording device. A buffer control method in the data transfer control device described in the above.
【請求項3】 上位装置が持つデータを、データ転送制
御装置が備えるバッファを介して磁気テープ記録装置に
書き込むデータ転送制御装置におけるバッファの制御方
式において、 前記バッファに蓄積されたデータ量を監視する第1監視
手段と、 該第1監視手段の監視結果のデータ量が所定量の場合
に、その所定量データを該バッファから磁気テープ記録
装置への転送を開始する制御を行う主制御手段とを備え
たことを特徴とするデータ転送制御装置におけるバッフ
ァの制御方式。
3. A buffer control method in a data transfer control device for writing data held by a host device to a magnetic tape recording device via a buffer provided in the data transfer control device, wherein the amount of data stored in the buffer is monitored. A first monitoring means, and a main control means for controlling the transfer of the predetermined amount of data from the buffer to the magnetic tape recording device when the data amount of the monitoring result of the first monitoring means is a predetermined amount. A buffer control method in a data transfer control device, comprising:
【請求項4】 前記磁気テープ記録装置が定常状態に達
したか否かを監視する第2監視手段を備え、 前記主制御手段は、前記第2監視手段の監視結果が定常
状態に達したと判断した場合に、前記バッファに蓄えら
れたデータを、該バッファから磁気テープ記録装置への
転送を開始することを特徴とする請求項3記載のデータ
転送制御装置におけるバッファの制御方式。
4. A second monitoring means for monitoring whether or not the magnetic tape recording device has reached a steady state, wherein the main control means determines that the monitoring result of the second monitoring means has reached a steady state. 4. The buffer control method in the data transfer control device according to claim 3, wherein when the determination is made, the transfer of the data stored in the buffer from the buffer to the magnetic tape recording device is started.
【請求項5】 前記磁気テープ記録装置は、コンピュー
タの外部記憶装置であることを特徴とする請求項1乃至
請求項4のいずれかに記載のデータ転送制御装置におけ
るバッファの制御方式。
5. A buffer control method in a data transfer control device according to claim 1, wherein said magnetic tape recording device is an external storage device of a computer.
JP11121448A 1999-04-28 1999-04-28 Control system for buffer in data transfer controller Pending JP2000311064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11121448A JP2000311064A (en) 1999-04-28 1999-04-28 Control system for buffer in data transfer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11121448A JP2000311064A (en) 1999-04-28 1999-04-28 Control system for buffer in data transfer controller

Publications (1)

Publication Number Publication Date
JP2000311064A true JP2000311064A (en) 2000-11-07

Family

ID=14811397

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11121448A Pending JP2000311064A (en) 1999-04-28 1999-04-28 Control system for buffer in data transfer controller

Country Status (1)

Country Link
JP (1) JP2000311064A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007116B2 (en) 2002-09-27 2006-02-28 Kabushiki Kaisha Toshiba Electronic apparatus and startup control method of storage device
US7366863B2 (en) 2004-08-05 2008-04-29 Sony Corporation Memory control apparatus, the program and method, and reproduction apparatus
US7496696B2 (en) 2006-03-10 2009-02-24 International Business Machines Corporation Method and apparatus for evaluating performance on host data transfer within a tape drive
US8756351B2 (en) 2008-10-10 2014-06-17 International Business Machines Corporation Tape drive, tape drive recording system, and method for selecting improved tape speed in response to intermittent read requests

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7007116B2 (en) 2002-09-27 2006-02-28 Kabushiki Kaisha Toshiba Electronic apparatus and startup control method of storage device
US7366863B2 (en) 2004-08-05 2008-04-29 Sony Corporation Memory control apparatus, the program and method, and reproduction apparatus
US7496696B2 (en) 2006-03-10 2009-02-24 International Business Machines Corporation Method and apparatus for evaluating performance on host data transfer within a tape drive
US8756351B2 (en) 2008-10-10 2014-06-17 International Business Machines Corporation Tape drive, tape drive recording system, and method for selecting improved tape speed in response to intermittent read requests

Similar Documents

Publication Publication Date Title
EP0910016B1 (en) Apparatus and method for suspending and resuming software applications on a computer
EP0679983B1 (en) Expansion device with suspend/resume function
TW498307B (en) High reliability storage drive and date write method
US20100332887A1 (en) Storage control device having controller operated according to detection signal derived from monitoring power signal and related method thereof
EP0518624B1 (en) Apparatus and method for suspending and resuming software applications on a computer
EP0935184A2 (en) Information processing apparatus, mode control method and storage medium
US5638307A (en) Apparatus having source power control unit responsive to voltage fluctuation
US5602805A (en) Disk drive apparatus and method including power backup
JP2000311064A (en) Control system for buffer in data transfer controller
JP2005186426A (en) Method of controlling image forming apparatus and image forming apparatus
US6457136B1 (en) Power management method detecting interruption of AC power in suspended state of computer system
US20010026416A1 (en) Magnetic storage and head unload controlling method of magnetic storage
JPH08171459A (en) Information processing system
JPH064228A (en) Semiconductor disk device
JPH0511930A (en) Disk cache device
WO2022038857A1 (en) Terminal device
JP2006007553A (en) Recording device
JPH01184666A (en) External storage device with buffer storage
KR100763860B1 (en) A circuit arrangement and operating procedure for a line-independent device, for playback and/or record, with a long duty cycle time
JP2000123473A (en) Magnetic tape device
JP2000047829A (en) Library type storage and its storing method and storage medium recording control program for the storing method
JPH0561611A (en) Magnetic tape controller
JP2504256B2 (en) Control method of library type magnetic tape subsystem
JPH10187555A (en) Power circuit of storage device
JPH04130916A (en) Electronic disk device