JP2008305065A - Cpu resource management method - Google Patents

Cpu resource management method Download PDF

Info

Publication number
JP2008305065A
JP2008305065A JP2007150332A JP2007150332A JP2008305065A JP 2008305065 A JP2008305065 A JP 2008305065A JP 2007150332 A JP2007150332 A JP 2007150332A JP 2007150332 A JP2007150332 A JP 2007150332A JP 2008305065 A JP2008305065 A JP 2008305065A
Authority
JP
Japan
Prior art keywords
time
cpu
read
management
usable
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.)
Granted
Application number
JP2007150332A
Other languages
Japanese (ja)
Other versions
JP4650697B2 (en
Inventor
Fuyuki Watanabe
冬樹 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Computertechno Ltd
Original Assignee
NEC Computertechno Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP2007150332A priority Critical patent/JP4650697B2/en
Publication of JP2008305065A publication Critical patent/JP2008305065A/en
Application granted granted Critical
Publication of JP4650697B2 publication Critical patent/JP4650697B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a CPU resource management method that is better than before. <P>SOLUTION: A processor 1 reads X pieces of CPU available time allocated to X process groups from a storage part 210 as X pieces of read CPU available time, and reads management time, i.e., a total value of X pieces of CPU available time, from the storage part 212 as read management time, and executes a first process for subtracting actual time from the read management time. If an (i)-th piece of read CPU usable time ä1≤ i (X-1)} assumes a value greater than zero, one process among an (i)-th process group is executed, and a second process for subtracting its execution time from the (i)-th piece of read CPU usable time is executed. If the (i)-th piece of read CPU available time shows zero, the second process is executed on the (i+1)-th process group. If the read management time shows zero, the first and second processes are executed for processes yet to be executed among the X process groups. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、CPUリソース(CPU使用時間)を制御するCPUリソース管理方式に関する。   The present invention relates to a CPU resource management method for controlling CPU resources (CPU usage time).

情報処理装置において、CPUリソースを制御する方式が開発されている。例えば、従来のCPUリソース管理方式が特許第2508687号公報(特許文献1)に記載されている。このCPUリソース管理方式では、タスク毎にCPU使用時間の割り当て(配分)を行う。次に、CPUリソースを消費したタスクから割り込み(例外)が発生したとき、関連するタスクのCPU使用時間を積算し、残りのCPU使用時間を再配分している。即ち、タスクを終了する必要がなければ、残りのCPU使用時間をタスクのCPU使用時間として割り当て(再配分)を行う。   In an information processing apparatus, a method for controlling CPU resources has been developed. For example, a conventional CPU resource management system is described in Japanese Patent No. 2508687 (Patent Document 1). In this CPU resource management system, CPU usage time is allocated (distributed) for each task. Next, when an interrupt (exception) is generated from a task that has consumed CPU resources, the CPU usage time of the related task is integrated and the remaining CPU usage time is redistributed. That is, if it is not necessary to end the task, the remaining CPU usage time is assigned (redistributed) as the CPU usage time of the task.

しかし、この従来のCPUリソース管理方式には、次のような問題点がある。   However, this conventional CPU resource management system has the following problems.

第1に、従来のCPUリソース管理方式では、最初にCPU使用時間を消費したタスクからの割り込みによりCPUリソースを制御している。このため、第1の問題点として、CPU使用時間を消費したタスクが存在しなければ、CPUリソースを制御することができない。   First, in the conventional CPU resource management system, CPU resources are controlled by an interrupt from a task that first consumed CPU usage time. For this reason, as a first problem, CPU resources cannot be controlled unless there is a task that consumes CPU usage time.

第2に、従来のCPUリソース管理方式では、残りのCPU使用時間を再配分した後、再設定した値通りに動作が行われるとは限らない。即ち、CPU使用時間を消費したタスクが存在する場合でも、複数のタスクのCPU使用時間を積算したり、再配分の必要性を判断したりする処理が必要になり、タスクの特性などによりCPUリソースの過剰使用や不足が生じてしまう。このため、第2の問題点として、タスクのターンアラウンド時間が増加してしまう。   Second, in the conventional CPU resource management method, after the remaining CPU usage time is redistributed, the operation is not always performed according to the reset value. In other words, even when there is a task that consumes CPU usage time, it is necessary to add up the CPU usage time of multiple tasks and determine the necessity of redistribution. Overuse and shortage will occur. For this reason, as a second problem, the task turnaround time increases.

第3に、従来のCPUリソース管理方式では、タスクのCPU使用時間を消費した時点で他のタスクのCPU使用時間を積算するために、キャッシュアクセスの増加や排他制御が必要になる。このため、第3の問題点として、制御によるキャッシュブロック上のデータ競合や排他制御によるオーバーヘッドによりマルチプロセッサ構成のシステム性能が低下する。   Third, in the conventional CPU resource management method, an increase in cache access or exclusive control is required to accumulate the CPU usage time of other tasks when the CPU usage time of the task is consumed. For this reason, as a third problem, the system performance of the multiprocessor configuration deteriorates due to data competition on the cache block by control and overhead by exclusive control.

このように、上述の問題点を解決する従来よりも優れたCPUリソースの管理方式、管理方法及びそれを実現するコンピュータプログラムが望まれる。   Thus, there is a need for a CPU resource management method and management method that can solve the above-described problems and that is superior to conventional ones, and a computer program that implements the same.

CPUリソースに関する技術について紹介する。   Introduces technologies related to CPU resources.

上記の特許第2508687号公報(特許文献1)には“ジョブのCPU使用時間管理方式”が記載されている。このCPU使用時間管理方式は、ジョブを構成する複数個のタスクを処理する手段と、各々のタスク毎に設けられ、そのタスクが計算機のCPUを使用した時間に応じて値が減少するタイマカウンタと、このタイマカウンタの値が0になったときに例外を発生する機能を有する手段とを有する計算機システムにおいて、特定のジョブに対して利用者が指定したCPU使用可能時間を任意の割合で前記各タスクに配分し、各々のタイマカウンタにセットする手段と、その時点までに各タスクで使用されたCPU時間を積算し、残りのCPU使用可能時間を算出する手段と、残りのCPU使用可能時間から、この残ったCPU使用可能時間の再配分を行うか否かを決定する手段と、この決定手段が再配分を行うことを決定したとき、残りCPU使用可能時間を前記各タスクに再配分し、各々のタイマカウンタに再セットする手段と、前記決定手段が再配分を行わないことを決定したとき、残りCPU使用可能時間を再配分せずに、すべてのタイマカウンタに再セットする手段と、再セットされたカウンタのうちいずれかひとつの値が0になったときジョブを終了させる手段とを設け、前記例外発生手段は例外を発生すると前記残り時間算出手段を作動させることを特徴とする複数個のタスクから構成される。   Japanese Patent No. 2508687 (Patent Document 1) describes a “CPU usage time management system for jobs”. This CPU usage time management method includes a means for processing a plurality of tasks constituting a job, a timer counter provided for each task, the value of which decreases according to the time that the task uses the CPU of the computer, And a means having a function of generating an exception when the value of the timer counter reaches 0, the CPU usable time designated by the user for a specific job at an arbitrary ratio. A means for allocating to tasks and setting each timer counter, a means for calculating the remaining CPU usable time by integrating the CPU time used by each task up to that point, and the remaining CPU usable time Means for determining whether or not to redistribute the remaining CPU usable time, and when the determining means determines to redistribute, Means for reallocating the available time to each task and resetting it to each timer counter; and when the decision means decides not to redistribute, all the remaining CPU available time is not redistributed. Means for resetting the timer counter, and means for terminating the job when one of the reset counter values becomes 0, and the exception generating means calculates the remaining time when an exception occurs. It is composed of a plurality of tasks characterized by operating means.

特開2003−296289号公報(特許文献2)には“負荷分散方式”が記載されている。この負荷分散方式は、トランザクション処理メッセージの実行に要する平均CPU使用時間を、前記トランザクション処理メッセージを識別するためのトランザクション処理メッセージ識別子毎に記憶するトランザクション毎平均CPU使用時間管理表と、複数のトランザクション処理メッセージを受け取り、受け取った前記複数のトランザクション処理メッセージそれぞれのトランザクション処理メッセージ識別子をキーにして前記トランザクション毎平均CPU使用時間管理表を検索し、前記複数のトランザクション処理メッセージそれぞれの実行に要する平均CPU使用時間を取得するとともに、取得した前記平均CPU使用時間より前記複数のトランザクション処理メッセージの実行に要するCPU使用時間の予測値を算出し、算出した前記予測値と、一定時間間隔で取得した複数のサーバそれぞれの現在のCPU使用率に基づいて、前記複数のトランザクション処理メッセージの前記複数のサーバへの振り分け配分を決定し、決定した前記振り分け配分に基づいて、前記複数のトランザクション処理メッセージを前記複数のサーバのそれぞれに投入するトランザクション振り分け手段とを備えたことを特徴としている。   Japanese Patent Laid-Open No. 2003-296289 (Patent Document 2) describes a “load distribution method”. This load balancing method includes an average CPU usage time management table for storing an average CPU usage time required for executing a transaction processing message for each transaction processing message identifier for identifying the transaction processing message, and a plurality of transaction processings. The average CPU usage time required to execute each of the plurality of transaction processing messages is received by searching the average CPU usage time management table for each transaction using the transaction processing message identifier of each of the plurality of transaction processing messages received as a key. And calculating a predicted value of CPU usage time required to execute the plurality of transaction processing messages from the acquired average CPU usage time. And determining the distribution distribution of the plurality of transaction processing messages to the plurality of servers based on the predicted value and the current CPU usage rate of each of the plurality of servers acquired at regular time intervals. And a transaction distribution unit that inputs the plurality of transaction processing messages to each of the plurality of servers.

特開昭62−11941号公報(特許文献3)には“多重処理制御方式”が記載されている。この多重処理制御方式は、情報処理システムにおいて複数の処理単位を中央演算装置にタイムスライス方式にて割り当て実行せしめる方式であって、前記処理単位毎に対応して設けられた各処理単位をタイムスライスにて実行するためのタイムスライス時間間隔を記憶する記憶域と、前記処理単位毎に対応して設けられ各処理単位が中央演算装置を使用した時間を積算してこの積算時間を記憶する記憶域と、前記処理単位を複数グループに分割して各グループに対する中央演算装置の使用割り当て比率を予め設定して記憶する割り当て比率テーブルと、所定時間経過毎に各グループ毎の中央演算装置の使用時間比率を前記タイム時間間隔及び積算時間を用いて算出する手段と、グループ毎の前記使用時間比率の前記比率テーブル内の対応グループの割り当て比率に対する誤差を算出してこの誤差に応じて該グループ内の各処理単位のタイムスライス時間間隔を変更する変更手段とを設け、前記処理単位の各々を中央演算装置の使用時間を積算しつつ前記タイムスライス時間間隔にて実行せしめるようにしたことを特徴としている。   Japanese Laid-Open Patent Publication No. 62-11941 (Patent Document 3) describes a “multiprocessing control method”. This multi-processing control method is a method in which a plurality of processing units are assigned to a central processing unit by a time slice method in an information processing system, and each processing unit provided corresponding to each processing unit is time sliced. A storage area for storing time slice time intervals for execution in the storage area, and a storage area for each processing unit that is provided for each processing unit and that accumulates the time for which each processing unit uses the central processing unit and stores this integration time And an allocation ratio table that divides the processing unit into a plurality of groups and presets and stores the usage allocation ratio of the central processing unit for each group, and the usage time ratio of the central processing unit for each group every predetermined time And a corresponding group in the ratio table of the use time ratio for each group. And changing means for changing the time slice time interval of each processing unit in the group according to the error, and integrating each processing unit with the use time of the central processing unit. However, it is characterized in that it is executed at the time slice time interval.

特許第3150114号公報(特許文献4)には“ディスパッチ装置”が記載されている。このディスパッチ装置は、マルチプロセッサ計算機における複数のCPUと複数のキューとの割り当て状態を管理してキューイングの制御を行う装置において、前記CPUがジョブを時分割で実行した実行時間を前記キュー毎に累積し、所定のタイミングで、前記キュー毎の実行時間の合計値の比率を算出し、かつ前記CPUの割り当てが行われる度に前記キュー毎のジョブの実行時間の合計値を初期化する実行時間管理手段と、所定のタイミングで、前記実行時間管理手段により算出された前記キュー毎のジョブの実行時間の合計値の比率に応じて、前記キューに対して前記CPUの割り当てを行う割り当て制御手段と、前記所定の設定時間が経過する度に、前記実行時間管理手段による前記キュー毎のジョブの実行時間の合計値の比率の算出処理と、かつ前記割り当て制御手段による前記キューに対する前記CPUの割り当て処理のタイミングを前記実行時間管理手段及び前記割り当て制御手段に通知するタイミング生成手段とを備えることを特徴としている。   Japanese Patent No. 3150114 (Patent Document 4) describes a “dispatching device”. This dispatch apparatus is an apparatus for controlling the queuing control by managing the allocation state of a plurality of CPUs and a plurality of queues in a multiprocessor computer. Execution time that accumulates, calculates a ratio of the total value of execution time for each queue at a predetermined timing, and initializes the total value of job execution time for each queue every time the CPU is assigned An allocation control unit that allocates the CPU to the queue according to a ratio of a total value of job execution times for each queue calculated by the execution time management unit at a predetermined timing; Each time the predetermined set time elapses, the ratio of the total value of job execution times for each queue by the execution time management means And output processing, and is characterized by comprising a timing generation means for notifying the timing of assignment processing of the CPU for the queue by the assignment control unit to the execution time management means and said allocation control means.

国際公開第WO2002/069174号パンフレット(特許文献5)には“並列プロセス実行方法”が記載されている。この並列プロセス実行方法は、1つの並列プログラムから生成される複数の並列プロセスと他のプロセスとを、複数のプロセッサで時分割で処理するための方法において、所定の周期の中で前記並列プログラムの処理に割り当てるべき時間配分率を設定し、前記並列プログラムの前記各並列プロセスを前記複数のプロセッサ中の1つに割り当て、前記複数のプロセッサにおいて、割り当てられた並列プロセスの処理を同時に実行開始し、前記並列プロセスの実行が開始されてからの経過時間が、前記所定の周期内での前記並列プログラムに設定された前記時間配分率に応じた時間に達すると、前記複数のプロセッサにおいて、割り当てられた並列プロセスの実行を同時に終了する、ことを特徴としている。   International Publication No. WO2002 / 069174 (Patent Document 5) describes “Parallel Process Execution Method”. This parallel process execution method is a method for processing a plurality of parallel processes generated from one parallel program and other processes by a plurality of processors in a time-sharing manner. Setting a time allocation rate to be allocated to processing, allocating each parallel process of the parallel program to one of the plurality of processors, and simultaneously starting processing of the allocated parallel processes in the plurality of processors; When the elapsed time from the start of execution of the parallel process reaches a time corresponding to the time allocation rate set in the parallel program within the predetermined period, the time is allocated in the plurality of processors. It is characterized by ending execution of parallel processes at the same time.

特許第2508687号公報Japanese Patent No. 2508687 特開2003−296289号公報JP 2003-296289 A 特開昭62−11941号公報JP 62-111941 A 特許第3150114号公報Japanese Patent No. 3150114 国際公開第WO2002/069174号パンフレットInternational Publication No. WO2002 / 069174 Pamphlet

本発明の課題は、CPUリソースを確実に制御することができるCPUリソース管理方式を提供することにある。
本発明の他の課題は、従来よりもターンアラウンド時間を短縮することができるCPUリソース管理方式を提供することにある。
本発明の更に他の課題は、オーバーヘッドを排除することができるCPUリソース管理方式を提供することにある。
An object of the present invention is to provide a CPU resource management method capable of reliably controlling CPU resources.
Another object of the present invention is to provide a CPU resource management system capable of shortening the turnaround time as compared with the prior art.
Still another object of the present invention is to provide a CPU resource management system that can eliminate overhead.

本発明のCPUリソース管理方式は、CPU(Central Processing Unit)で動作するプロセッサと、記憶装置とを具備している。
記憶装置は、1番目からX番目(Xは2以上の整数)までのX個のプロセス群が格納されたプロセス情報記憶部と、X個のプロセス群のそれぞれに割り当てられたX個のCPU使用可能時間が格納されたCPUリソース初期情報記憶部と、X個のCPU使用可能時間の合計値である管理時間が格納された管理時間記憶部とを具備している。
プロセッサは、CPUリソース初期情報記憶部からX個のCPU使用可能時間をX個の読出CPU使用可能時間として読み出し、管理時間記憶部から管理時間を読出管理時間として読み出し、読出管理時間から実時間を減算する第1処理を行う。
プロセッサは、第i読出CPU使用可能時間{iは1≦i(X−1)を満たす整数}が0よりも大きい値を表すとき、第iプロセス群のうちの1つのプロセスを実行し、その実行時間を第i読出CPU使用可能時間から減算する第2処理を行う。
プロセッサは、第i読出CPU使用可能時間が0を表すとき、第(i+1)プロセス群に対して第2処理を行う。
プロセッサは、読出管理時間が0を表すとき、X個のプロセス群のうちの、未だ実行されていない未実行プロセスに対して、第1処理及び第2処理を行う。
The CPU resource management system of the present invention includes a processor that operates on a CPU (Central Processing Unit) and a storage device.
The storage device includes a process information storage unit storing X process groups from the first to the Xth (X is an integer equal to or greater than 2), and the use of X CPUs allocated to each of the X process groups. The CPU resource initial information storage unit storing the available time and the management time storage unit storing the management time that is the total value of the X CPU usable times are provided.
The processor reads the X CPU usable time from the CPU resource initial information storage unit as X read CPU usable time, reads the management time from the management time storage unit as the read management time, and calculates the real time from the read management time. A first process of subtraction is performed.
The processor executes one process of the i-th process group when the i-th read CPU available time {i is an integer satisfying 1 ≦ i (X−1)} is greater than 0, and A second process of subtracting the execution time from the i-th read CPU usable time is performed.
When the i-th read CPU usable time represents 0, the processor performs the second process on the (i + 1) -th process group.
When the read management time represents 0, the processor performs the first process and the second process on an unexecuted process that has not yet been executed among the X process groups.

本発明のCPUリソース管理方式では、第1の効果として、管理時間に応じてX個のプロセス群のCPUリソース(X個のCPU使用可能時間)をプロセッサ単位に制御している。即ち、CPU使用時間を消費したタスクに依存することなくCPUリソースを制御している。これにより、本発明のCPUリソース管理方式では、CPUリソースを確実に制御することができる。   In the CPU resource management system of the present invention, as a first effect, CPU resources of X process groups (X CPU usable time) are controlled in units of processors according to the management time. That is, the CPU resource is controlled without depending on the task that consumed the CPU usage time. Thereby, in the CPU resource management system of the present invention, the CPU resource can be reliably controlled.

また、本発明のCPUリソース管理方式では、第1の効果により、第2の効果として、ソフトウェア制御を介さずにCPUリソースの制御を行うことができる。これにより、本発明のCPUリソース管理方式では、プロセスのターンアラウンド時間を大幅に短縮できることである。   In the CPU resource management system of the present invention, the CPU resource can be controlled without going through software control as the second effect by the first effect. Thereby, in the CPU resource management system of the present invention, the process turnaround time can be greatly shortened.

また、本発明のCPUリソース管理方式では、第1及び第2の効果により、第3の効果として、ソフトウェア制御を介在することなくプロセッサ単位にCPUリソースの制御を行っている。これにより、本発明のCPUリソース管理方式では、マルチプロセッサ構成におけるシステム性能の低下要因となるキャッシュブロック上のデータ競合や排他制御によるオーバーヘッドを完全に排除できることである。このため、システムを安定に稼働させることができる。   Further, in the CPU resource management system of the present invention, as a third effect, the CPU resource is controlled in units of processors without software control due to the first and second effects. As a result, the CPU resource management system of the present invention is capable of completely eliminating the data competition on the cache block and the overhead due to the exclusive control, which cause the system performance to deteriorate in the multiprocessor configuration. For this reason, the system can be operated stably.

以下に添付図面を参照して、本発明のCPUリソース管理方式について詳細に説明する。   The CPU resource management system of the present invention will be described below in detail with reference to the accompanying drawings.

[構成]
図1は、本発明のCPUリソース管理方式の構成を示すブロック図である。本発明のCPUリソース管理方式は、N個(1以上の整数)のプロセッサ1と、N個の記憶装置2とを具備している。N個のプロセッサ1はそれぞれN個の記憶装置2に割り当てられ、本発明では、CPUリソース管理はプロセッサ単位で制御される。例えば、Nが4である場合、4個のプロセッサ1を識別するプロセッサ番号は、それぞれ、プロセッサ“00”、“01”、“02”、“03”と表される。
[Constitution]
FIG. 1 is a block diagram showing the configuration of the CPU resource management system of the present invention. The CPU resource management system of the present invention includes N (an integer greater than or equal to 1) processors 1 and N storage devices 2. Each of the N processors 1 is assigned to N storage devices 2, and in the present invention, CPU resource management is controlled in units of processors. For example, when N is 4, the processor numbers for identifying the four processors 1 are represented as processors “00”, “01”, “02”, and “03”, respectively.

プロセッサ1は、CPU(Central Processing Unit)で動作する制御部10と、タイマー機能を有する管理部11とを具備している。   The processor 1 includes a control unit 10 that operates on a CPU (Central Processing Unit) and a management unit 11 having a timer function.

記憶装置2は、プロセス情報記憶部20と、プロセッサ制御情報記憶部21とを具備している。プロセッサ制御情報記憶部21は、CPUリソース初期情報記憶部210と、CPUリソース情報記憶部211と、管理時間記憶部212とを含んでいる。   The storage device 2 includes a process information storage unit 20 and a processor control information storage unit 21. The processor control information storage unit 21 includes a CPU resource initial information storage unit 210, a CPU resource information storage unit 211, and a management time storage unit 212.

プロセス情報記憶部20には、1番目からX番目(Xは2以上の整数)までの実行待ちのX個のプロセス群と、X個のプロセス群をそれぞれ識別するX個のプロセス群識別情報とが格納されている。   The process information storage unit 20 includes X process groups waiting for execution from the first to the Xth (X is an integer of 2 or more), X process group identification information for identifying the X process groups, and Is stored.

CPUリソース初期情報記憶部210には、X個のプロセス群識別情報が格納されている。CPUリソース初期情報記憶部210には、更に、X個のプロセス群識別情報のそれぞれに割り当てられたX個のCPU使用可能時間がCPUリソース初期情報として格納されている。   The CPU resource initial information storage unit 210 stores X process group identification information. The CPU resource initial information storage unit 210 further stores X CPU usable times assigned to the X process group identification information as CPU resource initial information.

管理時間記憶部212には、X個のCPU使用可能時間の合計値である管理時間が格納されている。   The management time storage unit 212 stores a management time that is a total value of X CPU usable times.

プロセッサ1は、実行待ちのX個のプロセス群に対して、第1処理及び第2処理を行う。   The processor 1 performs the first process and the second process on the X process groups waiting to be executed.

まず、プロセッサ1は、第1処理を行う。   First, the processor 1 performs a first process.

プロセッサ1の制御部10は、CPUリソース初期情報記憶部210からCPUリソース初期情報(X個のCPU使用可能時間)をCPUリソース情報(X個の読出CPU使用可能時間)として読み出し、CPUリソース情報記憶部211に格納する。また、制御部10は、管理時間記憶部212から管理時間を読出管理時間として読み出し、プロセッサ1の管理部11に読出管理時間を設定する。管理部11は、実時間をカウントし、読出管理時間から実時間を減算する。   The control unit 10 of the processor 1 reads the CPU resource initial information (X CPU usable time) from the CPU resource initial information storage unit 210 as CPU resource information (X read CPU usable time), and stores the CPU resource information. Stored in the unit 211. Further, the control unit 10 reads the management time from the management time storage unit 212 as the read management time, and sets the read management time in the management unit 11 of the processor 1. The management unit 11 counts the real time and subtracts the real time from the read management time.

次に、プロセッサ1は、第2処理を行う。   Next, the processor 1 performs a second process.

第i読出CPU使用可能時間{iは1≦i(X−1)を満たす整数}が0よりも大きい値を表すとき、プロセッサ1の制御部10は、第iプロセス群のうちの1つのプロセスを実行し、その実行時間を第i読出CPU使用可能時間から減算する。ここで、第i読出CPU使用可能時間が0を表すとき、制御部10は、第(i+1)プロセス群に対して第2処理を行う。   When the i-th read CPU usable time {i is an integer satisfying 1 ≦ i (X−1)} represents a value larger than 0, the control unit 10 of the processor 1 selects one process in the i-th process group. And the execution time is subtracted from the i-th read CPU usable time. Here, when the i-th read CPU usable time represents 0, the control unit 10 performs the second process on the (i + 1) -th process group.

読出管理時間が0を表すとき、プロセッサ1は、X個のプロセス群のうちの、未だ実行されていない未実行プロセスに対して、上述の第1処理及び第2処理を行う。   When the read management time represents 0, the processor 1 performs the first process and the second process described above for an unexecuted process that has not yet been executed in the X process group.

[動作]
次に、本発明のCPUリソース管理方式の動作について、図2、図3A〜図3Eを用いて具体的に説明する。上記の記憶装置2には、図2に示される動作(フロー)をプロセッサ1(コンピュータ)が実行するためのコンピュータプログラム(図示しない)が格納(インストール)されている。本発明では、CPUリソース管理はプロセッサ単位で制御されるため、プロセッサ番号が“00”であるプロセッサ1の動作について説明する。
[Operation]
Next, the operation of the CPU resource management system of the present invention will be specifically described with reference to FIGS. 2 and 3A to 3E. The storage device 2 stores (installs) a computer program (not shown) for the processor 1 (computer) to execute the operation (flow) shown in FIG. In the present invention, since CPU resource management is controlled in units of processors, the operation of the processor 1 whose processor number is “00” will be described.

プロセス情報記憶部20には、1番目から3番目(Xを3とする)までの実行待ちの3個のプロセス群と、3個のプロセス群をそれぞれ識別する3個のプロセス群識別情報とが格納されているものとする。ここで、図3Aに示されるように、3個のプロセス群をそれぞれプロセス群“A”、“B”、“C”とする。また、実行待ちのプロセスをプロセス“1”、“2”、“3”、“4”、“5”とし、プロセス“1”、“2”はプロセス群“A”に含まれ、プロセス“3”、“4”はプロセス群“B”に含まれ、プロセス“5”はプロセス群“C”に含まれているものとする。また、プロセス“1”、“2”、“3”、“4”、“5”の実行が開始されてから終了するまでに必要な時間は、それぞれ、“40ms”、“40ms”、“20ms”、“20ms”、“50ms”であるものとする。   The process information storage unit 20 includes three process groups waiting to be executed from the first to the third (X is 3) and three process group identification information for identifying the three process groups. Assume that it is stored. Here, as shown in FIG. 3A, the three process groups are referred to as process groups “A”, “B”, and “C”, respectively. The processes waiting to be executed are the processes “1”, “2”, “3”, “4”, “5”, and the processes “1”, “2” are included in the process group “A”, and the process “3” ”And“ 4 ”are included in the process group“ B ”, and the process“ 5 ”is included in the process group“ C ”. Further, the time required from the start of execution of the processes “1”, “2”, “3”, “4”, “5” to the end thereof is “40 ms”, “40 ms”, “20 ms”, respectively. ”,“ 20 ms ”, and“ 50 ms ”.

CPUリソース初期情報記憶部210には、3個のプロセス群識別情報と、3個のプロセス群識別情報のそれぞれに割り当てられた3個のCPU使用可能時間とが格納されている。ここで、図3Aに示されるように、3個のCPU使用可能時間をそれぞれCPU使用可能時間“40ms”、“30ms”、“30ms”とする。   The CPU resource initial information storage unit 210 stores three process group identification information and three CPU usable times assigned to each of the three process group identification information. Here, as shown in FIG. 3A, the three CPU usable times are defined as CPU usable times “40 ms”, “30 ms”, and “30 ms”, respectively.

図3Aに示されるように、管理時間記憶部212には、CPU使用可能時間“40ms”、“30ms”、“30ms”の合計値である管理時間“100ms”が格納されているものとする。   As shown in FIG. 3A, it is assumed that the management time storage unit 212 stores a management time “100 ms” that is a total value of the CPU usable time “40 ms”, “30 ms”, and “30 ms”.

プロセッサ1“00”は、実行待ちのプロセス群“A”、“B”、“C”に対して、第1処理及び第2処理を行う。   The processor 1 “00” performs the first process and the second process on the process group “A”, “B”, “C” waiting for execution.

まず、プロセッサ1“00”は、第1処理を行う。   First, the processor 1 “00” performs the first process.

図3Aに示されるように、プロセッサ1“00”の制御部10は、CPUリソース初期情報記憶部210からCPU使用可能時間“40ms”、“30ms”、“30ms”を第1、第2、第3読出CPU使用可能時間として読み出し、CPUリソース情報記憶部211に格納する。また、制御部10は、管理時間記憶部212から管理時間“100ms”を読出管理時間として読み出し、プロセッサ1“00”の管理部11に読出管理時間“100ms”を設定する。管理部11は、実時間をカウントし、読出管理時間“100ms”から実時間を減算する。   As shown in FIG. 3A, the control unit 10 of the processor 1 “00” sets the CPU usable time “40 ms”, “30 ms”, “30 ms” from the CPU resource initial information storage unit 210 to the first, second, second 3 Reads as the CPU available time, and stores it in the CPU resource information storage unit 211. Further, the control unit 10 reads the management time “100 ms” from the management time storage unit 212 as the read management time, and sets the read management time “100 ms” in the management unit 11 of the processor 1 “00”. The management unit 11 counts the real time and subtracts the real time from the read management time “100 ms”.

次に、プロセッサ1“00”は、プロセス群“A”に対して第2処理を行う(ステップS1−YES)。   Next, the processor 1 “00” performs the second process on the process group “A” (step S1-YES).

図3Aに示されるように、いま、第1読出CPU使用可能時間は“40ms”である。即ち、0よりも大きい値を表している(ステップS2−YES)。このとき、プロセッサ1“00”の制御部10は、プロセス群“A”のうちのプロセス“1”を“40ms”分実行し、その実行時間“40ms”を第1読出CPU使用可能時間“40ms”から減算する(ステップS3)。   As shown in FIG. 3A, the usable time of the first read CPU is “40 ms”. That is, it represents a value greater than 0 (step S2-YES). At this time, the control unit 10 of the processor 1 “00” executes the process “1” of the process group “A” for “40 ms”, and uses the execution time “40 ms” as the first read CPU usable time “40 ms”. Is subtracted from "" (step S3).

図3Bに示されるように、プロセス群“A”のプロセス“1”の実行後に、第1読出CPU使用可能時間は“0ms”である。即ち、0を表している。また、読出管理時間は“60ms”を表している。このとき、プロセッサ1“00”の制御部10は、プロセス群“A”のうちのプロセス“2”を“40ms”分実行できないので、プロセス“2”の実行を保留する(ステップS1−YES、S2−NO)。   As shown in FIG. 3B, after the process “1” of the process group “A” is executed, the first read CPU usable time is “0 ms”. That is, it represents 0. The read management time represents “60 ms”. At this time, since the control unit 10 of the processor 1 “00” cannot execute the process “2” of the process group “A” for “40 ms”, the execution of the process “2” is suspended (step S1-YES, S2-NO).

次に、プロセッサ1“00”は、プロセス群“B”に対して第2処理を実行する(ステップS4−YES)。   Next, the processor 1 “00” executes the second process on the process group “B” (step S4-YES).

図3Bに示されるように、いま、第2読出CPU使用可能時間は“30ms”である。即ち、0よりも大きい値を表している(ステップS2−YES)。このとき、プロセッサ1“00”の制御部10は、プロセス群“B”のうちのプロセス“3”を“20ms”分実行し、その実行時間“20ms”を第2読出CPU使用可能時間“30ms”から減算する(ステップS3)。   As shown in FIG. 3B, the second read CPU usable time is “30 ms”. That is, it represents a value greater than 0 (step S2-YES). At this time, the control unit 10 of the processor 1 “00” executes the process “3” of the process group “B” for “20 ms”, and uses the execution time “20 ms” as the second read CPU usable time “30 ms”. Is subtracted from "" (step S3).

図3Cに示されるように、この場合、第2読出CPU使用可能時間は“10ms”である。即ち、0よりも大きい値を表している。このとき、プロセッサ1“00”の制御部10は、プロセス群“B”のうちのプロセス“4”を“20ms”のうちの“10ms”分実行し、その実行時間“10ms”を第2読出CPU使用可能時間“10ms”から減算する(ステップS1−YES、S2−YES、S3)。   As shown in FIG. 3C, in this case, the second read CPU usable time is “10 ms”. That is, it represents a value larger than 0. At this time, the control unit 10 of the processor 1 “00” executes the process “4” of the process group “B” for “10 ms” of “20 ms”, and secondly reads the execution time “10 ms”. The CPU usable time is subtracted from “10 ms” (steps S1-YES, S2-YES, S3).

図3Dに示されるように、プロセス群“B”のプロセス“4”の実行中に、第2読出CPU使用可能時間は“0ms”である。即ち、0を表している。また、読出管理時間は“30ms”を表している。このとき、プロセッサ1“00”の制御部10は、プロセス群“B”のプロセス“4”を残り“10ms”分実行できないので、プロセス“4”の実行を保留する(ステップS1−YES、S2−NO)。   As shown in FIG. 3D, during the execution of the process “4” of the process group “B”, the second read CPU usable time is “0 ms”. That is, it represents 0. The read management time represents “30 ms”. At this time, the control unit 10 of the processor 1 “00” cannot execute the process “4” of the process group “B” for the remaining “10 ms”, and therefore suspends the execution of the process “4” (steps S1-YES, S2). -NO).

次に、プロセッサ1“00”は、プロセス群“C”に対して第2処理を実行する(ステップS4−YES)。   Next, the processor 1 “00” executes the second process on the process group “C” (step S4-YES).

図3Dに示されるように、いま、第3読出CPU使用可能時間は“30ms”である。即ち、0よりも大きい値を表している(ステップS2−YES)。このとき、プロセッサ1“00”の制御部10は、プロセス群“C”のうちのプロセス“5”を“50ms”のうちの“30ms”分実行し、その実行時間“30ms”を第3読出CPU使用可能時間“30ms”から減算する(ステップS3)。   As shown in FIG. 3D, the third read CPU usable time is “30 ms”. That is, it represents a value greater than 0 (step S2-YES). At this time, the control unit 10 of the processor 1 “00” executes the process “5” in the process group “C” for “30 ms” in “50 ms”, and reads the execution time “30 ms” in the third reading. The CPU usable time is subtracted from “30 ms” (step S3).

図3Eに示されるように、プロセス群“C”のプロセス“5”の実行中に、第3読出CPU使用可能時間は“0ms”である。即ち、0を表している。また、読出管理時間は“0ms”を表している。このとき、プロセッサ1“00”の制御部10は、プロセス群“C”のプロセス“5”を残り“20ms”分実行できないので、プロセス“5”の実行を保留する(ステップS1−YES、S2−NO、S4−NO)。   As shown in FIG. 3E, the third read CPU usable time is “0 ms” during the execution of the process “5” of the process group “C”. That is, it represents 0. The read management time represents “0 ms”. At this time, since the control unit 10 of the processor 1 “00” cannot execute the process “5” of the process group “C” for the remaining “20 ms”, the execution of the process “5” is suspended (steps S1-YES, S2). -NO, S4-NO).

図3Eに示されるように、読出管理時間が“0ms”を表している。このため、プロセッサ1“00”は、プロセス群“A”、“B”、“C”のうちの、未実行プロセスであるプロセス“2”、“4”、“5”に対して、上述の第1処理及び第2処理を行う(ステップS1〜S4)。   As shown in FIG. 3E, the read management time represents “0 ms”. For this reason, the processor 1 “00” performs the above-described process “2”, “4”, “5” among the process groups “A”, “B”, “C” with respect to the processes “2”, “4”, “5”. The first process and the second process are performed (steps S1 to S4).

このようにして、本発明のCPUリソース管理方式では、管理時間に応じてプロセスが属するプロセス群のCPUリソースをプロセッサ単位に制御することにより、ソフトウェアの動作時間やソフトウェア制御に伴うデータ競合や排他制御等によるシステム性能の低下要因の影響を受けずにCPUリソース管理を行うことができ、システムを安定に稼働させることができる。   In this way, in the CPU resource management system of the present invention, by controlling the CPU resource of the process group to which the process belongs according to the management time for each processor, data competition and exclusive control associated with software operation time and software control are performed. Thus, CPU resource management can be performed without being affected by a factor of system performance degradation due to the above, and the system can be operated stably.

[効果]
本発明のCPUリソース管理方式の効果について説明する。
[effect]
The effect of the CPU resource management system of the present invention will be described.

まず、従来のCPUリソース管理方式では、図4Aに示されるように、第1の問題点として、タスク毎にCPU使用時間の割り当て(配分)を行い、CPUリソースを消費したタスクから割り込み(例外)が発生したとき、関連するタスクのCPU使用時間を積算し、残りのCPU使用時間を再配分している。即ち、タスクを終了する必要がなければ、残りのCPU使用時間をタスクのCPU使用時間として割り当て(再配分)を行う。このため、従来のCPUリソース管理方式では、CPU使用時間を消費したタスクが存在しなければ、CPUリソースを制御することができない。   First, in the conventional CPU resource management method, as shown in FIG. 4A, as a first problem, CPU usage time is allocated (distributed) for each task, and an interrupt (exception) from a task that consumes CPU resources. When this occurs, the CPU usage time of the related task is integrated and the remaining CPU usage time is redistributed. That is, if it is not necessary to end the task, the remaining CPU usage time is assigned (redistributed) as the CPU usage time of the task. For this reason, in the conventional CPU resource management system, CPU resources cannot be controlled unless there is a task that consumes CPU usage time.

また、従来のCPUリソース管理方式では、第2の問題点として、CPU使用時間を消費したタスクが存在する場合でも、複数のタスクのCPU使用時間を積算したり、再配分の必要性を判断したりする処理が必要になり、タスクのターンアラウンド時間が増加してしまう。   Further, in the conventional CPU resource management method, as a second problem, even when there is a task that consumes the CPU usage time, the CPU usage time of a plurality of tasks is accumulated and the necessity of redistribution is determined. Processing is required, and task turnaround time increases.

また、従来のCPUリソース管理方式では、第3の問題点として、マルチプロセッサ構成において、ソフトウェアの動作時間やソフトウェアの制御によるデータ競合や排他制御等のシステム性能の低下要因が増大してしまい、CPU使用時間の超過を完全に押さえることができない。   Further, in the conventional CPU resource management method, as a third problem, in a multiprocessor configuration, system performance degradation factors such as software operation time, data competition due to software control, and exclusive control increase. The excess of use time cannot be suppressed completely.

一方、本発明のCPUリソース管理方式では、図4Bに示されるように、第1の効果として、管理時間“100msに応じてプロセス群“A”、“B”、“C”のCPUリソース(CPU使用可能時間)“40ms”、“30ms”、“30ms”をプロセッサ“00”単位に制御している。即ち、CPU使用時間を消費したタスクに依存することなくCPUリソースを制御している。これにより、本発明のCPUリソース管理方式では、CPUリソースを確実に制御することができる。   On the other hand, in the CPU resource management system of the present invention, as shown in FIG. 4B, the first effect is that the CPU resources (CPUs) of the process groups “A”, “B”, and “C” correspond to the management time “100 ms”. (Usable time) “40 ms”, “30 ms”, “30 ms” are controlled in units of processor “00”, that is, the CPU resources are controlled without depending on the task that consumed the CPU usage time. Thus, in the CPU resource management system of the present invention, the CPU resource can be reliably controlled.

また、本発明のCPUリソース管理方式では、第1の効果により、第2の効果として、ソフトウェア制御を介さずにCPUリソース“40ms”、“30ms”、“30ms”の制御を行うことができる。これにより、本発明のCPUリソース管理方式では、プロセスのターンアラウンド時間を大幅に短縮できることである。   Further, in the CPU resource management system of the present invention, as a second effect, the CPU resources “40 ms”, “30 ms”, and “30 ms” can be controlled without going through software control. Thereby, in the CPU resource management system of the present invention, the process turnaround time can be greatly shortened.

また、本発明のCPUリソース管理方式では、第1及び第2の効果により、第3の効果として、ソフトウェア制御を介在することなくプロセッサ“00”単位にCPUリソース“40ms”、“30ms”、“30ms”の制御を行っている。これにより、本発明のCPUリソース管理方式では、マルチプロセッサ構成におけるシステム性能の低下要因となるキャッシュブロック上のデータ競合や排他制御によるオーバーヘッドを完全に排除できることである。このため、システムを安定に稼働させることができる。   In the CPU resource management system according to the present invention, the first and second effects provide a third effect. As a third effect, the CPU resources “40 ms”, “30 ms”, “ 30 ms "control is performed. As a result, the CPU resource management system of the present invention is capable of completely eliminating the data competition on the cache block and the overhead due to the exclusive control, which cause the system performance to deteriorate in the multiprocessor configuration. For this reason, the system can be operated stably.

[応用]
なお、本発明では、CPUリソース初期情報(X個のCPU使用可能時間)とCPUリソース情報(X個の読出CPU使用可能時間)との差異(変化)を記憶装置2の上述の記憶部20、21以外の記憶領域に記録することにより、CPUリソースの管理と独立して稼働状態を採取することが可能となる。
[application]
In the present invention, the difference (change) between the CPU resource initial information (X CPU usable time) and the CPU resource information (X read CPU usable time) is stored in the storage unit 20 described above of the storage device 2. By recording in a storage area other than 21, it is possible to collect the operating state independently of the CPU resource management.

また、本発明では、プロセッサ障害発生時の予備プロセッサへの切り替えやプロセッサの増設時等に、対象となるプロセッサのみへCPUリソース情報を設定したり、事前に準備したりすることにより、システム運用中の構成変更等にも容易に対応することが可能である。   In the present invention, when switching to a spare processor in the event of a processor failure or when adding a processor, the CPU resource information is set only for the target processor or the system is in operation by preparing in advance. It is possible to easily cope with a change in the configuration.

また、本発明では、管理時間をプロセス群単位やシステムで一つの値として定義したり、任意のプロセッサの集まりをプロセッサグループとして定義しプロセッサグループ単位に定義したりする等、管理時間を柔軟に定義することが可能となる。   In the present invention, the management time can be defined flexibly by defining the management time as a single value in the process group unit or system, or by defining a set of arbitrary processors as a processor group and defining in a processor group unit. It becomes possible to do.

また、本発明では、CPUリソース初期情報、CPUリソース情報、及び、管理時間の設定値をソフトウェアで設定可能にすることにより、動的なリソース管理を行うことが可能となる。   In the present invention, it is possible to perform dynamic resource management by making it possible to set CPU resource initial information, CPU resource information, and management time setting values by software.

本発明によれば、アウトソーシングや複数のシステム統合を行うケース等において、システム業務の安定稼働を行うといった用途に適用できる。   INDUSTRIAL APPLICABILITY According to the present invention, it can be applied to uses such as stable operation of system work in cases such as outsourcing and integration of multiple systems.

図1は本発明のCPUリソース管理方式の構成を示すブロック図である。FIG. 1 is a block diagram showing the configuration of the CPU resource management system of the present invention. 図2は本発明のCPUリソース管理方式の動作を示すフローチャートである。FIG. 2 is a flowchart showing the operation of the CPU resource management system of the present invention. 図3Aは本発明のCPUリソース管理方式の動作を説明するための図である。FIG. 3A is a diagram for explaining the operation of the CPU resource management system of the present invention. 図3Bは本発明のCPUリソース管理方式の動作を説明するための図である。FIG. 3B is a diagram for explaining the operation of the CPU resource management system of the present invention. 図3Cは本発明のCPUリソース管理方式の動作を説明するための図である。FIG. 3C is a diagram for explaining the operation of the CPU resource management system of the present invention. 図3Dは本発明のCPUリソース管理方式の動作を説明するための図である。FIG. 3D is a diagram for explaining the operation of the CPU resource management system of the present invention. 図3Eは本発明のCPUリソース管理方式の動作を説明するための図である。FIG. 3E is a diagram for explaining the operation of the CPU resource management system of the present invention. 図4Aは従来のCPUリソース管理方式の問題点を説明するための図である。FIG. 4A is a diagram for explaining a problem of the conventional CPU resource management method. 図4Bは本発明のCPUリソース管理方式の効果を説明するための図である。FIG. 4B is a diagram for explaining the effect of the CPU resource management system of the present invention.

符号の説明Explanation of symbols

1 プロセッサ、
2 記憶装置、
10 制御部、
11 管理部、
20 プロセス情報記憶部、
21 プロセッサ制御情報記憶部、
210 CPUリソース初期情報記憶部、
211 CPUリソース情報記憶部、
212 管理時間記憶部、
1 processor,
2 storage devices,
10 control unit,
11 Management Department,
20 process information storage unit,
21 processor control information storage unit,
210 CPU resource initial information storage unit,
211 CPU resource information storage unit,
212 management time storage unit,

Claims (7)

CPU(Central Processing Unit)で動作するプロセッサと、
記憶装置と
を具備し、
前記記憶装置は、
1番目からX番目(Xは2以上の整数)までのX個のプロセス群が格納されたプロセス情報記憶部と、
前記X個のプロセス群のそれぞれに割り当てられたX個のCPU使用可能時間が格納されたCPUリソース初期情報記憶部と、
前記X個のCPU使用可能時間の合計値である管理時間が格納された管理時間記憶部と
を具備し、
前記プロセッサは、
前記CPUリソース初期情報記憶部から前記X個のCPU使用可能時間をX個の読出CPU使用可能時間として読み出し、前記管理時間記憶部から前記管理時間を読出管理時間として読み出し、前記読出管理時間から実時間を減算する第1処理を行い、
第i読出CPU使用可能時間{iは1≦i(X−1)を満たす整数}が0よりも大きい値を表すとき、第iプロセス群のうちの1つのプロセスを実行し、その実行時間を前記第i読出CPU使用可能時間から減算する第2処理を行い、
前記第i読出CPU使用可能時間が0を表すとき、第(i+1)プロセス群に対して前記第2処理を行い、
前記読出管理時間が0を表すとき、前記X個のプロセス群のうちの、未だ実行されていない未実行プロセスに対して、前記第1処理及び前記第2処理を行う
CPUリソース管理方式。
A processor that operates on a CPU (Central Processing Unit);
A storage device,
The storage device
A process information storage unit storing X process groups from the first to the Xth (X is an integer of 2 or more);
CPU resource initial information storage unit storing X CPU usable time allocated to each of the X process groups;
A management time storage unit storing a management time that is a total value of the X CPU usable times,
The processor is
The X CPU usable time is read from the CPU resource initial information storage unit as X read CPU usable time, the management time is read from the management time storage unit as a read management time, and the actual time is read from the read management time. Perform the first process to subtract time,
When the i-th read CPU usable time {i is an integer satisfying 1 ≦ i (X−1)} represents a value larger than 0, one process of the i-th process group is executed, and the execution time is set as the execution time. Performing a second process of subtracting from the i-th read CPU usable time,
When the i-th read CPU usable time represents 0, the second process is performed on the (i + 1) -th process group,
A CPU resource management system that performs the first process and the second process on an unexecuted process that has not yet been executed among the X process groups when the read management time represents 0.
前記記憶装置は、
CPUリソース情報記憶部
を更に具備し、
前記プロセッサは、前記第1処理において、前記CPUリソース初期情報記憶部から前記X個のCPU使用可能時間をX個の読出CPU使用可能時間として読み出し、前記CPUリソース情報記憶部に格納する
請求項1に記載のCPUリソース管理方式。
The storage device
A CPU resource information storage unit;
The processor reads the X CPU usable time from the CPU resource initial information storage unit as X read CPU usable time in the first process, and stores it in the CPU resource information storage unit. CPU resource management method described in 1.
前記プロセッサは、
管理部
を更に具備し、
前記プロセッサは、前記第1処理において、前記管理時間記憶部から前記管理時間を読出管理時間として読み出し、前記管理部に前記読出管理時間を設定し、
前記管理部は、前記実時間をカウントし、前記読出管理時間から実時間を減算する
請求項1又は2に記載のCPUリソース管理方式。
The processor is
A management unit,
In the first process, the processor reads the management time from the management time storage unit as a read management time, sets the read management time in the management unit,
The CPU resource management system according to claim 1, wherein the management unit counts the real time and subtracts the real time from the read management time.
前記プロセッサは、
前記第2処理において、前記第i読出CPU使用可能時間が0よりも大きい値を表すとき、前記第iプロセス群のうちの第1プロセスを実行し、その実行時間を前記第i読出CPU使用可能時間から減算し、
前記第iプロセス群の前記第1プロセスの実行後に、前記第i読出CPU使用可能時間が0を表すとき、前記第iプロセス群のうちの第2プロセスの実行を保留し、前記第(i+1)プロセス群に対して前記第2処理を実行し、
前記読出管理時間が0を表すとき、前記第iプロセス群の前記第2プロセスを含む前記未実行プロセスに対して、前記第1処理及び前記第2処理を行う
請求項1〜3のいずれかに記載のCPUリソース管理方式。
The processor is
In the second process, when the i-th read CPU usable time represents a value larger than 0, the first process of the i-th process group is executed, and the execution time can be used for the i-th read CPU. Subtract from time,
After the execution of the first process of the i-th process group, when the i-th read CPU usable time represents 0, the execution of the second process of the i-th process group is suspended, and the (i + 1) -th process is suspended. Performing the second process on the process group;
The said 1st process and said 2nd process are performed with respect to the said unexecuted process including the said 2nd process of the said i-th process group when the said read management time represents 0. The described CPU resource management method.
前記プロセッサは、
前記第2処理において、前記第i読出CPU使用可能時間が0よりも大きい値を表すとき、前記第iプロセス群のうちの第1プロセスを実行し、その実行時間を前記第i読出CPU使用可能時間から減算し、
前記第2処理において、前記第iプロセス群の前記第1プロセスの実行後に、前記第i読出CPU使用可能時間が0よりも大きい値を表すとき、前記第iプロセス群のうちの第2プロセスを実行し、その実行時間を前記第i読出CPU使用可能時間から減算し、
前記第iプロセス群の前記第2プロセスの実行中に、前記第i読出CPU使用可能時間が0を表すとき、前記第iプロセス群の前記第2プロセスの実行を保留し、前記第(i+1)プロセス群に対して前記第2処理を実行し、
前記読出管理時間が0を表すとき、前記第iプロセス群の前記第2プロセスを含む前記未実行プロセスに対して、前記第1処理及び前記第2処理を行う
請求項1〜3のいずれかに記載のCPUリソース管理方式。
The processor is
In the second process, when the i-th read CPU usable time represents a value larger than 0, the first process of the i-th process group is executed, and the execution time can be used for the i-th read CPU. Subtract from time,
In the second process, when the i-th read CPU usable time represents a value greater than 0 after the execution of the first process of the i-th process group, the second process of the i-th process group is And subtracting the execution time from the i th read CPU usable time,
During the execution of the second process of the i-th process group, when the i-th read CPU usable time represents 0, the execution of the second process of the i-th process group is suspended, and the (i + 1) th Performing the second process on the process group;
The said 1st process and said 2nd process are performed with respect to the said unexecuted process including the said 2nd process of the said i-th process group when the said read management time represents 0. The described CPU resource management method.
CPU(Central Processing Unit)で動作するプロセッサを用いてCPUリソースを管理する方法であって、
1番目からX番目(Xは2以上の整数)までのX個のプロセス群を実行するとき、
X個のプロセス群のそれぞれに割り当てられたX個のCPU使用可能時間をCPUリソース初期情報記憶部からX個の読出CPU使用可能時間として読み出し、前記X個のCPU使用可能時間の合計値である管理時間を管理時間記憶部から読出管理時間として読み出し、前記読出管理時間から実時間を減算する第1処理を行うステップと、
第i読出CPU使用可能時間{iは1≦i(X−1)を満たす整数}が0よりも大きい値を表すとき、第iプロセス群のうちの1つのプロセスを実行し、その実行時間を前記第i読出CPU使用可能時間から減算する第2処理を行うステップと、
前記第i読出CPU使用可能時間が0を表すとき、第(i+1)プロセス群に対して前記第2処理を行うステップと、
前記読出管理時間が0を表すとき、前記X個のプロセス群のうちの、未だ実行されていない未実行プロセスに対して、前記第1処理及び前記第2処理を行うステップと
を具備するCPUリソース管理方法。
A method for managing CPU resources using a processor that operates on a CPU (Central Processing Unit),
When executing X process groups from the 1st to the Xth (X is an integer of 2 or more),
X CPU usable time allocated to each of the X process groups is read as X read CPU usable time from the CPU resource initial information storage unit, and is a total value of the X CPU usable times. Performing a first process of reading the management time from the management time storage unit as a read management time, and subtracting the real time from the read management time;
When the i-th read CPU usable time {i is an integer satisfying 1 ≦ i (X−1)} represents a value larger than 0, one process of the i-th process group is executed, and the execution time is set as the execution time. Performing a second process of subtracting from the i-th read CPU usable time;
Performing the second process on the (i + 1) -th process group when the i-th read CPU usable time represents 0;
A CPU resource comprising: a step of performing the first process and the second process on an unexecuted process that has not yet been executed in the X process group when the read management time represents 0 Management method.
CPU(Central Processing Unit)で動作するコンピュータにインストールされたコンピュータプログラムであって、
1番目からX番目(Xは2以上の整数)までのX個のプロセス群を実行するとき、
X個のプロセス群のそれぞれに割り当てられたX個のCPU使用可能時間をCPUリソース初期情報記憶部からX個の読出CPU使用可能時間として読み出し、前記X個のCPU使用可能時間の合計値である管理時間を管理時間記憶部から読出管理時間として読み出し、前記読出管理時間から実時間を減算する第1処理を行うステップと、
第i読出CPU使用可能時間{iは1≦i(X−1)を満たす整数}が0よりも大きい値を表すとき、第iプロセス群のうちの1つのプロセスを実行し、その実行時間を前記第i読出CPU使用可能時間から減算する第2処理を行うステップと、
前記第i読出CPU使用可能時間が0を表すとき、第(i+1)プロセス群に対して前記第2処理を行うステップと、
前記読出管理時間が0を表すとき、前記X個のプロセス群のうちの、未だ実行されていない未実行プロセスに対して、前記第1処理及び前記第2処理を行うステップと
を前記コンピュータに実行させるコンピュータプログラム。
A computer program installed on a computer that operates on a CPU (Central Processing Unit),
When executing X process groups from the 1st to the Xth (X is an integer of 2 or more),
X CPU usable time allocated to each of the X process groups is read as X read CPU usable time from the CPU resource initial information storage unit, and is a total value of the X CPU usable times. Performing a first process of reading the management time from the management time storage unit as a read management time, and subtracting the real time from the read management time;
When the i-th read CPU usable time {i is an integer satisfying 1 ≦ i (X−1)} represents a value larger than 0, one process of the i-th process group is executed, and the execution time is set as the execution time. Performing a second process of subtracting from the i-th read CPU usable time;
Performing the second process on the (i + 1) -th process group when the i-th read CPU usable time represents 0;
When the read management time represents 0, the computer executes the step of performing the first process and the second process on an unexecuted process that has not yet been executed in the X process group. Computer program to let you.
JP2007150332A 2007-06-06 2007-06-06 CPU resource management method Active JP4650697B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007150332A JP4650697B2 (en) 2007-06-06 2007-06-06 CPU resource management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007150332A JP4650697B2 (en) 2007-06-06 2007-06-06 CPU resource management method

Publications (2)

Publication Number Publication Date
JP2008305065A true JP2008305065A (en) 2008-12-18
JP4650697B2 JP4650697B2 (en) 2011-03-16

Family

ID=40233761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007150332A Active JP4650697B2 (en) 2007-06-06 2007-06-06 CPU resource management method

Country Status (1)

Country Link
JP (1) JP4650697B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0357026A (en) * 1989-07-26 1991-03-12 Hitachi Ltd Task controlling system
JPH0869386A (en) * 1994-08-26 1996-03-12 Fujitsu Ltd Process scheduling system
JP2000172514A (en) * 1998-12-07 2000-06-23 Nec Ic Microcomput Syst Ltd Task management device and task scheduling method
JP2003067201A (en) * 2001-08-30 2003-03-07 Hitachi Ltd Controller and operating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0357026A (en) * 1989-07-26 1991-03-12 Hitachi Ltd Task controlling system
JPH0869386A (en) * 1994-08-26 1996-03-12 Fujitsu Ltd Process scheduling system
JP2000172514A (en) * 1998-12-07 2000-06-23 Nec Ic Microcomput Syst Ltd Task management device and task scheduling method
JP2003067201A (en) * 2001-08-30 2003-03-07 Hitachi Ltd Controller and operating system

Also Published As

Publication number Publication date
JP4650697B2 (en) 2011-03-16

Similar Documents

Publication Publication Date Title
Herman et al. RTOS support for multicore mixed-criticality systems
JP6294586B2 (en) Execution management system combining instruction threads and management method
US8316376B2 (en) Optimizing workflow execution against a heterogeneous grid computing topology
US10423451B2 (en) Opportunistically scheduling and adjusting time slices
US8914805B2 (en) Rescheduling workload in a hybrid computing environment
US8739171B2 (en) High-throughput-computing in a hybrid computing environment
KR101651871B1 (en) Job Allocation Method on Multi-core System and Apparatus thereof
US8875146B2 (en) Systems and methods for bounding processing times on multiple processing units
JP4185103B2 (en) System and method for scheduling executable programs
US20120137295A1 (en) Method for displaying cpu utilization in a multi-processing system
KR101553650B1 (en) Apparatus and method for load balancing in multi-core system
JP2008242510A (en) System and method of allocating resource to job, and program
US20130097382A1 (en) Multi-core processor system, computer product, and control method
US8539495B2 (en) Recording medium storing therein a dynamic job scheduling program, job scheduling apparatus, and job scheduling method
KR20070090649A (en) Apparatus and method for providing cooperative scheduling on multi-core system
JP2017041191A (en) Resource management apparatus, resource management program, and resource management method
Xu et al. Prophet: Scheduling executors with time-varying resource demands on data-parallel computation frameworks
JP2007316710A (en) Multiprocessor system, workload management method
CN112416596A (en) Node scheduling method, device and equipment
JP4650697B2 (en) CPU resource management method
Upadhye et al. Cloud resource allocation as non-preemptive approach
KR20180082560A (en) Method and apparatus for time-based scheduling of tasks
Zheng et al. Energy-efficient statistical live virtual machine placement for big data information systems in cloud computing environments
Badgujar et al. Cloud resource allocation as preemptive scheduling approach
JP3885748B2 (en) Group unit gang scheduling method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080613

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100126

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100311

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100311

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100715

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101012

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20101025

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4650697

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350