JPH07114479A - Interrupt control method - Google Patents
Interrupt control methodInfo
- Publication number
- JPH07114479A JPH07114479A JP5260637A JP26063793A JPH07114479A JP H07114479 A JPH07114479 A JP H07114479A JP 5260637 A JP5260637 A JP 5260637A JP 26063793 A JP26063793 A JP 26063793A JP H07114479 A JPH07114479 A JP H07114479A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- interrupt
- output
- input
- processing unit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
(57)【要約】
【構成】プロセッシングユニット(PU)からの命令読
み取り要求は信号線121−124からカウンタ201
〜204に入力されカウントされる。このカウント動作
はクロック200からのクロック信号の間隔毎に取って
いる。このカウンタ値は比較器211−213、AND
ゲート241−244によって大小比較がなされる。ゲ
ート241−244は入力ポートi4の値がtrueの場合
には入力ポートの値がそのまま出力ポートo3から出力
され、false の場合にはo3から信号を出力しない;ゲ
ート241−244の信号は各々対応するPU101−
103の割り込み要求信号の受付部分に出力される。
【効果】命令キャッシュへのヒット率が高いPUへの割
り込み発生を抑止し、割り込み処理によるキャッシュミ
スの増加を抑えることができる。
(57) [Summary] [Structure] A command read request from the processing unit (PU) is sent from the signal line 121-124 to the counter 201.
To 204 and are counted. This counting operation is performed at intervals of the clock signal from the clock 200. This counter value is compared with the comparators 211-213, AND
The gates 241-244 compare the magnitude. The gate 241-244 outputs the value of the input port as it is from the output port o3 when the value of the input port i4 is true, and does not output the signal from o3 when it is false; the signals of the gates 241-244 correspond to each other. PU101-
The signal is output to the interrupt request signal reception unit 103. [Effect] It is possible to suppress the generation of an interrupt to a PU that has a high hit rate on the instruction cache and suppress an increase in cache misses due to interrupt processing.
Description
【0001】[0001]
【産業上の利用分野】本発明はキャッシュメモリを内蔵
するプロセッシングユニット(以下PU)から構成され
たマルチプロセッサシステムに係り、特に、その入出力
機器からの割り込み要求に高速に応答するようなシステ
ムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a multiprocessor system including a processing unit (hereinafter referred to as PU) having a built-in cache memory, and more particularly to a system which responds to an interrupt request from its input / output device at high speed. .
【0002】[0002]
【従来の技術】マルチプロセッサシステムでは、割り込
み要求が発生すると、それをどのプロセッサユニットに
おいて処理するかということが問題である。従来はプロ
セッサユニットの中で最も優先度の低いプロセスが実行
しているものを探しそこに実行させる様な方法が考えら
れていた。2. Description of the Related Art In a multiprocessor system, when an interrupt request occurs, it is a problem in which processor unit the interrupt request is processed. Conventionally, a method has been considered in which a process having the lowest priority among the processor units is executed and the process is executed there.
【0003】例えば、1992/8/19発行の情報処
理学会オペレーティングシステム研究会資料pp89−
96“MP UNIXにおけるデバイスアクセスの手法
の比較”のなかにもその記述がある。For example, pp. 89-
There is a description in 96 "Comparison of device access methods in MP UNIX".
【0004】[0004]
【発明が解決しようとする課題】従来の技術では割り込
みの要因の発生時点でのPUの状態に関する考慮がされ
ておらず、例えば、ほとんどの命令がキャッシュにヒッ
トして効率よく処理が出来ているプロセッサに対して割
り込みを発生させる可能性がある。その場合、割り込み
処理実行のために効率よく実行していた処理のキャッシ
ュが失われ処理効率が悪化するという問題があった。In the prior art, no consideration is given to the state of the PU at the time of generation of an interrupt factor. For example, most instructions hit the cache and can be processed efficiently. May cause an interrupt to the processor. In that case, there is a problem in that the cache of the process that is being efficiently executed for executing the interrupt process is lost and the processing efficiency is deteriorated.
【0005】本発明の第一の目的は命令キャッシュへの
ヒット率が高いPUへの割り込み発生を抑止し、割り込
み処理によるキャッシュミスの増加を抑えることにあ
る。A first object of the present invention is to suppress the generation of an interrupt to a PU that has a high hit rate on the instruction cache and suppress an increase in cache misses due to interrupt processing.
【0006】本発明の第二の目的は同じ条件下で、ソフ
トウェアが自分が実行する特定部分についてキャッシュ
へのヒット率が良くなることが予測できる場合などに、
その情報をもとにソフトウェアの特定部分だけ割り込み
要求が発生しにくくなるような手段をソフトウェアに与
えることである。但しこれは単なる割り込み禁止とは異
なり、割り込み禁止をしていないPUのどれかには必ず
割り込みが発生しなければならない。A second object of the present invention is to, under the same conditions, when software can predict that the hit ratio to the cache for a specific part executed by itself will improve.
Based on this information, it is necessary to give the software a means that makes it difficult for interrupt requests to occur only in a specific part of the software. However, this is different from mere interrupt prohibition, and an interrupt must be generated in any of the PUs for which interrupts are not prohibited.
【0007】[0007]
【課題を解決するための手段】第一の目的を達成するた
めに次の手段を設ける。すなわち、PU毎にフェッチ要
求の個数を計測するカウンタを設ける。一定時間毎に信
号を出力するタイマを設けその出力信号を上記のカウン
タのリッセト信号の入力ポートにつなぐ。各カウンタの
値の最大値を求める様な比較回路を設ける。この回路か
らはPU毎に信号が出力され、最大のカウンタ値を出力
しているPUに対する信号のみ真(true)で、他は偽(fal
se)とする。次にPU毎に制御信号に応じて入力した信
号を出力するゲートを設け、このゲートの制御信号に上
記の比較回路からの信号を入力する。このゲートの入力
ポートには割り込み信号を入力する。また出力信号は各
PUの割り込み信号として用いる。In order to achieve the first object, the following means are provided. That is, a counter for measuring the number of fetch requests is provided for each PU. A timer that outputs a signal at fixed time intervals is provided, and the output signal is connected to the input port of the reset signal of the counter. A comparison circuit is provided to obtain the maximum value of each counter. This circuit outputs a signal for each PU, only the signal for the PU that outputs the maximum counter value is true, and the others are false.
se). Next, each PU is provided with a gate that outputs an input signal according to the control signal, and the signal from the above-mentioned comparison circuit is input to the control signal of this gate. An interrupt signal is input to the input port of this gate. The output signal is used as an interrupt signal for each PU.
【0008】第二の課題を達成するために次の手段を設
ける。PU毎に記憶装置を設ける。この記憶装置は各P
Uからは同じアドレスに見えるようにしておく。この記
憶装置に記憶された値の最大値を求める様な比較回路を
設ける。この回路からはPU毎に信号が出力され、最大
のカウンタ値を出力しているPUに対する信号のみtrue
で、他はfalse とする。次にPU毎に制御信号に応じて
入力した信号を出力するゲートを設ける。その内容は第
一の課題のために設けたゲートと同じとする。The following means are provided to achieve the second object. A storage device is provided for each PU. This storage device is
Make it visible from U to the same address. A comparison circuit is provided to obtain the maximum value stored in this storage device. This circuit outputs a signal for each PU, and only the signal for the PU that is outputting the maximum counter value is true.
, And the others are false. Next, each PU is provided with a gate that outputs an input signal according to a control signal. The content is the same as the gate provided for the first task.
【0009】[0009]
【作用】第一の課題のために設けた手段は次のように動
作する。通常の処理実行中にはPUから主記憶へのメモ
リ要求のうち命令読み取り要求(フェッチ)の信号がカ
ウンタによって計測される。このカウンタにはタイマか
らの信号が供給され、最近のフェッチの回数を記憶して
いる。このPU毎のカウント値は比較回路を通じて比較
されその最大値に対応するPUにに対する信号のみtru
e、他のPUに対する信号はfalse が出力される。これ
らの信号は各PUに対応するゲートの制御信号として用
いられる。このゲートには入出力装置からの割り込み信
号が入力される。割り込み信号が入力されたときに、制
御信号がfalse ならば割り込み信号はこのゲートからは
出力されずPUへは入力されない。制御信号がtrueなら
ば割り込み信号はこのゲートからは出力され、対応する
PUへ入力され、割り込み要求がなされる。The means provided for the first object operates as follows. During normal processing execution, a signal of an instruction read request (fetch) among memory requests from the PU to the main memory is measured by the counter. A signal from a timer is supplied to this counter, and the number of recent fetches is stored. The count value of each PU is compared through the comparison circuit, and only the signal for the PU corresponding to the maximum value is set to true.
e, false signals are output to other PUs. These signals are used as control signals for the gates corresponding to each PU. An interrupt signal from the input / output device is input to this gate. If the control signal is false when the interrupt signal is input, the interrupt signal is not output from this gate and is not input to the PU. If the control signal is true, an interrupt signal is output from this gate, input to the corresponding PU, and an interrupt request is made.
【0010】PUのなかでキャッシュヒット率が高いP
Uはフェッチのカウント値が小さくなり、割り込みの発
生が抑えられる。Among PUs, P has a high cache hit rate
For U, the fetch count value is reduced, and the occurrence of interrupts is suppressed.
【0011】第二の課題のために設けた手段は次のよう
に動作する。プログラムはこれから実行するプログラム
の部分ができることなら割り込みに入って欲しくない場
合には(例えばキャッシュのヒット率が高くなると予測
された場合等)、その度合いに応じて、上記手段のなか
のPU毎に設けた記憶装置に小さい数字を入れる。そう
でない場合には大きい数字を入れる。この数字が比較回
路に入力され以後第一の課題のために設けた手段と同じ
動作をする。この結果、PUのなかで最も小さい値を指
定したPUへの割り込みの発生が抑えられる。すなわ
ち、プログラムが最も割り込まれたくない部分を実行し
ているときに、他のPUにが割り込み可能の場合には、
最も割り込まれたくない部分を実行しているPUへの割
り込みは抑えられる。The means provided for the second task operate as follows. If the program does not want to be interrupted if the part of the program to be executed can be done (for example, if the cache hit rate is predicted to be high), then according to the degree, for each PU in the above means, Put a small number in the provided storage device. If not, enter a large number. This number is input to the comparison circuit, and thereafter the same operation as the means provided for the first problem is performed. As a result, it is possible to suppress the generation of an interrupt to the PU that specifies the smallest value among the PUs. That is, when the program is executing the part that you do not want to be interrupted and other PU can interrupt,
Interrupts to the PU executing the part that is least likely to be interrupted are suppressed.
【0012】[0012]
【実施例】第一の実施例を図1,図2で説明する。図1
は本発明によるコンピュータシステムのブロック図、図
2は図1の中の割り込み制御回路のブロック図である。
本システムには101−104のプロセッシングユニッ
ト(以下PU)があり、それぞれ信号線111−114
を経由してバス110に接続している。主記憶装置10
5は信号線115を介して、入出力装置107は信号線
117を介してそれぞれバス110につながっていると
する。割り込み制御回路106は各PUとバス110を
結ぶ信号線111−114の一部分を信号線121−1
24によって入力している。またバス上の割り込み要求
信号は信号線116を介して割り込み制御回路106に
入力されているとする。また、信号線121−124に
は割り込み制御回路106から各PUへ送られる割り込
み信号も含まれているとする。EXAMPLE A first example will be described with reference to FIGS. Figure 1
2 is a block diagram of a computer system according to the present invention, and FIG. 2 is a block diagram of the interrupt control circuit in FIG.
This system has 101-104 processing units (hereinafter referred to as PUs), and signal lines 111-114, respectively.
To the bus 110 via. Main memory 10
5 is connected to the bus 110 via the signal line 115 and the input / output device 107 is connected to the bus 110 via the signal line 117. The interrupt control circuit 106 connects a part of the signal lines 111-114 connecting each PU and the bus 110 to the signal line 121-1.
You are entering by 24. It is also assumed that the interrupt request signal on the bus is input to the interrupt control circuit 106 via the signal line 116. Further, it is assumed that the signal lines 121 to 124 also include an interrupt signal sent from the interrupt control circuit 106 to each PU.
【0013】次に図2について説明する。信号線121
−124はPUから出力されたフェッチ信号fetch を入
力信号として含んでいる。また、121−124は割り
込み信号intrを出力している信号として含んでいる。ま
た入力装置107からの割り込み要求信号は117,1
19,116を介して割り込み制御回路に入力される。
フェッチカウンタ201−204はクロック200から
の信号を受けながら、指定時間間隔でのフェッチ要求の
回数をカウントする。比較器211−213はいずれも
次のような機能を持っているとする。i1,i2から入
力されたデータの値の大小を比較しi1が大きい場合に
はtrue、そうでない場合にはfalse を出力ポートo1か
ら出力するものとする。o2からはi1,i2の大きい
ほうの値を出力するものとする。比較器213からの出
力o2はこの構成では利用しない。各比較器のo1から
の出力は必要なら反転をしてANDゲート231−23
4に入力されている。ANDゲート231−234から
の出力信号は割り込み要求信号116と一緒にゲート2
41−244に入力される。ゲート241−244の動
作は次のとおりである。i3,i4から入力信号が入
り、o3から出力信号がでる。i3に情報が到着する
と、i4がtrueであればi3から入力された情報はo3
から出力される。i4がfalse であればi3の情報は無
視され、o3からは出力されない。Next, FIG. 2 will be described. Signal line 121
-124 includes the fetch signal fetch output from the PU as an input signal. Further, 121-124 include the interrupt signal intr as a signal that is being output. Further, the interrupt request signals from the input device 107 are 117,1
It is input to the interrupt control circuit via 19, 116.
The fetch counters 201-204 count the number of fetch requests at designated time intervals while receiving the signal from the clock 200. It is assumed that each of the comparators 211 to 213 has the following functions. The magnitudes of the data values input from i1 and i2 are compared. If i1 is large, true is output, and if not, false is output from the output port o1. The larger value of i1 and i2 is output from o2. The output o2 from the comparator 213 is not used in this configuration. The output from o1 of each comparator is inverted if necessary and AND gates 231-23
It is entered in 4. The output signal from the AND gates 231-234 is supplied to the gate 2 together with the interrupt request signal 116.
41-244. The operation of the gates 241-244 is as follows. An input signal comes in from i3 and i4, and an output signal comes out from o3. When the information arrives at i3, if i4 is true, the information input from i3 is o3.
Is output from. If i4 is false, the information of i3 is ignored and it is not output from o3.
【0014】次に各部分の動作を記述する。Next, the operation of each part will be described.
【0015】通常の処理実行中には、PU101−10
4はバス110を介して主記憶105に対して情報の読み
書きを行っている。命令読込みのための読込み要求(以
下フェッチ要求)は信号線111−114,110,1
15を経由して主記憶に送られると同時に、信号線11
1−114から分岐し信号線121−124を介して割
り込み制御回路106に伝えられる。割り込み制御回路
106では次のような処理が行われる。During normal processing execution, the PU 101-10
Reference numeral 4 reads / writes information from / to the main memory 105 via the bus 110. A read request (hereinafter referred to as a fetch request) for reading an instruction is issued through the signal lines 111-114, 110, 1
At the same time as being sent to the main memory via
The signal is branched from 1-114 and transmitted to the interrupt control circuit 106 via signal lines 121-124. The interrupt control circuit 106 performs the following processing.
【0016】フェッチ信号がカウンタ211−204に
よって計測される。このカウンタにはタイマ200から
の信号が供給され、最近のフェッチの回数を記憶してい
るようになっている。このPU毎のカウント値は比較器
211−213及びANDゲート231−234によっ
て処理され、ANDゲート213−234からはフェッ
チカウンタ201−204の中の最大値に対応するAN
Dゲートからはtrueが、その他のANDゲートからはfa
lse が出力される。例えば、カウンタ201が最大値の
場合の動作は次のようになる。i1の入力の法がi2よ
り大きいので(201は最大だから)比較器211の出
力ポートo1からはtrueが出力される。また、o2から
はi1から入力された情報が(即ち、最大値のカウント
値が)出力され比較器213のi1に入力される。i1
に入力された値が最大値であるため、比較器212から
の出力に関係なく比較器213からはtrueが出力され
る。比較器213のo1からの出力はいずれも反転され
てから(即ち、false となって)ゲート233,234
に送られる。比較器211のo1からの出力は反転して
ゲート232に送られるためゲート232からもfalse
が出力される。ゲート231への入力はいずれもtrueで
あるためゲート231はtureを出力する。The fetch signal is measured by counters 211-204. A signal from the timer 200 is supplied to this counter so that the number of recent fetches is stored. The count value for each PU is processed by the comparators 211-213 and the AND gates 231-234, and from the AND gates 213-234, the AN corresponding to the maximum value in the fetch counters 201-204 is processed.
True from D gate, fa from other AND gates
lse is output. For example, the operation when the counter 201 has the maximum value is as follows. Since the modulus of the input of i1 is larger than i2 (since 201 is the maximum), true is output from the output port o1 of the comparator 211. The information input from i1 (that is, the maximum count value) is output from o2 and input to i1 of the comparator 213. i1
Since the value input to is the maximum value, true is output from the comparator 213 regardless of the output from the comparator 212. All the outputs from o1 of the comparator 213 are inverted (that is, become false) and then the gates 233 and 234 are output.
Sent to. The output from o1 of the comparator 211 is inverted and sent to the gate 232.
Is output. Since the inputs to the gate 231 are all true, the gate 231 outputs true.
【0017】入出力装置107において割り込み要因が
発生すると、信号線117,バス110,信号線116
を介して割り込み制御回路に割り込み要求が送られる。
信号116はゲート241−244のi3へ入力され
る。この時点でANDゲート241−244のなかでtr
ueが出力されているANDゲートからの入力をうけてい
る、ゲートをその出力ポートo3から割り込み信号を送
るが、それ以外のゲートからは割り込み要求信号は出力
されない。例えばフェッチカウンタ202の値が最大で
ある場合にはANDゲート232からはtrueが、23
1,233,234からはfalse が出力されゲート242
からは割り込み信号が出力され、241,243,24
4からは割り込み信号は出力されない。ゲート242か
らの割り込み信号は信号線122のintr、信号線112
をへてpu102へ送られ、割り込み動作が開始され
る。When an interrupt factor occurs in the input / output device 107, the signal line 117, the bus 110, and the signal line 116.
An interrupt request is sent to the interrupt control circuit via.
The signal 116 is input to i3 of the gates 241-244. At this time, tr in AND gates 241-244
The gate receives an input from the AND gate outputting ue, and sends an interrupt signal from its output port o3, but no interrupt request signal is output from the other gates. For example, when the value of the fetch counter 202 is the maximum, true is returned from the AND gate 232 to 23
False is output from 1,233,234 and the gate 242
An interrupt signal is output from 241, 243, 24
No interrupt signal is output from No. 4. The interrupt signal from the gate 242 is the intr of the signal line 122 and the signal line 112.
Is sent to the pu 102, and the interrupt operation is started.
【0018】本実施例によればフェッチの間隔が短いプ
ロセッサに対して優先的に割り込みを発生させ、キャッ
シュのヒット率が高くフェッチ間隔の長いPUへの割り
込みが抑止される。According to this embodiment, an interrupt is preferentially generated for a processor having a short fetch interval, and an interrupt to a PU having a high cache hit rate and a long fetch interval is suppressed.
【0019】第二の実施例を図1,図3で説明する。図
1は本発明によるコンピュータシステムのブロック図,
図3は図1の中の割り込み制御回路のブロック図であ
る。第一の実施例では信号線121−124は命令の読
込み信号(フェッチ信号)と割り込み要求信号であった
が、今回の例では主記憶へのアクセスの信号全体が入力
されているとする。PUからのメモリアクセスのうち特
定のアドレスに対するメモリ要求があると、その要求は
主記憶105へは送られず、信号線121−124を経
由して記憶装置301−304へ送られるとする。本実
施例では0x10000000番地へのワードアクセスは主記憶で
はなく各PU毎に設けた記憶装置301−304へのア
クセスになるものとする。図2と図3の相違点はフェッ
チカウンタ201−204とタイマ200が記憶装置3
01−304に代わったことである。A second embodiment will be described with reference to FIGS. FIG. 1 is a block diagram of a computer system according to the present invention,
FIG. 3 is a block diagram of the interrupt control circuit in FIG. In the first embodiment, the signal lines 121-124 are the instruction read signal (fetch signal) and the interrupt request signal, but in this example, it is assumed that the entire signal for accessing the main memory is input. When there is a memory request for a specific address from the memory access from the PU, the request is not sent to the main memory 105, but to the storage devices 301-304 via the signal lines 121-124. In this embodiment, it is assumed that the word access to the address 0x10000000 is not the main memory but the storage devices 301 to 304 provided for each PU. The difference between FIG. 2 and FIG. 3 is that the fetch counters 201-204 and the timer 200 are the storage device 3.
It replaces 01-304.
【0020】各PUから通常の主記憶アクセスと同じ手
順で0x10000000番地アクセスの要求があると、その処理
要求は対応する記憶装置へのアクセスとなる。例えば、
PU103から0x10000000番地へ数値0x1234を書き込む
ような命令がでると、記憶装置303に0x1234が記憶さ
れることになる。このようにして各PU101−104
は0x10000000番地へのアクセスによって対応する記憶装
置301−304へのデータ書き込みを行う。When a request for access to address 0x10000000 is issued from each PU in the same procedure as a normal main memory access, the processing request is an access to the corresponding storage device. For example,
When the PU 103 issues an instruction to write the numerical value 0x1234 to the address 0x10000000, 0x1234 is stored in the storage device 303. In this way, each PU 101-104
Writes data to the corresponding storage device 301-304 by accessing the address 0x10000000.
【0021】第一の実施例と全く同じ動作をすることに
より記憶装置301−304の中の最大の値を保持して
いる記憶装置に対応するANDゲートからはtrueが、そ
の他のANDゲートからはfalse が出力される。By performing exactly the same operation as in the first embodiment, true is given from the AND gate corresponding to the storage device holding the maximum value in the storage devices 301-304, but from the other AND gates. false is output.
【0022】入出力装置107において割り込み要因が
発生すると、第一の実施例と同じ動作により記憶装置3
01−304の中の最大値を保持している記憶装置に対
応するゲートから割り込み要求信号が出力され、それ以
外のゲートからは割り込み要求は出力されない。When an interrupt factor is generated in the input / output device 107, the storage device 3 is operated by the same operation as that of the first embodiment.
The interrupt request signal is output from the gate corresponding to the storage device holding the maximum value of 01-304, and the interrupt request is not output from the other gates.
【0023】このような環境下で次のような図4に示す
ソフトウェアの動作を考える。Consider the following operation of the software shown in FIG. 4 under such an environment.
【0024】これは指定された領域のデータを指定され
た領域へ指定されたサイズ分転送するプログラムであ
る。この例で、主記憶装置105,バス110は十分高
速で、各PUからのメモリアクセスは並行に実行できる
とする。PU101,102,103,104における
データ転送量はそれぞれ1MB,2MB,4MB,8MB
とする。This is a program for transferring the data in the designated area to the designated area by the designated size. In this example, it is assumed that the main storage device 105 and the bus 110 are sufficiently fast, and memory access from each PU can be executed in parallel. The data transfer amount in the PU 101, 102, 103, 104 is 1 MB, 2 MB, 4 MB, 8 MB, respectively.
And
【0025】ステップ401,402により各PUは各
記憶装置301−304からの情報を読み取りそれを各
コンテクスト上の一時変数sに格納し、各記憶装置に−
0x1000000,−0x2000000,−0x4000000,−0x8000000が
記録される。ステップ403−403は通常のメモリ転
送である。これらを実行中に入出力装置107から割り
込み要求が出力されたとする。これまで述べてきた動作
のとおり、各記憶装置301−304の中で最大値を保
持している記憶装置301に対応するPU101へ割り
込み信号は出力され割り込みの開始処理が実行される。In steps 401 and 402, each PU reads the information from each storage device 301-304, stores it in the temporary variable s on each context, and stores it in each storage device.
0x1000000, −0x2000000, −0x4000000, −0x8000000 are recorded. Steps 403-403 are normal memory transfers. It is assumed that an interrupt request is output from the input / output device 107 during execution of these. As described above, the interrupt signal is output to the PU 101 corresponding to the storage device 301 holding the maximum value among the storage devices 301 to 304, and the interrupt start processing is executed.
【0026】以上本実施例によれば、より多くの情報を
転送しようとするプログラムへの割り込みが抑止され、
そのPUにおけるキャッシュのヒット率の低下を防ぎ、
システム全体としてのスループットを向上させることが
できる。As described above, according to the present embodiment, interruption of a program that attempts to transfer more information is suppressed,
Prevent the cache hit rate from decreasing in the PU,
The throughput of the entire system can be improved.
【0027】[0027]
【発明の効果】本発明によれば、命令キャッシュへのヒ
ット率が高いPUへの割り込み発生を抑止し、割り込み
処理によるキャッシュミスの増加を抑えることができる
ようになる。As described above, according to the present invention, it is possible to suppress the generation of an interrupt to a PU having a high hit rate on the instruction cache and to suppress the increase of cache misses due to the interrupt processing.
【0028】ソフトウェアが自分が実行する特定部分に
ついてキャッシュへのヒット率が良くなることが予測で
きるような場合には、その情報をもとにソフトウェアの
特定部分だけ割り込み要求が発生しにくくなるような手
段をソフトウェアが利用できるようになる。When the software can predict that the hit ratio to the cache for the specific part executed by itself will be improved, it becomes difficult for the specific part of the software to generate an interrupt request based on the information. Means will be available to software.
【図1】第一の実施例,第二の実施例におけるシステム
ブロック図。FIG. 1 is a system block diagram in a first embodiment and a second embodiment.
【図2】第一の実施例における割り込み制御回路のブロ
ック図。FIG. 2 is a block diagram of an interrupt control circuit according to the first embodiment.
【図3】第二の実施例における割り込み制御回路の詳細
なブロック図。FIG. 3 is a detailed block diagram of an interrupt control circuit according to a second embodiment.
【図4】第二の実施例を実行するプログラムのフローチ
ャート。FIG. 4 is a flowchart of a program that executes a second embodiment.
101−104…PU、105…主記憶装置、107…
入出力装置、106…割り込み制御装置、200…クロ
ック、201−204…フェッチのカウンタ、211−
213…比較器、231−234…ANDゲート、24
1−244…割り込み信号のゲート、301−304…
記憶装置。101-104 ... PU, 105 ... Main storage device, 107 ...
I / O device, 106 ... Interrupt control device, 200 ... Clock, 201-204 ... Fetch counter, 211-
213 ... Comparator, 231-234 ... AND gate, 24
1-244 ... Gate of interrupt signal, 301-304 ...
Storage device.
Claims (2)
グユニットから構成されたマルチプロセッサシステムに
おいて、前記各プロセッシングユニットから出力される
命令読み取り要求信号の頻度を計測する手段を設け、各
入出力装置からの割り込み要求発生時に前記各プロセッ
シングユニットからの命令読み取り信号の頻度に応じて
割り込むプロセッシングユニットを決定すること特徴と
する割り込み制御方式。1. A multiprocessor system comprising a processing unit containing a cache memory, wherein means for measuring the frequency of an instruction read request signal output from each processing unit is provided, and an interrupt request from each input / output device is provided. An interrupt control method characterized in that a processing unit to be interrupted is determined according to a frequency of an instruction read signal from each processing unit when the processing unit occurs.
グユニットから構成されたマルチプロセッサシステムに
おいて、前記プロセッシングユニット毎に1ワードの記
憶装置を設け、ソフトウェアの動作状況に応じて前記ソ
フトウェアが前記キャッシュメモリに値を代入し、各入
出力装置からの割り込み要求発生時に、前記キャッシュ
メモリに記憶された値の大小により割り込むプロセッシ
ングユニットを決定することを特徴とする割り込み制御
方式。2. A multiprocessor system comprising a processing unit having a built-in cache memory, wherein a one-word storage device is provided for each processing unit, and the software stores a value in the cache memory in accordance with the operating status of the software. An interrupt control method, wherein a processing unit to be substituted is determined according to the magnitude of a value stored in the cache memory when an interrupt request is issued from each input / output device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5260637A JPH07114479A (en) | 1993-10-19 | 1993-10-19 | Interrupt control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5260637A JPH07114479A (en) | 1993-10-19 | 1993-10-19 | Interrupt control method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH07114479A true JPH07114479A (en) | 1995-05-02 |
Family
ID=17350693
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5260637A Pending JPH07114479A (en) | 1993-10-19 | 1993-10-19 | Interrupt control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH07114479A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013507719A (en) * | 2009-10-13 | 2013-03-04 | エンパイア テクノロジー ディベロップメント エルエルシー | Interrupt mask for multi-core processors |
-
1993
- 1993-10-19 JP JP5260637A patent/JPH07114479A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2013507719A (en) * | 2009-10-13 | 2013-03-04 | エンパイア テクノロジー ディベロップメント エルエルシー | Interrupt mask for multi-core processors |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6539500B1 (en) | System and method for tracing | |
| CN112585584B (en) | Apparatus and method for handling events causing anomalies | |
| JPH04306748A (en) | Information processor | |
| US5371857A (en) | Input/output interruption control system for a virtual machine | |
| JP3201786B2 (en) | Control method of digital signal processing system | |
| JP3420091B2 (en) | Microprocessor | |
| US20050120358A1 (en) | Event notifying method, device and processor system | |
| JPH07114479A (en) | Interrupt control method | |
| US6920513B2 (en) | Bus management techniques | |
| US6665750B1 (en) | Input/output device configured for minimizing I/O read operations by copying values to system memory | |
| JP4592944B2 (en) | CPU interface circuit | |
| JPH03147157A (en) | Information processor | |
| JP2783285B2 (en) | Information processing device | |
| JP3517884B2 (en) | Data processing device | |
| JPH11143789A (en) | Bus tracing device | |
| JPH09167117A (en) | Microcomputer and real-time system using the same | |
| JP2002278753A (en) | Data processing system | |
| JP2000066922A (en) | Method for preventing contention for storing all instruction trace data in secondary storage device | |
| JPH0644193A (en) | I/o register access system | |
| JPH0391055A (en) | Hardware lock setting method, hardware lock control device, hardware lock detection method and device | |
| JPH0535507A (en) | Central processing unit | |
| JPH02112054A (en) | data processing equipment | |
| JP2000172675A (en) | List vector processor | |
| JP2002366350A (en) | Processor system | |
| JPH02252047A (en) | Microprocessor |