JPH0630076B2 - Disk cache device - Google Patents

Disk cache device

Info

Publication number
JPH0630076B2
JPH0630076B2 JP62244534A JP24453487A JPH0630076B2 JP H0630076 B2 JPH0630076 B2 JP H0630076B2 JP 62244534 A JP62244534 A JP 62244534A JP 24453487 A JP24453487 A JP 24453487A JP H0630076 B2 JPH0630076 B2 JP H0630076B2
Authority
JP
Japan
Prior art keywords
data
processing unit
central processing
indefinite
write
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62244534A
Other languages
Japanese (ja)
Other versions
JPS6486254A (en
Inventor
密次郎 内田
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP62244534A priority Critical patent/JPH0630076B2/en
Publication of JPS6486254A publication Critical patent/JPS6486254A/en
Publication of JPH0630076B2 publication Critical patent/JPH0630076B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Memory System Of A Hierarchy Structure (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はディスクキャッシュ装置に関し、特にストアイ
ン機能を有するディスクキャッシュ装置に関する。
The present invention relates to a disk cache device, and more particularly to a disk cache device having a store-in function.

〔従来の技術〕[Conventional technology]

一般に、装置間を結ぶインタフェース信号線は、上位装
置の電源が切断または瞬断したときに下位装置は上位装
置からリセット指示を受ける様に設定されており、ま
た、上位装置の障害によりインタフェース信号線にリセ
ット指示がなされる場合がある。
In general, the interface signal line connecting the devices is set so that the lower device receives a reset instruction from the upper device when the power of the upper device is cut off or momentarily cuts off. There may be a reset instruction.

中央処理装置からの書き込み動作中に以上の様な理由で
リセット指示がなされた場合、書き込み動作中であった
データブロックは不定となる。中央処理装置の障害によ
ってこの様な不定データブロックが発生することから、
不定データブロックの回復処理は相当困難であることが
予想され、上位装置の障害回復後この不定データブロッ
クを読み出すことが充分あり得る。
When the reset instruction is issued from the central processing unit during the write operation for the above reason, the data block in the write operation becomes indefinite. Since such an indefinite data block occurs due to the failure of the central processing unit,
It is expected that the recovery processing of an indefinite data block will be quite difficult, and it is quite possible to read this indefinite data block after the failure recovery of the host device.

従来の磁気ディスク装置を記録媒体としていた磁気ディ
スク制御装置では、この様なとき、磁気ディスク装置へ
の書き込み動作を即座に中断していた。通常、磁気ディ
スク装置上に記憶されるデータブロックは、データブロ
ックの先端を検出するためのシンクバイト,データ,エ
ラー検出・訂正コードとからなっており、書き込み動作
の中断により、少なくともエラー検出・訂正コードが媒
体から消去されるため、このようなデータブロックを読
み出そうとするとリードエラーを起こして読み出しを不
可能にすることができた。
In such a magnetic disk controller that uses a conventional magnetic disk device as a recording medium, at such a time, the write operation to the magnetic disk device is immediately interrupted. Normally, a data block stored on a magnetic disk device is composed of a sync byte for detecting the end of the data block, data, and an error detection / correction code, and at least the error detection / correction is caused by interruption of the write operation. Since the code is erased from the medium, an attempt to read such a data block could cause a read error and make the reading impossible.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

近年、中央処理装置の処理速度と磁気ディスク装置のア
クセス速度の差を縮め、システム性能を向上させるディ
スクキャッシュ装置が実用化され、そのディスクキャッ
シュ動作のひとつにストアイン動作がある。従来のこの
ストアイン動作は磁気ディスク装置への書き込み操作を
伴わずにキャッシュメモリ上のデータのみ更新する動作
を行うため、キャッシュメモリ上での書き込み動作中に
障害が発生したとしてもその書込みデータを含むキャッ
シュメモリ上で不定データブロックを検出することは不
可能であった。
In recent years, a disk cache device that reduces the difference between the processing speed of a central processing unit and the access speed of a magnetic disk device and improves system performance has been put into practical use, and one of the disk cache operations is a store-in operation. This conventional store-in operation updates only the data in the cache memory without the write operation to the magnetic disk device, so even if a failure occurs during the write operation in the cache memory, the write data will be It was impossible to detect indefinite data blocks on the included cache memory.

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

本発明のディスクキャッシュ装置は、磁気ディスク装置
の中央処理装置との間に設けられ複数のデータバッファ
を有し中央処理装置からの読み出し要求に対して要求デ
ータをデータバッファから転送する手段と、前記中央処
理装置からの書き込み要求に対して書き込みデータをデ
ータバッファに転送するストアイン動作を行う手段と、
前記中央処理装置からのリセット指示をラッチするリセ
ットラッチ手段と、ストアイン動作中にリセットラッチ
がセットされたときに書き込みデータに付加されている
データ不定フラグをセットしてデータバッファに書き込
む手段と、ストアイン動作中にリセットラッチがセット
されなかったときに書き込みデータに付加されているデ
ータ不定フラグをリセットしてデータバッファに書き込
む手段と、前記中央処理装置が前記データ不定フラグを
セットされているデータを読み出すときに読み出しデー
タが不定であることを前記中央処理装置に報告する手段
とを有している。
The disk cache device of the present invention has a plurality of data buffers provided between it and the central processing unit of the magnetic disk device, and means for transferring request data from the data buffer in response to a read request from the central processing unit. Means for performing a store-in operation of transferring write data to a data buffer in response to a write request from the central processing unit,
Reset latch means for latching a reset instruction from the central processing unit; means for setting a data indefinite flag added to write data when the reset latch is set during the store-in operation and writing the data in the data buffer; Means for resetting the data indefinite flag added to the write data and writing it in the data buffer when the reset latch is not set during the store-in operation; and data for which the central processing unit sets the data indefinite flag. And a means for reporting to the central processing unit that the read data is indefinite when reading data.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be described with reference to the drawings.

第1図は本発明の一実施例のブロック図であり、ディス
クキャッシュ装置10はMPU(マイクロプロセッサ)
1,キャッシュメモリ5,キャッシュアダプタ4,ホス
トプロセッサ30からのリセット指示をラッチするリセ
ットラッチ3を有するホストアダプタ2、ディスクアダ
プタ6とからなる。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a disk cache device 10 is an MPU (microprocessor).
1, a cache memory 5, a cache adapter 4, a host adapter 2 having a reset latch 3 for latching a reset instruction from the host processor 30, and a disk adapter 6.

上位装置としてホストプロセッサ30が設けられてお
り、ホストアダプタ2と相互接続されている。磁気ディ
スク装置20はディスクアダプタ6と相互接続されてい
る。
A host processor 30 is provided as a host device and is interconnected with the host adapter 2. The magnetic disk device 20 is interconnected with the disk adapter 6.

キャッシュメモリ5は一連のアドレス空間をもつ半導体
メモリであり、キャッシュメモリ5内にはY本のデータ
バッファが論理的に割り当てられている。
The cache memory 5 is a semiconductor memory having a series of address spaces, and Y data buffers are logically allocated in the cache memory 5.

第2図は、CKD記録形式を採っている磁気ディスク装
置20のトラックイメージの図である。トラック上には
ホームアドレスフィールド(HA),カウントフィール
ド(CF),キーフィールド(KF),データフィール
ド(DF)が配置され、各フィールドにはリードエラー
の検出及び訂正を行うエラー検出・訂正コードが付加さ
れれおり、また各フィールドの境界には常時回転してい
る磁気ディスク媒体上の情報を連続して処理するための
ギャップが存在している。
FIG. 2 is a diagram of a track image of the magnetic disk device 20 adopting the CKD recording format. A home address field (HA), a count field (CF), a key field (KF), and a data field (DF) are arranged on the track, and an error detection / correction code for detecting and correcting a read error is provided in each field. In addition, there is a gap at the boundary of each field for continuously processing information on the magnetic disk medium which is constantly rotating.

第3図はキャッシュメモリ5上のデータバッファのイメ
ージの図である。キャッシュメモリ5が半導体メモリで
構成されていることから、磁気ディスク20上のギャッ
プとエラー検出訂正コードは取り除かれ、各フィールド
毎にデータ不定フラグが符号されている。
FIG. 3 is a diagram of an image of a data buffer on the cache memory 5. Since the cache memory 5 is composed of a semiconductor memory, the gap on the magnetic disk 20 and the error detection / correction code are removed, and the data indefinite flag is coded for each field.

目的のディスクトラック上の情報の全てがデータバッフ
ァに格納される以前のホストプロセッサ30からのサー
チ,リード指示に対して、MPU1は磁気ディスク装置
20に対して操作を行うと同時にデータバッファに第3
図で示した形式で情報を格納する。このとき各フィール
ドのデータ不定フラグをリセットしておく。
In response to a search or read instruction from the host processor 30 before all of the information on the target disk track is stored in the data buffer, the MPU 1 operates the magnetic disk device 20 and at the same time stores the third information in the data buffer.
Information is stored in the format shown in the figure. At this time, the data indefinite flag of each field is reset.

目的のディスクトラック上の情報の全てのデータバッフ
ァに格納された以降のホストプロセッサ30からのライ
ト指示に対して、MPU1はホストプロセッサ30から
送られる情報を磁気ディスク装置20には書き込まず、
データバッファの指定されたフィールドに書き込む(ス
トアイン動作)。MPU1はホストプロセッサ30から
のデータ転送が終了するまでの間にリセットラッチ3が
セットされなかったとき、データ不定フラグをリセット
し、リセットラッチ3がセットされたときにデータ不定
フラグをセットする。
The MPU 1 does not write the information sent from the host processor 30 to the magnetic disk device 20 in response to the subsequent write instruction from the host processor 30 which is stored in all the data buffers of the information on the target disk track.
Write to specified field of data buffer (store-in operation). The MPU 1 resets the data indefinite flag when the reset latch 3 is not set until the data transfer from the host processor 30 is completed, and sets the data indefinite flag when the reset latch 3 is set.

次に、目的のディスクトラック上の情報の全てがデータ
バッファ上に格納された以降のホストプロセッサ30か
らのサーチ,リード指示に対して、MPU1はデータバ
ッファ上の指定されたフィールドを読み出して、サーチ
指示の場合はホストプロセッサ30から送られるデータ
と比較し、またリード指示の場合はホストプロセッサ3
0にデータを転送するが、このとき、指定されたフィー
ルドのデータ不定フラグを調査して、これがセットされ
ていれば、ホストプロセッサ30にアクセスしたフィー
ルドのデータが不定であることを報告する。
Next, in response to a search and read instruction from the host processor 30 after all the information on the target disk track is stored in the data buffer, the MPU 1 reads the designated field in the data buffer and searches. In the case of an instruction, it is compared with the data sent from the host processor 30, and in the case of a read instruction, the host processor 3
Data is transferred to 0. At this time, the data indefinite flag of the designated field is checked, and if this is set, it reports that the data of the field accessed to the host processor 30 is indefinite.

〔発明の効果〕 以上説明した様に本発明のディスクキャッシュ装置を用
いることにより、キャッシュメモリ上に不定データであ
ることを記憶することが可能となって、中央処理装置に
不定データを誤って転送することがなくなり、情報処置
システムの信頼性を向上することができるという効果
と、キャッシュメモリ上で不定となったフィールドは中
央処理装置から再度ライト指示を行い、このライト動作
が正常に終了することにより回復することができるた
め、この不定データに対して、中央処理装置が行う回復
処理として、従来の磁気ディスク装置を対象とした回復
処理を容易に流用できるという効果がある。
[Effects of the Invention] As described above, by using the disk cache device of the present invention, it is possible to store indefinite data in the cache memory, and the indefinite data is erroneously transferred to the central processing unit. The effect that the reliability of the information processing system can be improved and the field that has become indefinite in the cache memory is instructed to write again from the central processing unit, and this write operation ends normally. Since it is possible to recover by this, there is an effect that a recovery process for a conventional magnetic disk device can be easily applied to this indefinite data as a recovery process performed by the central processing unit.

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

第1図は本発明の一実施例のブロック図、第2図は磁気
ディスク装置のトラックイメージ、第3図はデータバッ
ファのイメージを示した図である。 1…MPU(マイクロプロセッサ)、2…ホストアダプ
タ、3…リセットラッチ、4…キャッシュアダプタ、5
…キャッシュメモリ、6…ディスクアダプタ、10…デ
ィスクキャッシュ装置、20…ホストプロセッサ(中央
処理装置)、30…磁気ディスク装置。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a track image of a magnetic disk device, and FIG. 3 is a diagram of a data buffer. 1 ... MPU (microprocessor), 2 ... Host adapter, 3 ... Reset latch, 4 ... Cache adapter, 5
... cache memory, 6 ... disk adapter, 10 ... disk cache device, 20 ... host processor (central processing unit), 30 ... magnetic disk device.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】磁気ディスク装置と中央処理装置との間に
設けられ複数のデータバッファを有し、中央処理装置か
らの読み出し要求に対して要求データをデータバッファ
から転送する手段と、前記中央処理装置からの書き込み
要求に対して書き込みデータをデータバッファに転送す
るストアイン動作を行う手段と、前記中央処理装置から
のリセット指示をラッチするリセットラッチ手段と、前
記ストアイン動作中にリセットラッチがセットされたと
きに書き込みデータに付加されているデータ不定フラグ
をセットしてデータバッファに書き込む手段と、前記ス
トアイン動作中にリセットラッチがセットされなかった
ときに書き込みデータに付加されているデータ不定フラ
グをリセットしてデータバッファに書き込む手段と、前
記中央処理装置が前記データ不定フラグをセットされて
いるデータを読み出すときに読み出しデータが不定であ
ることを前記中央処理装置に報告する手段とを有するこ
とを特徴とするディスクキャッシュ装置。
1. A means for transferring request data from a data buffer to a read request from the central processing unit, the central processing unit having a plurality of data buffers provided between the magnetic disk unit and the central processing unit. A means for performing a store-in operation for transferring write data to a data buffer in response to a write request from the device, a reset latch means for latching a reset instruction from the central processing unit, and a reset latch set during the store-in operation. Means for setting the data indefinite flag added to the write data when the data is written to the data buffer, and the data indefinite flag added to the write data when the reset latch is not set during the store-in operation Means for resetting and writing in the data buffer, and the central processing unit Disk cache device, characterized in that it comprises a means for reporting to the central processing unit that read data is indefinite when reading data set the serial data indeterminate flag.
JP62244534A 1987-09-28 1987-09-28 Disk cache device Expired - Lifetime JPH0630076B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62244534A JPH0630076B2 (en) 1987-09-28 1987-09-28 Disk cache device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62244534A JPH0630076B2 (en) 1987-09-28 1987-09-28 Disk cache device

Publications (2)

Publication Number Publication Date
JPS6486254A JPS6486254A (en) 1989-03-30
JPH0630076B2 true JPH0630076B2 (en) 1994-04-20

Family

ID=17120126

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62244534A Expired - Lifetime JPH0630076B2 (en) 1987-09-28 1987-09-28 Disk cache device

Country Status (1)

Country Link
JP (1) JPH0630076B2 (en)

Also Published As

Publication number Publication date
JPS6486254A (en) 1989-03-30

Similar Documents

Publication Publication Date Title
US4688221A (en) Error recovery method and apparatus
US20130254457A1 (en) Methods and structure for rapid offloading of cached data in a volatile cache memory of a storage controller to a nonvolatile memory
JPS62117049A (en) Digital data transfer system
US5590298A (en) Method of restoring and updating records in a disk cache system during disk drive idle time using start and end addresses
JP2608887B2 (en) Method, apparatus, and controller for restoring stored data blocks from damaged tape data blocks
JPH0792896B2 (en) Device and method for positioning mispositioned heads
CN111601062B (en) Storage security fault-tolerant method and system for vehicle-mounted monitoring video
JPH0630076B2 (en) Disk cache device
JPS61278958A (en) Data transfer device
JP2829128B2 (en) Read / write head buffer
JP3275492B2 (en) Linked disk unit
JP3030949B2 (en) Digital data recording / reproducing device
JP2004199743A (en) Recording/reproducing device and recording/reproducing control method
JP2844960B2 (en) Digital data recording / reproducing device
JPS6161273A (en) Control system of memory device
JPS6013360A (en) Storage device
JPH04123242A (en) Write error identification system
JP2745618B2 (en) Head repositioning method
JP2779540B2 (en) Magnetic tape unit
JPH03154266A (en) Handling method for unwritten sector in block type storage device
JPH10269729A (en) Disk apparatus
JPH01113844A (en) Disk cache device
JPH04308917A (en) Disk controller with cache
JPH0298876A (en) Magnetic tape processor
JPH09114598A (en) Disk cache device