JPH05324475A - Magnetic disk sub system - Google Patents

Magnetic disk sub system

Info

Publication number
JPH05324475A
JPH05324475A JP4153046A JP15304692A JPH05324475A JP H05324475 A JPH05324475 A JP H05324475A JP 4153046 A JP4153046 A JP 4153046A JP 15304692 A JP15304692 A JP 15304692A JP H05324475 A JPH05324475 A JP H05324475A
Authority
JP
Japan
Prior art keywords
magnetic disk
data
instruction
command
unit
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
JP4153046A
Other languages
Japanese (ja)
Inventor
Kenichi Yoshida
謙一 吉田
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 JP4153046A priority Critical patent/JPH05324475A/en
Publication of JPH05324475A publication Critical patent/JPH05324475A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To shorten processing time at the time of executing a data write command by interrupting a read operation and writing sent data in a magnetic disk device when data under reading are coincident with a search instruction. CONSTITUTION:When the data of an object track are not existent at a memory part 10 of a cache controller, it is checked in a data check part 60 by using the search instruction whether data read at the time of reading track data are coincident with search conditions or not. When the coincidence is reported, a cache R/W control part 30 of a controller for a magnetic disk reads the next command and when the command instructs the read of data, the execution start of the next command is waited in the magnetic disk controller until the track data are completely read. On the other hand, when the command instructs the write of data, the interruption of the track data read operation is instructed, and the write command is directly executed to the magnetic disk device.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は磁気ディスクサブシステ
ムに関するもので、特にデバイスライト時のキャッシュ
の処理方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk subsystem, and more particularly to a cache processing method during device write.

【0002】[0002]

【従来の技術】従来よりディスクキャッシュを用いてホ
ストコンピュータ(以下、ホストと略する)と磁気ディ
スク装置(以下、DKUと略する)との間でデータを転
送するシステムとして、例えば、図2に示すようにホス
トにDKUを制御するための磁気ディスク制御装置(以
下、DKCと略する)を接続し、その下に内部にメモリ
を有するキャッシュ制御装置(以下、DCCと略する)
を置き、DKUをDCCの下に接続する、というものが
ある。
2. Description of the Related Art Conventionally, a system for transferring data between a host computer (hereinafter abbreviated as host) and a magnetic disk device (hereinafter abbreviated as DKU) using a disk cache is shown in FIG. As shown in the figure, a magnetic disk controller (hereinafter abbreviated as DKC) for controlling the DKU is connected to the host, and a cache controller (hereinafter abbreviated as DCC) having a memory inside is connected to the magnetic disk controller.
, And connect the DKU under the DCC.

【0003】DKUのデータを読出す為にホストからD
KCにシーク命令が出された時、DKCはDCCに対し
て、シーク命令で指示されたトラックのデータを要求
し、DCCは要求されたトラックのデータがDCC内の
メモリ内に存在しない(キャッシュにヒットしない)
時、DCCはDKCに対してデータが存在しないことを
知らせると共にDKUから要求されたトラックのデータ
を読出し、DCC内のメモリに格納し、格納が終わると
DCCはDKC読出し終了を知らせる。すると、DKC
はホストからデータの読込みを指示するコマンドを読み
込み、DCCのメモリから前記データの読込みを指示す
るコマンドで指示されたデータを読出し、ホストに転送
する。
To read the data of DKU, D from the host
When a seek command is issued to the KC, the DKC requests the DCC for the data of the track designated by the seek command, and the DCC does not have the data of the requested track in the memory in the DCC (in the cache. Don't hit)
At this time, the DCC informs the DKC that there is no data, reads the data of the track requested by the DKU, stores it in the memory in the DCC, and when the storage is over, the DCC informs the end of the DKC read. Then DKC
Reads a command for reading data from the host, reads the data specified by the command for reading data from the memory of the DCC, and transfers the data to the host.

【0004】このように構成すると、ホストからDCC
のメモリに格納されているトラックのデータに対するデ
ータ転送の要求(読出し要求)があれば、DKUからデ
ータを読みだして転送するよりも、メモリからデータを
読みだして転送する方が機械的動作を伴わない為きわめ
て速くデータ転送を行うことが出来る。このような方式
をキャッシュ方式と呼んでいる。一方、DKUにデータ
を書込む為にホストからDKCにシーク命令が出された
時、DKCはDCCに対して、シーク命令で指示された
トラックのデータを要求し、DCCは要求されたトラッ
クのデータがDCC内のメモリ内に存在しない時、DC
CはDKCに対してデータが存在しないことを知らせる
と共にDKUから要求されたトラックのデータを読出
し、DCC内のメモリに格納し、格納が終わると、DC
CはDKC読出し終了を知らせる。すると、DKCはホ
ストからサーチコマンドを読込み、DKUに対して直接
サーチコマンドを実行する。そしてサーチ結果が一致す
るとDKCはDKUに対して前記のホストから指示され
たデータを書き込む。
With this configuration, the host can make the DCC
If there is a data transfer request (read request) for the track data stored in the memory, the mechanical operation is better to read and transfer the data from the memory than to read and transfer the data from the DKU. Since it is not accompanied, data can be transferred very quickly. Such a method is called a cache method. On the other hand, when the host issues a seek command to the DKC to write data to the DKU, the DKC requests the DCC for the data of the track specified by the seek command, and the DCC requests the data of the requested track. , Is not in memory in the DCC, DC
The C notifies the DKC that there is no data, reads the data of the track requested by the DKU, stores the data in the memory in the DCC, and when the storage is completed, the DC
C signals the end of DKC reading. Then, the DKC reads the search command from the host and directly executes the search command to the DKU. When the search results match, the DKC writes the data instructed by the host to the DKU.

【0005】[0005]

【発明が解決しようとする課題】キャッシュメモリをサ
ポートしないシステムでは、DKUにデータを書込む為
にかかる時間は、ホストから送られてきたデータを書込
む為の時間(通常はDKUが1回転するのに掛かる時間
以下)のみで良い(シーク時間とサーチの為の回転待ち
時間は除く。)。
In a system which does not support a cache memory, the time required to write data to the DKU is the time required to write the data sent from the host (usually the DKU rotates once). (Less than the time it takes to complete) (excluding seek time and rotation waiting time for search).

【0006】しかし、上述の従来のキャッシュ方式で
は、キャッシュにヒツトしない場合、DKUにデータを
書込む為にはトラックのデータをキャッシュメモリに読
出す為の時間(DKU1回転分)と、データを磁気ディ
スク装置に書き込む為の時間の和、つまりDKUが1回
転分以上の処理時間が必要になり、キャッシュをサポー
トしていないシステムよりも処理時間が遅くなる、とい
う問題点があった。
However, in the above-mentioned conventional cache system, when data is not written to the cache, in order to write the data to the DKU, the time for reading the data of the track to the cache memory (one rotation of the DKU) and the data are magnetically read. There is a problem that the sum of the time for writing to the disk device, that is, the processing time of one rotation of the DKU or more is required, and the processing time becomes slower than that of the system which does not support the cache.

【0007】[0007]

【課題を解決するための手段】本発明の磁気ディスクサ
ブシステムは、中央処理装置に接続された磁気ディスク
制御装置と、該磁気ディスク制御装置により制御される
少なくとも1台の磁気ディスク装置と、該磁気ディスク
制御装置と該磁気ディスク装置との間に設けられ、該磁
気ディスク装置に格納された情報をキャッシングするこ
とが可能なキャッシュ制御装置からなる磁気ディスクサ
ブシステムに於て、磁気ディスク装置から読み出した
データを格納しておくメモリ部と、下記に示す機能
を持つコマンド制御部と、磁気ディスク制御装置から
のシーク指示を受けて、前記メモリ部に前記シーク指示
で指示されたトラックのデータが存在するかをチェック
し、その結果前記メモリ部にデータが存在しない場合、
磁気ディスク制御装置にこの旨を通知すると共に、前記
メモリ部にデータが存在しない場合、前記シーク指示で
指示されたトラックデータの読み出し指示を磁気ディス
ク装置に出すこと。
A magnetic disk subsystem according to the present invention includes a magnetic disk controller connected to a central processing unit, at least one magnetic disk device controlled by the magnetic disk controller, and A magnetic disk subsystem comprising a cache controller provided between the magnetic disk controller and the magnetic disk device and capable of caching information stored in the magnetic disk device, and reading from the magnetic disk device. Memory section for storing the data, a command control section having the following functions, and a seek instruction from the magnetic disk control device, and the memory section has the data of the track instructed by the seek instruction. If there is no data in the memory section as a result,
Notifying the magnetic disk controller of this fact and issuing an instruction to read the track data specified by the seek instruction to the magnetic disk device when there is no data in the memory section.

【0008】磁気ディスク制御装置から磁気ディスク
装置へのデータ書込みの指示に基づいて、磁気ディスク
装置へのデータ書込み指示を磁気ディスク装置に出すこ
と。下記に示す機能を持つキャッシュR/W制御部
と、前記コマンド制御部からの磁気ディスク装置の前
記トラックデータの読み出し指示に基づいて、磁気ディ
スク装置にシークコマンドを発行すること。この後、磁
気ディスク装置からシーク終了の報告がきたら、この旨
を磁気ディスク制御装置に通知すると共に、指示された
トラックのデータを磁気ディスク装置から読出し、前記
メモリ部へ書込むこと。
A data writing instruction to the magnetic disk device is issued to the magnetic disk device based on a data writing instruction from the magnetic disk control device to the magnetic disk device. A seek command is issued to the magnetic disk device based on a cache R / W control unit having the following functions and an instruction to read the track data of the magnetic disk device from the command control unit. After this, when a seek end report is received from the magnetic disk device, the fact is notified to the magnetic disk control device, and the data of the instructed track is read from the magnetic disk device and written in the memory section.

【0009】前記コマンド制御部からの前記データ書
込み指示に基づいて、前記トラックデータの読出し指示
で指示された読出し動作を中断して、磁気ディスク制御
装置から送られてきたデータを磁気ディスク装置に書き
込むこと。
On the basis of the data write instruction from the command controller, the read operation instructed by the track data read instruction is interrupted and the data sent from the magnetic disk controller is written to the magnetic disk device. thing.

【0010】前記キャッシュR/W制御部と磁気ディ
スク制御装置の間でデータの受渡しを行う上位インタフ
ェース部と、前記キャッシュR/W制御部と磁気ディ
スク装置の間でデータの受渡しを行う下位インタフェー
ス部と、下記に示す機能を持つデータチェック部
を、磁気ディスク制御装置からの磁気ディスク装置の
トラック上の目的のレコードを捜す指示(サーチ指示)
に基づいて、前記トラックデータの読出し指示により磁
気ディスク装置のデータを読出し中のキャッシュR/W
制御部を監視し、読出し中のデータが先のサーチ指示と
一致するかをチェックすること。
An upper interface unit for transferring data between the cache R / W control unit and the magnetic disk controller, and a lower interface unit for transferring data between the cache R / W control unit and the magnetic disk unit. And a data check unit having the following functions to instruct the magnetic disk control device to search for a target record on the track of the magnetic disk device (search command).
On the basis of the above, the cache R / W which is reading the data of the magnetic disk device according to the track data read instruction.
Monitor the controller to see if the data being read matches the previous search instruction.

【0011】チェックの結果、前記サーチ指示で指示
されるレコードを検出したとき、データ読み出し中のサ
ーチ一致を磁気ディスク制御装置に通知すること。 持つことを特徴とする。
As a result of the check, when the record instructed by the search instruction is detected, the search coincidence during data reading is notified to the magnetic disk controller. It is characterized by having.

【0012】また、下記に示す機能を持つアクセス
コマンド制御部と、 中央処理装置からの磁気ディスク装置に対するシーク
命令を受けて、前記キャッシュ制御装置にシーク指示を
出すこと。
Further, a seek command is issued to the cache controller upon receipt of a seek command for the magnetic disk unit from the access command controller having the following functions and the central processing unit.

【0013】キャッシュ制御装置から前記シーク指示
で指示されたトラックへのシーク終了の通知を受けて、
中央処理装置より次のコマンドであるサーチ指示を読み
込み、前記サーチ指示をキャッシュ制御装置に送るこ
と。下記に示す機能を持つコマンドチェック部と、
前記キャッシュ制御装置から前記データ読み出し中の
サーチ一致の通知を受けて、次のコマンドを中央処理装
置より読み込むこと。
Upon receipt of a seek end notification from the cache controller to the track designated by the seek instruction,
Read the next command, a search instruction, from the central processing unit and send the search instruction to the cache control unit. Command check part with the following functions,
Read the next command from the central processing unit upon receiving a notification from the cache control unit that the search match during data reading.

【0014】前記次のコマンドが磁気ディスク装置へ
のデータの書込みを指示するものか読出しを指示するも
のかを判断し、データの読出し指示の場合は前記次のコ
マンドの実行開始を磁気ディスク制御装置内で待ち合わ
せておき、前記キャッシュ制御装置がトラックデータの
読出し動作を終えると、前記次のコマンドの実行を行う
こと。
It is judged whether the next command is an instruction to write or read data to the magnetic disk device, and if it is an instruction to read data, the execution of the next command is started. Waiting inside, and executing the next command when the cache control device finishes the read operation of the track data.

【0015】一方、データ書込み指示の場合、ライトコ
マンド実行指示を送出すること。
On the other hand, in the case of a data write instruction, a write command execution instruction should be sent.

【0016】前記コマンドチェック部からのライトコ
マンド実行指示により、磁気ディスク装置に書き込むデ
ータを中央処理装置より読出し、キャッシュ制御装置に
転送するライトコマンド実行部と、前記ライトコマン
ド実行部と中央処理装置の間でデータの受渡しを行うシ
ステムインタフェース部と、前記ライトコマンド実行
部とキャッシュ制御装置の間でデータの受渡しを行うデ
バイスインタフェース部と、を持つことを特徴とする。
According to a write command execution instruction from the command check unit, a write command execution unit for reading data to be written in the magnetic disk device from the central processing unit and transferring it to the cache control unit, and the write command execution unit and the central processing unit. It is characterized by having a system interface section for exchanging data between them, and a device interface section for exchanging data between the write command execution section and the cache control device.

【0017】[0017]

【実施例】次に本発明について実施例に基づいて説明す
る。
EXAMPLES Next, the present invention will be explained based on examples.

【0018】図1は本発明の一実施例を示すためのブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0019】メモリ部10は、磁気ディスク装置から読
み出したデータを格納しておく部分、コマンド制御部2
0は、磁気ディスク制御装置からのシーク指示を受け
て、前記メモリ部10に前記シーク指示で指示されたト
ラックのデータが存在するかをチェックし、その結果、
前記メモリ部10にデータが存在しない場合、磁気ディ
スク制御装置にこの旨を通知すると共に前記シーク指示
で指示されたトラックデータの読み出し指示を磁気ディ
スク装置に出すことと、磁気ディスク制御装置から磁気
ディスク装置へのデータ書込みの指示に基づいて、磁気
ディスク装置へのデータ書込み指示を磁気ディスク装置
に出すことを行う部分、キャッシュR/W制御部30
は、前記コマンド制御部20からの磁気ディスク装置の
前記トラックデータの読み出し指示に基づいて、磁気デ
ィスク装置にシークコマンドの発行を行い、磁気ディス
ク装置からシーク終了の報告がきたら、この旨を磁気デ
ィスク制御装置に通知すると共に、指示されたトラック
のデータを磁気ディスク装置から読出し前記メモリ部1
0へ書込むことと、前記コマンド制御部20からの前記
データ書込み指示に基づいて、前記トラックデータの読
出し指示で指示された読出し動作を中断して、磁気ディ
スク制御装置から送られてきたデータを磁気ディスク装
置に書き込むこと、を行う部分、上位インタフェース部
40は、前記キャッシュR/W制御部30と磁気ディス
ク制御装置の間でデータの受渡しを行う部分、下位イン
タフェース部50は、前記キャッシュR/W制御部30
と磁気ディスク装置の間でデータの受渡しを行う部分、
データチェック部60は、磁気ディスク制御装置からの
磁気ディスク装置へのサーチ指示に基づいて、前記トラ
ックデータの読出し指示により磁気ディスク装置のデー
タを読出し中のキャッシュR/W制御部30を監視し、
読出し中のデータが先のサーチ指示と一致するかをチェ
ックし、その結果、前記サーチ指示で指示されるレコー
ドを検出したとき、データ読み出し中のサーチ一致を磁
気ディスク制御装置に通知することを行う部分である。
The memory section 10 is a section for storing data read from the magnetic disk device, the command control section 2
0 receives a seek instruction from the magnetic disk control device, and checks whether or not the data of the track designated by the seek instruction exists in the memory section 10, and as a result,
If there is no data in the memory section 10, the magnetic disk controller is notified of this fact and an instruction to read the track data specified by the seek instruction is issued to the magnetic disk device. A portion for issuing a data write instruction to the magnetic disk device to the magnetic disk device based on the data write instruction to the device, the cache R / W control unit 30.
Issues a seek command to the magnetic disk device based on an instruction to read the track data of the magnetic disk device from the command control unit 20. When a seek end report is received from the magnetic disk device, the magnetic disk device notifies the fact. The memory unit 1 is notified while notifying the control device and reading the data of the instructed track from the magnetic disk device.
0, and the read operation instructed by the track data read instruction is interrupted based on the data write instruction from the command control unit 20, and the data sent from the magnetic disk controller is written. Writing to the magnetic disk device, the upper interface unit 40 transfers data between the cache R / W control unit 30 and the magnetic disk control device, and the lower interface unit 50 operates the cache R / W. W control unit 30
And the part that transfers data between the
The data check unit 60 monitors the cache R / W control unit 30 which is reading data of the magnetic disk device according to the track data read instruction based on the search instruction from the magnetic disk control device to the magnetic disk device,
It is checked whether the data being read matches the previous search instruction. As a result, when the record instructed by the search instruction is detected, the search match during data reading is notified to the magnetic disk controller. It is a part.

【0020】アクセスコマンド制御部100は、中央処
理装置からの磁気ディスク装置に対するシーク命令を受
けて、キャッシュ制御装置にシーク指示を出す、そして
キャッシュ制御装置から前記シーク指示で指示されたト
ラックへのシーク終了の通知を受けて、中央処理装置よ
り次のコマンドであるサーチ指示を読み込み、前記サー
チ指示をキャッシュ制御装置に送ることを行う部分、コ
マンドチェック部110は、キャッシュ制御装置から前
記データ読み出し中のサーチ一致の通知を受けて、次の
コマンドを中央処理装置より読み込む、そして前記次の
コマンドが磁気ディスク装置へのデータの書込みを指示
するものか読出しを指示するものかを判断し、データの
読出し指示の場合は前記次のコマンドの実行開始を磁気
ディスク制御装置内で待ち合わせておき、前記キャッシ
ュ制御装置がトラックデータの読出し動作を終えると、
前記次のコマンドの実行を行う。一方、データ書込み指
示の場合、ライトコマンド実行指示を送出することを行
う部分、ライトコマンド実行部120は、前記コマンド
チェック部110からのライトコマンド実行指示によ
り、磁気ディスク装置に書き込むデータを中央処理装置
より読出し、キャッシュ制御装置に転送する部分、シス
テムインタフェース部130は、前記ライトコマンド実
行部120と中央処理装置の間でデータの受渡しを行う
部分、デバイスインタフェース部140は、前記ライト
コマンド実行部120とキャッシュ制御装置の間でデー
タの受渡しを行う部分である。
The access command control unit 100 receives a seek command from the central processing unit to the magnetic disk unit, issues a seek instruction to the cache control unit, and seeks from the cache control unit to the track instructed by the seek instruction. Upon receipt of the end notification, the central processing unit reads the next command, the search instruction, and sends the search instruction to the cache control unit. The command check unit 110 is a unit that reads the data from the cache control unit. In response to the notification of search match, the next command is read from the central processing unit, and it is judged whether the next command is an instruction to write data to the magnetic disk device or an instruction to read data, and the data is read. When instructed, the execution of the next command is started by the magnetic disk controller. In waiting advance, when the cache controller completes the read operation of the track data,
The following command is executed. On the other hand, in the case of a data write instruction, the write command execution section 120, which is a part that sends out a write command execution instruction, writes the data to be written to the magnetic disk device to the central processing unit according to the write command execution instruction from the command check section 110. A part for reading and transferring to the cache control device, a system interface part 130 for transferring data between the write command execution part 120 and the central processing unit, and a device interface part 140 for the write command execution part 120. This is a part for passing data between the cache control devices.

【0021】中央処理装置より磁気ディスク制御装置に
対して配下の磁気ディスク装置へのシーク命令がある
と、このシーク命令を受けたアクセスコマンド制御部1
00はデバイスインタフェース140を通じてキャッシ
ュ制御装置にシーク命令で指示されたトラックのデータ
を要求する為のシーク指示を出す。上位インタフェース
40を通じて磁気ディスク制御装置からシーク指示を受
けたコマンド制御部20は、前記シーク指示で指示され
たトラックのデータがメモリ部10に存在するかチェッ
クを行い、指示されたトラックのデータが無い場合、デ
ータが存在しない旨を上位インタフェース40を通じて
磁気ディスク制御装置へ通知する。さらに、コマンド制
御部20はキャッシュR/W制御部30に対して前記シ
ーク指示で指示されたトラックデータの読み出し指示を
行う。前記トラックデータの読み出し指示を受けたキャ
ッシュR/W制御部30は、接続された磁気ディスク装
置に下位インタフェース50を通じてシークコマンドを
発行し、磁気ディスク装置からシーク終了の報告が返っ
て来るとこの旨を磁気ディスク制御装置に通知する。そ
して前記トラックデータの読み出し指示に基づいて、指
示されたトラックデータの読出し動作と読み出したデー
タのメモリ部10への書込み動作を開始する。デバイス
インタフェース140を通じてキャッシュ制御装置より
前記シーク終了の報告を受けたアクセスコマンド制御部
100は、システムインタフェース130を通じて中央
処理装置より次のコマンドであるサーチ指示を読出し、
デバイスインタフェース140を通じて前記サーチ指示
をキャッシュ制御装置に送る。上位インタフェース40
を通じて磁気ディスク制御装置から前記サーチ指示を受
けたデータチェック部60は、前記トラックデータの読
出し指示により磁気ディスク装置のデータを読出し中の
キャッシュR/W制御部30を監視し、読出し中のデー
タが先のサーチ指示と一致するかチェックを行い、前記
サーチ指示で指示されるレコードを検出した場合、デー
タ読み出し中のサーチ一致を上位インタフェース40を
通じて磁気ディスク制御装置に通知する。デバイスイン
タフェース140を通じて読み出し中のサーチ一致を受
けたコマンドチェック部110は、システムインタフェ
ース130を通じて次のコマンドを中央処理装置より読
出し、前記次のコマンドが磁気ディスク装置へのデータ
の書込みを指示するものか読出しを指示するものか判断
し、データの読出し指示の場合はキャッシュ制御装置が
トラックデータの読出し動作を終えるまで前記次のコマ
ンドの実行開始を磁気ディスク制御装置内で待ち合わせ
ておく。一方データの書込み指示の場合ライトコマンド
実行指示をライトコマンド実行部120とデバイスイン
タフェース140を通じてキャッシュ制御装置に指示す
る。前記ライトコマンド実行指示を受けたライトコマン
ド実行部120はシステムインタフェース130を通じ
て中央処理装置から磁気ディスク装置に書込む為のデー
タを読み出し、デバイスインタフェース140を通じて
キャッシュ制御装置に転送する。上位インタフェース4
0を通じてライトコマンド実行要求を受けたコマンド制
御部20は磁気ディスク装置へのデータ書込み指示を行
う。前記データ書込み指示を受けたキャッシュR/W制
御部30は前記トラックデータの読出し指示で指示され
た読出し動作の中断を行う。そして上位インタフェース
40を通じて送られてきた磁気ディスク装置に書込むデ
ータを直接磁気ディスク装置に書込む。
When there is a seek command from the central processing unit to the magnetic disk controller under control of the magnetic disk controller, the access command control unit 1 which has received this seek command.
00 issues a seek instruction for requesting the data of the track instructed by the seek instruction to the cache controller through the device interface 140. The command control unit 20 having received the seek instruction from the magnetic disk control device through the host interface 40 checks whether the data of the track designated by the seek instruction exists in the memory unit 10, and there is no data of the designated track. In this case, the fact that there is no data is notified to the magnetic disk controller through the upper interface 40. Further, the command control unit 20 instructs the cache R / W control unit 30 to read out the track data designated by the seek instruction. The cache R / W control unit 30 which has received the track data read instruction issues a seek command to the connected magnetic disk device through the lower interface 50, and when a seek end report is returned from the magnetic disk device, this fact is notified. To the magnetic disk controller. Then, based on the track data read instruction, the operation of reading the instructed track data and the operation of writing the read data to the memory unit 10 are started. The access command controller 100, which has received the seek end report from the cache controller through the device interface 140, reads the next command, a search instruction, from the central processing unit through the system interface 130,
The search instruction is sent to the cache control device through the device interface 140. Upper interface 40
The data check unit 60, which has received the search instruction from the magnetic disk control device through the above, monitors the cache R / W control unit 30 which is reading the data of the magnetic disk device according to the track data read instruction, and the data being read is checked. It is checked whether or not it matches the previous search instruction, and when a record instructed by the search instruction is detected, the search agreement during data reading is notified to the magnetic disk control device through the host interface 40. The command check unit 110, which has received the search match during reading through the device interface 140, reads the next command from the central processing unit through the system interface 130, and whether the next command instructs writing of data to the magnetic disk device. Whether or not it is a read instruction is judged, and if it is a data read instruction, execution start of the next command is waited in the magnetic disk controller until the cache controller finishes the track data read operation. On the other hand, in the case of a data write instruction, a write command execution instruction is given to the cache control device through the write command execution unit 120 and the device interface 140. The write command execution unit 120, which has received the write command execution instruction, reads the data to be written in the magnetic disk device from the central processing unit through the system interface 130 and transfers it to the cache control unit through the device interface 140. Upper interface 4
Upon receiving the write command execution request through 0, the command control unit 20 issues a data write instruction to the magnetic disk device. The cache R / W control unit 30 receiving the data write instruction suspends the read operation instructed by the track data read instruction. Then, the data to be written in the magnetic disk device sent through the upper interface 40 is directly written in the magnetic disk device.

【0022】[0022]

【発明の効果】以上述べたように、本発明はキャッシュ
制御装置のメモリ内に目的のトラックのデータが存在し
ない時、キャッシュ制御装置は磁気ディスク制御装置か
ら送られてきたサーチ指示を用いて磁気ディスク装置か
らトラックデータの読み出し動作時に読み込んだデータ
がサーチ条件に一致しているかのチェックも同時に行
う。
As described above, according to the present invention, when the data of the target track does not exist in the memory of the cache controller, the cache controller uses the search instruction sent from the magnetic disk controller to perform magnetic At the same time, it is checked whether the data read during the track data read operation from the disk device matches the search condition.

【0023】そして一致の報告を受けた場合、磁気ディ
スク制御装置は次のコマンドを読み込み、このコマンド
が磁気ディスク装置のデータの読出し指示の時はキャッ
シュ制御装置がトラックデータの読出し動作を終えるま
で次のコマンドの実行開始を磁気ディスク制御装置内で
待ち合わせておき、一方、データ書込み指示の場合はト
ラックデータの読出し動作の中断を指示し、磁気ディス
ク装置に対して直接ライトコマンドを実行する。これに
よりデータ書込みコマンド実行時の余分な回転時間を減
らすことが可能となり、処理時間の短縮が可能となると
いう利点がある。
When a coincidence report is received, the magnetic disk control device reads the next command, and when this command is an instruction to read data from the magnetic disk device, the cache control device continues until the read operation of track data is completed. The start of execution of the command is waited in the magnetic disk control device. On the other hand, in the case of a data write instruction, the interruption of the track data read operation is instructed, and the write command is directly executed to the magnetic disk device. As a result, it is possible to reduce the extra rotation time when executing the data write command, and there is an advantage that the processing time can be shortened.

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

【図1】本発明の一実施例のブロック図を示す。FIG. 1 shows a block diagram of an embodiment of the present invention.

【図2】キャッシュを用いた磁気ディスクサブシステム
の一例を示す図を示す。
FIG. 2 is a diagram showing an example of a magnetic disk subsystem using a cache.

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

10 メモリ部 20 コマンド制御部 30 キャッシュRead/Write制御部 40 上位インタフェース 50 下位インタフェース 60 データチェック部 100 アクセスコマンド制御部 110 コマンドチェック部 120 ライトコマンド実行部 130 システムインタフェース 140 システムチェック部 10 memory unit 20 command control unit 30 cache Read / Write control unit 40 upper interface 50 lower interface 60 data check unit 100 access command control unit 110 command check unit 120 write command execution unit 130 system interface 140 system check unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置に接続された磁気ディスク
制御装置と、該磁気ディスク制御装置により制御される
少なくとも1台の磁気ディスク装置と、該磁気ディスク
制御装置と該磁気ディスク装置との間に設けられ、該磁
気ディスク装置に格納された情報をキャッシングするこ
とが可能なキャッシュ制御装置からなる磁気ディスクサ
ブシステムに於て、 磁気ディスク装置から読み出したデータを格納してお
くメモリ部と、下記に示す機能を持つコマンド制御
部と、 磁気ディスク制御装置からのシーク指示を受けて、前
記メモリ部に前記シーク指示で指示されたトラックのデ
ータが存在するかをチェックし、チェックの結果前記メ
モリ部にデータが存在しない場合、磁気ディスク制御装
置にこの旨を通知すると共に、前記シーク指示で指示さ
れたトラックデータの読み出し指示を磁気ディスク装置
に出すこと。 磁気ディスク制御装置から磁気ディスク装置へのデー
タ書込みの指示に基づいて、磁気ディスク装置へのデー
タ書込み指示を磁気ディスク装置に出すこと。下記
に示す機能を持つキャッシュR/W制御部と、前記
コマンド制御部からの磁気ディスク装置の前記トラック
データの読み出し指示に基づいて、磁気ディスク装置に
シークコマンドを発行し、この後、磁気ディスク装置か
らシーク終了の報告がきた場合、この旨を磁気ディスク
制御装置に通知すると共に、指示されたトラックのデー
タを磁気ディスク装置から読出し、前記メモリ部へ書込
むこと。 前記コマンド制御部からの前記データ書込み指示に基
づいて、前記トラックデータの読出し指示で指示された
読出し動作を中断して、磁気ディスク制御装置から送ら
れてきたデータを磁気ディスク装置に書き込むこと。 前記キャッシュR/W制御部と磁気ディスク制御装置
の間でデータの受渡しを行う上位インターフェース部
と、 前記キャッシュR/W制御部と磁気ディスク装置の間
でデータの受渡しを行う下位インターフェース部と、 下記に示す機能を持つデータチェック部とを、 磁気ディスク制御装置からの磁気ディスク装置のトラ
ック上の目的のレコードを捜す指示(サーチ指示)に基
づいて、前記トラックデータの読出し指示により磁気デ
ィスク装置のデータを読出し中のキャッシュR/W制御
部を監視し、読出し中のデータが先のサーチ指示と一致
するかをチェックすること。 チェックの結果、前記サーチ指示で指示されるレコー
ドを検出したとき、データ読み出し中のサーチ一致を磁
気ディスク制御装置に通知すること。 持つことを特徴とするキャッシュ制御装置を含む磁気デ
ィスクサブシステム。
1. A magnetic disk control device connected to a central processing unit, at least one magnetic disk device controlled by the magnetic disk control device, and between the magnetic disk control device and the magnetic disk device. In a magnetic disk subsystem provided with a cache control device capable of caching information stored in the magnetic disk device, a memory unit for storing data read from the magnetic disk device, and Upon receipt of a seek instruction from the command control unit having the indicated function and the magnetic disk control device, it is checked whether or not the data of the track designated by the seek instruction exists in the memory unit. If there is no data, the magnetic disk controller is notified of this fact and the seek instruction Reading instruction track data be output to the magnetic disk device. An instruction to write data to a magnetic disk device is issued to the magnetic disk device based on an instruction to write data to the magnetic disk device from the magnetic disk control device. A seek command is issued to the magnetic disk device based on a cache R / W control unit having the following functions and a read instruction of the track data of the magnetic disk device from the command control unit, and thereafter a magnetic disk device is issued. When the seek end report is sent from the magnetic disk controller, the fact is notified to the magnetic disk controller, and the data of the instructed track is read from the magnetic disk device and written in the memory section. Based on the data write instruction from the command control unit, the read operation instructed by the track data read instruction is interrupted, and the data sent from the magnetic disk control device is written to the magnetic disk device. An upper interface unit that transfers data between the cache R / W control unit and the magnetic disk control device; a lower interface unit that transfers data between the cache R / W control unit and the magnetic disk device; And a data check unit having the function shown in FIG. 1, based on an instruction (search instruction) from the magnetic disk control device to search for a target record on a track of the magnetic disk device. To monitor the cache R / W control unit being read, and check whether the data being read matches the previous search instruction. As a result of the check, when the record instructed by the search instruction is detected, the magnetic disk controller is notified of a search match during data reading. A magnetic disk subsystem including a cache control device having.
【請求項2】 下記に示す機能を持つアクセスコマ
ンド制御部と、 中央処理装置からの磁気ディスク装置に対するシーク
命令を受けて、前記キャッシュ制御装置にシーク指示を
出すこと。 キャッシュ制御装置から前記シーク指示で指示された
トラックへのシーク終了の通知を受けて、中央処理装置
より次のコマンドであるサーチ指示を読み込み、前記サ
ーチ指示をキャッシュ制御装置に送ること。 下記に示す機能を持つコマンドチェック部と、 前記キャッシュ制御装置から前記データ読み出し中の
サーチ一致の通知を受けて次のコマンドを中央処理装置
より読み込むこと。 前記次のコマンドが磁気ディスク装置へのデータの書
込みを指示するものか読出しを指示するものかを判断
し、データの読出し指示の場合は前記次のコマンドの実
行開始を磁気ディスク制御装置内で待ち合わせておき、
前記キャッシュ制御装置がトラックデータの読出し動作
を終えると、前記次のコマンドの実行を行うこと。 一方、データ書込み指示の場合、ライトコマンド実行指
示を送出すること。 前記コマンドチェック部からのライトコマンド実行指
示により、磁気ディスク装置に書き込むデータを中央処
理装置より読出し、キャッシュ制御装置に転送するライ
トコマンド実行部と、 前記ライトコマンド実行部と中央処理装置の間でデー
タの受渡しを行うシステムインタフェース部と、 前記ライトコマンド実行部とキャッシュ制御装置の間
でデータの受渡しを行うデバイスインタフェース部と、 を持つことを特徴とする磁気ディスク制御装置を含む請
求項1に記載の磁気ディスクサブシステム。
2. An access command control unit having the following functions, and a seek instruction to the cache control unit upon receiving a seek command from the central processing unit to the magnetic disk unit. Receiving a notification from the cache control device of the end of seek to the track designated by the seek instruction, the central processing unit reads the next command, the search instruction, and sends the search instruction to the cache control apparatus. A command check unit having the following functions, and reading the next command from the central processing unit upon receipt of a search match notification during the data reading from the cache control unit. It is determined whether the next command is an instruction to write or read data to the magnetic disk device, and if it is a data read instruction, the execution start of the next command is waited in the magnetic disk controller. Aside
When the cache control device finishes the track data read operation, the next command is executed. On the other hand, in the case of a data write instruction, send a write command execution instruction. In response to a write command execution instruction from the command check unit, a write command execution unit that reads the data to be written to the magnetic disk device from the central processing unit and transfers it to the cache control device, and data between the write command execution unit and the central processing unit. 2. The magnetic disk controller according to claim 1, further comprising: a system interface unit for delivering and receiving data, and a device interface unit for delivering and receiving data between the write command execution unit and the cache controller. Magnetic disk subsystem.
JP4153046A 1992-05-21 1992-05-21 Magnetic disk sub system Pending JPH05324475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4153046A JPH05324475A (en) 1992-05-21 1992-05-21 Magnetic disk sub system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4153046A JPH05324475A (en) 1992-05-21 1992-05-21 Magnetic disk sub system

Publications (1)

Publication Number Publication Date
JPH05324475A true JPH05324475A (en) 1993-12-07

Family

ID=15553794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4153046A Pending JPH05324475A (en) 1992-05-21 1992-05-21 Magnetic disk sub system

Country Status (1)

Country Link
JP (1) JPH05324475A (en)

Similar Documents

Publication Publication Date Title
JP2009110287A (en) Access control device and access control method
JP2637788B2 (en) Disk cache control method and information processing system
JP2000181773A (en) Storage device system
JPH03109635A (en) Dump system and disk subsystem in on-line mode
JP3087429B2 (en) Storage system
JP2759920B2 (en) Method and apparatus for operating a DASD peripheral data storage subsystem
JPH05324475A (en) Magnetic disk sub system
JPS63305445A (en) Data writing system at power break
JP2634867B2 (en) Disk cache data transfer control method
JP2002342038A (en) Disk device controlling execution order of commands
JP3425355B2 (en) Multiple write storage
JPH10275425A (en) Disk device and method for rapidly transferring rearrangement data due to defect in it to host
JP2811678B2 (en) Data processing device with cache memory
JP2696845B2 (en) Data processor with cache memory
JP2732951B2 (en) Data transfer control method
JPH0514353Y2 (en)
JP2704138B2 (en) Control method of magnetic disk cache
JP2634025B2 (en) Format write control method for magnetic disk controller
JPH02132515A (en) Pre-read control system
JP2737555B2 (en) Disk controller
JPH0122656B2 (en)
JPH04341977A (en) Data reproducing control system
JPH0432944A (en) Magnetic disk control system
JPH0743673B2 (en) Writing control method to auxiliary storage device
JPH0820934B2 (en) Disk cache control method