JP4653192B2 - A computer that dynamically determines interrupt delay. - Google Patents

A computer that dynamically determines interrupt delay. Download PDF

Info

Publication number
JP4653192B2
JP4653192B2 JP2008115193A JP2008115193A JP4653192B2 JP 4653192 B2 JP4653192 B2 JP 4653192B2 JP 2008115193 A JP2008115193 A JP 2008115193A JP 2008115193 A JP2008115193 A JP 2008115193A JP 4653192 B2 JP4653192 B2 JP 4653192B2
Authority
JP
Japan
Prior art keywords
interrupt
processor
delay
time
event
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 - Fee Related
Application number
JP2008115193A
Other languages
Japanese (ja)
Other versions
JP2008217821A (en
Inventor
明 陣崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2008115193A priority Critical patent/JP4653192B2/en
Publication of JP2008217821A publication Critical patent/JP2008217821A/en
Application granted granted Critical
Publication of JP4653192B2 publication Critical patent/JP4653192B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Description

本発明は計算機システムにおける割込み制御方式に係り、更に詳しくはプロセッサの負荷状態に応じて、例えば外部から割込み事象が入力されてから、計算機システム内の割込み要求出力部がプロセッサに割込み要求を出力するまでの遅延時間を動的に決定する計算機システムに関する。   The present invention relates to an interrupt control system in a computer system. More specifically, for example, after an interrupt event is input from the outside, an interrupt request output unit in the computer system outputs an interrupt request to the processor according to the load state of the processor. The present invention relates to a computer system that dynamically determines the delay time until.

計算機システムに対して、例えば外部からプロセッサによる割込み処理が必要となる割込み事象が入力されると、例えばその割込み事象を受取った入出力(I/O)デバイスから割込み(要求)信号がプロセッサに対して出力され、プロセッサによって対応する割込み処理が実行される。例えばI/Oデバイスがネットワークインタフェースである場合には、パケットなどの通信データが到着した時点で、I/Oデバイスからプロセッサに対して割込み信号が出力される。   When an interrupt event that requires interrupt processing by the processor is input to the computer system, for example, an interrupt (request) signal is received from the input / output (I / O) device that received the interrupt event to the processor. And the corresponding interrupt processing is executed by the processor. For example, when the I / O device is a network interface, an interrupt signal is output from the I / O device to the processor when communication data such as a packet arrives.

図16は本発明が対象とする計算機システムの構成ブロック図である。同図において計算機システムはプロセッサ50、メインメモリ51、I/Oバスブリッジ53、複数のI/Oデバイス54,55によって構成されている。   FIG. 16 is a block diagram showing the configuration of a computer system targeted by the present invention. In the figure, the computer system includes a processor 50, a main memory 51, an I / O bus bridge 53, and a plurality of I / O devices 54 and 55.

図16においてI/Oバスブリッジ53はプロセッサ50、メインメモリ51、I/Oバス52を接続する機構であり、プロセッサ50からメインメモリ51、I/Oバス52に対するアクセス機能を提供するものである。I/Oデバイス54,55はI/Oバス52に接続され、ネットワークやディスクなど様々なデバイスと計算機システムとの間のインタフェースとなる。   In FIG. 16, an I / O bus bridge 53 is a mechanism for connecting a processor 50, a main memory 51, and an I / O bus 52, and provides an access function from the processor 50 to the main memory 51 and the I / O bus 52. . The I / O devices 54 and 55 are connected to the I / O bus 52, and serve as interfaces between various devices such as networks and disks and the computer system.

例えばネットワークインタフェースの場合には、通信データがI/Oデバイスに到着した時点でプロセッサ50に対して割込み(要求)信号が出力され、この信号に対応してプロセッサ50はI/Oデバイス54の内部の、例えば割込み要因レジスタの内容を検査することになる。   For example, in the case of a network interface, an interrupt (request) signal is output to the processor 50 when communication data arrives at the I / O device. For example, the contents of the interrupt factor register are checked.

なおここでは現在パソコンの高速バスの主流として用いられているPCI(ペリフェラル・コンポーネント・インタコネクト)方式のバス、およびPCIバスデバイスを例として従来の技術について記述するが、本発明はどのような類似したシステムにも適用可能である。   Here, the prior art will be described by taking PCI (Peripheral Component Interconnect) type buses and PCI bus devices, which are currently used as the mainstream of high-speed buses for personal computers, as an example. It can also be applied to the system.

図16のようなシステムにおいて、I/Oデバイスがプロセッサに対して割込み(要求)信号を出すタイミングやその頻度は、システムの性能に大きな影響を与える。例えばI/Oデバイスがギガビットイーサネット(R) に対応するインタフェースである場合には、送受信ともに125MB/secの転送性能が実現されるが、パケットの最小の長さは60バイト程度であり、パケットを受信するたびに受信割込みがプロセッサに通知されると、0.5μsに1回の割合でプロセッサへの割込みが行われる。   In the system as shown in FIG. 16, the timing and frequency at which the I / O device issues an interrupt (request) signal to the processor greatly affects the performance of the system. For example, when the I / O device is an interface compatible with Gigabit Ethernet®, a transmission performance of 125 MB / sec is realized for both transmission and reception, but the minimum length of the packet is about 60 bytes, When a reception interrupt is notified to the processor every time it is received, the processor is interrupted at a rate of once every 0.5 μs.

図17はこのような場合における割込み処理の従来例の説明図である。同図において、例えば割込み事象1が外部から計算機システムに与えられ、直ちにプロセッサによって割込み処理が行われ、その後割込み事象kが外部から与えられ、また直ちにプロセッサによって割込み事象が行われる。   FIG. 17 is an explanatory diagram of a conventional example of interrupt processing in such a case. In the figure, for example, an interrupt event 1 is given from the outside to the computer system, the interrupt processing is immediately performed by the processor, an interrupt event k is then given from the outside, and an interrupt event is immediately performed by the processor.

プロセッサによる割込み処理にあたっては、現在の処理状態の退避や復旧、割込み要因
の特定など少なくも一定の処理負荷が必要となる。割込みが高頻度となり、割込み間隔が短くなると、プロセッサの割込み処理負荷が増大し、システムの性能を低下させる可能性がある。
The interrupt processing by the processor requires at least a certain processing load such as saving and restoring the current processing state and specifying the interrupt factor. If the frequency of interrupts becomes high and the interrupt interval becomes short, the interrupt processing load on the processor increases, which may reduce the performance of the system.

このように高頻度で割込みが発生することによってプロセッサの負荷が増大することを避けるため、インターラプト・コーレシングという従来技術が用いられている。インターラプト・コーレシングでは、割込みを発生すべき事象、すなわち割込み事象がおきてから実際にプロセッサに割込み要求を行うまでの時間を、一定の条件によって遅延させる処理が行われる。例えば複数の割込み事象がまとめられて割込むため、現在の処理状態の退避や復旧、割込み要因の特定などの処理負荷を1回にまとめることができ、プロセッサの処理負荷を軽減させることができる。   In order to avoid an increase in the load on the processor due to such frequent occurrence of interrupts, a conventional technique called interrupt calling is used. In interrupt calling, a process for delaying an event that should generate an interrupt, that is, a time from when an interrupt event occurs until an interrupt request is actually made to the processor, according to a certain condition is performed. For example, since a plurality of interrupt events are collected and interrupted, the processing load such as saving and restoring the current processing state and specifying the interrupt factor can be collected at one time, and the processing load of the processor can be reduced.

図18はこのようなインターラプト・コーレシングの説明図である。同図においては、割込み事象1がおきてから割込み事象Kがおきるまでの複数の割込みがまとめられて、I/Oデバイスからプロセッサに対して割込みの要求が与えられている。   FIG. 18 is an explanatory diagram of such interrupt coalescing. In the figure, a plurality of interrupts from the occurrence of interrupt event 1 to the occurrence of interrupt event K are collected, and an interrupt request is given from the I / O device to the processor.

インターラプト・コーレシングにおける割込み要求までの代表的な条件として“一定の時間が経過する”、あるいは“一定の回数の割込み事象がおこる”などの条件が用いられる。例えばネットワークインタフェースの場合には、パケットを受信してから一定の時間が経過した後に割込み要求がなされる。この方法を用いることによって、割込みを遅延させている間に合計K個のパケットを受信した場合には、プロセッサに割込む回数を1/Kに減らすことができる。割込み事象の回数についての条件を用いても、同様に割込み回数を減少させることができる。   As a typical condition up to the interrupt request in interrupt calling, a condition such as “a certain time elapses” or “a certain number of interrupt events occur” is used. For example, in the case of a network interface, an interrupt request is made after a certain time has elapsed since the packet was received. By using this method, when a total of K packets are received while the interrupt is delayed, the number of interrupts to the processor can be reduced to 1 / K. Even if the condition for the number of interrupt events is used, the number of interrupts can be similarly reduced.

次に従来におけるI/Oデバイス内の割込み要求回路の装置構成について説明する。図19はその構成ブロック図である。同図において例えばI/Oデバイス54の内部には、割込み要求回路58が設けられ、更にその内部に割込み要因レジスタ59が備えられている。   Next, a conventional apparatus configuration of an interrupt request circuit in an I / O device will be described. FIG. 19 is a block diagram of the configuration. In the figure, for example, an interrupt request circuit 58 is provided inside the I / O device 54, and an interrupt factor register 59 is further provided therein.

割込み要求回路58は、例えば外部からのパケットの到着によって割込み事象が発生した時に、I/Oバス52、I/Oバスブリッジ53を介してプロセッサ50に割込み(要求)信号を出力するものであり、それと同時に割込み要因レジスタ59には割込み事象の内容を判別するための情報が設定される。   The interrupt request circuit 58 outputs an interrupt (request) signal to the processor 50 via the I / O bus 52 and the I / O bus bridge 53 when an interrupt event occurs due to arrival of a packet from the outside, for example. At the same time, the interrupt factor register 59 is set with information for determining the contents of the interrupt event.

割込み要因レジスタ59の内容については、I/Oバス52を介してプロセッサ50から読み出し、書込みを行うことが可能であり、プロセッサ50は割込み要因レジスタ59の内容を検査することによって割込み事象の内容を識別する。またプロセッサ50は割込み要因レジスタ59の内容をクリアすることによって、割込み要求回路58に対して割込み処理の終了を通知することができる。これに対応して割込み要求回路58は割込み信号をゲネートし、割込みに対応する処理は全て終了する。   The contents of the interrupt factor register 59 can be read from and written to the processor 50 via the I / O bus 52. The processor 50 examines the contents of the interrupt factor register 59 to determine the contents of the interrupt event. Identify. Further, the processor 50 can notify the interrupt request circuit 58 of the end of the interrupt processing by clearing the contents of the interrupt factor register 59. In response to this, the interrupt request circuit 58 generates an interrupt signal, and all processes corresponding to the interrupt are completed.

図20は図19における割込み処理の流れの説明図である。(なお、以下に述べる図面における丸数字は、本明細書中では括弧を付した数字として示す。)割込み事象がI/Oデバイスに与えられると直ちにプロセッサに対して割込み信号が出力され、プロセッサは(1)で割込み要因レジスタ59の内容によって割込み要因を検査して割込み処理を開始し、(2)で割込み処理を基本的に終了して割込み要因レジスタ59の内容をクリアし、例えば割込み処理用の作業領域の開放などの処理を行って、(3)で割込み処理を終了する。 FIG. 20 is an explanatory diagram of the flow of interrupt processing in FIG. (Note that the circled numbers in the drawings described below are shown as parenthesized numbers in this specification.) As soon as an interrupt event is given to an I / O device, an interrupt signal is output to the processor. In (1) , the interrupt factor is inspected according to the contents of the interrupt factor register 59 and interrupt processing is started. In (2) , the interrupt processing is basically ended and the contents of the interrupt factor register 59 are cleared. For example, for interrupt processing Perform processing such as releasing the work area of, and end interrupt processing in (3) .

図21は従来におけるI/Oデバイスの他の構成例のブロック図であり、図22は図21における割込み処理の流れの説明図である。図21において、割込み要求回路58の内部にはあらかじめ定められた固定の遅延条件を格納している条件レジスタ61が備えられており、割込み遅延回路62は条件レジスタ61の内容に従って、割込み事象が発生してからプロセッサに対して割込み信号を出力するまでの遅延時間を決定する。条件レジスタ61の格納内容は前述の一定の時間でもよく、一定の回数の割込み事象でもよいが、割込み遅延回路62はその内容に対応して割込み事象が発生してからの遅延時間を決定し、割込み信号を出力する。   FIG. 21 is a block diagram of another configuration example of the conventional I / O device, and FIG. 22 is an explanatory diagram of the flow of interrupt processing in FIG. In FIG. 21, the interrupt request circuit 58 includes a condition register 61 that stores a predetermined fixed delay condition. The interrupt delay circuit 62 generates an interrupt event according to the contents of the condition register 61. Then, the delay time from when the interrupt signal is output to the processor is determined. The content stored in the condition register 61 may be the above-described fixed time or a fixed number of interrupt events, but the interrupt delay circuit 62 determines the delay time from the occurrence of the interrupt event corresponding to the content, Output an interrupt signal.

図22においてI/Oデバイスに割込み事象が与えられてから固定の遅延時間の後にプロセッサに対する割込み信号が出力され、その後図20におけると同様に、(1)で割込み要因の検査、(2)で割込み要因のクリアが行われ、(3)で割込み処理が終了する。 In FIG. 22, an interrupt signal is output to the processor after a fixed delay time after an interrupt event is given to the I / O device. After that, as in FIG. 20, (1) checks the interrupt factor, (2) The interrupt factor is cleared, and interrupt processing ends in (3) .

以上で説明した従来技術としてのインターラプト・コーレシングについては3つの問題点がある。第1の問題点は、割込み事象が発生してから常に一定の条件に従って割込みを遅延させるために、割込み事象が発生してからの応答が常に遅くなることである。例えばネットワークインタフェイスの場合に、パケットを1個しか受信しなくても、実際にパケットを受信してから一定時間を経過しないと割込み処理が実行されないことになる。   There are three problems with the interrupt calling as the prior art described above. The first problem is that, since an interrupt is always delayed according to a certain condition after the occurrence of the interrupt event, the response after the occurrence of the interrupt event is always delayed. For example, in the case of a network interface, even if only one packet is received, interrupt processing is not executed unless a certain time has elapsed since the packet was actually received.

第2の問題点は、プロセッサの負荷状態が考慮されないために、プロセッサの負荷が小さい時には直ちに割込みを行い、プロセッサの負荷が大きい時には割込みを遅延させるというような適応性のある処理ができないことである。   The second problem is that since the processor load state is not taken into consideration, an adaptive process such as immediately interrupting when the processor load is low and delaying the interrupt when the processor load is high cannot be performed. is there.

第3の問題点は、例えばI/Oデバイスにはカードなどが挿入されて使用されることが多いが、そのようなカードとプロセッサの間の割込み遅延のための最適条件がカードなどによって異なるにもかかわらず、従来技術では固定の遅延条件が用いられており、調整ができないということである。   The third problem is that, for example, a card or the like is often inserted into an I / O device, but the optimum condition for interrupt delay between such a card and the processor differs depending on the card or the like. Nevertheless, the conventional technique uses a fixed delay condition and cannot be adjusted.

本発明の目的は、プロセッサの性能や負荷の状態、および割込み事象の発生頻度などに応じて、割込み事象の発生から実際にI/Oデバイスがプロセッサに対して割込み要求信号を出力するまでの遅延条件を動的に決定できる計算機を提供することである。   The object of the present invention is to delay from the occurrence of an interrupt event until the I / O device actually outputs an interrupt request signal to the processor, depending on the performance of the processor, the state of the load, and the frequency of occurrence of the interrupt event. It is to provide a computer that can dynamically determine conditions.

図1は本発明の原理構成ブロック図である。同図において割込み要求出力部1は、図16のI/Oデバイスに対応し、割込み事象の発生に対応してプロセッサ2に対して割込み要求を出力するものである。   FIG. 1 is a block diagram showing the principle of the present invention. In the figure, an interrupt request output unit 1 corresponds to the I / O device of FIG. 16, and outputs an interrupt request to the processor 2 in response to the occurrence of an interrupt event.

図1において割込み要求出力部1は遅延条件決定手段3を備える。遅延条件決定手段3は、割込み事象が発生してから割込み要求出力部1がプロセッサ2に対して割込み要求を出力するまでの遅延条件、例えば遅延時間を動的に決定するものである。   In FIG. 1, the interrupt request output unit 1 includes delay condition determining means 3. The delay condition determining means 3 dynamically determines a delay condition, for example, a delay time from when an interrupt event occurs until the interrupt request output unit 1 outputs an interrupt request to the processor 2.

発明の実施の形態においては、割込み要求出力部1は遅延条件決定要因出力手段4を更に備える。遅延条件決定要因出力手段4は、割込み事象が発生してからプロセッサに割込み要求を出力するまでの遅延条件の決定要因を求めるものであり、遅延条件決定手段3は決定された要因に対応して割込み要求を出力するまでの条件を決定する。   In the embodiment of the invention, the interrupt request output unit 1 further includes delay condition determination factor output means 4. The delay condition determining factor output means 4 obtains a delay condition determining factor from when an interrupt event occurs until an interrupt request is output to the processor. The delay condition determining means 3 corresponds to the determined factor. Determine the conditions until an interrupt request is output.

この場合、割込み要求出力部1が、発生した割込み事象に対応した割込み要因を記憶する割込み要因記憶手段を更に備え、遅延条件決定要因出力手段4が割込み要求が出力されてからプロセッサによって割込み要因記憶手段の記憶内容が読み出されるまでの時間を、次回以後の割込みに対応する遅延条件決定要因として求めることも、また割込み要求が出
力されてからプロセッサによって割込み要因記憶手段の記憶内容がクリアされるまでの時間を、次回以後の割込みに対応する遅延条件決定要因として求めることも可能である。
In this case, the interrupt request output unit 1 further includes an interrupt factor storage unit that stores an interrupt factor corresponding to the interrupt event that has occurred, and the processor stores the interrupt factor after the delay condition determination factor output unit 4 outputs the interrupt request. The time until the stored contents of the means are read can be obtained as a delay condition determining factor corresponding to the next and subsequent interrupts, or until the stored contents of the interrupt factor storing means are cleared by the processor after the interrupt request is output. Can be obtained as a delay condition determining factor corresponding to the next and subsequent interrupts.

実施の形態においては、遅延条件決定要因出力手段4は割込み要求が出力されてからプロセッサによって割込み要因記憶手段の記憶内容が読み出されるまでの時間、またはその記憶内容がクリアされるまでの時間を複数回測定し、その複数回の測定値に基づいて、次回以後の割込みに対応する遅延条件要因を求めることもできる。   In the embodiment, the delay condition determination factor output means 4 has a plurality of times from when the interrupt request is output until the stored contents of the interrupt factor storage means are read by the processor, or until the stored contents are cleared. The delay condition factor corresponding to the next and subsequent interruptions can also be obtained based on the measurement values obtained a plurality of times.

更に実施の形態においては、遅延条件決定手段3は遅延条件決定要因出力手段4によって求められた決定要因としての時間にあらかじめ定められた係数を乗算して、遅延条件としての遅延時間を決定することもできる。   Furthermore, in the embodiment, the delay condition determining means 3 determines the delay time as the delay condition by multiplying the time as the determining factor obtained by the delay condition determining factor output means 4 by a predetermined coefficient. You can also.

また本発明の計算機は割込み周期設定手段と、割込み時点決定手段とを備える。割込み周期設定手段は、割込み要求出力部1が発生した割込み事象に対応してプロセッサ2に割込み要求を出力する周期を設定し、割込み時点決定手段は設定された割込み周期に基づいて、割込み事象に対応する割込み要求を出力する時点を決定する。   The computer of the present invention further comprises an interrupt cycle setting means and an interrupt time point determination means. The interrupt cycle setting means sets a cycle for outputting an interrupt request to the processor 2 in response to the interrupt event generated by the interrupt request output unit 1, and the interrupt time determining means sets an interrupt event based on the set interrupt cycle. Determine when to output the corresponding interrupt request.

発明の実施の形態においては、割込み要求出力部1は発生した割込み事象に対応する割込み要因を記憶する割込み要因記憶手段を更に備え、周期設定手段が割込み要求が出力されてからプロセッサによって割込み要因記憶手段の記憶内容が読み出されるまでの時間、あるいは割込み要因記憶手段の記憶内容がクリアされるまでの時間に基づいて、割込み周期を設定することもできる。   In the embodiment of the invention, the interrupt request output unit 1 further includes interrupt factor storage means for storing an interrupt factor corresponding to the generated interrupt event, and the processor sets the interrupt factor after the interrupt request is output by the cycle setting means. The interrupt cycle can also be set based on the time until the stored contents of the means are read or the time until the stored contents of the interrupt factor storage means are cleared.

実施の形態においては、割込み周期設定手段はプロセッサ2からの指示に対応して割込み周期を設定することもできる。
更に本発明の計算機はプロセッサ2に対する割込み要求の出力部1を備え、割込み要求出力部1は、プロセッサによって動的に決定され、割込み事象が発生してからプロセッサに割込み要求を出力するまでの遅延条件を記憶する遅延条件記憶手段、例えば条件レジスタを備える
In the embodiment, the interrupt cycle setting means can set the interrupt cycle in response to an instruction from the processor 2.
The computer according to the present invention further includes an interrupt request output unit 1 for the processor 2. The interrupt request output unit 1 is dynamically determined by the processor and is a delay from when an interrupt event occurs until the interrupt request is output to the processor. Delay condition storage means for storing conditions, for example, a condition register is provided .

以上のように本発明によれば、割込み事象が発生してから割込み要求出力部がプロセッサに割込み要求を出力するまでの遅延の条件が動的に決定される。   As described above, according to the present invention, the delay condition from when an interrupt event occurs until the interrupt request output unit outputs an interrupt request to the processor is dynamically determined.

図2は本発明の第1の実施形態における割込み要求回路の構成ブロック図であり、図3は図2における処理の流れの説明図である。
図2において条件レジスタ13は、図21の従来例における条件レジスタ61と同様に、割込み事象が発生してからI/Oデバイス10内の割込み遅延回路12がI/Oバス15を介してプロセッサに割込み(要求)信号を出力するまでの遅延条件を格納するものであるが、この遅延条件はプロセッサ側でプロセッサの負荷の状態に応じて動的に決定され、その条件が条件レジスタ13に格納される。
FIG. 2 is a block diagram showing the configuration of the interrupt request circuit according to the first embodiment of the present invention, and FIG. 3 is an explanatory diagram of the processing flow in FIG.
In FIG. 2, the condition register 13 is similar to the condition register 61 in the conventional example of FIG. The delay condition until an interrupt (request) signal is output is stored. This delay condition is dynamically determined on the processor side according to the load state of the processor, and the condition is stored in the condition register 13. The

すなわちプロセッサが割込みの遅延条件、すなわち割込み事象が発生してから割込み遅延回路12が割込み信号を出力するまでの遅延時間、またはその間に発生する割込み事象の数をI/Oデバイス11側に明示的に通知し、I/Oデバイス11はこの条件に基づいて割込みを遅延させることになる。   That is, the I / O device 11 side explicitly indicates the delay condition of the interrupt by the processor, that is, the delay time from when the interrupt event occurs until the interrupt delay circuit 12 outputs the interrupt signal, or the number of interrupt events occurring during that time. The I / O device 11 delays the interrupt based on this condition.

プロセッサ側での割込み遅延条件の決定は、その時々のプロセッサの負荷状態などに応じて動的に実行され、例えばある時間間隔で条件レジスタ13の内容が書き換えられるこ
とによって、プロセッサの負荷状態に適応した割込み遅延を動的に実現することができる。プロセッサ側で負荷状態を計測する方法としては任意の公知の技術を用いることができ、その詳細な説明を省略する。
The determination of the interrupt delay condition on the processor side is dynamically executed according to the load state of the processor at that time, and is adapted to the load state of the processor by rewriting the contents of the condition register 13 at a certain time interval, for example. The interrupt delay can be realized dynamically. Any known technique can be used as a method of measuring the load state on the processor side, and detailed description thereof is omitted.

図3の処理の流れにおいて、(1)でプロセッサ側から条件レジスタ13に対する割込み遅延条件の設定が行われ、I/Oデバイス側ではその条件、例えば遅延時間の指定に応じて、例えば複数の割込み事象が遅延時間の間に発生しても、最初の割込み事象が発生してから指定された時間だけの遅延の後に、割込み遅延回路12から割込み信号がプロセッサに対して出力される。プロセッサは(2)で割込み要因レジスタ14の内容を読み込むことによって割込み要因を検査し、割込み処理が基本的に終了した時点で、(3)で割込み要因レジスタ14に格納されている割込み要因をクリアし、(4)で全ての割込み処理を終了する。 In the processing flow of FIG. 3, in (1) , the processor side sets an interrupt delay condition for the condition register 13, and the I / O device side sets, for example, a plurality of interrupts according to the designation of the condition, for example, the delay time. Even if the event occurs during the delay time, an interrupt signal is output from the interrupt delay circuit 12 to the processor after a delay of a specified time after the occurrence of the first interrupt event. The processor checks the interrupt factor by reading the contents of the interrupt factor register 14 in (2) , and when the interrupt processing is basically completed, clears the interrupt factor stored in the interrupt factor register 14 in (3). In step (4) , all interrupt processing ends.

図4は第1の実施形態におけるプロセッサによる割込み遅延条件設定処理のフローチャートである。同図において、プロセッサ側でまずステップS1で割込み遅延の条件が動的に決定され、ステップS2でその遅延条件はI/Oデバイス11内の条件レジスタ13に対して設定される。これによってI/Oデバイス11側では、割込み事象が発生した後に、設定された割込み遅延条件に対応してステップS3で割込み要求信号を出力し、プロセッサ側でステップS4で割込み処理が実行される。   FIG. 4 is a flowchart of interrupt delay condition setting processing by the processor according to the first embodiment. In the figure, the interrupt delay condition is first dynamically determined in step S1 on the processor side, and the delay condition is set in the condition register 13 in the I / O device 11 in step S2. Thus, on the I / O device 11 side, after an interrupt event occurs, an interrupt request signal is output in step S3 corresponding to the set interrupt delay condition, and interrupt processing is executed on the processor side in step S4.

図5は第1の実施形態における割込み遅延回路12の構成例のブロック図である。ここでは条件レジスタ13に割込み遅延条件として、割込み遅延時間が設定されるものとする。   FIG. 5 is a block diagram of a configuration example of the interrupt delay circuit 12 in the first embodiment. Here, it is assumed that an interrupt delay time is set in the condition register 13 as an interrupt delay condition.

図5において割込み事象の発生に対応して、カウンタ16に条件レジスタ13に設定されている割込み遅延時間の値が与えられ、例えばカウンタのカウントダウンが開始される。カウンタのタイムアウトの時点で、タイムアウト信号がアンドゲート17の片方の入力端子に与えられる。アンドゲート17の他方の入力端子には割込み事象の発生に対応する割込み(要求)信号が入力されており、アンドゲート17から割込み(要求)信号がI/Oバス15を介してプロセッサに出力される。   In FIG. 5, in response to the occurrence of an interrupt event, the counter 16 is given the value of the interrupt delay time set in the condition register 13, and for example, the countdown of the counter is started. When the counter times out, a time-out signal is given to one input terminal of the AND gate 17. An interrupt (request) signal corresponding to the occurrence of an interrupt event is input to the other input terminal of the AND gate 17, and an interrupt (request) signal is output from the AND gate 17 to the processor via the I / O bus 15. The

図6は割込み遅延回路12がソフトウェアによって実現される場合の割込み遅延処理のフローチャートの例である。同図において、割込み事象の発生を待って条件レジスタ13に設定されている割込み遅延時間の値がステップS5でタイマにセットされ、ステップS6でタイマ値がデクリメントされ、ステップS7でタイマのタイムアウトがおこったか否かが判定され、まだおこっていない場合にはステップS6以降の処理が繰り返される。タイムアウトがおこった場合にはステップS8で割込み要因があるか否かが判定され、ない場合にはステップS5以降の処理が繰り返され、割込み要因がある場合にはステップS9で割込み処理が実行される。   FIG. 6 is an example of a flowchart of interrupt delay processing when the interrupt delay circuit 12 is realized by software. In the figure, after the occurrence of an interrupt event, the value of the interrupt delay time set in the condition register 13 is set in the timer in step S5, the timer value is decremented in step S6, and the timer times out in step S7. If it has not yet occurred, the processes after step S6 are repeated. If a timeout has occurred, it is determined whether or not there is an interrupt factor in step S8. If there is no interrupt factor, the processing from step S5 is repeated, and if there is an interrupt factor, interrupt processing is executed in step S9. .

図7は第2の実施形態における割込み要求回路の構成ブロック図を示し、図8は図7における処理の流れを示す。第2の実施形態では、第1の実施形態と異なり、I/Oデバイス側で割込み遅延条件、例えば割込み遅延時間が動的に決定される。   FIG. 7 shows a configuration block diagram of the interrupt request circuit in the second embodiment, and FIG. 8 shows the flow of processing in FIG. In the second embodiment, unlike the first embodiment, an interrupt delay condition, for example, an interrupt delay time is dynamically determined on the I / O device side.

前述のように、割込み要求回路11内の割込み要因レジスタ14には、発生した割り込み事象に対応する要因が格納され、プロセッサはI/Oバス15を介してその内容を読み込むことによって割込み要因を検査し、割込み処理が基本的に終了した時点でその割込み要因をクリアする。   As described above, the interrupt factor register 14 in the interrupt request circuit 11 stores a factor corresponding to the generated interrupt event, and the processor checks the interrupt factor by reading the contents via the I / O bus 15. When the interrupt processing is basically completed, the interrupt factor is cleared.

第2の実施形態では、ある時点で発生した割込み事象に対する割込み信号が出力されて
から、例えば割込み要因レジスタ14に格納されている割込み要因がクリアされるまでの時間を測定することによって、プロセッサの負荷状態を推定し、その推定時間に基づいて次に発生する割込み事象に対する割込み遅延時間を決定する。
In the second embodiment, by measuring the time from when an interrupt signal for an interrupt event that occurred at a certain point in time is output until the interrupt factor stored in the interrupt factor register 14 is cleared, for example, The load state is estimated, and the interrupt delay time for the next interrupt event is determined based on the estimated time.

図7において、例えば割込み事象が発生して直ちに割り込み信号が出力された時点で割込み要因レジスタ14に割込み要因が格納されると共に、タイマ21が起動され、割込み要因レジスタ14の内容がプロセッサによってクリアされるまでの時間が測定される。そしてその時間は遅延時間決定回路20に与えられ、その次の割込み事象の発生に対応する割込み遅延時間の決定に用いられる。   In FIG. 7, for example, when an interrupt event occurs and an interrupt signal is output immediately, an interrupt factor is stored in the interrupt factor register 14, a timer 21 is started, and the contents of the interrupt factor register 14 are cleared by the processor. The time to complete is measured. The time is given to the delay time determination circuit 20 and used to determine the interrupt delay time corresponding to the occurrence of the next interrupt event.

この遅延時間の決定においては、タイマ21の測定値をそのまま用いることもできるが、この測定値にある係数、例えば2,4,・・・,1/2,1/4,・・・などの係数を乗算することによって、遅延時間を決定することもできる。実験の結果、あるシステムではタイマの測定値をそのまま用いるのではなく、例えば4を乗算することによって全体的な処理性能が向上することが判明した。   In the determination of the delay time, the measurement value of the timer 21 can be used as it is. However, coefficients such as 2, 4,..., 1/2, 1/4,. The delay time can also be determined by multiplying the coefficients. As a result of experiments, it has been found that, in some systems, the overall processing performance is improved by multiplying, for example, by 4 instead of using the timer measurement value as it is.

図8の処理の流れにおいて、まずある時点で割込み事象が発生すると、例えば直ちにI/Oデバイスは割込み信号をI/Oバス15を介してプロセッサに対して出力するとともに時間測定(1)を開始する。プロセッサは(2)で割込み要因レジスタ14に格納された割込み要因を検査し、割込み処理を基本的に終了した時点の(3)で割込み要因をクリアする。I/Oデバイス側では割込み信号を出力した時点から割込み要因のクリア(3)が行われるまでの時間の測定値を次の割込み事象の発生に対応する割込み遅延時間の決定に使用する。すなわち次の割込み事象の発生から、決定された遅延時間だけ遅れて割込み信号が出力されるとともに、さらに次の割込み事象の発生に備えて、再び時間測定が行われる。 In the processing flow of FIG. 8, when an interrupt event occurs at a certain point in time, for example, the I / O device immediately outputs an interrupt signal to the processor via the I / O bus 15 and starts time measurement (1) . To do. The processor checks the interrupt factor stored in the interrupt factor register 14 in (2) , and clears the interrupt factor in (3) when the interrupt processing is basically ended. On the I / O device side, the measured value of the time from when the interrupt signal is output until the interrupt factor is cleared (3) is used to determine the interrupt delay time corresponding to the occurrence of the next interrupt event. That is, an interrupt signal is output with a delay of the determined delay time from the occurrence of the next interrupt event, and time measurement is performed again in preparation for the occurrence of the next interrupt event.

図9は第2の実施の形態において、タイマ21が割込み信号の出力からプロセッサによって割込み要因がクリアされるまでの時間でなく、割込み要因検査が行われるまでの時間を測定し、その時間に基づいて次の割込みに対する割込み遅延時間を決定する場合の処理の流れの説明図である。   In FIG. 9, in the second embodiment, the timer 21 measures not the time until the interrupt factor is cleared by the processor from the output of the interrupt signal but the time until the interrupt factor test is performed, and based on the measured time. It is explanatory drawing of the flow of a process in the case of determining the interruption delay time with respect to the next interruption.

同図において、図8におけると同様に、例えば割込み事象が発生した時点で直ちに割込み信号がプロセッサに対して出力され、(1)でタイマ21による時間測定が開始される。プロセッサ側では(2)で割込み要因レジスタ14の内容を検査し、(3)でその要因をクリアし、(4)で割込み処理を終了するが、(1)の時間測定は割込み要因検査の時点まで続けられ、その測定結果が次の割込み事象に対応する割込み遅延時間の決定に用いられる。 In FIG. 8, as in FIG. 8, for example, an interrupt signal is immediately output to the processor when an interrupt event occurs, and time measurement by the timer 21 is started in (1) . In processor side checks the contents of the interrupt factor register 14 (2), (3) the cause is cleared, although the interrupt processing is terminated (4), the point of time measurement interrupt factor check (1) The measurement result is used to determine the interrupt delay time corresponding to the next interrupt event.

すなわち図9では、タイマ21によって測定される時間は、割り込み(要求)信号を受取ってからプロセッサが実際に割込み処理に入るまでの時間を反映し、この時間もプロセッサの負荷状態に対応するものである。   That is, in FIG. 9, the time measured by the timer 21 reflects the time from when the interrupt (request) signal is received until the processor actually enters interrupt processing, and this time also corresponds to the load state of the processor. is there.

このように第2の実施形態では、プロセッサが割込み遅延条件を指定するのではなく、I/Oデバイス側が実質的にプロセッサの処理負荷状態を検出し、割込み遅延条件を決定する。すなわちI/Oデバイスが、プロセッサに対して割込み要求を行ってからプロセッサが対応する割込み処理を開始、または終了するまでの時間を計測し、この時間に基づいて割込み遅延条件を決定する。この実施形態ではプロセッサは遅延条件を設定する必要がないのが大きな特徴である。   Thus, in the second embodiment, the processor does not specify the interrupt delay condition, but the I / O device side substantially detects the processing load state of the processor and determines the interrupt delay condition. That is, the time from when the I / O device makes an interrupt request to the processor until the processor starts or ends the corresponding interrupt processing is measured, and the interrupt delay condition is determined based on this time. The main feature of this embodiment is that the processor does not need to set a delay condition.

図10は第2の実施形態、すなわち図7におけるタイマと遅延時間決定回路の詳細構成ブロック図である。同図においてタイマ21は、割込み事象が発生し、割込み要因レジスタ14に割込み要因が格納され、プロセッサに対して割込み遅延回路12から割込み信号
が出力された時点で起動され、カウントを開始する。
FIG. 10 is a detailed block diagram of the second embodiment, that is, the timer and delay time determination circuit in FIG. In the figure, the timer 21 is activated and starts counting when an interrupt event occurs, the interrupt factor is stored in the interrupt factor register 14, and an interrupt signal is output from the interrupt delay circuit 12 to the processor.

図8においては、プロセッサによって割込み要因レジスタ14の内容がクリア、例えばデータとして0が書き込まれた時点で、このデータのライト信号に対応してタイマ21に対してストップ信号が入力され、タイマ21から測定値が乗算器26に出力される。乗算器26に対しては、係数器25からタイマの測定値に乗算すべき係数が出力され、乗算器26による乗算結果が割込み遅延回路12に与えられる。なお割込み遅延回路の構成は第1の実施形態における図5と同じである。   In FIG. 8, when the contents of the interrupt factor register 14 are cleared by the processor, for example, when 0 is written as data, a stop signal is input to the timer 21 in response to the write signal of this data. The measured value is output to the multiplier 26. A coefficient to be multiplied by the timer measurement value is output from the coefficient unit 25 to the multiplier 26, and a multiplication result by the multiplier 26 is given to the interrupt delay circuit 12. The configuration of the interrupt delay circuit is the same as that in FIG. 5 in the first embodiment.

図9においてはタイマ21がカウントを開始した後にプロセッサが割込み要因レジスタ14の内容を読み出す、すなわちリード信号を出力するまでの時間が測定され、図10と一部異なって、このリード信号が入力された時点でタイマ21にストップ信号が与えられる。タイマの測定値は、前述と同様に乗算器26に与えられ、係数器25の出力する係数が乗算されて割込み遅延回路12に出力される。   In FIG. 9, the time from when the timer 21 starts counting until the processor reads the contents of the interrupt factor register 14, that is, until the read signal is output, is measured. At this point, the timer 21 is given a stop signal. The measured value of the timer is supplied to the multiplier 26 in the same manner as described above, multiplied by the coefficient output from the coefficient unit 25, and output to the interrupt delay circuit 12.

図11は図8に対応する割込み遅延時間決定処理のフローチャートである。同図おいて、I/Oデバイス側でステップS10でプロセッサに対して割込み要求信号が出力されると共に、図7のタイマ21が起動される。   FIG. 11 is a flowchart of the interrupt delay time determination process corresponding to FIG. In FIG. 7, an interrupt request signal is output to the processor on the I / O device side in step S10, and the timer 21 in FIG. 7 is started.

プロセッサ側では、ステップS11でこの割込み要求が受取られ、その時の負荷処理状態に応じた時間の経過後に、ステップS12で割込み要因レジスタ14の内容が読み出される。そしてプロセッサはステップS13で割り込み処理を実行し、ステップS14で割り込み要因レジスタの内容をクリアする。   On the processor side, the interrupt request is received in step S11, and after the time corresponding to the load processing state at that time has elapsed, the contents of the interrupt factor register 14 are read in step S12. Then, the processor executes interrupt processing in step S13, and clears the contents of the interrupt factor register in step S14.

I/Oデバイス側では、このプロセッサによる割込み要因レジスタのクリアを検出してステップS15でタイマをストップし、ステップS16でタイマの値に基づいて遅延時間を決定する。   The I / O device side detects clearing of the interrupt factor register by the processor, stops the timer in step S15, and determines the delay time based on the value of the timer in step S16.

図12は図9に対応する遅延時間決定処理のフローチャートである。図11と比較すると、I/Oデバイス側でプロセッサによるステップS12の処理、すなわち割り込み要因の読み出しに対応してステップS17でタイマをストップし、ステップS18で割込み遅延時間の決定を行う点だけが異なっている。   FIG. 12 is a flowchart of the delay time determination process corresponding to FIG. Compared with FIG. 11, the only difference is that the I / O device side stops the timer in step S17 in response to the processing in step S12 by the processor, that is, reading the interrupt factor, and determines the interrupt delay time in step S18. ing.

図13は、第2の実施形態において割込み信号が出力されてからプロセッサによって割込み要因レジスタ14の内容が読み出されるか、またはクリアされるまでの時間を複数回測定し、その複数回の測定結果に基づいて次の割込みに対応する割込み遅延条件を設定する遅延時間決定回路の構成例のブロック図である。   FIG. 13 shows a plurality of times of measurement of the time from when the interrupt signal is output until the contents of the interrupt factor register 14 are read or cleared by the processor in the second embodiment. It is a block diagram of the structural example of the delay time determination circuit which sets the interrupt delay condition corresponding to the next interrupt based on it.

同図においてタイマ21に対しては、図10におけると同様にプロセッサによって割込み要因レジスタ14の内容がクリアされるか、あるいは読み出された時点でストップ信号が出力される。タイマ21はまず第1の割込み事象の発生に対応する割り込み信号出力時点からの時間をカウントしており、その測定値はレジスタ31aに格納される。この測定値格納は、タイマ21からタイマ値確定信号がカウンタ30に与えられ、この信号に対応してカウンタ30のカウント値がインクリメントされ、カウンタ30の出力が書き込みイネーブル信号としてレジスタ31aに与えられることによって実行される。   In the figure, a stop signal is output to the timer 21 when the contents of the interrupt factor register 14 are cleared or read by the processor as in FIG. The timer 21 first counts the time from the output of the interrupt signal corresponding to the occurrence of the first interrupt event, and the measured value is stored in the register 31a. In this measurement value storage, a timer value confirmation signal is given from the timer 21 to the counter 30, the count value of the counter 30 is incremented in response to this signal, and the output of the counter 30 is given to the register 31a as a write enable signal. Executed by.

2番目の割込み事象の発生に対応する割込み信号出力からプロセッサによって割込み要因レジスタ14の内容が読み出されるか、あるいはクリアされるまでの時間がタイマ21によって測定され、そのカウント値はカウンタ30の出力する書き込みイネーブル信号がレジスタ31bに与えられることによってレジスタ31bに格納される。   The time from the interrupt signal output corresponding to the occurrence of the second interrupt event until the contents of the interrupt factor register 14 is read or cleared by the processor is measured by the timer 21, and the count value is output by the counter 30. The write enable signal is supplied to the register 31b and stored in the register 31b.

以下同様に全部でn個のカウント値がそれぞれのレジスタに格納された後に、それらのカウント値が平均値算出回路32に与えられ、算出された平均値が図10の乗算器26に出力されることによって、複数回の割込み事象に対応する測定値が求められ、その次の割込み事象の発生に対応する割込み遅延時間の決定に用いられる。   Similarly, after all n count values are stored in the respective registers, the count values are supplied to the average value calculation circuit 32, and the calculated average value is output to the multiplier 26 in FIG. Thus, a measurement value corresponding to a plurality of interrupt events is obtained and used to determine an interrupt delay time corresponding to the occurrence of the next interrupt event.

図14は第3の実施形態における割込み要求回路11の構成ブロック図であり、図15は図14における処理の流れの説明図である。第3の実施形態では、I/Oデバイス10はプロセッサに対して周期的に割込み(要求)信号を出力するものとし、割込み事象が発生しても次の割込み周期のタイミングまでの割込みの遅延が行われる。割込み事象の発生時点は周期内にランダムに分散するため、割込み事象が発生してから実際に割込み信号が出力されるまでの遅延時間は平均して周期の半分となる。   FIG. 14 is a configuration block diagram of the interrupt request circuit 11 in the third embodiment, and FIG. 15 is an explanatory diagram of the processing flow in FIG. In the third embodiment, the I / O device 10 periodically outputs an interrupt (request) signal to the processor, and even if an interrupt event occurs, the delay of the interrupt until the timing of the next interrupt cycle occurs. Done. Since the occurrence points of the interrupt events are randomly distributed within the period, the delay time from the occurrence of the interrupt event to the actual output of the interrupt signal becomes half of the period on average.

図14において周期タイマ35はこの割込み周期を発生し、遅延時間決定回路34はこの周期に同期するように遅延時間を決定し、割込み遅延回路12はこの周期のタイミングに同期する時点で割込み信号をプロセッサに対して出力することになる。   In FIG. 14, the cycle timer 35 generates this interrupt cycle, the delay time determination circuit 34 determines the delay time so as to synchronize with this cycle, and the interrupt delay circuit 12 receives the interrupt signal at the time synchronized with the timing of this cycle. It will output to the processor.

図15において、最初の割込み事象の発生に対応して次の固定周期のタイミングでプロセッサに対する割込み信号が出力され、(1)でプロセッサによって割込み要因が検査され、(2)で割込み要因クリアされ、(3)で割込み処理が終了する。 In FIG. 15, an interrupt signal is output to the processor at the timing of the next fixed period corresponding to the occurrence of the first interrupt event, the interrupt factor is checked by the processor in (1) , the interrupt factor is cleared in (2) , Interrupt processing ends at (3) .

次に発生した割り込み事象に対しても、周期によって決定されるタイミングまで割込み信号の出力が遅延される。この間に更に他の割込み事象が発生しても、これらの割込み事象に対してはまとめて割込み(要求)信号が出力されることになる。   The interrupt signal output is delayed until the timing determined by the cycle for the next interrupt event. Even if other interrupt events occur during this time, interrupt (request) signals are output collectively for these interrupt events.

周期タイマ35が発生する周期としては、第1に固定とする場合に、第2に第1の実施形態におけると同様に、プロセッサが負荷状態に応じて指定する場合、第3に第2の実施形態におけると同様に、I/Oデバイスが、プロセッサが割込み要因レジスタ14の内容を読み出すまで、あるいはクリアするまでの時間の測定値に基づいて決定する場合の3つが考えられる。   As the period generated by the period timer 35, when the first is fixed, secondly, as in the first embodiment, when the processor specifies according to the load state, the second second is implemented. As in the embodiment, there are three cases where the I / O device makes a decision based on the measured value of the time until the processor reads the contents of the interrupt factor register 14 or clears it.

なお第3の実施形態のように周期的なタイミングで割込み要求を行う方式はTCP/IP(トランスミッション・コントロール・プロトコル/インターネット・プロトコル)を用いるシステムで有効であり、UDP/IP(ユーザ・データグラム・プロトコル/インターネット・プロトコル)を用いるシステムでは第2の実施形態に対する図7で説明したようにタイマの測定値にある係数を乗算する方式が有効であることが実験によって判明した。   The method of making an interrupt request at periodic timing as in the third embodiment is effective in a system using TCP / IP (Transmission Control Protocol / Internet Protocol), and UDP / IP (User Datagram). In a system using (Protocol / Internet Protocol), it has been experimentally proved that the method of multiplying the measured value of the timer by a certain coefficient as described in FIG. 7 for the second embodiment is effective.

また以上の説明では、割込み遅延条件として遅延時間を用いる場合を主として発明の実施の形態を説明したが、遅延条件として割込み事象の発生回数を用いることも当然可能である。例えば第2の実施形態において、プロセッサが割込み要因を読み出すか、あるいはクリアするまでの時間を測定する代わりに、その間に発生する割り込み事象の数を測定し、その数に基づいて遅延条件を決定することもできる。   In the above description, the embodiment of the invention has been mainly described in the case where the delay time is used as the interrupt delay condition. However, it is naturally possible to use the number of occurrences of the interrupt event as the delay condition. For example, in the second embodiment, instead of measuring the time until the processor reads or clears the interrupt factor, the number of interrupt events occurring during that time is measured, and the delay condition is determined based on the number. You can also.

以上詳細に説明したように、本発明によれば割込み事象に対応する過去の処理状況から、プロセッサの処理負荷状態を判定し、この結果に対応して適応的に割込み遅延条件を設定することができる。   As described above in detail, according to the present invention, it is possible to determine the processing load state of the processor from the past processing state corresponding to the interrupt event, and to adaptively set the interrupt delay condition corresponding to the result. it can.

その結果、プロセッサの負荷が低い状態では割込み事象の発生後直ちに割込むことができ、プロセッサの負荷が高い状態では負荷の度合いに応じて割込みを遅延させることがで
き、割込み事象の発生から割込み要求出力までの遅延時間を自動的に最適化する効果が得られる。
As a result, interrupts can be interrupted immediately after an interrupt event occurs when the processor load is low, and interrupts can be delayed according to the degree of load when the processor load is high. The effect of automatically optimizing the delay time until output can be obtained.

またI/Oデバイスにカードなどが挿入されて使用されるような場合にも、カードとプロセッサの間の割込み遅延のための最適条件を自動的に調整することが可能となり、割込み処理の性能向上に寄与するところが大きい。   In addition, even when a card is inserted into the I / O device, the optimum conditions for interrupt delay between the card and the processor can be automatically adjusted, improving interrupt processing performance. The place that contributes to

以上のように本発明の計算機は、割込み事象の発生からプロセッサに割込み要求が与えられるまでの遅延条件がプロセッサの負荷などに応じて適応的に決定されるものであり、本発明は割込み処理を実行することのできる計算機を用いる全ての産業において利用することが可能である。   As described above, in the computer according to the present invention, the delay condition from the occurrence of the interrupt event until the interrupt request is given to the processor is adaptively determined according to the processor load and the like. It can be used in all industries that use computers that can execute.

以下に述べる図面における丸数字は、本明細書中では括弧を付した数字として示す。The circled numbers in the drawings described below are shown as numbers in parentheses in this specification.
本発明の原理構成ブロック図である。1 is a block diagram illustrating the principle configuration of the present invention. 第1の実施形態における割込み要求回路の構成を示すブロック図である。It is a block diagram which shows the structure of the interrupt request circuit in 1st Embodiment. 図2における割込み処理の流れを示す図である。It is a figure which shows the flow of the interruption process in FIG. 第1の実施形態におけるプロセッサによる遅延条件設定処理のフローチャートである。It is a flowchart of the delay condition setting process by the processor in 1st Embodiment. 第1の実施形態における割込み遅延回路の構成を示すブロック図である。It is a block diagram which shows the structure of the interruption delay circuit in 1st Embodiment. 第1の実施形態における割込み遅延処理のフローチャートである。6 is a flowchart of interrupt delay processing in the first embodiment. 第2の実施形態における割込み要求回路の構成ブロック図である。FIG. 5 is a block diagram illustrating a configuration of an interrupt request circuit according to a second embodiment. 図7における割込み処理の流れを示す図である。It is a figure which shows the flow of the interruption process in FIG. 第2の実施形態において割込み要因読み出しまでの時間に基づいて遅延時間を決定する場合の処理の流れを示す図である。It is a figure which shows the flow of a process in the case of determining delay time based on the time until interruption factor reading in 2nd Embodiment. 第2の実施形態におけるタイマと遅延時間決定回路の構成を示すブロック図である。It is a block diagram which shows the structure of the timer and delay time determination circuit in 2nd Embodiment. 第2の実施形態における割込み遅延時間決定処理のフローチャートの第1の例である。It is a 1st example of the flowchart of the interruption delay time determination process in 2nd Embodiment. 第2の実施形態における割込み遅延時間決定処理のフローチャートの第2の例である。It is a 2nd example of the flowchart of the interruption delay time determination process in 2nd Embodiment. 第2の実施形態において複数の時間測定値から遅延時間を決定する遅延時間決定回路の構成例のブロック図である。It is a block diagram of the example of a structure of the delay time determination circuit which determines delay time from several time measurement value in 2nd Embodiment. 第3の実施形態における割込み要求回路の構成ブロック図である。FIG. 10 is a configuration block diagram of an interrupt request circuit according to a third embodiment. 図14における処理の流れを示す図である。It is a figure which shows the flow of the process in FIG. 計算機システムの構成例を示すブロック図である。It is a block diagram which shows the structural example of a computer system. 割込み間隔と割込み処理負荷の関係を説明する図である。It is a figure explaining the relationship between an interruption interval and interruption processing load. 従来技術としてのインターラプト・コーレシングの処理を説明する図である。It is a figure explaining the process of the interrupt calling as a prior art. 割込み遅延がない場合の割込み要求回路の従来例の構成ブロック図である。It is a configuration block diagram of a conventional example of an interrupt request circuit when there is no interrupt delay. 図19における処理の流れを示す図である。It is a figure which shows the flow of the process in FIG. 割込み遅延がある場合の割込み要求回路の従来例の構成ブロック図である。It is a block diagram of a conventional example of an interrupt request circuit when there is an interrupt delay. 図21における処理の流れを示す図である。It is a figure which shows the flow of the process in FIG.

Claims (3)

プロセッサに対する割込み要求出力部を備える計算機において、
前記割込み要求出力部が、割込み事象の発生に対応してプロセッサに割込み要求を出力する周期を決定する割込み周期設定手段と、
該設定された割込み周期に基づいて前記割込み事象に対応する割込み要求を出力する時点を決定する割り込み時点決定手段とを備え
前記割込み要求出力部が、発生した割込み事象に対応した割込み要因を記憶する割込み要因記憶手段を備え、
前記周期設定手段が、前記発生した割込み事象に対応する割込み要求が出力されてからプロセッサによって該割込み要因記憶手段の記憶内容が読み出されるまでの時間に基づいて、前記周期を設定することを特徴とする割込み遅延を動的に決定する計算機。
In a computer having an interrupt main Motomede force unit to the processor,
The interrupt request output unit determines an interval for outputting an interrupt request to the processor in response to the occurrence of an interrupt event;
A interrupt time determining means for determining when to output an interrupt request corresponding to the interrupt event based on the interrupt period is the set,
The interrupt request output unit includes an interrupt factor storage means for storing an interrupt factor corresponding to an interrupt event that has occurred,
Said period setting means, based on the time until the stored data is read out of該割interrupt factor storage means by the processor from the output of the interrupt request corresponding to the interrupt event that the generated feature that you set the period A computer that dynamically determines the interrupt delay.
プロセッサに対する割込み要求出力部を備える計算機において、
前記割込み要求出力部が、割込み事象の発生に対応してプロセッサに割込み要求を出力する周期を決定する割込み周期設定手段と、
該設定された割込み周期に基づいて前記割込み事象に対応する割込み要求を出力する時点を決定する割り込み時点決定手段とを備え、
前記割込み要求出力部が、発生した割込み事象に対応した割込み要因を記憶する割込み要因記憶手段を備え、
前記周期設定手段が、前記発生した割込み事象に対応する割込み要求が出力されてからプロセッサによって該割込み要因記憶手段の記憶内容がクリアされるまでの時間に基づいて、前記周期を設定することを特徴とする割込み遅延を動的に決定する計算機。
In a computer having an interrupt request output unit for a processor,
The interrupt request output unit determines an interval for outputting an interrupt request to the processor in response to the occurrence of an interrupt event;
Interrupt time determination means for determining a time to output an interrupt request corresponding to the interrupt event based on the set interrupt cycle,
The interrupt request output unit includes an interrupt factor storage means for storing an interrupt factor corresponding to an interrupt event that has occurred,
It said period setting means, based on the time from the output of the interrupt request corresponding to the interrupt event that the generated until the stored contents of該割interrupt factor storage means is cleared by the processor, that you set the period computer to dynamically determine the interrupt delay shall be the feature.
前記割込み周期設定手段が、前記プロセッサからの指示に対応して前記周期を設定できることを特徴とする請求項1、または2記載の割込み遅延を動的に決定する計算機。 Said interrupt period setting means, computer for dynamically determining an interrupt delay according to claim 1 or 2, in response to an instruction from said processor and said Rukoto can set the period.
JP2008115193A 2008-04-25 2008-04-25 A computer that dynamically determines interrupt delay. Expired - Fee Related JP4653192B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008115193A JP4653192B2 (en) 2008-04-25 2008-04-25 A computer that dynamically determines interrupt delay.

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008115193A JP4653192B2 (en) 2008-04-25 2008-04-25 A computer that dynamically determines interrupt delay.

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003562797A Division JP4219818B2 (en) 2002-01-24 2002-01-24 A computer that dynamically determines interrupt delay.

Publications (2)

Publication Number Publication Date
JP2008217821A JP2008217821A (en) 2008-09-18
JP4653192B2 true JP4653192B2 (en) 2011-03-16

Family

ID=39837708

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008115193A Expired - Fee Related JP4653192B2 (en) 2008-04-25 2008-04-25 A computer that dynamically determines interrupt delay.

Country Status (1)

Country Link
JP (1) JP4653192B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5267328B2 (en) 2009-05-26 2013-08-21 富士通セミコンダクター株式会社 Interrupt notification control device and semiconductor integrated circuit
DE102016212808A1 (en) * 2016-07-13 2018-01-18 Robert Bosch Gmbh Interrupt request distributor and operating method therefor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53145536A (en) * 1977-05-25 1978-12-18 Hitachi Ltd Interruption process system
JPH06175860A (en) * 1992-12-08 1994-06-24 Toshiba Corp Microprocessor application device
JP2000322270A (en) * 1999-05-11 2000-11-24 Matsushita Electric Ind Co Ltd Interrupt control method
JP2001265412A (en) * 2000-03-15 2001-09-28 Omron Corp Programmable controller
JP2001331329A (en) * 2000-05-22 2001-11-30 Mitsubishi Electric Corp Interrupt control device and its method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53145536A (en) * 1977-05-25 1978-12-18 Hitachi Ltd Interruption process system
JPH06175860A (en) * 1992-12-08 1994-06-24 Toshiba Corp Microprocessor application device
JP2000322270A (en) * 1999-05-11 2000-11-24 Matsushita Electric Ind Co Ltd Interrupt control method
JP2001265412A (en) * 2000-03-15 2001-09-28 Omron Corp Programmable controller
JP2001331329A (en) * 2000-05-22 2001-11-30 Mitsubishi Electric Corp Interrupt control device and its method

Also Published As

Publication number Publication date
JP2008217821A (en) 2008-09-18

Similar Documents

Publication Publication Date Title
JP4219818B2 (en) A computer that dynamically determines interrupt delay.
US6981084B2 (en) Apparatus and method for packet ingress interrupt moderation
US20040117791A1 (en) Apparatus, system and method for limiting latency
Larsen et al. Architectural breakdown of end-to-end latency in a TCP/IP network
US20050265235A1 (en) Method, computer program product, and data processing system for improving transaction-oriented client-server application performance
JP5370482B2 (en) TERMINAL DEVICE, COMMUNICATION METHOD AND COMMUNICATION CONTROL PROGRAM USED FOR THE TERMINAL DEVICE
WO2020100581A1 (en) Evaluation device, evaluation method and evaluation program
CN105978821B (en) The method and device that network congestion avoids
JP4653192B2 (en) A computer that dynamically determines interrupt delay.
Zec et al. Estimating the impact of interrupt coalescing delays on steady state TCP throughput
US20020188749A1 (en) Receive performance of a network adapter by dynamically tuning its interrupt delay
EP1713004B1 (en) Computer for dynamically determining interrupt delay
JP4849270B2 (en) Computer equipment
JP2017182346A (en) Analysis program, analysis device, and analysis method
CN115378873A (en) Flow control method and system for improving Ethernet data transmission efficiency
JP2016122900A (en) Packet extractor, packet extraction program and packet extraction method
US10599549B2 (en) Packet backpressure detection method, apparatus, and device
Chung et al. Design and implementation of the high speed TCP/IP Offload Engine
JP4567586B2 (en) Processing equipment
JP2011061415A (en) Communication relay device and program
Hughes-Jones et al. Performance measurements on gigabit ethernet nics and server quality motherboards
JP2006195607A (en) Method and circuit for determining bulk-out transfer end
JP2005267294A (en) Network interrupt control method, information processing apparatus and image forming apparatus
JP5263970B2 (en) Packet receiving apparatus, packet buffer congestion state recovery method, and program
CN105099932A (en) Scheduling method and device based on cut-through technology

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101125

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20101214

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20101216

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131224

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees