JPH10260881A - Cache device, and entry managing method applied to the device - Google Patents

Cache device, and entry managing method applied to the device

Info

Publication number
JPH10260881A
JPH10260881A JP9066371A JP6637197A JPH10260881A JP H10260881 A JPH10260881 A JP H10260881A JP 9066371 A JP9066371 A JP 9066371A JP 6637197 A JP6637197 A JP 6637197A JP H10260881 A JPH10260881 A JP H10260881A
Authority
JP
Japan
Prior art keywords
data
entry
cache
entries
searching
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
JP9066371A
Other languages
Japanese (ja)
Inventor
Kazuaki Kidokoro
和明 城所
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9066371A priority Critical patent/JPH10260881A/en
Publication of JPH10260881A publication Critical patent/JPH10260881A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a cache device that can perform LRU management of mass cache area with little management data/management load. SOLUTION: In a cache data area 14, storage areas (1 to 8) are managed in a ring shaped, and rotation delay counters, which hold the counts, which are passed by a pointer that detects an empty area are provided, corresponding to each storage area. A cache registration processing part 12 rewrites data in a new storage area even if the data is stored in any of the storage areas, for instance, when a host cache device generates cache out. Then, in the area 14, a rotation delay counter whose value is the larger is the older. About rotation delay counters which have the same value, the smaller index number shows newer data. It is possible to realize LRU management with a small number of management data.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、たとえば高速で
はあるが記憶容量の小さい記憶装置と比較的低速である
が記憶容量の大きい記憶装置とを階層的に接続し、頻繁
にアクセスされる一部分のデータを選択的に高速な記憶
装置に記録することでデータへの高速アクセスを目的と
した階層記憶装置に適用して好適なキャッシュ装置およ
び同装置に適用されるエントリ管理方法に関する。
The present invention relates to a method of hierarchically connecting a storage device having a high speed but a small storage capacity and a storage device having a relatively low speed but a large storage capacity, for example, so that a portion frequently accessed is provided. The present invention relates to a cache device suitable for application to a hierarchical storage device for high-speed access to data by selectively recording data in a high-speed storage device, and an entry management method applied to the device.

【0002】[0002]

【従来の技術】ネットワークの普及や画像データの増加
などによる昨今のデータ量の増大に伴なって、大容量の
記憶装置の需要が一般にも高まりつつあるが、数十GB
クラスの大容量記憶装置全体を高速な半導体メモリやハ
ードディスク装置などで構成すると、システムを構成す
る他の装置に比べて非常に高価になってしまうことが大
容量記憶装置普及の障害となっていた。
2. Description of the Related Art With the recent increase in the amount of data due to the spread of networks and the increase in image data, the demand for large-capacity storage devices is generally increasing.
If the entire mass storage device of the class is composed of a high-speed semiconductor memory or a hard disk device, it becomes extremely expensive compared with other devices constituting the system, which has been an obstacle to the spread of the mass storage device. .

【0003】そこで、一般的に、記録されたデータのう
ちの大部分はほとんどアクセスされないというアクセス
の局所性に着目し、一部の頻繁にアクセスされるデータ
だけを半導体メモリやハードディスク装置などのような
高速な記憶装置に記録し、その他の大部分である、あま
りアクセスされないデータは、比較的低速であるが低コ
ストで大容量を実現できる可搬型メディアのライブラリ
装置に記録しておくという階層記憶装置が注目を集めて
いる。この階層記憶装置では、可搬型メディアの対容量
コストの低さを生かし、ライブラリ記憶装置内部で複数
のメディアを組み合わせ、上位システムにはあたかもメ
ディア数枚分の容量を持った記憶媒体が装置内にあるよ
うに見せて大容量な記憶装置を実現している。
Therefore, in general, attention is paid to the locality of access that most of recorded data is hardly accessed, and only a part of frequently accessed data is stored in a semiconductor memory or a hard disk device. Hierarchical storage in which data is recorded in a high-speed storage device, and most of the other data that is not accessed much are recorded in a library device of portable media that can realize a large capacity at a relatively low speed but at a low cost. The device is getting attention. In this hierarchical storage device, taking advantage of the low cost-to-capacity of portable media, multiple media are combined inside the library storage device, and a storage medium having the capacity of several media is stored in the host system in the host system. It appears to be a large-capacity storage device.

【0004】ライブラリ装置に格納された可搬型メディ
アに記録されたデータへのアクセスには、ライブラリ装
置内でメディアの交換やドライブ装置でのスピンダウン
/スピンアップ処理を必要とするために、半導体メモリ
やハードディスク装置などのアクセス時間に比べて数百
〜数千倍の時間を必要とするが、アクセスの大半が高速
な記憶装置に集中するため、平均するとこのアクセス時
間の差を隠蔽することができ、装置全体としてのデータ
スループットを高速に保つことができる。
Accessing data recorded on a portable medium stored in a library device requires exchange of media in the library device and spin-down / spin-up processing in a drive device. It takes several hundred to several thousand times as long as the access time of hard disk drives and other devices.However, since the majority of accesses are concentrated on high-speed storage devices, this difference in access time can be hidden on average. Thus, the data throughput of the entire apparatus can be kept high.

【0005】ライブラリ記憶装置の性能は、ライブラリ
装置で発生するメディア交換処理の回数をどれだけ減ら
せるかに左右されるため、上位記憶階層にどれだけアク
セスを集中させる事が出来るかが重要である。従来の半
導体メモリをハードディスク装置などのキャッシュとし
て用いるキャッシュ装置では、キャッシュ内のデータの
管理には、機構が単純であることと効果の高さとからキ
ャッシュ内のデータを最後にアクセスされた時間の古い
ものから順に双方向リストで管理するLRU制御が多く
用いられる。
Since the performance of a library storage device depends on how much the number of media exchange processes that occur in the library device can be reduced, it is important how much access can be concentrated on the upper storage hierarchy. . In a cache device using a conventional semiconductor memory as a cache such as a hard disk device, the management of data in the cache requires a long time when the data in the cache was last accessed because of the simplicity of the mechanism and the high effect. LRU control that manages in a bidirectional list in order from the one used is often used.

【0006】また、階層記憶装置では、アクセス性能の
異なる記憶装置を複数組み合わせ、上位階層を下位階層
のキャッシュとして用いる複数段のキャッシュ装置が構
成される。たとえば、半導体メモリ、ハードディスク装
置および光磁気ディスクのライブラリ装置を用いた階層
記憶装置では、データを全てライブラリ装置内のメディ
アに記録しておき、アクセスされる確率の高いデータか
ら順に、半導体メモリおよびハードディスク装置に記録
しておくといった形で複数の階層を利用し多段のキャッ
シュとして動作するような構成が用いられる(さらにド
ライブ装置に装填されているメディアをライブラリ装置
の格納スロットに納められたメディアのキャッシュのよ
うに用いてアクセス性能を向上しているものも存在す
る。) 従来、キャッシュ領域の管理は、半導体メモリとハード
ディスク装置とを組み合わせたキャッシュ装置にならっ
て、各記憶階層に記録されたデータを階層ごとにLRU
リストで管理する方法がとられていたが、ハードディス
ク装置のように数GBもの容量を持つデータ領域を管理
するためのLRUリストは、それ自体が大容量のデータ
となるために、リストを更新するためにハードディスク
へのアクセスが頻発するなどを原因として、リストを管
理する処理の負荷が無視できないほどに増大してしま
い、通常アクセスが妨げられてデータをキャッシュした
ことによるメリットが薄れるという問題があった。
[0006] In the hierarchical storage device, a plurality of cache devices are used in which a plurality of storage devices having different access performances are combined and an upper hierarchy is used as a lower hierarchy cache. For example, in a hierarchical storage device using a library device of a semiconductor memory, a hard disk device, and a magneto-optical disk, all data is recorded on a medium in the library device, and the data of the semiconductor memory and the hard disk are sequentially stored in descending order of access probability. A configuration is used in which a plurality of layers are used to operate as a multi-stage cache, such as recording in a device (in addition, a media loaded in a drive device is stored in a storage slot of a library device in a media cache). Conventionally, the cache area is managed by following the cache device combining a semiconductor memory and a hard disk device with the data recorded in each storage hierarchy. LRU for each layer
Although a method of managing data in a list has been adopted, the LRU list for managing a data area having a capacity of several GB, such as a hard disk device, is updated because the data becomes large in size. As a result, access to the hard disk frequently occurs, and the processing load for managing the list increases to a non-negligible degree.Therefore, normal access is hindered and the merit of caching data is diminished. Was.

【0007】[0007]

【発明が解決しようとする課題】このように、従来にお
いては、キャッシュ領域をLRU管理するための負荷が
通常アクセスの効率を阻害するにいたっているといった
問題があった。この発明はこのような実情に鑑みてなさ
れたものであり、大容量のキャッシュ領域を少ない管理
データ/管理負荷でLRU管理することのできるキャッ
シュ装置および同装置に適用されるエントリ管理方法を
提供することを目的とする。
As described above, conventionally, there is a problem that the load for managing the LRU of the cache area impairs the efficiency of the normal access. The present invention has been made in view of such circumstances, and provides a cache device capable of performing LRU management of a large-capacity cache area with a small management data / management load, and an entry management method applied to the cache device. The purpose is to:

【0008】[0008]

【課題を解決するための手段】この発明は、前述した目
的を達成するために、複数のエントリがリング状に管理
されるキャッシュ装置において、空きエントリを検索す
るための空き領域検索ポインタに通過されたか否かを示
す周回遅れマークをエントリそれぞれに対応させて設
け、一方で、キャッシュヒットしたデータを他のエント
リに新たに書き換えるエントリ管理を実行する。すなわ
ち、この発明によれば、エントリを周回遅れをしていな
いものと周回遅れをしたものとの2種類に分割し、かつ
LRUが意味をもつデータのみを周回遅れをしていない
エントリ内で正確にインデックス番号順に保持させるこ
ととなるため、インデックス番号と周回遅れマークとい
った少ないデータで適切なLRU管理を実現することが
可能となる。
According to the present invention, in order to achieve the above-described object, in a cache device in which a plurality of entries are managed in a ring shape, a plurality of entries are passed by a free area search pointer for searching for a free entry. A round delay mark indicating whether or not the cache hit has been provided for each entry, and entry management for newly rewriting the cache hit data with another entry is executed. In other words, according to the present invention, the entry is divided into two types, one with no delay and one with delay, and only the data that the LRU has meaning is correctly entered in the entry without delay. Since the data is held in the order of the index numbers, appropriate LRU management can be realized with a small amount of data such as an index number and a round delay mark.

【0009】また、更新を伴なわないキャッシュヒット
が発生したときには、データの書き換えを行なうことな
く、周回遅れマークをクリアするのみで適切なLRU管
理を実現することができるため、そのLRU管理のため
の負荷をさらに減少させることが可能となる。
In addition, when a cache hit without updating occurs, appropriate LRU management can be realized only by clearing the round delay mark without rewriting data. Can be further reduced.

【0010】また、この発明は、複数のエントリがリン
グ状に管理されるキャッシュ装置において、空きエント
リを検索するための空き領域検索ポインタに通過された
回数を保持する周回遅れカウンタをエントリそれぞれに
対応させて設け、一方で、キャッシュヒットしたデータ
を他のエントリに新たに書き換えるエントリ管理を実行
する。すなわち、この発明によれば、周回遅れカウンタ
の値が小さいエントリほど新しいデータを保持している
ことになり、かつ周回遅れカウンタの値が同じエントリ
内では、そのインデックス番号が小さいものほど新しい
データを保持していることになる。したがって、この発
明においても、インデックス番号と周回遅れカウンタと
いった少ないデータで適切なLRU管理を実現すること
が可能となる。
Further, according to the present invention, in a cache device in which a plurality of entries are managed in a ring shape, a circulation delay counter for holding the number of times passed by a free area search pointer for searching for a free entry corresponds to each entry. On the other hand, entry management for rewriting the cache hit data to another entry is executed. That is, according to the present invention, an entry having a smaller value of the loop delay counter holds new data, and in an entry having the same value of the loop delay counter, newer data has a smaller index number. You are holding it. Therefore, also in the present invention, it is possible to realize appropriate LRU management with a small amount of data such as an index number and a circulation delay counter.

【0011】また、この発明の場合も、更新を伴なわな
いキャッシュヒットが発生したときには、データの書き
換えを行なうことなく、周回遅れカウンタの値を減少さ
せるのみで適切なLRU管理を実現することができるた
め、そのLRU管理のための負荷をさらに減少させるこ
とが可能となる。さらに、周回遅れカウンタの値を減少
させる際、その値が最低値を示していた場合には、その
データを他のエントリに新たに書き換えることによっ
て、アクセス頻度の高いデータのキャッシュアウトを極
力回避することができ、より適切な名をLRU管理を実
現することができることになる。
Also in the case of the present invention, when a cache hit involving no update occurs, appropriate LRU management can be realized only by decreasing the value of the round delay counter without rewriting data. Therefore, the load for the LRU management can be further reduced. Furthermore, when the value of the circulation delay counter is decreased, if the value indicates the lowest value, the data is newly rewritten with another entry, thereby avoiding the cache-out of frequently accessed data as much as possible. LRU management can be realized with more appropriate names.

【0012】[0012]

【発明の実施の形態】以下、図面を参照してこの発明の
実施形態を説明する。図1にこの発明に係る記憶装置の
システム構成を示す。この発明では、バックストレージ
としてライブラリ装置を使用している。ライブラリ装置
内のメディアは光磁気ディスクであり、データの追記だ
けでなくデータの削除および変更も可能である。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a system configuration of a storage device according to the present invention. In the present invention, a library device is used as a back storage. The medium in the library device is a magneto-optical disk, which can not only add data but also delete and change data.

【0013】CPU1は、装置全体の動作を制御するも
のであり、ハードディスク3に記録されたプログラムを
メインメモリ2上に読み出し、その内容にしたがって制
御を行なう。メインメモリ2は、プログラムとデータを
記憶するものである。データを記録する領域は一部は管
理情報を記録するために、残りは高速なキャッシュ領域
として使用される。ハードディスク3は、制御プログラ
ムとシステムの処理開始時の管理テーブルの内容とを記
憶し、残りはライブラリ装置に記録されたデータのキャ
ッシュとして使用される。
The CPU 1 controls the operation of the entire apparatus, reads out a program recorded on the hard disk 3 onto the main memory 2 and performs control according to the contents. The main memory 2 stores programs and data. A part of an area for recording data is used for recording management information, and the rest is used as a high-speed cache area. The hard disk 3 stores the control program and the contents of the management table at the start of the processing of the system, and the rest is used as a cache for data recorded in the library device.

【0014】入出力制御部4は、データバスやLANな
どに接続され、外部装置から送信されてくるアクセス要
求を受信し処理結果やデータを送信するものである。ラ
イブラリ装置6は、ライブラリ装置制御部5によって駆
動制御され、複数の光磁気ディスクドライブ装置7、複
数の格納スロット8および光磁気ディスクドライブ装置
7と格納スロット8と間で光磁気ディスクを搬送するア
クセッサ9から構成される。この格納スロット8は、光
磁気ディスクを格納するためのものである。ライブラリ
装置内の各光磁気ディスクには、順に1〜10などの番
号が振られており、ライブラリ装置内の記憶領域には、
光磁気ディスク番号と光磁気ディスク上でのブロックア
ドレスによって、システム内で一意のアドレスが割り当
てられる。そして、これらの各部はシステムバスによっ
て接続されている。
The input / output control unit 4 is connected to a data bus or a LAN, receives an access request transmitted from an external device, and transmits a processing result and data. The library device 6 is driven and controlled by the library device control unit 5, and has a plurality of magneto-optical disk drive devices 7, a plurality of storage slots 8, and an accessor for transporting the magneto-optical disk between the magneto-optical disk drive device 7 and the storage slots 8. 9 is comprised. The storage slot 8 is for storing a magneto-optical disk. Numbers such as 1 to 10 are sequentially assigned to each magneto-optical disk in the library device, and a storage area in the library device includes:
A unique address in the system is assigned by the magneto-optical disk number and the block address on the magneto-optical disk. These components are connected by a system bus.

【0015】図2はこのようなシステム構成をもつ記憶
装置のブロック構成を示したものである。上位キャッシ
ュ装置11は、容量は少ないが高速なストレージ装置で
あり、データがアクセスされると、まず上位キャッシュ
を検索し、次に下位のキャッシュを検索する。上位キャ
ッシュ装置11の内部はLRUリストなどで管理されて
おり、キャッシュあふれが発生した場合に、キャッシュ
アウト処理を行なう。通常のキャッシュ装置は、キャッ
シュアウトされるデータがキャッシュ上で上書きされ、
ダーティ属性を持っている場合のみ下位の記憶装置にデ
ータを反映し、ダーティ属性のないデータは単に削除す
るだけであるが、この発明における上位キャッシュ装置
11は、データが上書きされていない場合でもキャッシ
ュアウトされたデータを下位のキャッシュ装置に反映す
る。
FIG. 2 shows a block configuration of a storage device having such a system configuration. The high-order cache device 11 is a high-speed storage device with a small capacity, and when data is accessed, first searches the high-order cache, and then searches the lower-order cache. The inside of the upper cache device 11 is managed by an LRU list or the like, and performs a cache-out process when a cache overflow occurs. In a normal cache device, the data to be cached out is overwritten on the cache,
The data is reflected in the lower storage device only when the data has the dirty attribute, and the data without the dirty attribute is simply deleted. The outdated data is reflected in the lower cache device.

【0016】キャッシュ登録処理部12は、上位キャッ
シュ装置11からキャッシュアウトされたデータを下位
キャッシュデータ領域14に登録するためのものであ
る。このキャッシュ登録処理部12は、下位キャッシュ
データ領域14に上位キャッシュ装置11からキャッシ
ュアウトされるデータと同じデータが保存されていると
きに、そのデータを削除し、下位キャッシュデータ領域
14に空領域を確保して再度登録する。
The cache registration processor 12 registers data cached out of the upper cache device 11 in the lower cache data area 14. When the same data as the data to be cached out of the upper cache device 11 is stored in the lower cache data area 14, the cache registration processing unit 12 deletes the data and leaves an empty area in the lower cache data area 14. Secure and register again.

【0017】キャッシュ読み出し処理部13は、上位キ
ャッシュ装置11に存在しないデータがあった場合に、
まず、下位キャッシュデータ領域14を検索し、データ
が見つかると上位キャッシュ装置11にデータを転送す
るものである。なお、下位キャッシュデータ領域14に
データがない場合には、バックストレージ16から直接
上位キャッシュ装置11にデータが転送される。
When there is data that does not exist in the upper cache device 11, the cache read processing unit 13
First, the lower cache data area 14 is searched, and when data is found, the data is transferred to the upper cache device 11. If there is no data in the lower cache data area 14, the data is directly transferred from the back storage 16 to the upper cache device 11.

【0018】キャッシュデータ領域14は、リング状に
管理された下位キャッシュ領域であり、記録領域には回
転方向に順にインデックス番号が振られている。そし
て、いずれか特定の記憶領域を示す、キャッシュアウト
検索ポインタと空領域検索ポインタとを持っている。
The cache data area 14 is a lower-level cache area managed in a ring shape, and index numbers are sequentially assigned to the recording areas in the rotation direction. Then, it has a cache-out search pointer and an empty area search pointer indicating any specific storage area.

【0019】キャッシュアウト処理部15は、下位キャ
ッシュデータ領域14に空領域を作成するキャッシュア
ウト処理を行なうものである。キャッシュアウト処理部
15はは、まず、下位キャッシュデータ領域14の中か
ら長時間アクセスされなかった(LRU)データを検索
し、必要であればバックストレージ16にデータを反映
した上で下位キャッシュデータ領域14からデータを削
除する。
The cash-out processing section 15 performs a cache-out process for creating an empty area in the lower cache data area 14. The cache-out processing unit 15 first searches the lower cache data area 14 for data that has not been accessed for a long time (LRU), reflects the data in the back storage 16 if necessary, and then reads the lower cache data area. 14 to delete the data.

【0020】バックストレージ16は、上位キャッシュ
装置11、下位キャッシュデータ領域14と比較して、
大きな容量を持ちかつ比較的低速な記憶装置である。装
置内のデータは、全てこのバックストレージ16で一意
のアドレスを持っている。
The back storage 16 compares the upper cache device 11 and the lower cache data area 14 with each other.
It is a storage device having a large capacity and a relatively low speed. All data in the device has a unique address in the back storage 16.

【0021】図3は下位キャッシュデータ領域14を管
理するための管理テーブルの内容を示したものである。
図3中、キャッシュインデックスは、下位キャッシュデ
ータ領域14のインデックス番号である。使用/未使用
フラグは、インデックスで示される下位キャッシュデー
タ領域14にデータが格納されているかどうかを示して
おり、ダーティフラグは、キャッシュ上でデータが更新
されているかどうかを示す。
FIG. 3 shows the contents of a management table for managing the lower cache data area 14.
In FIG. 3, the cache index is an index number of the lower cache data area 14. The used / unused flag indicates whether data is stored in the lower cache data area 14 indicated by the index, and the dirty flag indicates whether data has been updated in the cache.

【0022】データアドレスは、キャッシュ上のデータ
のバックストレージ16上でのアドレスを示す。周回遅
れカウンタは、キャッシュ内のデータの属性である。デ
ータがキャッシュに登録された際には周回遅れカウンタ
の値は0であり、この値が大きい程、キャッシュ内でア
クセスされなかった時間の長いデータである事を示す。
カウンタの値の変更手順を図4乃至図7を参照して説明
する。
The data address indicates the address of the data on the cache on the back storage 16. The round delay counter is an attribute of data in the cache. When the data is registered in the cache, the value of the circulation delay counter is 0, and the larger the value, the longer the data has not been accessed in the cache.
The procedure for changing the value of the counter will be described with reference to FIGS.

【0023】図4は、図3で示した状態のキャッシュ管
理テーブルを元に、下位キャッシュデータ領域14に操
作を加えた場合の管理テーブル内容の変化を示したもの
である。
FIG. 4 shows changes in the contents of the management table when an operation is performed on the lower cache data area 14 based on the cache management table in the state shown in FIG.

【0024】図3のキャッシュ状態で、上位キャッシュ
装置11からキャッシュアウトが発生した場合、まず、
上位キャッシュ装置11からキャッシュアウトされるデ
ータが下位キャッシュデータ領域14に存在するかどう
かが検索され、もし見付かった場合には、下位キャッシ
ュデータ領域14から削除しておく。
In the cache state shown in FIG. 3, when a cache out occurs from the upper cache device 11, first,
It is searched whether data cached out from the upper cache device 11 exists in the lower cache data area 14, and if found, is deleted from the lower cache data area 14.

【0025】次に、データを記録するための空領域の検
索を行なう。空領域の検索は、空き検索ポインタで示さ
れたインデックスのデータから順にインデックスの大き
いものを検索する。図4は、インデックスの増加する方
向(リングの回転方向)に検索して最初に見つかった空
き領域(インデックス6)にデータを記録した状態であ
る。新しく記録されたデータの周回遅れカウンタの値は
0である。空き検索ポインタは、使用したインデックス
の次のインデックスを指している。
Next, a search for an empty area for recording data is performed. In the search of the empty area, the data having the larger index is searched in order from the data of the index indicated by the empty search pointer. FIG. 4 shows a state in which data is recorded in a free area (index 6) found first by searching in a direction in which the index increases (ring rotation direction). The value of the circulation delay counter of newly recorded data is 0. The empty search pointer points to the next index after the used index.

【0026】さらに図5では、図4の状態でさらに上位
キャッシュ装置11からキャッシュアウトが発生した後
の状態である。インデックス6から空き領域を検索する
と、最大のインデックス番号まで空き領域が見つからな
いため、検索ポインタをインデックス1に設定して再度
検索を始める。空き検索ポインタを1に設定する際にキ
ャッシュ上に残っていたデータは、空き検索ポインタに
通過された回数として、各データの周回遅れカウンタの
値を1ずつ増加する。同時に最大周回遅れ数も1増加し
ておく。インデックス1から空き領域の検索を進める
と、インデックス2の領域が空き領域であるため、そこ
にデータを記録する。
FIG. 5 shows a state after a further cache-out from the upper cache device 11 in the state of FIG. When an empty area is searched from the index 6, no empty area is found up to the maximum index number. Therefore, the search pointer is set to the index 1 and the search is started again. The data remaining in the cache when the empty search pointer is set to 1 increases the value of the round delay counter of each data by one as the number of times that the empty search pointer has passed. At the same time, the maximum number of circuit delays is also increased by one. When the search for an empty area is advanced from the index 1, data is recorded in the area of the index 2 because the area is an empty area.

【0027】図6は、図5の状態のキャッシュデータ領
域14からデータをバックストレージ16にキャッシュ
アウトした後の状態である。キャッシュアウトされるデ
ータは、キャッシュデータ領域14内部で最もアクセス
された時間の古いものを選択する。空き領域の確保方法
と照らし合わせると、キャッシュ内のデータは周回遅れ
カウンタの値の大きいほど古いものであり、同じカウン
タ値をもつデータ同士ではキャッシュインデックスの小
さいものほど古いものであることが分かる。
FIG. 6 shows a state after data is cached out from the cache data area 14 in the state of FIG. As the data to be cached out, the one with the oldest access time in the cache data area 14 is selected. In comparison with the method of securing a free area, it can be understood that the data in the cache is older as the value of the circulation delay counter is larger, and that the data with the same counter value is older as the cache index is smaller.

【0028】キャッシュアウトするデータを検索するに
は、まず、データ検索ポインタで示されるキャッシュイ
ンデックスからインデックスの増加する方向(リングの
回転方向)に、その時点で最も大きな周回遅れカウンタ
値を持つデータを検索する処理を行なう。インデックス
1から、最大周回遅れカウンタ値3を持つデータを検索
すると、インデックス5のデータが最初に見つかるた
め、インデックス5のデータのキャッシュアウトを行な
う。
To search for data to be cached out, first, the data having the largest round delay counter value at that time is read from the cache index indicated by the data search pointer in the direction in which the index increases (the direction of rotation of the ring). Perform search processing. When the data having the maximum round delay counter value 3 is searched from the index 1, the data of the index 5 is found first, so that the data of the index 5 is cached out.

【0029】インデックス5のデータのダーティフラグ
はOFFになっているため、データはバックストレージ
16に記録されたデータと同じ内容を持っており、デー
タをバックストレージ16に反映する必要がないので、
単にインデックス5の使用/未使用フラグを「空き」に
変えるだけでよい。この時点で、データ検索ポインタ
は、次に検索を始めるポイントであるインデックス6を
指している。
Since the dirty flag of the data of the index 5 is OFF, the data has the same contents as the data recorded in the back storage 16, and there is no need to reflect the data in the back storage 16.
It is sufficient to simply change the used / unused flag of the index 5 to “empty”. At this point, the data search pointer points to index 6, which is the point where the next search starts.

【0030】図7は、図6の状態からさらにキャッシュ
アウト処理を行なった後の状態を示している。インデッ
クス6から最大周回遅れ数3を持つデータを検索する
と、最大のインデックスまで検索しても見つからないた
め、インデックスを1に戻し、さらにインデックスの増
加方向に検索を進める。最大のインデックスまで検索す
ると同じ最大周回遅れ数を持つデータが全てキャッシュ
アウトされるので、データ検索ポインタがインデックス
1に戻った時点で、最大周回遅れ数を1減少する。
FIG. 7 shows a state after further performing a cashout process from the state of FIG. When the data having the maximum number of round delays of 3 is searched from the index 6, the data is not found even if the search is performed up to the maximum index. Therefore, the index is returned to 1, and the search is further advanced in the index increasing direction. When the search is performed up to the maximum index, all data having the same maximum number of round delays is cached out. When the data search pointer returns to the index 1, the maximum number of round delays is reduced by one.

【0031】インデックス1から周回遅れ数2のデータ
の検索を進めると、インデックス3のデータが見つかる
ので、それをキャッシュアウトし(この場合もダーティ
フラグがOFFであるのでバックストレージ16への反
映は行わない)、空き領域とする。
When the search for the data of the number of rotation delays 2 is advanced from the index 1, the data of the index 3 is found. Therefore, the data is cached out. No) and a free area.

【0032】上位キャッシュ装置11からのキャッシュ
アウト発生時に、同じアドレスを持つデータを下位キャ
ッシュデータ領域14から削除することで、上位キャッ
シュ装置11からキャッシュアウトされたデータがダー
ティ属性を持っていない場合であっても、必ず下位キャ
ッシュデータ領域14の新しい空き領域に反映されるこ
とになり、下位キャッシュデータ領域14内部でのLR
Uの順番が適切に保存される。
When a cache out from the upper cache device 11 occurs, data having the same address is deleted from the lower cache data area 14 so that the data cached out from the upper cache device 11 does not have the dirty attribute. Even if there is, the LR in the lower cache data area 14 is always reflected in the new free area of the lower cache data area 14.
The order of U is preserved appropriately.

【0033】次に、本装置の処理内容を実施形態別に詳
細に説明する。 (第1実施形態)図8はこの発明の第1実施形態のメイ
ンフローを示す図である。
Next, the processing contents of the present apparatus will be described in detail for each embodiment. (First Embodiment) FIG. 8 is a diagram showing a main flow of a first embodiment of the present invention.

【0034】処理が開始されると、まず、ハードディス
クに記録された管理データをメモリ上に読み出す初期化
処理を行なう(ステップA1)。このシステムが初期化
されると、要求の受付を行ない(ステップA2)、要求
がデータへのアクセスであった場合(ステップA3の
Y)、データのリード/ライト処理を行ない、要求が終
了要求であった場合には(ステップA11のY)、管理
データをハードディスクへ保存する終了処理を行なう。
When the process is started, first, an initialization process for reading out management data recorded on a hard disk into a memory is performed (step A1). When the system is initialized, a request is accepted (step A2). If the request is access to data (Y in step A3), data read / write processing is performed, and the request is a termination request. If there is (Y in step A11), an end process of saving the management data to the hard disk is performed.

【0035】データへのアクセスが要求されると、ま
ず、要求されたデータがメモリキャッシュに存在するか
どうかを調べ(ステップA4)、データがある場合には
(ステップA4のY)、要求の処理を行なう。一方、デ
ータがメモリに存在しない場合には(ステップA4の
N)、メモリキャッシュ上にデータ登録用の領域を確保
する。なお、空き領域がない場合には(ステップA5の
N)、図9に示すメモリキャッシュのキャッシュアウト
処理を行なう。
When an access to data is requested, it is first checked whether or not the requested data exists in the memory cache (step A4). If there is data (Y in step A4), the request is processed. Perform On the other hand, if the data does not exist in the memory (N in step A4), an area for data registration is secured in the memory cache. If there is no free area (N in step A5), a cache-out process of the memory cache shown in FIG. 9 is performed.

【0036】データがハードディスクキャッシュに存在
する場合(ステップA7のY)、データを確保されたメ
モリ上の領域に読み出し(ステップA8)、要求の処理
を行なう。一方、データがメモリキャッシュにもハード
ディスクキャッシュにも存在しない場合には(ステップ
A7のN)、ライブラリ装置の光磁気ディスクからデー
タをメモリ上の領域に読み出し(ステップA9)、要求
の処理を行なう。
If the data exists in the hard disk cache (Y in step A7), the data is read out to the secured area on the memory (step A8), and the request is processed. On the other hand, if the data does not exist in the memory cache or the hard disk cache (N in step A7), the data is read from the magneto-optical disk of the library device to an area on the memory (step A9), and the request is processed.

【0037】図9は、メモリ上のデータをキャッシュア
ウトする処理のフローである。まず、メモリキャッシュ
の管理方式にしたがって、キャッシュアウトするデータ
を決定する(ステップB1)。ハードディスクキャッシ
ュを検索し(ステップB2)、キャッシュアウトされる
データがハードディスクキャッシュに存在する場合(ス
テップB2のY)、ハードディスクキャッシュから当該
データを削除する(ステップB3)。
FIG. 9 is a flow chart of a process for caching out data on a memory. First, data to be cached out is determined according to the memory cache management method (step B1). The hard disk cache is searched (step B2), and if data to be cached exists in the hard disk cache (Y in step B2), the data is deleted from the hard disk cache (step B3).

【0038】次に、図10に示す手順によってハードデ
ィスクキャッシュに空き領域を確保し、メモリからキャ
ッシュアウトされたデータをハードディスクに記録する
(ステップB4)。ここで、ハードディスクキャッシュ
の空き領域が最小規定値(ここでは全ハードディスクキ
ャッシュ容量の20%)を下回った場合に(ステップB
5のY)、最大規定値(ここでは40%)まで空き領域
を増やすためのハードディスクキャッシュアウト処理
(図11を参照して後述する)を行なう。
Next, a free area is secured in the hard disk cache by the procedure shown in FIG. 10, and the data cached out of the memory is recorded on the hard disk (step B4). Here, when the free space of the hard disk cache falls below the minimum specified value (here, 20% of the total hard disk cache capacity) (step B).
5), a hard disk cache-out process (to be described later with reference to FIG. 11) for increasing the free space up to the maximum specified value (40% in this case) is performed.

【0039】図10は、ハードディスクキャッシュ内に
空き領域を確保する処理のフローである。Get_fr
ee_pointer(空き検索ポインタ)からキャッ
シュ領域の最大のインデックスまで空き領域を検索する
(ステップC1〜ステップC4)。空き領域が見つかっ
た場合には(ステップC3のY)、空き検索ポインタを
見つかったインデックスの次のインデックスにセットし
(ステップC10)、空き領域を返す(ステップC1
1)。
FIG. 10 is a flowchart of a process for securing a free area in the hard disk cache. Get_fr
An empty area is searched from ee_pointer (empty search pointer) to the maximum index of the cache area (steps C1 to C4). If a free area is found (Y in step C3), the free search pointer is set to the index next to the found index (step C10), and the free area is returned (step C1).
1).

【0040】一方、最大のインデックス番号まで空き領
域が見つからなかった場合(ステップC2のY)、ハー
ドディスクキャッシュ上の全ての使用中のデータの周回
遅れカウントを1ずつ増加し、最大周回遅れ数を1増加
する(ステップC5)。
On the other hand, if no free area is found up to the maximum index number (Y in step C2), the rounding delay count of all in-use data on the hard disk cache is increased by one, and the maximum rounding delay is set to one. Increase (step C5).

【0041】そして、続いてインデックス0から空き検
索ポインタまでの間の空き領域を検索する(ステップC
6〜ステップC9)。空き領域が見つかった場合には
(ステップC8のY)、空き検索ポインタを見つかった
インデックスの次のインデックスにセットし(ステップ
C10)、空き領域を返す(ステップC11)。
Then, a free area between the index 0 and the free search pointer is searched (step C).
6 to Step C9). If a free area is found (Y in step C8), the free search pointer is set to the index next to the found index (step C10), and the free area is returned (step C11).

【0042】一方、キャッシュ領域全体を検索しても空
き領域が見つからない場合(ステップC7のY)、キャ
ッシュ上に空き領域を作成するためのハードディスクキ
ャッシュアウト処理を行なう(ステップC12)。
On the other hand, if a free area is not found even after searching the entire cache area (Y in step C7), a hard disk cache out process for creating a free area in the cache is performed (step C12).

【0043】図11は、ハードディスクキャッシュのデ
ータをキャッシュアウトする処理のフローである。ま
ず、Get_used_pointer(データ検索ポ
インタ)からキャッシュ領域の最大のインデックスま
で、周回遅れ属性として最大周回遅れ数を持つ使用中の
領域を検索する(ステップD1〜ステップD4)。領域
が見つかった場合には(ステップD3のY)、データ検
索ポインタを見つかったインデックスの次のインデック
スにセットし(ステップD11)、そのデータを削除
(見つかったデータがダーティ属性を持っていれば、ラ
イブラリ装置にデータを反映した後)して空き領域とす
る(ステップD12)。
FIG. 11 is a flow chart of a process for caching out data in the hard disk cache. First, from the Get_used_pointer (data search pointer) to the maximum index of the cache area, an in-use area having the maximum number of round delays as the round delay attribute is searched (Step D1 to Step D4). If an area is found (Y in step D3), the data search pointer is set to the index next to the found index (step D11), and the data is deleted (if the found data has a dirty attribute, (After data is reflected in the library device) to make a free area (step D12).

【0044】一方、最大のインデックスまでの検索でデ
ータが見つからなかった場合(ステップD2のY)、最
大周回遅れ数を1減少する(ステップD5)。最大周回
遅れ数が0より小さかった場合(ステップD6のY)、
使用中のデータ領域がないので処理を終了する。
On the other hand, if no data is found in the search up to the maximum index (Y in step D2), the maximum number of round trip delays is reduced by 1 (step D5). If the maximum number of round trip delays is smaller than 0 (Y in step D6),
Since there is no data area in use, the process ends.

【0045】次に、インデックス0からデータ検索ポイ
ンタまで、周回遅れ属性として最大周回遅れ数を持つ使
用中の領域を検索する(ステップD7〜ステップD1
0)。領域が見つかった場合には(ステップD9の
Y)、データ検索ポインタを見つかったインデックスの
次のインデックスにセットし(ステップD11)、その
データを削除(見つかったデータがダーティ属性を持っ
ていれば、ライブラリ装置にデータを反映した後)して
空き領域とする(ステップD12)。
Next, a search is made from the index 0 to the data search pointer for a used area having the maximum number of round delays as the round delay attribute (step D7 to step D1).
0). If an area is found (Y in step D9), the data search pointer is set to the index next to the found index (step D11), and the data is deleted (if the found data has a dirty attribute, (After data is reflected in the library device) to make a free area (step D12).

【0046】このような手順で処理することにより、イ
ンデックス番号および周回遅れカウンタのみといったよ
うに、LRU管理を行なうためのデータ量を大幅に縮小
することが可能となる。
By processing according to such a procedure, it is possible to greatly reduce the amount of data for performing LRU management, such as only the index number and the circulation delay counter.

【0047】(第2実施形態)図12は、第2実施形態
に係る、周回遅れ属性として、カウンタではなく1ビッ
トの周回遅れマークを用いた場合のキャッシュ管理テー
ブルの構成を示したものである。
(Second Embodiment) FIG. 12 shows a configuration of a cache management table according to a second embodiment when a 1-bit round delay mark is used instead of a counter as a round delay attribute. .

【0048】以下、周回遅れマークを用いた場合のキャ
ッシュ管理手順を説明する。図13は、周回遅れマーク
を用いた場合の空き領域の検索処理フローである。ま
ず、Get_free_pointer(空き検索ポイ
ンタ)からキャッシュ領域の最大のインデックスまで空
き領域を検索する(ステップE1〜ステップE4)。空
き領域が見つかった場合には(ステップE3のY)、空
き検索ポインタを見つかったインデックスの次のインデ
ックスにセットし(ステップE11)、空き領域を返す
(ステップE12)。
Hereinafter, a cache management procedure using the round delay mark will be described. FIG. 13 is a flowchart of a process of searching for a free area in the case where the circuit delay mark is used. First, an empty area is searched from Get_free_pointer (empty search pointer) to the maximum index of the cache area (steps E1 to E4). If a free area is found (Y in step E3), the free search pointer is set to the index next to the found index (step E11), and the free area is returned (step E12).

【0049】一方、最大のインデックス番号まで空き領
域が見つからなかった場合(ステップE2のY)、ハー
ドディスクキャッシュ上の全ての使用中のデータの周回
遅れマークを1とする(ステップE5)。
On the other hand, if no empty area is found up to the maximum index number (Y in step E2), the round delay mark of all the data in use on the hard disk cache is set to 1 (step E5).

【0050】次に、インデックス0から空き検索ポイン
タまでの間の空き領域を検索する(ステップE6〜ステ
ップE9)。空き領域が見つかった場合には(ステップ
E8のY)、空き検索ポインタを見つかったインデック
スの次のインデックスにセットし(ステップE11)、
空き領域を返す(ステップE12)。
Next, an empty area between the index 0 and the empty search pointer is searched (steps E6 to E9). If a free area is found (Y in step E8), the free search pointer is set to the index next to the found index (step E11).
The free area is returned (step E12).

【0051】キャッシュ領域全体を検索しても空き領域
が見つからない場合(ステップE7のY)、キャッシュ
上に空き領域を作成するためのハードディスクキャッシ
ュアウト処理を行なう(ステップE10)。
If no free area is found even after searching the entire cache area (Y in step E7), a hard disk cache out process for creating a free area in the cache is performed (step E10).

【0052】図14は、周回遅れマークを用いた場合の
ハードディスクキャッシュのキャッシュアウト処理フロ
ーである。まず、Get_used_pointer
(データ検索ポインタ)からキャッシュ領域の最大のイ
ンデックスまで、周回遅れマークの付いた使用中の領域
を検索する(ステップF1〜ステップF5)。領域が見
つかった場合には(ステップF4のY)、データ検索ポ
インタを見つかったインデックスの次のインデックスに
セットし(ステップF10)、そのデータを削除(見つ
かったデータがダーティ属性を持っていれば、ライブラ
リ装置にデータを反映した後)して空き領域とする(ス
テップF11)。
FIG. 14 is a flowchart of a cash-out processing of the hard disk cache when the round delay mark is used. First, Get_used_pointer
From the (data search pointer) to the maximum index of the cache area, a search is made for a used area with a loop delay mark (steps F1 to F5). If an area is found (Y in step F4), the data search pointer is set to the index next to the found index (step F10), and the data is deleted (if the found data has a dirty attribute, (After reflecting the data in the library device) to make it a free area (step F11).

【0053】次に、インデックス0からデータ検索ポイ
ンタまで、周回遅れマークの付いた使用中の領域を検索
する(ステップF6〜ステップF9)。領域が見つかっ
た場合には(ステップF8のY)、データ検索ポインタ
を見つかったインデックスの次のインデックスにセット
し(ステップF10)、そのデータを削除(見つかった
データがダーティ属性を持っていれば、ライブラリ装置
にデータを反映した後)して空き領域とする(ステップ
F11)。
Next, a search is made from the index 0 to the data search pointer for an in-use area with a loop delay mark (steps F6 to F9). If an area is found (Y in step F8), the data search pointer is set to the index next to the found index (step F10), and the data is deleted (if the found data has the dirty attribute, (After reflecting the data in the library device) to make it a free area (step F11).

【0054】一方、周回遅れマークの付いた使用中の領
域が見つからない場合(ステップF7のY)、周回遅れ
マークのつかないデータをデータ検索ポインタから開始
して(ステップF12,ステップF2〜ステップF
5)、リングキャッシュの回転方向に検索する。
On the other hand, if the in-use area with the circuit delay mark cannot be found (Y in step F7), the data without the circuit delay mark is started from the data search pointer (step F12, step F2 to step F2).
5) Search in the rotation direction of the ring cache.

【0055】周回遅れマークを用いた場合、データの周
回遅れ属性は、空き検索ポインタに対して、周回遅れを
しているか、していないかの2種類に分けられる。この
場合に、周回遅れをしていない新しいデータは、正確に
LRUの順に並べられ、LRUがあまり意味をなさなく
なる古いデータについては、不正確な順序を保持する事
になる。したがって、カウンタ値を1ビットで表現する
ことにより、さらに管理データ量を削減する効果があ
る。
When the loop delay mark is used, the loop delay attribute of the data is classified into two types, that is, whether the round search pointer is delayed or not with respect to the empty search pointer. In this case, the new data that has not been delayed is arranged in the order of the LRU, and the old data for which the LRU does not make much sense retains the incorrect order. Therefore, expressing the counter value with one bit has the effect of further reducing the amount of management data.

【0056】(第3実施形態)図15は、第3実施形態
に係る、メモリキャッシュからデータのキャッシュアウ
トを行なうときに、ハードディスクキャッシュにデータ
が存在した場合の処理手順を説明するフローである。
(Third Embodiment) FIG. 15 is a flowchart illustrating a processing procedure when data is present in a hard disk cache when data is cached out of a memory cache according to a third embodiment.

【0057】まず、メモリキャッシュの管理方式にした
がって、キャッシュアウトするデータを決定する(ステ
ップG1)。ハードディスクキャッシュを検索し(ステ
ップG2)、キャッシュアウトされるデータがハードデ
ィスクキャッシュに存在する場合(ステップG2の
Y)、ハードディスクキャッシュの当該データの周回遅
れ値を減少する(ステップG3)。減少の方法には、た
とえば以下のようなものがある。
First, data to be cached out is determined according to the memory cache management method (step G1). The hard disk cache is searched (step G2). If the data to be cached exists in the hard disk cache (Y in step G2), the round delay value of the data in the hard disk cache is reduced (step G3). Examples of the reduction method include the following.

【0058】(1)周回遅れカウンタを1減少する。周
回遅れカウンタがすでに0である場合はカウンタ値を0
のままとする。 (2)周回遅れカウンタをクリアする。
(1) Decrement the circulation delay counter by one. If the circulation delay counter is already 0, set the counter value to 0
Leave as is. (2) Clear the orbit delay counter.

【0059】(3)周回遅れマークをクリアする。 メモリキャッシュ上のデータがダーティ属性を持ってい
た場合、ハードディスクキャッシュの当該データの記録
された領域にメモリ上のデータを反映し、メモリ上のキ
ャッシュ領域を解放する(ステップG4)。
(3) Clear the circuit delay mark. If the data on the memory cache has the dirty attribute, the data on the memory is reflected in the area of the hard disk cache where the data is recorded, and the cache area on the memory is released (step G4).

【0060】一方、キャッシュアウトされるデータがハ
ードディスクキャッシュに存在しなかった場合(ステッ
プG2のN)、ハードディスクキャッシュの空き領域を
確保し、メモリからキャッシュアウトされたデータをハ
ードディスクに記録する(ステップG5)。ここで、ハ
ードディスクキャッシュの空き領域が最小規定値(ここ
では全ハードディスクキャッシュ容量の20%)を下回
った場合には(ステップG6のY)、最大規定値(ここ
では40%)まで空き領域を増やすためのハードディス
クキャッシュアウト処理を行なう(ステップG7)。
On the other hand, if the data to be cached out does not exist in the hard disk cache (N in step G2), a free area of the hard disk cache is secured, and the data cached out of the memory is recorded on the hard disk (step G5). ). Here, when the free space of the hard disk cache falls below the minimum specified value (here, 20% of the total hard disk cache capacity) (Y in step G6), the free space is increased to the maximum specified value (here, 40%). Hard disk cache-out processing is performed (step G7).

【0061】このようにすることによって、メモリから
キャッシュアウトされたデータにダーティ属性がない場
合に、ハードディスクキャッシュへのデータ反映の負荷
を抑えることが出来る。また、メモリからキャッシュア
ウトされたばかりのデータはハードディスクキャッシュ
で低い周回遅れ値を持つこととなり、ハードディスクキ
ャッシュからキャッシュアウトされる可能性を低くする
ことが出来る。
In this manner, when data cached out of the memory does not have a dirty attribute, the load of data reflection on the hard disk cache can be suppressed. In addition, data that has just been cached out of the memory has a low circulation delay value in the hard disk cache, and the possibility of being cached out of the hard disk cache can be reduced.

【0062】(第4実施形態)図16は、第4実施形態
に係る、メモリキャッシュからデータのキャッシュアウ
トを行なう場合に、ハードディスクキャッシュにデータ
が存在した場合の処理手順を説明するフローである。
(Fourth Embodiment) FIG. 16 is a flowchart for explaining a processing procedure when data is present in a hard disk cache when data is cached out of a memory cache according to a fourth embodiment.

【0063】まず、メモリキャッシュの管理方式にした
がって、キャッシュアウトするデータを決定する(ステ
ップH1)。ハードディスクキャッシュを検索し(ステ
ップH2)、キャッシュアウトされるデータがハードデ
ィスクキャッシュに存在する場合(ステップH2の
Y)、ハードディスクキャッシュ上での当該データの周
回遅れ属性を調べ(ステップH3)、周回遅れ属性がす
でにクリア(周回遅れカウンタが0、または、周回遅れ
マークが無い)されている場合には(ステップH3の
Y)、当該データをハードディスクキャッシュから削除
する(ステップH4)。
First, data to be cached out is determined according to the memory cache management method (step H1). The hard disk cache is searched (step H2), and if the data to be cached out exists in the hard disk cache (Y in step H2), the round delay attribute of the data on the hard disk cache is checked (step H3), and the round delay attribute is checked. Is already cleared (the circulation delay counter is 0 or there is no circulation delay mark) (Y in step H3), the data is deleted from the hard disk cache (step H4).

【0064】一方、周回遅れ属性が減少可能である場合
(ステップH3のN)、ハードディスクキャッシュの当
該データの周回遅れ値を減少する(ステップH5)。減
少の方法には、たとえば以下のようなものがある。
On the other hand, when the circulation delay attribute can be reduced (N in step H3), the circulation delay value of the data in the hard disk cache is reduced (step H5). Examples of the reduction method include the following.

【0065】(1)周回遅れカウンタを1減少する。 (2)周回遅れカウンタをクリアする。 (3)周回遅れマークをクリアする。(1) Decrement the circulation delay counter by one. (2) Clear the orbit delay counter. (3) Clear the lap delay mark.

【0066】そして、メモリキャッシュ上のデータがダ
ーティ属性を持っていた場合、ハードディスクキャッシ
ュの当該データの記録された領域にメモリ上のデータを
反映し、メモリ上のキャッシュ領域を解放する(ステッ
プH6)。
If the data in the memory cache has the dirty attribute, the data in the memory is reflected in the area of the hard disk cache where the data is recorded, and the cache area in the memory is released (step H6). .

【0067】一方、キャッシュアウトされるデータがハ
ードディスクキャッシュに存在しなかった場合(ステッ
プH2のN)、ハードディスクキャッシュの空き領域を
確保し、メモリからキャッシュアウトされたデータをハ
ードディスクに記録する(ステップH7)。ここで、ハ
ードディスクキャッシュの空き領域が最小規定値(ここ
では全ハードディスクキャッシュ容量の20%)を下回
った場合には(ステップH8のY)、最大規定値(ここ
では40%)まで空き領域を増やすためのハードディス
クキャッシュアウト処理を行なう(ステップH9)。
On the other hand, if the data to be cached out does not exist in the hard disk cache (N in step H2), a free space in the hard disk cache is secured, and the data cached out of the memory is recorded on the hard disk (step H7). ). Here, when the free space of the hard disk cache falls below the minimum specified value (here, 20% of the total hard disk cache capacity) (Y in step H8), the free space is increased to the maximum specified value (here, 40%). Hard disk cache-out processing is performed (step H9).

【0068】このようにすることによって、メモリから
キャッシュアウトされたデータにダーティ属性がない場
合に、ハードディスクキャッシュへのデータ反映の負荷
を抑えることが出来る。また、メモリからキャッシュア
ウトされたばかりのデータはハードディスクキャッシュ
で低い周回遅れ値を持つこととなり、ハードディスクキ
ャッシュからキャッシュアウトされる可能性を低くする
ことが出来る。さらに、頻繁にアクセスされる(メモリ
キャッシュからキャッシュアウトされるとまたすぐにア
クセスされる)ようなデータは、ハードディスクキャッ
シュのLRU最下位に位置するようになり、このような
データがキャッシュアウトされることを防ぐことが出来
る。
By doing so, when data cached out of the memory does not have a dirty attribute, the load of data reflection on the hard disk cache can be suppressed. In addition, data that has just been cached out of the memory has a low circulation delay value in the hard disk cache, and the possibility of being cached out of the hard disk cache can be reduced. Further, data that is frequently accessed (accessed as soon as it is cached out of the memory cache) is located at the lowest LRU of the hard disk cache, and such data is cached out. Can be prevented.

【0069】[0069]

【発明の効果】以上詳述したように、この発明によれ
ば、大容量キャッシュ装置の管理データ量を削減し(た
とえばキャッシュインデックスの双方向リストでLRU
を管理するにはインデックスを16ビット、キャッシュ
容量を1メガインデックスとして4MBもの管理領域が
必要であるが、この発明のようにインデックス番号と周
回遅れカウンタとによれば同じ容量のキャッシュを検索
するのに最低1/16の256KBの管理領域があれば
よい。)、管理データの容量を抑えることによって、キ
ャッシュデータの更新も高速に行なうことができる。
As described above in detail, according to the present invention, the management data amount of the large-capacity cache device can be reduced (for example, the LRU is stored in the cache index bidirectional list).
Requires a management area of 4 MB with an index of 16 bits and a cache capacity of 1 mega index. According to the present invention, a cache having the same capacity is searched according to an index number and a round delay counter. It is sufficient that there is at least a 1/16 256 KB management area. The cache data can be updated at a high speed by suppressing the capacity of the management data.

【0070】また、周回遅れカウンタに代えて、周回遅
れマークを適用すれば、周回遅れをしていない新しいデ
ータは、正確にLRUの順に並べられ、LRUがあまり
意味をなさなくなる古いデータについては、不正確な順
序を保持する事になり、カウンタ値を1ビットで表現す
ることによって、さらに管理データ量を削減させること
が可能となる。
Also, if a round delay mark is applied instead of the round delay counter, new data that does not have a round delay will be correctly arranged in the order of LRU, and old data for which the LRU does not make much sense will be used. Since the incorrect order is maintained, and the counter value is represented by one bit, the amount of management data can be further reduced.

【0071】また、メモリからキャッシュアウトされた
データがダーティ属性をもたない場合に、周回遅れ属性
のみを更新することによって、ハードディスクキャッシ
ュへのデータ反映の負荷を抑えることができ、かつ、メ
モリからキャッシュアウトされたばかりのデータはハー
ドディスクキャッシュで低い周回遅れ値をもつこととな
り、ハードディスクキャッシュからキャッシュアウトさ
れる可能性を低くすることが可能となる。
When the data cached out of the memory does not have the dirty attribute, by updating only the round delay attribute, the load of reflecting the data to the hard disk cache can be suppressed, and Data that has just been cached out will have a low circulating delay value in the hard disk cache, and the likelihood of being cached out of the hard disk cache can be reduced.

【0072】また、メモリからキャッシュアウトされた
データがダーティ属性をもたない場合であっても、頻繁
にアクセスされるデータについては書き換えを行なうこ
とによって、ハードディスクキャッシュへのデータ反映
の負荷を抑えることができる。すなわち、メモリからキ
ャッシュアウトされたばかりのデータはハードディスク
キャッシュで低い周回遅れ値をもつこととなり、ハード
ディスクキャッシュからキャッシュアウトされる可能性
を低くすることができるとともに、頻繁にアクセスされ
るデータをハードディスクキャッシュのLRU最下位に
位置させることができするようになり、このようなデー
タがキャッシュアウトされることを防ぐことが可能とな
る。
Even if data cached out of the memory does not have the dirty attribute, frequently accessed data is rewritten to reduce the load of data reflection on the hard disk cache. Can be. That is, data that has just been cached out of the memory has a low circulating delay value in the hard disk cache, so that the possibility of being cached out of the hard disk cache can be reduced, and frequently accessed data can be stored in the hard disk cache. The LRU can be positioned at the lowest position, and it is possible to prevent such data from being cached out.

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

【図1】この発明の記憶装置のシステム構成を示す図。FIG. 1 is a diagram showing a system configuration of a storage device of the present invention.

【図2】この発明の記憶装置のブロック構成を示す図。FIG. 2 is a diagram showing a block configuration of a storage device of the present invention.

【図3】この発明の下位キャッシュデータ領域を管理す
るための管理テーブルの内容を示す図。
FIG. 3 is a diagram showing contents of a management table for managing a lower cache data area according to the present invention;

【図4】図3で示した状態のキャッシュ管理テーブルを
元に下位キャッシュデータ領域に操作を加えた場合の管
理テーブル内容の変化を示す図。
FIG. 4 is a diagram showing a change in the contents of a management table when an operation is performed on a lower cache data area based on the cache management table in the state shown in FIG. 3;

【図5】図4の状態でさらに上位キャッシュ装置からキ
ャッシュアウトが発生した後の状態を示す図。
FIG. 5 is a diagram showing a state after a cache-out has occurred from a higher-level cache device in the state of FIG. 4;

【図6】図5の状態のキャッシュデータ領域からデータ
をバックストレージにキャッシュアウトした後の状態を
示す図。
FIG. 6 is a diagram showing a state after data is cached out from the cache data area to the back storage in the state of FIG. 5;

【図7】図6の状態からさらにキャッシュアウト処理を
行なった後の状態を示す図。
FIG. 7 is a diagram showing a state after further performing a cashout process from the state of FIG. 6;

【図8】この発明の第1実施形態のメインフローを示す
図。
FIG. 8 is a diagram showing a main flow of the first embodiment of the present invention.

【図9】同第1実施形態のメモリ上のデータをキャッシ
ュアウトする処理のフローを示す図。
FIG. 9 is a view showing a flow of a process of caching out data on a memory according to the first embodiment.

【図10】同第1実施形態のハードディスクキャッシュ
内に空き領域を確保する処理のフローを示す図。
FIG. 10 is a view showing a flow of processing for securing a free area in the hard disk cache according to the first embodiment.

【図11】同第1実施形態のハードディスクキャッシュ
のデータをキャッシュアウトする処理のフローを示す
図。
FIG. 11 is an exemplary flowchart showing the flow of a process of caching out data in the hard disk cache according to the first embodiment.

【図12】同第2実施形態に係る、周回遅れ属性とし
て、カウンタではなく1ビットの周回遅れマークを用い
た場合のキャッシュ管理テーブルの構成を示す図。
FIG. 12 is a diagram showing a configuration of a cache management table according to the second embodiment when a 1-bit round delay mark is used instead of a counter as a round delay attribute.

【図13】同第2実施形態の周回遅れマークを用いた場
合の空き領域の検索処理フローを示す図。
FIG. 13 is an exemplary view showing a flow of a process of searching for a free area in the case of using the orbit delay mark according to the second embodiment;

【図14】同第2実施形態の周回遅れマークを用いた場
合のハードディスクキャッシュのキャッシュアウト処理
フローを示す図。
FIG. 14 is an exemplary view showing a cash-out processing flow of the hard disk cache in the case where the round delay mark of the second embodiment is used.

【図15】同第3実施形態に係る、メモリキャッシュか
らデータのキャッシュアウトを行なうときに、ハードデ
ィスクキャッシュにデータが存在した場合の処理手順を
説明するフローを示す図。
FIG. 15 is a flowchart illustrating a processing procedure when data exists in the hard disk cache when data is cached out of the memory cache according to the third embodiment.

【図16】同第4実施形態に係る、メモリキャッシュか
らデータのキャッシュアウトを行なう場合に、ハードデ
ィスクキャッシュにデータが存在した場合の処理手順を
説明するフローを示す図。
FIG. 16 is a flowchart illustrating a processing procedure when data is present in the hard disk cache when data is cached out of the memory cache according to the fourth embodiment.

【符号の説明】 1…CPU、2…メインメモリ、3…ハードディスク、
4…入出力制御部、5…ライブラリ装置制御部、6…ラ
イブラリ装置、7…光磁気ディスクドライブ装置、8…
格納スロット、9…アクセッサ、11…上位キャッシュ
装置、12…キャッシュ登録処理部、13…キャッシュ
読出し処理部、14…キャッシュデータ領域、15…キ
ャッシュアウト処理部、16…バックストレージ。
[Description of Signs] 1 CPU, 2 main memory, 3 hard disk,
4 ... I / O control unit, 5 ... Library device control unit, 6 ... Library device, 7 ... Magneto-optical disk drive device, 8 ...
Storage slot, 9 accessor, 11 upper cache device, 12 cache registration processor, 13 cache read processor, 14 cache data area, 15 cache out processor, 16 back storage.

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 複数のエントリがリング状に管理される
キャッシュ装置において、 空きエントリを検索するための空き領域検索ポインタ
と、 データをキャッシュアウトさせるエントリを検索するた
めのステージアウトポインタと、 前記複数のエントリそれぞれに対応して設けられ、前記
空き領域検索ポインタに通過されたか否かを示す周回遅
れマークと、 キャッシュヒットしたデータを他のエントリに新たに書
き換えるエントリ管理手段とを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れマークによって前記エントリが保持するデータ
の新旧を表現することを特徴とするキャッシュ装置。
1. A cache device in which a plurality of entries are managed in a ring shape, wherein: a free area search pointer for searching for an empty entry; a stage-out pointer for searching for an entry for caching out data; A circling delay mark indicating whether or not the data has passed the empty area search pointer, and entry management means for newly rewriting cache hit data with another entry. A new or old data stored in the entry is represented by the index number of each entry and the circulation delay mark.
【請求項2】 複数のエントリがリング状に管理される
キャッシュ装置において、 空きエントリを検索するための空き領域検索ポインタ
と、 データをキャッシュアウトさせるエントリを検索するた
めのステージアウトポインタと、 前記複数のエントリそれぞれに対応して設けられ、前記
空き領域検索ポインタに通過されたか否かを示す周回遅
れマークと、 更新を伴なうキャッシュヒットが発生したときに、その
データを他のエントリに新たに書き換え、更新を伴なわ
ないキャッシュヒットが発生したときに、そのデータを
保持するエントリに対応する前記周回遅れマークをクリ
アするエントリ管理手段とを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れマークとによって前記エントリが保持するデー
タの新旧を表現することを特徴とするキャッシュ装置。
2. A cache device in which a plurality of entries are managed in a ring shape, wherein: a free area search pointer for searching for an empty entry; a stage out pointer for searching for an entry for caching out data; And a circling delay mark indicating whether or not the data is passed by the empty area search pointer, and when a cache hit involving updating occurs, the data is newly added to another entry. An entry management means for clearing the round delay mark corresponding to the entry holding the data when a cache hit that does not involve rewriting or updating occurs, the index number of each of the plurality of entries and the round The old and new data of the entry is indicated by the delay mark. Cache device which is characterized in that.
【請求項3】 複数のエントリがリング状に管理される
キャッシュ装置において、 空きエントリを検索するための空き領域検索ポインタ
と、 データをキャッシュアウトさせるエントリを検索するた
めのステージアウトポインタと、 前記複数のエントリそれぞれに対応して設けられ、前記
空き領域検索ポインタに通過された回数を保持する周回
遅れカウンタと、 キャッシュヒットしたデータを他のエントリに新たに書
き換えるエントリ管理手段とを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れカウンタの値とによって前記エントリが保持す
るデータの新旧を表現することを特徴とするキャッシュ
装置。
3. A cache device in which a plurality of entries are managed in a ring shape, wherein: a free area search pointer for searching for an empty entry; a stage out pointer for searching for an entry for caching out data; A circulation delay counter that is provided corresponding to each of the entries and holds the number of times that the free area search pointer has passed, and entry management means that newly rewrites the cache hit data to another entry. A new or old data stored in the entry is represented by an index number of each entry and the value of the circulation delay counter.
【請求項4】 複数のエントリがリング状に管理される
キャッシュ装置において、 空きエントリを検索するための空き領域検索ポインタ
と、 データをキャッシュアウトさせるエントリを検索するた
めのステージアウトポインタと、 前記複数のエントリそれぞれに対応して設けられ、前記
空き領域検索ポインタに通過された回数を保持する周回
遅れカウンタと、 更新を伴なうキャッシュヒットが発生したときに、その
データを他のエントリに新たに書き換え、更新を伴なわ
ないキャッシュヒットが発生したときに、そのデータを
保持するエントリに対応する前記周回遅れカウンタの値
を減少させるエントリ管理手段とを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れカウンタの値とによって前記エントリが保持す
るデータの新旧を表現することを特徴とするキャッシュ
装置。
4. A cache device in which a plurality of entries are managed in a ring shape, a free area search pointer for searching for a free entry, a stage out pointer for searching for an entry to cache data out, and A wraparound delay counter provided for each of the entries and holding the number of passes by the free space search pointer; and when a cache hit involving updating occurs, the data is newly stored in another entry. Rewriting, when a cache hit involving no update occurs, comprising an entry management means for decreasing the value of the circulation delay counter corresponding to the entry holding the data, the index number of each of the plurality of entries, The entry holds according to the value of the circulation delay counter Cache apparatus characterized by representing the old and new over data.
【請求項5】 複数のエントリがリング状に管理される
キャッシュ装置において、 空きエントリを検索するための空き領域検索ポインタ
と、 データをキャッシュアウトさせるエントリを検索するた
めのステージアウトポインタと、 前記複数のエントリそれぞれに対応して設けられ、前記
空き領域検索ポインタに通過された回数を保持する周回
遅れカウンタと、 更新を伴なうキャッシュヒットが発生したとき、および
更新を伴なわないキャッシュヒットが発生し、かつその
データを保持するエントリに対応する前記周回遅れカウ
ンタの値が最低値を示しているときに、そのデータを他
のエントリに新たに書き換え、更新を伴なわないキャッ
シュヒットが発生し、かつそのデータを保持するエント
リに対応する前記周回遅れカウンタの値が最低値以外の
値を示しているときに、その周回遅れカウンタの値を減
少させるエントリ管理手段とを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れカウンタの値とによって前記エントリが保持す
るデータの新旧を表現することを特徴とするキャッシュ
装置。
5. A cache device in which a plurality of entries are managed in a ring shape, a free area search pointer for searching for a free entry, a stage out pointer for searching for an entry to cache data, and Circulating delay counter provided for each of the entries, and holding the number of times that the free area search pointer has passed, when a cache hit involving an update occurs, and when a cache hit involving no update occurs And, when the value of the circulation delay counter corresponding to the entry holding the data indicates the lowest value, the data is newly rewritten to another entry, and a cache hit without updating occurs, And the value of the circulation delay counter corresponding to the entry holding the data is at least An entry management means for decreasing the value of the loop delay counter when a value other than the above is indicated, and the data held by the entry based on the index number of each of the plurality of entries and the value of the loop delay counter. A cache device that expresses the old and new of a device.
【請求項6】 空きエントリ数が予め定められた値を下
回ったときに、予め定められた数のエントリにデータを
キャッシュアウトさせる空きエントリ確保手段をさらに
具備してなることを特徴とする請求項1、2、3、4ま
たは5記載のキャッシュ装置。
6. A free entry securing means for caching out data to a predetermined number of entries when the number of free entries falls below a predetermined value. The cache device according to 1, 2, 3, 4, or 5.
【請求項7】 複数の請求項1、2、3、4、5または
6記載のキャッシュ装置を階層的に接続してなることを
特徴とする階層記憶装置。
7. A hierarchical storage device comprising a plurality of cache devices according to claim 1, 2, 3, 4, 5, or 6 connected hierarchically.
【請求項8】 空きエントリを検索するための空き領域
検索ポインタと、データをキャッシュアウトさせるエン
トリを検索するためのステージアウトポインタと、複数
のエントリそれぞれに対応して設けられる前記空き領域
検索ポインタに通過されたか否かを示す周回遅れマーク
とを備え、複数のエントリがリング状に管理されるキャ
ッシュ装置のエントリ管理方法であって、 キャッシュヒットしたデータを他のエントリに新たに書
き換えるステップを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れマークによって前記エントリが保持するデータ
の新旧を表現することを特徴とするエントリ管理方法。
8. An empty area search pointer for searching for an empty entry, a stage out pointer for searching for an entry to cache data, and an empty area search pointer provided for each of a plurality of entries. An entry management method for a cache device, comprising: a circling delay mark indicating whether or not the data has been passed; and a plurality of entries being managed in a ring shape, the method further comprising a step of newly rewriting cache hit data to another entry. An entry management method, wherein the index number of each of the plurality of entries and the round delay mark represent new or old data held by the entries.
【請求項9】 空きエントリを検索するための空き領域
検索ポインタと、データをキャッシュアウトさせるエン
トリを検索するためのステージアウトポインタと、複数
のエントリそれぞれに対応して設けられる前記空き領域
検索ポインタに通過されたか否かを示す周回遅れマーク
とを備え、複数のエントリがリング状に管理されるキャ
ッシュ装置のエントリ管理方法であって、 更新を伴なうキャッシュヒットが発生したときに、その
データを他のエントリに新たに書き換えるステップと、 更新を伴なわないキャッシュヒットが発生したときに、
そのデータを保持するエントリに対応する前記周回遅れ
マークをクリアするステップとを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れマークとによって前記エントリが保持するデー
タの新旧を表現することを特徴とするエントリ管理方
法。
9. A free area search pointer for searching for an empty entry, a stage out pointer for searching for an entry to cache data, and a free area search pointer provided for each of a plurality of entries. An entry management method for a cache device, comprising: a circling delay mark indicating whether or not the data has been passed, and a plurality of entries being managed in a ring shape, wherein when a cache hit involving updating occurs, the data is deleted. The step of rewriting a new entry, and when a cache hit without updating occurs,
Clearing the circling delay mark corresponding to the entry holding the data, wherein the index number of each of the plurality of entries and the circling delay mark represent new or old data held by the entry. Characteristic entry management method.
【請求項10】 空きエントリを検索するための空き領
域検索ポインタと、データをキャッシュアウトさせるエ
ントリを検索するためのステージアウトポインタと、複
数のエントリそれぞれに対応して設けられる前記空き領
域検索ポインタに通過された回数を保持する周回遅れカ
ウンタとを備え、複数のエントリがリング状に管理され
るキャッシュ装置のエントリ管理方法であって、 キャッシュヒットしたデータを他のエントリに新たに書
き換えるステップを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れカウンタの値とによって前記エントリが保持す
るデータの新旧を表現することを特徴とするエントリ管
理方法。
10. A free area search pointer for searching for an empty entry, a stage out pointer for searching for an entry to cache data, and a free area search pointer provided for each of a plurality of entries. An entry management method for a cache device, comprising: a circulation delay counter for holding the number of passed times; and a plurality of entries being managed in a ring shape, comprising a step of newly rewriting cache hit data to another entry. An entry management method, wherein the index number of each of the plurality of entries and the value of the circulation delay counter represent new or old data held by the entries.
【請求項11】 空きエントリを検索するための空き領
域検索ポインタと、データをキャッシュアウトさせるエ
ントリを検索するためのステージアウトポインタと、複
数のエントリそれぞれに対応して設けられる前記空き領
域検索ポインタに通過された回数を保持する周回遅れカ
ウンタとを備え、複数のエントリがリング状に管理され
るキャッシュ装置のエントリ管理方法であって、 更新を伴なうキャッシュヒットが発生したときに、その
データを他のエントリに新たに書き換えるステップと、 更新を伴なわないキャッシュヒットが発生したときに、
そのデータを保持するエントリに対応する前記周回遅れ
カウンタの値を減少させるステップとを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れカウンタの値とによって前記エントリが保持す
るデータの新旧を表現することを特徴とするエントリ管
理方法。
11. A free area search pointer for searching for an empty entry, a stage out pointer for searching for an entry to cache data, and the free area search pointer provided for each of a plurality of entries. An entry management method for a cache device, comprising: a circulation delay counter for holding the number of passes; a plurality of entries being managed in a ring shape, wherein when a cache hit involving updating occurs, the data is deleted. The step of rewriting a new entry, and when a cache hit without updating occurs,
Decreasing the value of the loop delay counter corresponding to the entry holding the data, and determining whether the data held by the entry is new or old based on the index number of each of the plurality of entries and the value of the loop delay counter. An entry management method characterized by expression.
【請求項12】 空きエントリを検索するための空き領
域検索ポインタと、 データをキャッシュアウトさせるエントリを検索するた
めのステージアウトポインタと、複数のエントリそれぞ
れに対応して設けられる前記空き領域検索ポインタに通
過された回数を保持する周回遅れカウンタとを備え、複
数のエントリがリング状に管理されるキャッシュ装置の
エントリ管理方法であって、 更新を伴なうキャッシュヒットが発生したとき、および
更新を伴なわないキャッシュヒットが発生し、かつその
データを保持するエントリに対応する前記周回遅れカウ
ンタの値が最低値を示しているときに、そのデータを他
のエントリに新たに書き換えるステップと、 更新を伴なわないキャッシュヒットが発生し、かつその
データを保持するエントリに対応する前記周回遅れカウ
ンタの値が最低値以外の値を示しているときに、その周
回遅れカウンタの値を減少させるステップとを具備し、 前記複数のエントリそれぞれのインデックス番号と前記
周回遅れカウンタの値とによって前記エントリが保持す
るデータの新旧を表現することを特徴とするエントリ管
理方法。
12. An empty area search pointer for searching for an empty entry, a stage out pointer for searching for an entry to cache data, and an empty area search pointer provided for each of a plurality of entries. An entry management method for a cache device comprising a circulation delay counter for holding the number of passes, and a plurality of entries being managed in a ring shape, wherein a cache hit involving an update occurs and Rewriting the data to another entry when a cache hit occurs and when the value of the circulation delay counter corresponding to the entry holding the data indicates the lowest value; If a cache hit occurs and the entry corresponding to the data Reducing the value of the orbit delay counter when the value of the orbit delay counter indicates a value other than the minimum value. Wherein the new and old data held by the entry is represented by the following.
JP9066371A 1997-03-19 1997-03-19 Cache device, and entry managing method applied to the device Pending JPH10260881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9066371A JPH10260881A (en) 1997-03-19 1997-03-19 Cache device, and entry managing method applied to the device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9066371A JPH10260881A (en) 1997-03-19 1997-03-19 Cache device, and entry managing method applied to the device

Publications (1)

Publication Number Publication Date
JPH10260881A true JPH10260881A (en) 1998-09-29

Family

ID=13313914

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9066371A Pending JPH10260881A (en) 1997-03-19 1997-03-19 Cache device, and entry managing method applied to the device

Country Status (1)

Country Link
JP (1) JPH10260881A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245152A (en) * 2008-03-31 2009-10-22 Aisin Aw Co Ltd Map update system and program
JP2011170447A (en) * 2010-02-16 2011-09-01 Fujitsu Ltd Storage system and data writing method
US9292439B2 (en) 2012-04-17 2016-03-22 International Business Machines Corporation Method, device and computer program for identifying items having high frequency of occurrence among items included in a text data stream
CN107656879A (en) * 2017-10-13 2018-02-02 郑州云海信息技术有限公司 It is a kind of data cached to write with a brush dipped in Chinese ink method, apparatus and readable storage medium storing program for executing

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009245152A (en) * 2008-03-31 2009-10-22 Aisin Aw Co Ltd Map update system and program
US8769237B2 (en) 2008-03-31 2014-07-01 Aisin Aw Co., Ltd. Map updating system and map updating program using dynamic cache memory
JP2011170447A (en) * 2010-02-16 2011-09-01 Fujitsu Ltd Storage system and data writing method
US9292439B2 (en) 2012-04-17 2016-03-22 International Business Machines Corporation Method, device and computer program for identifying items having high frequency of occurrence among items included in a text data stream
CN107656879A (en) * 2017-10-13 2018-02-02 郑州云海信息技术有限公司 It is a kind of data cached to write with a brush dipped in Chinese ink method, apparatus and readable storage medium storing program for executing
CN107656879B (en) * 2017-10-13 2021-05-07 郑州云海信息技术有限公司 Cache data flashing method and device and readable storage medium

Similar Documents

Publication Publication Date Title
US5448728A (en) Storage medium control system for controlling a write-once read-many storage medium
US5606688A (en) Method and apparatus for dynamic cache memory allocation via single-reference residency times
CN100421088C (en) Digital data processing device and method for managing cache data
US7827364B2 (en) Multistage virtual memory paging system
US7577800B2 (en) Method for borrowing and returning physical volumes
JP4246922B2 (en) Recent least frequently used replacement method with protection function
US20010037433A1 (en) System and method for high-speed substitute cache
JP2004062869A (en) Method and apparatus for selective caching of transactions in computer system
US8032708B2 (en) Method and system for caching data in a storgae system
US6842824B2 (en) Cache control program and computer for performing cache processes utilizing cache blocks ranked according to their order of reuse
JPH0877073A (en) Collective optical disk device
US6842826B1 (en) Method and apparatus for providing efficient management of least recently used (LRU) algorithm insertion points corresponding to defined times-in-cache
US11119912B2 (en) Ordering data updates for improving garbage collection being performed while performing the set of data updates
JP3568110B2 (en) Cache memory control method, computer system, hard disk drive, and hard disk controller
US7032093B1 (en) On-demand allocation of physical storage for virtual volumes using a zero logical disk
JP2000276404A (en) Method and device for virtual storage and recording medium
US20070174550A1 (en) Data area managing method in information recording medium and information processor employing data area managing method
JPH01292452A (en) Hierarchical data memory system
JPH1063551A (en) Information processor
JP2000330729A (en) Disk array system having on-line backup function
JPH10260881A (en) Cache device, and entry managing method applied to the device
JP2001195197A (en) Digital data sub-system including directory to efficiently provide format information about stored record
JPH11259627A (en) Image managing device and its method, image management system, and storage medium
JP2019020965A (en) Information processing device, program, and information processing method
US20220300424A1 (en) Memory system, control method, and memory controller