[go: up one dir, main page]

JPH0451342A - Disk cache system - Google Patents

Disk cache system

Info

Publication number
JPH0451342A
JPH0451342A JP2159711A JP15971190A JPH0451342A JP H0451342 A JPH0451342 A JP H0451342A JP 2159711 A JP2159711 A JP 2159711A JP 15971190 A JP15971190 A JP 15971190A JP H0451342 A JPH0451342 A JP H0451342A
Authority
JP
Japan
Prior art keywords
segment
storage area
data
area
cache
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
JP2159711A
Other languages
Japanese (ja)
Inventor
Masatoshi Ichikawa
正敏 市川
Eisaku Saiki
栄作 斉木
Tetsuzo Kobashi
小橋 徹三
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2159711A priority Critical patent/JPH0451342A/en
Publication of JPH0451342A publication Critical patent/JPH0451342A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the hit rate of cache by providing an LRU chain storage area and a data access number of times memory circuit at a segment managing area which manages a correspondent segment, and deciding the segment to substitute storage data by referring to both the area and the circuit. CONSTITUTION:When a substitution candidate segment for the next request of a host system is decided after completing data transfer, a microprocessor 5 detects the segment(SG) 7n shown by the LRU chain storage area 20i of the segment managing area 8i. When the value of the segment access number of times storage area 21n of the segment managing area 9n which manages the SG 7n is less than 100, it is set as a substitution candidate, and the value of a substitution candidate segment number of times storage area 13 is updated to the segment number of the SG 7n. Also, when the value of the segment access number of times 21n exceeds 100, the segment SG 7m shown by the LRU chain storage area 20n is further detected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ディスクΦヤツシ為システムにおいてキャッ
シュの記憶データとディスク装置から読み出したリード
データ(もしくはホストシステムより受信したライトデ
ータ)との置換方法に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a method for replacing data stored in a cache with read data read from a disk device (or write data received from a host system) in a disk Φ processing system. Regarding.

〔従来の技術〕[Conventional technology]

従来の装置は、特開昭65−4556号公報に記載のよ
うに、LRU処理によって、記憶しているデータ’et
it換するセグメン)t−決定していた。
As described in Japanese Unexamined Patent Publication No. 65-4556, conventional devices use LRU processing to store stored data 'etc.
The segment to be replaced) has been determined.

LRU処理によって、記憶しているデータを置換するセ
グメントヲ決定すると、アクセス回数は多くとも最近ア
クセスのないデータは置換されてしまうため、ヒツト率
の向上に問題があった。
When a segment in which stored data is to be replaced is determined by LRU processing, data that has not been accessed recently is replaced even if the number of accesses is large, which poses a problem in improving the hit rate.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、キャッシュが記憶しているデータのア
クセス回数について考慮されておらず、アクセス回数が
多くとも最近アクセスのないデータは、リードデータ、
もしくは、ライトデータと置換されてしまうため、キャ
ッジ−のヒツト率の向上に問題があった。
The above conventional technology does not take into account the number of accesses to the data stored in the cache, and even if the number of accesses is large, data that has not been accessed recently is read data,
Alternatively, since the data is replaced with write data, there is a problem in improving the hit rate of the catch.

本発明の目的は、キャッシュが記憶しているデータのア
クセス回数について考慮し、キャッシュのヒツト率を向
上させることにある。
An object of the present invention is to improve the cache hit rate by considering the number of accesses to data stored in the cache.

〔課題を解決するだめの手段〕[Failure to solve the problem]

上記目的を達成するために、本発明は対応するセグメン
トを管理するセグメント管理領域に、LRHの連鎖を記
憶するLRU連鎖記憶領域と、データのアクセス回数を
記憶するアクセス回数記憶回路を設け、マイクロプロセ
ッサによυLRU連鎖、及び、データのアクセス回数の
両方を参照して記憶データを置換するセグメントを決定
する。
In order to achieve the above object, the present invention provides a segment management area for managing a corresponding segment with an LRU chain storage area for storing a chain of LRHs and an access count storage circuit for storing the number of data accesses, and a microprocessor. The segment in which stored data is to be replaced is determined by referring to both the υLRU chain and the number of data accesses.

〔作用〕[Effect]

セグメント管理領域のうち、LRU連鎖記憶領域によシ
、マイクロプロセッサは、LRU処理による置換候補セ
グメントを検出する。また、データアクセス回数記憶領
域により、マイクロプロセッサは、LRU処理による置
換候補セグメントのデータアクセス回7#、を検出でき
る。LRU処理による置換候補セグメントのデータアク
セス回数を参照することによジ最近アクセスはないが、
アクセス回数の多いデータをリード/ライトデータで置
換してしまうことがなく、キャッシュのヒツト率を向上
することができる。
In the LRU chain storage area of the segment management area, the microprocessor detects replacement candidate segments by LRU processing. Further, the data access count storage area allows the microprocessor to detect the data access count 7# of the replacement candidate segment by LRU processing. By referring to the number of data accesses of the replacement candidate segment by LRU processing, it can be determined that there has been no recent access, but
Data that is frequently accessed is not replaced with read/write data, and the cache hit rate can be improved.

〔実施例〕〔Example〕

以下、本発明の一実施例を@1図ないし、第7図により
説明する。第6図はディスクキャッシュシステムのフロ
ーチャートである。ディスクキャッジニジステムはホス
トインタフェース制御回路1、キャッシュメモリ2、メ
モリコントロール回路3、ディスク装置制御回路4、マ
イクロプロセラ+j5.及び、ディスク装f6により構
成される。
Hereinafter, one embodiment of the present invention will be explained with reference to Figures 1 to 7. FIG. 6 is a flowchart of the disk cache system. The disk storage system includes a host interface control circuit 1, a cache memory 2, a memory control circuit 3, a disk device control circuit 4, a microprocessor +j5. and a disk unit f6.

第6図を用いてホストシステムからのデータリード要求
に対するディスクキャッジニジステムの動f′Fiを説
明する。
The behavior f'Fi of the disk storage system in response to a data read request from the host system will be explained using FIG.

ホストインタフェース制御回路1は、ホストインタフェ
ースを制御し、ホストシステムからのコマンドを受信す
る。マイクロプロセッサ5は、受4ばしたコマンドを識
別し、データリード要求を検知する。さらに、マイクロ
プロセッサ5は、ホストシステムの要求するデータがキ
ャッシュメモリ2に存在するかどうかを判定する。キャ
ッシュメモリ2にホストシステムの要求するデータが存
在する、すなわち、キャッシュがヒツトした場合、メモ
リコントロール回路3は、ホストインタフェース制御回
路1を介してキャッシュメモリ2の該当するデータをホ
ストシステムに転送する。また、キャッシュメモリ2に
ホストシステムの要求するデータが存在しない場合、す
なわち、キャッシュがヒツトしない場合、ディスク装置
制御回路4により、該当するデータをディスク装f6か
ら読み出し、ホストインタフェース制御回路1を介して
該当するデータをホストシステムに転送するとともに、
キャッシュメモリ2に該当するデータを記憶する。
The host interface control circuit 1 controls the host interface and receives commands from the host system. The microprocessor 5 identifies the received command and detects a data read request. Furthermore, the microprocessor 5 determines whether data requested by the host system exists in the cache memory 2. If the data requested by the host system exists in the cache memory 2, that is, if the cache is hit, the memory control circuit 3 transfers the corresponding data in the cache memory 2 to the host system via the host interface control circuit 1. Further, if the data requested by the host system does not exist in the cache memory 2, that is, if the cache is not hit, the disk device control circuit 4 reads the corresponding data from the disk device f6 and sends the data via the host interface control circuit 1. In addition to transferring the applicable data to the host system,
The corresponding data is stored in the cache memory 2.

また、ホストシステムからのデータライト要求に対する
ディスクキャッシュシステムの動作について以下に説明
する。
Further, the operation of the disk cache system in response to a data write request from the host system will be explained below.

ホストインタフェース制御回路1は、ホストインタフェ
ース全制御し、ホストシステムからのコマンドを受信す
る。マイクロプロセッサ5は、受信したコマンドを識別
し、データライト要求を検知する。ホストから転送され
るライトデータは、ホストインタフェース制御回路1、
及び、ディスク装置制御回路4を介し、ディスク装置6
に書き込まれるとともに、キャッシュメモリ2に記憶さ
れる。
The host interface control circuit 1 fully controls the host interface and receives commands from the host system. Microprocessor 5 identifies the received command and detects a data write request. Write data transferred from the host is sent to the host interface control circuit 1,
And, via the disk device control circuit 4, the disk device 6
and is stored in the cache memory 2.

キャッシュメモリ2は、一つまたは複数のセグメント7
に分割して使用する。分割するセグメント数はホストシ
ステムがホストインタフェースのコマンドによυ設定可
能である。マイクロプロセッサ5は、内蔵RAMに存在
するキャッシュ管理領域8によりキャッシュメモリ2金
管理する。また、マイクロプロセラt5は、内蔵RAM
に存在するセグメント管理領域9により、各セグメント
7t−管理する。本実施例では、キャッシュメモリ2に
記憶容量64KBのSRAMX!i−使用する。さらに
、ホストシステムが、ホストインタフェースのコマンド
にJ:9、キャッシュメモリ2を八個の容量の等しいセ
グメント7に分割して使用するよう設定した場合につい
ての例である。
Cache memory 2 includes one or more segments 7
Use by dividing into. The number of segments to be divided can be set by the host system using a host interface command. The microprocessor 5 manages the cache memory using the cache management area 8 existing in the built-in RAM. In addition, MicroProcera t5 has built-in RAM.
Each segment 7t- is managed by the segment management area 9 existing in the segment management area 9. In this embodiment, the cache memory 2 has a storage capacity of 64KB SRAMX! i-use. Furthermore, this is an example in which the host system sets the host interface command to use J:9, and the cache memory 2 is divided into eight segments 7 of equal capacity.

第6図はキャッシュメモリ管理領域8の構成である。キ
ャッシュメモリ管理領域8は、セグメント数記憶領域1
0、セグメント容量記憶領域11、セグメントステータ
ス記憶領域12、置換候補セグメント番号記憶領域16
に=9構成される。セグメント数記憶領域10は、ホス
トシステムがホストインタフェースのコマンドで指定し
たセグメント分割数を記憶する領域であυ、本実施例で
は、(セグメント数記憶領域10の値)−8である。セ
グメント容址記憶領域11は、セグメント7の記憶容i
全記憶する領域であり、本実施例では、 (セグメント各社記憶領域11の値) = 8 である。セグメントステータス記憶領域12は、各セグ
メント7がデータ全記憶していることを示すフラグであ
る。置換候補セグメント番号記憶領域16は、キャッジ
具メモリ2に記憶されたデータとディスク装置6から読
み出したリードデータ(もしくは、ホストシステムから
受信したライトデータ)と置換する時に使用するセグメ
ント70番号金記憶する領域である。
FIG. 6 shows the configuration of the cache memory management area 8. Cache memory management area 8 is segment number storage area 1
0, segment capacity storage area 11, segment status storage area 12, replacement candidate segment number storage area 16
=9 is configured. The segment number storage area 10 is an area in which the host system stores the number of segment divisions designated by a host interface command, and in this embodiment, it is (value of the segment number storage area 10) -8. The segment capacity storage area 11 has the storage capacity i of segment 7.
This is an area for all storage, and in this embodiment, (value of segment company storage area 11) = 8. The segment status storage area 12 is a flag indicating that each segment 7 stores all data. The replacement candidate segment number storage area 16 stores a segment 70 number used when replacing data stored in the carriage tool memory 2 with read data read from the disk device 6 (or write data received from the host system). It is an area.

また、第4図は、セグメント管理領域9の説明図である
。セグメント管理領域9は、セグメント先頭アドレス記
ta領域14、ステージングアドレス記憶領域15、ス
テージングアドレス記憶領域16、ステージング容斌記
tば領域17、リードポインタ記憶領域18、ライトポ
インタ記憶領域19、LRU連鎖記憶領域20、セグメ
ントアクセス回数記憶領域21によ、!lll構成され
る。セグメント先頭アドレス記憶領域14は、該当セグ
メン)7aの先頭アドレス(絶対アドレス)を示す。ス
テジングアドレス記憶領域15は、該当セグメント7a
が記憶しているデータの先頭アドレス(ホストインタフ
ェースの論理アドレス)を記憶する領域である。ステー
ジングアドレス記憶領域16は該当セグメント7aが記
憶しているデータの先頭アドレス(ディスク装#6の物
理アドレス)を記憶する領域である。ステージング容量
記憶領域17Vi、該当セグメン)7aが記憶している
データのブロック数(ホストインタフェースの論理ブロ
ック数)′t−記憶する領域である。リードポインタ記
憶領域18に該当セグメン)7aのデータのIJ−トポ
インタ金記憶する領域である。ライトポインタ記憶領域
19は、該当セグメント7aのデータのライトポインタ
を記憶する領域である。LRU連鎖記憶領域20は、L
R1J法による連鎖で、セグメン)7aの次のセグメン
ト番号を記憶する領域である。セグメントアクセス回数
記憶領域21は、セグメン)7aのデータをアクセスし
た回数を記憶する領域である。セグメン)7aが、ホス
トインタフェースの論理アドレス#0OOOOOH(デ
ィスク装置1の物理アドレスのシリンダ番号#0000
H,ヘッド番号#OOH,セクタ番号#00Hに対応す
る)から、中側の論理プロブを記憶している場合 (ステージングアドレス記憶領域15の値)=$000
000H (ステージングアドレス記憶領域16の値)=#0O0
00000H (ステージング容量記憶域17の値) ;10 である。
Further, FIG. 4 is an explanatory diagram of the segment management area 9. The segment management area 9 includes a segment start address storage area 14, a staging address storage area 15, a staging address storage area 16, a staging storage area 17, a read pointer storage area 18, a write pointer storage area 19, and an LRU chain storage area. According to area 20 and segment access count storage area 21! llll configured. The segment start address storage area 14 indicates the start address (absolute address) of the corresponding segment) 7a. The staging address storage area 15 is the corresponding segment 7a.
This is an area that stores the start address (logical address of the host interface) of the data stored in the host interface. The staging address storage area 16 is an area for storing the start address (physical address of disk drive #6) of the data stored in the corresponding segment 7a. Staging capacity storage area 17Vi, the number of blocks of data stored in the corresponding segment (segment) 7a (number of logical blocks of the host interface) 't-This is an area for storing. The read pointer storage area 18 is an area for storing the IJ-to-pointer data of the corresponding segment 7a. The write pointer storage area 19 is an area that stores a write pointer for data of the corresponding segment 7a. The LRU chain storage area 20 is
This is an area for storing the next segment number of segment 7a in chaining using the R1J method. The segment access count storage area 21 is an area for storing the number of times data of the segment 7a has been accessed. Segment) 7a is the logical address #0OOOOOH of the host interface (cylinder number #0000 of the physical address of disk device 1)
H, head number #OOH, sector number #00H), if the middle logical probe is stored (value of staging address storage area 15) = $000
000H (value of staging address storage area 16) = #0O0
00000H (value of staging capacity storage area 17); 10.

次に、マイクロプロセッサ5が、キャッジ島管理領域8
、セグメント管理領域9により、ホストシステムのデー
タリード/ライト要求に対して使用するセグメント7を
一つ決定する処理を、第1図、第5図および第7図を用
いて説明する。
Next, the microprocessor 5 executes the Cage Island management area 8.
The process of determining one segment 7 to be used in response to a data read/write request from the host system using the segment management area 9 will be explained with reference to FIGS. 1, 5, and 7.

第5図は、マイクロプロセッサ5が、ホストシステムの
データリード/ライト要求に対して使用するセグメント
7を一つ決定する処理の70−チャートである。ホスト
システムの要求がデータリードの場合、マイクロプロセ
ッサ5は、ホストシステムの要求するデータがキャッジ
具メモリ2に存在するかどうか判定する。すなわち、キ
ャッシュがヒントしているかどうかを判定する。この判
定に、マイクロプロセッサ5は、各セグメント71に対
応するセグメント管理領域91のステージングアドレス
記憶領域、ステージング容量記憶領域17を用いる。(
1はawbのいずれか)ヒツトしている場合、ホストシ
ステムの要求するデータが存在するセグメント71ヲホ
ストシステムのり〜ド要求に対して使用することを決定
する。ヒツトしていない場合、マイクロプロセッサ5は
、キャッシュ管理領域8のセグメントステータス記憶領
域12によシ、データが記憶されていないセグメント7
V、すなわち、空きセグメント7v(Vはawbのいず
れか)をさがす。空きセグメント7vが存在する場合、
ホストシステムのリード要求に対して、空きセグメント
7vt−使用することを決定する。空きセグメン) 7
vが存在しない場合、マイクロプロセッサ5は、ホスト
システムのリード要求に対してキャツシュ管理領域80
fl換候補セグメント番号記憶領域13の示すセグメン
ト7j(jはa −bのいずれか)を使用することを決
定する。
FIG. 5 is a 70-chart of a process in which the microprocessor 5 determines one segment 7 to be used in response to a data read/write request from the host system. If the request from the host system is to read data, the microprocessor 5 determines whether the data requested by the host system exists in the carriage tool memory 2. That is, it is determined whether the cache is hinted. For this determination, the microprocessor 5 uses the staging address storage area and the staging capacity storage area 17 of the segment management area 91 corresponding to each segment 71. (
1 is one of awb), it is determined that the segment 71 in which the data requested by the host system exists will be used for the host system board request. If not, the microprocessor 5 stores the segment status storage area 12 of the cache management area 8 in the segment 7 where no data is stored.
V, that is, free segment 7v (V is either awb). If there is a free segment 7v,
In response to a read request from the host system, it is decided to use empty segment 7vt. vacant segment) 7
If v does not exist, the microprocessor 5 reads the cash management area 80 in response to a read request from the host system.
It is decided to use the segment 7j (j is either a or b) indicated by the fl conversion candidate segment number storage area 13.

キャッシュがヒツトした場合、メモリコントロール回路
3は、ホストインタフェース制御回路1を介して、セグ
メント71の該当するデータをホストシステムに転送す
る。キャッシュがヒツトしなかった場合、ディスク装置
制御回路4により、該当するデータをディスク装置6か
ら読み出し、ホストインタフェース制御回路1を介して
ホストシステムに転送するとともに、セグメント7v(
もしくは7j)に記憶する。
If the cache is hit, the memory control circuit 3 transfers the corresponding data in the segment 71 to the host system via the host interface control circuit 1. If the cache is not hit, the disk device control circuit 4 reads the corresponding data from the disk device 6, transfers it to the host system via the host interface control circuit 1, and writes the segment 7v (
or 7j).

データ転送終了後、マイクロプロセッサ5は、キャッシ
ュ管理領域8、及び、セグメント管理領域91の値を更
新する。
After the data transfer is completed, the microprocessor 5 updates the values in the cache management area 8 and segment management area 91.

第1図は、データ転送終了後のマイクロプロセッサ5が
キャッジ^管理領域8の値を更新する処理の70−チャ
ートである。マイクロプロセッサ5は、セグメントステ
ータス記憶領域12のうち、該当するセグメント71(
もしくは7v、7j)に対応するステータスを変更し、
該当するセグメント 71(もしくは7v 、 7j 
)にデータが記憶されていることを明示する。
FIG. 1 is a 70-chart of the process in which the microprocessor 5 updates the value of the cache management area 8 after the data transfer is completed. The microprocessor 5 stores the corresponding segment 71 (
Or change the status corresponding to 7v, 7j),
Applicable segment 71 (or 7v, 7j
) to indicate that the data is stored.

次に、マイクロプロセッサ5はセグメント管理領域81
 (もしくは8v 、 8j )のLRU連鎖記憶領域
201(もしくは20v 、 20j )の示すセグメ
ン)7n(nはa−hのいずれか)を検出する。
Next, the microprocessor 5 controls the segment management area 81.
(or the segment indicated by the LRU chain storage area 201 (or 20v, 20j)) 7n (n is one of a to h) is detected.

このセグメント7nf管理するセグメント管理領域9n
のセグメントアクセス回数記憶領域21nの値が100
未満の場合、このセグメント7nを置換候補とし、置換
候補セグメント番号記憶領域15の値をセグメント7n
のセグメント番号に更新する。また、セグメントアクセ
ス回数21nの値が100以上の場合、さらにLRUM
鎖記憶領域20nの示すセグメン)7m(mはa−hの
いずれか)全検出する。以降、セグメン)7nK対する
判断と同様の判断全を換候補セグメントが決定するか、
もしくは、LRU連鎖の末尾まで行う。
Segment management area 9n to manage this segment 7nf
The value of the segment access count storage area 21n is 100.
If less than
Update to segment number. In addition, if the value of segment access count 21n is 100 or more, LRUM
The entire segment) 7m (m is one of a to h) indicated by the chain storage area 20n is detected. Hereinafter, whether the candidate segment determines all the same judgments as those for segment 7nK,
Alternatively, it is performed until the end of the LRU chain.

LRU連鎖の末尾までこの判断を行って、#換候補セグ
メントが決定しない場合、セグメント7n’kfff換
候補セグメントとし、置換候補セグメント番号記憶領域
1シの値をセグメント7nのセグメント番号に更新する
If this judgment is made until the end of the LRU chain and no replacement candidate segment is determined, segment 7n'kfff is designated as a replacement candidate segment, and the value of replacement candidate segment number storage area 1 is updated to the segment number of segment 7n.

マイクロプロセラ+j5は、キャッシュ管理領域8を更
新した後、セグメント管理領域90更新を行なう。
After updating the cache management area 8, the microprocessor +j5 updates the segment management area 90.

第7図は、マイクロプロセッサ5がセグメント管理領域
8を更新する処理の70−チャートである。マイクロプ
ロセラ″!lth′5は、LRU連鎖記憶領域20を更
新し、セグメント71(もしくは7v。
FIG. 7 is a 70-chart of the process in which the microprocessor 5 updates the segment management area 8. The microprocessor''!lth'5 updates the LRU chain storage area 20 and updates the segment 71 (or 7v).

7j)′t−LRU連鎖の末尾につける。次に、セグメ
ント71(もしくは7v、7j)に対するセグメントア
クセス回数記憶領域211(もしくは21v、21j)
の値を更新する。
7j)'t-Attach to the end of the LRU chain. Next, segment access count storage area 211 (or 21v, 21j) for segment 71 (or 7v, 7j)
Update the value of

本実施例では、データ転送終了後に、ホストシステムの
次の要求に対する置換候補セグメントを決定して置換候
補セグメント番号記憶領域13に記憶しているため、ホ
ストシステムのデータ要求に対して、高速に置換候補セ
グメントを決定することができる。
In this embodiment, after data transfer is completed, a replacement candidate segment for the next request from the host system is determined and stored in the replacement candidate segment number storage area 13, so that replacement can be performed at high speed in response to a data request from the host system. Candidate segments can be determined.

[発明の効果] 本発明によれば、最近アクセスはないがアクセス回数が
多いデータ全置換せずに済むので、キャッシュのヒツト
率の向上に効果がある。
[Effects of the Invention] According to the present invention, it is not necessary to completely replace data that has not been accessed recently but has been accessed frequently, which is effective in improving the cache hit ratio.

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

第1図は本発明の一実施例のディスクやヤッシエシステ
ムの管理70−チャート、第2図はキャッシュメモリの
説明図、第6図はキャッシュ管理領域の説明図、第4図
はセグメント管理領域の説明図、第5図は、リード/ラ
イト要求に使用するセグメント決定処理のフローチャー
ト、第6図は、キャッシュ管理領域の更新処理のフロー
チャート、W、7図はセグメント管理領域の更新処理の
70−チャートでちる。 符号の説明 1・・・ホストインタフェース制御回路、2・・・キャ
ッシュメモリ、5・・・メモリコントロール回路、4・
・・ディスク装置制御回路、5・・・マイクロプロセッ
サ、6・・・ディス 装置、7・・・セグメント、8・
・・キャッシュ管理領域、9・・・セグメント管理領域
、15・・・置換候補セグメント番号記憶領域、20・
・・LRU連鎖記憶領域、21・・・セグメントアクセ
ス回数紀元 1 回 キャッシュ嘴王里テープ′ル更身力。 第 5日 )1丈用Pブメントの多大定 第 図 ゼブメ訃管王肋テーフ゛II新
Fig. 1 is a management 70-chart for a disk and Yasshi system according to an embodiment of the present invention, Fig. 2 is an explanatory diagram of the cache memory, Fig. 6 is an explanatory diagram of the cache management area, and Fig. 4 is a segment management area. FIG. 5 is a flowchart of segment determination processing used for read/write requests, FIG. 6 is a flowchart of cache management area update processing, W, and FIG. 7 is 70- of segment management area update processing. Chill on the chart. Explanation of symbols 1... Host interface control circuit, 2... Cache memory, 5... Memory control circuit, 4...
... Disk device control circuit, 5... Microprocessor, 6... Disk device, 7... Segment, 8...
... Cache management area, 9... Segment management area, 15... Replacement candidate segment number storage area, 20.
...LRU chain storage area, 21...Segment access count 1 time Cache tape's resiliency. Day 5) Large determination diagram of P-butment for 1 length

Claims (1)

【特許請求の範囲】 1、一つもしくは複数のセグメントからなるキャッシュ
メモリを含むディスクキャッシュシステムにおいて、 対応する前記セグメントを管理するセグメント管理領域
に、LRU連鎖記憶領域とデータのアクセス回数記憶領
域とを設け、LRU連鎖及びセグメントのアクセス回数
の両方を参照して記憶データを置換するセグメントを決
定することを特徴とするディスクキャッシュシステム。 2、請求項1において、前記LRU処理によって前記記
憶データを置換すべく選ばれた前記セグメントのデータ
アクセス回数が規定回数以上のとき、LRU連鎖で前記
セグメントよりも末尾の前記セグメントを記憶データを
置換するセグメントとして決定してなるディスクキャッ
シュシステム。
[Claims] 1. In a disk cache system including a cache memory consisting of one or more segments, a segment management area for managing the corresponding segment includes an LRU chain storage area and a data access count storage area. 1. A disk cache system, characterized in that a segment in which stored data is to be replaced is determined by referring to both an LRU chain and a segment access count. 2. In claim 1, when the number of data accesses of the segment selected to replace the stored data by the LRU process is equal to or greater than a predetermined number of times, the stored data is replaced in the segment at the end of the segment in the LRU chain. A disk cache system that is determined as a segment.
JP2159711A 1990-06-20 1990-06-20 Disk cache system Pending JPH0451342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2159711A JPH0451342A (en) 1990-06-20 1990-06-20 Disk cache system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2159711A JPH0451342A (en) 1990-06-20 1990-06-20 Disk cache system

Publications (1)

Publication Number Publication Date
JPH0451342A true JPH0451342A (en) 1992-02-19

Family

ID=15699623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2159711A Pending JPH0451342A (en) 1990-06-20 1990-06-20 Disk cache system

Country Status (1)

Country Link
JP (1) JPH0451342A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6738865B1 (en) 2000-06-09 2004-05-18 International Business Machines Corporation Method, system, and program for demoting data from cache based on least recently accessed and least frequently accessed data
JP2017060675A (en) * 2015-09-25 2017-03-30 富士通デバイス株式会社 Storage device for game machine

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6738865B1 (en) 2000-06-09 2004-05-18 International Business Machines Corporation Method, system, and program for demoting data from cache based on least recently accessed and least frequently accessed data
JP2017060675A (en) * 2015-09-25 2017-03-30 富士通デバイス株式会社 Storage device for game machine

Similar Documents

Publication Publication Date Title
EP0077452B1 (en) Data promotion in storage subsystems
US4875155A (en) Peripheral subsystem having read/write cache with record access
EP0077453B1 (en) Storage subsystems with arrangements for limiting data occupancy in caches thereof
US4571674A (en) Peripheral storage system having multiple data transfer rates
CA1176381A (en) Dynamically assignable i/o controller cache
US4779189A (en) Peripheral subsystem initialization method and apparatus
US5623631A (en) Limiting modification of cache entries in a write-back cache based upon the amount of dirty lines in the cache
US20030212865A1 (en) Method and apparatus for flushing write cache data
JPH0574102B2 (en)
JPH0512116A (en) Cache memory controller
EP0066766B1 (en) I/o controller with a dynamically adjustable cache memory
US7032093B1 (en) On-demand allocation of physical storage for virtual volumes using a zero logical disk
EP2224343A1 (en) Data processing system
US5845318A (en) Dasd I/O caching method and application including replacement policy minimizing data retrieval and storage costs
EP0114944B1 (en) Method and apparatus for controlling a single physical cache memory to provide multiple virtual caches
JPH0451342A (en) Disk cache system
JPH05189316A (en) Disk cache control method
JP4742432B2 (en) Memory system
JP2852232B2 (en) Computer
JP2000285022A (en) Disk controller
JP2854668B2 (en) Disk cache control method
JPH0210446A (en) Buffer storage device
JP2854667B2 (en) Disk cache control method
JPH0192855A (en) Disk cache control system
JPH10320277A (en) Microprocessor circuit and system