JPH08212137A - Access frequency detector - Google Patents
Access frequency detectorInfo
- Publication number
- JPH08212137A JPH08212137A JP7037796A JP3779695A JPH08212137A JP H08212137 A JPH08212137 A JP H08212137A JP 7037796 A JP7037796 A JP 7037796A JP 3779695 A JP3779695 A JP 3779695A JP H08212137 A JPH08212137 A JP H08212137A
- Authority
- JP
- Japan
- Prior art keywords
- access
- data
- time
- access frequency
- unit time
- 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
Links
- 238000001514 detection method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 4
- 238000007796 conventional method Methods 0.000 description 2
- 230000007423 decrease Effects 0.000 description 2
- 230000002123 temporal effect Effects 0.000 description 2
- 239000012141 concentrate Substances 0.000 description 1
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はデータに対するアクセス
の状況を把握するためのアクセス頻度検出装置に関し、
特にディスク装置を有する電子計算機システムのディス
クキャッシュ装置に用いるのに好適なものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an access frequency detecting device for grasping the status of access to data,
In particular, it is suitable for use in a disk cache device of an electronic computer system having a disk device.
【0002】[0002]
【従来の技術】ディスクキャッシュ装置は、ディスク装
置よりも高速にアクセスできる比較的小容量のメモリを
用いて、ディスク装置のデータの写しを保持し、次にデ
ィスク装置にアクセス要求のあった場合に、そのディス
ク装置にアクセスする前にディスクキャッシュ装置にア
クセスし、もし要求のデータがあればディスクをアクセ
スしないで、キャッシュ装置からデータを取り出しある
いは書き込むようにすることにより、アクセス速度を実
効的に速くするものである。ディスクキャッシュのメモ
リは高速であるがその容量には限りがあるので、この高
速のメモリを効率的に使用する様々な工夫がなされてい
る。例えば、ディスクキャッシュのメモリに保持してい
るデータは最近のアクセス頻度に着目して、使用頻度の
高かったデータを残し、使用されないデータを新しくア
クセスされたデータと入れ替えていくことにより、アク
セスしたデータがディスクキャッシュ装置中にある確率
であるヒット率を高くして、アクセスが効率的となるよ
うにするのが通常である。そのアクセス頻度を求めるた
めにアクセス頻度検出装置が必要となる。2. Description of the Related Art A disk cache device uses a memory having a relatively small capacity that can be accessed at a higher speed than the disk device, and retains a copy of the data in the disk device. By accessing the disk cache device before accessing the disk device and fetching or writing the data from the cache device without accessing the disk if the requested data is available, the access speed is effectively increased. To do. The memory of the disk cache is high-speed, but its capacity is limited, so various measures have been taken to efficiently use this high-speed memory. For example, for the data held in the memory of the disk cache, paying attention to the recent access frequency, the frequently used data is left, and the unused data is replaced with the newly accessed data. It is normal to increase the hit rate, which is the probability that the is in the disk cache device, to make the access efficient. An access frequency detection device is required to obtain the access frequency.
【0003】また、例えば、特開平3−63741号公
報記載のディスクキャッシュ装置においては、アクセス
頻度検出手段が設けられ、そのアクセス頻度検出手段
は、所定時間中ディスク装置へ読出し/書込みが要求さ
れるごとにその回数をカウントし、ディスク装置に対す
るアクセス回数および読出し比率を算出し、その結果を
基に、ディスクキャッシュ装置のキャッシュメモリのデ
ィスクキャッシュとして使用する量を自動的に調節し、
ディスクキャッシュとして使用しない部分を主記憶の一
部として割り当てることにより、ディスクキャッシュ装
置を有効に使用できるようにしている。Further, for example, in the disk cache device disclosed in Japanese Patent Laid-Open No. 3-63741, access frequency detecting means is provided, and the access frequency detecting means is required to read / write to the disk device for a predetermined time. Each time, the number of times is counted, the number of accesses to the disk device and the read ratio are calculated, and based on the result, the amount used as the disk cache of the cache memory of the disk cache device is automatically adjusted,
By allocating a portion not used as a disk cache as a part of the main memory, the disk cache device can be effectively used.
【0004】また、例えば、特開平2−36446号公
報記載のディスクキャッシュ装置では、単位時間当たり
アクセスを要求された回数を検出するアクセス頻度検出
回路により、特定の論理ボリュームに対してのアクセス
が集中あるいは減少した場合でも、論理ボリュームに割
り付けるキャッシュメモリのセットを増やしたり、ある
いは、キャッシュメモリの割付けを停止するなど、自動
的に調整を行うことにより、キャッシュメモリを有効に
使うことが可能とし、キャッシュヒット率を低下させな
いようにしている。Further, for example, in the disk cache device disclosed in Japanese Patent Laid-Open No. 2-36446, an access frequency detecting circuit for detecting the number of times access is requested per unit time concentrates accesses to a specific logical volume. Even if it decreases, the cache memory can be used effectively by automatically adjusting it, such as increasing the set of cache memory allocated to the logical volume or stopping the allocation of cache memory. I try not to reduce the hit rate.
【0005】[0005]
【発明が解決しようとする課題】上記単位時間内での参
照回数と読出し比率を基に、ディスクキャッシュの量を
調節する従来のディスクキャッシュ装置では、今回の所
定時間内では、参照回数は低かったが、次の所定時間に
参照される可能性の高いと思われるデータを保持してい
たキャッシュブロックが使われなくなってしまう恐れが
ある。また、上記単位時間当たりアクセスを要求された
回数を基に、論理ボリュームに割り付けるキャッシュメ
モリを増減する従来のキャッシュ装置では、アクセス頻
度の検出は一定時間内のアクセス要求のあった回数のみ
を基にしているので、キャッシュヒット率があがらない
場合も考えられる。In the conventional disk cache device that adjusts the amount of disk cache based on the number of references and the read ratio in the unit time, the number of references is low within the predetermined time. However, there is a risk that the cache block that holds the data that is likely to be referenced at the next predetermined time will not be used. Further, in the conventional cache device that increases or decreases the cache memory allocated to the logical volume based on the number of times access is requested per unit time, the access frequency is detected only based on the number of times access requests are made within a certain period of time. Therefore, the cache hit rate may not increase.
【0006】上記のような従来技術のアクセス頻度検出
装置においては、時々刻々変化するであろうアクセス頻
度を過去(最近)の一定時間のアクセス回数により求め
ており、その求めたアクセス頻度が次に続く一定時間で
も同じであることを予測して、キャッシュメモリの割付
けを行っている。しかしながら、そのアクセス回数を検
出する一定時間内においても現実にはアクセスの状況が
刻々と変化しているが、検出したアクセス頻度にはその
一定時間内のアクセスの変化までは反映されない。従っ
て、従来の技術では、検出したアクセス頻度は、その後
実際に行われるアクセス頻度を正確に予測し得ていると
は限らない。In the conventional access frequency detecting apparatus as described above, the access frequency which may change from moment to moment is obtained from the number of accesses in the past (recent) fixed time, and the obtained access frequency is The cache memory is allocated with the expectation that it will be the same even during the following fixed time. However, even though the access situation actually changes momentarily within a certain period of time during which the number of accesses is detected, the detected access frequency does not reflect changes in the access within the certain period of time. Therefore, in the conventional technique, the detected access frequency does not always accurately predict the access frequency actually performed thereafter.
【0007】本発明は、上記のような従来の技術の問題
点を解決することを目的とするものである。即ち、本発
明は、現時点のアクセスの状況をより正確に反映したア
クセス頻度を得ることを目的とするものである。The present invention aims to solve the above-mentioned problems of the conventional techniques. That is, the present invention aims to obtain an access frequency that more accurately reflects the current access situation.
【0008】[0008]
【課題を解決するための手段】本発明は、所定の単位時
間ごとにデータのアクセス要求回数を各データ毎に計数
する第1の手段と、前記単位時間内において最初にアク
セス要求のあった時点を各データ毎に検出する第2の手
段と、前記第1の手段により得られたアクセス要求回数
と前記第2の手段により検出された時点情報をもとに、
アクセス頻度を算出する第3の手段とを備えたアクセス
頻度検出装置である。According to the present invention, there is provided a first means for counting the number of data access requests for each predetermined unit time, and a time point when an access request is first made within the unit time. Based on the number of access requests obtained by the first means and time information detected by the second means,
An access frequency detecting device including a third means for calculating an access frequency.
【0009】[0009]
【作用】単位時間毎に、データに対するアクセス要求回
数を求めるとともに、単位時間内おいて最初にアクセス
要求のあった時点を検出する。アクセス要求と最初にア
クセス要求のあった時点の情報をもとに、アクセス頻度
を算出する。The number of access requests to the data is calculated for each unit time, and the time when the first access request is made within the unit time is detected. The access frequency is calculated based on the access request and the information at the time of the first access request.
【0010】[0010]
【実施例】図1は本発明の実施例のアクセス頻度検出装
置の構成を示す図である。このアクセス頻度検出装置
は、例えばディスクキャッシュ装置へディスク装置への
アクセス要求として送られるアドレス信号を保持するレ
ジスタ11と、レジスタ11から入力されるアドレス信
号をそれぞれ同一のアドレス信号を識別して、それぞれ
要求があったことを示す信号を出力するデータ識別回路
12と、アクセス要求のあったデータが単位時間内にお
いて最初にアクセス要求のあった時点を検出する初アク
セス時点検出回路13と、各データ毎にアクセス要求回
数を検出するアクセス要求回数検出回路14と、初アク
セス時点検出回路13の出力とアクセス要求回数検出回
路14の出力からアクセス頻度を算出するアクセス頻度
算出回路15とを備えている。また、その初アクセス時
点検出回路13は、所定の単位時間毎に発生するリセッ
ト信号によるリセット後、最初に到来する信号によって
起動し単位時間の終わりで停止する各データ別の複数の
時間カウンタ131、132、133からなる。アクセ
ス要求回数検出回路14は、データ識別回路12の出力
するアクセスが発生したことを示す信号を前記所定の単
位時間毎にカウントするデータ別の回数カウンタ14
1、142、143からなる。FIG. 1 is a diagram showing the configuration of an access frequency detecting apparatus according to an embodiment of the present invention. This access frequency detecting device identifies, for example, the same address signal from the register 11 that holds an address signal sent to the disk cache device as an access request to the disk device, and the address signal input from the register 11 to identify the same address signal. A data identification circuit 12 that outputs a signal indicating that there is a request, an initial access time point detection circuit 13 that detects the time point when the access request data is the first access request within a unit time, and each data Further, it is provided with an access request number detection circuit 14 for detecting the number of access requests, and an access frequency calculation circuit 15 for calculating the access frequency from the output of the first access time point detection circuit 13 and the output of the access request number detection circuit 14. Further, the first access time point detection circuit 13 has a plurality of time counters 131 for each data, which are activated by a signal that arrives first and stopped at the end of the unit time after being reset by a reset signal generated every predetermined unit time, 132, 133. The access request frequency detection circuit 14 counts the number of signals for each data, which counts a signal output from the data identification circuit 12 indicating that an access has occurred for each predetermined unit time.
1, 142, 143.
【0011】図2は図1のアクセス頻度検出装置の動作
を説明するための図である。この図2の例では、所定の
単位時間t0〜t14において、各アクセス要求された
データa〜gの要求の発生時点を逆三角の記号で表し、
単位時間内で最初に発生した時刻のものは黒で示してお
り、また、この単位時間内の各データのアクセス回数
と、アクセス頻度算出回路15によって計算されるアク
セス頻度をも示している。FIG. 2 is a diagram for explaining the operation of the access frequency detecting device of FIG. In the example of FIG. 2, the points of occurrence of the access-requested data a to g are represented by inverted triangle symbols in a predetermined unit time t0 to t14.
The time of the first occurrence within the unit time is shown in black, and the access frequency of each data within the unit time and the access frequency calculated by the access frequency calculation circuit 15 are also shown.
【0012】データ識別回路12は、データa〜gの各
データごとにアクセス回数および単位時間内で初めて参
照された時刻を求めるために、データを識別する。初ア
クセス時点検出回路13は、複数の時間カウンタa、
b、c、…からなり、データ識別回路12から単位時間
内で最初にアクセス要求の発生した時点の刻時信号をデ
ータごとに保持する。例えば、図2の例では、データa
は時間t0に、データbは時間t1に、データcは時間
t11に、それぞれ最初のアクセス要求が発生し、それ
ぞれの時刻は時刻保持回路a、b、cに保持され、その
後アクセス頻度算出回路15へ渡される。The data discrimination circuit 12 discriminates the data for each data a to g in order to obtain the number of times of access and the time of the first reference within the unit time. The first access time detection circuit 13 includes a plurality of time counters a,
The data identifying circuit 12 holds the clock signal for each data at the time of the first access request within the unit time. For example, in the example of FIG.
At time t0, data b at time t1, data c at time t11, the first access request is generated, and the respective times are held in the time holding circuits a, b, and c, and then the access frequency calculation circuit 15 Is passed to.
【0013】アクセス要求回数検出回路14は、複数の
カウンタa、b、c、…からなり、データ識別回路12
からのデータ別のアクセス要求の発生を示す信号を、デ
ータに対応したカウンタでカウントし、単位時間内に発
生したアクセス回数を得る。即ち、データaのアクセス
要求はカウンタaでカウントし、単位時間内の発生回数
は4を得、データbのアクセス要求はカウンタbでカウ
ントし、単位時間内の発生回数は2を得、データcのア
クセス要求はカウンタcでカウントし、単位時間内の発
生回数は1を得るというように、データ別にアクセス回
数を検出する。The access request frequency detection circuit 14 comprises a plurality of counters a, b, c, ...
A signal indicating the generation of an access request for each data is counted by a counter corresponding to the data, and the number of accesses generated in a unit time is obtained. That is, the access request for the data a is counted by the counter a, the number of occurrences within the unit time is 4, the access request for the data b is counted by the counter b, the number of occurrences within the unit time is 2, and the data c is obtained. The access request is counted by the counter c, and the number of times of occurrence within the unit time is 1, so that the number of times of access is detected for each data.
【0014】アクセス頻度算出回路15は、初アクセス
時点検出回路13の出力する時間カウント値とデータ別
アクセス回数検出回路14の出力するアクセス回数をも
とに、次の計算によりアクセス頻度を算出する。 アクセス頻度=アクセス回数/時間カウント値The access frequency calculation circuit 15 calculates the access frequency by the following calculation based on the time count value output from the first access time point detection circuit 13 and the access frequency output from the data-specific access frequency detection circuit 14. Access frequency = access count / time count value
【0015】図2に示すデータa〜gへのアクセス状況
の例において、もし従来のように、アクセス回数のみを
もとにアクセス頻度を求めると、データcはアクセス頻
度が低いとみなされる。しかし、実際は次に続く単位時
間においては、データfよりもデータcの方がアクセス
される確率は高い。即ち、本実施例によれば、次の単位
時間内で使用される可能性の高いデータのアクセス頻度
を高くすることができ、また同じ要求回数でも、データ
b、d、fのように、最近使われているかといった要素
を含めて、数値化することができる。In the example of the access status to the data a to g shown in FIG. 2, if the access frequency is obtained only based on the number of accesses as in the conventional case, the data c is considered to have a low access frequency. However, actually, in the next unit time, the probability that the data c is accessed is higher than that of the data f. That is, according to the present embodiment, it is possible to increase the access frequency of data that is likely to be used within the next unit time, and even if the same request count is used, it is possible to use the data b, d, and f recently. It can be quantified, including elements such as whether it is used.
【0016】本発明のアクセス頻度検出装置は、アクセ
ス頻度を参照するデータ処理装置に利用することがで
き、特に、現時点でのアクセス頻度をより的確に把握す
ることが必要なデータ処理装置において特に有用であ
る。例えば、先に従来技術の欄で例示した特開平2−3
6446号公報や特開平3−63741号公報記載のよ
うなディスクキャッシュ装置のアクセス頻度検出回路と
して好適である。The access frequency detection device of the present invention can be used for a data processing device that refers to the access frequency, and is particularly useful for a data processing device that requires more accurate grasp of the access frequency at the present time. Is. For example, Japanese Patent Application Laid-Open No. 2-3 mentioned above in the section of the prior art.
It is suitable as an access frequency detection circuit for a disk cache device as described in Japanese Patent No. 6446 and Japanese Patent Laid-Open No. 3-63741.
【0017】[0017]
【発明の効果】以上に詳述したように、従来技術では、
最近の単位時間内のアクセス要求回数を求め、これを現
時点のアクセス頻度とみなしていた。これは単位時間内
についてはアクセス要求回数しか検出していないので、
単位時間内に生じたアクセスの状況の時間的変化はとら
えることができない。このため、単位時間内においても
アクセスの状況の時間的変化がある場合、求めたアクセ
ス頻度が的確なものとはならなかった。本発明は、アク
セス要求回数のみならず、単位時間内で初アクセスされ
た時刻が現時点にどれだけ近いかのデータをも含めてア
クセス頻度を算出するので、現時点でのアクセス状況を
より的確に把握したアクセス頻度を得ることができる。As described above in detail, in the prior art,
The number of access requests in a recent unit time is calculated, and this is regarded as the current access frequency. Since this only detects the number of access requests within the unit time,
It is not possible to capture the temporal changes in the access situation that occurred within a unit time. Therefore, if there is a temporal change in the access situation even within the unit time, the obtained access frequency is not accurate. The present invention calculates the access frequency including not only the number of access requests but also the data of how close the time of the first access within the unit time is to the current time, so that the current access status can be grasped more accurately. The access frequency can be obtained.
【図1】 本発明の実施例の構成を示す図FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.
【図2】 実施例の動作を説明するための図FIG. 2 is a diagram for explaining the operation of the embodiment.
11…レジスタ、12…データ識別回路、13…初アク
セス時点検出回路、14…データ別アクセス回数検出回
路、15…アクセス頻度算出回路。11 ... Register, 12 ... Data identification circuit, 13 ... First access time detection circuit, 14 ... Data-specific access frequency detection circuit, 15 ... Access frequency calculation circuit.
Claims (1)
のアクセス要求回数を各データ毎に計数する第1の手段
と、 前記単位時間内において最初にアクセス要求のあった時
点を各データ毎に検出する第2の手段と、 前記第1の手段により得られたアクセス要求回数と前記
第2の手段により検出された時点情報をもとに、アクセ
ス頻度を算出する第3の手段とを備えたアクセス頻度検
出装置1. A first means for counting, for each data, the number of access requests of data for which access is requested within a unit time; and a time point when the first access request is made within the unit time for each data. The second means for detecting, and the third means for calculating the access frequency based on the number of access requests obtained by the first means and the time information detected by the second means. Access frequency detector
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7037796A JPH08212137A (en) | 1995-02-03 | 1995-02-03 | Access frequency detector |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7037796A JPH08212137A (en) | 1995-02-03 | 1995-02-03 | Access frequency detector |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08212137A true JPH08212137A (en) | 1996-08-20 |
Family
ID=12507468
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7037796A Pending JPH08212137A (en) | 1995-02-03 | 1995-02-03 | Access frequency detector |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08212137A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11338775A (en) * | 1998-05-27 | 1999-12-10 | Nec Corp | Managing method for cache page and medium stored with managing program for cache page |
-
1995
- 1995-02-03 JP JP7037796A patent/JPH08212137A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11338775A (en) * | 1998-05-27 | 1999-12-10 | Nec Corp | Managing method for cache page and medium stored with managing program for cache page |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6937961B2 (en) | Performance monitor and method therefor | |
| US6678777B2 (en) | Integrated real-time performance monitoring facility | |
| WO1999041864A1 (en) | Method and apparatus for minimizing asynchronous transmit fifo under-run and receive fifo over-run conditions | |
| EP1323045A2 (en) | Dynamic priority external transaction system | |
| US5313622A (en) | Timing apparatus and method for generating instruction signals | |
| US8521475B2 (en) | Detecting and recording performance events in a data processing system | |
| US6473841B1 (en) | Signal processing apparatus with memory access history storage | |
| EP3863248B1 (en) | Protocol data unit end handling with fractional data alignment and arbitration fairness | |
| US8131947B2 (en) | Cache snoop limiting within a multiple master data processing system | |
| JPH08212137A (en) | Access frequency detector | |
| WO2008030645A2 (en) | Trace buffer with a processor | |
| EP1008049B1 (en) | Arrangement and method for handling bus clock speed variations | |
| US7433904B1 (en) | Buffer memory management | |
| CN100524246C (en) | Method, apparatus and system for collecting queue performance data | |
| JPH06187256A (en) | Bus trace mechanism | |
| CN119473801B (en) | Bus timeout monitoring method, device and system based on AXI protocol | |
| CN117785074B (en) | Method, device, server and medium for processing input/output timeout | |
| JPH05225060A (en) | Information processor | |
| JP3230668B2 (en) | Data storage and playback system | |
| JPS62191948A (en) | Disk cache control device | |
| JP2859172B2 (en) | Information processing equipment debug circuit | |
| TW410300B (en) | Detection method for the storage capacity of high speed cache | |
| JPH05344142A (en) | Traffic distribution measuring circuit | |
| JPH0415844A (en) | Cache memory control circuit | |
| JPS6270949A (en) | data processing equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050201 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050228 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20050704 |