JPS60222939A - Dynamic allocation system of dump file - Google Patents

Dynamic allocation system of dump file

Info

Publication number
JPS60222939A
JPS60222939A JP59079452A JP7945284A JPS60222939A JP S60222939 A JPS60222939 A JP S60222939A JP 59079452 A JP59079452 A JP 59079452A JP 7945284 A JP7945284 A JP 7945284A JP S60222939 A JPS60222939 A JP S60222939A
Authority
JP
Japan
Prior art keywords
task
dump file
dump
file
child
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
JP59079452A
Other languages
Japanese (ja)
Inventor
Takeshi Muragata
村形 武志
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59079452A priority Critical patent/JPS60222939A/en
Publication of JPS60222939A publication Critical patent/JPS60222939A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0778Dumping, i.e. gathering error/state information after a fault for later diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To obtain dump information of all abnormally terminated tasks by using the same dump file even if plural tasks are terminated abnormally successively. CONSTITUTION:Areas of a main storage 1 are allocated to programs to be processed, and the processing time of a processor 2 is allocated to each task unit by the operating system, and tasks are executed. If a task is abnormally terminated, data in a pertinent area in the main storage 1 is outputted to an area set for a dump file in a magnetic disk 4 and is outputted as a list to a printer 6. If another task is abnormally terminated at this time, data in the area in the main storage 1 is outputted to the dump file again when contents of the dump file are outputted completely to the printer 6. Thus, dump information of all abnormally terminated tasks is obtained by the same dump file.

Description

【発明の詳細な説明】 (1)発明の技術分野 本発明は情報処理装置において、プログラムが異常終了
したときの主記憶やレジスタの内容を、補助記憶などに
設けたファイルに出力(ダンプコする際の制御方式に関
するものである。
Detailed Description of the Invention (1) Technical Field of the Invention The present invention is an information processing device that outputs (dumps) the contents of main memory or registers when a program terminates abnormally to a file provided in auxiliary memory or the like. This is related to the control method.

(2] 従来技術と問題点 情報処理装置においては、プログラムが異常終了したと
きに備えて、その原因の探索や、これによる関連ファイ
ル等の復元の資料とするため、異常発生時の主記憶やレ
ジスタの内容を磁気ディ貴り等の補助記憶上のファイル
(ダンプファイル)に出力し、更にこれをラインプリン
タ等に出力してダンプリストを作成する如き制御を行な
っている。利用者または保守者は該ダンプリストを調査
することによシ、プログラム異常終了の原因や、関連7
アイルの復元手段を検討することが出来る。
(2) Prior Art and Problems In information processing devices, in case a program terminates abnormally, the main memory and the data stored at the time of abnormality are used as materials for searching for the cause and restoring related files, etc. It performs controls such as outputting the contents of the register to a file (dump file) on auxiliary storage such as a magnetic disk drive, and further outputting this to a line printer, etc. to create a dump list.User or maintainer By examining the dump list, you can find out the cause of the program's abnormal termination and related problems.
You can consider ways to restore the isle.

一般にこれらの処理はオペレーティングシステム(O8
)によって制御されるものである。
Generally, these processes are performed by the operating system (O8
).

一方、通常のプログラムの処理に当っては親タスクが複
数の子タスクを生成して走行することが多い。子タスク
が異常終了したとき主記憶やレジスタの内容をダンプフ
ァイルに出力するか否かは、当該プログラムの処理に係
るジョブ制御言語(JCL)で予め指定しておく必要が
あり、そのとき使用ファイルとその領域を定め(アロケ
ート)ておかなければならない。従ってダンプファイル
を1フアイルとした場合には、複数のタスクが異常終了
しても従来の方式ではダンプ情報を得られるのはその中
の1タスクに限られてしまうと云う欠点があった。
On the other hand, in normal program processing, a parent task often generates and runs multiple child tasks. Whether or not to output the contents of main memory and registers to a dump file when a child task terminates abnormally must be specified in advance in the job control language (JCL) related to the processing of the program. and its area must be determined (allocated). Therefore, when the dump file is one file, the conventional method has the disadvantage that even if a plurality of tasks terminate abnormally, dump information can only be obtained from one task among them.

これに対し走行中の全子タスクについてダンプファイル
を割り当てる方式としようとすると、ダンプファイルと
して大容量の専用ファイルを予め用意しておかなければ
ならないので資源の有効な活用が図れないと云う欠点が
あった。
On the other hand, if you try to allocate a dump file to all running child tasks, you have to prepare a large-capacity dedicated file in advance as a dump file, which has the disadvantage that resources cannot be used effectively. there were.

また、従来の方式では子タスク自身でダンプファイルど
して割り当てるファイルのアクセス名(ファイルにアク
セスするだめの識別子)を意識する必要があるため異常
終了した際の処理プログラム(異常終了出口ルーチン)
の構成が、かなシ煩雑になると言う欠点があった。
In addition, in the conventional method, the child task itself needs to be aware of the access name (identifier for accessing the file) of the file assigned as a dump file, etc., so the processing program (abnormal termination exit routine)
The disadvantage was that the structure was quite complicated.

(3)発明の目的 本発明は上記従来の欠点に鑑み、予め大容量のファイル
をダンプファイルとして用意しなくとも、複数のタスク
が異常終了したときの各タスクについてのダンプ情報を
確保することが可能で、かつ煩雑な制御を必要としない
ダンプファイルの割当方式を提供することを目的として
いる。
(3) Purpose of the Invention In view of the above-mentioned conventional drawbacks, the present invention makes it possible to secure dump information for each task when multiple tasks terminate abnormally without having to prepare a large-capacity file as a dump file in advance. The purpose of this invention is to provide a dump file allocation method that is possible and does not require complicated control.

(4)発明の構成 そして、この目的は本発明によれば特許請求の範囲に萌
載のとおシ、情報処理装置の制御プログラムにおいて、
親タスクから各子タスクにそれぞれの子タスクのタスク
名を通知する手段と、ダンプファイルに出力された情報
をその都度プリンタに出力する手段とを設けると共に、
各子タスクごとに同一内容の異常終了出口ルーチンを付
加せしめて、子タスクが異常終了したとき当該子タスク
の異常終了出口ルーチン内で自タスクのタスク名を基に
アクセス名を作成することによシダンプファイルを割り
当てて該ダンプファイルにダンプ情報が出力された後に
該ダンプ情報をプリンタに出力せしめて該ダンプファイ
ルの拘束を解除することにより他の子タスクの異常終了
出口ルーチンによる該ダンプファイルの使用を可能とす
ることを特徴とするダンプファ゛イル動的割当方式によ
り達成される。
(4) Structure of the invention According to the present invention, this object is described in the claims, and in a control program for an information processing device,
In addition to providing means for notifying the task name of each child task from the parent task to each child task, and means for outputting the information output to the dump file to the printer each time,
By adding an abnormal termination exit routine with the same content to each child task, and creating an access name based on the task name of the own task in the abnormal termination exit routine of the child task when the child task terminates abnormally. After allocating a dump file and outputting dump information to the dump file, the dump information is output to the printer and the binding of the dump file is released. This is achieved by a dump file dynamic allocation method which is characterized in that it can be used.

(5)発明の実施例 第1図は本発明を実施する装置の1例を示す図であって
、1は主記憶、2はプロセッサ、3はデータチャネル、
4は磁気ディスク(DASD)、5はタイプライタ、6
はプリンタを表わしている。
(5) Embodiment of the invention FIG. 1 is a diagram showing an example of an apparatus for carrying out the invention, in which 1 is a main memory, 2 is a processor, 3 is a data channel,
4 is a magnetic disk (DASD), 5 is a typewriter, 6
represents a printer.

第1図において、処理すべきプログラムは主記憶1に領
域を割υ当てられO8によってタスク単位にプロセッサ
2の処理時間を割り当てられて実行される。そして、こ
れらのタスクの実行時、該タスクが何らかの原因で異常
終了したときは、当該する主記憶1内の該当する領域の
データが磁気ティスフ4内のダンプファイルとして設定
された領′威に出力され、更にプリンタ6にリストとし
て出力される。そして、このとき、更に他のタスクが異
常終了したときは、前記ダンプファイルの内容のプリン
タ6への出力が終了したときに、当該する主記憶1内の
領域のデ(りを再びダンプファイルに出力する。このよ
うにして、複数のタスクが次々と異常終了しても、同一
ダンプファイルを使って、異常終了した総てのタスクの
ダンプ情報を得ることが出来る。
In FIG. 1, a program to be processed is allocated an area in the main memory 1, and the processing time of the processor 2 is allocated to each task by O8 for execution. When these tasks are executed, if the task terminates abnormally for some reason, the data in the corresponding area in the main memory 1 is output to the area set as a dump file in the magnetic disk 4. The list is then output to the printer 6 as a list. At this time, if another task terminates abnormally, when the output of the contents of the dump file to the printer 6 is completed, the data of the area in the main memory 1 is written again to the dump file. In this way, even if multiple tasks terminate abnormally one after another, the same dump file can be used to obtain dump information for all tasks that terminated abnormally.

以下これらの制御について説明する。These controls will be explained below.

第2図は本発明のタスクの構造を説明する図であって、
7は親タスク、8−1〜8−3は子タスク、9はメイン
処理、1oは個別処理、11は異常終了出口ルーチンを
示している。
FIG. 2 is a diagram explaining the structure of the task of the present invention,
7 is a parent task, 8-1 to 8-3 are child tasks, 9 is a main process, 1o is an individual process, and 11 is an abnormal termination exit routine.

第2図において、親タスク7はレジスタでタスクテーブ
ルのアドレスを通知することによシ子タスクを生成する
。子タスクーー1〜8−3のメイン処理9と異常終了出
口ルーチンは各子タスク共通の処理を行なう。
In FIG. 2, the parent task 7 generates a child task by notifying the address of the task table using a register. The main processing 9 and abnormal termination exit routine of child tasks 1 to 8-3 perform processing common to each child task.

親タスク7は第3図に示すようなタスクテーブルを作っ
て子タスクを管理する。第3図は子タスクがX個(1〜
m % ! )の場合について示している。
The parent task 7 creates a task table as shown in FIG. 3 to manage child tasks. Figure 3 shows that there are X child tasks (1 to
m%! ).

第4図は子タスクの異常終了時の制御の状態を示す図で
あって、8−1〜8−3は子タスク、12はメイン処理
の流れ、13は個別処理の流れ、14は異常終了の発生
、15は異常終了出口ルーチンの流れ、16はダンプフ
ァイル、17はダンプリストを表わしている。
FIG. 4 is a diagram showing the state of control when a child task terminates abnormally, where 8-1 to 8-3 are child tasks, 12 is the flow of main processing, 13 is the flow of individual processing, and 14 is abnormal termination. 15 is the flow of the abnormal termination exit routine, 16 is a dump file, and 17 is a dump list.

第4図において、子タスクのメイン処理が終了すると、
個別処理が実行されるが、何らかの原因によシ処理が異
常終了すると異常終了出口ルーチンに処理が移行して、
該ルーチンによシ動的なダンプファイル16の割り当て
が行なわれて、該ダンプファイル16に当該する主記憶
の内容がダンプ情報として出力される。上記ダンプファ
イルを動的に割υ当てるためには前述の第3図に示した
タスクテーブルが参照されて自タスクのIDによシアク
セス名が作成される。ダンプファイル16の内容をダン
プリスト17としてプリンタに出力するとダンプファイ
ルの割シ当てを解除する。その後、他の子タスクが異常
終了したときも同様な制御が行なわれその都度、同一ダ
ンプファイルを使用してダンプリストラ出力する。
In Figure 4, when the main processing of the child task is completed,
Individual processing is executed, but if the processing terminates abnormally for some reason, the processing moves to the abnormal termination exit routine.
This routine dynamically allocates the dump file 16, and the contents of the main memory concerned are output to the dump file 16 as dump information. In order to dynamically allocate the dump file, the task table shown in FIG. 3 is referred to and a system access name is created based on the ID of the task itself. When the contents of the dump file 16 are output to the printer as a dump list 17, the allocation of the dump file is released. Thereafter, similar control is performed even when other child tasks terminate abnormally, and each time the same dump file is used to output a dump restorer.

第5図は子タスクの制御を示す流れ図で、Ia)はメイ
ン処理、(b)は異常終了出口ルーチンの制御を示して
いる。
FIG. 5 is a flowchart showing the control of child tasks, where Ia) shows the main processing and Ia) shows the control of the abnormal termination exit routine.

第5図において、子タスクは目タスク名(ID)を親タ
スクからレジスタ経由で通知さ 4れることによって自
領域内に退避するもので該IDを元にアクセス名を作成
する。また異常終了出口ルーチンは制御ブロックに登録
され、処理プログラムが異常終了したとき、制御が該異
常終了出口ルーチンに移行する。
In FIG. 5, the child task is notified of the task name (ID) from the parent task via the register and is saved in its own area, and creates an access name based on the ID. Further, the abnormal termination exit routine is registered in the control block, and when the processing program terminates abnormally, control is transferred to the abnormal termination exit routine.

(6)発明の効果 本発明の方式は全子タスクに同一の異常終了出口ルーチ
ンを設け、タスクが異常終了した時点で異常終了出口ル
ーチン内で動的にダンプファイルを割シ当ててダンプ情
報を年収した後これをその都度プリンタに出力するもの
であって、親タスクからアクセス名を与えることによレ
ジスタごとにアクセス名を意識できるようにしであるの
で、アクセス名を動的に変えることによレジスタごとに
ダンプファイルを割シ当てることを可能としているので
、小容量のダンプファイルを設けるのみで、複数のタス
クが異常終了した場合の総てのダンプ情報が得られるか
ら効果は犬である。
(6) Effects of the Invention The method of the present invention provides the same abnormal termination exit routine for all child tasks, and when a task terminates abnormally, dynamically allocates a dump file within the abnormal termination exit routine and stores dump information. After the annual income is generated, it is output to the printer each time, and by giving the access name from the parent task, it is possible to recognize the access name for each register, so by dynamically changing the access name. Since it is possible to allocate a dump file for each register, just by providing a small-capacity dump file, all the dump information can be obtained when multiple tasks terminate abnormally, so the effect is great.

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

第1図は本発明を実施する装置の1例を示す図、第2図
は本発明のタスクの構造を説明する図、第3図はタスク
テーブルの例を示す図、第4図は子タスクの異常終了時
の制御の状態を示す図、第5図は子タスクの制御を示す
流れ図である。 1・・・主記憶、2・・・プロセッサ、3・・・データ
チャネル、4・・・磁気ディスク、5・・・タイプライ
タ、6・・・プリンタ、7・・・親タスク、8−1〜8
−3・・・子タスク、9・・・メイン処理、lO・・・
個別処理、11・・・異常終了出口ルーチン、12・・
・メイン処理の流れ、13・・・個別処理の流れ、14
・・・異常終了の発生、15・・・異常終了出口ルーチ
ンの流れ、16・・・ダンプ7アイル、17・・・ダン
プリスト 第1図 悴2図 第3 回 第5 (a) (b)
FIG. 1 is a diagram showing an example of a device implementing the present invention, FIG. 2 is a diagram explaining the structure of a task of the present invention, FIG. 3 is a diagram showing an example of a task table, and FIG. 4 is a diagram showing a child task. FIG. 5 is a flowchart showing the control of child tasks. 1... Main memory, 2... Processor, 3... Data channel, 4... Magnetic disk, 5... Typewriter, 6... Printer, 7... Parent task, 8-1 ~8
-3...Child task, 9...Main process, lO...
Individual processing, 11... Abnormal termination exit routine, 12...
・Main processing flow, 13...Individual processing flow, 14
...Occurrence of abnormal termination, 15.. Flow of abnormal termination exit routine, 16.. Dump 7 isle, 17.. Dump list Figure 1, Figure 2, Figure 3, 5th (a) (b)

Claims (1)

【特許請求の範囲】[Claims] 情報処理装置の制御プログラムにおいて、親タスクから
各子タスクにそれぞれの子タスクのタスク名を通知する
手段と、ダンプファイルに出力された情報をその都度プ
リンタに出力する手段とを設けると共に、各子タスクご
とに同一内容の異常終了出口ルーチンを付加せしめて、
子タスクが異常終了したとき当該子タスクの異常終了出
口ルーチン内で自タスクのタスク名を基にアクセス名を
作成することによシダンプファイルを割シ当てて該ダン
プファイルにダンプ情報が出力された後に該ダンプ情報
をプリンタに出力せしめて該ダンプファイルの拘束を解
除することによシ他の子タスクの異常終了出口ルーチン
による該ダンプファイルの使用を可能とすることを特徴
とするダンプファイル動的割当・方式。
In the control program of the information processing device, a means for notifying the task name of each child task from the parent task to each child task, and a means for outputting the information output to the dump file to the printer each time are provided. By adding an abnormal termination exit routine with the same content to each task,
When a child task terminates abnormally, a dump file is allocated by creating an access name based on the task name of the self task in the abnormal termination exit routine of the child task, and dump information is output to the dump file. The dump file operation is characterized in that the dump information is outputted to a printer after the dump file is released to release the binding of the dump file, thereby making it possible for the dump file to be used by an abnormal termination exit routine of another child task. Target allocation/method.
JP59079452A 1984-04-20 1984-04-20 Dynamic allocation system of dump file Pending JPS60222939A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59079452A JPS60222939A (en) 1984-04-20 1984-04-20 Dynamic allocation system of dump file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59079452A JPS60222939A (en) 1984-04-20 1984-04-20 Dynamic allocation system of dump file

Publications (1)

Publication Number Publication Date
JPS60222939A true JPS60222939A (en) 1985-11-07

Family

ID=13690267

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59079452A Pending JPS60222939A (en) 1984-04-20 1984-04-20 Dynamic allocation system of dump file

Country Status (1)

Country Link
JP (1) JPS60222939A (en)

Similar Documents

Publication Publication Date Title
EP0473802B1 (en) Computer with extended virtual storage concept
CN100568182C (en) The method and system of distribution work in the data handling system of subregion logically
JPH0628053B2 (en) Resource allocation control method for multiprocessor system
JPH03257644A (en) Main memory control method
JPS6367685B2 (en)
JPS60222939A (en) Dynamic allocation system of dump file
JPH0713823A (en) File resource management system of virtual computer system
JP2001282560A (en) Virtual computer control method, its performing device and recording medium recording its processing program
JPH01195562A (en) Control system for allocation of input/output device
JPS635780B2 (en)
JP2604706B2 (en) Duplex file control method
JPH11161506A (en) Dispatch method for information processor, information processor and storage medium thereof
JP2003076562A (en) Method, device for quantitatively controlling memory, computer program and recording medium
JPH0651980A (en) Arranging system for stack of information processor
JP2669042B2 (en) Automatic volume incorporation processing method in business programs
JPS58137069A (en) Multi-processor control system
JPH04370838A (en) Starting system of virtual computer
JPH0563824B2 (en)
JPS621048A (en) Virtual storage system
JPH0296833A (en) Different type job control system
JPS63109557A (en) Program load system
JPH06250923A (en) Swap area control method
JPS63178348A (en) Storage area assignment processing system
JPH01321532A (en) Memory segment control system for system shared space
JPH0471045A (en) Memory control system