Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0799517B2 - Shared resource management method - Google Patents
[go: Go Back, main page]

JPH0799517B2 - Shared resource management method - Google Patents

Shared resource management method

Info

Publication number
JPH0799517B2
JPH0799517B2 JP3181502A JP18150291A JPH0799517B2 JP H0799517 B2 JPH0799517 B2 JP H0799517B2 JP 3181502 A JP3181502 A JP 3181502A JP 18150291 A JP18150291 A JP 18150291A JP H0799517 B2 JPH0799517 B2 JP H0799517B2
Authority
JP
Japan
Prior art keywords
resource
cache memory
resources
management unit
free
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP3181502A
Other languages
Japanese (ja)
Other versions
JPH04362766A (en
Inventor
正俊 佐藤
浩一 武田
Original Assignee
工業技術院長
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 工業技術院長 filed Critical 工業技術院長
Priority to JP3181502A priority Critical patent/JPH0799517B2/en
Publication of JPH04362766A publication Critical patent/JPH04362766A/en
Publication of JPH0799517B2 publication Critical patent/JPH0799517B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Multi Processors (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、複数のプロセッサが共
有メモリ上の資源を共有するシステムにおける共有資源
管理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shared resource management method in a system in which a plurality of processors share resources on a shared memory.

【0002】[0002]

【従来の技術】いわゆるマルチプロセッサ方式におい
て、複数のプロセッサが共有メモリ上の資源を共有する
場合、大別して一括集中管理と分割局所管理とに分類す
ることができる。図2に従来の一括集中管理方法を採用
した装置のブロック図を示す。図において、複数のプロ
セッサ(ここでは3台のプロセッサ1A、1B、1C)
が、それぞれバスライン2を介して共有メモリ3に接続
されている。この共有メモリ3には、上記3台のプロセ
ッサ1A、1B、1Cが互いに協調しあいながら仕事を
実行する際に必要となる資源が格納されている。この資
源というのは、共有メモリ3上に書き込まれたプログラ
ムやデータ、あるいはデータ書き込みのための領域のこ
とを指す。一括集中管理方法では、全てのプロセッサは
共有メモリ3上の全ての資源をアクセス可能にしてい
る。この管理のために共有メモリ管理部4が設けられ
る。この共有メモリ管理部4は、各プロセッサがそれぞ
れ共有メモリ3上の資源の割付けを要求した場合、その
空き資源を指定するための空き資源ポインタ5を備えて
いる。
2. Description of the Related Art In a so-called multiprocessor system, when a plurality of processors share a resource on a shared memory, they can be roughly classified into collective centralized management and divided local management. FIG. 2 shows a block diagram of an apparatus adopting the conventional collective centralized management method. In the figure, a plurality of processors (here, three processors 1A, 1B, 1C)
Are connected to the shared memory 3 via the bus lines 2, respectively. The shared memory 3 stores resources that are required when the three processors 1A, 1B, 1C cooperate with each other to execute work. This resource refers to a program or data written in the shared memory 3, or an area for writing data. In the collective centralized management method, all the processors make all the resources on the shared memory 3 accessible. A shared memory management unit 4 is provided for this management. The shared memory management unit 4 includes a free resource pointer 5 for designating a free resource when each processor requests the allocation of the resource on the shared memory 3.

【0003】図3にこのような共有メモリ上の空き資源
管理の概念図を示す。共有メモリ3上には、適当な大き
さに選定された単位量の資源6が多数存在する。これら
の資源6は、必ずしも物理的に連続して配置されておら
ず、その管理のためにそれぞれポインタを用いて連鎖状
につながり、いわゆるチェインを構成している。空き資
源ポインタ5は、共有メモリ3上に存在する空き資源6
の内、チェインの先頭の空き資源のアドレスを保持して
いる。空き資源の割付け要求があると、このチェインの
先頭の空き資源が、要求のあったプロセッサに割付けら
れ、空き資源ポインタ5は、チェインの2番目の空き資
源を指すよう書き換えられる。こうして次々と空き資源
が割付けられ、最後の空き資源が割付けられた後は、す
でに共有メモリ3上には空き資源が存在しなくなる。こ
の場合、割付け要求があってもプロセッサは他の空き資
源が解放されるまで待機することになる。一方、いずれ
かのプロセッサに割付けられていた資源が解放された場
合、これは空き資源となってこの図3に示した空き資源
のチェインの先頭に追加される。そして、空き資源ポイ
ンタ5は、その先頭の空き資源のアドレスを指すよう内
容が書き換えられる。一括集中管理においては以上のよ
うな方法で共有メモリが管理されていた。
FIG. 3 shows a conceptual diagram of such free resource management on the shared memory. On the shared memory 3, there are a large number of resources 6 each having a unit amount selected to have an appropriate size. These resources 6 are not necessarily arranged physically consecutively, and for management thereof, they are connected in a chain using pointers to form a so-called chain. The free resource pointer 5 is a free resource 6 existing in the shared memory 3.
Among them, it holds the address of the free resource at the head of the chain. When a free resource allocation request is made, the free resource at the head of this chain is allocated to the requested processor, and the free resource pointer 5 is rewritten to point to the second free resource in the chain. In this way, free resources are allocated one after another, and after the last free resource is allocated, there are no free resources already on the shared memory 3. In this case, even if there is an allocation request, the processor waits until other free resources are released. On the other hand, when the resource allocated to any of the processors is released, it becomes a free resource and is added to the head of the chain of free resources shown in FIG. Then, the content of the free resource pointer 5 is rewritten to point to the address of the leading free resource. In the collective centralized management, the shared memory is managed by the above method.

【0004】図4には従来の分割局所管理方法を採用し
た装置のブロック図を示す。図の装置の場合、複数のプ
ロセッサここでは3台のプロセッサ1A、1B、1C
が、バスライン2を介して共有メモリ3に接続されてお
り、各プロセッサにはそれぞれ個別にメモリ管理部7
A、7B、7Cが接続されている。そして、共有メモリ
3には、予めプロセッサ1A、1B、1Cがそれぞれ専
用に使用する資源3A、3B、3Cを設定しておく。例
えば、この資源3Aは、先に図3で説明した空き資源6
等が一定量含まれているものである。メモリ管理部7
A、7B、7Cは、それぞれ該当するプロセッサの占有
する資源を個別に管理する。その管理方法は図3で説明
したのと同様である。分割局所管理においては、このよ
うに予め各プロセッサに対し、必要と思われる資源を割
当ててしまう。
FIG. 4 shows a block diagram of an apparatus adopting a conventional divided local management method. In the case of the apparatus shown in the figure, a plurality of processors, here three processors 1A, 1B, 1C
Are connected to the shared memory 3 via the bus line 2, and each processor has a memory management unit 7 individually.
A, 7B and 7C are connected. Then, in the shared memory 3, resources 3A, 3B, and 3C that are exclusively used by the processors 1A, 1B, and 1C are set in advance. For example, this resource 3A is the free resource 6 previously described in FIG.
Etc. are included in a certain amount. Memory management unit 7
The resources A, 7B, and 7C individually manage the resources occupied by the corresponding processors. The management method is the same as that described in FIG. In the divided local management, the resources considered to be necessary are allocated in advance to each processor in this way.

【0005】[0005]

【発明が解決しようとする課題】ところで、上記のよう
な従来の管理方法にはいずれも次のような問題があっ
た。まず、一括集中管理方法によれば、共有メモリ管理
部4が、共有メモリ3上の資源を一括して管理するた
め、管理の手間自体を少なくすることができる。しかし
ながら、共有メモリ管理部4に対する割付け要求が集中
すると多くのアクセス待ちが生じる危険性がある。この
ようなアクセスの集中は排他制御に基づくアクセスとな
り、プロセッサが共有するバスライン2のトラフィック
を著しく増大する可能性がある。従って、一括集中管理
を行うシステムにおいては、共有メモリを使用するプロ
セッサの台数を大きく制限するという問題があった。
By the way, the conventional management methods as described above have the following problems. First, according to the collective centralized management method, since the shared memory management unit 4 collectively manages the resources on the shared memory 3, the management itself can be reduced. However, if allocation requests to the shared memory management unit 4 are concentrated, there is a risk that many access waits will occur. Such concentration of access results in access based on exclusive control, which may significantly increase the traffic of the bus line 2 shared by the processors. Therefore, there is a problem that the number of processors that use the shared memory is greatly limited in the system that performs centralized management in a lump.

【0006】一方、分割局所管理の場合、先に説明した
ように各プロセッサ毎にメモリ管理部が設けられるた
め、アクセス集中による上記のような共有バスのボトル
ネックを解消することが可能である。しかしながら、プ
ロセッサ毎に別個のメモリ管理部が資源の管理を行うこ
とにより、全体として資源の割当てがアンバランスにな
り、資源に無駄が生じるようになる。即ち、予め各プロ
セッサに固定的に資源を割付けると、空き資源が無駄に
割付けられるプロセッサが生じたり、空き資源の不足す
るプロセッサが生じたりする。これは負荷の不均一性に
よるもので、メモリ資源ではフラグメンテーション問題
等も生じる。本発明は以上の点に着目してなされたもの
で、資源を有効に活用し、かつアクセス集中によるボト
ルネック等の障害を生じない共有資源管理方法を提供す
ることを目的とするものである。
On the other hand, in the case of divided local management, since the memory management unit is provided for each processor as described above, it is possible to eliminate the bottleneck of the shared bus due to access concentration. However, since the memory management unit separate for each processor manages the resources, the resource allocation is unbalanced as a whole, and the resources are wasted. That is, if resources are fixedly allocated to each processor in advance, some processors may be unnecessarily allocated with free resources, and some processors may have insufficient free resources. This is due to the non-uniformity of the load, which causes a fragmentation problem in the memory resource. The present invention has been made in view of the above points, and an object of the present invention is to provide a shared resource management method that effectively utilizes resources and does not cause bottlenecks and other failures due to access concentration.

【0007】[0007]

【課題を解決するための手段】本発明の共有資源管理方
法は、複数のプロセッサが共有メモリ上の資源を共有す
るシステムにおいて、前記共有メモリ上の空き資源を管
理する共有メモリ管理部と、前記共有メモリの所定の資
源を転記してアクセスするために、前記各プロセッサ毎
に個別に設けられたキャッシュメモリと、前記キャッシ
ュメモリ上の空き資源を管理するキャッシュメモリ管理
部とを設け、前記各プロセッサは、前記キャッシュメモ
リ管理部に対して、空き資源の割当て要求を行い、当該
キャッシュメモリに空き資源が無い場合に、前記共有メ
モリ管理部に空き資源の割当要求を行ない、前記キャッ
シュメモリ上の空き資源は、キャッシュメモリからの資
源の追い出し時に、前記共有メモリ管理部へ管理を移す
ことを特徴とするものである。
A shared resource management method of the present invention is a system in which a plurality of processors share resources on a shared memory, and a shared memory management unit for managing free resources on the shared memory; In order to transfer and access a predetermined resource of the shared memory, a cache memory individually provided for each processor and a cache memory management unit that manages free resources on the cache memory are provided, and each processor is provided. Issues a free resource allocation request to the cache memory management unit, and when there is no free resource in the cache memory, makes a free resource allocation request to the shared memory management unit. The resource is transferred to the shared memory management unit when the resource is expelled from the cache memory. Than it is.

【0008】[0008]

【作用】この方法は、各プロセッサが共有メモリ上の資
源をアクセスするために、それぞれ別個にキャッシュメ
モリを用意する。そしてキャッシュメモリ上へ転記した
資源に空き資源が発生した場合、これを直ちに共有メモ
リ側に返すことなくキャッシュメモリ管理部で管理す
る。従って、各プロセッサはキャッシュメモリ管理部に
空き資源割当て要求を行う。そしてキャッシュメモリ上
に空き資源が無い場合にのみ、共有メモリ管理部に空き
資源の割当て要求を行う。一方、キャッシュメモリから
資源の追い出しを行う場合に、その資源が空き資源であ
れば共有メモリ管理部へ管理が移される。これによっ
て、一旦キャッシュメモリへ転記された空き資源はその
キャッシュメモリをアクセスするプロセッサに優先的に
割付けられる。この割付けはローカルに行われ、分割局
所管理的となる。また、キャッシュメモリ上へ転記され
る資源はその量が限定されており、大部分は共有メモリ
3上で管理されるため、効率的な一括集中管理も行え
る。
In this method, each processor separately prepares a cache memory in order to access the resources on the shared memory. When an empty resource occurs in the resource transferred to the cache memory, it is managed by the cache memory management unit without immediately returning it to the shared memory side. Therefore, each processor issues a free resource allocation request to the cache memory management unit. Only when there is no free resource in the cache memory, the shared memory management unit is requested to allocate the free resource. On the other hand, when the resource is expelled from the cache memory, if the resource is a free resource, the management is transferred to the shared memory management unit. As a result, the free resource once transferred to the cache memory is preferentially allocated to the processor accessing the cache memory. This allocation is done locally and is split-locally managed. Further, the amount of resources transferred to the cache memory is limited, and most of them are managed on the shared memory 3, so that efficient collective centralized management can be performed.

【0009】[0009]

【実施例】以下、本発明を図面を用いて詳細に説明す
る。図1は本発明の方法の実施例を示すフローチャート
である。図の方法を説明する前に、本発明実施のための
ハードウェアを説明する。図5は、本発明の方法を実施
するための装置ブロック図である。図5において複数の
プロセッサ、即ちここでは3台のプロセッサ1A、1
B、1Cは、それぞれバスライン2を介して共有メモリ
3上の資源を共有する構成とされている。この場合に、
本発明の方法においては、各プロセッサは共有メモリ3
を直接アクセスすることなく、キャッシュメモリ12を
アクセスする構成とされている。このキャッシュメモリ
12の空き資源を管理するために、それぞれキャッシュ
メモリ管理部11A、11B、11Cが設けられる。な
お、共有メモリ3上の空き資源を管理するために、共有
メモリ管理部10が設けられているが、この構成は先に
図2を用いて説明した通りのものであり、動作は先に図
3を用いて説明した通りのものである。
The present invention will be described in detail below with reference to the drawings. FIG. 1 is a flow chart showing an embodiment of the method of the present invention. Before describing the illustrated method, hardware for implementing the present invention will be described. FIG. 5 is an apparatus block diagram for carrying out the method of the present invention. In FIG. 5, a plurality of processors, that is, three processors 1A, 1 in this case.
B and 1C are configured to share the resources on the shared memory 3 via the bus line 2, respectively. In this case,
In the method of the present invention, each processor has a shared memory 3
The cache memory 12 is accessed without directly accessing the cache memory 12. In order to manage the free resources of the cache memory 12, cache memory management units 11A, 11B and 11C are provided respectively. Although the shared memory management unit 10 is provided to manage the free resources on the shared memory 3, this configuration is as described above with reference to FIG. 3 is as described above.

【0010】図6には、本発明実施のためのキャッシュ
メモリ管理部動作説明図を示す。図のようにキャッシュ
メモリ管理部11は、キャッシュメモリ12の中に生じ
た空き資源の先頭アドレスを、それぞれポインタとして
スタック状に格納した構成とされる。従って、例えばキ
ャッシュメモリ12に2つの空き資源が存在する場合、
キャッシュメモリ管理部11には2つのポインタがスタ
ック状に格納される。そしてそのうちの空き資源が対応
するプロセッサに割付けられると、キャッシュメモリ管
理部11中のポインタが消滅する。また、キャッシュメ
モリ12中に新たな空き資源が発生すると、新たなポイ
ンタがキャッシュメモリ管理部11に追加される。本発
明の実施においては、このようにキャッシュメモリ管理
部が常にすべての空き資源の先頭アドレスを示すポイン
タを有するようにして、空き資源管理を容易にすること
が好ましい。
FIG. 6 is a diagram for explaining the operation of the cache memory management unit for implementing the present invention. As shown in the figure, the cache memory management unit 11 is configured to store the starting addresses of the free resources generated in the cache memory 12 as pointers in a stack. Therefore, for example, when there are two free resources in the cache memory 12,
The cache memory management unit 11 stores two pointers in a stack. Then, when the free resource among them is allocated to the corresponding processor, the pointer in the cache memory management unit 11 disappears. Moreover, when a new free resource is generated in the cache memory 12, a new pointer is added to the cache memory management unit 11. In the embodiment of the present invention, it is preferable that the cache memory management unit always has the pointers indicating the head addresses of all free resources in this manner to facilitate free resource management.

【0011】本発明の方法は、基本的に共有メモリを持
つマルチプロセッサでの、並列キャッシュ機構の拡張に
より実現していく。この並列キャッシュ機構というの
は、図5で説明したような構成のものをいい、各プロセ
ッサがそれぞれ個別にキャッシュメモリを持ち、共有メ
モリから必要な資源の転記を行って、そのキャッシュメ
モリを個別にアクセスする方法のことをいう。
The method of the present invention is basically realized by expanding the parallel cache mechanism in a multiprocessor having a shared memory. The parallel cache mechanism has a structure as described with reference to FIG. 5, and each processor has its own cache memory, transfers necessary resources from the shared memory, and individually allocates the cache memory. Refers to the method of access.

【0012】図7にはこのような方式における通常アク
セス動作説明図を示す。図7(a)において、共有メモ
リ3から一定の資源がキャッシュメモリ12に転記され
ると、そのキャッシュメモリを使用するプロセッサ1が
転記された資源をアクセスする。キャッシュメモリ12
に必要な資源が次々と転記され、キャッシュメモリ12
がいっぱいになった場合には、最も古くアクセスされた
資源が追い出され、共有メモリ3に戻される。これは従
来よく知られたキャッシュメモリの使用方法そのもので
ある。また、図7(b)に示すように、キャッシュメモ
リ12上の資源がプロセッサ1によって更新された場
合、そのまま放置すれば、当該資源を他のプロセッサが
アクセスしようとした場合、共有メモリ3から転記を行
うと内容の不一致が生じる。従って、所定のタイミング
で資源の内容を一致させるための処理が行われる。
FIG. 7 is a diagram for explaining a normal access operation in such a system. In FIG. 7A, when a fixed resource is transferred from the shared memory 3 to the cache memory 12, the processor 1 using the cache memory accesses the transferred resource. Cache memory 12
Necessary resources are transferred one after another, and the cache memory 12
When is full, the oldest accessed resource is evicted and returned to the shared memory 3. This is a well-known method of using a cache memory. Further, as shown in FIG. 7B, when the resource on the cache memory 12 is updated by the processor 1, if the resource is left as it is, when another processor tries to access the resource, the transfer from the shared memory 3 is performed. Doing so causes inconsistencies in the content. Therefore, processing for matching the contents of the resources is performed at a predetermined timing.

【0013】図1に戻って、本発明の方法を順を追って
説明していく。本発明の方法は先に説明したように、各
プロセッサのアクセスがキャッシュメモリによる分割局
所管理となる。従って、図1ステップS1に示すよう
に、プロセッサは、まず資源割当て要求が発生するとス
テップS2に示すように、キャッシュメモリ管理部11
に対し資源の割当て要求を行う。キャッシュメモリ管理
部11は、先に図6に示したような空き資源の管理を行
っており、まず空き資源があるか否かを判断する(図1
ステップS3)。ここで空き資源がある場合には、キャ
ッシュメモリ12上の空き資源をそのプロセッサに割当
てる(ステップS4)。一方、空き資源が存在しないよ
うな場合には、今度は共有メモリ管理部10に対し、空
き資源の割当て要求を行う(ステップS5)。即ちこの
場合には、従来の一括集中管理と同様の手順となる。共
有メモリ管理部10は、共有メモリ中に空き資源がある
か否かを判断する(ステップS6)。共有メモリ上に空
き資源があれば、その空き資源が要求したプロセッサに
割当てられる(ステップS7)。また、空き資源がなけ
れば割当てが拒否される(ステップS8)。このような
空き資源管理は図3に示した通りのものとなる。割当て
られた空き資源はキャッシュメモリ上に転記される。
Returning to FIG. 1, the method of the present invention will be described step by step. As described above, in the method of the present invention, the access of each processor is divided local management by the cache memory. Therefore, as shown in step S1 of FIG. 1, when a resource allocation request is first issued, the processor executes the cache memory management unit 11 as shown in step S2.
Request resource allocation to. The cache memory management unit 11 previously manages the free resources as shown in FIG. 6, and first determines whether or not there are free resources (FIG. 1).
Step S3). If there is a free resource, the free resource in the cache memory 12 is assigned to the processor (step S4). On the other hand, if there are no free resources, then a request for free resource allocation is issued to the shared memory management unit 10 (step S5). That is, in this case, the procedure is the same as the conventional centralized management. The shared memory management unit 10 determines whether or not there are free resources in the shared memory (step S6). If there is a free resource on the shared memory, the free resource is allocated to the requested processor (step S7). If there are no free resources, the allocation is rejected (step S8). Such free resource management is as shown in FIG. The allocated free resources are transferred to the cache memory.

【0014】図8に上記キャッシュメモリ管理部の動作
説明図を示す。図のようにキャッシュメモリ12には、
プロセッサ1がアクセスすべき資源が共有メモリから転
記されている。ここでプロセッサ1が資源を使用し、そ
の後、その資源が不要となった場合には、その資源が空
き資源となりプロセッサ1から解放される。しかしなが
ら、本発明においては、この空き資源を直ちに共有メモ
リに戻すことはせず、キャッシュメモリ管理部11が先
に説明した要領で空き資源を登録し管理する。これはキ
ャッシュメモリ12中に空き資源を確保する領域が存在
する限り実行される。そしてプロセッサ1が新たに空き
資源を必要とする場合、従来は共有メモリ管理部に対し
空き資源を要求していたが、本発明においてはキャッシ
ュメモリ管理部11に対し空き資源を要求する。そして
キャッシュメモリ管理部11はプロセッサ1に対し、す
でに登録されている空き資源の一つを割付ける。このよ
うな処理を実行することによって、プロセッサ1がバス
ラインを介して、共有メモリ管理部に対し空き資源を要
求する割合が減少する。即ちキャッシュメモリ管理部1
1に空き資源が登録されている限り分割局所管理が行わ
れ、アクセス集中が防止される。
FIG. 8 shows an operation explanatory diagram of the cache memory management unit. As shown in the figure, in the cache memory 12,
Resources to be accessed by the processor 1 are transferred from the shared memory. Here, when the processor 1 uses the resource and the resource is no longer needed, the resource becomes a free resource and is released from the processor 1. However, in the present invention, the free resource is not immediately returned to the shared memory, but the cache memory management unit 11 registers and manages the free resource in the manner described above. This is executed as long as there is an area in the cache memory 12 for securing a free resource. When the processor 1 newly requires a free resource, the shared memory management unit has conventionally been requested for a free resource, but in the present invention, the cache memory management unit 11 is requested for a free resource. Then, the cache memory management unit 11 allocates one of the already registered free resources to the processor 1. By executing such processing, the ratio of the processor 1 requesting a free resource from the shared memory management unit via the bus line is reduced. That is, the cache memory management unit 1
As long as free resources are registered in 1, the divided local management is performed and access concentration is prevented.

【0015】図9には、共有メモリ管理部の動作説明図
を示す。キャッシュメモリ12は先に説明したように、
プロセッサ1がアクセスしようとする資源を共有メモリ
3から次々と転記し、共有メモリ3へのアクセス集中を
防止する機能を果たす。従って、例えばキャッシュメモ
リ12中に多数の空き資源が発生し、いずれかの空き資
源がアクセスされないままキャッシュメモリ12がいっ
ぱいになったような場合、その空き資源はキャッシュメ
モリ12上から追い出される。この場合に本発明におい
ては、キャッシュメモリ管理部11が空き資源の登録を
抹消し、共有メモリ3に戻された空き資源は共有メモリ
管理部10の管理下に置かれ新たに登録される。この手
順は先に図3を用いて説明した通りである。
FIG. 9 shows an operation explanatory diagram of the shared memory management unit. As described above, the cache memory 12 is
Resources to be accessed by the processor 1 are transferred from the shared memory 3 one after another, and a function of preventing concentration of access to the shared memory 3 is fulfilled. Therefore, for example, when a large number of free resources occur in the cache memory 12 and the cache memory 12 becomes full without any of the free resources being accessed, the free resources are expelled from the cache memory 12. In this case, in the present invention, the cache memory management unit 11 deletes the registration of the free resource, and the free resource returned to the shared memory 3 is placed under the management of the shared memory management unit 10 and newly registered. This procedure is as described above with reference to FIG.

【0016】従って、プロセッサ1がキャッシュメモリ
12を管理するキャッシュメモリ管理部11に対し、空
き資源の割付けを要求し、キャッシュメモリ12上に空
き資源が無いことが分かると、今度は共有メモリ管理部
10に対し、空き資源の割付けを要求し、従来の一括集
中管理的な処理が実行される。このように、キャッシュ
メモリ12の容量自体は限定されており、キャッシュメ
モリ管理部11の管理する空き資源の量は制限されるた
め、資源の片寄りや無駄は最小限に押さえられる。本発
明は以上の実施例に限定されない。バスラインに接続さ
れたプロセッサの数や、そのメモリ管理部キャッシュメ
モリ等の接続構成、共有メモリの数や共有メモリ管理部
の構成等は、同様の機能を有する種々の構成に置き換え
て差し支えない。また、共有メモリ管理部やキャッシュ
メモリ管理部の構成も上記のような空き資源管理に適し
た従来よく知られた構成のものに置き換えて差し支えな
い。
Therefore, when the processor 1 requests the cache memory management unit 11 which manages the cache memory 12 to allocate free resources, and when it is found that there are no free resources in the cache memory 12, the shared memory management unit this time. 10 is requested to allocate free resources, and the conventional centralized management process is executed. In this way, the capacity of the cache memory 12 is limited, and the amount of free resources managed by the cache memory management unit 11 is limited, so that the bias or waste of resources is minimized. The present invention is not limited to the above embodiments. The number of processors connected to the bus line, the connection configuration of the memory management unit cache memory thereof, the number of shared memories, the configuration of the shared memory management unit, and the like may be replaced with various configurations having the same function. Further, the configurations of the shared memory management unit and the cache memory management unit may be replaced with those of the well-known configuration suitable for free resource management as described above.

【0017】[0017]

【発明の効果】以上説明した本発明の共有資源管理方法
によれば、いわゆるマルチプロセッサでの並列キャッシ
ュ機構により、共有メモリ上の共有資源がキャッシュ上
にある時はキャッシュが分割局所管理し、キャッシュか
ら追い出された時は共有メモリ上の共有資源の管理に委
ねるようにするため、全体として共有資源を一括集中管
理するにも関わらず、共有資源のアクセスにおいては分
割局所管理的にキャッシュを効果的にアクセスできる。
しかもキャッシュメモリ上で発生した空き資源について
は、キャッシュメモリ管理部により割当てを行うため、
共有資源の片寄りが発生しない程度に適切な局所管理が
可能となる。従って、アクセスの集中によるボトルネッ
クを防止するとともに、共有資源の効率的な均一な割当
て管理が可能となる。
According to the shared resource management method of the present invention described above, the cache is divided and locally managed by the so-called parallel cache mechanism in a multiprocessor when the shared resource in the shared memory is on the cache. When it is evicted from the shared memory, it is entrusted to the management of the shared resource in the shared memory, so despite the centralized management of the shared resource as a whole, the cache is effective in the divided local management in accessing the shared resource Can be accessed.
Moreover, since the cache memory management unit allocates the free resources generated on the cache memory,
Appropriate local management is possible to the extent that there is no bias of shared resources. Therefore, it is possible to prevent a bottleneck caused by the concentration of access and to manage the shared resources efficiently and uniformly.

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

【図1】本発明の方法の実施例を示すフローチャートで
ある。
1 is a flow chart showing an embodiment of the method of the present invention.

【図2】従来の一括集中管理方法を採用した装置のブロ
ック図である。
FIG. 2 is a block diagram of an apparatus adopting a conventional collective centralized management method.

【図3】共有メモリ上の空き資源管理方法を説明する概
念図である。
FIG. 3 is a conceptual diagram illustrating a free resource management method on a shared memory.

【図4】従来の分割局所管理方法を採用した装置のブロ
ック図である。
FIG. 4 is a block diagram of an apparatus adopting a conventional divided local management method.

【図5】本発明の方法実施のための装置ブロック図であ
る。
FIG. 5 is a block diagram of an apparatus for carrying out the method of the present invention.

【図6】本発明のキャッシュメモリ管理部動作説明図で
ある。
FIG. 6 is an operation explanatory diagram of a cache memory management unit of the present invention.

【図7】通常アクセス動作の説明図である。FIG. 7 is an explanatory diagram of a normal access operation.

【図8】キャッシュメモリ管理部動作の説明図である。FIG. 8 is an explanatory diagram of operations of a cache memory management unit.

【図9】共有メモリ管理部動作の説明図である。FIG. 9 is an explanatory diagram of operations of a shared memory management unit.

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

S1〜S7 本発明の方法の各ステップ S1 to S7 Each step of the method of the present invention

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 複数のプロセッサが共有メモリ上の資源
を共有するシステムにおいて、前記共有メモリ上の空き
資源を管理する共有メモリ管理部と、前記共有メモリの
所定の資源を転記してアクセスするために、前記各プロ
セッサ毎に個別に設けられたキャッシュメモリと、前記
キャッシュメモリ上の空き資源を管理するキャッシュメ
モリ管理部とを設け、前記各プロセッサは、前記キャッ
シュメモリ管理部に対して、空き資源の割当て要求を行
い、当該キャッシュメモリに空き資源が無い場合に、前
記共有メモリ管理部に空き資源の割当て要求を行ない、
前記キャッシュメモリ上の空き資源は、キャッシュメモ
リからの資源の追い出し時に、前記共有メモリ管理部へ
管理を移すことを特徴とする共有資源管理方法。
1. In a system in which a plurality of processors share resources on a shared memory, a shared memory management unit that manages free resources on the shared memory and a predetermined resource of the shared memory are transcribed and accessed. A cache memory individually provided for each processor, and a cache memory management unit for managing free resources on the cache memory. Request for allocating free resources to the shared memory management unit when there is no free resource in the cache memory,
The shared resource management method, wherein the management of the free resources on the cache memory is transferred to the shared memory management unit when the resources are expelled from the cache memory.
JP3181502A 1991-06-10 1991-06-10 Shared resource management method Expired - Lifetime JPH0799517B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3181502A JPH0799517B2 (en) 1991-06-10 1991-06-10 Shared resource management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3181502A JPH0799517B2 (en) 1991-06-10 1991-06-10 Shared resource management method

Publications (2)

Publication Number Publication Date
JPH04362766A JPH04362766A (en) 1992-12-15
JPH0799517B2 true JPH0799517B2 (en) 1995-10-25

Family

ID=16101883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3181502A Expired - Lifetime JPH0799517B2 (en) 1991-06-10 1991-06-10 Shared resource management method

Country Status (1)

Country Link
JP (1) JPH0799517B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4310709B2 (en) 2005-10-21 2009-08-12 コニカミノルタビジネステクノロジーズ株式会社 Information processing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62204363A (en) * 1986-03-04 1987-09-09 Fujitsu Ltd Shared memory system

Also Published As

Publication number Publication date
JPH04362766A (en) 1992-12-15

Similar Documents

Publication Publication Date Title
US6816947B1 (en) System and method for memory arbitration
US7284098B2 (en) Message based inter-process for high volume data
US7484043B2 (en) Multiprocessor system with dynamic cache coherency regions
JP3748774B2 (en) I/O transfer in a cache coherent shared disk computer system
US6754739B1 (en) Computer resource management and allocation system
JPH0272452A (en) Method and device for selecting null requirement
JPH02193248A (en) Real memory management method
JPH05127995A (en) Method for securing consistency between pages which are in common with local cache
US6457107B1 (en) Method and apparatus for reducing false sharing in a distributed computing environment
CN119718539B (en) Memory hot-plug control method and electronic device for server-unaware security container
US7406554B1 (en) Queue circuit and method for memory arbitration employing same
JPH09146904A (en) Address space sharing system
JPH0799517B2 (en) Shared resource management method
JPH10143382A (en) Resource Management Method for Shared Memory Multiprocessor System
JPH06309231A (en) Cache memory control method
JP3092656B2 (en) Test program execution control method
US6721858B1 (en) Parallel implementation of protocol engines based on memory partitioning
KR101989033B1 (en) Appratus for managing platform and method for using the same
CN120929222B (en) Data access method, cache device, chip product and computer equipment
JPH0329041A (en) Decentralized paging control system
JP2517859B2 (en) Parallel process management method
CN121858309A (en) A method, apparatus, electronic device, and medium for allocating memory objects.
JPH0830512A (en) Thread control method
JP2613931B2 (en) Buffer control method
CN117667764A (en) Memory management method, device, electronic device and storage medium

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term