JPH04220739A - Write hit control method for disk controller - Google Patents

Write hit control method for disk controller

Info

Publication number
JPH04220739A
JPH04220739A JP2412438A JP41243890A JPH04220739A JP H04220739 A JPH04220739 A JP H04220739A JP 2412438 A JP2412438 A JP 2412438A JP 41243890 A JP41243890 A JP 41243890A JP H04220739 A JPH04220739 A JP H04220739A
Authority
JP
Japan
Prior art keywords
write
data
memory
nonvolatile memory
control method
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.)
Withdrawn
Application number
JP2412438A
Other languages
Japanese (ja)
Inventor
Nobukazu Kirigatani
桐ケ谷 信和
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2412438A priority Critical patent/JPH04220739A/en
Publication of JPH04220739A publication Critical patent/JPH04220739A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To perform write-through operation and write-back operation by single-time device access when there is no write space for write data on a nonvolatile memory at the time of a write hit. CONSTITUTION:The disk controller updates data on a main memory 11 with write transferred from a host 2 and also stores the write data on the nonvolatile memory 12 for write-back operation when there are the write data present on the main memory 11. A cache control part 15 decides whether or not there is a storage area for the write data left on the nonvolatile memory 12 and when not, a cache control part 15 instructs the wire-back operation for other data on the same track on the nonvolatile memory 12 and write-through operation for the write data to a low-order transfer part 14, thus performing the write-back operation and write-through operation by single-time seek operation.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】(目次) 産業上の利用分野 従来の技術(図4,図5) 発明が解決しようとする課題 課題を解決するための手段(図1) 作用 実施例 (a)一実施例の説明(図2,図3) (b)他の実施例の説明 発明の効果[0001] (Table of Contents) Industrial applications Conventional technology (Fig. 4, Fig. 5) Problems that the invention aims to solve Means to solve problems (Figure 1) action Example (a) Description of one embodiment (Figures 2 and 3) (b) Description of other embodiments Effect of the invention

【0002】0002

【産業上の利用分野】本発明は、上位から転送されたラ
イトデータがメインメモリに存在する場合に、メインメ
モリのデータをライトデータで更新するとともに、ライ
トバック動作のため不揮発性メモリにライトデータを格
納しておくディスク制御装置のライトヒット制御方法に
関する。
[Industrial Application Field] The present invention updates the data in the main memory with the write data when write data transferred from a higher level exists in the main memory, and also stores the write data in the nonvolatile memory for write-back operation. The present invention relates to a write hit control method for a disk control device that stores.

【0003】磁気ディスク装置、光ディスク装置等の記
憶ディスク装置が、コンピュータシステムのダイレクト
・アクセス・ストレッジデバイス(DASD)として広
く利用されている。このようなシステムでは、記憶ディ
スク制御装置にキャッシュメモリを設け、予め記憶ディ
スク装置のデータの一部をキャッシュメモリに移して置
き、ホストのデータ待ち時間を短縮することが行われて
いる。
Storage disk devices such as magnetic disk devices and optical disk devices are widely used as direct access storage devices (DASD) in computer systems. In such a system, a cache memory is provided in the storage disk control device, and a portion of the data in the storage disk device is moved to the cache memory in advance to shorten the data waiting time of the host.

【0004】このようなシステムにおいて、ライト時に
、ライトデータがキャッシュメモリに存在するライトヒ
ットの場合には、キャッシュメモリのデータをライトデ
ータで更新し、空き時間にそのデータをデバイスに書き
込むライトバック動作を行っている。
[0004] In such a system, in the case of a write hit where the write data exists in the cache memory at the time of writing, a write back operation is performed in which the data in the cache memory is updated with the write data and the data is written to the device during free time. It is carried out.

【0005】このライトバックのため、電源が落ちても
、データを保存できるように、キャッシュメモリに不揮
発性メモリが設けられており、ライトデータがキャッシ
ュメモリのメインメモリと共に書き込まれる。
[0005] For this write-back, the cache memory is provided with a non-volatile memory so that the data can be saved even if the power is turned off, and the write data is written together with the main memory of the cache memory.

【0006】この時、不揮発性メモリに格納領域がない
場合に、ライトデータが不揮発性メモリに書き込めなく
なり、この対応が求められる。
[0006] At this time, if there is no storage area in the nonvolatile memory, write data cannot be written to the nonvolatile memory, so a countermeasure is required.

【0007】[0007]

【従来の技術】図4は従来技術の構成図、図5は従来の
ライトヒット処理フロー図である。
2. Description of the Related Art FIG. 4 is a block diagram of a conventional technique, and FIG. 5 is a flowchart of a conventional write hit process.

【0008】図4に示すように、磁気ディスク制御装置
1は、ホスト(上位)2と磁気ディスクデバイス3との
間に位置している。
As shown in FIG. 4, a magnetic disk control device 1 is located between a host (upper level) 2 and a magnetic disk device 3. As shown in FIG.

【0009】この磁気ディスク制御装置1は、ホスト2
とデータ転送するためのチャネルアダプタ(上位側転送
部)13と、デバイス3とデータ転送するためのデバイ
スアダプタ(下位側転送部)14と、メインメモリ11
と不揮発性メモリ(NVS)12とからなるキャッシュ
メモリ10と、キャッシュメモリ10の管理のためのキ
ャッシュ管理部15とがバス16で接続されてなる。
This magnetic disk control device 1 has a host 2
a channel adapter (upper side transfer unit) 13 for data transfer with the device 3, a device adapter (lower side transfer unit) 14 for data transfer with the device 3, and a main memory 11.
A cache memory 10 consisting of a non-volatile memory (NVS) 12 and a cache management unit 15 for managing the cache memory 10 are connected by a bus 16.

【0010】このメインメモリ11に、デバイス3のデ
ータの一部が格納され、不揮発性メモリ12にライトバ
ックのためのライトデータが格納される。
A part of the data of the device 3 is stored in the main memory 11, and write data for write back is stored in the nonvolatile memory 12.

【0011】従来のライトヒット処理を図4及び図5に
より説明する。
Conventional write hit processing will be explained with reference to FIGS. 4 and 5.

【0012】■ホスト2からSIO(スタートIO)が
、チャネルアダプタ13に来ると、チャネルアダプタ1
3は、キャッシュ管理部15にこのデータ(ブロック1
A)がライトヒットかどうかの判定を依頼する。キャッ
シュ管理部15は、メインメモリ11の格納状況を判定
し、このデータがライトヒットかを判定し、ライトヒッ
トでなければ、デバイスアダプタ14を起動し、通常の
デバイス3への書き込みを行う。
■When SIO (start IO) comes from host 2 to channel adapter 13, channel adapter 1
3, this data (block 1
Request a judgment on whether or not A) is a light hit. The cache management unit 15 determines the storage status of the main memory 11, determines whether this data is a write hit, and if it is not a write hit, activates the device adapter 14 and performs normal writing to the device 3.

【0013】一方、ライトヒットであれば、キャッシュ
管理部15は、不揮発性メモリ12にこのデータを書き
込むスペースが有るかを判定する。不揮発性メモリ12
にこのデータを書き込むスペースが有れば、このデータ
でメインメモリ11を更新した後、不揮発性メモリ12
にこのデータを書き込む。
On the other hand, if it is a write hit, the cache management unit 15 determines whether there is space in the nonvolatile memory 12 to write this data. Non-volatile memory 12
If there is space to write this data, after updating the main memory 11 with this data, write the data to the non-volatile memory 12.
Write this data to .

【0014】■逆に、不揮発性メモリ12にこのデータ
を書き込むスペースがなければ、キャッシュ管理部15
は、デバイスアダプタ14に対し、不揮発性メモリ12
のデータ(ブロック2A)をデバイス3に書き込むライ
トバック指示を出す。
[0014] Conversely, if there is no space to write this data in the nonvolatile memory 12, the cache management unit 15
is the non-volatile memory 12 for the device adapter 14.
A write-back instruction is issued to write the data (block 2A) to device 3.

【0015】■これによって、デバイスアダプタ14は
、シーク動作によりデバイス3をつかまえて、ライトバ
ック動作を行い、データ(ブロック2A)のデバイス3
への書き込みを終了させる。
[0015] As a result, the device adapter 14 grabs the device 3 through a seek operation, performs a write-back operation, and transfers the data (block 2A) to the device 3.
Finish writing to.

【0016】■次に、キャッシュ管理部15は、デバイ
スアダプタ14及びチャネルアダプタ13に対し、この
データ(ブロック1A)のメインメモリ11とデバイス
3への同時書き込みするライトスルー指示をだす。
[0016]Next, the cache management unit 15 issues a write-through instruction to the device adapter 14 and channel adapter 13 to simultaneously write this data (block 1A) to the main memory 11 and the device 3.

【0017】これによって、デバイスアダプタ14は、
シーク動作によりデバイス3をつかまえて、チャネルア
ダプタ13と結託してライトスルー動作を行い、データ
(ブロック1A)のデバイス3及びメインメモリ11へ
の書き込み終了させる。
[0017] As a result, the device adapter 14 can:
It seizes the device 3 by a seek operation, performs a write-through operation in collusion with the channel adapter 13, and finishes writing the data (block 1A) to the device 3 and main memory 11.

【0018】このようにして、従来は、不揮発性メモリ
12にスペースがないライトヒットの場合には、ライト
スルー動作を行い、ライトスルー動作とライトバック動
作を2回に分けて実行していた。
In this way, conventionally, in the case of a write hit when there is no space in the nonvolatile memory 12, a write-through operation is performed, and the write-through operation and the write-back operation are executed twice.

【0019】[0019]

【発明が解決しようとする課題】しかしながら、従来技
術は、1つのSIOに対して、デバイスを2度つかまえ
なければならず、2倍の時間を必要とし、ライトヒット
の効率が上がらず、従来のライトスルーよりも遅くなる
という問題があった。
[Problems to be Solved by the Invention] However, in the conventional technology, the device must be grabbed twice for one SIO, requiring twice the time, and the write hit efficiency is not improved. There was a problem that it was slower than write-through.

【0020】従って、本発明は、1回のデバイスアクセ
スでライトスルー動作とライトバック動作を実行するこ
とができるディスク制御装置のライトヒット制御方法を
提供することを目的とする。
[0020] Accordingly, an object of the present invention is to provide a write hit control method for a disk control device that can execute a write-through operation and a write-back operation in one device access.

【0021】[0021]

【課題を解決するための手段】図1は本発明の原理図で
ある。
[Means for Solving the Problems] FIG. 1 is a diagram showing the principle of the present invention.

【0022】本発明の請求項1は、上位2とデータ転送
する上位側転送部13と、記憶ディスクデバイス3とデ
ータ転送する下位側転送部14と、メインメモリ11と
不揮発性メモリ12からなるキャッシュメモリ10と、
該キャッシュメモリ10を管理するキャッシュ管理部1
5とを有し、該上位2から転送されたライトデータが該
メインメモリ11に存在する場合に、該メインメモリ1
1のデータを該ライトデータで更新するとともに、ライ
トバック動作のため該不揮発性メモリ12に該ライトデ
ータを格納しておくディスク制御装置において、該キャ
ッシュ管理部15が該不揮発性メモリ12に該ライトデ
ータの格納領域が有るかを判定し、該不揮発性メモリ1
2に格納領域がない場合に、該キャッシュ管理部15が
該不揮発性メモリ12の同一トラックの他のデータのラ
イトバック動作と、該ライトデータのライトスルー動作
を該下位側転送部14に指示し、該ライトバック動作と
該ライトスルー動作を1回のシーク動作で実行すること
を特徴とする。
Claim 1 of the present invention provides a cache comprising an upper transfer section 13 for transferring data to the upper layer 2, a lower transfer section 14 for transferring data to the storage disk device 3, a main memory 11 and a non-volatile memory 12. memory 10,
Cache management unit 1 that manages the cache memory 10
5, and when the write data transferred from the upper 2 exists in the main memory 11, the main memory 1
1 with the write data and stores the write data in the non-volatile memory 12 for write-back operation, the cache management unit 15 updates the write data in the non-volatile memory 12. Determine whether there is a storage area for data, and
2, the cache management unit 15 instructs the lower transfer unit 14 to write back other data on the same track of the nonvolatile memory 12 and write through the write data. , the write-back operation and the write-through operation are performed in one seek operation.

【0023】本発明の請求項2は、請求項1において、
前記不揮発性メモリ12に同一トラックの他のデータが
存在しない場合には、前記キャッシュ管理部15は、前
記ライトデータのライトスルー動作を前記下位側転送部
14に指示することを特徴とする。
[0023] Claim 2 of the present invention provides the following in claim 1:
If there is no other data on the same track in the nonvolatile memory 12, the cache management section 15 instructs the lower transfer section 14 to perform a write-through operation of the write data.

【0024】本発明の請求項3は、請求項1において、
前記キャッシュ管理部15は、前記下位側転送部14に
、前記同一トラックの他のデータが前記ライトデータよ
り先のブロックの場合には、前記ライトバック動作を指
示した後に、前記ライトスルー動作を指示し、前記同一
トラックの他のデータが前記ライトデータより後のブロ
ックの場合には、前記ライトスルー動作を指示した後に
、前記ライトバック動作を指示することを特徴とする。
[0024] Claim 3 of the present invention provides the following in claim 1:
The cache management unit 15 instructs the lower-side transfer unit 14 to perform the write-through operation after instructing the write-back operation if other data on the same track is a block earlier than the write data. However, if the other data on the same track is a block after the write data, the write-back operation is instructed after the write-through operation is instructed.

【0025】[0025]

【作用】本発明の請求項1では、不揮発性メモリ12に
ライトデータの格納領域がない場合に、不揮発性メモリ
12の同一トラックの他のデータのライトバック動作と
、該ライトデータのライトスルー動作を下位側転送部1
4に指示しているので、ライトバック動作とライトスル
ー動作が同一トラックのため、1回のシーク動作で両動
作を実行でき、ライトヒットの効率を向上し、時間短縮
に寄与する。
[Operation] According to claim 1 of the present invention, when there is no storage area for write data in the non-volatile memory 12, a write-back operation of other data on the same track of the non-volatile memory 12 and a write-through operation of the write data are performed. Lower side transfer section 1
4, the write-back operation and write-through operation are performed on the same track, so both operations can be performed with one seek operation, improving write hit efficiency and contributing to time reduction.

【0026】本発明の請求項2では、不揮発性メモリ1
2に同一トラックの他のデータが存在しない場合には、
ライトデータのライトスルー動作を前記下位側転送部1
4に指示するので、他のトラックのライトバック動作を
行わないため、ライトバック動作に時間を余分に取られ
ることがない。
In claim 2 of the present invention, the nonvolatile memory 1
If there is no other data on the same track in 2,
The write-through operation of write data is performed by the lower transfer unit 1.
4, the write-back operation for other tracks is not performed, so no extra time is taken for the write-back operation.

【0027】本発明の請求項3では、同一トラックの他
のデータがライトデータより先のブロックの場合には、
ライトバック動作を指示した後に、ライトスルー動作を
指示し、同一トラックの他のデータがライトデータより
後のブロックの場合には、ライトスルー動作を指示した
後に、ライトバック動作を指示するので、デバイス3の
回転に合わせて、ライトバック動作とライトスルー動作
を連続的に実行でき、一層時間短縮が可能となる。
According to claim 3 of the present invention, if other data on the same track is a block earlier than the write data,
After instructing a write-back operation, a write-through operation is instructed, and if other data on the same track is a block after the write data, the write-back operation is instructed after instructing a write-through operation, so the device The write-back operation and the write-through operation can be performed continuously in accordance with the rotation of 3, making it possible to further shorten the time.

【0028】[0028]

【実施例】(a)一実施例の説明図2は本発明の一実施
例のための構成図、図3は本発明の一実施例ライトヒッ
ト処理フロー図である。
Embodiment (a) Description of an Embodiment FIG. 2 is a block diagram for an embodiment of the present invention, and FIG. 3 is a write hit processing flow diagram of an embodiment of the present invention.

【0029】図中、図1、図4及び図5で示したものと
同一のものは、同一の記号で示してある。
In the figures, the same parts as those shown in FIGS. 1, 4 and 5 are indicated by the same symbols.

【0030】■ホスト2からSIO(スタートIO)が
、チャネルアダプタ13に来ると、チャネルアダプタ1
3は、キャッシュ管理部15にこの新データ(ブロック
1A)がライトヒットかどうかの判定を依頼する。
■When SIO (start IO) comes from host 2 to channel adapter 13, channel adapter 1
3 requests the cache management unit 15 to determine whether this new data (block 1A) is a write hit.

【0031】キャッシュ管理部15は、メインメモリ1
1の格納状況を判定し、この新データがライトヒットか
を判定し、ライトヒットでなければ、デバイスアダプタ
14を起動し、通常のデバイス3への書き込みを行う。 一方、ライトヒットであれば、キャッシュ管理部15は
、不揮発性メモリ12にこの新データを書き込むスペー
スが有るかを判定する。
[0031] The cache management unit 15 stores the main memory 1
1 and determines whether this new data is a write hit. If it is not a write hit, the device adapter 14 is activated and normal writing to the device 3 is performed. On the other hand, if it is a write hit, the cache management unit 15 determines whether there is space in the nonvolatile memory 12 to write this new data.

【0032】不揮発性メモリ12にこの新データを書き
込むスペースが有れば、このデータでメインメモリ11
を更新した後、不揮発性メモリ12にこのデータを書き
込む。
If there is space to write this new data in the nonvolatile memory 12, this data can be used to write the new data into the main memory 11.
After updating, this data is written to the nonvolatile memory 12.

【0033】■逆に、不揮発性メモリ12にこの新デー
タを書き込むスペースがなければ、キャッシュ管理部1
5は、不揮発性メモリ12に新データと同じトラックの
旧データが存在するか判定する。
■Conversely, if there is no space to write this new data in the nonvolatile memory 12, the cache management unit 1
Step 5 determines whether old data of the same track as the new data exists in the nonvolatile memory 12.

【0034】不揮発性メモリ12に新データと同じトラ
ックの旧データが存在しなければ、ライトバック動作に
時間がかかるため、キャッシュ管理部15は、デバイス
アダプタ14及びチャネルアダプタ13に対し、この新
データ(ブロック1A)のメインメモリ11とデバイス
3への同時書き込みするライトスルー指示をだす。
If there is no old data in the same track as the new data in the nonvolatile memory 12, the write-back operation will take time. A write-through instruction for simultaneous writing to the main memory 11 and device 3 (block 1A) is issued.

【0035】これによって、デバイスアダプタ14は、
シーク動作によりデバイス3をつかまえて、チャネルア
ダプタ13と結託してライトスルー動作を行い、データ
(ブロック1A)のデバイス3及びメインメモリ11へ
の書き込みを行う。一方、不揮発性メモリ12に新デー
タと同じトラックの旧データが存在すれば、キャッシュ
管理部15は、同一トラック上で不揮発性メモリ12の
旧データと新データのどちらが先かを判定する。
[0035] As a result, the device adapter 14
It seizes the device 3 through a seek operation, performs a write-through operation in collusion with the channel adapter 13, and writes data (block 1A) to the device 3 and main memory 11. On the other hand, if old data on the same track as the new data exists in the nonvolatile memory 12, the cache management unit 15 determines which comes first, the old data or the new data in the nonvolatile memory 12 on the same track.

【0036】■旧データが先なら、キャッシュ管理部1
5は、デバイスアダプタ14に対し、不揮発性メモリ1
2の旧データ(ブロック2A)をデバイス3に書き込む
ライトバック指示を出し、次にデバイスアダプタ14及
びチャネルアダプタ13に対し、この新データ(ブロッ
ク1A)のメインメモリ11とデバイス3への同時書き
込みするライトスルー指示を出す。
■If the old data comes first, cache management section 1
5 is a non-volatile memory 1 for the device adapter 14.
A write-back instruction is issued to write the old data (block 2A) of block 2 to device 3, and then the device adapter 14 and channel adapter 13 write this new data (block 1A) to the main memory 11 and device 3 at the same time. Issue a write-through instruction.

【0037】■これによって、デバイスアダプタ14は
、シーク動作によりデバイス3をつかまえて、ライトバ
ック動作を行い、旧データ(ブロック2A)のデバイス
3への書き込みを行う。
[0037] As a result, the device adapter 14 grabs the device 3 through a seek operation, performs a write-back operation, and writes the old data (block 2A) to the device 3.

【0038】■これに引き続いて、デバイスアダプタ1
4は、チャネルアダプタ13と結託してライトスルー動
作を行い、新データ(ブロック1A)のデバイス3及び
メインメモリ11への書き込みを行い、終了する。
■Subsequently, device adapter 1
4 performs a write-through operation in collusion with the channel adapter 13, writes new data (block 1A) to the device 3 and the main memory 11, and ends.

【0039】■逆に、新データが先なら、キャッシュ管
理部15は、デバイスアダプタ14及びチャネルアダプ
タ13に対し、この新データ(ブロック1A)のメイン
メモリ11とデバイス3への同時書き込みするライトス
ルー指示を出し、次にデバイスアダプタ14に対し、不
揮発性メモリ12の旧データ(ブロック2A)をデバイ
ス3に書き込むライトバック指示を出す。
On the other hand, if the new data comes first, the cache management unit 15 requests the device adapter 14 and the channel adapter 13 to perform a write-through to simultaneously write this new data (block 1A) to the main memory 11 and the device 3. Then, a write-back instruction is issued to the device adapter 14 to write the old data (block 2A) in the nonvolatile memory 12 to the device 3.

【0040】■これによって、デバイスアダプタ14は
、シーク動作によりデバイス3をつかまえて、チャネル
アダプタ13と結託してライトスルー動作を行い、新デ
ータ(ブロック1A)のデバイス3及びメインメモリ1
1への書き込みを行う。
[0040] As a result, the device adapter 14 seizes the device 3 through a seek operation, performs a write-through operation in collusion with the channel adapter 13, and transfers new data (block 1A) to the device 3 and the main memory 1.
Write to 1.

【0041】■これに引き続いて、デバイスアダプタ1
4は、ライトバック動作を行い、旧データ(ブロック2
A)のデバイス3への書き込みを行い、終了する。
■Subsequently, device adapter 1
4 performs a write-back operation and writes the old data (block 2
A) is written to the device 3, and the process ends.

【0042】このようにして、不揮発性メモリ12にラ
イトデータの格納領域がない場合に、不揮発性メモリ1
2の同一トラックの他のデータのライトバック動作と、
該ライトデータのライトスルー動作を下位側転送部14
に指示するようにして、ライトバック動作とライトスル
ー動作を同一トラックに規制し、1回のシーク動作で両
動作を実行でき、ライトヒットの効率を向上し、時間短
縮に寄与する。
In this way, when there is no write data storage area in the nonvolatile memory 12, the nonvolatile memory 1
2. Write back operation of other data on the same track,
The write-through operation of the write data is performed by the lower transfer unit 14.
The write-back operation and the write-through operation are restricted to the same track, and both operations can be executed with one seek operation, improving write hit efficiency and contributing to time reduction.

【0043】又、不揮発性メモリ12に同一トラックの
他のデータが存在しない場合には、ライトデータのライ
トスルー動作を前記下位側転送部14に指示するので、
他のトラックのライトバック動作を行わないため、ライ
トバック動作に時間を余分に取られることがない。
Furthermore, if there is no other data on the same track in the nonvolatile memory 12, the lower-side transfer section 14 is instructed to perform a write-through operation of the write data.
Since the write-back operation for other tracks is not performed, no extra time is taken for the write-back operation.

【0044】更に、同一トラックの他のデータがライト
データより先のブロックの場合には、ライトバック動作
を指示した後に、ライトスルー動作を指示し、同一トラ
ックの他のデータがライトデータより後のブロックの場
合には、ライトスルー動作を指示した後に、ライトバッ
ク動作を指示するので、デバイス3の回転に合わせて、
ライトバック動作とライトスルー動作を連続的に実行で
き、一層時間短縮が可能となる。
Furthermore, if other data on the same track is a block before the write data, write back operation is instructed, then write through operation is instructed, and other data on the same track is a block after the write data. In the case of a block, the write-back operation is instructed after the write-through operation is instructed, so as the device 3 rotates,
Write-back operations and write-through operations can be performed continuously, making it possible to further reduce time.

【0045】(b)他の実施例の説明上述の実施例の他
に、本発明は、次のような変形が可能である。
(b) Description of other embodiments In addition to the embodiments described above, the present invention can be modified as follows.

【0046】■記憶ディスク装置を磁気ディスク装置で
説明したが、光ディスク装置等他の記憶ディスク装置に
適用しても良い。
(2) Although the storage disk device has been described as a magnetic disk device, the present invention may also be applied to other storage disk devices such as an optical disk device.

【0047】■同一トラックのデータの先後にかかわら
ず、ライトバック動作とライトスルー動作の先後を固定
してもよい。
(2) The destination of write-back operation and write-through operation may be fixed regardless of the destination of data on the same track.

【0048】以上、本発明を実施例により説明したが、
本発明の主旨の範囲内で種々の変形が可能であり、これ
らを本発明の範囲から排除するものではない。
The present invention has been explained above using examples, but
Various modifications are possible within the scope of the present invention, and these are not excluded from the scope of the present invention.

【0049】[0049]

【発明の効果】以上説明したように、本発明によれば、
次の効果を奏する。
[Effects of the Invention] As explained above, according to the present invention,
It has the following effects.

【0050】■不揮発性メモリ12の同一トラックの他
のデータのライトバック動作と、該ライトデータのライ
トスルー動作を下位側転送部14に指示するようにして
、ライトバック動作とライトスルー動作を同一トラック
に規制しているので、1回のシーク動作で両動作を実行
でき、ライトヒットの効率を向上する。
■ The write-back operation and the write-through operation are performed in the same manner by instructing the lower-side transfer unit 14 to perform a write-back operation for other data on the same track of the non-volatile memory 12 and a write-through operation for the write data. Since it is restricted to a track, both operations can be executed in one seek operation, improving the efficiency of write hits.

【0051】■1回のシーク動作で両動作を実行できる
ので、時間短縮に寄与する。
(2) Both operations can be executed in one seek operation, contributing to time reduction.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の原理図である。FIG. 1 is a diagram showing the principle of the present invention.

【図2】本発明の一実施例のための構成図である。FIG. 2 is a block diagram for one embodiment of the present invention.

【図3】本発明の1実施例ライトヒット処理フロー図で
ある。
FIG. 3 is a flowchart of write hit processing according to one embodiment of the present invention.

【図4】従来技術の構成図である。FIG. 4 is a configuration diagram of a prior art.

【図5】従来のライトヒット処理フロー図である。FIG. 5 is a conventional write hit processing flow diagram.

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

1  磁気ディスク制御装置 2  ホスト(上位) 3 記憶ディスクデバイス 10  キャッシュメモリ 11  メインメモリ12  不揮発性メモリ13  
チャネルアダプタ(上位側転送部) 14  デバイスアダプタ(下位側転送部)15  キ
ャッシュ管理部
1 Magnetic disk control device 2 Host (upper) 3 Storage disk device 10 Cache memory 11 Main memory 12 Non-volatile memory 13
Channel adapter (upper transfer unit) 14 Device adapter (lower transfer unit) 15 Cache management unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  上位(2)とデータ転送する上位側転
送部(13)と、記憶ディスクデバイス(3)とデータ
転送する下位側転送部(14)と、メインメモリ(11
)と不揮発性メモリ(12)からなるキャッシュメモリ
(10)と、該キャッシュメモリ(10)を管理するキ
ャッシュ管理部(15)とを有し、該上位(2)から転
送されたライトデータが該メインメモリ(11)に存在
する場合に、該メインメモリ(11)のデータを該ライ
トデータで更新するとともに、ライトバック動作のため
該不揮発性メモリ(12)に該ライトデータを格納して
おくディスク制御装置において、該キャッシュ管理部(
15)が該不揮発性メモリ(12)に該ライトデータの
格納領域が有るかを判定し、該不揮発性メモリ(12)
に格納領域がない場合に、該キャッシュ管理部(15)
が該不揮発性メモリ(12)の同一トラックの他のデー
タのライトバック動作と、該ライトデータのライトスル
ー動作を該下位側転送部(14)に指示し、該ライトバ
ック動作と該ライトスルー動作を1回のシーク動作で実
行することを特徴とするディスク制御装置のライトヒッ
ト制御方法。
Claim 1: An upper-side transfer unit (13) that transfers data to an upper-layer (2), a lower-side transfer unit (14) that transfers data to and from a storage disk device (3), and a main memory (11).
) and a nonvolatile memory (12), and a cache management unit (15) that manages the cache memory (10), and the write data transferred from the upper level (2) is A disk that, when existing in the main memory (11), updates the data in the main memory (11) with the write data and stores the write data in the nonvolatile memory (12) for write-back operation. In the control device, the cache management section (
15) determines whether the non-volatile memory (12) has a storage area for the write data, and the non-volatile memory (12)
If there is no storage area in the cache management unit (15)
instructs the lower transfer unit (14) to write back other data on the same track of the nonvolatile memory (12) and write through the write data, and performs the write back operation and the write through operation. A write hit control method for a disk control device, characterized in that the write hit control method is performed in one seek operation.
【請求項2】  前記不揮発性メモリ(12)に同一ト
ラックの他のデータが存在しない場合には、前記キャッ
シュ管理部(15)は、前記ライトデータのライトスル
ー動作を前記下位側転送部(14)に指示することを特
徴とする請求項1のディスク制御装置のライトヒット制
御方法。
2. If there is no other data on the same track in the nonvolatile memory (12), the cache management unit (15) performs a write-through operation of the write data to the lower transfer unit (14). 2. The write hit control method for a disk control device according to claim 1, further comprising instructing the write hit control method for a disk control device.
【請求項3】  前記キャッシュ管理部(15)は、前
記下位側転送部(14)に、前記同一トラックの他のデ
ータが前記ライトデータより先のブロックの場合には、
前記ライトバック動作を指示した後に、前記ライトスル
ー動作を指示し、前記同一トラックの他のデータが前記
ライトデータより後のブロックの場合には、前記ライト
スルー動作を指示した後に、前記ライトバック動作を指
示することを特徴とする請求項1のディスク制御装置の
ライトヒット制御方法。
3. The cache management unit (15) informs the lower transfer unit (14) that if other data on the same track is a block earlier than the write data,
After instructing the write-back operation, instruct the write-through operation, and if other data in the same track is a block after the write data, then instruct the write-through operation, and then instruct the write-back operation. 2. A write hit control method for a disk control device according to claim 1, further comprising instructing a write hit control method for a disk control device.
JP2412438A 1990-12-20 1990-12-20 Write hit control method for disk controller Withdrawn JPH04220739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2412438A JPH04220739A (en) 1990-12-20 1990-12-20 Write hit control method for disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2412438A JPH04220739A (en) 1990-12-20 1990-12-20 Write hit control method for disk controller

Publications (1)

Publication Number Publication Date
JPH04220739A true JPH04220739A (en) 1992-08-11

Family

ID=18521275

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2412438A Withdrawn JPH04220739A (en) 1990-12-20 1990-12-20 Write hit control method for disk controller

Country Status (1)

Country Link
JP (1) JPH04220739A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006114206A (en) * 2004-10-12 2006-04-27 Hitachi Global Storage Technologies Netherlands Bv Hdd having both dram and flush memory
JP2006260759A (en) * 2005-03-17 2006-09-28 Samsung Electronics Co Ltd Hard disk drive with reduced power consumption, information processing system provided with the same, and data input/output method therefor
US8896953B2 (en) 2012-12-26 2014-11-25 Kabushiki Kaisha Toshiba Disk storage apparatus and method for shingled magnetic recording

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006114206A (en) * 2004-10-12 2006-04-27 Hitachi Global Storage Technologies Netherlands Bv Hdd having both dram and flush memory
JP2006260759A (en) * 2005-03-17 2006-09-28 Samsung Electronics Co Ltd Hard disk drive with reduced power consumption, information processing system provided with the same, and data input/output method therefor
US8102614B2 (en) 2005-03-17 2012-01-24 Samsung Electronics Co., Ltd. Storage system, related data processing apparatus, and I/O method
US8896953B2 (en) 2012-12-26 2014-11-25 Kabushiki Kaisha Toshiba Disk storage apparatus and method for shingled magnetic recording

Similar Documents

Publication Publication Date Title
JPS5873085A (en) Control of memory hierarchy
US9043558B2 (en) Data bus efficiency via cache line usurpation
JP2001100925A (en) Disk controller
JP2003216491A (en) Hierarchical cache control method
JPH06236241A (en) Hard disk device using flash memory
JPH04220738A (en) High-speed writing system
JPH07225715A (en) Method and system for accessing data in cache
KR19980029917A (en) How to improve read cache performance on magnetic disk drives
JPS62243044A (en) Control system for disk cache memory
JP2007102436A (en) Storage controller and storage control method
JPH04220739A (en) Write hit control method for disk controller
JPH076088A (en) Information storage device
US8214597B2 (en) Cache tentative read buffer
JPH01159746A (en) Disk cache control system
JPH11212733A (en) External storage system
JP4076316B2 (en) Data writing system using non-volatile cache memory
JP2000285022A (en) Disk controller
JPH04311216A (en) External storage controller
JPH0484215A (en) Data dual writing method for disk controller
JPH10254780A (en) Disk cache control system
JPH07248973A (en) Back-up processing method
JPH05289827A (en) Disk controller
JP2782842B2 (en) Disk cache device
JPH01281545A (en) Cache memory control system
JPS60222943A (en) Disk cache control system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980312