JP3664079B2 - Job stopping method and apparatus in system freeze - Google Patents
Job stopping method and apparatus in system freeze Download PDFInfo
- Publication number
- JP3664079B2 JP3664079B2 JP2000576337A JP2000576337A JP3664079B2 JP 3664079 B2 JP3664079 B2 JP 3664079B2 JP 2000576337 A JP2000576337 A JP 2000576337A JP 2000576337 A JP2000576337 A JP 2000576337A JP 3664079 B2 JP3664079 B2 JP 3664079B2
- Authority
- JP
- Japan
- Prior art keywords
- job
- freeze
- restart
- execution information
- stopping
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4812—Task transfer initiation or dispatching by interrupt, e.g. masked
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Retry When Errors Occur (AREA)
Description
技術分野
本発明はシステムフリーズにおけるジョブの実行制御方法に係り、特にシステムフリーズ時間ならびにジョブリスタート時間の短縮を目的とした、ジョブ停止方法及び装置に関する。
背景技術
一般に計算機システムでは、システムの運用時間を意識することなくジョブを実行させるために、システム停止時点でジョブの実行情報を外部記憶装置に格納し、システムがリスタートした場合、格納した情報を元に、ジョブの状態をリスタート前の当該格納した時点に回復してジョブの実行を再開する機能を備えている。このジョブの実行情報を外部記憶装置に格納する機能をシステムフリーズと称し、システムがリスタートした場合、前記システムフリーズで格納した情報を元に、当該システムフリーズ状態からジョブの実行を再開することをジョブリスタートと称す。
従来、システムフリーズ・リスタートでは、システム停止時に実行していたジョブのうち、テープ装置等の物理装置にアクセスしていたジョブについては、ジョブリスタート後に実行再開が困難なため、該ジョブを停止させシステムフリーズの対象から外していた。
また、従来のシステムフリーズは、ユーザからのシステム停止要求時のみ実施されるだけではなく、システム運用中の停電時に非常用のバッテリを使ってシステムフリーズを行い、電源回復後にジョブを再開させる機能も備えている。この停電時のシステムフリーズを停電フリーズと称す。但し、停電フリーズの処理時間が、非常用バッテリの持続時間を超えることはできない。
従来技術では、システム停止時に実行中のジョブのうちジョブリスタート不可能なジョブを停止させ、残りのジョブをフリーズ対象としており、残りのジョブのうち大量のメモリを確保している様なジョブがあると、該ジョブを外部記憶装置に格納するシステムフリーズに時間がかかるという問題があった。特に、停電フリーズにおいては、システムフリーズ時間が非常用バッテリの持続時間を超えられないという制限があるため、停電フリーズ時間は出来る限り短いことが望ましい。また、前記の大量のメモリを確保したジョブのシステムフリーズ時間と、該ジョブを実行してメモリ確保の処理の完了までの時間を比べると、後者の方が短くなる。
本発明の主たる目的は、システムフリーズ・リスタートにおいて、外部記憶装置に格納する主記憶装置上のジョブの実行情報を削減することにより、システムフリーズならびにジョブリスタートにかかる時間を短縮することにある。
発明の開示
ジョブ実行開始からシステムフリーズ前までに使用したCPU時間が基準の時間に満たないジョブを停止させる発明の手段について説明する。複数のジョブを実行する任意の計算機でシステム停止が発生した時に、システムフリーズのためリスタート不可のジョブを停止させた後、更にリスタート可能なジョブのうち、ジョブ実行開始からシステムフリーズ前までに使用したCPU時間が基準の時間に満たないジョブを停止させることにより、システムフリーズの対象から外すようにしたことである。
これにより、システムフリーズにかかる時間が、リスタート不可のジョブのみ停止させた時と比べ、CPU時間が基準に満たないジョブのシステムフリーズにかかる時間分が短縮される。特に、メモリを大量に確保していたジョブの場合に有効である。更に、CPU時間が基準に満たないジョブを停止させることにより、該ジョブのリスタートが必要なく、その分の処理時間も短縮される。
システムフリーズを開始する時に、該ジョブが確保したメモリ量が基準の量を超えているジョブを停止させる発明の手段について説明する。複数のジョブを実行する任意の計算機でシステム停止が発生した時に、システムフリーズのため、リスタート不可のジョブを停止させた後、更にリスタート可能なジョブのうち、該ジョブが確保したメモリ量が基準の量を超えているジョブを停止させることにより、システムフリーズの対象から外すようにしたことである。
これにより、システムフリーズにかかる時間が、リスタート不可のジョブのみ停止させた時と比べ、該ジョブが確保したメモリ量が基準の量を超えているジョブのシステムフリーズにかかる時間分が短縮される。更に、確保したメモリ量が基準の量を超えているジョブを停止させることにより、該ジョブのリスタートが必要なく、その分の処理時間も短縮される。システムフリーズを開始する時に、該ジョブのジョブクラスが基準のジョブクラス以下のジョブを停止させる発明の手段について説明する。複数のジョブを実行する任意の計算機でシステム停止が発生した時に、システムフリーズのため、リスタート不可のジョブを停止させた後、更にリスタート可能なジョブのうち、該ジョブのジョブクラスが基準のジョブクラス以下のジョブを停止させることにより、システムフリーズの対象から外すようにしたことである。
これにより、システムフリーズにかかる時間が、リスタート不可のジョブのみ停止させた時と比べ、該ジョブのジョブクラスが基準のジョブクラス以下のジョブのシステムフリーズにかかる時間分が短縮される。さらに、ジョブクラスが基準のジョブクラス以下のジョブを停止させることにより、該ジョブのリスタートが必要なく、その分の処理時間も短縮される。
【図面の簡単な説明】
第1図は本発明の一実施例を示すシステム構成のブロック図であり、第2図は本発明のシステムフリーズにおけるジョブ停止処理の第1の実施例を示すフローチャートであり、第3図は本発明のシステムフリーズにおけるジョブ停止処理の第2の実施例を示すフローチャートであり、第4図は本発明のシステムフリーズにおけるジョブ停止処理の第3の実施例を示すフローチャートである。
発明を実施するための最良の形態
本発明の一実施例について図面により詳細に説明する。第1図は本発明を適用したシステムフリーズ・リスタートの概略構成を示すブロック図である。計算機10は、図示しないCPUやメモリなどから構成されており、外部記憶装置20が接続されている。計算機10には、システム監視部11と、フリーズ・リスタート制御部12と、ジョブ停止制御部13がある。
初めに、第1図により、このような計算機システムにおけるシステムフリーズ・リスタートの一般的な実行制御について説明する。
システム監視部11は、ユーザからフリーズによるシステム停止要求があった場合、その旨をフリーズ・リスタート制御部13に通知する。また、ユーザからのシステム停止要求だけでなく、停電発生時における停電フリーズの場合も同様にフリーズ・リスタート制御部13に通知する。更に、ユーザからリスタートの要求がきた場合、その旨をフリーズ・リスタート制御部13に通知する。
フリーズ・リスタート制御部12は、システム監視部11からのフリーズ要求があると、計算機上で実行中のジョブが、リスタート可能か否かの判別を行う。リスタート不可能な場合、ジョブ停止部に該ジョブの停止を通知する。リスタート可能な場合、ジョブのレジスタ値やスタック情報、データ情報などといったジョブのリスタートに必要な情報(ジョブ実行情報21)を外部記憶装置20に格納する。システムフリーズの契機は、ユーザにより与えられても、停電フリーズにより与えてもよい。フリーズ・リスタート制御部13は、システム監視部11からの指示によりジョブをリスタートする場合、該計算機の外部記憶装置20に格納されている該ジョブに対応するジョブ実行情報21を読み出して、その情報からジョブを該システムフリーズの時点の状態に回復し、処理を再開する。
ジョブ停止制御部13は、指示されたジョブの停止を行う。本発明は、この後のシステムフリーズの実行制御にかかわる。
次に、第1図と、第2図から第4図により、本発明のシステムフリーズ制御の実施例について説明する。
第2図は、本発明のシステムフリーズにおけるジョブ停止の処理の第1の実施例を示すフローチャートである。ユーザからもしくは停電フリーズによるシステム停止要求があると、システム監視部11はシステム停止要求を受付ける(201)。フリーズ・リスタート制御部12は、停止要求受付け時に実行していたジョブのうち、リスタート不可能なジョブの判別を行い、リスタート不可能なジョブをジョブ停止部13に通知して、ジョブ停止制御部13は該ジョブを停止する(202)。次に、フリーズ・リスタート制御部12は、残りのジョブのうち、ジョブ実行開始からシステムフリーズ前までに使用したCPU時間が、基準の時間に満たないものを判別して、基準の時間に満たないものをジョブ停止制御部13に通知して、ジョブ停止制御部13は該ジョブを停止する(203)。その後、フリーズ・リスタート制御部12は、残りのジョブをシステムフリーズの対象とし、システムフリーズする(204)。全てのジョブのシステムフリーズが完了すると、システム停止する(205)。
第3図は、本発明のシステムフリーズにおけるジョブ停止の処理の第2の実施例を示すフローチャートである。ユーザからもしくは停電フリーズによるシステム停止要求があると、システム監視部11はシステム停止要求を受付ける(301)。フリーズ・リスタート制御部12は、停止要求受付け時に実行していたジョブのうち、リスタート不可能なジョブの判別を行い、リスタート不可能なジョブをジョブ停止部13に通知して、ジョブ停止制御部13は該ジョブを停止する(302)。次に、フリーズ・リスタート制御部12は、残りのジョブのうち、該ジョブが確保したメモリ量が基準の量を超えているジョブを判別して、基準のメモリ量を超えているものをジョブ停止制御部13に通知して、ジョブ停止制御部13は該ジョブを停止する(303)。その後、フリーズ・リスタート制御部12は、残りのジョブをシステムフリーズの対象とし、システムフリーズする(304)。全てのジョブのシステムフリーズが完了すると、システム停止する(305)。
第4図は、本発明のシステムフリーズにおけるジョブ停止の処理の第3の実施例を示すフローチャートである。ユーザからもしくは停電フリーズによるシステム停止要求があると、システム監視部11はシステム停止要求を受付ける(401)。フリーズ・リスタート制御部12は、停止要求受付け時に実行していたジョブのうち、リスタート不可能なジョブの判別を行い、リスタート不可能なジョブをジョブ停止部13に通知して、ジョブ停止制御部13は該ジョブを停止する(402)。次に、フリーズ・リスタート制御部12は、残りのジョブのうち、該ジョブのジョブクラスが基準のジョブクラス以下か否かを判別して、基準のジョブクラス以下のものをジョブ停止制御部13に通知して、ジョブ停止制御部13は該ジョブを停止する(403)。その後、フリーズ・リスタート制御部12は、残りのジョブをシステムフリーズの対象とし、システムフリーズする(404)。全てのジョブのシステムフリーズが完了すると、システム停止する(405)。
本発明のシステムフリーズ・リスタートに要する時間は、ジョブの属性(CPU使用時間、確保したメモリ量、ジョブクラス)の基準値に依存するため、システムに最適となるように基準値を定める。
産業上の利用可能性
以上説明したように、本発明によれば、システムフリーズ・リスタート処理において、ジョブの属性値からジョブを停止することにより、システムフリーズ・リスタートの実行時間を短縮させることができる。特に、本発明は、システムフリーズ時間が限られている停電フリーズにおいては、大きな効果をもたらす。TECHNICAL FIELD The present invention relates to a job execution control method in system freeze, and more particularly, to a job stop method and apparatus for the purpose of shortening system freeze time and job restart time.
BACKGROUND ART In general, in a computer system, in order to execute a job without being aware of the operation time of the system, job execution information is stored in an external storage device when the system is stopped, and when the system is restarted, the stored information is stored. Originally, it has a function of recovering the job state to the stored time before restart and restarting job execution. The function of storing the job execution information in the external storage device is called system freeze. When the system is restarted, the job execution is restarted from the system freeze state based on the information stored in the system freeze. This is called job restart.
Conventionally, in system freeze / restart, among jobs that were executed when the system was stopped, it was difficult to resume execution of jobs that were accessing physical devices such as tape devices after job restart. I was excluded from the system freeze.
In addition, the conventional system freeze is not only performed when a system stop request is received from the user, but also has a function to restart the job after power recovery by performing system freeze using an emergency battery in the event of a power failure during system operation. I have. This system freeze at the time of a power failure is called a power failure freeze. However, the power outage freeze processing time cannot exceed the duration of the emergency battery.
In the conventional technology, jobs that cannot be restarted are stopped among the jobs that are being executed when the system is stopped, and the remaining jobs are subject to freezing. Among the remaining jobs, there are jobs that have secured a large amount of memory. If so, there is a problem that it takes time to freeze the system in which the job is stored in the external storage device. In particular, in a power outage freeze, there is a limitation that the system freeze time cannot exceed the duration of the emergency battery, so it is desirable that the power outage freeze time be as short as possible. Further, when the system freeze time of the job that secures a large amount of memory is compared with the time until execution of the job and the memory securing process is completed, the latter is shorter.
A main object of the present invention is to reduce the time required for system freeze and job restart by reducing job execution information on the main storage device stored in the external storage device in system freeze / restart. .
DISCLOSURE OF THE INVENTION Means of the invention for stopping a job whose CPU time used from the start of job execution to before system freeze is less than a reference time will be described. When a system stop occurs on an arbitrary computer that executes multiple jobs, after a job that cannot be restarted due to system freeze is stopped, from among the jobs that can be restarted, from the start of job execution to before system freeze That is, a job whose CPU time used is less than the reference time is stopped to be excluded from the system freeze target.
As a result, the time required for system freeze is shorter than the time required for system freeze of a job whose CPU time does not satisfy the standard, compared to when only a job that cannot be restarted is stopped. This is particularly effective for jobs that have secured a large amount of memory. Furthermore, by stopping a job whose CPU time does not satisfy the standard, it is not necessary to restart the job, and the processing time is reduced accordingly.
An invention means for stopping a job in which the amount of memory secured by the job exceeds a reference amount when the system freeze is started will be described. When a system stop occurs on an arbitrary computer that executes multiple jobs, because the system freezes, after stopping a job that cannot be restarted, among the jobs that can be restarted, the amount of memory secured by the job is By stopping jobs that exceed the reference amount, they are removed from the system freeze target.
As a result, the time required for system freeze is shorter than the time required for system freeze of a job in which the amount of memory secured by the job exceeds the reference amount compared to when only a job that cannot be restarted is stopped. . Furthermore, by stopping a job in which the secured memory amount exceeds the reference amount, it is not necessary to restart the job, and the processing time is reduced accordingly. An invention means for stopping a job whose job class is equal to or lower than the reference job class when starting the system freeze will be described. When a system stop occurs on an arbitrary computer that executes multiple jobs, because of system freeze, after stopping a job that cannot be restarted, among the jobs that can be restarted, the job class of the job is the reference By stopping jobs below the job class, they are removed from the system freeze target.
As a result, the time required for the system freeze is shortened by the time required for the system freeze of the job whose job class is equal to or lower than the reference job class, compared to the case where only the job that cannot be restarted is stopped. Furthermore, by stopping jobs whose job class is equal to or lower than the reference job class, it is not necessary to restart the job, and the processing time corresponding to that job is shortened.
[Brief description of the drawings]
FIG. 1 is a block diagram of a system configuration showing an embodiment of the present invention, FIG. 2 is a flowchart showing a first embodiment of job stop processing in the system freeze of the present invention, and FIG. FIG. 4 is a flowchart showing a third embodiment of the job stop process in the system freeze according to the present invention. FIG. 4 is a flowchart showing the third embodiment of the job stop process in the system freeze according to the present invention.
BEST MODE FOR CARRYING OUT THE INVENTION An embodiment of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of system freeze / restart to which the present invention is applied. The
First, general execution control of system freeze / restart in such a computer system will be described with reference to FIG.
When there is a system stop request due to freeze from the user, the system monitoring unit 11 notifies the freeze /
When there is a freeze request from the system monitoring unit 11, the freeze /
The job
Next, an embodiment of the system freeze control according to the present invention will be described with reference to FIG. 1 and FIG. 2 to FIG.
FIG. 2 is a flowchart showing a first embodiment of job stop processing in the system freeze according to the present invention. When there is a system stop request from the user or due to a power outage freeze, the system monitoring unit 11 receives the system stop request (201). The freeze /
FIG. 3 is a flowchart showing a second embodiment of job stop processing in the system freeze according to the present invention. When there is a system stop request from the user or due to a power outage freeze, the system monitoring unit 11 accepts the system stop request (301). The freeze /
FIG. 4 is a flowchart showing a third embodiment of job stop processing in the system freeze according to the present invention. When there is a system stop request from the user or due to a power outage freeze, the system monitoring unit 11 accepts the system stop request (401). The freeze /
Since the time required for the system freeze / restart of the present invention depends on the reference values of job attributes (CPU usage time, reserved memory amount, job class), the reference value is determined so as to be optimal for the system.
Industrial Applicability As described above, according to the present invention, the system freeze / restart execution time can be shortened by stopping the job from the job attribute value in the system freeze / restart process. Can do. In particular, the present invention has a great effect in a power failure freeze in which the system freeze time is limited.
Claims (6)
システムフリーズを行うときに、フリーズ・リスタート制御部がジョブの実行記録からなる基準に基づいて実行中の各々のジョブをリスタートするためのジョブ実行情報を保存するかどうか判定し、フリーズ・リスタート時の処理時間を短縮するための基準を満たしたジョブの前記リスタートするためのジョブ実行情報を外部記憶装置に格納することを特徴とするジョブ停止方法。 In a method in which a computer executing multiple jobs stops the job,
When performing the system freezes, it determines whether the freeze restart controller saves the job execution information for restart each running job based on criteria comprising a job execution record, freeze Li A job stopping method for storing job execution information for restarting a job that satisfies a criterion for shortening a processing time at the start in an external storage device.
システムフリーズを行うときに、実行中の各々のジョブをリスタートするためのジョブ実行情報を保存するかどうかジョブの実行記録からなる基準に基づいて判定するフリーズ・リスタート制御部及び、前記フリーズ・リスタート制御部がフリーズ・リスタート時の処理時間を短縮するための基準を満たしたジョブの前記リスタートするためのジョブ実行情報を格納する外部記憶装置とを備えることを特徴とするジョブ停止装置。 In the job stopping device of a computer that executes a plurality of jobs,
When performing the system freezes, determines freeze restart controller based on whether the criteria consisting of job execution record stores the job execution information for each of the job restart running and the freeze A job stop device comprising: an external storage device for storing job execution information for restarting a job that satisfies a criterion for reducing a processing time at freeze / restart by the restart control unit .
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/JP1998/004642 WO2000022498A1 (en) | 1998-10-14 | 1998-10-14 | Method and device for stopping job during system freeze |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPWO2000022498A1 JPWO2000022498A1 (en) | 2002-01-15 |
| JP3664079B2 true JP3664079B2 (en) | 2005-06-22 |
Family
ID=14209196
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000576337A Expired - Fee Related JP3664079B2 (en) | 1998-10-14 | 1998-10-14 | Job stopping method and apparatus in system freeze |
Country Status (2)
| Country | Link |
|---|---|
| JP (1) | JP3664079B2 (en) |
| WO (1) | WO2000022498A1 (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5819958A (en) * | 1981-07-29 | 1983-02-05 | Mitsubishi Electric Corp | Degenerating method for computer |
| JPH02245828A (en) * | 1989-03-20 | 1990-10-01 | Fujitsu Ltd | Stopping/resuming device of job in the middle of execution |
| JPH0340150A (en) * | 1989-07-07 | 1991-02-20 | Nec Corp | Swap area security control system in accordance with job priority |
| JPH0471052A (en) * | 1990-07-11 | 1992-03-05 | Nec Corp | Memory freezing control system |
| JPH07244536A (en) * | 1994-03-07 | 1995-09-19 | Toshiba Corp | Resume support mechanism |
-
1998
- 1998-10-14 WO PCT/JP1998/004642 patent/WO2000022498A1/en not_active Ceased
- 1998-10-14 JP JP2000576337A patent/JP3664079B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| WO2000022498A1 (en) | 2000-04-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1282030A1 (en) | Computer system and computer-readable recording medium | |
| JPS6363933B2 (en) | ||
| US7240189B2 (en) | Fast resume to normal operation of a computer in a power saving mode | |
| JP3664079B2 (en) | Job stopping method and apparatus in system freeze | |
| CN113468617A (en) | Method, equipment and storage medium for power failure protection of equipment | |
| JP3287295B2 (en) | operating system | |
| JP2713218B2 (en) | Checkpoint / restart processing method | |
| JPH07298512A (en) | Charger and charging method | |
| JPWO2000022498A1 (en) | Method and apparatus for stopping jobs during system freeze | |
| JPH11259160A (en) | Computer starting method, computer and storage medium recording starting processing program | |
| JPH11184550A (en) | Computer system and timer interrupt control method | |
| JPS6012849A (en) | Fault information recording method | |
| JP2000172575A (en) | Memory backup system | |
| JPH05257557A (en) | System automatic start method | |
| JP3509705B2 (en) | Automatic restart processing system and restart processing method in switching system | |
| JP2775865B2 (en) | Fault analysis information collection method for peripheral control devices | |
| JP2500440B2 (en) | Fault handling method | |
| JPS59133620A (en) | Automatic operating system for power restoration | |
| JPS61226820A (en) | Data processing resuming system by power restoration | |
| JPS59146387A (en) | Stack control system of multiprocessing | |
| JPS6398009A (en) | Processing control system at power failure | |
| CN120234053A (en) | System disk switching method, device, equipment and storage medium | |
| JPS63155245A (en) | Data backup system for semiconductor disk | |
| JPH11265264A (en) | Backup storage system and method therefor | |
| JPH06266478A (en) | Computer system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20041102 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050104 |
|
| 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: 20050308 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20050321 |
|
| LAPS | Cancellation because of no payment of annual fees |