JPH08137749A - Cache memory device - Google Patents

Cache memory device

Info

Publication number
JPH08137749A
JPH08137749A JP6273426A JP27342694A JPH08137749A JP H08137749 A JPH08137749 A JP H08137749A JP 6273426 A JP6273426 A JP 6273426A JP 27342694 A JP27342694 A JP 27342694A JP H08137749 A JPH08137749 A JP H08137749A
Authority
JP
Japan
Prior art keywords
cache
cache memory
hit rate
hit
memory device
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.)
Withdrawn
Application number
JP6273426A
Other languages
Japanese (ja)
Inventor
Takayoshi Yamamoto
貴義 山本
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6273426A priority Critical patent/JPH08137749A/en
Publication of JPH08137749A publication Critical patent/JPH08137749A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE: To improve efficiency by flexibly allocating cache capacity among the processors on a cache memory device in the computer of a multiprocessor system. CONSTITUTION: The cache memory device of the multiprocessor system is provided with plural cache controllers 2 which exist in corresponding to the processors 1 and which are provided with hit rate measurement means 7, plural cache memory units 3, switch means 6 controlling a connection relation between the respective cache controllers 2 and the respective cache memory units 3 and a hit rate comparison means 5 comparing the outputs of the hit rate measurement means 7 in the respective cache controllers 2. The switch means 6 changes over the respective cache memory units 3 so that the hit rates of the respective cache controllers are averaged in corresponding to the output of the hit rate comparison means 5 at a prescribed period.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マルチプロセサ方式の
計算機におけるキャッシュメモリ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache memory device in a multiprocessor computer.

【0002】プロセッサとメモリの間に高速なメモリ装
置を配置し、メモリアクセスの局所性を利用してアクセ
スを高速化する。この高速メモリ装置がキャッシュメモ
リ装置である。計算機システムの処理能力の向上のた
め、プロセッサを複数使用するマルチプロセサ・システ
ムでは、プロセサごとにキャッシュメモリ装置を用意す
る必要がある。
A high-speed memory device is arranged between a processor and a memory, and the locality of memory access is used to speed up access. This high speed memory device is a cache memory device. In order to improve the processing capacity of the computer system, in a multiprocessor system using a plurality of processors, it is necessary to prepare a cache memory device for each processor.

【0003】[0003]

【従来の技術】従来のマルチプロセサ・システムでは、
キャッシュメモリ装置はプロセサごとに独立して存在
し、従って、その容量は固定的であった。
2. Description of the Related Art In a conventional multiprocessor system,
The cache memory device existed independently for each processor and therefore its capacity was fixed.

【0004】図5は従来技術の構成概念図である。この
システムはm台(#1〜#m)のプロセサ1、m台(#1〜#
m)のキャッシュ・コントローラ2、n台(#1〜#n)の
キャッシュ・メモリ・ユニット3より成り、プロセサ1
には決まったキャッシュ・コントローラ2、キャッシュ
・メモリ・ユニット3が接続されている。すなわち、プ
ロセサ1は決まったキャッシュ・メモリ・ユニット3に
のみアクセスできる。一般に、プロセサ1に備えられる
キャッシュ容量は一定である。図5に示す例ではそれぞ
れ2ユニットより成る。
FIG. 5 is a conceptual view of the configuration of the prior art. This system has m (# 1 ~ #m) processors 1 and m (# 1 ~ #)
m) cache controller 2, n (# 1 to #n) cache memory units 3, processor 1
A fixed cache controller 2 and a fixed cache memory unit 3 are connected to. That is, the processor 1 can access only the predetermined cache memory unit 3. Generally, the cache capacity provided in the processor 1 is constant. In the example shown in FIG. 5, each unit is composed of two units.

【0005】プロセサ1が自分のキャッシュ・メモリ装
置(キャッシュ・コントローラ2、キャッシュ・メモリ
・ユニット3)にアクセスしたとき、そこに必要なデー
タがない場合には、キャッシュ・コントローラ2は主記
憶装置4にアクセスして必要なデータを得る。キャッシ
ュ・メモリ装置に必要なデータが存在する(ヒットし
た)場合には速くデータが得られるが、存在しない場合
が多ければ、主記憶装置の速度はキャッシュに比べては
るかに遅いので、性能が下がる。
When the processor 1 accesses its own cache memory device (cache controller 2 and cache memory unit 3) and there is no necessary data, the cache controller 2 will store data in the main memory device 4. To get the data you need. If the required data exists (hits) in the cache memory device, the data can be obtained quickly, but if it does not exist, the performance of the main memory device is much slower than that of the cache, and the performance decreases. .

【0006】[0006]

【発明が解決しようとする課題】マルチプロセサ・シス
テムでは、プロセサごとに処理の内容が異なる。従っ
て、プロセサの処理内容によっては、あるプロセサは備
えられたキャッシュの容量で充分であるのでヒット率が
高いが、他のプロセサでは備えられたキャッシュの容量
では不足し、中々ヒットしないため性能が低下するよう
な状態が起きる。この場合、システム全体としての性能
も低下する。また、プロセサの処理内容は時間と共に変
化するので、このような状態は時間と共に変化する。
In a multiprocessor system, the contents of processing differ for each processor. Therefore, depending on the processing contents of the processor, the hit rate is high because the cache capacity provided by one processor is sufficient, but the cache capacity provided by other processors is insufficient, and the performance will drop because there will be no hits. The situation occurs. In this case, the performance of the entire system also deteriorates. Moreover, since the processing contents of the processor change with time, such a state changes with time.

【0007】本発明は、キャッシュ・メモリ・ユニット
の接続をプロセッサの負荷などの状況によって変更し、
システム内のプロセサ間で融通することにより、全体と
してヒット率を高くする、すなわちシステムとして効率
を高くすることを目的としている。
According to the present invention, the connection of the cache memory unit is changed according to the situation such as the load of the processor,
The purpose is to increase the hit rate as a whole, that is, to improve the efficiency of the system, by allowing the processors in the system to be flexible.

【0008】[0008]

【課題を解決するための手段】図1は本発明の原理構成
図である。本発明は、マルチプロセサ・システムにおけ
るキャッシュ・メモリ装置であって、プロセサ1に対応
して存在し、ヒット率測定手段7を備えた複数のキャッ
シュ・コントローラ2と、複数のキャッシュ・メモリ・
ユニット3と、各キャッシュ・コントローラ2と各キャ
ッシュ・メモリ・ユニット3との結合関係を制御するス
イッチ手段6と、各キャッシュ・コントローラ2のヒッ
ト率測定手段7の出力を比較するヒット率比較手段5と
を有する。
FIG. 1 is a block diagram showing the principle of the present invention. The present invention is a cache memory device in a multiprocessor system, which exists corresponding to the processor 1 and has a plurality of cache controllers 2 provided with a hit rate measuring means 7, and a plurality of cache memory devices.
The hit ratio comparing means 5 for comparing the output of the unit 3, the switch means 6 for controlling the coupling relationship between each cache controller 2 and each cache memory unit 3, and the output of the hit rate measuring means 7 of each cache controller 2. Have and.

【0009】キャッシュ・メモリ・ユニット3は、主と
して主記憶のブロックをコピーする複数のデータブロッ
クを保持するデータメモリおよびそれらのブロックのア
ドレス対応情報を保持するタグメモリとよりなる。
The cache memory unit 3 is mainly composed of a data memory holding a plurality of data blocks for copying blocks of the main memory and a tag memory holding address correspondence information of these blocks.

【0010】スイッチ手段6は、各キャッシュ・メモリ
・ユニット3をどのキャッシュ・コントローラへ接続す
るかを決める手段である。所定の時期に、ヒット率比較
手段5の出力に応じて、ヒット率の高いキャッシュ・コ
ントローラから、ヒット率の低いキャッシュ・コントロ
ーラへ接続替えする。
The switch means 6 is means for deciding which cache controller each cache memory unit 3 is connected to. At a predetermined time, according to the output of the hit ratio comparison means 5, the cache controller with the high hit ratio is switched to the cache controller with the low hit ratio.

【0011】スイッチ手段6は、必ずしもすべてのキャ
ッシュ・メモリ・ユニット3を切り替える必要はなく、
一部を切り替えられるように構成してもよい。
The switch means 6 does not necessarily need to switch all the cache memory units 3.
You may comprise so that a part may be switched.

【0012】[0012]

【作用】本発明は、キャッシュ・メモリ・ユニット3を
各プロセサ1に(実際にはキャッシュ・コントローラ2
に)その動作状況に応じて割り当てる。すなわち、キャ
ッシュメモリ容量を多く必要としているプロセッサに多
く割り当てるように、動的に変更する。
According to the present invention, the cache memory unit 3 is assigned to each processor 1 (actually, the cache controller 2
To) Assign according to the operation status. That is, the cache memory capacity is dynamically changed so as to be allocated to a processor that requires a large amount.

【0013】キャッシュ・メモリ装置の動作状況を判断
する指標として、プロセサ毎のキャッシュのヒット率を
使用する。ヒット率とは、プロセッサ1がメモリデータ
をアクセスをした場合に、そのデータがキャッシュ・メ
モリ装置内に存在する割合である。キャッシュ・メモリ
装置のほうが主記憶装置より高速にアクセスできるた
め、ヒット率が高いほど性能が高くなる。
The cache hit rate for each processor is used as an index for determining the operating status of the cache memory device. The hit rate is the rate at which the data is present in the cache memory device when the processor 1 accesses the memory data. Since the cache memory device can be accessed faster than the main memory device, the higher the hit rate, the higher the performance.

【0014】キャッシュ・コントローラ2のヒット率測
定手段7は、メモリアクセス回数を積算した値と、メモ
リアクセスごとのキャッシュ・メモリ・ユニット3の応
答からキャッシュヒット回数を積算した値とからキャッ
シュのヒット率を算出することができる。
The hit rate measuring means 7 of the cache controller 2 calculates the cache hit rate from the value obtained by integrating the memory access count and the value obtained by integrating the cache hit count from the response of the cache memory unit 3 for each memory access. Can be calculated.

【0015】ヒット率比較手段5は、各キャッシュ・コ
ントローラ2のヒット率測定手段7が算出したヒット率
を比較する。その結果、ヒット率の低いプロセッサ(キ
ャッシュ・コントローラ)、高いプロセサ(キャッシュ
・コントローラ)がどれか、その差がどの程度か等が判
断され出力される。
The hit rate comparing means 5 compares the hit rates calculated by the hit rate measuring means 7 of each cache controller 2. As a result, the processor (cache controller) with a low hit rate, the processor with a high hit rate (cache controller), the difference between them, and the like are determined and output.

【0016】スイッチ手段6は、所定の時期に(例え
ば、定期的に、ヒット率の差が一定の値を越えた場合
に、特定の事象が発生したときに等)、キャッシュ・メ
モリ・ユニット3とキャッシュ・コントローラ2の間の
信号(アドレス線とデータ線と制御線)を切り換えるス
イッチを制御して、最も高いヒット率のキャッシュ・コ
ントローラに割り当てられているキャッシュ・メモリ・
ユニットの1つを切り換えて、最もヒット率の低いキャ
ッシュ・コントローラに割り当てるようにする。これに
より、その後、最も高かったプロセサのヒット率は下が
るが、最も低かったプロセサのヒット率は向上し、プロ
セサごとのヒット率は平均化する。従って、総合的なシ
ステム性能は高くなる。
The switch means 6 is configured to operate the cache memory unit 3 at a predetermined time (for example, periodically, when the difference between the hit ratios exceeds a certain value, or when a specific event occurs). The cache memory assigned to the cache controller with the highest hit ratio by controlling the switch that switches the signals (address line, data line, and control line) between the cache controller 2 and the cache controller 2.
Switch one of the units to assign it to the cache controller with the lowest hit rate. As a result, after that, the hit rate of the highest processor decreases, but the hit rate of the lowest processor improves, and the hit rate for each processor is averaged. Therefore, the overall system performance is high.

【0017】[0017]

【実施例】図2は本発明の一実施例の要部を示す構成制
説明図である。なお、本図はメモリからの読み出し時を
主体にして表現したもので、書込み時は省略してある。
図1と同一の機能のものは、同一の符号を付して示す。
以下、図面を参照して本発明の実施例を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 2 is a structural explanatory view showing the essential parts of an embodiment of the present invention. It should be noted that this figure is mainly shown at the time of reading from the memory, and is omitted at the time of writing.
The same functions as those in FIG. 1 are designated by the same reference numerals.
Embodiments of the present invention will be described below with reference to the drawings.

【0018】本実施例は、2つのプロセサよりなるマル
チプロセサシステムであり、2つのプロセサ1a,1b はそ
れぞれキャッシュ・コントローラ2a,2b を1つずつ持
ち、4つのキャッシュ・メモリ・ユニット3a,3b,3c,3d
の内の1つ(3aと3d) をそれぞれ占有するが、残りの2
つ 3b,3cを共有する。キャッシュ・メモリ・ユニット3a
〜3dは、アクセスごとにキャッシュヒット/ミスを判断
し、結果をキャッシュ・コントローラに通知する(図中
のキャッシュ・メモリ・ユニット3a〜3dからのびる”
H”の線)。キャッシュ・メモリ・ユニット3b,3c とキ
ャッシュ・コントローラ2a,2b の間にはスイッチ回路61
があり、キャッシュ・メモリ・ユニット3での判断結果
をどちらのキャッシュ・コントローラ2に与えるかを切
り換える。同様に、アドレス線、データ線およびその他
の信号線もスイッチ回路61により切り換える。
This embodiment is a multiprocessor system consisting of two processors, and each of the two processors 1a and 1b has one cache controller 2a and 2b, and four cache memory units 3a, 3b and 3c. , 3d
Occupies one of the two (3a and 3d) respectively, but the remaining two
Share 3b, 3c. Cache memory unit 3a
~ 3d judges cache hit / miss for each access and notifies the result to the cache controller (extends from cache memory units 3a-3d in the figure)
H "line). A switch circuit 61 is provided between the cache memory units 3b and 3c and the cache controllers 2a and 2b.
Therefore, the cache controller 2 switches which cache controller 2 the judgment result in the cache memory unit 3 is applied to. Similarly, the address line, the data line and other signal lines are switched by the switch circuit 61.

【0019】図3は、本実施例のキャッシュ・メモリ・
ユニットの構成および動作の説明図である。このキャッ
シュ・メモリ・ユニット3は64バイトを1ブロックと
してブロック単位で主記憶データをコピーする。コピー
・データを記憶するデータメモリ32と、そのデータと主
記憶のブロックとの対応情報を記憶するタグメモリ31と
を有する。データメモリ32は、ブロックアドレスの下位
8ビットにより16KBのアドレス空間を256個の領
域に分け、各領域ごとに一つのデータブロックを記憶す
る。また、タグメモリ31は、各領域について主記憶のど
のブロックを記録しているかを中心とする情報を保持す
る。他に、入力されたブロックアドレスとタグメモリ31
に記録されたブロックアドレスとを比較する比較器33
と、データメモリ32に保存されたデータを出力するか否
かを切り換える(およびブロック内アドレスによりデー
タを選択する)選択回路34等より構成される。
FIG. 3 shows the cache memory of this embodiment.
It is explanatory drawing of a structure and operation | movement of a unit. The cache memory unit 3 copies the main memory data in block units with 64 bytes as one block. It has a data memory 32 for storing copy data and a tag memory 31 for storing the correspondence information between the data and the main memory block. The data memory 32 divides the 16 KB address space into 256 areas by the lower 8 bits of the block address, and stores one data block in each area. Further, the tag memory 31 holds information about which block of the main memory is recorded for each area. Besides, the input block address and tag memory 31
Comparator 33 for comparing with the block address recorded in
And a selection circuit 34 for switching whether to output the data stored in the data memory 32 (and selecting the data according to the in-block address).

【0020】以下にキャッシュ・メモリ・ユニットの動
作を説明する。 キャッシュ・メモリ・ユニット3にアドレス(ブロッ
クアドレス+ブロック内アドレス)が与えられると、ブ
ロックアドレスの下位8ビットからどの領域にアクセス
されたかを判断する。
The operation of the cache memory unit will be described below. When an address (block address + intra-block address) is given to the cache memory unit 3, it is determined which area is accessed from the lower 8 bits of the block address.

【0021】次にタグメモリ31を参照し、その領域に
ついてどのブロックアドレスを記憶しているかを読み出
す。 比較器33でブロックアドレスの上位とタグメモリ31の
出力値を比較する。
Next, the tag memory 31 is referenced to read out which block address is stored in the area. The comparator 33 compares the upper value of the block address with the output value of the tag memory 31.

【0022】一致すればキャッシュヒットであり、デ
ータメモリ32からデータを読み出し、アドレス下位(ブ
ロック内アドレス)で指定されるデータをキャッシュ・
コントローラ2に出力する。同時にキャッシュヒットで
あることを通知する。
If they match, there is a cache hit, the data is read from the data memory 32, and the data specified by the lower address (intra-block address) is cached.
Output to the controller 2. At the same time, notify that there is a cache hit.

【0023】一致しなければ、データメモリ32からは
出力しない。キャッシュミスしたことをキャッシュ・コ
ントローラ2に通知する。この場合、キャッシュ・コン
トローラ2は主記憶装置4からデータを読み込む処理を
行う。
If they do not match, the data is not output from the data memory 32. The cache controller 2 is notified of the cache miss. In this case, the cache controller 2 performs a process of reading data from the main storage device 4.

【0024】図2において、キャッシュ・コントローラ
2内のヒット率測定手段7として、メモリに対するアク
セス回数を積算するカウンタ71と、キャッシュ・メモリ
・ユニット3から送られてくるキャッシュヒット回数を
積算するカウンタ72とをもつ。アクセス回数が一定の値
に達すると、アクセス回数積算カウンタ71からヒット数
積算カウンタ72とレジスタ73とに信号を送る。この信号
によりヒット数積算カウンタ72の値をレジスタ73に保持
し、ヒット数積算カウンタ72をクリアする。これ以後、
新たにヒット回数を数えなおす。レジスタ73に保持され
たキャッシュヒット回数は比較器5に送る。ここで比較
器5に送り出される値は、一定回数のメモリアクセスに
対するキャッシュのヒット回数であり、これはすなわち
キャッシュヒット率に相当する。この仕組みにより、各
プロセサが一定回数のメモリアクセスを行うごとに、キ
ャッシュのヒット率が更新される。
In FIG. 2, as the hit rate measuring means 7 in the cache controller 2, a counter 71 for accumulating the number of accesses to the memory and a counter 72 for accumulating the number of cache hits sent from the cache memory unit 3 are included. With and. When the access count reaches a certain value, the access count integration counter 71 sends a signal to the hit number integration counter 72 and the register 73. This signal holds the value of the hit number integration counter 72 in the register 73 and clears the hit number integration counter 72. After this,
Recount new hits. The number of cache hits held in the register 73 is sent to the comparator 5. Here, the value sent to the comparator 5 is the number of cache hits with respect to a fixed number of memory accesses, which corresponds to the cache hit rate. With this mechanism, the cache hit rate is updated every time each processor makes a certain number of memory accesses.

【0025】比較器5では適当な間隔で、各キャッシュ
・コントローラ2のキャッシュヒット率を比較する。こ
の間隔は、一定周期によってもよいし、適当な事象によ
ってもよい。各キャッシュ・コントローラ2においてヒ
ット率を更新する間隔とは独立に設定して構わない。
The comparator 5 compares the cache hit rates of the cache controllers 2 at appropriate intervals. This interval may be a fixed cycle or an appropriate event. It may be set independently of the interval at which the hit rate is updated in each cache controller 2.

【0026】比較器5において求められたヒット率の比
較結果をスイッチ手段6に伝える。本例では、4つのキ
ャッシュ・メモリ・ユニット3a〜3dの内の2つのキャッ
シュ・メモリ・ユニット3b,3c をスイッチ手段6を通じ
てキャッシュ・コントローラ2に接続している。スイッ
チ手段6は、比較器5からの結果に従い、キャッシュ・
メモリ・ユニット3b,3c をどちらのキャッシュ・コント
ローラ2に接続するかを決定する。
The comparison result of the hit ratios obtained by the comparator 5 is transmitted to the switch means 6. In this example, two cache memory units 3b and 3c out of the four cache memory units 3a to 3d are connected to the cache controller 2 through the switch means 6. The switch means 6, according to the result from the comparator 5,
The cache controller 2 to which the memory units 3b and 3c are connected is determined.

【0027】スイッチ手段6は、2ビットのシフトレジ
スタ60と、スイッチ回路61とから成る。キャッシュ・コ
ントローラ2aと2bのヒット率の差の絶対値が所定値以上
であり、正の値であれば‘L’(論理‘0’)値を、負
の値であれば‘H’(論理‘1’)値をシフトレジスタ
60にシフトインする。そうでなければ、そのままとす
る。キャッシュ・メモリ・ユニット3bのスイッチ回路61
はシフトレジスタ60の上位ビットが‘H’であれば、キ
ャッシュ・コントローラ2aに接続し、‘L’であれば、
キャッシュ・コントローラ2bに接続する。同様に、キャ
ッシュ・メモリ・ユニット3cのスイッチ回路61はシフト
レジスタ60の下位ビットが‘H’であれば、キャッシュ
・コントローラ2aに接続し、‘L’であれば、キャッシ
ュ・コントローラ2bに接続する。
The switch means 6 comprises a 2-bit shift register 60 and a switch circuit 61. If the absolute value of the difference between the hit rates of the cache controllers 2a and 2b is greater than or equal to a predetermined value and is a positive value, an'L '(logical' 0 ') value is given; if a negative value, an'H' (logical value is given. '1') value shift register
Shift in to 60. Otherwise, leave it as is. Switch circuit 61 of cache memory unit 3b
Is connected to the cache controller 2a if the high-order bit of the shift register 60 is'H ', and if it is'L',
Connect to cache controller 2b. Similarly, the switch circuit 61 of the cache memory unit 3c is connected to the cache controller 2a if the lower bit of the shift register 60 is'H ', and is connected to the cache controller 2b if it is'L'. .

【0028】図4にスイッチ回路の構造を示す。(1)
は出力切替え回路であり、キャッシュ・メモリ・ユニッ
トからの信号を内部で分岐し、シフトレジスタ60からの
信号に従い、一方のキャッシュ・コントローラへの信号
を止める。(2)は入力切替え回路であり、キャッシュ
・メモリ・ユニットへ2つのキャッシュ・コントローラ
2から入力される信号をシフトレジスタ60からの信号に
よって切り替える。従って、本実施例では、プロセサは
処理状況により、最大3ユニット〜最小1ユニットのキ
ャッシュ・メモリ・ユニットを動的に割り当てられる。
なお、全部のキャッシュ・メモリ・ユニットを切り換え
る構成にしてもよい。
FIG. 4 shows the structure of the switch circuit. (1)
Is an output switching circuit, which internally branches the signal from the cache memory unit and stops the signal to one cache controller according to the signal from the shift register 60. (2) is an input switching circuit, which switches the signals input from the two cache controllers 2 to the cache memory unit by the signals from the shift register 60. Therefore, in this embodiment, the processor is dynamically allocated with a maximum of 3 units and a minimum of 1 cache memory unit depending on the processing status.
It should be noted that the configuration may be such that all cache memory units are switched.

【0029】キャッシュ・コントローラは複数のキャッ
シュ・メモリ・ユニットを制御する必要があるので、最
大のユニット数に対応することができる必要がある。例
えば本実施例では、セット・アソシアティブ、3ウエイ
方式の制御回路である。
Since the cache controller needs to control a plurality of cache memory units, it must be able to handle the maximum number of units. For example, in this embodiment, it is a set associative, 3-way control circuit.

【0030】プロセサ(キャッシュ・コントローラ)の
数、及びキャッシュ・メモリ・ユニットの数が本実施例
と異なる場合も同様に構成することができる。
Even when the number of processors (cache controllers) and the number of cache memory units are different from those of this embodiment, the same configuration can be adopted.

【0031】[0031]

【発明の効果】以上説明したように、本発明によれば、
マルチプロセサシステムにおいて、キャッシュ・メモリ
・ユニット(キャッシュ容量)の割り当てを、キャッシ
ュヒット率に応じて動的に制御することによって、シス
テム全体としてのキャッシュのヒット率が上がり、シス
テム性能の向上を図ることができる。
As described above, according to the present invention,
Dynamic control of cache memory unit (cache capacity) allocation according to the cache hit rate in a multi-processor system increases the cache hit rate of the entire system and improves system performance. it can.

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

【図1】 原理構成図[Figure 1] Principle configuration diagram

【図2】 実施例の要部を示す構成説明図FIG. 2 is a structural explanatory view showing a main part of the embodiment.

【図3】 キャッシュ・メモリ・ユニットの構成および
動作の説明図
FIG. 3 is an explanatory diagram of the configuration and operation of a cache memory unit.

【図4】 スイッチ回路の構成例FIG. 4 is a configuration example of a switch circuit.

【図5】 従来技術の構成概念図FIG. 5 is a conceptual diagram of a configuration of a conventional technique.

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

1,1a,1b プロセサ 2, 2a,2b キャッシュ・コントローラ 3, 3a,3b,3c,3d キャッシュ・メモリ・ユニット 4 主記憶装置 5 比較手段(比較器) 6 スイッチ手段 60 シフトレジスタ 61 スイッチ回路 7 ヒット率測定手段 71 アクセス回数積算カウンタ 72 ヒット数積算カ
ウンタ 73 レジスタ 74 OR回路
1, 1a, 1b Processor 2, 2a, 2b Cache controller 3, 3a, 3b, 3c, 3d Cache memory unit 4 Main memory 5 Comparison means (comparator) 6 Switch means 60 Shift register 61 Switch circuit 7 Hits Rate measuring means 71 Access count integration counter 72 Hit count integration counter 73 Register 74 OR circuit

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マルチプロセサ・システムにおけるキャ
ッシュメモリ装置であって、 プロセサに対応して存在し、ヒット率測定手段を備えた
複数のキャッシュ・コントローラと、 複数のキャッシュ・メモリ・ユニットと、 各キャッシュ・コントローラと各キャッシュ・メモリ・
ユニットとの結合関係を制御するスイッチ手段と、 前記の各ヒット率測定手段の出力を比較するヒット率比
較手段とを有し、 スイッチ手段は、所定の時期に、ヒット率比較手段の出
力に応じて、キャッシュ・コントローラとキャッシュ・
メモリ・ユニットとの結合関係を変更するように構成し
たことを特徴とするキャッシュメモリ装置。
1. A cache memory device in a multi-processor system, comprising a plurality of cache controllers which are provided corresponding to a processor and which are provided with hit ratio measuring means, a plurality of cache memory units, and each cache memory device. Controller and each cache memory
It has a switch means for controlling the coupling relationship with the unit and a hit rate comparing means for comparing the outputs of the hit rate measuring means, and the switch means responds to the output of the hit rate comparing means at a predetermined time. Cache controller and cache
A cache memory device, characterized in that it is configured to change a coupling relationship with a memory unit.
JP6273426A 1994-11-08 1994-11-08 Cache memory device Withdrawn JPH08137749A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6273426A JPH08137749A (en) 1994-11-08 1994-11-08 Cache memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6273426A JPH08137749A (en) 1994-11-08 1994-11-08 Cache memory device

Publications (1)

Publication Number Publication Date
JPH08137749A true JPH08137749A (en) 1996-05-31

Family

ID=17527739

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6273426A Withdrawn JPH08137749A (en) 1994-11-08 1994-11-08 Cache memory device

Country Status (1)

Country Link
JP (1) JPH08137749A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282880A (en) * 2008-05-26 2009-12-03 Fujitsu Ltd Cache memory system
JP2013516006A (en) * 2009-12-29 2013-05-09 エンパイア テクノロジー ディベロップメント エルエルシー Shared memory for energy efficient multi-core processors
US10545870B2 (en) 2015-07-22 2020-01-28 Fujitsu Limited Arithmetic processing device and arithmetic processing device control method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009282880A (en) * 2008-05-26 2009-12-03 Fujitsu Ltd Cache memory system
JP2013516006A (en) * 2009-12-29 2013-05-09 エンパイア テクノロジー ディベロップメント エルエルシー Shared memory for energy efficient multi-core processors
US9367462B2 (en) 2009-12-29 2016-06-14 Empire Technology Development Llc Shared memories for energy efficient multi-core processors
US10545870B2 (en) 2015-07-22 2020-01-28 Fujitsu Limited Arithmetic processing device and arithmetic processing device control method

Similar Documents

Publication Publication Date Title
KR100514677B1 (en) Reconfigurable cache controller for nonuniform memory access computer systems
US5584013A (en) Hierarchical cache arrangement wherein the replacement of an LRU entry in a second level cache is prevented when the cache entry is the only inclusive entry in the first level cache
US5530829A (en) Track and record mode caching scheme for a storage system employing a scatter index table with pointer and a track directory
US5091851A (en) Fast multiple-word accesses from a multi-way set-associative cache memory
JP2662603B2 (en) Method and apparatus for filtering invalidation requests
KR100491435B1 (en) System and method for maintaining memory coherency in a computer system having multiple system buses
CN101135994B (en) Method and apparatus for dividing buffer memory space and buffer memory controller thereof
US8464009B2 (en) Method for memory interleave support with a ceiling mask
US6766424B1 (en) Computer architecture with dynamic sub-page placement
JPH11232173A (en) Data processing system provided with remote cache incorporated in local memory and cc-numa (cache consistent type non-uniform memory access) architecture
JP2003131946A (en) Method and device for controlling cache memory
CN1131481C (en) Cache relative agreement containing suspension state with exact mode and non-exact mode
EP0470739B1 (en) Method for managing a cache memory system
KR100395768B1 (en) Multi-level cache system
US20070266199A1 (en) Virtual Address Cache and Method for Sharing Data Stored in a Virtual Address Cache
JPH08137749A (en) Cache memory device
US6813694B2 (en) Local invalidation buses for a highly scalable shared cache memory hierarchy
US7865691B2 (en) Virtual address cache and method for sharing data using a unique task identifier
US6792512B2 (en) Method and system for organizing coherence directories in shared memory systems
JP3516326B2 (en) Memory controller having shared cache memory and computer system having the same
US6826655B2 (en) Apparatus for imprecisely tracking cache line inclusivity of a higher level cache
US6826654B2 (en) Cache invalidation bus for a highly scalable shared cache memory hierarchy
JP2009505178A (en) Apparatus and method for storing data and / or instructions in a computer system comprising at least two instruction execution units and at least a first storage device or storage area for data and / or instructions
US6249843B1 (en) Store instruction having horizontal memory hierarchy control bits
US6253286B1 (en) Apparatus for adjusting a store instruction having memory hierarchy control bits

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20020115