JPH07234847A - Scheduling method for job - Google Patents

Scheduling method for job

Info

Publication number
JPH07234847A
JPH07234847A JP2771194A JP2771194A JPH07234847A JP H07234847 A JPH07234847 A JP H07234847A JP 2771194 A JP2771194 A JP 2771194A JP 2771194 A JP2771194 A JP 2771194A JP H07234847 A JPH07234847 A JP H07234847A
Authority
JP
Japan
Prior art keywords
processor
job
usage rate
processors
remaining capacity
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
Application number
JP2771194A
Other languages
Japanese (ja)
Inventor
Toshiharu Tanaka
俊治 田中
Soichi Oyama
壮一 尾山
Hirofumi Nagasuga
弘文 長須賀
Toshiyuki Kinoshita
俊之 木下
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2771194A priority Critical patent/JPH07234847A/en
Publication of JPH07234847A publication Critical patent/JPH07234847A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To select proper allocation destinations for jobs when respective processors are different in processing capability by allocating the jobs to the respective processors on the basis of their calculated remaining capability. CONSTITUTION:A job 1 which is waiting to be executed, is registered in a job management table 220. When a processor use rate as the reference for alteration of algorithm for job scheduling is 40% at this time, both the use rates of processors 100-1 and 100-2 exceed the reference use rate. Consequently, a job scheduler 200a selects a processor having higher remaining capability, i.e., processor 100-2 as a processor to which the job 1 is allocated, and then allocates the job. When the processor use rate as the reference for the alteration of the algorithm is 60%, on the other hand, the job scheduler 200a selects the processor which has a low processor use rate, i.e., the processor 100-1 and allocates the job 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、計算機システムにおけ
るジョブのスケジューリング方法に係り、特に、複数の
プロセッサから構成される計算機システムに好適なジョ
ブのスケジューリング方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a job scheduling method in a computer system, and more particularly to a job scheduling method suitable for a computer system including a plurality of processors.

【0002】[0002]

【従来の技術】マルチプロセッサシステム、あるいは並
列計算機システム等のように、複数のプロセッサから構
成される計算機システムでは、処理の並列度を高めるこ
とにより計算機システムをより有効に利用することが重
要である。このため、例えば、特開平1−283663
号公報には、計算機システムを構成する各プロセッサの
使用率(前記公報では、負荷率と呼んでいる)を一定の
時間間隔で算出し、この算出した使用率に応じて各プロ
セッサにジョブを割り付けことにより、プロセッサ負荷
の均等化を図る方式が開示されている。
2. Description of the Related Art In a computer system including a plurality of processors such as a multiprocessor system or a parallel computer system, it is important to use the computer system more effectively by increasing the parallelism of processing. . Therefore, for example, JP-A-1-283663
In the gazette, the usage rate of each processor constituting the computer system (called load factor in the above gazette) is calculated at fixed time intervals, and jobs are assigned to each processor according to the calculated usage rate. Accordingly, a method for equalizing the processor load is disclosed.

【0003】例えば、使用率の低い第1のプロセッサと
使用率の高い第2のプロセッサがあり、プロセッサ使用
の割合が多く入出力動作の割合が少ない第1のジョブと
プロセッサ使用の割合が少なく入出力動作の割合が多い
第2のジョブが実行待ちになっているとする。この場
合、前記公報に記載の方式によるジョブスケジューラで
は、使用率の低い第1のプロセッサにプロセッサを使用
する割合が多い第1のジョブを割り付ける。また、使用
率の高い第2のプロセッサにプロセッサ使用の割合が少
ない第2のジョブを割り付ける。これにより、第1のプ
ロセッサにかかる負荷と第2のプロセッサにかかる負荷
を均等化している。
For example, there is a first processor having a low usage rate and a second processor having a high usage rate, and a first job having a high processor usage rate and a low I / O operation rate and a low processor usage rate are input. It is assumed that the second job having a large proportion of output operations is waiting for execution. In this case, in the job scheduler according to the method described in the above publication, the first job having a high usage rate is assigned to the first processor having a low usage rate. Further, the second job having a low processor usage rate is assigned to the second processor having a high usage rate. This equalizes the load on the first processor and the load on the second processor.

【0004】[0004]

【発明が解決しようとする課題】上記従来技術では、計
算機システムを構成する複数のプロセッサの処理能力が
均一である場合には、負荷の分散を適切に行なうことが
できて有効である。しかしながら、計算機システムを構
成するプロセッサの処理能力が均一でないとき、即ち、
各プロセッサの処理能力に差がある場合には、以下に述
べるような課題がある。
The above-mentioned conventional technique is effective because the load can be properly distributed when the processing capacity of the plurality of processors constituting the computer system is uniform. However, when the processing capabilities of the processors that make up the computer system are not uniform, that is,
If the processing capacities of the processors are different, there are problems as described below.

【0005】まず第1の課題として、ジョブをスケジュ
ーリングするプロセッサの選択基準に関するものがあ
る。例えば、第1のプロセッサと第2のプロセッサの処
理能力の比が1:10であり、第1のプロセッサの使用
率が50%、第2のプロセッサの使用率が51%である
場合を考える。この場合、上述した従来技術によれば、
ジョブスケジューラは、新たに発生したジョブの割付け
先として、使用率の低い第1のプロセッサを選択し、第
1のプロセッサにこの新たなジョブを割り付ける。しか
しながら、この場合、ジョブの内容によっては、処理能
力の高いプロセッサ2にジョブを割り付けた方が、2つ
のプロセッサの使用率の差が広がらないであろうことも
十分にあり得る。
The first problem is related to selection criteria of a processor for scheduling a job. For example, consider a case where the ratio of the processing capacities of the first processor and the second processor is 1:10, the usage rate of the first processor is 50%, and the usage rate of the second processor is 51%. In this case, according to the above-mentioned conventional technique,
The job scheduler selects the first processor having a low usage rate as the allocation destination of the newly generated job, and allocates this new job to the first processor. However, in this case, depending on the contents of the job, it is quite possible that allocating the job to the processor 2 having a high processing capacity will not widen the difference in usage rate between the two processors.

【0006】また、第2の課題として、ジョブのスケジ
ューリングアルゴリズムの選択に関するものがある。上
述した従来技術によるジョブスケジューラは、使用率の
低いプロセッサにジョブを割り当てるという1つのスケ
ジューリングアルゴリズムのみに基づいてジョブをスケ
ジュールしている。このため、計算機システムを構成す
るプロセッサの処理能力が均一でないときには、上述の
ような問題が発生し、場合によっては適切なジョブの割
付けができないことがあった。
A second problem is selection of a job scheduling algorithm. The above-described prior art job scheduler schedules jobs based on only one scheduling algorithm of allocating jobs to processors with low utilization. For this reason, when the processing capacity of the processors configuring the computer system is not uniform, the above-mentioned problem occurs, and in some cases, appropriate job allocation may not be possible.

【0007】本発明の目的は、各プロセッサの処理能力
が異なる場合に、適切なジョブの割当て先を選択するこ
とのできるジョブのスケジューリング方法を提供するこ
とにある。
An object of the present invention is to provide a job scheduling method capable of selecting an appropriate job allocation destination when the processing capacity of each processor is different.

【0008】また、本発明の他の目的は、計算機システ
ムを構成する各プロセッサの状況に応じてジョブ割付け
のためのアルゴリズムを変更することにより、より適切
なジョブの割付けが可能なスケジューリング方法を提供
することにある。
Another object of the present invention is to provide a scheduling method capable of more appropriate job allocation by changing an algorithm for job allocation according to the status of each processor constituting a computer system. To do.

【0009】[0009]

【課題を解決するための手段】本願発明の発明者らは、
上述した課題が、計算機システムを構成するプロセッサ
の処理能力が均一でないことに起因する点に着目し、各
プロセッサの処理能力を考慮してジョブをスケジューリ
ングすればよいと考えた。
Means for Solving the Problems The inventors of the present invention have
Focusing on the point that the above-mentioned problems are caused by uneven processing capacities of the processors constituting the computer system, it was thought that the job should be scheduled in consideration of the processing capacities of the respective processors.

【0010】すなわち、本発明に係るジョブのスケジュ
ーリング方法は、上記第1の目的を達成するために、計
算機システムを構成する各プロセッサの処理能力と使用
率とから各プロセッサの残存能力を算出し、算出した残
存能力にもとづいて、各プロセッサにジョブを割り付け
ることを特徴としている。好ましい態様において、各プ
ロセッサの残存能力は、各プロセッサにおいて特定の命
令列の実行に要する時間を測定した結果に基づいて処理
能力を算出し、各プロセッサの処理能力と未使用率(1
から使用率を減算した値)との積から算出される。
That is, in order to achieve the first object, the job scheduling method according to the present invention calculates the remaining capacity of each processor from the processing capacity and usage rate of each processor constituting the computer system, The feature is that the job is assigned to each processor based on the calculated remaining capacity. In a preferred aspect, the remaining capacity of each processor is calculated based on the result of measuring the time required for execution of a specific instruction sequence in each processor, and the remaining processing capacity and unused rate (1
The value obtained by subtracting the usage rate from) is calculated.

【0011】また、上記第2の目的を達成するために、
本発明に係るジョブのスケジューリング方法は、計算機
システムを構成する各プロセッサの処理能力と使用率と
から各プロセッサの残存能力を算出し、算出の結果、予
め定められた使用率以下のプロセッサが存在するか否か
を判定する。この判定が肯定的であるときには、各プロ
セッサの使用率にもとづいてジョブを割り付けるプロセ
ッサを決定する。また、前記判定が否定的であるときに
は、前記各プロセッサの残存能力にもとづいてジョブを
割り付けるプロセッサを決定する。
In order to achieve the above second object,
The job scheduling method according to the present invention calculates the remaining capacity of each processor from the processing capacity and the usage rate of each processor constituting the computer system, and as a result of the calculation, there is a processor with a predetermined usage rate or less. Or not. When this determination is positive, the processor to which the job is assigned is determined based on the usage rate of each processor. When the determination is negative, the processor to which the job is assigned is determined based on the remaining capacity of each processor.

【0012】[0012]

【作用】新たにジョブを割り付けるプロセッサを、各プ
ロセッサの処理能力と使用率とを用いることにより算出
した残存能力に基づいて選択することにより、各プロセ
ッサにおける処理の余力を有効に用いてジョブのスケジ
ューリングを行なうことができる。
By selecting a processor to which a job is newly assigned based on the remaining capacity calculated by using the processing capacity and the usage rate of each processor, the remaining processing capacity of each processor is effectively used to schedule a job. Can be done.

【0013】また、ジョブを割り付けるためのアルゴリ
ズムを、各プロセッサでの処理の状況、具体的には、使
用率に応じて変更することにより、その時々におけるシ
ステムの状況に応じたジョブのスケジューリングを実現
することが可能となる。
Further, by changing the algorithm for allocating jobs according to the processing status of each processor, specifically, the usage rate, job scheduling can be realized according to the system status at that time. It becomes possible to do.

【0014】[0014]

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

【0015】図1は、第1の実施例の計算機システムの
概略構成図である。図1において、100−1および1
00−2はプロセッサ、200aはジョブスケジュー
ラ、300は、プロセッサ100−1、100−2及び
ジョブスケジューラ200aを接続するネットワークで
ある。ジョブスケジューラ200aは、プロセッサ管理
表210a、実行待ちのジョブを管理するジョブ管理表
220、ジョブ割り付けプログラム230aを含んで構
成される。また、プロセッサ管理表210aの各エント
リは、計算機システムを構成するプロセッサ100−1
および100−2に対応しており、CPU能力、CPU
使用率、残存能力の各フィールドからなる。ジョブスケ
ジューラ200aは、プロセッサ100−1、100−
2と同様にネットワーク300に接続されたプロセッサ
によって実現される。なお、本実施例では、ジョブスケ
ジューラ200aは、ジョブを実行するプロセッサ10
0−1、100−2とは、独立して設けられているが、
これらプロセッサのいずれかに、ジョブスケジューラと
しての機能を持たせるように構成することもできる。ま
た、ジョブを実行するプロセッサは、2台に限らず、2
台以上であれば、何台存在していても構わない。
FIG. 1 is a schematic configuration diagram of a computer system according to the first embodiment. In FIG. 1, 100-1 and 1
00-2 is a processor, 200a is a job scheduler, and 300 is a network that connects the processors 100-1, 100-2 and the job scheduler 200a. The job scheduler 200a includes a processor management table 210a, a job management table 220 that manages jobs waiting to be executed, and a job allocation program 230a. Further, each entry of the processor management table 210a corresponds to the processor 100-1 which constitutes the computer system.
And 100-2, CPU power, CPU
It consists of usage rate and remaining capacity fields. The job scheduler 200a includes processors 100-1 and 100-
It is realized by a processor connected to the network 300 in the same manner as 2. In the present embodiment, the job scheduler 200a is the processor 10 that executes a job.
0-1 and 100-2 are provided independently,
It is also possible to configure any of these processors to have a function as a job scheduler. Further, the number of processors that execute jobs is not limited to two, but two
As long as there are more than one, it does not matter how many exist.

【0016】図2は、ジョブスケジューラ200aのジ
ョブ割り付けプログラム230aに従ったジョブスケジ
ューリング処理の流れを示すフローチャートである。
FIG. 2 is a flowchart showing the flow of job scheduling processing according to the job allocation program 230a of the job scheduler 200a.

【0017】まず、ジョブ割り付けプログラム230a
は、プロセッサ100−1および100−2に対し、予
め定められた特定の命令列の実行を要求(ステップ20
00)する。プロセッサ100−1および100−2で
は、ジョブスケジューラ200aからの要求に応じて前
記特定の命令列を実行する(ステップ2010)、各プ
ロセッサ100−1、100−2は、命令列の実行が終
了すると、その実行に要した時間をジョブスケジューラ
200aに通知する(ステップ2020)。ジョブスケ
ジューラ200aでは、ジョブ割り付けプログラム23
0aに従い、通知された命令列の実行時間の逆数からプ
ロセッサ100−1および100−2の処理能力を算出
する。そして、各プロセッサについて得られた処理能力
を、プロセッサ管理表210aの対応するCPU能力の
フィールドに記入する(ステップ2030)。例えば、
予め定めた特定の命令列が100万命令を逐次実行する
ものであり、プロセッサ100−1および100−2が
各々1秒、0.1秒でその命令列を実行したとすると、
プロセッサ100−1および100−2の処理能力は、
各々、1MIPSおよび10MIPSとして算出され
る。
First, the job allocation program 230a
Requests the processors 100-1 and 100-2 to execute a predetermined specific instruction sequence (step 20).
00). The processors 100-1 and 100-2 execute the specific instruction sequence in response to the request from the job scheduler 200a (step 2010), and the processors 100-1 and 100-2 finish executing the instruction sequence. The job scheduler 200a is notified of the time required for the execution (step 2020). In the job scheduler 200a, the job allocation program 23
0a, the processing capabilities of the processors 100-1 and 100-2 are calculated from the reciprocal of the notified execution time of the instruction sequence. Then, the processing capability obtained for each processor is entered in the corresponding CPU capability field of the processor management table 210a (step 2030). For example,
If a predetermined specific instruction sequence sequentially executes 1 million instructions, and the processors 100-1 and 100-2 execute the instruction sequence in 1 second and 0.1 second, respectively,
The processing capabilities of the processors 100-1 and 100-2 are
Calculated as 1 MIPS and 10 MIPS, respectively.

【0018】一方、各プロセサ100−1および100
−2は、自己のプロセッサの使用率を一定時間間隔で算
出し、ジョブスケジューラ200aに通知する(ステッ
プ2040)。プロセッサ100−1、100−2から
使用率についての通知を受けたジョブスケジューラ20
0aは、その使用率をプロセッサ管理表210aの対応
するCPU使用率のフィールドに記入する(ステップ2
050)。また、ジョブスケジューラ200aは、プロ
セッサ管理表210aに記録した各プロセッサの使用率
を用い、各プロセッサの未使用率(1から使用率を減算
した値)を求める。そして、この未使用率とプロセッサ
管理表210aに記録されている処理能力との積を求め
ることにより各プロセッサの残存能力を算出する。算出
した残存能力は、プロセッサ管理表210aの対応する
残存能力のフィールドに記入される(ステップ206
0)。
On the other hand, each processor 100-1 and 100
-2 calculates the usage rate of its own processor at regular time intervals and notifies it to the job scheduler 200a (step 2040). The job scheduler 20 which receives the notification about the usage rate from the processors 100-1 and 100-2
0a writes the usage rate in the corresponding CPU usage field of the processor management table 210a (step 2).
050). Further, the job scheduler 200a obtains an unused rate (a value obtained by subtracting the usage rate from 1) of each processor by using the usage rate of each processor recorded in the processor management table 210a. Then, the remaining capacity of each processor is calculated by obtaining the product of this unused rate and the processing capacity recorded in the processor management table 210a. The calculated remaining capacity is entered in the corresponding remaining capacity field of the processor management table 210a (step 206).
0).

【0019】ジョブスケジューラ200aは、ジョブ管
理表220に実行可能なジョブが登録されると、プロセ
ッサ管理表210aを参照して、予め定めておいた使用
率(例えば、40%)以下のプロセッサがあるか否かを
判定する(ステップ2070)。予め定めた使用率以下
のプロセッサがあれば、使用率の低いプロセッサを選択
して、そのプロセッサにジョブを割り付ける(ステップ
2080)。一方、予め定めた使用率以下のプロセッサ
がなければ、残存能力の多いプロセッサを選択し、その
プロセッサにジョブを割り付ける(ステップ209
0)。その後、ジョブは、割り付けられたプロセッサに
おいて実行される(ステップ2100)。以上のような
ジョブスケジューリング方法により、図1に例示する場
合のジョブのスケジューリングについて具体的に説明す
る。図1では、プロセッサ管理表210aから分かるよ
うに、プロセッサ100−1は、1MIPSの処理能力
を有しており、その使用率が50%であり、プロセッサ
100−2は、10MIPSの処理能力を有し、その使
用率が55%でがある場合を示している。このとき、プ
ロセッサ100−1の残存能力は0.5MIPSであ
り、プロセッサ100−2の残存能力は4.5MIPS
である。
When an executable job is registered in the job management table 220, the job scheduler 200a refers to the processor management table 210a and finds a processor having a predetermined usage rate (for example, 40%) or less. It is determined whether or not (step 2070). If there is a processor whose usage rate is less than or equal to a predetermined usage rate, a processor with a low usage rate is selected and a job is assigned to that processor (step 2080). On the other hand, if there is no processor whose usage rate is less than or equal to the predetermined usage rate, a processor with a large remaining capacity is selected and a job is assigned to that processor (step 209).
0). The job is then executed on the assigned processor (step 2100). Job scheduling in the case illustrated in FIG. 1 will be specifically described by the above job scheduling method. In FIG. 1, as can be seen from the processor management table 210a, the processor 100-1 has a processing capacity of 1 MIPS and its usage rate is 50%, and the processor 100-2 has a processing capacity of 10 MIPS. However, the usage rate is 55%. At this time, the remaining capacity of the processor 100-1 is 0.5 MIPS and the remaining capacity of the processor 100-2 is 4.5 MIPS.
Is.

【0020】このような状態で、ジョブ管理表220
に、実行待ちのジョブとしてジョブ1が登録されたとす
る。ジョブスケジューリングのためのアルゴリズムの変
更の基準となるプロセッサ使用率が40%であるとする
と、プロセッサ100−1、100−2の使用率は、共
に基準となる使用率を超えていることになる。このた
め、ジョブスケジューラは、ジョブ1を割り付けるプロ
セッサとして残存能力の高いプロセッサ、即ち、プロセ
ッサ100−2を選択してジョブ1を割り付ける。
In this state, the job management table 220
It is assumed that job 1 is registered as a job waiting to be executed. Assuming that the processor usage rate, which is the standard for changing the algorithm for job scheduling, is 40%, the usage rates of the processors 100-1 and 100-2 both exceed the standard usage rate. Therefore, the job scheduler allocates job 1 by selecting a processor having a high remaining capacity as a processor to allocate job 1, that is, processor 100-2.

【0021】一方、アルゴリズムの変更の基準となるプ
ロセッサ使用率が60%である場合には、ジョブスケジ
ューラ200aは、プロセッサ使用率の低いプロセッ
サ、即ち、プロセッサ100−1を選択してジョブ1を
割り付ける。
On the other hand, when the processor usage rate, which is the basis for changing the algorithm, is 60%, the job scheduler 200a selects the processor with a low processor usage rate, that is, the processor 100-1 and assigns job 1 to it. .

【0022】なお、アルゴリズムの変更の基準となるプ
ロセッサ使用率は、標準値を設定しておいても良いし、
各計算機システムの管理者がコマンドにより変更できる
ようにしておいてもよい。
A standard value may be set for the processor usage rate, which is the basis for changing the algorithm.
The administrator of each computer system may be allowed to change the command.

【0023】本実施例によれば、ジョブスケジューラが
算出した残存能力を用いてジョブのスケジューリングを
行うことにより、各プロセッサの処理能力を考慮したジ
ョブのスケジューリング方法を提供できる。
According to the present embodiment, the job scheduling is performed by using the remaining capacity calculated by the job scheduler to provide the job scheduling method in consideration of the processing capacity of each processor.

【0024】また、各プロセッサの使用率等の状況に応
じてジョブのスケジューリングアルゴリズムを変更して
いるので、各プロセッサでの処理の実行状況に応じて、
適切にジョブのスケジューリングを行なうことができ、
計算機システムをより有効に利用することができる。
Further, since the job scheduling algorithm is changed according to the situation such as the usage rate of each processor, according to the execution situation of the processing in each processor,
You can schedule jobs appropriately,
The computer system can be used more effectively.

【0025】図3は、本発明における第2の実施例の計
算機システムの概略構成図である。
FIG. 3 is a schematic configuration diagram of a computer system according to the second embodiment of the present invention.

【0026】図3において、100−1、100−2は
プロセッサ、200bはジョブスケジューラ、300
は、プロセッサ100−1、100−2、及びジョブス
ケジューラ200bを接続するネットワークである。本
実施例では、各プロセッサ100−1および100−2
に、各々、状態表110−1および110−2を設け
る。また、ジョブスケジューラ200bは、第1の実施
例の場合と同様に、プロセッサ管理表210b、実行待
ちのジョブを管理するジョブ管理表220、ジョブ割り
付けプログラム230bを有する。プロセッサ管理表2
10bの各エントリは、計算機システムを構成するプロ
セッサ100−1および100−2に対応しており、C
PU未使用率、残存能力の各フィールドからなる。但
し、本実施例では、プロセッサ管理表210bに、各プ
ロセッサの処理能力を記録したCPUフィールドは設け
られていない。
In FIG. 3, 100-1 and 100-2 are processors, 200b is a job scheduler, and 300 is a job scheduler.
Is a network that connects the processors 100-1, 100-2 and the job scheduler 200b. In this embodiment, each processor 100-1 and 100-2
, State tables 110-1 and 110-2 are provided respectively. Further, the job scheduler 200b has a processor management table 210b, a job management table 220 for managing jobs waiting to be executed, and a job allocation program 230b, as in the case of the first embodiment. Processor management table 2
Each entry of 10b corresponds to the processors 100-1 and 100-2 which form the computer system, and C
It consists of fields of PU unused rate and remaining capacity. However, in this embodiment, the processor management table 210b is not provided with a CPU field recording the processing capability of each processor.

【0027】次に、本実施例におけるジョブ割り付けプ
ログラム230bに従ったジョブスケジューリング処理
の流れを図4のフローチャートに従い説明する。
Next, the flow of job scheduling processing according to the job allocation program 230b in this embodiment will be described with reference to the flowchart of FIG.

【0028】まず、各プロセッサ100−1および10
0−2は、特定の命令列を実行し(ステップ400
0)、その実行時間の逆数から得た処理能力を各自が有
する状態表110−1、110−2のCPU能力のフィ
ールドに記入しておく(ステップ4010)。さらに、
各プロセサ100−1および100−2は、自己のプロ
セッサの使用率を一定時間間隔で算出し、求めた使用率
を各自の状態表110−1、110−2のCPU使用率
のフィールドに記入する。また、算出した利用率から未
使用率(1から使用率を減算した値)をもとめ、未使用
率と状態表110−1、110−2に記録した処理能力
(CPU能力)との積から残存能力を算出し、状態表1
10−1、110−2の残存能力のフィールドに記入す
る(ステップ4020)。このとき、求めたプロセッサ
の使用率と残存能力をそれぞれジョブスケジューラ20
0bに通知する(ステップ4030)。ジョブスケジュ
ーラ200bは、通知を受けたプロセッサのCPU使用
率と残存能力を、プロセッサ管理表210bの対応する
エントリに記入する。
First, each processor 100-1 and 10
0-2 execute a specific instruction sequence (step 400
0), the processing capacity obtained from the reciprocal of the execution time is entered in the CPU capacity field of each of the status tables 110-1 and 110-2 (step 4010). further,
Each of the processors 100-1 and 100-2 calculates the usage rate of its own processor at regular time intervals, and writes the obtained usage rate in the CPU usage field of each of the status tables 110-1 and 110-2. . In addition, the unused rate (value obtained by subtracting the used rate from 1) is obtained from the calculated utilization rate, and the remaining rate is the product of the unused rate and the processing capacity (CPU capacity) recorded in the state tables 110-1 and 110-2. Calculate ability and state table 1
Fill in the remaining capacity fields 10-1 and 110-2 (step 4020). At this time, the obtained usage rate and remaining capacity of the processor are respectively calculated by the job scheduler 20.
0b is notified (step 4030). The job scheduler 200b writes the CPU usage rate and remaining capacity of the notified processor in the corresponding entry of the processor management table 210b.

【0029】ジョブ管理表220に実行可能なジョブが
登録されると、ジョブスケジューラ200bは、第1の
実施例の場合と同様に、プロセッサ管理表210bを参
照して、使用率が特定の使用率以下のプロセッサがある
か否かを判定する(ステップ4050)。そして、特定
の使用率以下のプロセッサが存在すれば、その中で使用
率の低いプロセッサを選択してジョブを割り付ける(ス
テップ4060)。一方、特定の使用率以下のプロセッ
サが存在しなければ、残存能力の多いプロセッサを選択
してジョブを割り付ける(ステップ4070)。その
後、ジョブは、割り付けられたプロセッサにおいて実行
される(ステップ4080)。
When an executable job is registered in the job management table 220, the job scheduler 200b refers to the processor management table 210b in the same manner as in the first embodiment, and the usage rate is the specified usage rate. It is determined whether the following processor is present (step 4050). If there is a processor with a specific usage rate or less, a processor with a low usage rate is selected and a job is assigned (step 4060). On the other hand, if there is no processor having a specific usage rate or less, the processor having a large remaining capacity is selected and the job is allocated (step 4070). The job is then executed on the assigned processor (step 4080).

【0030】以上のようにして、本実施例によれば、各
プロセッサにおいて算出した残存能力を用いてジョブの
スケジューリングを行うことにより、各プロセッサの処
理能力を考慮したジョブのスケジューリング方法を提供
できる。
As described above, according to the present embodiment, a job scheduling method can be provided in which the processing capacity of each processor is considered by scheduling the job using the remaining capacity calculated in each processor.

【0031】[0031]

【発明の効果】本発明によれば、計算機システムを構成
する複数のプロセッサの処理能力に差があるような場合
であっても、適切なジョブのスケジューリング方法を提
供することができる。
According to the present invention, it is possible to provide an appropriate job scheduling method even when there are differences in the processing capacities of a plurality of processors that form a computer system.

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

【図1】第1の実施例の計算機システムの概略構成図。FIG. 1 is a schematic configuration diagram of a computer system according to a first embodiment.

【図2】第1の実施例のジョブのスケジューリング処理
のフローチャート。
FIG. 2 is a flowchart of a job scheduling process according to the first embodiment.

【図3】第2の実施例の計算機システムの概略構成図。FIG. 3 is a schematic configuration diagram of a computer system according to a second embodiment.

【図4】第2の実施例のジョブのスケジューリング処理
のフローチャート。
FIG. 4 is a flowchart of job scheduling processing according to the second embodiment.

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

100−i:プロセッサ、110−i:状態表、20
0:ジョブスケジューラ、210:プロセッサ管理表、
220:ジョブ管理表、230:ジョブ割り付けプログ
ラム。
100-i: processor, 110-i: state table, 20
0: job scheduler, 210: processor management table,
220: job management table, 230: job allocation program.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 木下 俊之 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Toshiyuki Kinoshita 1099 Ozenji, Aso-ku, Kawasaki-shi, Kanagawa Ltd. System Development Laboratory, Hitachi, Ltd.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】複数のプロセッサから構成される計算機シ
ステムにおけるジョブのスケジューリング方法であっ
て、 前記各プロセッサの処理能力と使用率とに基づいて前記
プロセッサの各々の残存能力を算出し、 該算出した前記各プロセッサの残存能力に基づいて、各
プロセッサにジョブを割り付けることを特徴とするジョ
ブのスケジューリング方法。
1. A method for scheduling a job in a computer system comprising a plurality of processors, wherein the remaining capacity of each processor is calculated based on the processing capacity and the usage rate of each processor, and the calculation is performed. A job scheduling method, wherein a job is assigned to each processor based on the remaining capacity of each processor.
【請求項2】複数のプロセッサから構成される計算機シ
ステムにおけるジョブのスケジューリング方法であっ
て、 前記各プロセッサの処理能力と使用率とに基づいて各プ
ロセッサの残存能力を算出し、 該算出の結果、予め定められた使用率以下のプロセッサ
が存在するか否かを判定し、 前記判定が肯定的であるとき、前記各プロセッサの使用
率にもとづいてジョブを割り付けるプロセッサを決定
し、 前記判定が否定的であるとき、前記各プロセッサの残存
能力にもとづいてジョブを割り付けるプロセッサを決定
することを特徴とするジョブのスケジューリング方法。
2. A job scheduling method in a computer system comprising a plurality of processors, wherein the remaining capacity of each processor is calculated based on the processing capacity and the usage rate of each processor, and the result of the calculation is calculated. It is determined whether there is a processor having a predetermined usage rate or less, and when the determination is affirmative, the processor to which the job is assigned is determined based on the usage rate of each processor, and the determination is negative. , The job scheduling method is characterized in that the processor to which the job is allocated is determined based on the remaining capacity of each processor.
【請求項3】前記各プロセッサの処理能力は、予め各プ
ロセッサにおいて特定の命令列の実行することによって
求められた実行時間にもとづいて算出されることを特徴
とする請求項1または2記載のジョブのスケジューリン
グ方法。
3. The job according to claim 1, wherein the processing capacity of each processor is calculated based on an execution time obtained by executing a specific instruction sequence in each processor in advance. Scheduling method.
【請求項4】前記プロセッサの残存能力は、前記プロセ
ッサの処理能力と前記プロセッサの未使用率との積から
算出されることを特徴とする請求項1または2記載のジ
ョブのスケジューリング方法。
4. The job scheduling method according to claim 1, wherein the remaining capacity of the processor is calculated from the product of the processing capacity of the processor and the unused rate of the processor.
【請求項5】与えられたジョブを実行する複数のプロセ
ッサと、該複数のプロセッサにジョブを割り付けるジョ
ブスケジューラとを有する計算機システムにおけるジョ
ブのスケジューリング方法であって、 前記プロセッサの各々において各自の使用率を算出して
前記スケジューラに通知し、 前記スケジューラは、前記通知を受け、前記プロセッサ
の各々の処理能力と使用率とから各プロセッサの残存能
力を算出し、 該算出した各プロセッサの残存能力にもとづいて、各プ
ロセッサにジョブを割り付けることを特徴とするジョブ
のスケジューリング方法。
5. A job scheduling method in a computer system having a plurality of processors for executing a given job and a job scheduler for allocating the jobs to the plurality of processors, wherein each processor has its own utilization rate. And notifies the scheduler, and the scheduler receives the notification, calculates the remaining capacity of each processor from the processing capacity and the usage rate of each of the processors, and based on the calculated remaining capacity of each processor. And assigning a job to each processor.
【請求項6】与えられたジョブを実行する複数のプロセ
ッサと、該複数のプロセッサにジョブを割り付けるジョ
ブスケジューラとを有する計算機システムにおけるジョ
ブのスケジューリング方法であって、 前記プロセッサの各々において各自の使用率を算出して
前記スケジューラに通知し、 前記スケジューラにおいて前記通知を受け、前記プロセ
ッサの各々の処理能力と使用率とから各プロセッサの残
存能力を算出し、 前記複数のプロセッサの中に、前記使用率が予め定めた
使用率以下のプロセッサがあるか否かを判定し、 前記判定が肯定的であるとき、前記各プロセッサの使用
率にもとづいて、各プロセッサにジョブを割り付け、 前記判定が否定的であるとき、前記各プロセッサの残存
能力にもとづいて、各プロセッサにジョブを割り付ける
ことを特徴とするジョブのスケジューリング方法。
6. A job scheduling method in a computer system, comprising: a plurality of processors executing a given job; and a job scheduler allocating the jobs to the plurality of processors, wherein each processor has its own usage rate. To notify the scheduler, receive the notification in the scheduler, calculate the remaining capacity of each processor from the processing capacity and the usage rate of each of the processor, the utilization rate among the plurality of processors Determines whether or not there is a processor having a predetermined usage rate or less, and when the determination is affirmative, allocates a job to each processor based on the usage rate of each processor, and the determination is negative. At some point, a job is assigned to each processor based on the remaining capacity of each processor. Scheduling method for a job, wherein a kick.
【請求項7】与えられたジョブを実行する複数のプロセ
ッサと、該複数のプロセッサにジョブを割り付けるジョ
ブスケジューラとを有する計算機システムにおけるジョ
ブのスケジューリング方法であって、 前記各プロセッサにおいてそれぞれの処理能力と使用率
とから残存能力を算出し、 前記プロセッサの各々から算出した自己の残存能力を前
記ジョブスケジューラに通知し、 前記通知を受けた前記ジョブスケジューラにおいて、前
記各プロセッサの残存能力にもとづいて、各プロセッサ
にジョブを割り付けることを特徴とするジョブのスケジ
ューリング方法。
7. A job scheduling method in a computer system, comprising: a plurality of processors executing a given job; and a job scheduler allocating the jobs to the plurality of processors, wherein each processor has a respective processing capacity. The remaining capacity is calculated from the usage rate, the self remaining capacity calculated from each of the processors is notified to the job scheduler, and in the job scheduler that received the notification, based on the remaining capacity of each processor, A job scheduling method characterized by allocating a job to a processor.
【請求項8】与えられたジョブを実行する複数のプロセ
ッサと、該複数のプロセッサにジョブを割り付けるジョ
ブスケジューラとを有する計算機システムにおけるジョ
ブのスケジューリング方法であって、 前記各プロセッサにおいてそれぞれの処理能力と使用率
とから残存能力を算出し、 前記プロセッサの各々から算出した自己の残存能力と使
用率とを前記ジョブスケジューラに通知し、 前記通知を受けた前記スケジューラにおいて、前記使用
率が予め定めた使用率以下のプロセッサがあるか否かを
判定し、 前記判定が肯定的であるとき、前記各プロセッサの使用
率にもとづいて、各プロセッサにジョブを割り付け、 前記判定が否定的であるとき、前記各プロセッサの残存
能力にもとづいて、各プロセッサにジョブを割り付ける
ことを特徴とするジョブのスケジューリング方法。
8. A job scheduling method in a computer system, comprising: a plurality of processors executing a given job; and a job scheduler allocating the jobs to the plurality of processors, wherein each processor has a respective processing capacity. The remaining capacity is calculated from the usage rate, and the remaining capacity and usage rate of the processor calculated from each of the processors are notified to the job scheduler, and in the scheduler that has received the notification, the usage rate is predetermined. It is determined whether there is a processor below the rate, when the determination is affirmative, a job is assigned to each processor based on the usage rate of each processor, and when the determination is negative, each of the The job is assigned to each processor based on the remaining capacity of the processor. Method of scheduling jobs to be.
【請求項9】与えられたジョブを実行する複数のプロセ
ッサと、該複数のプロセッサにジョブを割り付けるジョ
ブスケジューラとを有する計算機システムにおけるジョ
ブのスケジューリング方法であって、 予め各プロセッサの処理能力を算出しておき、 所定の間隔で前記各プロセッサの使用率を算出し、 割付けを行なうべきジョブが存在することに応じて前記
使用率が予め定められた使用率よりも低いプロセッサが
存在するか否か判定し、 該判定の結果が肯定的である場合、前記使用率に基づ
き、前記ジョブを割付けるプロセッサを決定し、 前記判定の結果が否定的である場合、前記処理能力及び
前記使用率に基づいて算出される残存能力に従って前記
ジョブを割り付けるプロセッサを決定することを特徴と
するジョブのスケジューリング方法。
9. A job scheduling method in a computer system having a plurality of processors for executing a given job and a job scheduler for allocating the jobs to the plurality of processors, wherein the processing capacity of each processor is calculated in advance. The usage rate of each processor is calculated at a predetermined interval, and it is determined whether there is a processor whose usage rate is lower than a predetermined usage rate according to the existence of jobs to be assigned. If the result of the determination is positive, the processor to which the job is assigned is determined based on the usage rate. If the result of the determination is negative, based on the processing capacity and the usage rate. Job scheduling, characterized in that it determines a processor to allocate the job according to the calculated remaining capacity. Method.
JP2771194A 1994-02-25 1994-02-25 Scheduling method for job Pending JPH07234847A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2771194A JPH07234847A (en) 1994-02-25 1994-02-25 Scheduling method for job

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2771194A JPH07234847A (en) 1994-02-25 1994-02-25 Scheduling method for job

Publications (1)

Publication Number Publication Date
JPH07234847A true JPH07234847A (en) 1995-09-05

Family

ID=12228589

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2771194A Pending JPH07234847A (en) 1994-02-25 1994-02-25 Scheduling method for job

Country Status (1)

Country Link
JP (1) JPH07234847A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09212467A (en) * 1996-01-30 1997-08-15 Fujitsu Ltd Load decentralization control system
US5881284A (en) * 1995-10-26 1999-03-09 Nec Corporation Method of scheduling a job in a clustered computer system and device therefor
JP2008015888A (en) * 2006-07-07 2008-01-24 Hitachi Ltd Load distribution control system and load distribution control method
JP2009086741A (en) * 2007-09-27 2009-04-23 Hitachi Ltd Distributed processing control method in heterogeneous node existing distributed environment and its system and its program
US7668935B2 (en) 2003-08-29 2010-02-23 Kabushiki Kaisha Toshiba Computer system and method for service load distributing
WO2012131922A1 (en) * 2011-03-29 2012-10-04 富士通株式会社 Scheduling method and scheduling system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5881284A (en) * 1995-10-26 1999-03-09 Nec Corporation Method of scheduling a job in a clustered computer system and device therefor
JPH09212467A (en) * 1996-01-30 1997-08-15 Fujitsu Ltd Load decentralization control system
US7668935B2 (en) 2003-08-29 2010-02-23 Kabushiki Kaisha Toshiba Computer system and method for service load distributing
JP2008015888A (en) * 2006-07-07 2008-01-24 Hitachi Ltd Load distribution control system and load distribution control method
US7996844B2 (en) 2006-07-07 2011-08-09 Hitachi, Ltd. Load distribution control system and method
JP2009086741A (en) * 2007-09-27 2009-04-23 Hitachi Ltd Distributed processing control method in heterogeneous node existing distributed environment and its system and its program
WO2012131922A1 (en) * 2011-03-29 2012-10-04 富士通株式会社 Scheduling method and scheduling system

Similar Documents

Publication Publication Date Title
JP4387174B2 (en) Distributing processes associated with multiple priority groups across multiple resources
US7748005B2 (en) System and method for allocating a plurality of resources between a plurality of computing domains
Hui et al. Improved strategies for dynamic load balancing
US7020879B1 (en) Interrupt and exception handling for multi-streaming digital processors
EP1089173B1 (en) Dynamic adjustment of the number of logical processors assigned to a logical partition
JPH09167141A (en) Load distribution control method
TW200404253A (en) Thread dispatch mechanism and method for multiprocessor computer systems
JP4912927B2 (en) Task allocation apparatus and task allocation method
CN109739634A (en) A kind of atomic task execution method and device
Haladu et al. Optimizing task scheduling and resource allocation in cloud data center, using enhanced min-min algorithm
JPH07234847A (en) Scheduling method for job
JPH0628323A (en) Process execution control method
JP3429582B2 (en) Multiprocessor system
JP3922576B2 (en) Instruction processor allocation scheduling method, computer system realizing the instruction processor allocation scheduling method, and program therefor
WO2000070482A1 (en) Interrupt and exception handling for multi-streaming digital processors
KR20170081534A (en) Apparatus and method for power limiting in symmetric multiprocessing system
JPH0612395A (en) Task allocating method in multiprocessor system
Rajguru et al. A performance analysis of task scheduling algorithms using qualitative parameters
KR101639947B1 (en) Hadoop preemptive deadline constraint scheduling method, execution program thereof method and recorded medium of the program
JPH11195007A (en) Distributed processing system/method
JPH0822396A (en) Device and method for managing task execution
Jeyalakshmi et al. Cloud Scheduling Algorithm for Parallel Jobs Using Priority Queue
Singh et al. Comparative Study of Parallel Scheduling Algorithm for Parallel Job
Du et al. Dynamic Priority Job Scheduling on a Hadoop YARN Platform
JPS638833A (en) Resource assignment control system