JPH02211545A - Job execution control system - Google Patents

Job execution control system

Info

Publication number
JPH02211545A
JPH02211545A JP3300289A JP3300289A JPH02211545A JP H02211545 A JPH02211545 A JP H02211545A JP 3300289 A JP3300289 A JP 3300289A JP 3300289 A JP3300289 A JP 3300289A JP H02211545 A JPH02211545 A JP H02211545A
Authority
JP
Japan
Prior art keywords
job
virtual space
executed
jobs
execution
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
JP3300289A
Other languages
Japanese (ja)
Inventor
Mikio Yoshida
幹夫 吉田
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3300289A priority Critical patent/JPH02211545A/en
Publication of JPH02211545A publication Critical patent/JPH02211545A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce overhead due to swapping in a high load state by first starting a virtual space stopped in the high load state when a system resource is in a low load state. CONSTITUTION:When the system resource is in the low load state, and a job waiting for an execution exists in a job group 4a, the job in an execution class at the highest priority is selected, a virtual space C for the execution class is newly prepared, and a job 1c is executed. At the time of the high load, the virtual space where the job is not executed is stopped, the job in the execution class at the lowest priority is selected, and after the job is completed, the executed virtual space is stopped. When the load of the system resource is in an allowable range, the virtual space stopped at the time of the high load is started, and in the low load state, the newly prepared virtual space is erased. Thus the overhead due to the swapping in the high load state can be reduced, and the idle state of the system resource in the low load state can be canceled.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、計算機システムの制御プログラムにおける
ジョブ実行制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a job execution control method in a control program for a computer system.

[従来の技術] 第3図は従来のジョブ制御方式を示すブロック図である
。第3図は、中央処理装置(CPU)。
[Prior Art] FIG. 3 is a block diagram showing a conventional job control method. Figure 3 shows the central processing unit (CPU).

主記憶装置、チャネル等のシステム資源の負荷が高負荷
である場合のスワツピングによる従来のジヨブ制御方式
を示している。図において、1は仮想記憶装置、1aは
仮想空間Aで実行中のジョブ、1bは仮想空間Bで実行
中のジョブ、2は主記憶装置、2aは実行中のジョブ群
、3は外部記憶装置、3aは外部記憶装置3ヘスワツプ
アウト中のジョブ群である。
This figure shows a conventional job control method using swapping when the load on system resources such as the main storage device and channels is high. In the figure, 1 is a virtual storage device, 1a is a job being executed in virtual space A, 1b is a job being executed in virtual space B, 2 is a main storage device, 2a is a group of jobs being executed, and 3 is an external storage device. , 3a is a group of jobs being swapped out to the external storage device 3.

次に、上記従来のジョブ制御方式の動作について説明す
る。システム資源が高負荷である場合は、現在実行中の
ジョブ群2aの中からシステム資源の負荷に最も影響を
及ぼしているジョブを選択して、外部記憶装置3ヘスワ
ツプアウトする。またスワップアウト中のジョブ群3a
と実行中のジョブ群2aにシステム資源の配分が片寄ら
ないようにするために、スワップアウト中のジョブ群3
aと実行中のジョブ群2aの間で交換スワップを行う。
Next, the operation of the conventional job control method described above will be explained. If the system resources are under high load, the job that has the greatest impact on the system resource load is selected from the currently executing job group 2a and swapped out to the external storage device 3. Also, job group 3a that is being swapped out
In order to prevent system resources from being distributed unbalanced to job group 2a that is currently being executed, job group 3a that is being swapped out
An exchange swap is performed between a and the job group 2a that is being executed.

しかるに、システム資源が低負荷である場合においても
、バッチジョブ用の仮想空間を新規に作成し、当該仮想
空間でジョブを実行させることはしない。
However, even when system resources are under low load, a new virtual space for batch jobs is created and jobs are not executed in the virtual space.

[発明が解決しようとする課題] 上記のような従来のジョブ制御方式では、実行中のジョ
ブ群2a中のジョブでの数とスワップアウト中のジョブ
群3a中のジョブの数の合計が仮想空間の数であり、シ
ステム資源が高負荷な場合は、これらのジョブの中でス
ワツピングが発生することになる。また、仮想空間の数
の設定が固定であれば、システム資源がある特定時間帯
で高負荷である場合に、スワツピングによるオーバヘッ
ドが無視できなくなり、逆にシステム資源が低負荷であ
る状態が長時間続いた場合に、システム資源が遊休状態
になるなどの問題点があった。
[Problem to be Solved by the Invention] In the conventional job control method as described above, the sum of the number of jobs in the job group 2a that is being executed and the number of jobs in the job group 3a that are being swapped out is the virtual space. If the system resources are under high load, swapping will occur among these jobs. In addition, if the number of virtual spaces is fixed, the overhead caused by swapping cannot be ignored if the system resources are under a high load at a certain time, and conversely, the system resources may be under a low load for a long period of time. If this continues, there are problems such as system resources becoming idle.

この発明は上記のような問題点を解決するためになされ
たもので、システム資源が高負荷である場合は、仮想空
間の数を減らし、スワツピングによるオーバヘッドを減
少させ、またシステム資源が低負荷である場合は、仮想
空間の数を増やし、システム資源の遊休状態を解消する
ジョブ実行制御方式を得ることを目的とする。
This invention was made to solve the above-mentioned problems. When system resources are under a high load, it is possible to reduce the number of virtual spaces and reduce the overhead caused by swapping. In some cases, the objective is to obtain a job execution control method that increases the number of virtual spaces and eliminates the idle state of system resources.

[課題を解決するための手段] この発明に係るジョブ実行制御方式は、システム資源が
高負荷状態の時に、バッチジョブ用の仮想空間の数を減
らし、またシステム資源が低負荷状態の時に、システム
資源が高負荷状態の時に停止させた仮想空間があれば、
最初にそれらを開始させ、さらに余裕があり、かつ実行
待ちのジョブが存在すれば、バッチジョブ用の仮想空間
の数を増やすようにしたものである。
[Means for Solving the Problems] A job execution control method according to the present invention reduces the number of virtual spaces for batch jobs when system resources are in a high load state, and also reduces the number of virtual spaces for batch jobs when system resources are in a low load state. If there is a virtual space that was stopped when the resource was under high load,
These are started first, and if there is room and there are jobs waiting to be executed, the number of virtual spaces for batch jobs is increased.

[作用] この発明におけるジョブ実行制御方式は、システム資源
が高負荷状態の場合は、バッチジョブ用のイ反想空間の
数を減らすことにより、システム資源の負荷が減少し、
システム資源が低負荷状態で、かつ実行待ちのジョブが
ある場合は、バッチジョブ用の仮想空間を増やすことに
より、システム資源の負荷が増加する。
[Operation] The job execution control method according to the present invention reduces the load on system resources by reducing the number of reflection spaces for batch jobs when system resources are under high load.
If the system resources are in a low load state and there are jobs waiting to be executed, increasing the virtual space for batch jobs will increase the load on the system resources.

[実施例] 第1図はこの発明の実施例であるジョブ実行制御方式を
示すブロック図である。図において、1は仮想記憶装置
、1aは仮想空間Aで実行中のジョブ、1bは仮想空間
Bて実行中のジョブ、1cは新規に作成された仮想空間
Cで実行中のジョブ、2は主記憶装置、2aは実行中の
ジョブ群、3は外部記憶装置、3aは外部記憶装置3ヘ
スワツプアウト中のジョブ群、4はスプール領域、4a
は実行待ちのジョブ群である。
[Embodiment] FIG. 1 is a block diagram showing a job execution control system according to an embodiment of the present invention. In the figure, 1 is a virtual storage device, 1a is a job being executed in virtual space A, 1b is a job being executed in virtual space B, 1c is a job being executed in a newly created virtual space C, and 2 is the main job. Storage device, 2a is a group of jobs being executed, 3 is an external storage device, 3a is a group of jobs being swapped out to the external storage device 3, 4 is a spool area, 4a
is a group of jobs waiting to be executed.

第2図は第1図のジョブ実行制御方式の動作を説明する
ためのフローチャートである。第2図はシステム資源の
負荷状況を監視し、ジョブの実行制御を定期的に行う処
理を示すフローチャートである。図において、5〜13
は処理過程を示すステップである。
FIG. 2 is a flowchart for explaining the operation of the job execution control method shown in FIG. FIG. 2 is a flowchart showing a process for monitoring the load status of system resources and periodically controlling job execution. In the figure, 5 to 13
are steps showing the processing process.

次に、上記この発明の実施例であるジョブ実行制御方式
の動作について、第2図に示すフローチャートを参照し
て説明する。システム資源が低負荷である場合は、実行
待ちのジョブ群4aの中に実行待ちのジョブが存在する
か否かを調べ、もしも存在する場合は、実行待ちのジョ
ブ群4aの中から最も優先順位の高い実行クラスのジョ
ブを選択し、当該実行クラス用の仮想空間Cで実行中の
ジョブ1cを新規に作成し、当該ジョブを実行させる(
ステップ5〜7)。
Next, the operation of the job execution control method according to the embodiment of the present invention will be explained with reference to the flowchart shown in FIG. If the system resources are under low load, check whether there is a job waiting to be executed in the job group 4a waiting to be executed, and if there is a job waiting to be executed, the priority Select a job with a high execution class, create a new job 1c running in virtual space C for the execution class, and execute the job (
Steps 5-7).

システム資源が高負荷である場合は、現在ジョブが実行
されていない仮想空間を停止させ、現在実行中のジョブ
群2aの中から最も優先順位の低い実行クラスのジョブ
を選択し、当該ジョブが終了後に、当該ジョブを実行し
ていた仮想空間を停止させる(ステップ5,8)。
If system resources are under high load, stop the virtual space in which no jobs are currently being executed, select the job with the lowest priority execution class from the currently executing job group 2a, and terminate the job. Afterwards, the virtual space in which the job was being executed is stopped (steps 5 and 8).

システム資源の負荷が許容範囲にある場合は、以前にシ
ステム資源が高負荷状態であった時は、停止させた仮想
空間を開始させる(ステップ5゜9〜11)。また、以
前にシステム資源が低負荷状態であった時は、新規に作
成した仮想空間があれば、当該仮想空間を消去する(ス
テップ5,9゜10.12.13)。
If the load on the system resources is within the allowable range, the virtual space that was previously stopped when the system resources were in a high load state is started (steps 5.9 to 11). Furthermore, when the system resources were previously in a low load state, if there is a newly created virtual space, that virtual space is deleted (steps 5 and 9, 10.12.13).

[発明の効果] 以上のように、この発明のジョブ実行制御方式によれば
、システム資源が高負荷状態の時に、バッチジョブ用の
仮想空間の数を減らし、またシステム資源が低負荷状態
の時に、システム資源が高負荷状態の時に停止させた仮
想空間があれば、最初にそれらを開始させ、さらに余裕
があり、かつ実行待ちのジョブが存在すれば、バッチジ
ョブ用の仮想空間の数を増やすようにしたので、システ
ム資源が高負荷状態である時のスワツピングによるオー
バヘッドが減少でき、またシステム資源が低負荷状態で
ある時のシステム資源の遊休状態が解消できるなどの優
れた効果を奏するものである。
[Effects of the Invention] As described above, according to the job execution control method of the present invention, the number of virtual spaces for batch jobs can be reduced when system resources are in a high load state, and the number of virtual spaces for batch jobs can be reduced when system resources are in a low load state. If there are virtual spaces that were stopped when system resources were under high load, start them first, and if there is free space and there are jobs waiting to be executed, increase the number of virtual spaces for batch jobs. As a result, the overhead due to swapping can be reduced when system resources are under high load, and the idle state of system resources can be eliminated when system resources are under low load. be.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の実施例であるジョブ実行制御方式を
示すブロック図、第2図は第1図のジョブ実行制御方式
の動作を説明するためのフローチャート、第3図は従来
のジョブ制御方式を示すブロック図である。 図において、1・・・仮想記憶装置、1a・・・仮想空
間Aで実行中のジョブ、lb・・・仮想空間Bで実行中
のジョブ、1c・・・仮想空間Cで実行中のジョブ、2
・・・主記憶装置、2a・・・実行中のジョブ群、3・
・・外部記憶装置、3a・・・スワップアウト中のジョ
ブ群、4・・・スプール領域、4a・・・実行待ちのジ
ョブ群、5〜13・・・ステップ である。 なお、図中、同一符号は同一 又は相当部分を示す。 第2図
FIG. 1 is a block diagram showing a job execution control method according to an embodiment of the present invention, FIG. 2 is a flowchart for explaining the operation of the job execution control method shown in FIG. 1, and FIG. 3 is a conventional job control method. FIG. In the figure, 1...virtual storage device, 1a...job running in virtual space A, lb...job running in virtual space B, 1c...job running in virtual space C, 2
...Main storage device, 2a...Group of jobs being executed, 3.
. . . External storage device, 3a . . . Job group being swapped out, 4 . . . Spool area, 4a . . . Job group waiting for execution, 5 to 13 . . . Steps. In addition, the same symbols in the figures indicate the same or equivalent parts. Figure 2

Claims (1)

【特許請求の範囲】 バッチジョブが優先順位によってその実行クラスが分け
られ、ジョブを実行させる仮想空間と実行クラスが対応
し、現在実行中でない仮想空間に対応する実行クラスの
ジョブを実行待ち行列から捜し、当該仮想空間で実行さ
せる手段と、 中央処理装置、主記憶装置、チャネル等のシステム資源
の負荷を定期的に監視し、主にスワッピングによるジョ
ブの実行制御を行う手段を備える計算機システムにおい
て、 上記システム資源の負荷が一定時間以上にわたって低く
、かつ実行待ちのジョブが存在する場合は、優先順位の
高い実行クラスから実行待ちのジョブを捜し、当該ジョ
ブの実行クラス用の仮想空間を新規に作成し、当該仮想
空間でジョブを実行させることと、 上記システム資源の負荷が一定時間以上にわたって高く
、かつ実行中のジョブが存在する場合は、現在ジョブが
実行されていない仮想空間を停止させ、現在実行中のジ
ョブの中で最も優先順位の低い実行クラスのジョブが終
了した時点で当該仮想空間を停止させることと、 上記システム資源の負荷が許容範囲に回復した場合は、
低負荷時に新規に作成した仮想空間を消去させ、高負荷
時に停止させた仮想空間を開始させることにより、上記
システム資源の負荷状況に合わせて実行可能なジョブの
数を制御することを特徴とするジョブ実行制御方式。
[Claims] Batch jobs are divided into execution classes based on priority, the virtual space in which the job is executed corresponds to the execution class, and the job of the execution class corresponding to the virtual space that is not currently being executed is removed from the execution queue. In a computer system, the computer system includes means for searching and executing jobs in the virtual space, and means for periodically monitoring the load on system resources such as a central processing unit, main storage, and channels, and controlling job execution mainly by swapping. If the load on the above system resources is low for more than a certain period of time and there are jobs waiting to be executed, search for jobs waiting to be executed from the execution class with the highest priority and create a new virtual space for the execution class of the job. However, if the load on the system resources is high for more than a certain period of time and there are jobs being executed, the virtual space where no jobs are currently being executed is stopped and the current The virtual space will be stopped when the execution class job with the lowest priority among the running jobs has finished, and when the load on the system resources has recovered to an acceptable range,
The number of executable jobs is controlled according to the load status of the system resources by erasing a newly created virtual space when the load is low and starting a virtual space that was stopped when the load is high. Job execution control method.
JP3300289A 1989-02-13 1989-02-13 Job execution control system Pending JPH02211545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3300289A JPH02211545A (en) 1989-02-13 1989-02-13 Job execution control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3300289A JPH02211545A (en) 1989-02-13 1989-02-13 Job execution control system

Publications (1)

Publication Number Publication Date
JPH02211545A true JPH02211545A (en) 1990-08-22

Family

ID=12374637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3300289A Pending JPH02211545A (en) 1989-02-13 1989-02-13 Job execution control system

Country Status (1)

Country Link
JP (1) JPH02211545A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5511214A (en) * 1992-08-25 1996-04-23 Fujitsu Limited On-line processing system and overload suppressing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5511214A (en) * 1992-08-25 1996-04-23 Fujitsu Limited On-line processing system and overload suppressing method

Similar Documents

Publication Publication Date Title
US5241676A (en) Method for controlling process priority in semaphore operation
US8555285B2 (en) Executing a general-purpose operating system as a task under the control of a real-time operating system
JP2001256062A (en) Interruption processing method and operation processor using the same
JPH02211545A (en) Job execution control system
JP3005562B1 (en) Task management device and task scheduling method
JP2001236236A (en) Task controller and its task scheduling method
JP2002099435A (en) Control method of multi-task and information processor
JPH05250188A (en) Priority control system of process
JPH07230387A (en) Exclusive control method
JPH05108380A (en) Data processing system
JPS63636A (en) Task control system
JPH0895803A (en) Task scheduling method
JP2903525B2 (en) Job management method
CN110109743B (en) Real-time process scheduling method
JP2822728B2 (en) Computer system
JP2570198B2 (en) Time slice dispatching system
JP2988427B2 (en) Recording medium recording job operation method, job operation method, and job operation program
JPH03157733A (en) Task ready queue managing device
JPH0424828A (en) Multi-task control system
JPH0344742A (en) Task assignment control system for multiprocessor
JPH02113363A (en) Time slice controlling system for multiprocessor system
JP2000029850A (en) Task controlling method using inter-processor communication of operating system
JPH0495137A (en) Context switching method for operating system
JPH036738A (en) Job schedule control method
JPH11237994A (en) System and method for controlling job multiplicity overloading and recording medium