JPH0561611A - Magnetic tape controller - Google Patents

Magnetic tape controller

Info

Publication number
JPH0561611A
JPH0561611A JP22546591A JP22546591A JPH0561611A JP H0561611 A JPH0561611 A JP H0561611A JP 22546591 A JP22546591 A JP 22546591A JP 22546591 A JP22546591 A JP 22546591A JP H0561611 A JPH0561611 A JP H0561611A
Authority
JP
Japan
Prior art keywords
transfer
write buffer
magnetic tape
write
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP22546591A
Other languages
Japanese (ja)
Inventor
Kazuya Shiraishi
和也 白石
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 Software Shikoku Ltd
Original Assignee
NEC Software Shikoku Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Software Shikoku Ltd filed Critical NEC Software Shikoku Ltd
Priority to JP22546591A priority Critical patent/JPH0561611A/en
Publication of JPH0561611A publication Critical patent/JPH0561611A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the interruption of data transfer from a master device to a write buffer or from the write buffer to a magnetic tape device. CONSTITUTION:When data transfer from the master device 11 to the write buffer 16 is started by a write command, a timer 14 is started. A main control part 15 judges optimum timing by considering both of data volume to be transferred to the buffer 16 and transfer time counted up by the timer 14 and starts data transfer to the magnetic tape device 19. Thereby the buffer 16 can be prevented from being turned to an overflow state or an empty state. Consequently the interruption of each transfer can be reduced and data transfer can be efficiently executed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、磁気テープ制御装置に
関し、特に磁気テープ制御装置におけるライトバッファ
の制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic tape controller, and more particularly to a write buffer control system in the magnetic tape controller.

【0002】[0002]

【従来の技術】従来、この種の磁気テープ制御装置で
は、ライト動作時には上位装置からの書込みデータ(以
下、ライトデータと称す)がライトバッファに転送さ
れ、ライトバッファ内に一定量のデータが蓄えられると
磁気テープ装置に対してライトデータの転送を開始し
て、磁気テープ上に記録されている。
2. Description of the Related Art Conventionally, in this type of magnetic tape controller, write data (hereinafter referred to as write data) from a host device is transferred to a write buffer during a write operation, and a fixed amount of data is stored in the write buffer. Then, the transfer of write data to the magnetic tape device is started, and the data is recorded on the magnetic tape.

【0003】[0003]

【発明が解決しようとする課題】上述したように従来の
磁気テープ制御装置は、上位装置からライトバッファへ
のライトデータの転送と、ライトバッファから磁気テー
プ装置へのライトデータの転送とが非同期であるため、
次のような欠点がある。
As described above, in the conventional magnetic tape controller, the transfer of write data from the host device to the write buffer and the transfer of write data from the write buffer to the magnetic tape device are asynchronous. Because there is
It has the following drawbacks.

【0004】一つは、上位装置からライトバッファへの
転送が、ライトバッファから磁気テープ装置への転送よ
りも速いときに、ライトバッファがデータで満たされ、
上位装置からの転送を中断あるいは中止せざるを得な
い。
First, when the transfer from the host device to the write buffer is faster than the transfer from the write buffer to the magnetic tape device, the write buffer is filled with data,
There is no choice but to interrupt or cancel the transfer from the host device.

【0005】他の一つは、上位装置からライトバッファ
への転送が、ライトバッファから磁気テープ装置への転
送よりも遅いときに、ライトバッファが空になり、磁気
テープ装置への転送を中断あるいは中止せざるを得な
い。
The other is that when the transfer from the host device to the write buffer is slower than the transfer from the write buffer to the magnetic tape device, the write buffer becomes empty and the transfer to the magnetic tape device is interrupted or I have no choice but to cancel.

【0006】本発明の目的は、上位装置からライトバッ
ファに転送されるデータ量と時間を監視し、ライトバッ
ファが満杯状態にも空状態にもならないと判断される最
適な頃合を見計らって、ライトバッファから磁気テープ
装置へのライトデータの転送を開始することにより、上
記の欠点を解消し、それぞれの転送の中断を減少させる
ことができ、データ転送の効率化を図れる磁気テープ制
御装置を提供することにある。
The object of the present invention is to monitor the amount and time of data transferred from the host device to the write buffer, and to determine the optimum time when it is determined that the write buffer will not be full or empty. By starting the transfer of write data from the buffer to the magnetic tape device, it is possible to eliminate the above-mentioned drawbacks, reduce the interruption of each transfer, and provide a magnetic tape control device capable of improving the efficiency of data transfer. Especially.

【0007】[0007]

【課題を解決するための手段】本発明の磁気テープ制御
装置は、上位装置から転送されるライトデータを格納す
るライトバッファと、上位装置の命令に応じてライトバ
ッファ及び磁気テープ装置の動作全体を制御する主制御
部と、ライトバッファ内のデータ量を検出する検出手段
と、ライトバッファへのデータ転送時間を監視するタイ
マーとを有し、上位装置からライトバッファへのライト
データの転送が開始されたときにタイマーをスタートさ
せ、主制御部により検出手段で検出されたライトバッフ
ァ転送されるデータ量とタイマーで計られた転送時間と
によりライトデータの転送開始時を判断し、ライトデー
タを磁気テープ装置へ転送している。
SUMMARY OF THE INVENTION A magnetic tape controller according to the present invention comprises a write buffer for storing write data transferred from a host device and an overall operation of the write buffer and the magnetic tape device in response to a command from the host device. It has a main control unit for controlling, a detection unit for detecting the amount of data in the write buffer, and a timer for monitoring the data transfer time to the write buffer, and the transfer of the write data from the host device to the write buffer is started. When the timer starts, the main control unit determines the start time of the write data transfer based on the amount of data transferred by the write buffer detected by the detection unit and the transfer time measured by the timer. Transferring to the device.

【0008】[0008]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0009】図1は本発明の一実施例の磁気テープ制御
装置のブロック図である。
FIG. 1 is a block diagram of a magnetic tape controller according to an embodiment of the present invention.

【0010】図1において、本実施例の磁気テープ制御
装置13は、上位装置11から転送されるライトデータ
12を格納するライトバッファ16と、上位装置の命令
に応じてライトバッファ及び磁気テープ装置19の動作
を全体的に制御する主制御部15と、ライトバッファ内
のデータ量の検出手段17と、ライトバッファへのデー
タ転送時間を監視するタイマー14とを備えている。次
に、本実施例の磁気テープ制御装置のライト時の全体的
動作を説明する。上位装置11から転送されてくるライ
トデータ12と磁気テープ装置19へ転送するライトデ
ータ18とは非同期であるため、ライトデータ12を一
度ライトバッファ16に格納しておき、主制御部15に
てライトバッファ16内にある程度ライトデータが蓄え
られる頃合を見計らって、磁気テープ装置19への転送
を開始する。すなわち、本発明の特徴は、前述の主制御
部15がライトデータ18の転送を開始する頃合につい
て考慮したことにある。図2は本実施例のライトデータ
の転送開始の頃合を示したライトバッファの構成図であ
る。図2は、本発明の一実施例として、ライトバッファ
内のライトデータ量と転送開始の頃合について示したも
のであり、上位装置からの転送が遅い時には、ライトバ
ッファにある程度データが入ってから磁気テープ装置に
対して転送を開始し、“ライトバッファが空(EMPT
Y)になってしまった為に磁気テープ装置への転送を中
止する”という状態を防ぐ。逆に、上位装置からの転送
が速い時には、ライトバッファ内にあまりデータが入っ
てなくても磁気テープ装置に対して転送を開始し、“ラ
イトバッファが満杯(FULL)になってしまった為に
上位装置からの転送を中止する”という状態を防ぐ。こ
こで、上記実施例における具体的な制御動作を図3を参
照して説明する。
In FIG. 1, the magnetic tape controller 13 of the present embodiment has a write buffer 16 for storing the write data 12 transferred from the host device 11 and a write buffer and magnetic tape device 19 in response to a command from the host device. The main control section 15 for controlling the operation of the whole of the above, the detecting means 17 for detecting the amount of data in the write buffer, and the timer 14 for monitoring the data transfer time to the write buffer. Next, the overall operation of the magnetic tape controller of this embodiment during writing will be described. Since the write data 12 transferred from the higher-level device 11 and the write data 18 transferred to the magnetic tape device 19 are asynchronous, the write data 12 is once stored in the write buffer 16 and the main controller 15 writes it. When the write data is stored in the buffer 16 to some extent, the transfer to the magnetic tape device 19 is started. That is, the feature of the present invention is to consider the time when the above-mentioned main control unit 15 starts the transfer of the write data 18. FIG. 2 is a configuration diagram of the write buffer showing the time when the transfer of the write data according to the present embodiment is started. FIG. 2 shows, as an embodiment of the present invention, the write data amount in the write buffer and the timing of the transfer start. Transfer is started to the tape device, and "Write buffer is empty (EMPT
Y)), the transfer to the magnetic tape device is stopped. ”Conversely, when the transfer from the host device is fast, even if there is not much data in the write buffer, the magnetic tape The transfer is started to the device, and the state of “stopping the transfer from the host device because the write buffer is full (FULL)” is prevented. Will be described with reference to FIG.

【0011】図3は本実施例の磁気テープ制御装置の制
御動作の処理を示すフローチャートである。
FIG. 3 is a flowchart showing the processing of the control operation of the magnetic tape controller of this embodiment.

【0012】まず、上位装置からライトバッファへの転
送が開始されると(ステップ31)、同時にタイマーを
スタートさせる(ステップ32)。上位装置からのライ
トデータがライトバッファに転送されている間、主制御
部はライトバッファに転送されるデータ量と転送開始か
らの時間を監視し(ステップ33/34)、転送開始に
適当な頃合であると判断したときに(ステップ35)、
磁気テープ装置に対してライトデータの転送を開始する
(ステップ36)。このステップ(32〜35)が、本
発明の主要部分となるところである。ここで、転送開始
に適当な頃合であるかという判断についてであるが、こ
れは転送速度が遅くてもデータ量が多ければ転送開始す
る、あるいは、転送速度が速ければデータ量が少なくて
も転送開始するという意味であり、例えば、次のような
関数が考えられる。
First, when the transfer from the host device to the write buffer is started (step 31), the timer is simultaneously started (step 32). While the write data from the higher-level device is being transferred to the write buffer, the main control unit monitors the amount of data transferred to the write buffer and the time from the start of transfer (step 33/34), and determines the appropriate time for the start of transfer. When it is determined that (step 35),
The transfer of write data to the magnetic tape device is started (step 36). This step (32 to 35) is the main part of the present invention. Here, regarding the judgment as to whether it is an appropriate time to start the transfer, this is to start the transfer if the data amount is large even if the transfer speed is slow, or to transfer even if the data amount is small if the transfer speed is fast. It means to start, and the following function can be considered, for example.

【0013】転送速度×データ量>一定値、但し、これ
は、前述の条件を率直に表現した単なる一例であり、本
発明はこの判断に転送速度あるいは転送時間を含むこと
であり、ここで示した関数自体は特に規定しない。参考
までに以降の処理を説明すると、ライトバッファから磁
気テープ装置への転送が開始されると(ステップ3
6)、ライトバッファ内のデータ量を監視してライトバ
ッファが満杯になれば(ステップ37)、上位装置から
ライトバッファへの転送を中止し(ステップ310)、
ライトバッファが空になれば(ステップ38)、ライト
バッファから磁気テープ装置への転送を中止する(ステ
ップ311)。これらの監視は、ライトデータの転送が
全て終了するまで続けられる(ステップ39)。以上の
ようにステップ(ステップ32〜35)が実行された場
合は、ライトバッファの満杯状態あるいは空状態をでき
る限り回避することができ、データ転送の中断/再開の
制御が必要でなくなる。
Transfer rate × data amount> constant value, but this is merely an example in which the above condition is expressed frankly, and the present invention includes the transfer rate or the transfer time in this judgment, which is shown here. The function itself is not specified. For reference, the following processing will be described. When the transfer from the write buffer to the magnetic tape device is started (step 3
6) If the amount of data in the write buffer is monitored and the write buffer becomes full (step 37), the transfer from the host device to the write buffer is stopped (step 310),
When the write buffer becomes empty (step 38), the transfer from the write buffer to the magnetic tape device is stopped (step 311). These monitoring operations are continued until the write data transfer is completed (step 39). When the steps (steps 32 to 35) are executed as described above, the full state or the empty state of the write buffer can be avoided as much as possible, and the control of suspending / resuming the data transfer becomes unnecessary.

【0014】[0014]

【発明の効果】以上説明したように、本発明の磁気テー
プ続制御装置は、上位装置からライトバッファに転送さ
れるデータ量と時間を監視し、ライトバッファが満杯状
態にも空状態にもならないと判断される最適な頃合を見
計らって、ライトバッファから磁気テープ装置へのライ
トデータの転送を開始することにより、それぞれの転送
の中断を減少させることができ、データ転送の効率化を
図れるという効果がある。
As described above, the magnetic tape continuation control device of the present invention monitors the amount and time of data transferred from the host device to the write buffer so that the write buffer does not become full or empty. By starting the transfer of write data from the write buffer to the magnetic tape device at the optimum time when it is determined that the interruption of each transfer can be reduced, the efficiency of data transfer can be improved. There is.

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

【図1】本発明の一実施例の磁気テープ制御装置のブロ
ック図である。
FIG. 1 is a block diagram of a magnetic tape controller according to an embodiment of the present invention.

【図2】本実施例のライトデータの転送開始の頃合を示
したライトバッファの構成図である。
FIG. 2 is a configuration diagram of a write buffer showing the time when the transfer of write data according to the present embodiment is started.

【図3】本実施例の磁気テープ制御装置の制御動作の処
理を示すフローチャートである。
FIG. 3 is a flowchart showing the processing of the control operation of the magnetic tape control device of the present embodiment.

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

11 上位装置 12 ライトデータ 13 磁気テープ制御装置 14 タイマー 15 主制御部 16 ライトバッファ 17 データ量検出手段 18 ライトデータ 19 磁気テープ装置 11 Upper Device 12 Write Data 13 Magnetic Tape Control Device 14 Timer 15 Main Control Unit 16 Write Buffer 17 Data Amount Detection Means 18 Write Data 19 Magnetic Tape Device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 上位装置から転送される書込みデータを
格納するライトバッファと、前記上位装置の命令に応じ
て前記ライトバッファ及び磁気テープ装置の動作全体を
制御する主制御部と、前記ライトバッファ内のデータ量
を検出する検出手段と、前記ライトバッファへのデータ
転送時間を監視するタイマーとを有し、前記上位装置か
ら前記ライトバッファへの書込みデータの転送が開始さ
れたときに前記タイマーをスタートさせ、前記主制御部
により前記検出手段で検出された前記ライトバッファ転
送されるデータ量と前記タイマーで計られた転送時間と
により前記書込みデータの転送開始時を判断し、前記書
込みデータを前記磁気テープ装置へ転送することを特徴
とする磁気テープ制御装置。
1. A write buffer for storing write data transferred from a higher-level device, a main control unit for controlling the overall operation of the write buffer and the magnetic tape device in response to a command from the higher-level device, and the inside of the write buffer. And a timer for monitoring the data transfer time to the write buffer, and starts the timer when the transfer of the write data from the host device to the write buffer is started. Then, the start time of the transfer of the write data is judged by the amount of data transferred by the write buffer detected by the detection means by the main control unit and the transfer time measured by the timer, and the write data is transferred to the magnetic field. A magnetic tape control device characterized by transferring to a tape device.
JP22546591A 1991-09-05 1991-09-05 Magnetic tape controller Pending JPH0561611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP22546591A JPH0561611A (en) 1991-09-05 1991-09-05 Magnetic tape controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP22546591A JPH0561611A (en) 1991-09-05 1991-09-05 Magnetic tape controller

Publications (1)

Publication Number Publication Date
JPH0561611A true JPH0561611A (en) 1993-03-12

Family

ID=16829752

Family Applications (1)

Application Number Title Priority Date Filing Date
JP22546591A Pending JPH0561611A (en) 1991-09-05 1991-09-05 Magnetic tape controller

Country Status (1)

Country Link
JP (1) JPH0561611A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008129932A (en) * 2006-11-22 2008-06-05 Nec System Technologies Ltd Disk array device system, disk array device control method, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008129932A (en) * 2006-11-22 2008-06-05 Nec System Technologies Ltd Disk array device system, disk array device control method, and program
JP4679494B2 (en) * 2006-11-22 2011-04-27 Necシステムテクノロジー株式会社 Disk array device system, disk array device control method, and program

Similar Documents

Publication Publication Date Title
JPH05173719A (en) Data storing method
JPH0268639A (en) Disk cache control system and information processing system
EP0811912A2 (en) Process switch apparatus in a computer system
JPH0561611A (en) Magnetic tape controller
JP2568048B2 (en) Data transfer controller
JP2000311064A (en) Control system for buffer in data transfer controller
JP3246465B2 (en) Magnetic tape device control system, control method, and control program recording medium
JP3451941B2 (en) Line data automatic setting type communication device, line data creation method thereof, and recording medium recording control program therefor
JP3157794B2 (en) Peripheral control processor
JPS6029835A (en) Data transfer system
JP2502216B2 (en) Write control method for multiplexed configuration disk
JPH0713909A (en) Data transfer rate controller
JP2953874B2 (en) Magnetic tape device control method for input / output channel device
JPS6158073A (en) Data transfer controlling system
JPH0850566A (en) Recording controller
JPS6121696Y2 (en)
JPS63280364A (en) Data transfer control system
JPH10133997A (en) Dma controller
JPH0497416A (en) Control system for receiving buffer
JPH0573222A (en) Magnetic tape controller
JPS63155245A (en) Data backup system for semiconductor disk
JPS6297164A (en) Magnetic tape controller
JPS62152056A (en) Information processor
JPH07121306A (en) Dummy seek control system
JPH0820934B2 (en) Disk cache control method