JPH07107670B2 - Disk cache device - Google Patents

Disk cache device

Info

Publication number
JPH07107670B2
JPH07107670B2 JP1086852A JP8685289A JPH07107670B2 JP H07107670 B2 JPH07107670 B2 JP H07107670B2 JP 1086852 A JP1086852 A JP 1086852A JP 8685289 A JP8685289 A JP 8685289A JP H07107670 B2 JPH07107670 B2 JP H07107670B2
Authority
JP
Japan
Prior art keywords
address
disk
stored
disk address
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP1086852A
Other languages
Japanese (ja)
Other versions
JPH02267646A (en
Inventor
初夫 中野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1086852A priority Critical patent/JPH07107670B2/en
Publication of JPH02267646A publication Critical patent/JPH02267646A/en
Publication of JPH07107670B2 publication Critical patent/JPH07107670B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、ディスク装置に記憶されたデータを転記する
ディスクキャッシュ装置に関する。
Description: TECHNICAL FIELD The present invention relates to a disk cache device for transferring data stored in a disk device.

(従来の技術) ディスクキャッシュ装置は、ホスト計算機のディスク装
置に対するアクセス時間を短縮するため、ホスト計算機
とディスク装置との間に設けられるものである。
(Prior Art) A disk cache device is provided between a host computer and a disk device in order to shorten the access time of the host computer to the disk device.

第2図は、従来のディスクキャッシュ装置の概略構成を
示すブロック図である。
FIG. 2 is a block diagram showing a schematic configuration of a conventional disk cache device.

ディスクキャッシュ装置10は、ホスト計算機11とディス
ク装置12との間に設けられたディスク制御装置13に接続
されている。このディスクキャッシュ装置10は、キャッ
シュメモリ1と、このキャッシュメモリ1を制御するデ
ィスクキャッシュ制御装置14とから成る。
The disk cache device 10 is connected to a disk control device 13 provided between the host computer 11 and the disk device 12. The disk cache device 10 includes a cache memory 1 and a disk cache control device 14 that controls the cache memory 1.

キャッシュメモリ1は、ディスク装置12に格納されてい
るデータの一部の写しを記憶している。その記憶単位
は、ディスク装置12のブロック、即ち、一括してアクセ
スされる単位量のデータである。
The cache memory 1 stores a copy of part of the data stored in the disk device 12. The storage unit is a block of the disk device 12, that is, a unit amount of data that is collectively accessed.

ホスト計算機11からディスクアドレスを含むリード命令
が与えられると、ディスクキャッシュ制御装置14は、該
当ディスクアドレスを含むブロックの写しがキャッシュ
メモリ1内に存在するか否かを検索する。
When a read command including a disk address is given from the host computer 11, the disk cache control device 14 searches the cache memory 1 for a copy of a block including the corresponding disk address.

存在している場合(以下、「ヒット」という)、ディス
クキャッシュ制御装置14は、該データをキャッシュメモ
リ1から読出し、ホスト計算機11へ送る。
When it exists (hereinafter referred to as “hit”), the disk cache control device 14 reads the data from the cache memory 1 and sends it to the host computer 11.

存在していない場合(以下、「ミスヒット」という)、
ディスクキャッシュ制御装置14は、ディスク制御装置13
にその旨を伝える。これにより、ディスク制御装置13
は、該当ディスクアドレスを含むブロックのデータをデ
ィスク装置12より読出し、ディスクキャッシュ装置10へ
送るとともに、当該ブロックの中からホスト計算機11か
ら要求のあったデータを取出してホスト計算機11へ送
る。そして、ディスクキャッシュ装置10は、送られてき
たデータをキャッシュメモリ1内の1つのブロックに割
当て格納する。
If it does not exist (hereinafter referred to as "miss hit"),
The disk cache controller 14 is a disk controller 13
Tell that to. As a result, the disk controller 13
Reads out the data of the block including the corresponding disk address from the disk device 12 and sends it to the disk cache device 10, and also takes out the requested data from the host computer 11 from the block and sends it to the host computer 11. Then, the disk cache device 10 allocates the sent data to one block in the cache memory 1 and stores it.

従来のディスクキャッシュ制御装置14では、上述の動作
を実行するに当たり、ディスク装置12上のどこのブロッ
クのデータの写しがキャッシュメモリ1上に存在し、そ
れはキャッシュメモリ1のどこのアドレスに格納されて
いるかを管理するため、第3図に示すようなキャッシュ
メモリ1の管理テーブル2を設けている。
In the conventional disk cache control device 14, when executing the above-mentioned operation, a copy of data of which block on the disk device 12 exists in the cache memory 1, and it is stored in the cache memory 1 at which address. A management table 2 of the cache memory 1 as shown in FIG.

第3図は、従来のディスクキャッシュ装置の構成を示す
ブロック図である。
FIG. 3 is a block diagram showing the configuration of a conventional disk cache device.

第3図において、ディスク装置12は、前述したように、
ある大きさのブロックに分割して管理されている。キャ
ッシュメモリ1は、ディスク装置12内のブロックと同じ
大きさに分割され、メモリアドレスA0′〜An′でアドレ
シングされている。
In FIG. 3, the disk device 12 is, as described above,
It is managed by dividing it into blocks of a certain size. The cache memory 1 is divided into the same size as the blocks in the disk device 12, and is addressed by memory addresses A 0 ′ to A n ′.

管理テーブル2は、キャッシュメモリ1の各ブロック毎
に対応して、それぞれVビットとブロックアドレスとを
格納している。Vビットは、キャッシュメモリ1内にデ
ィスク装置12上のデータの写しが存在しているか否かを
示すフラグ(存在している場合“1"、そうでない場合
“0")である。また、ブロックアドレスは、ディスク装
置12上のデータの写しがキャッシュメモリ1内に存在し
ている場合に、該当ブロックのディスク装置12上でのデ
ィスクアドレスの上位部分(第3図に示すディスクアド
レス斜線部)を取出して格納したものである。
The management table 2 stores V bits and block addresses for each block of the cache memory 1. The V bit is a flag indicating whether or not a copy of the data on the disk device 12 exists in the cache memory 1 (“1” if it exists, and “0” otherwise). Further, the block address is the upper portion of the disk address on the disk device 12 of the corresponding block when a copy of the data on the disk device 12 exists in the cache memory 1 (the disk address diagonal line shown in FIG. 3). Part) is taken out and stored.

今、ホスト計算機11より、あるブロック内のデータを読
出す要求があったとすると、ディスクキャッシュ制御装
置14は、該当ブロックがキャッシュメモリ1上に存在し
ているか否かを判定するために管理テーブル2の検索を
開始する。この検索は、テーブルアドレスカウンタ7を
順次更新することによって行なわれる。
If there is a request from the host computer 11 to read the data in a block, the disk cache control device 14 determines whether or not the block exists in the cache memory 1 by using the management table 2 Start searching for. This search is performed by sequentially updating the table address counter 7.

第3図において、まず、管理テーブル2の先頭のテーブ
ルアドレスA0を検索し、そのVビットが“1"か否かを比
較手段4′によって判定する。“0"の場合は、ディスク
アドレスが無効であるので、テーブルアドレスカウンタ
+1信号をテーブルアドレスカウンタ7に出力し、これ
によりテーブルアドレスカウンタ7は次のテーブルアド
レスA1に進む。“1"の場合は、ディスクアドレスがホス
ト計算機11から要求され、ディスクアドレスレジスタ6
に格納された検索対象ディスクアドレスに一致している
か否かを判定する。一致していれば、検索対象ディスク
アドレスに該当するデータがキャッシュメモリ上にヒッ
トしていることになるので、アンド回路8を介してカウ
ンタ更新ストプ信号をテーブルアドレスカウンタ7に出
力する。これにより、テーブルアドレスカウンタ7が停
止され、管理テーブルの検索が完了される。一方、前記
両ディスクアドレスが一致していなければ、テーブルア
ドレスカウンタ信号+1が出力され、テーブルアドレス
カウンタ7は次のテーブルアドレスA1に進む。以下、順
次同様な手順を繰返し、ヒット・ミスヒットを検出して
いた。
In FIG. 3, first, the table address A 0 at the head of the management table 2 is searched, and whether or not the V bit is “1” is determined by the comparison means 4 ′. If "0", since the disk address is invalid, and outputs the table address counter + 1 signals in the table address counter 7, thereby table address counter 7 proceeds to the next table address A 1. In the case of "1", the disk address is requested from the host computer 11 and the disk address register 6
It is determined whether or not it matches the search target disk address stored in. If they match, it means that the data corresponding to the search target disk address has hit the cache memory, and therefore the counter update stop signal is output to the table address counter 7 via the AND circuit 8. As a result, the table address counter 7 is stopped and the search of the management table is completed. On the other hand, if the disk addresses do not match, the table address counter signal +1 is output and the table address counter 7 advances to the next table address A 1 . After that, the same procedure was repeated sequentially to detect hits / misses.

(発明が解決しようとする課題) しかしながら、以上のようなディスクキャッシュ装置に
おいては、管理テーブル2の先頭のテーブルアドレスA0
から順次検索を行なっていくため、検索時間が長くなる
という問題があった。特に、ミスヒットの場合は、管理
テーブル2の大きさ分の回数n+1の検索を行なった
後、ディスク制御装置13によってディスク装置12からデ
ータを読み込まなければならなかった。従って、ディス
ク装置のアクセス時間が長くなるという問題があった。
(Problems to be Solved by the Invention) However, in the disk cache device as described above, the head table address A 0 of the management table 2 is set.
There is a problem that the search time becomes long because the search is sequentially performed from. In particular, in the case of a mishit, the data has to be read from the disk device 12 by the disk controller 13 after searching n + 1 times the size of the management table 2. Therefore, there is a problem that the access time of the disk device becomes long.

本発明は以上の点に着目してなされたもので、ヒットま
たはミスヒットの判定に費やされる時間を減少させ、効
率的な検索を可能としたディスクキャッシュ装置を提供
することを目的とするものである。
The present invention has been made in view of the above points, and an object of the present invention is to provide a disk cache device that reduces the time spent for hit or miss hit determination and enables efficient search. is there.

(課題を解決するための手段) 本発明のディスクキャッシュ装置は、ディスク装置に格
納されたデータを多数のブロックに分割し、当該ブロッ
クごとにデータを転記するキャッシュメモリと、当該キ
ャッシュメモリ上の各ブロックごとのデータに対応させ
てそのディスクアドレスを格納する管理テーブルと、当
該管理テーブルに格納され、そのテーブルアドレスが連
続する2以上のディスクアドレスについて、各ディスク
アドレスの大小関係を表わすディスクアドレス情報を格
納するディスクアドレス情報格納手段と、検索対象のデ
ィスクアドレスに対応する前記データを読出すために、
前記管理テーブルを前記テーブルアドレス順に検索する
際、検索対象のディスクアドレスと検索中のテーブルア
ドレスに格納されたディスクアドレスの大小関係を求め
る比較手段と、当該比較手段による比較結果と前記ディ
スクアドレス情報とにより、少なくとも次のテーブルア
ドレスに格納されたディスクアドレスと前記検索対象の
ディスクアドレスの大小関係を判断し、前記少なくとも
次のテーブルアドレスをスキップしてテーブルアドレス
を更新するテーブルアドレス制御手段とを備えたことを
特徴とするものである。
(Means for Solving the Problems) A disk cache device of the present invention divides data stored in the disk device into a large number of blocks, and transfers the data to each block, and a cache memory for each block. A management table that stores the disk address corresponding to the data of each block, and disk address information that represents the size relationship of each disk address for two or more disk addresses that are stored in the management table and that have consecutive table addresses. Disk address information storage means for storing, and for reading the data corresponding to the disk address to be searched,
When searching the management table in the order of the table addresses, comparing means for obtaining a magnitude relationship between the disk address to be searched and the disk address stored in the table address being searched, and a comparison result by the comparing means and the disk address information. And at least a table address control means for determining the size relationship between the disk address stored in the next table address and the search target disk address, and skipping the at least the next table address to update the table address. It is characterized by that.

(作用) 以上の装置においては、管理テーブルをテーブルアドレ
ス順に検索する際、検索対象のディスクアドレスと検索
中のディスクアドレスとが一致するか否かだけでなく、
検索対象のディスクアドレスと検索中のディスクアドレ
スとの大小関係が判断される。ディスクアドレス情報格
納手段には、管理テーブルの検索中のテーブルアドレス
に格納されたディスクアドレスに対応して、次以降のテ
ーブルアドレスに格納されたディスクアドレスが検索中
の当該ディスクアドレスより大きいか小さいかを表わす
ディスクアドレス情報が格納されている。このディスク
アドレス情報により、検索対象のディスクアドレスと検
索中のディスクアドレスと次以降のディスクアドレスと
の大小関係が大きい順になっているとき、及び小さい順
になっているときは、次以降のディスクアドレスは検索
対象のディスクアドレスと一致し得ないと判断できる。
この場合、次以降の所定数のディスクアドレスは、検索
されずにスキップされ、更にその次のディスクアドレス
が検索される。これにより、管理テーブルの検索時間が
短縮される。
(Operation) In the above device, when searching the management table in the order of table addresses, not only whether or not the disk address to be searched matches the disk address being searched,
The magnitude relationship between the search target disk address and the disk address being searched is determined. Whether or not the disk address stored in the next and subsequent table addresses is larger or smaller than the disk address being searched, in correspondence with the disk address stored in the table address being searched in the management table The disc address information indicating the is stored. With this disk address information, when the size relationship between the search target disk address, the disk address being searched, and the next and subsequent disk addresses is in descending order, and in the decreasing order, the next and subsequent disk addresses are It can be determined that it cannot match the disk address of the search target.
In this case, a predetermined number of disk addresses after the next are skipped without being searched, and the next disk address is searched. This shortens the search time of the management table.

(実施例) 第1図は、本発明のディスクキャッシュ装置の実施例を
示す構成図である。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of a disk cache device of the present invention.

第1図の装置は、キャッシュメモリ1と、管理テーブル
2と、ディスクアドレス情報格納手段3と、比較手段4
と、テーブルアドレス制御手段5等から成る。
The apparatus shown in FIG. 1 comprises a cache memory 1, a management table 2, a disk address information storage means 3, and a comparison means 4.
And table address control means 5 and the like.

キャッシュメモリ1は、従来のものと同様で、ランダム
・アクセス・メモリ等から成る。このキャッシュメモリ
1には、ディスク装置12に格納されたデータが多数のブ
ロックに分割され、当該ブロックごとに転記される。
The cache memory 1 is similar to the conventional one and is composed of a random access memory or the like. In the cache memory 1, the data stored in the disk device 12 is divided into a large number of blocks and is transcribed for each block.

管理テーブル2も、従来のものと同様で、ランダム・ア
クセス・メモリ等から成る。この管理テーブル2には、
キャッシュメモリ1上の各ブロックごとのデータに対応
させてそのディスクアドレスが格納されるとともに、そ
のディスクアドレスが有効か無効かを示すVビットが格
納される。
The management table 2 is also similar to the conventional one and is composed of a random access memory or the like. In this management table 2,
The disk address is stored in association with the data of each block on the cache memory 1, and the V bit indicating whether the disk address is valid or invalid is stored.

ディスクアドレス情報格納手段3は、次のようなディス
クアドレス情報Pを格納するためのものである。ディス
クアドレス情報Pは、テーブルアドレスが連続する2以
上のディスクアドレスについて、各ディスクアドレスの
大小関係を表わす情報である。図示の例のディスクアド
レス情報Pは、連続する2つのディスクアドレスの大小
関係を表わす。即ち、図示のディスクアドレス情報P
は、1ビットの情報から成り、値が“1"のとき、次のテ
ーブルアドレスのディスクアドレスが大きいことを表わ
し、値が“0"のとき、次のテーブルアドレスのディスク
アドレスが小さいことを表わす。これらの値は、Vビッ
トの値が“1"か“0"かにかかわらず、設定される。この
ディスクアドレス情報Pを格納するディスクアドレス情
報格納手段3は、管理テーブル2のテーブルアドレスA0
〜Anに対応させて設けられている。
The disk address information storage means 3 is for storing the following disk address information P. The disk address information P is information indicating the magnitude relationship of each disk address for two or more disk addresses having consecutive table addresses. The disc address information P in the illustrated example represents the magnitude relation between two consecutive disc addresses. That is, the illustrated disk address information P
Is composed of 1-bit information. When the value is "1", it means that the disk address of the next table address is large, and when the value is "0", it means that the disk address of the next table address is small. . These values are set regardless of whether the value of the V bit is "1" or "0". The disk address information storage means 3 for storing the disk address information P has a table address A 0 of the management table 2.
It is provided corresponding to ~ A n .

比較手段4は、コンパレータから成り、ディスクアドレ
スレジスタ6に格納された検索対象ディスクアドレス
と、管理テーブル2内のテーブルアドレスカウンタ7に
より指定されるテーブルアドレスのディスクアドレスと
を比較する。比較手段4は、双方のディスクアドレスが
一致したとき、信号A=Bをハイレベルにする。信号A
=BがハイレベルでVビットが1であれば、アンド回路
8の出力がハイレベルとなり、テーブルアドレスカウン
タの更新がストップされる。このとき、テーブルアドレ
スカウンタ7が示しているテーブルアドレスに対応する
データがキャッシュメモリ1から読出される。このよう
にして、検索対象のディスクアドレスに対応するデータ
が読出される。
The comparison means 4 is composed of a comparator, and compares the search target disk address stored in the disk address register 6 with the disk address of the table address designated by the table address counter 7 in the management table 2. The comparing means 4 sets the signal A = B to a high level when both disk addresses match. Signal A
= B is at the high level and the V bit is 1, the output of the AND circuit 8 becomes at the high level and the updating of the table address counter is stopped. At this time, the data corresponding to the table address indicated by the table address counter 7 is read from the cache memory 1. In this way, the data corresponding to the disk address to be searched is read.

また、比較手段4は、ディスクアドレスレジスタ6に格
納された検索対象ディスクアドレスと、管理テーブル2
内のテーブルアドレスカウンタ7により指定されるテー
ブルアドレスのディスクアドレスとの大小関係を判断
し、その判断結果に応じて信号A>Bまたは信号A<B
をハイレベルにする。これらの信号A>Bまたは信号A
<Bは、テーブルアドレス制御手段5に入力される。
Further, the comparison means 4 compares the search target disk address stored in the disk address register 6 with the management table 2
Of the table address designated by the table address counter 7 in FIG.
To high level. These signals A> B or signal A
<B is input to the table address control means 5.

テーブルアドレス制御手段5は、比較手段4による比較
結果とディスクアドレス情報Pとにより、テーブルアド
レスカウンタ7のテーブルアドレスの更新を制御するた
めのものである。テーブルアドレス制御手段5は、ま
ず、少なくとも次のテーブルアドレスに格納されたディ
スクアドレスと前記検索対象ディスクアドレスの大小関
係を判断する。図示の例では、次のテーブルアドレスに
格納されたディスクアドレスと前記検索対象ディスクア
ドレスの大小関係のみを判断する。即ち、今回のテーブ
ルアドレスに格納されたディスクアドレスが検索対象デ
ィスクアドレスより大きく、且つディスクアドレス情報
Pが“1"の場合は、次のテーブルアドレスに格納された
ディスクアドレスは検索対象ディスクアドレスより大き
い。また、今回のテーブルアドレスに格納されたディス
クアドレスが検索対象ディスクアドレスより小さく、且
つディスクアドレス情報Pが“0"の場合は、次のテーブ
ルアドレスに格納されたディスクアドレスは検索対象デ
ィスクアドレスより小さい。従って、これらの場合に
は、次のテーブルアドレスに格納されたディスクアドレ
スは検索対象ディスクアドレスと一致し得ないので、テ
ーブルアドレスカウンタ7の更新を2にし、次のテーブ
ルアドレスをスキップする。これにより、次のテーブル
アドレスに格納されたディスクアドレスについては、比
較手段4により全ビットが比較されることがない。従っ
て、管理テーブル2の検索時間が短縮される。
The table address control means 5 is for controlling the update of the table address of the table address counter 7 based on the comparison result of the comparison means 4 and the disk address information P. The table address control means 5 first determines the magnitude relationship between at least the disk address stored in the next table address and the search target disk address. In the illustrated example, only the size relationship between the disk address stored in the next table address and the search target disk address is determined. That is, when the disk address stored in the current table address is larger than the search target disk address and the disk address information P is "1", the disk address stored in the next table address is larger than the search target disk address. . If the disk address stored in the current table address is smaller than the search target disk address and the disk address information P is "0", the disk address stored in the next table address is smaller than the search target disk address. . Therefore, in these cases, since the disk address stored in the next table address cannot match the search target disk address, the table address counter 7 is updated to 2 and the next table address is skipped. As a result, for the disk address stored in the next table address, the comparing means 4 does not compare all the bits. Therefore, the search time of the management table 2 is shortened.

一方、今回のテーブルアドレスに格納されたディスクア
ドレスが検索対象ディスクアドレスより大きく、且つデ
ィスクアドレス情報Pが“0"の場合は、次のテーブルア
ドレスに格納されたディスクアドレスと検索対象ディス
クアドレスとの大小関係は不明である。また、今回のテ
ーブルアドレスに格納されたディスクアドレスが検索対
象ディスクアドレスより小さく、且つディスクアドレス
情報Pが“1"の場合も、次のテーブルアドレスに格納さ
れたディスクアドレスと検索対象ディスクアドレスとの
大小関係は不明である。従って、これらの場合には、テ
ーブルアドレスカウンタ7を通常どおり1だけ更新す
る。
On the other hand, when the disk address stored in the current table address is larger than the search target disk address and the disk address information P is “0”, the disk address stored in the next table address and the search target disk address are The size relationship is unknown. Even when the disk address stored in the current table address is smaller than the search target disk address and the disk address information P is "1", the disk address stored in the next table address and the search target disk address are The size relationship is unknown. Therefore, in these cases, the table address counter 7 is updated by 1 as usual.

次に、上述のように構成した装置の動作を説明する。Next, the operation of the apparatus configured as described above will be described.

第4図は、第1図の管理テーブルの検索手段の説明図で
ある。
FIG. 4 is an explanatory diagram of the search means of the management table of FIG.

図示の管理テーブル2には、テーブルアドレスA0〜A
6に、ディスクアドレス300,500,100,50,10,600,200がそ
れぞれ格納されている。従って、ディスクアドレス情報
Pは、テーブルアドレスA0〜A5に対し、それぞれ1,0,0,
0,1,0となる。尚、テーブルアドレスA2のディスクアド
レスは、無効であり、Vビットが0になっている。
In the illustrated management table 2, table addresses A 0 to A
Disk addresses 300, 500, 100, 50, 10, 600, 200 are stored in 6 , respectively. Therefore, the disk address information P is 1,0,0, for the table addresses A 0 to A 5 , respectively.
It becomes 0,1,0. The disk address of the table address A 2 is invalid and the V bit is 0.

管理テーブル2の検索は、必ずテーブルアドレスA0から
行なわれる。管理テーブル2を検索する際の動作パター
ンは、以下の5種のパターン〜がある。A=テーブ
ルアドレスカウンタの示すテーブルアドレスに格納され
たディスクアドレス、B=検索対象ディスクアドレスと
する。
The search of the management table 2 is always performed from the table address A 0 . The operation pattern when searching the management table 2 includes the following five types of patterns. It is assumed that A = the disk address stored in the table address indicated by the table address counter, and B = the search target disk address.

A=B且つV=1ならば、ヒットであり、検索完了
である。
If A = B and V = 1, it means a hit and the search is completed.

A>B且つP=0ならば、テーブルアドレスを1更
新する。
If A> B and P = 0, the table address is updated by 1.

A>B且つP=1ならば、テーブルアドレスを2更
新する。
If A> B and P = 1, the table address is updated by 2.

A<B且つP=0ならば、テーブルアドレスを2更
新する。
If A <B and P = 0, the table address is updated by 2.

A<B且つP=1ならば、テーブルアドレスを1更
新する。
If A <B and P = 1, the table address is updated by 1.

今、ホスト計算機11より、ディスクアドレス200X(Xは
ブロック内アドレス)のデータの読取りが指定されたと
する。まず、テーブルアドレスA0では、パターンで動
作し、テーブルアドレスA1をスキップしてテーブルアド
レスA2に進む。次に、テーブルアドレスA2では、パター
ンで動作し、テーブルアドレスA3をスキップしてテー
ブルアドレスA4に進む。次に、テーブルアドレスA4
は、パターンで動作し、テーブルアドレスA5に進む。
次に、テーブルアドレスA6では、パターンで動作し、
テーブルアドレスA6に進む。そして、テーブルアドレス
A6では、検索対象ディスクアドレス200がヒットしてい
ることが検出され、検索が完了される。
Now, it is assumed that the host computer 11 has designated the reading of data at the disk address 200X (X is an address within a block). First, the table address A 0 operates in a pattern, skips the table address A 1 and proceeds to the table address A 2 . Then, the table address A 2, and operate in pattern, the process goes to the table address A 4 to skip table address A 3. Then, at table address A 4 , it operates on the pattern and proceeds to table address A 5 .
Then, at table address A 6 , it works with the pattern,
Go to table address A 6 . And the table address
At A 6 , it is detected that the search target disk address 200 is hit, and the search is completed.

検索対象ディスクアドレスがミスヒットした場合には、
テーブルアドレスAnまでの検索が行なわれ、第1図のテ
ーブルアドレスカウンタ7からオーバフロー信号が出力
される。
If the search target disk address is a mishit,
A search is performed up to the table address A n, and an overflow signal is output from the table address counter 7 in FIG.

本発明のディスクキャッシュ装置は、以上の実施例に限
定されない。
The disk cache device of the present invention is not limited to the above embodiments.

即ち、上述した実施例においては、ディスクアドレス情
報Pを1ビットとし、隣り合うディスクアドレスの大小
関係のみを表わすものとしたが、本発明はこれに限るも
のでなく、ディスクアドレス情報を複数ビットにし、連
続する3つ以上の複数のディスクアドレスの大小関係を
表わすようにしても差し支え無い。この場合は、ディス
クアドレスの検索時のスキップが1つのみでなく、2つ
以上行なわれる場合も生じる。これにより、管理テーブ
ルの検索時間を更に短縮することができる。
That is, in the above-described embodiment, the disc address information P is set to 1 bit and only the magnitude relation between the adjacent disc addresses is represented. , It is also possible to represent the magnitude relationship of a plurality of consecutive three or more disk addresses. In this case, not only one skip when searching for a disk address but also two or more skips may occur. Thereby, the search time of the management table can be further shortened.

(発明の効果) 以上の構成の本発明のディスクキャッシュ装置は、ディ
スクアドレス情報によって次以降のディスクアドレスも
同時に検索しうるようにしたので、キャッシュメモリの
管理テーブルの検索時間を短縮することができる。従っ
て、キャッシュメモリにおけるデータのヒット・ミスヒ
ットの判定時間を短縮でき、もって、ディスク装置のア
クセス時間の大幅な短縮を図ることができる。
(Effects of the Invention) Since the disk cache device of the present invention having the above-described configuration is capable of simultaneously searching the next and subsequent disk addresses based on the disk address information, it is possible to shorten the search time of the management table of the cache memory. . Therefore, it is possible to shorten the time for determining the hit / miss hit of the data in the cache memory, and it is possible to significantly reduce the access time of the disk device.

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

第1図は本発明のディスクキャッシュ装置の構成を示す
ブロック図、第2図は従来のディスクキャッシュ装置の
概略構成を示すブロック図、第3図は従来のディスクキ
ャッシュ装置の構成を示すブロック図、第4図は第1図
の管理テーブルの検索手順の説明図である。 1……キャッシュメモリ、2……管理テーブル、3……
ディスクアドレス情報格納手段、4……比較手段、5…
…アドレス制御手段、6……ディスクアドレスレジス
タ、7……テーブルアドレスカウンタ、8……アンド回
路。
1 is a block diagram showing a configuration of a disk cache device of the present invention, FIG. 2 is a block diagram showing a schematic configuration of a conventional disk cache device, FIG. 3 is a block diagram showing a configuration of a conventional disk cache device, FIG. 4 is an explanatory diagram of a search procedure of the management table of FIG. 1 ... Cache memory, 2 ... Management table, 3 ...
Disc address information storage means, 4 ... comparison means, 5 ...
... address control means, 6 ... disk address register, 7 ... table address counter, 8 ... AND circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ディスク装置に格納されたデータを多数の
ブロックに分割し、当該ブロックごとにデータを転記す
るキャッシュメモリと、 当該キャッシュメモリ上の各ブロックごとのデータに対
応させてそのディスクアドレスを格納する管理テーブル
と、 当該管理テーブルに格納され、そのテーブルアドレスが
連続する2以上のディスクアドレスについて、各ディス
クアドレスの大小関係を表わすディスクアドレス情報を
格納するディスクアドレス情報格納手段と、 検索対象のディスクアドレスに対応する前記データを読
出すために、前記管理テーブルを前記テーブルアドレス
順に検索する際、検索対象のディスクアドレスと検索中
のテーブルアドレスに格納されたディスクアドレスの大
小関係を求める比較手段と、 当該比較手段による比較結果と前記ディスクアドレス情
報とにより、少なくとも次のテーブルアドレスに格納さ
れたディスクアドレスと前記検索対象のディスクアドレ
スの大小関係を判断し、前記少なくとも次のテーブルア
ドレスをスキップしてテーブルアドレスを更新するテー
ブルアドレス制御手段とを備えたことを特徴とするディ
スクキャッシュ装置。
1. A cache memory that divides data stored in a disk device into a large number of blocks, and transfers the data to each block, and a disk address corresponding to the data of each block on the cache memory. A management table to be stored, a disk address information storage unit that stores disk address information indicating the size relationship of each disk address for two or more disk addresses stored in the management table and having consecutive table addresses, and a search target Comparing means for determining the size relationship between the disk address to be searched and the disk address stored in the table address being searched when the management table is searched in the table address order in order to read the data corresponding to the disk address. , Comparison by the comparison means A table that determines the size relationship between the disk address stored in at least the next table address and the disk address to be searched based on the result and the disk address information, and skips the at least the next table address to update the table address. A disk cache device comprising address control means.
JP1086852A 1989-04-07 1989-04-07 Disk cache device Expired - Lifetime JPH07107670B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1086852A JPH07107670B2 (en) 1989-04-07 1989-04-07 Disk cache device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1086852A JPH07107670B2 (en) 1989-04-07 1989-04-07 Disk cache device

Publications (2)

Publication Number Publication Date
JPH02267646A JPH02267646A (en) 1990-11-01
JPH07107670B2 true JPH07107670B2 (en) 1995-11-15

Family

ID=13898343

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1086852A Expired - Lifetime JPH07107670B2 (en) 1989-04-07 1989-04-07 Disk cache device

Country Status (1)

Country Link
JP (1) JPH07107670B2 (en)

Also Published As

Publication number Publication date
JPH02267646A (en) 1990-11-01

Similar Documents

Publication Publication Date Title
US4466059A (en) Method and apparatus for limiting data occupancy in a cache
EP0019358B1 (en) Hierarchical data storage system
US5317704A (en) Storage relocating method and hierarchy storage system utilizing a cache memory
US5347642A (en) Cache memory management unit
JPH0616272B2 (en) Memory access control method
JPH07107670B2 (en) Disk cache device
JPS6258351A (en) Optical disk cache system
JPH0760411B2 (en) Buffer storage controller
JPS5816263B2 (en) General information
JPH05120135A (en) Cache control system
JPH03132844A (en) Cache device
JP2864548B2 (en) Instruction cache device
JPH04283844A (en) Disk cache device
JPH07152650A (en) Cache control unit
JPH04293136A (en) Cache control system
JPH0883213A (en) Storage device including cache memory
JPH04288647A (en) Substitution controller for cache memory
JPH06243045A (en) Cache memory
JPH04148256A (en) Cache controller
JPH1078917A (en) Cache memory device and its diagnostic method
JPH0444295B2 (en)
JPS6124734B2 (en)
JPS60221855A (en) Replacement control device
JPH04363738A (en) Cache memory device
JPH02171944A (en) Buffer storage device