JP2008225641A - Computer system, interrupt control method and program - Google Patents
Computer system, interrupt control method and program Download PDFInfo
- Publication number
- JP2008225641A JP2008225641A JP2007060116A JP2007060116A JP2008225641A JP 2008225641 A JP2008225641 A JP 2008225641A JP 2007060116 A JP2007060116 A JP 2007060116A JP 2007060116 A JP2007060116 A JP 2007060116A JP 2008225641 A JP2008225641 A JP 2008225641A
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- cpu
- interrupt processing
- class
- processing
- 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
Images
Abstract
Description
本発明は、処理ごとにクラスを設定し、あらかじめクラスごとに決められたCPUリソースの配分率に従って、CPUリソースの配分を行うコンピュータシステム、割り込み制御方法及びプログラムに関するものである。 The present invention relates to a computer system, an interrupt control method, and a program for setting a class for each process and allocating CPU resources in accordance with a CPU resource allocation rate determined in advance for each class.
従来のCPUリソース管理方法の例が、特許文献に記載されている。特許文献1(特開平04−340135号公報)によれば、プライオリティを変えることによりCPUの割当率を決められた値に近づける方法が記載されている。また、特許文献2(特開昭62−011941号公報)によれば、タイムスライス値を変えることによりCPUの割当率を決められた値に近づける方法が記載されている。これらの方法では、コンピュータシステムの負荷が高い場合でも、低いプライオリティのプロセスを動作させることはできるが、決められた時間内に終了しない場合に割り込み処理を優先させることはできない。また、特許文献3(特開2001−142723号公報)によれば、CPU待ちサイクル数を設定しておき、CPU待ちサイクル数を減算していくことにより、CPU待ちサイクル数が0になったタスクにCPUを割り当てる方法が記載されている。この方法でも、コンピュータシステムの負荷が高い場合に低いプライオリティのプロセスにCPUを割り当てることはできるが、割り込み処理を決められた時間に実行することはできない。 Examples of conventional CPU resource management methods are described in the patent literature. Japanese Patent Application Laid-Open No. 04-340135 describes a method of bringing the CPU allocation rate close to a predetermined value by changing the priority. Japanese Patent Application Laid-Open No. 62-011941 discloses a method of bringing the CPU allocation rate close to a predetermined value by changing the time slice value. In these methods, even when the load on the computer system is high, a low priority process can be operated, but interrupt processing cannot be prioritized if it does not end within a predetermined time. Further, according to Patent Document 3 (Japanese Patent Application Laid-Open No. 2001-142723), a task in which the number of CPU wait cycles becomes 0 by setting the number of CPU wait cycles and subtracting the number of CPU wait cycles. Describes a method of assigning CPUs. Even in this method, when the load on the computer system is high, a CPU can be assigned to a low priority process, but interrupt processing cannot be executed at a predetermined time.
従来のこのような問題を解消するため、各クラスで使用するCPUリソースをあらかじめ決められた割合で配分するCPUリソース管理技術がある。このようなCPUリソース管理技術によれば、一定割合で、低いプライオリティのプロセスにもCPUを割り当てることができる。
しかし、従来のCPUリソース管理技術には、以下のような問題があった。 However, the conventional CPU resource management technology has the following problems.
第1に、CPUを大量に必要とするプロセスでは、プロセスの処理完了までに長い時間がかかるという問題があった。 First, a process that requires a large amount of CPU has a problem that it takes a long time to complete the process.
第2に、プロセスの処理完了までに長い時間がかかるような場合、経過制限時間を指定することにより処理を中止することはできるが、当該プロセスで実行できない旨のメッセージを出力したり、プロセスのプライオリティを上げるようなことはできないという問題があった。 Second, if it takes a long time to complete the process, you can stop the process by specifying the elapsed time limit, but you can output a message that the process cannot be executed, There was a problem that priority could not be raised.
第3に、シグナルのような割り込み処理を使用した場合、割り込み処理のプライオリティが低いと、割り込み処理の実行が遅延するため指定の時間に実行できず、逆にプライオリティが高いと、割り込み処理がループした場合、システムの性能に重大な影響を及ぼしてしまうという問題があった。 Third, when interrupt processing such as a signal is used, if the priority of interrupt processing is low, execution of interrupt processing is delayed and cannot be executed at the specified time. Conversely, if priority is high, interrupt processing loops. In this case, there is a problem that the system performance is seriously affected.
(目的)
本発明の目的は、処理ごとにクラスを設定し、あらかじめクラスごとに決められたCPUリソースの配分率に従って、CPUリソースの配分を行うCPUリソース管理において、コンピュータシステムの負荷が高い場合でも、低いプライオリティのプロセスが登録した割り込み処理を任意の指定時間後に実行でき、高いプライオリティの割り込み処理がCPUループしてもシステムの性能に悪影響を及ぼすようなことがない、柔軟で効率的な運用が可能なCPU割り込み制御方法を提供することである。
(the purpose)
An object of the present invention is to set a class for each process, and in CPU resource management in which CPU resources are allocated according to a CPU resource allocation ratio determined in advance for each class, even when the load on the computer system is high, the priority is low. CPU that can execute interrupt processing registered by any process after any specified time, and does not adversely affect system performance even if high priority interrupt processing causes a CPU loop. An interrupt control method is provided.
上記問題を解決するため本発明は、処理が属するクラスに応じて定められたCPU配分率に従って各処理へCPUリソースを割り当てる、マルチタスクによる処理の実行が可能なコンピュータシステムであって、所定の時間間隔毎に、予め定めた所定の割り込み処理の有無を判別し、前記所定の割り込み処理が有る場合、当該割り込み処理用のクラスのCPU配分率に従ってCPUリソースを割り当て、前記割り込み処理を制御する割り込み制御装置を備えることを特徴とする。 In order to solve the above problem, the present invention provides a computer system capable of executing a process by multitasking that allocates a CPU resource to each process according to a CPU allocation rate determined according to a class to which the process belongs, Interrupt control for determining the presence or absence of a predetermined interrupt process determined at each interval and allocating CPU resources according to the CPU allocation ratio of the class for the interrupt process and controlling the interrupt process when there is the predetermined interrupt process A device is provided.
より詳細には、処理ごとにクラスを設定し、あらかじめクラスごとに決められたCPUリソースの配分率に従って、CPUリソースの配分を行うCPUリソース管理方法であって、特殊な割り込み処理用のクラスに、あるプロセスが指定時間内に終了しない場合に実行する割り込み処理をあらかじめ登録しておくことにより、コンピュータシステムの負荷が高く、当該プロセスにCPUが割り当てられないため終了しない場合でも、終了しないプロセスが属するクラスとは別の特殊な割り込み処理用クラスで割り込み処理を実行する手段を提供することを特徴とする。 More specifically, it is a CPU resource management method for setting a class for each process and allocating CPU resources in accordance with a CPU resource allocation rate determined in advance for each class. By registering in advance interrupt processing to be executed when a certain process does not end within a specified time, the load of the computer system is high, and a process that does not end even if it does not end because a CPU is not assigned to the process belongs It is characterized by providing means for executing interrupt processing in a special interrupt processing class different from the class.
(作用)
上記構成により、所定の時間間隔で割り込み処理を実行できる。
(Function)
With the above configuration, interrupt processing can be executed at predetermined time intervals.
本発明によれば、コンピュータシステムの負荷が高い場合でも、低いプライオリティのプロセスが登録した割り込み処理を任意の指定時間後に実行できる。 According to the present invention, even when the load on the computer system is high, interrupt processing registered by a low priority process can be executed after an arbitrary designated time.
その理由は、一定時間ごとに割り込み処理がないかチェックすることにより、低いプライオリティのプロセスが登録した割り込み処理を実行できるためである。 The reason is that the interrupt process registered by the low priority process can be executed by checking whether there is an interrupt process at regular intervals.
(第1の実施の形態)
本発明による第1の実施の形態のコンピュータシステムを、図を用いて詳細に説明する。
(First embodiment)
A computer system according to a first embodiment of the present invention will be described in detail with reference to the drawings.
(第1の実施の形態の構成)
図1は、本実施の形態のコンピュータシステムの構成を示すブロック図である。
(Configuration of the first embodiment)
FIG. 1 is a block diagram showing a configuration of a computer system according to the present embodiment.
図1を参照すると、本実施の形態のコンピュータシステム100は、マルチタスクによる処理の実行が可能なコンピュータシステムであって、プロセス受付手段1と、割り込み処理情報登録手段2と、割り込み処理情報記憶手段3と、CPUリソース管理手段4と、CPUリソース管理情報記憶手段5と、タイマ処理手段6と、割り込み処理実行判定手段7と、割り込み処理実行手段8と、プロセス終了手段9と、割り込み処理情報削除手段10と、プロセス11とを備える。
Referring to FIG. 1, a
これらの手段は、それぞれ概略つぎのような機能を有する。 Each of these means generally has the following functions.
プロセス受付手段1は、プロセス11の起動を受け付ける際、割り込み処理情報登録手段2を起動する機能を有する。
The
割り込み処理情報登録手段2は、当該プロセス11に登録すべき割り込み処理があるかどうかチェックする機能と、割り込み処理がある場合は、割り込み処理情報31を割り込み処理情報記憶手段3に格納する機能とを有する。
The interrupt processing
割り込み処理情報記憶手段3は、割り込み処理情報登録手段2の指示に基づいて、割り込み処理に関する割り込み処理情報31を記憶する機能を有する。
The interrupt processing
図2は、割り込み処理情報記憶手段3に格納する割り込み処理情報31の一例を説明する図である。
FIG. 2 is a diagram for explaining an example of the
図2を参照すると、割り込み処理情報31は、各プロセスを識別する識別情報を示すプロセスID311と、割り込み処理として実行する処理内容を示す割り込み処理312と、割り込み処理として実行する際の待機時間を示す処理カウンタ313とを含んで構成される。
Referring to FIG. 2, the
それぞれのプロセスはいずれか1つのクラスに属しており、CPUリソース管理手段4は、CPUリソース管理情報記憶手段5に記憶されているCPUリソース管理情報51に基づいて、クラスごとに決められたCPU配分率になるようにプロセスを選択し、CPUを割り当てる機能を有する。このため、CPUリソース管理手段4によれば、入出力等でCPUを一時的に解放しても、CPU配分率分のCPUは優先して割り当てられる。
Each process belongs to one of the classes, and the CPU resource management unit 4 determines the CPU allocation determined for each class based on the CPU
CPUリソース管理情報記憶手段5は、あらかじめ割り込み処理用のクラスごとに決められたCPUリソースの配分率(CPU配分率)を示す、CPUリソースの割り当てを管理するためのCPUリソース管理情報51を記憶する機能を有する。
The CPU resource management information storage unit 5 stores CPU
図3は、CPUリソース管理情報記憶手段5に格納されるCPUリソース管理情報51の一例を説明する図である。
FIG. 3 is a diagram for explaining an example of the CPU
図3を参照すると、CPUリソース管理情報51は、各割り込み処理用のクラスを識別する識別情報であるクラス511と、該当クラスが一定時間のうちCPUを使用可能な割合を示すCPU配分率512とを含んで構成される。
Referring to FIG. 3, the CPU
このため、CPUリソース管理手段4は、例えば、該当プロセスがクラスBに属していれば、図3によると、クラスBには全体の10%のCPUリソースが割り当てられるように決められていることから、CPUリソース管理情報51に基づいて、クラスBに決められたCPU配分率(10%)になるようにプロセスを選択し、割り込み処理用のCPUを割り当てる。
Therefore, the CPU resource management means 4 is determined so that, for example, if the corresponding process belongs to class B, according to FIG. Based on the CPU
タイマ処理手段6は、一定時間ごとに割り込み処理実行判定手段7を起動する機能を有する。 The timer processing unit 6 has a function of starting the interrupt processing execution determination unit 7 at regular intervals.
割り込み処理実行判定手段7は、所定の時間毎にタイマ処理手段6から起動された際に、割り込み処理情報記憶手段3に格納された割り込み処理情報31に基づいて割り込み処理を実行するか否かを判定する機能と、割り込み処理を実行する場合、割り込み処理実行手段8を起動する機能とを有する。
The interrupt processing execution determination means 7 determines whether or not to execute the interrupt processing based on the
割り込み処理実行手段8は、CPUリソース管理手段4に特殊な割り込み処理用クラスのCPU割当要求を行い、割り込み処理を動作させる機能を有する。 The interrupt processing execution means 8 has a function of making a CPU allocation request for a special interrupt processing class to the CPU resource management means 4 and operating the interrupt processing.
プロセス終了手段9は、プロセス11を終了させる機能と、プロセス11を終了させる際に割り込み処理情報削除手段10を起動する機能とを有する。
The process termination means 9 has a function for terminating the
割り込み処理情報削除手段10は、プロセス終了手段9によりプロセス11が終了する際にプロセス終了手段9から起動され、当該プロセス11の割り込み処理情報31が割り込み処理情報記憶手段3にあるかどうかチェックする機能と、ある場合に、当該プロセス11の割り込み処理情報31を割り込み処理情報記憶手段3から削除する機能を有する。
The interrupt processing
ここで、コンピュータシステム100のハードウェア構成の説明をする。
Here, the hardware configuration of the
図4は、本実施の形態によるコンピュータシステム100のハードウェア構成例を示すブロック図である。
FIG. 4 is a block diagram illustrating a hardware configuration example of the
図4を参照すると、本発明によるコンピュータシステム100は、一般的なコンピュータ装置と同様のハードウェア構成によって実現することができ、CPU(Central Processing Unit)1001、RAM(Random Access Memory)等のメインメモリであり、データの作業領域やデータの一時退避領域に用いられる主記憶部1002、ネットワーク2000を介してデータの送受信を行う通信制御部1003、液晶ディスプレイ、プリンタやスピーカ等の提示部1004、キーボードやマウス等の入力部1005、周辺機器と接続してデータの送受信を行うインタフェース部1006、ROM(Read Only Memory)、磁気ディスク、半導体メモリ等の不揮発性メモリから構成されるハードディスク装置である補助記憶部1007、本情報処理装置の上記各構成要素を相互に接続するシステムバス1008等を備えている。
Referring to FIG. 4, a
本発明によるコンピュータシステム100は、その動作を、コンピュータシステム100内部にそのような機能を実現するプログラムを組み込んだ、LSI(Large Scale Integration)等のハードウェア部品からなる回路部品を実装してハードウェア的に実現することは勿論として、上記した各構成要素の各機能を提供するプログラムを、コンピュータ処理装置上のCPU1001で実行することにより、ソフトウェア的に実現することができる。
The
すなわち、コンピュータシステム100は、補助記憶部1007に格納されているプログラムを、主記憶部1002にロードして実行し、コンピュータシステム100の動作を制御することにより、上述した各機能をソフトウェア的に実現する。
In other words, the
(第1の実施の形態の動作)
次に、図1〜図7を参照して本実施の形態のコンピュータシステムの動作について詳細に説明する。
(Operation of the first embodiment)
Next, the operation of the computer system according to the present embodiment will be described in detail with reference to FIGS.
図5〜図7は、本実施の形態のコンピュータシステム100の動作を示すフローチャートであり、図5は、プロセスの起動受け付け時の割り込み処理情報登録手段2とCPUリソース管理手段4の動作を示し、図6は、割り込み処理実行判定手段7の動作を示し、図7は、プロセス終了時の割り込み処理情報削除手段10の動作を示す。
5 to 7 are flowcharts showing the operation of the
まず、図1を参照すると、プロセス受付手段1は、プロセス11の起動を受け付ける際、割り込み処理情報登録手段2を起動する。割り込み処理情報登録手段2は、当該プロセス11に登録すべき割り込み処理があるかどうかチェック(図5のステップA1)し、割り込み処理がある場合は、割り込み処理情報31を割り込み処理情報記憶手段3に格納する(ステップA2)。
First, referring to FIG. 1, the
割り込み処理情報の登録後、CPUリソース管理手段4は、CPUリソース管理情報記憶手段5に記憶されているCPUリソース管理情報51に基づき、割り込み処理用のクラスごとに決められたCPU配分率になるようにプロセスを選択してCPUを割り当て、プロセスの起動を行う(ステップA3)。
After registering the interrupt processing information, the CPU resource management unit 4 has a CPU allocation rate determined for each class for interrupt processing based on the CPU
一方、一定時間ごとにタイマ処理手段6から起動された割り込み処理実行判定手段7は、割り込み処理情報記憶手段3に登録された未処理エントリの検索を行い(図6のステップB1)、未処理エントリがある場合(ステップB2のYES)は、格納された未処理エントリに対応する処理カウンタ313が0の値か否かを判定し(ステップB3)、処理カウンタ313が0の値ならば、割り込み処理実行手段8を起動して割り込み処理32に登録されていた割り込み処理を実行し(ステップB4)、当該実行した割込み処理に係る割り込み処理情報31を割り込み処理情報記憶手段3から削除する(ステップB5)。また、割り込み処理実行判定手段7は、ステップB3において処理カウンタ313が0の値でない場合、処理カウンタ33を1減算する(ステップB6)。割り込み処理実行判定手段7は、未処理エントリがなくなる(ステップB2のNO)までこの処理を繰り返す。
On the other hand, the interrupt processing execution determination means 7 started from the timer processing means 6 at regular intervals searches for the unprocessed entries registered in the interrupt processing information storage means 3 (step B1 in FIG. 6), and the unprocessed entries are searched. If there is (YES in step B2), it is determined whether or not the
また、プロセス終了手段9によりプロセス11が終了する際、プロセス終了手段9から起動された割り込み処理情報削除手段10は、当該プロセス11の割り込み処理情報31があるかどうかチェックし(図7のステップC1)、ある場合は、当該プロセス11の割り込み処理情報31を割り込み処理情報記憶手段3から削除する(ステップC2)。
Further, when the
次に、具体例を用いて本実施の形態の動作を説明する。 Next, the operation of this embodiment will be described using a specific example.
本実施例では、例えば、ある所定の時間が経過してもプロセスが終了しない場合に、プロセスが終了していない旨のメッセージを出力する場合について説明する。 In the present embodiment, for example, a case where a message indicating that the process has not ended is output when the process does not end even after a predetermined time has elapsed will be described.
プロセス受付手段1は、プロセス11の起動を受け付ける際、割り込み処理情報登録手段2を起動する。
The process accepting means 1 activates the interrupt processing information registering means 2 when accepting the activation of the
割り込み処理情報登録手段2は、当該プロセス11に登録すべき割り込み処理があるかどうかチェック(図5のステップA1)し、割り込み処理があるので、割り込み処理情報31を割り込み処理情報記憶手段3に格納する(ステップA2)。本実施例では、この場合、プロセスID311に当該プロセスのID、割り込み処理312にメッセージ出力処理、処理カウンタ313にメッセージを出力したい時間を一定時間で割った値を格納する。この一定時間を割り込み処理実行判定手段7が呼び出される時間間隔とすることにより、任意の時間を示すカウンタ値を計算によって求めることができる。
The interrupt processing
なお、処理カウンタ313の計算時に、コンピュータシステム100の時刻との差分を計算することにより、任意の時刻に割り込み処理を実行することもできる。
Note that interrupt processing can be executed at an arbitrary time by calculating a difference from the time of the
このプロセス11がクラスBに属しているとすると、CPUリソース管理手段4は、CPUリソース管理情報記憶手段5に記憶されているCPUリソース管理情報51における、割り込み処理用のクラスごとに決められたCPU配分率を参照し、クラスBには全体の10%のCPUリソースが割り当てられるように、プロセスを選択してCPUを割り当て、プロセスの起動を行う(ステップA3)。
Assuming that this
一方、一定時間ごとにタイマ処理手段6から起動された割り込み処理実行判定手段7が、割り込み処理情報記憶手段3に格納されたエントリの処理カウンタ313を判定する(図6のステップB3)が、処理カウンタ313が0の値になる前にプロセスが終了すると、プロセス終了手段9により割り込み処理情報削除手段10が起動され、起動された割り込み処理情報削除手段10が、割り込み処理情報記憶手段3内に当該プロセス11の割り込み処理情報31があるかどうかチェックし(図7のステップC1)、当該プロセス11の割り込み処理情報31を割り込み処理情報記憶手段3から削除する(ステップC2)。
On the other hand, the interrupt processing execution determination means 7 activated from the timer processing means 6 at regular intervals determines the
プロセス終了より、当該プロセス11の処理カウンタ313が0の値になるほうが早かった場合(ステップB3のYES)、割り込み処理実行判定手段7は、割り込み処理実行手段8を起動する。割り込み処理情報記憶手段3に登録された割り込み処理312を、すべてクラスZで実行することとした場合、起動した割り込み処理実行手段8は、割り込み処理312に登録されていた割り込み処理(この場合は、メッセージ出力処理)をクラスZのプロセスとして登録し、CPUリソース管理手段4にクラスZのCPU割当要求を行い、割り込み処理を動作させる(ステップB4)。
When the
割り込み処理を動作させた後、プロセス終了手段9によって起動された割り込み処理情報削除手段10は、当該プロセス11の割り込み処理情報31を割り込み処理情報記憶手段3から削除する(ステップC2)。このため、処理カウンタ313の値の設定により、プロセスが指定時間までに終了しない場合のみ、メッセージを出力することが可能になる。
After operating the interrupt processing, the interrupt processing
割り込み処理情報登録手段2によって割り込み処理情報記憶手段3に登録された割り込み処理31は、すべて図3のクラスZで実行されることとすると、クラスZで実行される割り込み処理は、一定時間当たり1%のCPUが割り当てられることになる。一定時間あたり確実に1%のCPUが割り当てられるため、どんなにシステムの負荷が高くても、割り込み処理により終了していない旨のメッセージを出力することができる。
Assuming that all the interrupt
(第1の実施の形態の効果)
本実施の形態によれば、以下の効果を達成することができる。
(Effects of the first embodiment)
According to the present embodiment, the following effects can be achieved.
第1に、コンピュータシステム100の負荷が高く、あるプロセス11にCPUを割り当てることができな場合でも、特殊な割り込み処理用クラスでそのプロセスに対応した割り込み処理を実行できる。すなわち、コンピュータシステム100の負荷が高く、所定の割り込み処理、例えば、低いプライオリティのプロセスが登録した割り込み処理を任意の指定時間後に実行できる。
First, even when the load on the
その理由は、所定の時間ごとに割り込み処理がないかチェックすることにより、低いプライオリティのプロセスが登録した割り込み処理を実行できるためである。また、割り込み処理を実行するまでの処理カウンタ313を設けることにより、任意の時間がたってから、割り込み処理を実行することができるためである。
The reason is that the interrupt process registered by the low priority process can be executed by checking whether there is an interrupt process every predetermined time. Also, by providing the
第2に、入出力等でプロセスがCPUを一時的に解放しても、CPU配分率分のCPUが優先して割り当てられる。 Second, even if the process temporarily releases the CPU due to input / output or the like, CPUs corresponding to the CPU allocation rate are preferentially assigned.
その理由は、CPUリソース管理手段4が、CPUリソース管理情報51に基づいて、割り込み処理用のクラスごとに決められたCPU配分率になるようにプロセスを選択し、CPUを割り当てるからである。
The reason is that the CPU resource management means 4 selects a process based on the CPU
第3に、この効果の一例として、所定の割り込み処理としてメッセージ出力を行った場合、今まで出力できなかったメッセージが出力できるようになるため、メッセージに連動した自動運転を行っている場合に、より柔軟な自動運転を行うことができる。また、任意の時間後にプライオリティを上げることもでき、柔軟で効率的な運用を行うことができる。 Thirdly, as an example of this effect, when a message is output as a predetermined interrupt process, a message that could not be output until now can be output, so when performing automatic operation linked to the message, More flexible automatic operation can be performed. In addition, the priority can be raised after an arbitrary time, and flexible and efficient operation can be performed.
第4に、CPU配分率の枠内での動作のため、高いプライオリティの割り込み処理がCPUループしてもシステムの性能に悪影響を及ぼすようなことがない。 Fourth, because of the operation within the CPU allocation ratio, even if high priority interrupt processing is in the CPU loop, the system performance is not adversely affected.
第5に、処理カウンタ313の計算時に、コンピュータシステム100の時刻との差分を計算することにより、任意の時刻に割り込み処理を実行することもできる。
Fifth, by calculating the difference from the time of the
(第2の実施の形態)
本発明による第2の実施の形態は、CPUリソース管理情報記憶手段5に格納するCPUリソース管理情報を除いて第1の実施の形態と同様の構成であるため、詳細な説明を省略する。
(Second Embodiment)
The second embodiment according to the present invention has the same configuration as that of the first embodiment except for the CPU resource management information stored in the CPU resource management information storage unit 5, and thus detailed description thereof is omitted.
本実施の形態のCPUリソース管理情報記憶手段5に格納するCPUリソース管理情報の例を図8に示す。 An example of the CPU resource management information stored in the CPU resource management information storage unit 5 of this embodiment is shown in FIG.
図8を参照すると、本実施の形態のCPUリソース管理情報51は、クラス511と、CPU配分率512と、CPU使用制限時間513とを含んで構成される。
Referring to FIG. 8, the CPU
本実施の形態のクラス511及びCPU配分率512は、図3で示した第1の実施の形態のクラス511及びCPU配分率512と同様のものである。CPU制限時間513は、該当クラスで実行される1つのプロセス当たりに割り当てるCPUのCPU制限時間を示す。
The
図8のCPU制限時間513に示すように、例えば、クラスZに対して割り当てるCPUに関し、所定のCPU制限時間を設定しておけば、設定されたCPU制限時間でクラスZの該当プロセスの処理が打ち切られる。
As shown in the
(第2の実施の形態の効果)
本実施の形態によれば、1つの割り込み処理がループしてしまって他の割り込み処理が実行できなくなることを防止できる。
(Effect of the second embodiment)
According to the present embodiment, it can be prevented that one interrupt process loops and another interrupt process cannot be executed.
その理由は、CPUリソース管理情報51としてクラス511、CPU配分率512及びCPU制限時間513を定め、割り込み処理用のクラスに対して割り当てるCPUに関し、所定のCPU制限時間を設定しておくことにより、設定されたCPU制限時間で割り込み処理用のクラスの該当プロセスの処理が打ち切られるからである。
The reason is that a
以上好ましい実施の形態をあげて本発明を説明したが、本発明は必ずしも、上記実施の形態に限定されるものでなく、その技術的思想の範囲内において様々に変形して実施することができる。 Although the present invention has been described with reference to the preferred embodiments, the present invention is not necessarily limited to the above embodiments, and various modifications can be made within the scope of the technical idea. .
あらかじめ決められたCPUリソースの利用割合に従って、各クラスで使用するCPUリソースの配分を行うCPUリソース管理を行っているシステムで、長時間終了しないプロセスを監視するといった用途に適用できる。 The present invention can be applied to the use of monitoring a process that does not end for a long time in a system that performs CPU resource management that distributes CPU resources to be used in each class according to a predetermined usage ratio of CPU resources.
100:コンピュータシステム
1:プロセス受付手段
2:割り込み処理情報登録手段
3:割り込み処理情報記憶手段
31:割り込み処理情報
311:プロセスID
312:割り込み処理
313処理カウンタ
4:CPUリソース管理手段
5:CPUリソース管理情報記憶手段
51:CPUリソース管理情報
511:クラス
512:CPU配分率
6:タイマ処理手段
7:割り込み処理実行判定手段
8:割り込み処理実行手段
9:プロセス終了手段
10:割り込み処理情報削除手段
11:プロセス
1001:CPU
1002:主記憶部
1003:通信制御部
1004:提示部
1005:入力部
1006:インタフェース部
1007:補助記憶部
1008:システムバス
2000:ネットワーク
100: Computer system 1: Process reception means 2: Interrupt processing information registration means 3: Interrupt processing information storage means 31: Interrupt processing information 311: Process ID
312: Interrupt processing 313 processing counter 4: CPU resource management means 5: CPU resource management information storage means 51: CPU resource management information 511: Class 512: CPU distribution ratio 6: Timer processing means 7: Interrupt processing execution determination means 8: Interrupt Processing execution means 9: Process termination means 10: Interrupt processing information deletion means 11: Process 1001: CPU
1002: Main storage unit 1003: Communication control unit 1004: Presentation unit 1005: Input unit 1006: Interface unit 1007: Auxiliary storage unit 1008: System bus 2000: Network
Claims (20)
所定の時間間隔毎に、予め定めた所定の割り込み処理の有無を判別し、
前記所定の割り込み処理が有る場合、当該割り込み処理用のクラスのCPU配分率に従ってCPUリソースを割り当て、前記割り込み処理を制御する割り込み制御装置を備えることを特徴とするコンピュータシステム。 A computer system capable of executing multi-task processing, allocating CPU resources to each processing according to a CPU distribution ratio determined according to a class to which the processing belongs,
At predetermined time intervals, determine the presence or absence of a predetermined interrupt process,
A computer system comprising: an interrupt control device for allocating CPU resources according to a CPU allocation ratio of a class for the interrupt processing when the predetermined interrupt processing is present and controlling the interrupt processing.
所定の時間間隔毎に、前記割り込み処理情報に基づいて割り込み処理を実行するか否かを判定することを特徴とする請求項1に記載のコンピュータシステム。 Store interrupt processing information related to interrupt processing to be registered in the process in the interrupt processing information storage means,
The computer system according to claim 1, wherein whether or not to execute interrupt processing is determined based on the interrupt processing information at predetermined time intervals.
前記実行待機カウンタに基づいて前記割り込み処理を行うことを特徴とする請求項1から請求項3のいずれか1項に記載のコンピュータシステム。 An execution waiting counter that indicates the waiting time until interrupt processing is executed is provided in advance,
4. The computer system according to claim 1, wherein the interrupt processing is performed based on the execution standby counter. 5.
前記配分率に基づいて前記割り込み処理を動作させることを特徴とする請求項1から請求項4のいずれか1項に記載のコンピュータシステム。 CPU resource allocation ratio indicating the percentage of CPU resources that can be allocated to each of the classes in a predetermined time is prepared in advance,
The computer system according to any one of claims 1 to 4, wherein the interrupt processing is operated based on the distribution ratio.
前記割り当て制限時間に基づいて前記割り込み処理を行うことを特徴とする請求項1から請求項5のいずれか1項に記載のコンピュータシステム。 CPU resource allocation time limit allocated per process executed in the class is prepared in advance,
The computer system according to claim 1, wherein the interrupt process is performed based on the allocation time limit.
所定の時間間隔毎に、予め定めた所定の割り込み処理の有無を判別し、
前記所定の割り込み処理が有る場合、当該割り込み処理用のクラスのCPU配分率に従ってCPUリソースを割り当て、前記割り込み処理を制御する割り込み制御ステップを備えることを特徴とする割り込み制御方法。 An interrupt control method for a computer system capable of executing processing by multitasking, assigning CPU resources to each processing according to a CPU distribution ratio determined according to a class to which the processing belongs,
At predetermined time intervals, determine the presence or absence of a predetermined interrupt process,
An interrupt control method comprising: an interrupt control step of allocating CPU resources in accordance with a CPU allocation rate of a class for the interrupt processing when the predetermined interrupt processing is present and controlling the interrupt processing.
前記コンピュータシステムの割り込み制御装置に、
所定の時間間隔毎に、予め定めた所定の割り込み処理の有無を判別し、
前記所定の割り込み処理が有る場合、当該割り込み処理用のクラスのCPU配分率に従ってCPUリソースを割り当て、前記割り込み処理を制御する割り込み制御処理を実行させることを特徴とするプログラム。 A program that is executed on a computer system capable of executing a process by multitasking that allocates a CPU resource to each process according to a CPU distribution ratio determined according to a class to which the process belongs,
In the interrupt control device of the computer system,
At predetermined time intervals, determine the presence or absence of a predetermined interrupt process,
A program characterized in that, when there is the predetermined interrupt process, a CPU resource is allocated according to a CPU distribution ratio of the interrupt process class, and an interrupt control process for controlling the interrupt process is executed.
割り込み処理を実行するまでの待機時間を示す実行待機カウンタに基づいて前記割り込み処理を実行させることを特徴とする請求項17に記載のプログラム。 In the interrupt control device,
18. The program according to claim 17, wherein the interrupt process is executed based on an execution standby counter indicating a waiting time until the interrupt process is executed.
所定の時間のうち各前記クラスに対してCPUリソースの割り当て可能な割合を示すCPUリソースの配分率に基づいて前記割り込み処理を実行させることを特徴とする請求項17又は請求項18に記載のプログラム。 In the interrupt control device,
19. The program according to claim 17 or 18, wherein the interrupt processing is executed based on a CPU resource allocation ratio indicating a ratio of CPU resources that can be allocated to each class in a predetermined time. .
前記クラスで実行される1つのプロセス当たりに割り当てるCPUリソースの割り当て制限時間に基づいて前記割り込み処理を実行させることを特徴とする請求項17から請求項19のいずれか1項に記載のプログラム。 In the interrupt control device,
The program according to any one of claims 17 to 19, wherein the interrupt processing is executed based on an allocation time limit of a CPU resource allocated per process executed in the class.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007060116A JP2008225641A (en) | 2007-03-09 | 2007-03-09 | Computer system, interrupt control method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007060116A JP2008225641A (en) | 2007-03-09 | 2007-03-09 | Computer system, interrupt control method and program |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008225641A true JP2008225641A (en) | 2008-09-25 |
Family
ID=39844221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007060116A Pending JP2008225641A (en) | 2007-03-09 | 2007-03-09 | Computer system, interrupt control method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008225641A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010044590A (en) * | 2008-08-12 | 2010-02-25 | Toshiba Corp | Mobile terminal apparatus |
WO2013140518A1 (en) * | 2012-03-19 | 2013-09-26 | 富士通株式会社 | Scheduling program, multi-core processor system, and scheduling method |
WO2016091003A1 (en) * | 2014-12-08 | 2016-06-16 | 中兴通讯股份有限公司 | Method for implementing service collaborative scheduling, computing board, and storage medium |
JP7355456B2 (en) | 2019-12-09 | 2023-10-03 | Necソリューションイノベータ株式会社 | CPU resource management device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01196633A (en) * | 1988-02-01 | 1989-08-08 | Nec Corp | Task control system |
JPH04340135A (en) * | 1991-05-16 | 1992-11-26 | Nec Corp | Cpu time distribution control system between plural processing types |
JP2001142723A (en) * | 1999-11-11 | 2001-05-25 | Fujitsu Ltd | Resource allocating method, computer system, and recording medium |
-
2007
- 2007-03-09 JP JP2007060116A patent/JP2008225641A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01196633A (en) * | 1988-02-01 | 1989-08-08 | Nec Corp | Task control system |
JPH04340135A (en) * | 1991-05-16 | 1992-11-26 | Nec Corp | Cpu time distribution control system between plural processing types |
JP2001142723A (en) * | 1999-11-11 | 2001-05-25 | Fujitsu Ltd | Resource allocating method, computer system, and recording medium |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010044590A (en) * | 2008-08-12 | 2010-02-25 | Toshiba Corp | Mobile terminal apparatus |
WO2013140518A1 (en) * | 2012-03-19 | 2013-09-26 | 富士通株式会社 | Scheduling program, multi-core processor system, and scheduling method |
JPWO2013140518A1 (en) * | 2012-03-19 | 2015-08-03 | 富士通株式会社 | Scheduling program, multi-core processor system, and scheduling method |
US9715407B2 (en) | 2012-03-19 | 2017-07-25 | Fujitsu Limited | Computer product, multicore processor system, and scheduling method |
WO2016091003A1 (en) * | 2014-12-08 | 2016-06-16 | 中兴通讯股份有限公司 | Method for implementing service collaborative scheduling, computing board, and storage medium |
CN105743802A (en) * | 2014-12-08 | 2016-07-06 | 中兴通讯股份有限公司 | Method of realizing business cooperative scheduling, and calculating single board |
CN105743802B (en) * | 2014-12-08 | 2020-02-14 | 中兴通讯股份有限公司 | Method for realizing service cooperative scheduling and computing single board |
JP7355456B2 (en) | 2019-12-09 | 2023-10-03 | Necソリューションイノベータ株式会社 | CPU resource management device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2454704C2 (en) | Method and system for executing program applications and machine-readable medium | |
EP2893444B1 (en) | Quota-based resource management | |
US9569260B2 (en) | Efficient priority-aware thread scheduling | |
US9588809B2 (en) | Resource-based scheduler | |
KR101953906B1 (en) | Apparatus for scheduling task | |
US7853743B2 (en) | Processor and interrupt controlling method | |
US20100153957A1 (en) | System and method for managing thread use in a thread pool | |
US8056083B2 (en) | Dividing a computer job into micro-jobs for execution | |
KR20180053359A (en) | Efficient scheduling of multi-version tasks | |
WO2017080273A1 (en) | Task management methods and system, and computer storage medium | |
US20070169126A1 (en) | Multi-processor system and program for causing computer to execute controlling method of multi-processor system | |
US20150026693A1 (en) | Information processing apparatus and job scheduling method | |
JP2009075956A (en) | Job management method, job management device and job management program | |
TWI460659B (en) | Lock windows for reducing contention | |
CN107797848B (en) | Process scheduling method and device and host equipment | |
WO2017080276A1 (en) | Resource management method and system, and computer storage medium | |
JP2013218744A (en) | Resource-based scheduler | |
EP1693743A2 (en) | System, method and medium for using and/or providing operating system information to acquire a hybrid user/operating system lock | |
JP2008225641A (en) | Computer system, interrupt control method and program | |
US9229716B2 (en) | Time-based task priority boost management using boost register values | |
JP2009237858A (en) | Server task management program and server task management method | |
KR101377195B1 (en) | Computer micro-jobs | |
CN111143063A (en) | Task resource reservation method and device | |
JP3893136B2 (en) | Embedded computer control program, recording medium recording the program, and embedded system | |
US9618988B2 (en) | Method and apparatus for managing a thermal budget of at least a part of a processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20080711 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100126 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100218 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20100419 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20110329 |