JPH0673113B2 - Disk cache device - Google Patents

Disk cache device

Info

Publication number
JPH0673113B2
JPH0673113B2 JP62272203A JP27220387A JPH0673113B2 JP H0673113 B2 JPH0673113 B2 JP H0673113B2 JP 62272203 A JP62272203 A JP 62272203A JP 27220387 A JP27220387 A JP 27220387A JP H0673113 B2 JPH0673113 B2 JP H0673113B2
Authority
JP
Japan
Prior art keywords
track
disk
data
field
length
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 - Fee Related
Application number
JP62272203A
Other languages
Japanese (ja)
Other versions
JPH01113844A (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
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 JP62272203A priority Critical patent/JPH0673113B2/en
Publication of JPH01113844A publication Critical patent/JPH01113844A/en
Publication of JPH0673113B2 publication Critical patent/JPH0673113B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

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

従来技術 磁気ディスク装置では磁気ディスク媒体上の各トラック
が複数のレコードから構成され、これらレコードの配列
またはレコード長が変更されるようなデータの書込み時
に、このデータの書込みによってトラック容量を越えて
しまう場合には、不当トラック形式としてこの書込み指
示を行った上位装置にエラー報告を行っている。
2. Description of the Related Art In a conventional magnetic disk device, each track on a magnetic disk medium is composed of a plurality of records, and when the data is written such that the arrangement or record length of these records is changed, the track capacity is exceeded by the writing of this data. In this case, an error report is made to the host device that has issued this write instruction as an illegal track format.

近年、中央処理装置の処理速度と磁気ディスク装置のア
クセス速度との差を縮め、システム性能を向上させるた
めにディスクキャッシュ装置が実用化されており、この
ディスクキャッシュ装置の動作の一つとしてストアイン
動作がある。ストアイン動作とは上位装置からの書込み
指示をディスクキャッシュのみで処理することをいい、
このストアイン動作により書込み処理を高速に行うこと
が可能となっている。
In recent years, a disk cache device has been put into practical use in order to reduce the difference between the processing speed of the central processing unit and the access speed of the magnetic disk device and improve the system performance. There is movement. The store-in operation means that the write instruction from the host device is processed only by the disk cache.
This store-in operation enables the writing process to be performed at high speed.

このような従来のディスクキャッシュ装置では、ストア
イン動作により書込み処理を高速に行うことが可能とな
っていたが、ディスクキャッシュ上におけるトラック容
量の限界を検出することができなかったので、可変長レ
コード形式を採用している磁気ディスク装置にストアイ
ン動作を適用することができないという欠点がある。
In such a conventional disk cache device, the write-in process could be performed at high speed by the store-in operation, but the limit of the track capacity on the disk cache could not be detected. There is a drawback in that the store-in operation cannot be applied to the magnetic disk device adopting the format.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、可変長レコード形式を採用している磁気
ディスク装置にストアイン動作を適用することができ、
情報処理システムの性能を向上させることができるディ
スクキャッシュ装置の提供を目的とする。
The present invention has been made to eliminate the above-mentioned drawbacks of the conventional ones, and the store-in operation can be applied to a magnetic disk device adopting a variable-length record format.
An object is to provide a disk cache device that can improve the performance of an information processing system.

発明の構成 本発明によるディスクキャッシュ装置は、ディスク記録
媒体に格納されかつ複数のレコードフィールドを含むト
ラックデータを格納するディスクキャッシュメモリを有
するディスクキャッシュ装置であって、上位装置からの
書込みデータが前記トラックデータの所定レコードフィ
ールドから書込まれるときに前記トラックデータにおけ
る前記所定レコードフィールド直前までのデータ長と前
記書込みデータのデータ長とを加算する加算手段と、前
記加算手段の加算結果と前記トラックデータの容量とを
比較する比較手段と、前記比較手段で前記加算結果が前
記トラックデータの容量を越えたことが検出されたとき
に前記上位装置にエラーを報告する手段とを有すること
を特徴とする。
Configuration of the Invention A disk cache device according to the present invention is a disk cache device having a disk cache memory for storing track data which is stored in a disk recording medium and includes a plurality of record fields, wherein write data from a host device is the track. When writing from a predetermined record field of data, an addition unit that adds the data length of the track data up to immediately before the predetermined record field and the data length of the write data, the addition result of the addition unit, and the track data And a means for reporting an error to the upper device when the comparison means detects that the addition result exceeds the capacity of the track data.

実施例 次に、本発明の一実施例について図面を参照して説明す
る。
Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、本発明の一実施例によるディスクキャ
ッシュ装置1は、レジスタ12を内蔵するMPU(microproc
essor unit)11と、キャッシュアダプタ13と、キャッシ
ュメモリ14と、ホストアダプタ15と、ディスクインタフ
ェースアダプタ16とにより構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Referring to FIG. 1, a disk cache device 1 according to an embodiment of the present invention includes an MPU (microproc) that incorporates a register 12.
essor unit) 11, a cache adapter 13, a cache memory 14, a host adapter 15, and a disk interface adapter 16.

ディスクキャッシュ装置1の上位装置としてはホストプ
ロセッサ2が設けられており、このホストプロセッサ2
はホストアダプタ15と相互接続されている。また、ディ
スクインターフェースアダプタ16にはディスクコントロ
ーラ3が相互接続され、磁気ディスク装置4〜6がこの
ディスクコントローラ3を介してディスクインタフェー
スアダプタ16と相互接続されている。
A host processor 2 is provided as a host device of the disk cache device 1.
Are interconnected with the host adapter 15. Further, the disk controller 3 is interconnected to the disk interface adapter 16, and the magnetic disk devices 4 to 6 are interconnected to the disk interface adapter 16 via the disk controller 3.

キャッシュメモリ14は一連のアドレス空間を持つ半導体
メモリであり、キャッシュメモリ14内には複数のバッフ
ァセグメントが論理的に割当てられている。
The cache memory 14 is a semiconductor memory having a series of address spaces, and a plurality of buffer segments are logically assigned in the cache memory 14.

第2図は第1図の磁気ディスク装置4〜6のディスク媒
体(図示せず)上のトラックイメージを示す図である。
図において、ディスク媒体のトラック上には情報を記録
するHA(ホームアドレス)フィールド、カウントフィー
ルド、キーフィールド、データフィールドが配置され、
各フィールドの境界には常時回転しているディスク媒体
上の情報を連続的に処理するためにギャップが存在す
る。
FIG. 2 is a diagram showing a track image on the disk medium (not shown) of the magnetic disk devices 4 to 6 in FIG.
In the figure, an HA (home address) field, a count field, a key field, and a data field for recording information are arranged on the track of the disk medium,
At the boundary of each field, there is a gap for continuously processing information on the disc medium that is constantly rotating.

通常、ディスク媒体には1トラック当りに適当な数の欠
陥が存在することを許容しており、情報が記録できる容
量である有効トラック容量はトラックの物理容量から、
許容範囲内で最大数の欠陥が存在する場合において欠陥
がトラックに占めるギャップ容量を差し引いた値であ
る。
Normally, the disk medium is allowed to have an appropriate number of defects per track, and the effective track capacity, which is the capacity for recording information, is calculated from the physical capacity of the track.
This is a value obtained by subtracting the gap capacity occupied by the defect in the track when the maximum number of defects is present within the allowable range.

第3図は第1図のキャッシュメモリ14のバッファセグメ
ント上のトラックイメージを示す図である。このキャッ
シュメモリ14は半導体メモリであるので、バッファセグ
メント上にはディスク媒体上のギャップが取除かれ、各
フィールドが隣接するように展開されている。
FIG. 3 is a diagram showing a track image on the buffer segment of the cache memory 14 of FIG. Since this cache memory 14 is a semiconductor memory, the gap on the disk medium is removed from the buffer segment, and the fields are expanded so as to be adjacent to each other.

目的のディスクトラック上の情報の全てがキャッシュメ
モリ14のバッファセグメントに格納される以前に、ホス
トプロセッサ2からディスクキャッシュ装置1にサーチ
/読出し/書込み指示がなされると、これらサーチ/読
出し/書込み指示に対してMPU11は磁気ディスク装置4
〜6に対して操作を行うと同時に、キャッシュメモリ14
のバッファセグメント上に第3図に示すような形式で目
的のディスクトラック上の情報を格納させる。
If a search / read / write instruction is issued from the host processor 2 to the disk cache device 1 before all the information on the target disk track is stored in the buffer segment of the cache memory 14, these search / read / write instructions are given. In contrast, MPU11 is a magnetic disk unit 4
~ 6 at the same time as the cache memory 14
The information on the target disc track is stored in the buffer segment in the format shown in FIG.

目的のディスクトラック上の情報の全てがバッファセグ
メントに格納された後に、ホストプロセッサ2から書込
み指示が入力された場合、MPU2はその書込み指示に先行
するサーチ指示の実行時に、サーチ対象のフィールドが
格納されているキャッシュメモリ14上のアドレスを得る
ためにHAフィールドから順に全てのフィールドを辿って
行く。
When a write instruction is input from the host processor 2 after all the information on the target disk track is stored in the buffer segment, the MPU 2 stores the search target field when executing the search instruction preceding the write instruction. All fields are traced in order from the HA field in order to obtain the address on the cache memory 14 that is stored.

この過程で、目的のフィールドに至るまでに通過したフ
ィールドのフィールド長に各フィールドに付随するギャ
ップのギャップ長を加算して、その値をMPU11のレジス
タ12に格納しておく、MPU11はレジスタ12に格納された
値に、書込み動作を行う情報のフィールド長とそのフィ
ールドに付随するギャップのギャップ長とを加算し、そ
の加算結果と予め規定された有効トラック容量とを比較
する。この比較により加算結果が有効トラック容量を越
えていれば、不当トラック形式としてホストプロセッサ
2にエラーを報告する。
In this process, add the gap length of the gap accompanying each field to the field length of the field that has passed until reaching the target field, and store the value in register 12 of MPU11. The field length of the information to be written and the gap length of the gap associated with the field are added to the stored value, and the addition result is compared with a predetermined effective track capacity. If the addition result exceeds the effective track capacity by this comparison, an error is reported to the host processor 2 as an invalid track format.

このように、ホストプロセッサ2からの書込み指示によ
り目的のフィールドから情報の書込みが行われるとき、
この書込み指示に先行するサーチ指示を実行中に、目的
のフィールドまでのフィールド長にギャップ長が加算さ
れた値に、書込み指示の情報のフィールド長とギャップ
長とを加算し、この加算結果と有効トラック容量とを比
較するようにすることによって、ストアイン動作中にト
ラック容量の限界を検知することが可能となるので、可
変長レコード形式を採用している磁気ディスク装置にス
トアイン動作を適用することができる。
In this way, when the information is written from the target field by the write instruction from the host processor 2,
While the search instruction preceding this write instruction is being executed, the field length of the write instruction information and the gap length are added to the value obtained by adding the gap length to the field length up to the target field, and the addition result is valid. By comparing the track capacity with the track capacity, it becomes possible to detect the limit of the track capacity during the store-in operation. Therefore, the store-in operation is applied to the magnetic disk device adopting the variable length record format. be able to.

また、このストアイン動作の適用が可能となることによ
り、情報処理システムの性能を向上させることができ
る。
Further, since the store-in operation can be applied, the performance of the information processing system can be improved.

尚、本発明の一実施例では上位装置としてホストプロセ
ッサ2が接続されている場合について述べたが、これは
磁気ディスク装置4〜6への書込みや読出しを行う装置
であればどのような装置にも適用できることは明白であ
る。
In the embodiment of the present invention, the case where the host processor 2 is connected as the host device has been described. However, this is not limited to any device as long as it is a device for writing to and reading from the magnetic disk devices 4-6. It is clear that also applies.

また、本発明の一実施例では磁気ディスク装置について
述べたが、他のディスク装置に適用できることは明白で
あり、さらに有効トラック容量との比較をデータ長を加
算した値とにおいて行っているが、これは有効トラック
容量から各フィールドのフィールド長とギャップ長とを
減算することによって行ってもよく、これらに限定され
ない。
Further, although the magnetic disk device has been described in the embodiment of the present invention, it is obvious that the present invention can be applied to other disk devices, and the comparison with the effective track capacity is made with the value obtained by adding the data length. This may be done by subtracting the field length and gap length of each field from the effective track capacity, but is not limited to these.

発明の効果 以上説明したように本発明によれば、複数のレコードフ
ィールドを含むトラックデータにおける書込み対象のレ
コードフィールド直前までのデータ長に書込みデータの
データ長を加算し、この加算結果とそのトラックデータ
の容量とを比較するようにすることによって、可変長レ
コード形式を採用している磁気ディスク装置にストアイ
ン動作を適用することができ、情報処理システムの性能
を向上させることができるという効果がある。
As described above, according to the present invention, in the track data including a plurality of record fields, the data length of the write data is added to the data length immediately before the record field to be written, and the addition result and the track data thereof are added. The storage-in operation can be applied to the magnetic disk device that employs the variable-length record format, and the performance of the information processing system can be improved. .

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は第1図の磁気ディスク装置のディスク媒体上のト
ラックイメージを示す図、第3図は第1図のキャッシュ
メモリのバッファセグメント上のトラックイメージを示
す図である。 主要部分の符号の説明 1……ディスクキャッシュ装置 2……ホストプロセッサ 4〜6……磁気ディスク装置 11……MPU 12……レジスタ 14……キャッシュメモリ
FIG. 1 is a block diagram showing a configuration of an embodiment of the present invention, FIG. 2 is a diagram showing a track image on a disk medium of the magnetic disk device of FIG. 1, and FIG. 3 is a cache memory of FIG. It is a figure which shows the track image on a buffer segment. Explanation of symbols of main parts 1 ... Disk cache device 2 ... Host processor 4-6 ... Magnetic disk device 11 ... MPU 12 ... Register 14 ... Cache memory

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ディスク記憶媒体に格納されかつ複数のレ
コードフィールドを含むトラックデータを格納するディ
スクキャッシュメモリを有するディスクキャッシュ装置
であって、上位装置からの書込みデータが前記トラック
データの所定レコードフィールドから書込まれるときに
前記トラックデータにおける前記所定レコードフィール
ド直前までのデータ長と前記書込みデータのデータ長と
を加算する加算手段と、前記加算手段の加算結果と前記
トラックデータの容量とを比較する比較手段と、前記比
較手段で前記加算結果が前記トラックデータの容量を越
えたことが検出されたときに前記上位装置にエラーを報
告する手段とを有することを特徴とするディスクキャッ
シュ装置。
1. A disk cache device having a disk cache memory for storing track data including a plurality of record fields, which is stored in a disk storage medium, wherein write data from a host device is stored in a predetermined record field of the track data. Addition means for adding the data length of the track data up to immediately before the predetermined record field in the track data and the data length of the write data, and comparison for comparing the addition result of the addition means with the capacity of the track data. And a means for reporting an error to the higher-level device when the comparison means detects that the addition result exceeds the capacity of the track data.
JP62272203A 1987-10-28 1987-10-28 Disk cache device Expired - Fee Related JPH0673113B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62272203A JPH0673113B2 (en) 1987-10-28 1987-10-28 Disk cache device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62272203A JPH0673113B2 (en) 1987-10-28 1987-10-28 Disk cache device

Publications (2)

Publication Number Publication Date
JPH01113844A JPH01113844A (en) 1989-05-02
JPH0673113B2 true JPH0673113B2 (en) 1994-09-14

Family

ID=17510538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62272203A Expired - Fee Related JPH0673113B2 (en) 1987-10-28 1987-10-28 Disk cache device

Country Status (1)

Country Link
JP (1) JPH0673113B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2826857B2 (en) 1989-12-13 1998-11-18 株式会社日立製作所 Cache control method and control device

Also Published As

Publication number Publication date
JPH01113844A (en) 1989-05-02

Similar Documents

Publication Publication Date Title
US5561566A (en) Information recording disk and drive system using no sector ID to increase data storage capacity
US5835930A (en) One or more logical tracks per physical track in a headerless disk drive
US5764880A (en) Method and system for rebuilding log-structured arrays
US4001883A (en) High density data storage on magnetic disk
US5357381A (en) Flexible magnetic disc drive apparatus for designating alternate sectors for defective sectors
JPS5953609B2 (en) How to write information about defects to magnetic recording media
JP3268547B2 (en) Method and apparatus for detecting an error in defined information recorded in a direct access storage device using an error correction code
KR20010040467A (en) Automatic replacing method in reading and magnetic disc drive using the method
JP4053234B2 (en) Disk unit
US5161072A (en) Information recording/reproducing apparatus for recording information and verifying recorded information
JP2002184113A5 (en)
JPH0673113B2 (en) Disk cache device
JPH07182792A (en) Processing method for defect of information sector
JP2510662B2 (en) Data recording control method
JPH05210915A (en) Disk device
JP2582507B2 (en) Apparatus and method for preventing program copy
JPH04135227A (en) Lifetime calculating method for hard disk medium
JPS6358668A (en) Access controller for magnetic recording/reproducing device
JPH0562360A (en) System for processing defective sector of rotary type storage device
JPH0528651A (en) Information recorder and reproducer
KR970003135A (en) Magnetic disk for processing bad sectors in hard disk drive and its processing method
JPS63306567A (en) Rotary type storage device
JPS6013360A (en) Storage device
JPH0628779A (en) Method for recording and controlling data in disk device
JPH04178976A (en) Method for reading data from magneto-optical disk

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees