JP2001014219A - Method and device for controlling cache - Google Patents

Method and device for controlling cache

Info

Publication number
JP2001014219A
JP2001014219A JP11184963A JP18496399A JP2001014219A JP 2001014219 A JP2001014219 A JP 2001014219A JP 11184963 A JP11184963 A JP 11184963A JP 18496399 A JP18496399 A JP 18496399A JP 2001014219 A JP2001014219 A JP 2001014219A
Authority
JP
Japan
Prior art keywords
data
cache memory
stored
address
magnetic disk
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
JP11184963A
Other languages
Japanese (ja)
Inventor
Kazuya Honma
一也 本間
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 JP11184963A priority Critical patent/JP2001014219A/en
Publication of JP2001014219A publication Critical patent/JP2001014219A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To prevent a useless writing operation to a magnetic disk in a recording and reproducing device such as a magnetic disk drive provided with a cache memory. SOLUTION: A cache memory controlling part 4 judges whether the data of an address exist in a cache memory 5 bout each of a plurality of addresses to which a write request is sent from a host computer 1. A data comparing part 6 compares write data from the computer 1 with data stored in the memory 5 for each of addresses whose data are decided as stored in the memory 5. A disk array controlling part 7 writes the data sent from the computer 1 to a magnetic disk for only an address judged as uncoincidental in comparison by the part 6 among the address whose data are judged as stored in the memory by the part 4.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、磁気ディスク装
置,磁気ディスクアレイ装置等のように磁気ディスクを
記憶媒体にしている記録再生装置に関し、特にキャッシ
ュメモリを備えている記録再生装置に於けるキャッシュ
制御技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording / reproducing device using a magnetic disk as a storage medium, such as a magnetic disk device and a magnetic disk array device, and more particularly, to a cache in a recording / reproducing device having a cache memory. Related to control technology.

【0002】[0002]

【従来の技術】磁気ディスクを記憶媒体にしている磁気
ディスク装置等は、大容量のデータを低コストで保存で
きる反面、機械的な可動部を有するため、アクセス速度
が遅いという問題点を有する。このような問題点を改善
するため、半導体メモリから構成されるキャッシュメモ
リを利用するということが従来から行われている。
2. Description of the Related Art A magnetic disk device or the like using a magnetic disk as a storage medium can store large-capacity data at low cost, but has a problem that access speed is slow because it has a mechanically movable portion. In order to improve such a problem, a cache memory including a semiconductor memory has been conventionally used.

【0003】従来のキャッシュメモリを備えた記録再生
装置は、ホストコンピュータ等の上位装置からデータの
読み出し要求があった場合、読み出し要求されたデータ
がキャッシュメモリ上に存在するか否かを調べ、存在す
る場合には、キャッシュメモリから上位装置へデータを
転送し、存在しない場合には、磁気ディスク装置から上
位装置へデータを転送するようにしている。また、上位
装置からデータの書き込み要求があった場合は、書き込
み要求されたアドレスのデータがキャッシュメモリ上に
存在するか否かを調べ、存在する場合には、キャッシュ
メモリにデータを書き込み、存在しない場合には、磁気
ディスクにデータを書き込むようにしている。このよう
な技術は、例えば、特開平9−91198号公報に記載
されている。尚、この公報に記載されている技術に於い
ては、キャッシュメモリに格納されているデータと磁気
ディスク上のデータとを一致させるため、上位装置から
のアクセスが途切れる時間を見計らって、キャッシュメ
モリに書き込まれたデータと当該データに対応する磁気
ディスク上のデータとが一致するかを判定し、一致して
いない場合には、当該データを磁気ディスクに書き込む
ようにしている。しかし、上記公報に記載されている技
術は、キャッシュメモリ,磁気ディスク上のデータが一
致するか否かを、磁気ディスクへの書き込みが済んでい
るか否かを示す制御情報に基づいて判定するようにして
おり、実際に両者を比較して判定しているわけではな
い。
A conventional recording / reproducing apparatus equipped with a cache memory checks whether data requested to be read exists in the cache memory when a data read request is received from a host device such as a host computer. If so, the data is transferred from the cache memory to the host device, and if not, the data is transferred from the magnetic disk device to the host device. Also, when there is a data write request from the host device, it is checked whether or not the data at the address of the write request exists in the cache memory, and if there is, the data is written to the cache memory and the data does not exist. In such a case, data is written to the magnetic disk. Such a technique is described in, for example, JP-A-9-91198. In the technology described in this publication, in order to match the data stored in the cache memory with the data on the magnetic disk, the cache memory is read out of the cache memory at a time when access from the host device is interrupted. It is determined whether the written data matches the data on the magnetic disk corresponding to the data, and if not, the data is written to the magnetic disk. However, the technique described in the above publication makes it possible to determine whether or not the data on the cache memory and the data on the magnetic disk match based on control information indicating whether or not the data has been written on the magnetic disk. Therefore, the judgment is not actually made by comparing the two.

【0004】[0004]

【発明が解決しようとする課題】ところで、ホストコン
ピュータ等の上位装置に於いては、一般に、記録再生装
置との間でデータ転送を行う場合、連続する複数アドレ
ス分のデータを単位にしてデータ転送を行うようにして
いる。従って、データの書き込み要求時に、上位装置か
ら記録再生装置に送られる複数アドレス分のデータの中
には、前回の書き込み要求時から更新されていないアド
レスのデータが含まれている場合がある。もし、このよ
うなデータがキャッシュメモリに書き込まれた場合に
は、上述した従来の技術では、上記データについての制
御情報が磁気ディスクへの書き込みが済んでいないこと
を示すものになるため、上記データと磁気ディスクに書
き込まれている上記データに対応するデータとが同じで
あるにも関わらず、再度磁気ディスクに対する書き込み
処理が行われてしまう。このように、従来の技術では、
磁気ディスクに対して無駄な書き込み処理が行われてし
まう場合があるという問題があった。
Generally, in a higher-level device such as a host computer, when data is transferred to and from a recording / reproducing device, data transfer is performed in units of data for a plurality of continuous addresses. To do. Therefore, at the time of a data write request, data of a plurality of addresses sent from the higher-level device to the recording / reproducing device may include data of an address that has not been updated since the previous write request. If such data is written to the cache memory, the control information about the data indicates that the writing to the magnetic disk has not been completed in the above-described conventional technique. Although the data corresponding to the data written on the magnetic disk is the same, the write processing on the magnetic disk is performed again. Thus, in the conventional technology,
There is a problem that useless write processing may be performed on the magnetic disk.

【0005】そこで、本発明の目的は、磁気ディスクへ
の無駄な書き込み処理が行われないようにすることにあ
る。
Accordingly, an object of the present invention is to prevent a useless write process from being performed on a magnetic disk.

【0006】[0006]

【課題を解決するための手段】本発明のキャッシュ制御
装置は、上記目的を達成するため、磁気ディスクを記憶
媒体とし、且つ前記磁気ディスクに記憶されているデー
タの一部の写しが格納されるキャッシュメモリを有する
記録再生装置に於けるキャッシュ制御装置であって、上
位装置から書き込み要求されたアドレスのデータが前記
キャッシュメモリに格納されている場合、前記上位装置
から送られてきた書き込みデータと前記キャッシュメモ
リに格納されている前記アドレスのデータとを比較し、
比較不一致の場合のみ前記書き込みデータを前記磁気デ
ィスクに書き込む構成を有する。
In order to achieve the above object, a cache control device according to the present invention uses a magnetic disk as a storage medium and stores a copy of a part of data stored on the magnetic disk. A cache control device in a recording / reproducing device having a cache memory, wherein when data of an address requested to be written by a host device is stored in the cache memory, the write data sent from the host device and the Comparing with the data of the address stored in the cache memory,
The writing data is written to the magnetic disk only when the comparison does not match.

【0007】また、本発明のキャッシュ制御装置は、複
数のアドレスに対する書き込み要求があった場合にも対
処できるようにするため、磁気ディスクを記憶媒体と
し、且つ前記磁気ディスクに記憶されているデータの一
部の写しが格納されるキャッシュメモリを有する記録再
生装置に於けるキャッシュ制御装置であって、上位装置
から複数のアドレスに対する書き込み要求があった場
合、前記複数のアドレスの内の、前記キャッシュメモリ
にデータが格納されているアドレスについては、前記上
位装置から送られてきたそのアドレスの書き込みデータ
と前記キャッシュメモリに格納されているそのアドレス
のデータとを比較し、比較不一致の場合のみ前記磁気デ
ィスクに書き込みデータを書き込む構成を有する。
Further, the cache control device of the present invention uses a magnetic disk as a storage medium and stores data stored on the magnetic disk in order to cope with a case where a write request is made to a plurality of addresses. A cache control device in a recording / reproducing device having a cache memory in which a part of a copy is stored, wherein when a write request for a plurality of addresses is issued from a host device, the cache memory of the plurality of addresses is Is compared with the write data of the address sent from the higher-level device and the data of the address stored in the cache memory. Has a configuration for writing the write data.

【0008】より具体的には、本発明のキャッシュ制御
装置は、磁気ディスクを記憶媒体とし、且つ前記磁気デ
ィスクに記憶されているデータの一部の写しが格納され
るキャッシュメモリを有する記録再生装置に於けるキャ
ッシュ制御装置であって、上位装置から書き込み要求が
あった複数のアドレスそれぞれについて、そのアドレス
のデータが前記キャッシュメモリに格納されているか否
かを判定するキャッシュメモリ制御部と、該キャッシュ
メモリ制御部で前記キャッシュメモリのデータが格納さ
れていると判定されたアドレスそれぞれについて、前記
上位装置から送られてきたそのアドレスに対する書き込
みデータと前記キャッシュメモリに格納されているその
アドレスのデータとを比較するデータ比較部と、前記書
き込み要求されたアドレスの内の、前記キャッシュメモ
リ制御部でデータが前記キャッシュメモリに格納されて
いないと判定されたアドレス及び前記データ比較部で比
較不一致と判定されたアドレスについてのみ、前記上位
装置から送られてきた書き込みデータを前記磁気ディス
クに書き込む制御部とを備えている。
More specifically, a cache control device according to the present invention uses a magnetic disk as a storage medium and has a cache memory in which a copy of a part of data stored on the magnetic disk is stored. A cache memory control unit for determining, for each of a plurality of addresses for which a write request has been made from a higher-level device, whether or not data of the addresses is stored in the cache memory; For each address determined by the memory control unit to store the data of the cache memory, the write data for the address sent from the higher-level device and the data of the address stored in the cache memory are transmitted from the higher-level device. A data comparing unit to be compared, and Only the addresses, out of the addresses, for which the cache memory control unit determined that the data was not stored in the cache memory and the addresses for which the data comparison unit determined that the comparison did not match were sent from the higher-level device. A controller for writing write data to the magnetic disk.

【0009】この構成に於いては、キャッシュメモリ制
御部が、上位装置から書き込み要求があった複数のアド
レスそれぞれについて、そのアドレスのデータがキャッ
シュメモリに格納されているか否かを判定し、データ比
較部が、キャッシュメモリ制御部でキャッシュメモリの
データが格納されていると判定されたアドレスそれぞれ
について、上位装置から送られてきたそのアドレスに対
する書き込みデータとキャッシュメモリに格納されてい
るそのアドレスのデータとを比較し、制御部が、書き込
み要求されたアドレスの内の、キャッシュメモリ制御部
でデータがキャッシュメモリに格納されていないと判定
されたアドレス及びデータ比較部で比較不一致と判定さ
れたアドレスについてのみ、上位装置から送られてきた
書き込みデータを磁気ディスクに書き込む。
In this configuration, the cache memory control unit determines, for each of a plurality of addresses for which a write request has been made from a higher-level device, whether or not the data at the address is stored in the cache memory, and performs a data comparison. For each of the addresses determined by the cache memory control unit to store the data of the cache memory, the write data for the address sent from the higher-level device and the data of the address stored in the cache memory The control unit compares only the addresses of the write-requested addresses for which the cache memory control unit determines that the data is not stored in the cache memory and the addresses for which the data comparison unit determines that the comparison does not match. , Write data sent from the host device Written care disk.

【0010】[0010]

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

【0011】図1は本発明の一実施例のブロック図であ
り、ホストコンピュータ1と磁気ディスクアレイ装置2
とがSCSIインタフェース等のインタフェースによっ
て接続されている。尚、ホストコンピュータ1,磁気デ
ィスクアレイ装置2は、複数アドレス分のデータを単位
にしてデータ転送を行うことが可能なものである。
FIG. 1 is a block diagram showing an embodiment of the present invention. A host computer 1 and a magnetic disk array device 2 are shown.
Are connected by an interface such as a SCSI interface. The host computer 1 and the magnetic disk array device 2 can perform data transfer in units of data for a plurality of addresses.

【0012】磁気ディスクアレイ装置2は、ホストイン
タフェース制御部3と、キャッシュメモリ制御部4と、
キャッシュメモリ5と、データ比較部6と、ディスクア
レイ制御部7と、複数の磁気ディスク装置8−1〜8−
nとにより構成される。
The magnetic disk array device 2 includes a host interface control unit 3, a cache memory control unit 4,
A cache memory 5, a data comparison unit 6, a disk array control unit 7, and a plurality of magnetic disk devices 8-1 to 8-
n.

【0013】ホストインタフェース制御部3は、ホスト
コンピュータ1と磁気ディスクアレイ装置2との間のデ
ータのやり取りを制御するものであり、インタフェース
制御用LSI等で実現できる。
The host interface control section 3 controls the exchange of data between the host computer 1 and the magnetic disk array device 2, and can be realized by an interface control LSI or the like.

【0014】キャッシュメモリ5は、磁気ディスク装置
8−1〜8−nに格納されているデータの一部の写しを
記憶するものであり、磁気ディスクよりも高速なデータ
アクセスを行うことができる半導体メモリによって実現
される。キャッシュメモリ5は、複数のキャッシュペー
ジから構成され、各キャッシュページには、1アドレス
分のデータが記憶される。
The cache memory 5 stores a copy of a part of the data stored in the magnetic disk devices 8-1 to 8-n, and is a semiconductor capable of accessing data at a higher speed than a magnetic disk. Implemented by memory. The cache memory 5 includes a plurality of cache pages, and each cache page stores data for one address.

【0015】キャッシュメモリ制御部4は、下記の機能
等を有する。
The cache memory control unit 4 has the following functions and the like.

【0016】a.キャッシュメモリ5の各キャッシュペ
ージにどのアドレスのデータが格納されているのかを管
理する機能。 b.書き込み或いは読み出し要求されたアドレスのデー
タがキャッシュメモリ5上に存在するか否かを判定する
機能。 c.読み出し要求されたアドレスのデータがキャッシュ
メモリ5上に存在する場合は、キャッシュメモリ5から
ホストコンピュータ1へデータを転送し、存在しない場
合は、磁気ディスク装置8−i(1≦i≦n)上のデー
タをホストコンピュータ1へ転送する機能。 d.書き込み要求されたアドレスのデータが、キャッシ
ュメモリ5上に存在する場合は、データ比較部6を用い
てホストコンピュータ1からの書き込みデータとキャッ
シュメモリ5に格納されている上記アドレスのデータと
が一致するか否かを調べ、不一致の場合のみ磁気ディス
ク装置8−iにデータを書き込む機能。この機能は、本
発明特有の機能である。 e.書き込み要求されたアドレスのデータが、キャッシ
ュメモリ5上に存在しない場合は、ホストコンピュータ
1からの書き込みデータをキャッシュメモリ5,磁気デ
ィスク装置8−iの両方に書き込む機能。
A. A function of managing which address data is stored in each cache page of the cache memory 5. b. A function of determining whether or not data at an address for which writing or reading has been requested exists in the cache memory 5. c. If the data of the address requested to be read exists in the cache memory 5, the data is transferred from the cache memory 5 to the host computer 1, and if not, the data is transferred to the magnetic disk drive 8-i (1 ≦ i ≦ n). Function to transfer the data of the host computer 1 to the host computer 1. d. If the data at the address requested to be written exists in the cache memory 5, the write data from the host computer 1 matches the data at the address stored in the cache memory 5 using the data comparison unit 6. A function to check whether or not the data match, and to write data to the magnetic disk drive 8-i only when the data does not match. This function is a function unique to the present invention. e. A function of writing write data from the host computer 1 to both the cache memory 5 and the magnetic disk device 8-i when the data at the address requested to be written does not exist in the cache memory 5;

【0017】データ比較部6は、ホストコンピュータ1
から送られてきた書き込みデータと、キャッシュメモリ
5に格納されている上記書き込みデータに対応するデー
タとを比較する機能を有する。
The data comparison unit 6 is a host computer 1
Has a function of comparing write data transmitted from the cache memory 5 with data corresponding to the write data stored in the cache memory 5.

【0018】ディスクアレイ制御部7は、磁気ディスク
装置8−1〜8−nの任意のアドレスに対してデータを
読み書きする機能を有するものであり、制御用LSIに
より実現できる。
The disk array control unit 7 has a function of reading and writing data from and to arbitrary addresses of the magnetic disk devices 8-1 to 8-n, and can be realized by a control LSI.

【0019】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0020】先ず、ホストコンピュータ1が磁気ディス
クアレイ装置2からデータを読み出す場合の動作を説明
する。
First, the operation when the host computer 1 reads data from the magnetic disk array device 2 will be described.

【0021】ホストコンピュータ1は、磁気ディスクア
レイ装置2からデータを読み出す場合、磁気ディスクア
レイ装置2に対して読み出し要求を発行する。この読み
出し要求には、アドレス情報として、読み出し対象デー
タの内の、先頭のデータが格納されているアドレス(先
頭アドレス)と、先頭アドレスから何アドレス分のデー
タを読み出すのかを示す読み出しデータサイズとが含ま
れている。例えば、アドレスA10,A11,A12に
格納されているデータを読み出す場合は、ホストコンピ
ュータ1は、アドレス情報として先頭アドレス「A1
0」,読み出しアドレスサイズ「3」を含む読み出し要
求を発行することになる。
When reading data from the magnetic disk array device 2, the host computer 1 issues a read request to the magnetic disk array device 2. The read request includes, as address information, an address (head address) at which the head data is stored in the data to be read, and a read data size indicating how many addresses of data are to be read from the head address. include. For example, when reading the data stored in the addresses A10, A11, and A12, the host computer 1 uses the start address “A1” as the address information.
0 "and a read request including the read address size" 3 "will be issued.

【0022】ホストコンピュータ1からの読み出し要求
は、磁気ディスクアレイ装置2内のホストインタフェー
ス制御部3で受け付けられる。
A read request from the host computer 1 is accepted by the host interface control unit 3 in the magnetic disk array device 2.

【0023】キャッシュメモリ制御部4は、ホストイン
タフェース制御部3が読み出し要求を受け付けると、そ
れに含まれるアドレス情報によって示される読み出し先
のアドレスの内の、最も小さなアドレスに注目し、その
アドレスのデータがキャッシュメモリ5上に存在するか
否かを判定する(図2のA1,A2)。
When the host interface control unit 3 receives a read request, the cache memory control unit 4 pays attention to the smallest address among the read destination addresses indicated by the address information contained therein, and the data of that address is It is determined whether or not it exists in the cache memory 5 (A1, A2 in FIG. 2).

【0024】そして、キャッシュメモリ5上に存在する
と判定した場合(A2がYES)は、キャッシュメモリ
5から該当するデータを読み出してホストインタフェー
ス制御部3に渡す(A3,A4)。これに対して、キャ
ッシュメモリ5上に存在しないと判定した場合(A2が
NO)は、キャッシュメモリ5上に空きキャッシュペー
ジを1ページ分確保した後(A5)、ディスクアレイ制
御部7を利用して現在注目しているアドレスのデータを
磁気ディスク装置8−iから読み出し(A6)、それを
A5で確保した空きキャッシュページに書き込むと共に
ホストインタフェース制御部3に渡す(A7)。尚、A
5で空きキャッシュページを確保する場合、空きキャッ
シュページが存在する場合には、その内の1ページを確
保し、空きキャッシュページが存在しない場合には、L
RU法等によってキャッシュページを1ページ選択し、
選択したキャッシュページを空きキャッシュページとし
て確保する。
If it is determined that the data exists in the cache memory 5 (A2: YES), the corresponding data is read from the cache memory 5 and passed to the host interface control unit 3 (A3, A4). On the other hand, if it is determined that the cache page does not exist in the cache memory 5 (A2 is NO), one empty cache page is reserved in the cache memory 5 (A5), and the disk array control unit 7 is used. The data at the address of interest is read from the magnetic disk drive 8-i (A6), written to the free cache page secured in A5, and passed to the host interface controller 3 (A7). A
5 to secure a free cache page, if a free cache page exists, one of the free cache pages is reserved. If no free cache page exists, L
Select one cache page by RU method, etc.
The selected cache page is reserved as a free cache page.

【0025】A4或いはA7の処理が終了すると、キャ
ッシュメモリ制御部4は、読み出し先のアドレスの中に
未処理のアドレスが存在するか否かを判断する(A
8)。そして、未処理のアドレスが存在すると判断した
場合(A8がYES)、再びA1の処理を行う。これに
対して、未処理のアドレスが存在しないと判断した場合
(A8がNO)は、ホストインタフェース制御部3に対
して処理終了を通知する(A9)。
When the processing of A4 or A7 is completed, the cache memory control unit 4 determines whether an unprocessed address exists in the read destination address (A).
8). When it is determined that an unprocessed address exists (A8: YES), the process of A1 is performed again. On the other hand, when it is determined that there is no unprocessed address (A8: NO), the host interface controller 3 is notified of the end of the process (A9).

【0026】ホストインタフェース制御部3は、キャッ
シュメモリ制御部4から読み出しデータが通知される
と、それを内部に保持し、所定アドレス分の読み出しデ
ータを保持すると、それらをまとめてホストコンピュー
タ1に転送する。但し、キャッシュメモリ制御部4から
処理終了が通知された場合には、現在保持している読み
出しデータをまとめてホストコンピュータ1に転送す
る。
When the read data is notified from the cache memory control unit 4, the host interface control unit 3 holds the read data internally, and when the read data of a predetermined address is stored, transfers the read data to the host computer 1 collectively. I do. However, when the end of the processing is notified from the cache memory control unit 4, the currently held read data is collectively transferred to the host computer 1.

【0027】次に、ホストコンピュータ1が磁気ディス
クアレイ装置2にデータを書き込む場合の動作について
説明する。
Next, the operation when the host computer 1 writes data to the magnetic disk array device 2 will be described.

【0028】ホストコンピュータ1は、磁気ディスクア
レイ装置2にデータを書き込む場合、磁気ディスクアレ
イ装置2に対して、書き込みデータと、その書き込み位
置を示すアドレス情報とを含む書き込み要求を発行す
る。書き込みデータは、予め定められているサイズより
も小さければ、任意のサイズとすることができる。但
し、連続したアドレスのデータとすることが必要であ
る。アドレス情報は、先頭の書き込みデータの書き込み
位置を示すアドレス(先頭アドレス)と、何アドレス分
のデータを書き込むのかを示す書き込みデータサイズと
を含む。例えば、アドレスA20,A21,A22,A
23にデータを書き込む場合には、ホストコンピュータ
1は、4アドレス分の書き込みデータを含み、且つアド
レス情報として先頭アドレス「A20」,書き込みデー
タサイズ「4」を含む書き込み要求を発行することにな
る。
When writing data to the magnetic disk array device 2, the host computer 1 issues a write request to the magnetic disk array device 2 including write data and address information indicating the write position. The write data can have any size as long as it is smaller than a predetermined size. However, it is necessary to use continuous address data. The address information includes an address (head address) indicating the write position of the head write data, and a write data size indicating how many addresses of data are to be written. For example, addresses A20, A21, A22, A
When writing data to the host computer 23, the host computer 1 issues a write request including write data for four addresses, and also including a head address “A20” and write data size “4” as address information.

【0029】ホストコンピュータ1から発行された書き
込み要求は、ディスクアレイ装置2内のホストインタフ
ェース制御部3で受け付けられる。
The write request issued from the host computer 1 is accepted by the host interface control unit 3 in the disk array device 2.

【0030】キャッシュメモリ制御部4は、ホストイン
タフェース制御部3が書き込み要求を受け付けると、キ
ャッシュメモリ5上に空きキャッシュページを確保する
(図3,B1)。その際、キャッシュメモリ制御部4
は、書き込みデータが4アドレス分であれば、4ページ
分の空きキャッシュページを確保するというように、書
き込みデータのサイズに応じたページ数の空きキャッシ
ュページを確保する。
When the host interface controller 3 receives a write request, the cache memory controller 4 secures an empty cache page in the cache memory 5 (FIG. 3, B1). At that time, the cache memory control unit 4
Secures empty cache pages of the number of pages corresponding to the size of the write data, such as securing four empty cache pages if the write data is for four addresses.

【0031】その後、キャッシュメモリ制御部4は、書
き込み要求中のアドレス情報によって示される書き込み
先のアドレスの内の、最も小さいものに注目し(B
2)、そのアドレスのデータがキャッシュメモリ5上に
存在するか否かを判断する(B3)。
Thereafter, the cache memory control unit 4 pays attention to the smallest one of the write destination addresses indicated by the address information in the write request (B
2) It is determined whether the data at the address exists in the cache memory 5 (B3).

【0032】そして、存在しないと判断した場合(B3
がNO)は、先ず、B1で確保した空きキャッシュペー
ジの内の1つに、書き込み要求に含まれている、現在注
目しているアドレスへの書き込みデータを書き込み(B
8)、次に、B8でデータを書き込んだキャッシュペー
ジの番号と現在注目しているアドレスとの対をリスト
(図示せず)に追加登録する(B9)。尚、このリスト
に番号が登録されているキャッシュページのデータは、
磁気ディスク装置への書き込み対象データとなる。
Then, when it is determined that the file does not exist (B3
Is NO), first, write the write data to the currently focused address included in the write request into one of the free cache pages secured in B1 (B
8) Next, a pair of the number of the cache page in which the data is written in B8 and the address of interest at present is additionally registered in a list (not shown) (B9). The data of the cache page whose number is registered in this list is
This is the data to be written to the magnetic disk device.

【0033】これに対して、現在注目中のアドレスのデ
ータが、キャッシュメモリ5上に存在すると判断した場
合(B3がYES)は、先ず、データ比較部6に対して
保持指示を出力すると共に、B1で確保した空きキャッ
シュページの内の1つに、現在注目しているアドレスに
対する書き込みデータを書き込む(B4)。尚、この書
き込みデータは、データ比較部6にも供給される。デー
タ比較部6は、保持指示が加えられた後に、キャッシュ
メモリ制御部4から書き込みデータが加えられると、そ
れを内部に保持する。
On the other hand, when it is determined that the data of the address currently being watched exists in the cache memory 5 (YES in B3), first, a holding instruction is output to the data comparing section 6, and The write data for the currently focused address is written to one of the free cache pages secured in B1 (B4). Note that the write data is also supplied to the data comparison unit 6. When the write data is added from the cache memory control unit 4 after the holding instruction is added, the data comparing unit 6 holds the write data internally.

【0034】その後、キャッシュメモリ制御部4は、デ
ータ比較部6に対して比較指示を出力すると共に、キャ
ッシュメモリ5の2つのキャッシュページ(B3の判断
結果をYESにする要因となったキャッシュページと、
B4でデータが書き込まれたキャッシュページ)に格納
されている現在注目中のアドレスのデータの内の、S3
の判断結果をYESにする要因となったキャッシュペー
ジの内容を読み出す(B5)。キャッシュメモリ5から
読み出されたデータは、データ比較部6に加えられ、デ
ータ比較部6は、キャッシュメモリ制御部4から比較指
示が与えられた後に、キャッシュメモリ5からの読み出
しデータが加えられると、それと内部に保持しているデ
ータとを比較し、比較結果をキャッシュメモリ制御部4
に通知する。つまり、データ比較部6は、ホストコンピ
ュータ1から送られてきた現在注目中のアドレスのデー
タと、キャッシュメモリ5に元々格納されていた現在注
目中のアドレスのデータとを比較し、その比較結果をキ
ャッシュメモリ制御部4に通知することになる。
After that, the cache memory control unit 4 outputs a comparison instruction to the data comparison unit 6 and sets two cache pages of the cache memory 5 (the cache page which caused the determination result of B3 to be YES). ,
S3 of the data of the currently focused address stored in the cache page in which the data is written in B4)
The content of the cache page that has caused the determination result to be YES is read (B5). The data read from the cache memory 5 is added to the data comparison unit 6, and the data comparison unit 6 receives the data read from the cache memory 5 after receiving the comparison instruction from the cache memory control unit 4. , And the data stored therein, and compares the comparison result with the cache memory control unit 4.
Notify. That is, the data comparison unit 6 compares the data of the currently focused address sent from the host computer 1 with the data of the currently focused address originally stored in the cache memory 5, and compares the comparison result. The cache memory control unit 4 is notified.

【0035】キャッシュメモリ制御部4は、データ比較
部6から比較一致が通知された場合(B6がYES)
は、現在注目しているアドレスのデータが格納されてい
る2つのキャッシュページの内、B3の判断結果をYE
Sとする要因となったキャッシュページを解放する(B
10)。これに対して、比較不一致が通知された場合
(B6がNO)は、B4でデータを書き込んだキャッシ
ュページの番号と現在注目しているアドレスとの対をリ
スト(図示せず)に追加登録した後(B7)、B10の
処理を行う。
The cache memory control unit 4, when notified of the comparison match from the data comparison unit 6 (B6: YES)
Of the two cache pages storing the data of the address of interest at present,
Release the cache page that caused S (B
10). On the other hand, when the comparison mismatch is notified (B6: NO), a pair of the number of the cache page in which the data is written in B4 and the address currently focused on is additionally registered in a list (not shown). Thereafter (B7), the process of B10 is performed.

【0036】キャッシュメモリ制御部4は、以上のB2
〜B10の処理を、未処理のアドレスがなくなるまで
(B11がNOとなるまで)、繰り返し行う。
The cache memory control unit 4 performs the above B2
To B10 are repeated until there are no unprocessed addresses (until B11 becomes NO).

【0037】そして、未処理のアドレスがなくなると、
キャッシュメモリ制御部4は、リストに登録されている
キャッシュページ番号とアドレスとの対の内の1つに注
目し、上記キャッシュページ番号のキャッシュページか
らデータを読み出し、更に読み出したデータと上記アド
レスとをディスクアレイ制御部7に送る。キャッシュメ
モリ制御部4は、この処理をリストに登録されている全
ての対について行う(B12)。
When there are no unprocessed addresses,
The cache memory control unit 4 focuses on one of the pairs of the cache page number and the address registered in the list, reads data from the cache page of the cache page number, further reads the read data and the address. To the disk array control unit 7. The cache memory control unit 4 performs this processing for all pairs registered in the list (B12).

【0038】ディスクアレイ制御部7は、キャッシュメ
モリ制御部4からデータとアドレスが送られてくると、
磁気ディスク装置8−1〜8−nの上記アドレスに該当
する部分に上記データを書き込む。
When the data and address are sent from the cache memory control unit 4, the disk array control unit 7
The data is written to a portion corresponding to the address of the magnetic disk devices 8-1 to 8-n.

【0039】次に、具体例を挙げてデータ書き込み要求
時の動作を説明する。
Next, the operation at the time of a data write request will be described with a specific example.

【0040】今、例えば、図4に示すように、磁気ディ
スクアレイ装置2内には、3台の磁気ディスク装置8−
1〜8−3が存在し、磁気ディスク装置8−1〜8−3
のアドレスA1,A2,A3,A4のデータがキャッシ
ュメモリ5のキャッシュページ番号P7,P8,P9,
P10のキャッシュページに既に読み込まれているとす
る。
Now, for example, as shown in FIG. 4, three magnetic disk drives 8-
1 to 8-3, and the magnetic disk devices 8-1 to 8-3
Data of the addresses A1, A2, A3, A4 of the cache memory 5 are cache page numbers P7, P8, P9,
It is assumed that the data has already been read into the cache page of P10.

【0041】この状態で、ホストコンピュータ1からア
ドレスA1,A2,A3に対する書き込みデータと、ア
ドレス情報(先頭アドレス「A1」,書き込みデータサ
イズ「3」)とを含む書き込み要求が送られてきたとす
る。尚、アドレスA1,A2,A3に対する書き込みデ
ータの内、アドレスA2に対する書き込みデータのみが
前回の書き込み要求時から更新されており、他のアドレ
スA1,A3に対する書き込みデータは、前回の書き込
み要求時から更新されていないとする。
In this state, it is assumed that a write request including write data for addresses A1, A2, and A3 and address information (head address "A1", write data size "3") is sent from the host computer 1. Note that, of the write data for the addresses A1, A2, and A3, only the write data for the address A2 has been updated since the previous write request, and the write data for the other addresses A1 and A3 have been updated since the previous write request. Suppose not.

【0042】上記した書き込み要求をホストインタフェ
ース制御部3が受け付けると、キャッシュメモリ制御部
4は、キャッシュメモリ5上に3ページ分の空きキャッ
シュページを確保する(B1)。尚、この例では、キャ
ッシュページ番号P3,P4,P5のキャッシュページ
を空きキャッシュページとして確保したとする。
When the host interface controller 3 receives the write request, the cache memory controller 4 secures three free cache pages in the cache memory 5 (B1). In this example, it is assumed that the cache pages of the cache page numbers P3, P4, and P5 have been secured as free cache pages.

【0043】その後、キャッシュメモリ制御部4は、ア
ドレスA1に注目し、そのアドレスのデータがキャッシ
ュメモリ5上に存在するか否かを判断する(B2,B
3)。この例の場合、アドレスA1のデータは、キャッ
シュモリ5のキャッシュページ番号P7のキャッシュペ
ージに書き込まれているので、キャッシュメモリ制御部
4は、データ比較部6に対して保持指示を出力すると共
に、図5に示すように、B1で確保した空きキャッシュ
ページP3にホストコンピュータ1から送られてきたア
ドレスA1に対する書き込みデータを書き込む(B
4)。
Thereafter, the cache memory control unit 4 pays attention to the address A1, and determines whether or not the data at that address exists in the cache memory 5 (B2, B
3). In the case of this example, since the data of the address A1 is written in the cache page of the cache page number P7 of the cache memory 5, the cache memory control unit 4 outputs a holding instruction to the data comparison unit 6, and As shown in FIG. 5, the write data for the address A1 sent from the host computer 1 is written to the empty cache page P3 secured in B1 (B
4).

【0044】その後、キャッシュメモリ制御部4は、デ
ータ比較部6に、ホストコンピュータ1から送られてき
たアドレスA1のデータと、キャッシュページP7に格
納されているアドレスA1のデータとを比較させる(B
5)。この例の場合、アドレスA1のデータは、前回の
書き込み要求時から更新されていないので、比較結果は
一致となる(B6がYES)。
Thereafter, the cache memory control unit 4 causes the data comparison unit 6 to compare the data of the address A1 sent from the host computer 1 with the data of the address A1 stored in the cache page P7 (B
5). In the case of this example, since the data at the address A1 has not been updated since the last write request, the comparison result is the same (YES at B6).

【0045】この結果、キャッシュメモリ制御部4は、
キャッシュページP7を解放(未使用)にした後、アド
レスA2に注目する(B10,B11がYES,B
1)。アドレスA2のデータもキャッシュメモリ5のキ
ャッシュページP8に存在するので、B3の判断結果が
YESとなり、B4,B5の処理が行われる。しかし、
アドレスA2のデータは、前回の書き込み要求時から更
新されているので、B6の判断結果はNOとなる。B6
がNOとなると、キャッシュメモリ制御部4は、ステッ
プB4でデータを書き込んだキャッシュページの番号P
4と現在注目しているアドレスA2との対をリストに追
加登録し(B7)、その後、キャッシュページP8を解
放する(B10)。
As a result, the cache memory control unit 4
After releasing (unused) the cache page P7, pay attention to the address A2 (B10 and B11 are YES, B
1). Since the data at the address A2 also exists in the cache page P8 of the cache memory 5, the determination result at B3 becomes YES, and the processing at B4 and B5 is performed. But,
Since the data at the address A2 has been updated since the previous write request, the determination result at B6 is NO. B6
Is NO, the cache memory control unit 4 sets the cache page number P in which the data was written in step B4.
A pair of the address 4 and the current address of interest A2 is additionally registered in the list (B7), and then the cache page P8 is released (B10).

【0046】B10の処理が終了すると、キャッシュメ
モリ制御部4は、アドレスA3に注目する(B2)。ア
ドレスA3のデータは、キャッシュメモリ5上に存在
し、且つ前回の書き込み要求時から更新されていないの
で、アドレスA1に注目した場合と同様の処理が行われ
る。
When the process of B10 is completed, the cache memory control unit 4 pays attention to the address A3 (B2). Since the data at the address A3 exists in the cache memory 5 and has not been updated since the previous write request, the same processing as when the address A1 is noted is performed.

【0047】アドレスA3に対する処理が終了すると、
キャッシュメモリ制御部4は、B12の処理を行う。こ
の例の場合、リストには、キャッシュページ番号P4と
アドレスA2との対だけが登録されているので、キャッ
シュメモリ制御部4は、キャッシュページ番号P4のキ
ャッシュページに格納されているデータをキャッシュメ
モリ5から読み出してディスクアレイ制御部7に送ると
共に、キャッシュページ番号P4と対になっているアド
レスA2をディスクアレイ制御部7に送る(B12)。
これにより、ディスクアレイ制御部7は、図5に示すよ
うに、磁気ディスク装置8−3のアドレスA2にキャッ
シュメモリ制御部4から送られてきたデータを書き込
む。
When the processing for the address A3 is completed,
The cache memory control unit 4 performs the process of B12. In the case of this example, since only the pair of the cache page number P4 and the address A2 is registered in the list, the cache memory control unit 4 stores the data stored in the cache page of the cache page number P4 in the cache memory. 5 and sends it to the disk array controller 7 and sends the address A2 paired with the cache page number P4 to the disk array controller 7 (B12).
Thereby, as shown in FIG. 5, the disk array controller 7 writes the data sent from the cache memory controller 4 to the address A2 of the magnetic disk device 8-3.

【0048】このように、本実施例によれば、書き込み
要求に含まれているアドレスA1,A2,A3のデータ
の内、前回の書き込み要求時から更新されているアドレ
スA2のデータのみを磁気ディスク装置8−3に書き込
むことが可能になるので、前回の書き込み要求時から更
新されていないアドレスA1,A3のデータを再度磁気
ディスク装置に書き込んでしまうというような無駄な書
き込み処理を防止することができる。また、アドレスA
1,A3が割り当てられている磁気ディスク装置8−
2,8−1は、アドレスA1,A3のデータに対する書
き込み動作が行われないので、他のデータに対する読み
書きに応答することが可能になる。
As described above, according to the present embodiment, of the data at the addresses A1, A2, and A3 included in the write request, only the data at the address A2 that has been updated since the previous write request is stored on the magnetic disk. Since it becomes possible to write to the device 8-3, it is possible to prevent useless write processing such as rewriting the data of the addresses A1 and A3 that have not been updated since the previous write request to the magnetic disk device. it can. Address A
1, a magnetic disk drive to which A3 is assigned
Since no write operation is performed on the data at the addresses A1 and A3, the memory devices 2 and 8-1 can respond to reading and writing of other data.

【0049】図6は本発明の他の実施例のブロック図で
あり、ホストコンピュータ1と磁気ディスク装置12と
がSCSIインタフェース等のインタフェースを介して
接続されている。
FIG. 6 is a block diagram of another embodiment of the present invention, in which the host computer 1 and the magnetic disk drive 12 are connected via an interface such as a SCSI interface.

【0050】本実施例の磁気ディスク装置12と図1の
磁気ディスクアレイ装置2との相違点は、磁気ディスク
装置8−1〜8−nの代わりに磁気ディスク18を備え
ている点と、ディスクアレイ制御部7の代わりに磁気デ
ィスク18との間でデータを入出力する磁気媒体制御部
17を備えている点である。
The difference between the magnetic disk device 12 of this embodiment and the magnetic disk array device 2 of FIG. 1 is that a magnetic disk 18 is provided instead of the magnetic disk devices 8-1 to 8-n. The difference is that a magnetic medium controller 17 for inputting and outputting data to and from the magnetic disk 18 is provided instead of the array controller 7.

【0051】また、本実施例の動作は、図1に示した実
施例とほぼ同じであるが、下記の点が相違する。図1に
示した実施例では、キャッシュメモリ制御部4が図2の
A6でデータを読み出す際、ディスクアレイ制御部7を
利用してデータを読み出しているが、本実施例では、磁
気媒体制御部17を利用して磁気ディスク18からデー
タを読み出す。また、図1に示した実施例では、キャッ
シュメモリ制御部4が図2のB12でディスクアレイ制
御部7へデータ,アドレスを送って磁気ディスク装置8
−iにデータを書き込ませるようにしているが、本実施
例では、磁気媒体制御部17にデータ,アドレスを送っ
て磁気ディスク18にデータを書き込ませる。
The operation of this embodiment is almost the same as that of the embodiment shown in FIG. 1, except for the following points. In the embodiment shown in FIG. 1, when the cache memory control unit 4 reads data at A6 in FIG. 2, the data is read using the disk array control unit 7, but in the present embodiment, the magnetic medium control unit The data is read from the magnetic disk 18 by utilizing the data 17. In the embodiment shown in FIG. 1, the cache memory controller 4 sends data and addresses to the disk array controller 7 at B12 in FIG.
In this embodiment, data and address are sent to the magnetic medium control unit 17 to write data to the magnetic disk 18 in this embodiment.

【0052】[0052]

【発明の効果】以上説明したように、本発明は、上位装
置から書き込み要求されたアドレスのデータがキャッシ
ュメモリに格納されている場合、上位装置から送られて
きた書き込みデータとキャッシュメモリに格納されてい
る上記アドレスのデータとを実際に比較し、比較結果が
不一致の場合のみ磁気ディスクに書き込むので、磁気デ
ィスクに書き込まれているデータと同一のデータを再度
磁気ディスクに書き込んでしまうという無駄な書き込み
処理を防止することができる。その結果、データの書き
込み性能を向上させることができる。
As described above, according to the present invention, when the data at the address requested to be written by the host device is stored in the cache memory, the write data sent from the host device and the data are stored in the cache memory. Is actually compared with the data at the above address, and the data is written to the magnetic disk only when the comparison result does not match. Therefore, the same data as the data written to the magnetic disk is written to the magnetic disk again, which is a wasteful write. Processing can be prevented. As a result, data write performance can be improved.

【0053】また、本発明を磁気ディスクアレイ装置に
適用した場合は、書き込み要求されたアドレスのデータ
の内、前回の書き込み要求時から更新されていないデー
タは、磁気ディスク装置への書き込みが行われないた
め、その磁気ディスク装置に対して他のデータの読み書
きを行うことが可能になる。そのため、システム全体と
してのデータの読み書き性能を向上させることができ
る。
When the present invention is applied to a magnetic disk array device, data that has not been updated since the previous write request among the data at the write-requested address is written to the magnetic disk device. Therefore, other data can be read from and written to the magnetic disk device. Therefore, data read / write performance of the entire system can be improved.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

【図2】データの読み出し要求時のキャッシュメモリ制
御部4の処理例を示す流れ図である。
FIG. 2 is a flowchart showing a processing example of a cache memory control unit 4 at the time of a data read request.

【図3】データの書き込み要求時のキャッシュメモリ制
御部4の処理例を示す流れ図である。
FIG. 3 is a flowchart showing a processing example of a cache memory control unit 4 at the time of a data write request;

【図4】データの書き込み時の動作を説明するための図
である。
FIG. 4 is a diagram for explaining an operation at the time of writing data.

【図5】データの書き込み時の動作を説明するための図
である。
FIG. 5 is a diagram for explaining an operation at the time of writing data.

【図6】本発明の他の実施例のブロック図である。FIG. 6 is a block diagram of another embodiment of the present invention.

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

1…ホストコンピュータ 2…磁気ディスクアレイ装置 3…ホストインタフェース制御部 4…キャッシュメモリ制御部 5…キャッシュメモリ 6…データ比較部 7…ディスクアレイ制御部 8−1〜8−n…磁気ディスク装置 12…磁気ディスク装置 17…磁気媒体制御部 18…磁気ディスク REFERENCE SIGNS LIST 1 host computer 2 magnetic disk array device 3 host interface control unit 4 cache memory control unit 5 cache memory 6 data comparison unit 7 disk array control unit 8-1 to 8 -n magnetic disk device 12 Magnetic disk device 17 ... Magnetic medium controller 18 ... Magnetic disk

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 磁気ディスクを記憶媒体とし、且つ前記
磁気ディスクに記憶されているデータの一部の写しが格
納されるキャッシュメモリを有する記録再生装置に於け
るキャッシュ制御方法であって、 上位装置から書き込み要求されたアドレスのデータが前
記キャッシュメモリに格納されている場合、前記上位装
置から送られてきた書き込みデータと前記キャッシュメ
モリに格納されている前記アドレスのデータとを比較
し、比較不一致の場合のみ前記書き込みデータを前記磁
気ディスクに書き込むことを特徴とするキャッシュ制御
方法。
1. A cache control method in a recording / reproducing apparatus having a magnetic disk as a storage medium and having a cache memory in which a copy of a part of data stored on the magnetic disk is stored. If the data at the address requested to be written from is stored in the cache memory, the write data sent from the higher-level device is compared with the data at the address stored in the cache memory. A cache control method, wherein the write data is written to the magnetic disk only in a case.
【請求項2】 磁気ディスクを記憶媒体とし、且つ前記
磁気ディスクに記憶されているデータの一部の写しが格
納されるキャッシュメモリを有する記録再生装置に於け
るキャッシュ制御方法であって、 上位装置から複数のアドレスに対する書き込み要求があ
った場合、前記複数のアドレスの内の、前記キャッシュ
メモリにデータが格納されているアドレスについては、
前記上位装置から送られてきたそのアドレスの書き込み
データと前記キャッシュメモリに格納されているそのア
ドレスのデータとを比較し、比較不一致の場合のみ前記
磁気ディスクに書き込みデータを書き込むことを特徴と
するキャッシュ制御方法。
2. A cache control method for a recording / reproducing apparatus having a cache memory in which a magnetic disk is used as a storage medium and a copy of a part of data stored in the magnetic disk is stored. When there is a write request for a plurality of addresses from among the plurality of addresses, for an address at which data is stored in the cache memory,
A cache for comparing write data of the address sent from the host device with data of the address stored in the cache memory, and writing the write data to the magnetic disk only when the comparison does not match; Control method.
【請求項3】 磁気ディスクを記憶媒体とし、且つ前記
磁気ディスクに記憶されているデータの一部の写しが格
納されるキャッシュメモリを有する記録再生装置に於け
るキャッシュ制御方法であって、 上位装置から書き込み要求があった複数のアドレスそれ
ぞれについて、そのアドレスのデータが前記キャッシュ
メモリに格納されているか否かを判定するキャッシュヒ
ット判定処理と、 該キャッシュヒット判定処理で前記キャッシュメモリの
データが格納されていると判定されたアドレスそれぞれ
について、前記上位装置から送られてきたそのアドレス
に対する書き込みデータと前記キャッシュメモリに格納
されているそのアドレスのデータとを比較するデータ比
較処理と、 前記書き込み要求されたアドレスの内の、前記キャッシ
ュヒット判定処理でデータが前記キャッシュメモリに格
納されていないと判定されたアドレス及び前記データ比
較処理で比較不一致と判定されたアドレスについての
み、前記上位装置から送られてきた書き込みデータを前
記磁気ディスクに書き込むデータ書き込み処理とを含む
ことを特徴とするキャッシュ制御方法。
3. A cache control method in a recording / reproducing apparatus having a cache memory in which a magnetic disk is used as a storage medium and a copy of a part of data stored in the magnetic disk is stored. For each of a plurality of addresses for which a write request has been issued from the cache memory, a cache hit determination process for determining whether or not data at the address is stored in the cache memory; and the data in the cache memory is stored in the cache hit determination process. For each of the addresses determined to have been written, a data comparison process of comparing write data for that address sent from the higher-level device with data of that address stored in the cache memory; and The cache hit judgment in the address Write the write data sent from the higher-level device to the magnetic disk only for the addresses for which data is determined not to be stored in the cache memory in the constant processing and for the addresses for which the comparison is determined to be inconsistent in the data comparison processing. A cache control method comprising a data write process.
【請求項4】 磁気ディスクを記憶媒体とし、且つ前記
磁気ディスクに記憶されているデータの一部の写しが格
納されるキャッシュメモリを有する記録再生装置に於け
るキャッシュ制御装置であって、 上位装置から書き込み要求されたアドレスのデータが前
記キャッシュメモリに格納されている場合、前記上位装
置から送られてきた書き込みデータと前記キャッシュメ
モリに格納されている前記アドレスのデータとを比較
し、比較不一致の場合のみ前記書き込みデータを前記磁
気ディスクに書き込む構成を有することを特徴とするキ
ャッシュ制御装置。
4. A cache control device in a recording / reproducing apparatus having a magnetic disk as a storage medium and having a cache memory in which a copy of a part of data stored on the magnetic disk is stored. If the data at the address requested to be written from is stored in the cache memory, the write data sent from the higher-level device is compared with the data at the address stored in the cache memory. A cache control device for writing the write data to the magnetic disk only in a case.
【請求項5】 磁気ディスクを記憶媒体とし、且つ前記
磁気ディスクに記憶されているデータの一部の写しが格
納されるキャッシュメモリを有する記録再生装置に於け
るキャッシュ制御装置であって、 上位装置から複数のアドレスに対する書き込み要求があ
った場合、前記複数のアドレスの内の、前記キャッシュ
メモリにデータが格納されているアドレスについては、
前記上位装置から送られてきたそのアドレスの書き込み
データと前記キャッシュメモリに格納されているそのア
ドレスのデータとを比較し、比較不一致の場合のみ前記
磁気ディスクに書き込みデータを書き込む構成を有する
ことを特徴とするキャッシュ制御装置。
5. A cache control device in a recording / reproducing apparatus having a magnetic disk as a storage medium and having a cache memory in which a copy of a part of data stored on the magnetic disk is stored. When there is a write request for a plurality of addresses from among the plurality of addresses, for an address at which data is stored in the cache memory,
Write data of the address sent from the host device is compared with data of the address stored in the cache memory, and write data is written to the magnetic disk only when the comparison does not match. Cache control device.
【請求項6】 磁気ディスクを記憶媒体とし、且つ前記
磁気ディスクに記憶されているデータの一部の写しが格
納されるキャッシュメモリを有する記録再生装置に於け
るキャッシュ制御装置であって、 上位装置から書き込み要求があった複数のアドレスそれ
ぞれについて、そのアドレスのデータが前記キャッシュ
メモリに格納されているか否かを判定するキャッシュメ
モリ制御部と、 該キャッシュメモリ制御部で前記キャッシュメモリのデ
ータが格納されていると判定されたアドレスそれぞれに
ついて、前記上位装置から送られてきたそのアドレスに
対する書き込みデータと前記キャッシュメモリに格納さ
れているそのアドレスのデータとを比較するデータ比較
部と、 前記書き込み要求されたアドレスの内の、前記キャッシ
ュメモリ制御部でデータが前記キャッシュメモリに格納
されていないと判定されたアドレス及び前記データ比較
部で比較不一致と判定されたアドレスについてのみ、前
記上位装置から送られてきた書き込みデータを前記磁気
ディスクに書き込む制御部とを備えたことを特徴とする
キャッシュ制御装置。
6. A cache control device in a recording / reproducing device having a magnetic disk as a storage medium and having a cache memory in which a copy of a part of data stored in the magnetic disk is stored. A cache memory control unit that determines, for each of a plurality of addresses for which a write request has been made from the cache memory, whether or not the data at that address is stored in the cache memory; and the cache memory data is stored in the cache memory control unit. For each of the addresses determined to be the same, a data comparison unit that compares the write data for the address sent from the higher-level device with the data for that address stored in the cache memory; and In the cache memory control unit in the address A control unit that writes the write data sent from the higher-level device to the magnetic disk only for the addresses determined not to be stored in the cache memory and the addresses determined to be mismatched by the data comparison unit; A cache control device comprising:
JP11184963A 1999-06-30 1999-06-30 Method and device for controlling cache Pending JP2001014219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11184963A JP2001014219A (en) 1999-06-30 1999-06-30 Method and device for controlling cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11184963A JP2001014219A (en) 1999-06-30 1999-06-30 Method and device for controlling cache

Publications (1)

Publication Number Publication Date
JP2001014219A true JP2001014219A (en) 2001-01-19

Family

ID=16162423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11184963A Pending JP2001014219A (en) 1999-06-30 1999-06-30 Method and device for controlling cache

Country Status (1)

Country Link
JP (1) JP2001014219A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004059499A2 (en) * 2002-12-30 2004-07-15 Koninklijke Philips Electronics N.V. Memory controller and method for writing to a memory
JP2010238009A (en) * 2009-03-31 2010-10-21 Fujitsu Ltd Storage control device, storage system, and copying method
US8176290B2 (en) * 2008-07-04 2012-05-08 Kabushiki Kaisha Toshiba Memory controller
CN102495710A (en) * 2011-10-25 2012-06-13 曙光信息产业(北京)有限公司 Method for processing data read-only accessing request

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004059499A2 (en) * 2002-12-30 2004-07-15 Koninklijke Philips Electronics N.V. Memory controller and method for writing to a memory
WO2004059499A3 (en) * 2002-12-30 2004-09-02 Koninkl Philips Electronics Nv Memory controller and method for writing to a memory
US8176290B2 (en) * 2008-07-04 2012-05-08 Kabushiki Kaisha Toshiba Memory controller
JP2010238009A (en) * 2009-03-31 2010-10-21 Fujitsu Ltd Storage control device, storage system, and copying method
CN102495710A (en) * 2011-10-25 2012-06-13 曙光信息产业(北京)有限公司 Method for processing data read-only accessing request

Similar Documents

Publication Publication Date Title
US6408369B1 (en) Internal copy for a storage controller
US6446140B1 (en) Data input/output device, data input/output method and storage medium
US7152129B2 (en) Apparatus having an inter-module data transfer confirming function, storage controlling apparatus, and interface module for the apparatus
JP4727800B2 (en) Digital data subsystem including a directory for efficiently providing format information about stored records
JPS62177621A (en) Disk device
JP2001014219A (en) Method and device for controlling cache
JP3882461B2 (en) Storage device system and backup acquisition method thereof
JP2000148404A (en) Computer system
JP2003006137A (en) Storage access system
JPH0528651A (en) Information recorder and reproducer
JPWO2005045681A1 (en) Information recording medium, access device for information recording medium, and area setting method
JP2733478B2 (en) Loading media management method for collective equipment
JP4209108B2 (en) Storage device control method, storage device used in this method, disk array device, and disk controller
JPH0876940A (en) Method for controlling disk array
JP3456234B2 (en) Target device
JPH04111030A (en) Information recorder
JPH01255028A (en) Method for making access to external storage device
JP2732951B2 (en) Data transfer control method
JPS6390088A (en) Recording information managing system for optical disk
JP2006190185A (en) Information recording device
JPH09102186A (en) Aggregate disk device
JPS6053326B2 (en) Double data recording method for input/output control equipment
JPH05314020A (en) Memory card device
JPH09128153A (en) Method for automatically controlling library
JPH05242605A (en) Disk control device