Nothing Special   »   [go: up one dir, main page]

JPH0981528A - Multiprocessor system, method and device for interrupt control used in the same - Google Patents

Multiprocessor system, method and device for interrupt control used in the same

Info

Publication number
JPH0981528A
JPH0981528A JP23224095A JP23224095A JPH0981528A JP H0981528 A JPH0981528 A JP H0981528A JP 23224095 A JP23224095 A JP 23224095A JP 23224095 A JP23224095 A JP 23224095A JP H0981528 A JPH0981528 A JP H0981528A
Authority
JP
Japan
Prior art keywords
interrupt
processor
memory access
nth
multiprocessor system
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
JP23224095A
Other languages
Japanese (ja)
Inventor
Hiroki Nagao
裕樹 永尾
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.)
NEC Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP23224095A priority Critical patent/JPH0981528A/en
Publication of JPH0981528A publication Critical patent/JPH0981528A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To make a processor having the lightest load execute the interrupt handling. SOLUTION: Memory access counters 4 to 6 count frequencies in cache mishit memory access of processors 1 to 3, respectively. A comparator 22 compares counted numerical values of memory access counters 4 to 6 and outputs a processor select signal 24 which instructs selection of the processor corresponding to the memory access counter whose counted numerical value is smallest. An interrupt controller 29 controls various interrupt signals in a set priority order to output an interrupt signal 32. An interrupt selector 21 distributes this interrupt signal to the processor indicated by the processor select signal 24. This invention takes frequencies in memory access of processor units which are continuously changed with time, as the determinant of interrupt handling processor selection in this manner.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は複数のプロセッサを
もつマルチプロセッサシステムの割込制御方法に関し、
特に割込処理プロセッサをプロセッサ単位のキャッシュ
ミスヒットメモリアクセス回数を基準に変化させること
により、最適な割込分配制御を自動的に実現する方式に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interrupt control method for a multiprocessor system having a plurality of processors,
In particular, the present invention relates to a method for automatically realizing optimum interrupt distribution control by changing the interrupt processing processor on the basis of the number of cache miss hit memory accesses for each processor.

【0002】[0002]

【従来の技術】従来からある多くのマルチプロセッサシ
ステムでは、以下に述べるような方式によって割込分配
を実現していた。特定のプロセッサが入出力割込を集
中して処理する方式、ソフトウェア(OS等)によっ
て割込優先度をプログラミングする方式、割込待ち行
列の割込待ち数を基準に割込先を変化させる方式、各
プロセッサの実行プロセスの優先度に応じて割込処理プ
ロセッサを変化させる方式、ラウンドロビン式の調停
方式により割込処理プロセッサを変化させる方式、およ
び上述した方式を複数組み合わせた方式。
2. Description of the Related Art In many conventional multiprocessor systems, interrupt distribution has been realized by the following method. A method in which a specific processor centrally processes I / O interrupts, a method in which the interrupt priority is programmed by software (OS, etc.), and a method in which the interrupt destination is changed based on the number of interrupt waits in the interrupt queue , A method of changing the interrupt processing processor according to the priority of the execution process of each processor, a method of changing the interrupt processing processor by a round-robin arbitration method, and a method combining a plurality of the above methods.

【0003】例えば、特開平4−328665号公報
(以下、先行技術1と呼ぶ)には、プロセッサの負荷の
状況を表すパラメータを第1の割込み優先度PPRとし
て割込の調停を行い、この調停でプロセッサが決まらな
いときに、さらに付加的に循環的に変化する第2の割込
み優先度RRPRにしたがってプロセッサを選択するこ
とで、入出力割込みを各プロセッサに分配するようにし
た「マルチプロセッサ・システムおよびその割込み調停
装置」が開示されている。すなわち、この先行技術は上
記の方式の内、上記の方式と上記の方式とを組み
合わせた方式を開示している。
For example, in Japanese Patent Laid-Open No. 4-328665 (hereinafter, referred to as prior art 1), an interrupt arbitration is performed by using a parameter indicating a load condition of a processor as a first interrupt priority PPR, and this arbitration is performed. When a processor is not decided by, the processor is selected according to the second interrupt priority RRPR which additionally cyclically changes, whereby the input / output interrupt is distributed to each processor. And its interrupt arbitration device ". That is, this prior art discloses a method in which the above method and the above method are combined among the above methods.

【0004】また、特開昭61−110241号公報
(以下、先行技術2と呼ぶ)には、割り込み先を任意の
複数のプロセッサにすることで、割り込み処理の負荷を
分散し、不要割り込みによるオーバヘッドの低減を図っ
た「マルチプロセッサ割り込み制御装置」が開示されて
いる。
Further, in Japanese Patent Laid-Open No. 61-110241 (hereinafter referred to as prior art 2), the load of interrupt processing is distributed by setting an interrupt destination to a plurality of arbitrary processors, and an overhead due to unnecessary interrupts. A "multiprocessor interrupt control device" for reducing the above has been disclosed.

【0005】[0005]

【発明が解決しようとする課題】上述した従来の割込制
御方式において、特定のプロセッサが入出力割込処理を
集中して処理する方式では、入出力処理がひとつのプ
ロセッサに集中するため、システム性能のボトルネック
が入出力割込処理に発生する。これはマルチプロセッサ
のプロセッサが増加するに従って加速度的に割込処理プ
ロセッサの負荷が増大し、システム性能の向上を妨げて
しまう。
In the above-mentioned conventional interrupt control method, in a method in which a specific processor concentrates input / output interrupt processing, the input / output processing concentrates on one processor, so that the system A performance bottleneck occurs in I / O interrupt processing. As the number of multiprocessors increases, the load on the interrupt processing processor increases at an accelerating rate, which hinders improvement in system performance.

【0006】ソフトウェアによって割込先を指定する
方式は、どうしてもハードウェア制御に比較してリアル
タイムな負荷分散が難しくなる。さらに、負荷モニタを
実行するために本来必要のない余計なシステムリソース
を消費することになる。この欠点は、上記方式および
方式にも同様にいえる。
In the method of designating the interrupt destination by software, real-time load distribution becomes difficult as compared with hardware control. Further, it consumes extra system resources that are not originally needed to perform load monitoring. This drawback applies to the above schemes and schemes as well.

【0007】ラウンドロビン式の調停方式による方式
は、システムの負荷状態を反映していないため、負荷の
高いプロセッサに対しても公平に割込処理を割り当てて
しまい、最適な割込分配制御とは言い難い。
Since the system based on the round-robin arbitration system does not reflect the load state of the system, the interrupt processing is evenly allocated to the processor with a high load, and the optimum interrupt distribution control is Hard to say.

【0008】さらに、上記〜の方式を組み合わせた
方式では、上述した〜の方式に関する個々の問題
点を解決することはできない。換言すれば、複数の方式
を組み合わせも個々の問題点を内在するからである。し
たがって、先行技術1は、組み合わせた方式の個々の問
題点を有する。
Further, the above-described methods (1) to (3) cannot be combined to solve the individual problems associated with the above methods (1) to (3). In other words, the combination of a plurality of methods has its own problems. Therefore, the prior art 1 has the individual problems of the combined system.

【0009】また、先行技術2は、割り込み処理の負荷
を分散させる技術を開示するのみであって、割り込み処
理の負荷を「最適に」分散させる具体的手段について何
も開示せず、示唆もしていない。
Prior art 2 only discloses a technique for distributing the load of interrupt processing, and does not disclose or suggest any concrete means for "optimally" distributing the load of interrupt processing. Absent.

【0010】本発明の目的は、上記問題点を解決するた
めに、最も負荷の軽いプロセッサに割込処理を実行させ
ることができるマルチプロセッサシステムおよび割込制
御方法を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a multiprocessor system and an interrupt control method capable of causing a processor with the lightest load to execute interrupt processing in order to solve the above problems.

【0011】本発明の他の目的は、有効にプロセッサ資
源を活用して、スループットを向上できるマルチプロセ
ッサシステムおよび割込制御方法を提供することにあ
る。
Another object of the present invention is to provide a multiprocessor system and an interrupt control method capable of effectively utilizing processor resources and improving throughput.

【0012】本発明のさらに他の目的は、リアルタイム
性の強い割込処理を高速に実行して、システムのレスポ
ンスを向上させることができるマルチプロセッサシステ
ムおよび割込制御方法を提供することにある。
Still another object of the present invention is to provide a multiprocessor system and an interrupt control method capable of executing interrupt processing having a strong real-time property at high speed and improving the response of the system.

【0013】[0013]

【課題を解決するための手段】本発明によれば、それぞ
れ第1乃至第N(Nは2以上の整数)のキャッシュメモ
リを含む第1乃至第Nのプロセッサを備えたマルチプロ
セッサシステムにおいて、それぞれ、第1乃至第Nのプ
ロセッサのキャッシュミスヒットメモリアクセス回数を
カウントする第1乃至第Nのメモリアクセスカウンタ
と、第1乃至第Nのメモリアクセスカウンタのカウント
数値を比較し、最もカウント数値の低いメモリアクセス
カウンタに対応するプロセッサの選択を指示するプロセ
ッサセレクト信号を出力する比較器と、各種割込信号を
設定された優先度順に制御して割込信号を出力する割込
コントローラと、割込信号を、プロセッサセレクト信号
で指示されたプロセッサに割り振るための割込セレクタ
とを有し、時間的に連続的に変化するプロセッサ単位の
メモリアクセス回数を、割込処理プロセッサ選択の決定
要因とすることを特徴とするマルチプロセッサシステム
が得られる。
According to the present invention, there is provided a multiprocessor system including first to Nth processors including first to Nth (N is an integer of 2 or more) cache memories, respectively. , The first to Nth memory access counters that count the number of cache miss hit memory accesses of the first to Nth processors and the first to Nth memory access counters are compared, and the lowest count value is obtained. A comparator that outputs a processor select signal that instructs the selection of a processor corresponding to the memory access counter, an interrupt controller that outputs various interrupt signals by controlling various interrupt signals in the set priority order, and an interrupt signal. With an interrupt selector for allocating to the processor designated by the processor select signal. The number of memory accesses continue varying the processor unit, a multiprocessor system is obtained, characterized in that the determining factor of the interrupt processing processor selection.

【0014】上記マルチプロセッサシステムにおいて、
さらに、第1乃至第Nのメモリアクセスカウンタを一定
時間経過毎にリセットするためのタイマを含むことが望
ましい。
In the above multiprocessor system,
Further, it is desirable to include a timer for resetting the first to Nth memory access counters every time a predetermined time has elapsed.

【0015】また、本発明によれば、それぞれ第1乃至
第N(Nは2以上の整数)のキャッシュメモリを含む第
1乃至第Nのプロセッサを備えたマルチプロセッサシス
テムに使用される割込制御装置おいて、それぞれ、第1
乃至第Nのプロセッサのキャッシュミスヒットメモリア
クセス回数をカウントする第1乃至第Nのメモリアクセ
スカウンタと、第1乃至第Nのメモリアクセスカウンタ
のカウント数値を比較し、最もカウント数値の低いメモ
リアクセスカウンタに対応するプロセッサの選択を指示
するプロセッサセレクト信号を出力する比較器と、各種
割込信号を設定された優先度順に制御して割込信号を出
力する割込コントローラと、割込信号を、プロセッサセ
レクト信号で指示されたプロセッサに割り振るための割
込セレクタとを有し、時間的に連続的に変化するプロセ
ッサ単位のメモリアクセス回数を、割込処理プロセッサ
選択の決定要因とすることを特徴とする割込制御装置が
得られる。
Further, according to the present invention, an interrupt control used in a multiprocessor system including first to Nth processors including first to Nth (N is an integer of 2 or more) cache memories, respectively. In the device, the first
To the Nth memory access counter that counts the number of cache miss hit memory accesses of the Nth to Nth processors, and the memory access counter having the lowest count value by comparing the count values of the first to Nth memory access counters A comparator that outputs a processor select signal for instructing the selection of a processor corresponding to, an interrupt controller that outputs various interrupt signals by controlling various interrupt signals in the set priority order, and an interrupt signal An interrupt selector for allocating to a processor designated by a select signal, and the number of memory accesses per processor that changes continuously in time is used as a deciding factor for selecting an interrupt processing processor. An interrupt controller is obtained.

【0016】上記割込制御装置において、さらに、第1
乃至第Nのメモリアクセスカウンタを一定時間経過毎に
リセットするためのタイマを含むことが好ましい。
In the above interrupt control device, further, the first
It is preferable to include a timer for resetting the Nth to Nth memory access counters every time a fixed time elapses.

【0017】本発明によれば、各々がキャッシュメモリ
を含む複数のプロセッサを備えたマルチプロセッサシス
テムの割込制御方法において、プロセッサ別に一定時間
単位のキャッシュミスヒットメモリアクセス回数をカウ
ントするステップと、これらカウント数値に基づいてプ
ロセッサ負荷状態を評価するステップと、この評価の結
果によってプロセッサの入出力割込先を決定するステッ
プとを含むマルチプロセッサシステムの割込制御方法が
得られる。
According to the present invention, in an interrupt control method of a multiprocessor system including a plurality of processors each including a cache memory, the steps of counting the number of cache miss hit memory accesses in a constant time unit for each processor, An interrupt control method of a multiprocessor system including a step of evaluating a processor load state based on a count value and a step of deciding an input / output interrupt destination of a processor based on the result of the evaluation is obtained.

【0018】さらに、本発明によれば、各々がキャッシ
ュメモリを含む複数のプロセッサを備えたマルチプロセ
ッサシステムの割込制御方法において、キャッシュメモ
リの負荷状態を計測するステップと、その計測結果によ
り割込セレクタを制御して、最も負荷の軽いプロセッサ
に割込処理を実行させるステップとを含むマルチプロセ
ッサシステムの割込制御方法が得られる。
Further, according to the present invention, in an interrupt control method of a multiprocessor system having a plurality of processors each including a cache memory, a step of measuring a load state of the cache memory and an interrupt based on the measurement result. Controlling the selector to cause the processor with the lightest load to execute the interrupt processing, thereby providing an interrupt control method for a multiprocessor system.

【0019】[0019]

【発明の実施の形態】以下、図面を参照して本発明の実
施形態について詳細に説明する。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described in detail below with reference to the drawings.

【0020】図1に本発明の一実施形態によるマルチプ
ロセッサシステムの構成を示す。図示のマルチプロセッ
サシステムは、第1乃至第3のプロセッサ1,2,3が
メモリバス10を介して主記憶メモリ17に接続され
た、密結合対称型マルチプロセッサシステムである。こ
こで、「対称」とは、複数のプロセッサが同等の「機
能」を持つということである。すなわち、特定のデバイ
スへのアクセス制限や制御制限が加わらないということ
である。尚、対称型マルチプロセッサシステムという場
合、プロセッサの「性能」に関しては特に制限されない
が、通常は同じ性能を持つ複数のプロセッサを備えてい
る。
FIG. 1 shows the configuration of a multiprocessor system according to an embodiment of the present invention. The illustrated multiprocessor system is a tightly coupled symmetric multiprocessor system in which first to third processors 1, 2, 3 are connected to a main memory 17 via a memory bus 10. Here, “symmetric” means that a plurality of processors have the same “function”. That is, no access restriction or control restriction is applied to a specific device. In the case of a symmetric multiprocessor system, the "performance" of the processor is not particularly limited, but normally, a plurality of processors having the same performance are provided.

【0021】第1乃至第3のプロセッサ1〜3は、それ
ぞれ、第1乃至第3のキャッシュメモリ14,15,1
6を含む。第1乃至第3のプロセッサ1〜3には、それ
ぞれ、第1乃至第3のメモリバスアービタ7,8,9が
接続されている。また、第1乃至第3のプロセッサ1〜
3には、それぞれ、第1乃至第3のメモリアクセスカウ
ンタ4,5,6が接続されている。第1乃至第3のメモ
リアクセスカウンタ4〜6は比較器22とタイマ23に
接続されている。比較器22はタイマ23に接続されて
いる。比較器22は割込セレクタ21に接続され、割込
セレクタ21は第1乃至第3のプロセッサ1〜3に接続
されている。割込セレクタ21はまた割込コントローラ
27に接続され、割込コントローラ27は第1乃至第4
の入出力制御装置28,29,30,31に接続されて
いる。
The first to third processors 1 to 3 respectively include the first to third cache memories 14, 15 and 1.
Including 6. First to third memory bus arbiters 7, 8 and 9 are connected to the first to third processors 1 to 3, respectively. Also, the first to third processors 1 to 3
First to third memory access counters 4, 5 and 6 are connected to 3, respectively. The first to third memory access counters 4 to 6 are connected to the comparator 22 and the timer 23. The comparator 22 is connected to the timer 23. The comparator 22 is connected to the interrupt selector 21, and the interrupt selector 21 is connected to the first to third processors 1 to 3. The interrupt selector 21 is also connected to the interrupt controller 27, and the interrupt controller 27 includes the first to fourth interrupt controllers.
Are connected to the input / output control devices 28, 29, 30, 31.

【0022】ここで、第1乃至第3のメモリアクセスカ
ウンタ4,5,6と、比較器22と、タイマ23と、割
込セレクタ21と、割込コントローラ27とによって割
込制御装置が構成される。
Here, the first to third memory access counters 4, 5, and 6, the comparator 22, the timer 23, the interrupt selector 21, and the interrupt controller 27 constitute an interrupt control device. It

【0023】第1乃至第3のプロセッサ1〜3において
メモリアクセスの必要が生じ、それぞれ、第1乃至第3
のキャッシュメモリ14〜16内のデータを探索した結
果、第1乃至第3のキャッシュメモリ14〜16内に必
要なデータが存在しないことが判明したとする。このよ
うな場合、第1乃至第3のプロセッサ1〜3は主記憶メ
モリ17にアクセスする。主記憶メモリ17にアクセス
するため、第1乃至第3のプロセッサ1〜3は、それぞ
れ、各々に個別の第1乃至第3のバスリクエスト信号1
1,12,13を第1乃至第3のメモリアービタ7〜9
に発行する。第1乃至第3のメモリアービタ7〜9は、
それぞれ、第1乃至第3のプロセッサ1〜3からの第1
乃至第3のバスリクエスト信号11〜13を調整しなが
らメモリバス10に使用権を決定する。
The need for memory access arises in the first to third processors 1 to 3, and the first to third processors respectively
As a result of searching the data in the cache memories 14 to 16, it is determined that the necessary data does not exist in the first to third cache memories 14 to 16. In such a case, the first to third processors 1 to 3 access the main memory 17. In order to access the main memory 17, the first to third processors 1 to 3 are respectively provided with the respective first to third bus request signals 1
1, 12 and 13 are assigned to the first to third memory arbiters 7 to 9
Issue to The first to third memory arbiters 7-9 are
The first to third processors 1 to 3 respectively
Through to determine the usage right for the memory bus 10 while adjusting the third bus request signals 11 to 13.

【0024】また、同時に第1乃至第3のメモリアクセ
スカウンタ4〜6は、それぞれ、第1乃至第3のバスリ
クエスト信号11〜13を監視し、第1乃至第3のバス
リクエスト信号11〜13が発生する都度、第1乃至第
3のカウント数値を1ずつ増加させる。第1乃至第3の
メモリアクセスカウンタ4〜6内の第1乃至第3のカウ
ント数値は比較器22に入力されそこで評価される。こ
こでの評価基準は、第1乃至第3のカウント数値の中で
最も小さい数値をもつメモリアクセスカウンタに対応す
るプロセッサが、その時点で最も作業負荷の少ないプロ
セッサであることを示す。タイマ23からタイミングパ
ルス25を受け取る毎に、比較器22は上記負荷評価を
行い、最も作業負荷の軽いプロセッサのプロセッサ番号
を示すプロセッサセレクト信号24を割込セレクタ21
に伝える。また、タイマ23はタイミングパルス25の
発生と同時に、カウントリセット信号26を第1乃至第
3のメモリアクセスカウンタ4〜6に送出して、第1乃
至第3のカウント数値を初期値、すなわち、“0”にリ
セットする。
At the same time, the first to third memory access counters 4 to 6 monitor the first to third bus request signals 11 to 13, respectively, and the first to third bus request signals 11 to 13 respectively. Whenever occurs, the first to third count values are incremented by one. The first to third count values in the first to third memory access counters 4 to 6 are input to the comparator 22 and evaluated there. The evaluation criterion here indicates that the processor corresponding to the memory access counter having the smallest numerical value among the first to third count numerical values is the processor having the smallest work load at that time. Each time the timing pulse 25 is received from the timer 23, the comparator 22 performs the load evaluation, and outputs the processor select signal 24 indicating the processor number of the processor with the lightest work load to the interrupt selector 21.
Tell. At the same time when the timing pulse 25 is generated, the timer 23 sends a count reset signal 26 to the first to third memory access counters 4 to 6 to set the first to third count numerical values to an initial value, that is, " Reset to 0 ".

【0025】一方、第1乃至第4の入出力制御装置28
〜31は必要に応じて、割込処理要求のための割込信号
を割込コントローラ27に対して発行する。割込コント
ローラ27はあらかじめプログラミングされた割込優先
処理手順に従って、割込セレクタ21に対してメイン割
込信号32を送出すると同時に、割込要因をプロセッサ
が引き取るための内部の割込要因レジスタ(図示せず)
をセットする。比較器22が出力するプロセッサセレク
ト信号24に応答して、割込セレクタ21は割込コント
ローラ27から出力されるメイン割込信号32を第1乃
至第3のプロセッサ1〜3のいずれか1つ(プロセッサ
セレクト信号24が指示するプロセッサ)に対して第1
乃至第3のプロセッサ割込信号18〜20のいずれか1
つを通じて分配する。
On the other hand, the first to fourth input / output control devices 28
31 to 31 issue an interrupt signal for an interrupt processing request to the interrupt controller 27 as required. The interrupt controller 27 sends out a main interrupt signal 32 to the interrupt selector 21 according to a pre-programmed interrupt priority processing procedure, and at the same time, an internal interrupt factor register (Fig. (Not shown)
Set. In response to the processor select signal 24 output from the comparator 22, the interrupt selector 21 outputs the main interrupt signal 32 output from the interrupt controller 27 to one of the first to third processors 1 to 3 ( 1) for the processor indicated by the processor select signal 24)
To any one of the third processor interrupt signals 18 to 20
Distribute through one.

【0026】プロセッサの正確な割込処理を実現するた
め、割込セレクタ21は、一旦第1乃至第3のプロセッ
サ割込信号18〜20のいずれかの信号をアクティブ状
態にセットした場合、プロセッサの割込要因レジスタか
らの割込要因読み込み処理が完了するのを待って、次の
プロセッサセレクト信号24の指示に従って割込先を変
更する処理を行う。第1乃至第3のプロセッサ割込信号
18〜20のいずれかを受けたプロセッサは、割込コン
トローラ27内の割込要因レジスタに保持された割込要
因を読み出し、適切な割込処理を実行する。
In order to realize the accurate interrupt processing of the processor, the interrupt selector 21 of the processor, once setting any one of the first to third processor interrupt signals 18 to 20 to the active state, After the completion of the interrupt factor reading process from the interrupt factor register, the process of changing the interrupt destination is performed according to the instruction of the next processor select signal 24. The processor receiving any of the first to third processor interrupt signals 18 to 20 reads the interrupt factor held in the interrupt factor register in the interrupt controller 27 and executes appropriate interrupt processing. .

【0027】図2に図1のマルチプロセッサシステムの
割込制御動作の一例を示す。ここでは、第1乃至第3の
プロセッサ1〜3をそれぞれプロセッサA、プロセッサ
B、およびプロセッサCと呼ぶ。第1乃至第3のバスリ
クエスト信号11〜13をそれぞれプロセッサAバスリ
クエスト、プロセッサBバスリクエスト、およびプロセ
ッサCバスリクエストと呼ぶ。第1乃至第3のメモリア
クセスカウンタ4〜6をそれぞれメモリアクセスカウン
タA、メモリアクセスカウンタC、およびメモリアクセ
スカウンタCと呼ぶ。タイマ23から出力されるタイミ
ングパルス25およびカウンタリセット信号26を纏め
てタイマパルスと呼ぶ。さらに、第1乃至第3のプロセ
ッサ割込信号18〜20をそれぞれプロセッサA割込、
プロセッサB割込、およびプロセッサC割込と呼ぶ。
FIG. 2 shows an example of the interrupt control operation of the multiprocessor system of FIG. Here, the first to third processors 1 to 3 are referred to as a processor A, a processor B, and a processor C, respectively. The first to third bus request signals 11 to 13 are called a processor A bus request, a processor B bus request, and a processor C bus request, respectively. The first to third memory access counters 4 to 6 are called a memory access counter A, a memory access counter C, and a memory access counter C, respectively. The timing pulse 25 and the counter reset signal 26 output from the timer 23 are collectively called a timer pulse. Further, the processor A interrupts the first to third processor interrupt signals 18 to 20, respectively.
Called processor B interrupt and processor C interrupt.

【0028】先ず、比較器22がプロセッサセレクト信
号24としてプロセッサAの選択を指示する信号を出力
しているとする。これは、タイマ22から次のタイマパ
ルスが発生する第1の時点t1までの第1の期間T1、
比較器22はプロセッサAの選択を指示するプロセッサ
セレクト信号24を出力し続ける。したがって、この第
1の期間T1、割込コントローラ27から出力されたメ
イン割込信号32は割込セレクタ21によってプロセッ
サA割込としてプロセッサAに分配される。
First, it is assumed that the comparator 22 outputs a signal for instructing the selection of the processor A as the processor select signal 24. This is the first period T1 from the timer 22 to the first time point t1 when the next timer pulse is generated,
The comparator 22 continues to output the processor select signal 24 instructing the selection of the processor A. Therefore, during the first period T1, the main interrupt signal 32 output from the interrupt controller 27 is distributed to the processor A as the processor A interrupt by the interrupt selector 21.

【0029】第1の時点t1で発生されたタイマパルス
に応答して、比較器22はメモリアクセスカウンタA〜
Cのカウント数値を比較する。この例では、メモリアク
セスカウンタAのカウント数値が“3”、メモリアクセ
スカウンタBのカウント数値が“5”、メモリアクセス
カウンタCのカウント数値が“1”であるので、最も小
さいカウント数値の示すものはメモリアクセスカウンタ
Cである。したがって、比較器22はプロセッサセレク
ト信号24としてプロセッサCの選択を指示する信号を
出力する。と同時に、メモリアクセスカウンタA〜Cの
カウント数値は初期値“0”にリセットされる。この第
1の時点t1から次のタイマパルスが発生する第2の時
点t2までの第2の期間T2、比較器22はプロセッサ
Cの選択を指示するプロセッサセレクト信号24を出力
し続ける。したがって、この第2の期間T2、割込コン
トローラ27から出力されたメイン割込信号32は割込
セレクタ21によってプロセッサC割込としてプロセッ
サCに分配される。
In response to the timer pulse generated at the first time point t1, the comparator 22 causes the memory access counters A ...
Compare the count values of C. In this example, since the count value of the memory access counter A is “3”, the count value of the memory access counter B is “5”, and the count value of the memory access counter C is “1”, the smallest count value is shown. Is a memory access counter C. Therefore, the comparator 22 outputs a signal instructing the selection of the processor C as the processor select signal 24. At the same time, the count values of the memory access counters A to C are reset to the initial value "0". During the second period T2 from the first time point t1 to the second time point t2 when the next timer pulse is generated, the comparator 22 continues to output the processor select signal 24 instructing the selection of the processor C. Therefore, during the second period T2, the main interrupt signal 32 output from the interrupt controller 27 is distributed to the processor C as the processor C interrupt by the interrupt selector 21.

【0030】第2の時点t2で発生されたタイマパルス
に応答して、比較器22はメモリアクセスカウンタA〜
Cのカウント数値を比較する。この例では、メモリアク
セスカウンタAのカウント数値が“7”、メモリアクセ
スカウンタBのカウント数値が“1”、メモリアクセス
カウンタCのカウント数値が“2”であるので、最も小
さいカウント数値の示すものはメモリアクセスカウンタ
Bである。したがって、比較器22はプロセッサセレク
ト信号24としてプロセッサBの選択を指示する信号を
出力する。と同時に、メモリアクセスカウンタA〜Cの
カウント数値は初期値“0”にリセットされる。この第
2の時点t2から次のタイマパルスが発生する第3の時
点(図示せず)までの第3の期間T3、比較器22はプ
ロセッサBの選択を指示するプロセッサセレクト信号2
4を出力し続ける。したがって、この第3の期間T3、
割込コントローラ27から出力されたメイン割込信号3
2は割込セレクタ21によってプロセッサB割込として
プロセッサBに分配される。
In response to the timer pulse generated at the second time point t2, the comparator 22 causes the memory access counters A ...
Compare the count values of C. In this example, since the count value of the memory access counter A is "7", the count value of the memory access counter B is "1", and the count value of the memory access counter C is "2", the smallest count value is shown. Is a memory access counter B. Therefore, the comparator 22 outputs a signal instructing the selection of the processor B as the processor select signal 24. At the same time, the count values of the memory access counters A to C are reset to the initial value "0". During the third period T3 from the second time point t2 to the third time point (not shown) when the next timer pulse is generated, the comparator 22 outputs the processor select signal 2 for instructing the selection of the processor B.
Continue to output 4. Therefore, this third period T3,
Main interrupt signal 3 output from interrupt controller 27
2 is distributed to the processor B as the processor B interrupt by the interrupt selector 21.

【0031】本発明は上述した実施形態に限定せず、本
発明の要旨を逸脱しない範囲内で種々の変形が可能なの
はいうまでもない。たとえば、プロセッサの数は3に限
定しないのは勿論である。
It is needless to say that the present invention is not limited to the above-described embodiment, and various modifications can be made without departing from the gist of the present invention. For example, it goes without saying that the number of processors is not limited to three.

【0032】[0032]

【発明の効果】以上説明したように本発明では、プロセ
ッサ負荷を表す一指標であるメモリ負荷状態を計測し、
その計測結果により割込セレクタを制御し、最も負荷の
軽いプロセッサに割込処理を実行させることにより、マ
ルチプロセッサシステムの有効なプロセッサ資源活用に
よるスループットを向上できるだけでなく、リアルタイ
ム性の強い割込処理を高速に実行することによりシステ
ムのレスポンスを向上できるという効果を奏する。
As described above, according to the present invention, the memory load state, which is an index representing the processor load, is measured,
By controlling the interrupt selector based on the measurement results and causing the processor with the lightest load to execute interrupt processing, not only can throughput be improved by effective use of processor resources in a multiprocessor system, but also interrupt processing with strong real-time characteristics. It is possible to improve the response of the system by executing the at high speed.

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

【図1】本発明の一実施形態によるマルチプロセッサシ
ステムの構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a multiprocessor system according to an embodiment of the present invention.

【図2】図1に示したマルチプロセッサシステムの割込
制御動作を示すタイムミング図である。
FIG. 2 is a timing diagram showing an interrupt control operation of the multiprocessor system shown in FIG.

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

1,2,3 プロセッサ 4,5,6 メモリアクセスカウンタ 7,8,9 メモリバスアービタ 10 メモリバス 14,15,16 キャッシュメモリ 17 主記憶メモリ 21 割込セレクタ 22 比較器 23 タイマ 27 割込コントローラ 28,29,30,31 入出力制御装置 1,2,3 Processor 4,5,6 Memory Access Counter 7,8,9 Memory Bus Arbiter 10 Memory Bus 14,15,16 Cache Memory 17 Main Memory 21 Interrupt Selector 22 Comparator 23 Timer 27 Interrupt Controller 28 , 29, 30, 31 Input / output control device

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 それぞれ第1乃至第N(Nは2以上の整
数)のキャッシュメモリを含む第1乃至第Nのプロセッ
サを備えたマルチプロセッサシステムにおいて、 それぞれ、前記第1乃至第Nのプロセッサのキャッシュ
ミスヒットメモリアクセス回数をカウントする第1乃至
第Nのメモリアクセスカウンタと、 該第1乃至第Nのメモリアクセスカウンタのカウント数
値を比較し、最もカウント数値の低いメモリアクセスカ
ウンタに対応するプロセッサの選択を指示するプロセッ
サセレクト信号を出力する比較器と、 各種割込信号を設定された優先度順に制御して割込信号
を出力する割込コントローラと、 前記割込信号を、前記プロセッサセレクト信号で指示さ
れたプロセッサに割り振るための割込セレクタとを有
し、 時間的に連続的に変化するプロセッサ単位のメモリアク
セス回数を、割込処理プロセッサ選択の決定要因とする
ことを特徴とするマルチプロセッサシステム。
1. A multiprocessor system including first to Nth processors each including a first to Nth (N is an integer of 2 or more) cache memory, wherein each of the first to Nth processors is provided. The first to Nth memory access counters that count the number of cache-miss memory accesses and the count values of the first to Nth memory access counters are compared, and the processor corresponding to the memory access counter having the lowest count value is compared. A comparator that outputs a processor select signal for instructing selection, an interrupt controller that outputs various interrupt signals by controlling various interrupt signals in the set priority order, and the interrupt signal by the processor select signal. It has an interrupt selector for allocating to the designated processor and changes continuously in time. Multiprocessor system, characterized in that the number of memory accesses of the processor unit, a determining factor of the interrupt processing processor selection.
【請求項2】 前記第1乃至第Nのメモリアクセスカウ
ンタを一定時間経過毎にリセットするためのタイマを含
む、請求項1記載のマルチプロセッサシステム。
2. The multiprocessor system according to claim 1, further comprising a timer for resetting the first to Nth memory access counters every elapse of a predetermined time.
【請求項3】 それぞれ第1乃至第N(Nは2以上の整
数)のキャッシュメモリを含む第1乃至第Nのプロセッ
サを備えたマルチプロセッサシステムに使用される割込
制御装置おいて、 それぞれ、前記第1乃至第Nのプロセッサのキャッシュ
ミスヒットメモリアクセス回数をカウントする第1乃至
第Nのメモリアクセスカウンタと、 該第1乃至第Nのメモリアクセスカウンタのカウント数
値を比較し、最もカウント数値の低いメモリアクセスカ
ウンタに対応するプロセッサの選択を指示するプロセッ
サセレクト信号を出力する比較器と、 各種割込信号を設定された優先度順に制御して割込信号
を出力する割込コントローラと、 前記割込信号を、前記プロセッサセレクト信号で指示さ
れたプロセッサに割り振るための割込セレクタとを有
し、 時間的に連続的に変化するプロセッサ単位のメモリアク
セス回数を、割込処理プロセッサ選択の決定要因とする
ことを特徴とする割込制御装置。
3. An interrupt control device used in a multiprocessor system including first to Nth processors including first to Nth (N is an integer of 2 or more) cache memories, respectively. The first to Nth memory access counters for counting the number of cache miss hit memory accesses of the first to Nth processors are compared with the count values of the first to Nth memory access counters, and the highest count value is obtained. A comparator that outputs a processor select signal that instructs selection of a processor corresponding to a low memory access counter, an interrupt controller that outputs various interrupt signals by controlling various interrupt signals in the order of set priority, and the interrupt controller. An interrupt selector for allocating an interrupt signal to the processor designated by the processor select signal, Between to memory access count continuously varying processor unit, an interrupt controller, characterized in that the determining factor of the interrupt processing processor selection.
【請求項4】 前記第1乃至第Nのメモリアクセスカウ
ンタを一定時間経過毎にリセットするためのタイマを含
む、請求項3記載の割込制御装置。
4. The interrupt control device according to claim 3, further comprising a timer for resetting the first to Nth memory access counters every time a predetermined time elapses.
【請求項5】 各々がキャッシュメモリを含む複数のプ
ロセッサを持つマルチプロセッサシステムの割込制御方
法において、 プロセッサ別に一定時間単位のキャッシュミスヒットメ
モリアクセス回数をカウントするステップと、 該カウント数値に基づいてプロセッサ負荷状態を評価す
るステップと、 該評価の結果によってプロセッサの入出力割込先を決定
するステップとを含むマルチプロセッサシステムの割込
制御方法。
5. In an interrupt control method of a multiprocessor system having a plurality of processors each including a cache memory, a step of counting the number of times of cache mishit memory access in a fixed time unit for each processor, and based on the count value An interrupt control method for a multiprocessor system, comprising: a step of evaluating a processor load state; and a step of determining an input / output interrupt destination of a processor according to a result of the evaluation.
【請求項6】 各々がキャッシュメモリを含む複数のプ
ロセッサを持つマルチプロセッサシステムの割込制御方
法において、 前記キャッシュメモリの負荷状態を計測するステップ
と、 その計測結果により割込セレクタを制御して、最も負荷
の軽いプロセッサに割込処理を実行させるステップとを
含むマルチプロセッサシステムの割込制御方法。
6. An interrupt control method for a multiprocessor system having a plurality of processors each including a cache memory, the step of measuring a load state of the cache memory, and controlling the interrupt selector based on the measurement result, And a step of causing a lightest-loaded processor to execute an interrupt process.
JP23224095A 1995-09-11 1995-09-11 Multiprocessor system, method and device for interrupt control used in the same Withdrawn JPH0981528A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23224095A JPH0981528A (en) 1995-09-11 1995-09-11 Multiprocessor system, method and device for interrupt control used in the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23224095A JPH0981528A (en) 1995-09-11 1995-09-11 Multiprocessor system, method and device for interrupt control used in the same

Publications (1)

Publication Number Publication Date
JPH0981528A true JPH0981528A (en) 1997-03-28

Family

ID=16936174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23224095A Withdrawn JPH0981528A (en) 1995-09-11 1995-09-11 Multiprocessor system, method and device for interrupt control used in the same

Country Status (1)

Country Link
JP (1) JPH0981528A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008503833A (en) * 2004-06-22 2008-02-07 ゼネラル・エレクトリック・カンパニイ Computer system and method for queuing interrupt messages in devices connected to a parallel communication bus
JP2008191949A (en) * 2007-02-05 2008-08-21 Nec Corp Multi-core system, and method for distributing load of the same
JP2009193093A (en) * 2008-02-12 2009-08-27 Fujitsu Ltd Memory shared data processing system, memory access amount measuring apparatus, and memory access amount measuring method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008503833A (en) * 2004-06-22 2008-02-07 ゼネラル・エレクトリック・カンパニイ Computer system and method for queuing interrupt messages in devices connected to a parallel communication bus
JP2008191949A (en) * 2007-02-05 2008-08-21 Nec Corp Multi-core system, and method for distributing load of the same
JP2009193093A (en) * 2008-02-12 2009-08-27 Fujitsu Ltd Memory shared data processing system, memory access amount measuring apparatus, and memory access amount measuring method

Similar Documents

Publication Publication Date Title
CA2061127C (en) Multiprocessor system and interrupt arbiter thereof
US10614010B2 (en) Handling queued interrupts in a data processing system based on a saturate value
JP4094550B2 (en) Method and apparatus for scheduling requests using criteria of an ordered stage of scheduling
JP2940450B2 (en) Job scheduling method and apparatus for cluster type computer
US5892956A (en) Serial bus for transmitting interrupt information in a multiprocessing system
US5905898A (en) Apparatus and method for storing interrupt source information in an interrupt controller based upon interrupt priority
JPH06266676A (en) Interruption steering system of multiprocessor-computer
US6473780B1 (en) Scheduling of direct memory access
US20050076337A1 (en) Method and system of optimizing thread scheduling using quality objectives
JP2012512472A (en) Resolving contention between data bursts
EP0912943B1 (en) Multiprocessing interrupt controller on i/o bus
CN113312323B (en) IO request scheduling method and system for reducing access delay in parallel file system
US5850555A (en) System and method for validating interrupts before presentation to a CPU
US7007138B2 (en) Apparatus, method, and computer program for resource request arbitration
US10713089B2 (en) Method and apparatus for load balancing of jobs scheduled for processing
US11061724B2 (en) Programmable hardware scheduler for digital processing systems
US5850558A (en) System and method for referencing interrupt request information in a programmable interrupt controller
US11113101B2 (en) Method and apparatus for scheduling arbitration among a plurality of service requestors
JPH0981528A (en) Multiprocessor system, method and device for interrupt control used in the same
US5894578A (en) System and method for using random access memory in a programmable interrupt controller
EP1594048A2 (en) Thread selection unit and method for a multithreaded processor
JP2017045089A (en) Bandwidth control circuit, arithmetic processing unit, and bandwidth control method for unit
JPH0696014A (en) Bus using priority order controller
JPH10240698A (en) Load distribution system for high load job
JPH0340150A (en) Swap area security control system in accordance with job priority

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: 20021203