JPH02304640A - Memory dump collecting system - Google Patents

Memory dump collecting system

Info

Publication number
JPH02304640A
JPH02304640A JP1126325A JP12632589A JPH02304640A JP H02304640 A JPH02304640 A JP H02304640A JP 1126325 A JP1126325 A JP 1126325A JP 12632589 A JP12632589 A JP 12632589A JP H02304640 A JPH02304640 A JP H02304640A
Authority
JP
Japan
Prior art keywords
memory
memory dump
execution time
dump collection
file
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
JP1126325A
Other languages
Japanese (ja)
Inventor
Tetsuo Sano
佐野 徹夫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1126325A priority Critical patent/JPH02304640A/en
Publication of JPH02304640A publication Critical patent/JPH02304640A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enhance the collectability of a memory image even by a small capacity by executing a memory dump collection of a process, and thereafter, executing the memory dump collection in order from the process in which a final execution time is near a system abnormality end generation time. CONSTITUTION:A memory dump collection file 2 is a file for collecting a memory at the system abnormality end generation time. A process execution time registration table 1 registers a final execution time of a process with regard to each process. At the time point when a CPU dispatch to each process is interrupted, a process execution time registering means 3 registers its time in a process execution time registration table 3. A memory dump collecting means 4 executes a memory dump collection with regard to the process which is being executed on a CPU at the system abnormality end generation time, and thereafter, refers to the table 1. Subsequently, the memory dump collection is executed in order from the process in which the final execution time is near the system abnormality end generation time, and at the time point when the file 2 becomes full, the collection of the memory dump is ended.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリダンプ収集方式に関し、特に計rlJa
システムにおけるシステム異常終了発生時のメモリダン
プ収集方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory dump collection method, and particularly to a memory dump collection method.
This paper relates to a memory dump collection method when a system terminates abnormally.

〔従来の技術〕[Conventional technology]

周知のように、計算機システムにおいてシステム異常終
了が発生した場合には、オペレーティンクシステム、(
以下、O8と略記する)によりシステム異常終了原因の
解析のための資料としてメモリダンプが収集される。
As is well known, when an abnormal system termination occurs in a computer system, the operating system (
(hereinafter abbreviated as O8), a memory dump is collected as data for analyzing the cause of the system abnormal termination.

従来のシステム異常終了発生時のメモリダンプ収集にお
いては、以下のような方式がとられていた。
Conventionally, the following method has been used to collect memory dumps when a system terminates abnormally.

■ 仮想記憶の全メモリイメージ(主記憶上に存在しな
い仮悲ページも含めて)を収集する。
■ Collect all memory images of virtual memory (including temporary pages that do not exist in main memory).

■ 主記憶の全メモリイメージを収集する・ところで、
従来のメモリダンプ収集方式では、メモリダンプ収集フ
ァイルへのメモリイメージの掃出し順序については特別
な配慮はなされていなかった。例えば、前記■の方式で
は、仮想アドレス空間としては空間番号の小さい順に、
空間内では空間内アドレスの小さい順にメモリダンプの
収集が行われており、また前記■の方式では、実メモリ
アドレスの小さい順にメモリダンプの収集が行われてい
た。
■ Collect all memory images of main memory.By the way,
In the conventional memory dump collection method, no special consideration was given to the order in which memory images are flushed to the memory dump collection file. For example, in the method (■) above, the virtual address spaces are arranged in descending order of space number.
Within the space, memory dumps are collected in ascending order of intra-space addresses, and in the method (2) above, memory dumps are collected in descending order of real memory addresses.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のメモリダンプ収集方式では、メモリダン
プ収集ファイルへのメモリイメージの掃出し順序につい
ては特別な配慮はなされていなかったので、ディスク装
置上のメモリダンプ収集ファイルの容量が小さくメモリ
ダンプ収集対象全体が格納できない場合には、システム
異常終了原因の解析のために必要なメモリイメージが得
られず、システム異常終了原因の解析が困難な場合が生
じるという欠点がある。特に、システム規模の拡大化傾
向に伴い、十分な容量のメモリダンプ収集ファイルを確
保してお(こと自体も難しくなってきているために上記
欠点は顕著になってきている。
In the conventional memory dump collection method described above, no special consideration was given to the order in which memory images are flushed to the memory dump collection file, so the size of the memory dump collection file on the disk device is small and the entire memory dump collection target is If the data cannot be stored, a memory image necessary for analyzing the cause of abnormal system termination cannot be obtained, and there is a drawback that it may be difficult to analyze the cause of abnormal system termination. In particular, as system scale tends to expand, it has become increasingly difficult to secure memory dump collection files of sufficient capacity, making the above drawbacks more prominent.

本発明の目的は、上述の点に鑑み、用意されたメモリダ
ンプ収集ファイルの容量が小さく全ソモリダンプが収集
できない場合であっても、システム異常終了原因の解析
に必要となるメモリイメージを収集できる可能性を高め
るようにしたメモリダンプ収集方式を提供することにあ
る。
In view of the above-mentioned points, an object of the present invention is to make it possible to collect memory images necessary for analyzing the cause of abnormal system termination even if the capacity of the prepared memory dump collection file is small and it is not possible to collect the entire SOMORI dump. An object of the present invention is to provide a memory dump collection method that improves performance.

〔課題を解決rるための手段〕[Means for solving problems]

本発明のメモリダンプ収集方式は、計算機システムにお
けるシステム異常終了発生時のメモリダンプ収集方式に
おいて、システム異常終了発生時のメモリダンプを収集
するためのファイルであるメモリダンプ収集ファイルと
、各プロセスについて該プロセスの最終実行時刻を登録
するプロセス実行時刻登録テーブルと、各プロセスへの
CPUディスバッチがとぎれた時点でその時刻を前記プ
ロセス実行時刻登録テーブルに登録するプロセス実行時
刻登録手段と、システム異常終了発生時にCPU上で実
行中のプロセスについてメモリダンプ収集を行った後に
前記プロセス実行時刻登録テーブルを参照して最終実行
時刻がシステム異常終了発生時刻に近いプロセスから順
にメモリダンプ収集を行い前記メモリダンプ収集ファイ
ルが満杯になった時点でメモリダンプの収集を終了する
メモリダンプ収集手段とを有する。
The memory dump collection method of the present invention is a method for collecting memory dumps when an abnormal system termination occurs in a computer system. a process execution time registration table for registering the final execution time of a process; a process execution time registration means for registering the time in the process execution time registration table when CPU dispatch to each process is interrupted; and system abnormal termination. After collecting memory dumps for the processes currently running on the CPU, the process execution time registration table is referred to, and memory dumps are collected in order from the processes whose last execution time is closest to the system abnormal termination time to create the memory dump collection file. and a memory dump collection means that finishes collecting the memory dump when the memory dump becomes full.

〔作用〕[Effect]

本発明のメモリダンプ収集方式では、メモリダンプ収集
ファイルがシステム異常終了発生時のメモリダンプを収
集するためのファイルであり、プロセス実行時刻登録テ
ーブルが各プロセスについて該プロセスの最終実行時刻
を登録し、プロセス実行時刻登録手段が各プロセスへの
CPUディスパッチがとぎれた時点でその時刻をプロセ
ス実行時刻登録テーブルに登録し、メモリダンプ収集手
段がシステム異常終了発生時にcpu上で実行中のプロ
セスについてメモリダンプ収集を行った後にプロセス実
行時刻登録テーブルを参照して最終実行時刻がシステム
異常終了発生時刻に近いプロセスから順にメモリダンプ
収集を行いメモリダンプ収集ファイルが満杯になった時
点でメモリダンプの収集を終了する。
In the memory dump collection method of the present invention, the memory dump collection file is a file for collecting a memory dump when a system abnormal termination occurs, and the process execution time registration table registers the last execution time of each process, The process execution time registration means registers the time in the process execution time registration table when the CPU dispatch to each process is interrupted, and the memory dump collection means collects a memory dump of the process running on the CPU when the system terminates abnormally. After doing so, refer to the process execution time registration table and collect memory dumps in the order of processes whose last execution time is closest to the time when the system abnormal termination occurred, and stop collecting memory dumps when the memory dump collection file becomes full. .

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

なお、本実施例のメモリダンプ収集方式が適用される計
算機システムは多重仮想記憶方式を採用しており、各仮
想アドレス空間はその用途に応して以下の2種に分類さ
れる。
Note that the computer system to which the memory dump collection method of this embodiment is applied employs a multiple virtual memory method, and each virtual address space is classified into the following two types depending on its use.

+11  システム空間ニジステム共有モジュール(O
3中核部を含む)およびシステム共通のO8制御テーブ
ルが格納される。
+11 System space sharing module (O
3 cores) and a system-common O8 control table are stored.

(2)  プロセス空間:プロセス固有のO8?l+I
I御テーブルおよびプロセス固有のコード/データ部が
格納される。
(2) Process space: process-specific O8? l+I
I control tables and process specific code/data sections are stored.

第1図は、本発明の一実施例に係るメモリダンプ収集方
式の構成を示すブロック図である0本実施例のメモリダ
ンプ収集方式は、プロセス実行時刻登録テーブルlと、
メモリダンプ収集ファイル2と、プロセス実行時刻登録
手段3と、メモリダンプ収集手段4と、上記taのメモ
リ5とから、その主要部が構成されている。
FIG. 1 is a block diagram showing the configuration of a memory dump collection method according to an embodiment of the present invention. The memory dump collection method of this embodiment includes a process execution time registration table l,
Its main parts are composed of a memory dump collection file 2, a process execution time registration means 3, a memory dump collection means 4, and the memory 5 of the ta.

メモリダンプを収集するためのファイルであるメモリダ
ンプ収集ファイル2は、6f′g気ディスク装置上のフ
ァイルである。
Memory dump collection file 2, which is a file for collecting memory dumps, is a file on the 6f'g disk device.

第2図を参照すると、プロセス実行時刻登録テーブル1
は、システム内の各プロセスを一意に識別するプロセス
番号をインデックスとするテーブルであり、各エントリ
内には該当するプロセスが最後にCPU (Centr
al  Proc、essing  [Jnlt)上で
実行された時刻が格納される。
Referring to Figure 2, process execution time registration table 1
is a table whose index is the process number that uniquely identifies each process in the system, and within each entry, the corresponding process is finally
al Proc, essing [Jnlt] The time at which it was executed is stored.

第3図を参照すると、本実施例のメモリダンプ収集方式
の処理は、システム空間メモリダンプ収集ステップ31
と、実行中プロセスのプロセス空間メモリダンプ収集ス
テップ32と、プロセス選択ステ・ノブ33と、選択プ
ロセスのプロセス空間メモリダンプ収集ステップ34と
、全プロセスメモリダンプ収集完了判定ステップ35と
からなる。
Referring to FIG. 3, the process of the memory dump collection method of this embodiment includes the system space memory dump collection step 31.
, a process space memory dump collection step 32 for the running process, a process selection knob 33, a process space memory dump collection step 34 for the selected process, and a step 35 for determining completion of all process memory dump collection.

次に、このように構成された本実施例のメモリダンプ収
集方式の動作について説明する。
Next, the operation of the memory dump collection method of this embodiment configured as described above will be explained.

プロセス実行時刻登録手段3は、ディスパッチャ(O3
中核モジュールであってcPUスケジューリングを行う
)の一部として組み込まれており、各プロセスのCI)
 Uディスパッチがとぎれる時点(タイムスライス切れ
、l10(人出力)完了待ち等)で動作し、プロセス実
行時刻登録テーブルlの該プロセスに対応するエントリ
中にその時点の時刻を書き込む。
The process execution time registration means 3 includes a dispatcher (O3
It is incorporated as part of the core module (which performs cPU scheduling), and is incorporated as part of the CI (CI) of each process.
It operates when the U dispatch is interrupted (time slice expires, waiting for l10 (human output) completion, etc.), and writes the time at that point in the entry corresponding to the process in the process execution time registration table l.

一方、メモリダンプ収集手段4は、システム異常終了発
生時に動作し、用意されたメモリダンプ収集ファイル2
に格納できる範囲でかつシステム異常終了原因の解析に
必要なメモリ5のイメージを極力もらさないように、シ
ステム異常終了発生時のメモリ5のイメージをメモリダ
ンプ収集ファイル2にコピーする。このため、メモリダ
ンプ収集手段4は、システム異常終了原因の解析に必要
となる可能性の高い仮想アドレス空間から順に、すなわ
ちシステム空間、システム異常終了発生時に実行中のプ
ロセスのプロセス空間および最終実行時刻がシステム異
常終了発生時刻に近いプロセスのプロセス空間の順にメ
モリ5からメモリダンプ収集ファイル2にメモリダンプ
の収集を行う。
On the other hand, the memory dump collection means 4 operates when the system terminates abnormally and collects the prepared memory dump collection file 2.
The image of the memory 5 at the time of abnormal system termination is copied to the memory dump collection file 2 within the range that can be stored in the memory 5 and so as to avoid losing the image of the memory 5 necessary for analyzing the cause of the system abnormal termination as much as possible. For this reason, the memory dump collection means 4 sequentially collects the virtual address spaces that are most likely to be necessary for analyzing the cause of system abnormal termination, that is, the system space, the process space of the process being executed at the time of system abnormal termination, and the last execution time. collects memory dumps from the memory 5 to the memory dump collection file 2 in the order of the process spaces of the processes closest to the system abnormal termination occurrence time.

詳しくは、メモリダンプ収集手段4は、まずシステム空
間のメモリダンプをメモリ5からメモリダンプ収集ファ
イル2に収集する(ステップ31)。
Specifically, the memory dump collection means 4 first collects a memory dump of the system space from the memory 5 into the memory dump collection file 2 (step 31).

次に、メモリダンプ収集手段4は、システム異常終了発
生時にCPU (マルチブロセソサンステムの場合には
各CPU)上で実行中であったプロセスのプロセス空間
のメモリダンプをメモリ5からメモリダンプ収集ファイ
ル2に収集する(ステップ32)。
Next, the memory dump collection means 4 collects from the memory 5 a memory dump of the process space of the process that was being executed on the CPU (or each CPU in the case of the multiprocessor system) when the system abnormal termination occurred. Collect into file 2 (step 32).

続いて、メモリダンプ収集手段4は、プロセス実行時刻
登録テーブルlを参照してシステム異常終了発生時に実
行中でなかったプロセスのうちから最終実行時刻がシス
テム異常終了発生時刻に近い順に1つのプロセスを選択
する(ステップ33)0次に、メモリダンプ収集手段4
は、選択したプロセスのプロセス空間のメモリダンプを
メモリ5からメモリダンプ収集ファイル2に収集する(
ステップ34)。続いて、メモリダンプ収集手段4は、
全プロセスのメモリダンプの収集を完了したかどうかを
判定しくステップ35)、完了していない場合にはステ
ップ33に制御を戻して、システム異常終了発生時に実
行中でなかったプロセスのうちのメモリダンプを未収集
のプロセスについてステップ33以下の処理を繰り返す
Next, the memory dump collection means 4 refers to the process execution time registration table l, and selects one process from among the processes that were not being executed when the system abnormal termination occurred, in the order in which the last execution time is closest to the system abnormal termination occurrence time. Select (step 33) 0 Next, memory dump collection means 4
collects a memory dump of the process space of the selected process from memory 5 to memory dump collection file 2 (
Step 34). Subsequently, the memory dump collection means 4
It is determined whether the collection of memory dumps of all processes has been completed (Step 35), and if it has not been completed, control is returned to Step 33 to collect memory dumps of processes that were not running when the system abnormal termination occurred. The process from step 33 onward is repeated for processes for which the data has not been collected.

そして、全プロセスのメモリダンプの収集が完了するか
、または、第3図中には表れていないが、メモリダンプ
収集中にメモリダンプ収集ファイル2が満杯になった場
合に、その時点でメモリダンプ収集手段4は処理を終了
する。
Then, when the collection of memory dumps for all processes is completed, or if the memory dump collection file 2 becomes full during memory dump collection (not shown in Fig. 3), the memory dump will be collected at that point. The collection means 4 ends the process.

なお、上記実施例では、メモリダンプ収集対象を主記憶
のメモリ5上に存在するベージのみに限定した場合につ
いて説明したが、必要に応じて仮想ページ全体のメモリ
ダンプを収集するように本発明を実施することも可能で
ある。
In the above embodiment, a case has been described in which the memory dump collection target is limited to pages existing on the memory 5 of the main memory, but the present invention can be modified to collect memory dumps of entire virtual pages as necessary. It is also possible to implement.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、cPU上で実行中
のプロセスについてメモリダンプ収集を行った後にプロ
セス実行時刻登録テーブルを参照して最終実行時刻がシ
ステム異常終了発生時刻に近いプロセスから順にメモリ
ダンプ収集を行うようにしたことにより、システム異常
終了発生時のメモリダンプ収集において用意されたメモ
リダンプ収集ファイルの容量が小さく全メモリダンプが
収集できない場合でもシステム異常終了原因の解析に必
要となるメモリイメージを収集できる可能性を高めるこ
とができるという効果である。
As described above, according to the present invention, after collecting memory dumps for processes running on a cPU, the process execution time registration table is referred to, and memory dumps are sequentially stored starting from processes whose last execution time is closest to the time when the system abnormal termination occurred. By performing dump collection, even if the memory dump collection file prepared for memory dump collection when a system abnormal termination occurs is small and the entire memory dump cannot be collected, the memory required for analyzing the cause of the system abnormal termination can be saved. This has the effect of increasing the possibility of collecting images.

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

第1図は本発明の一実施例に係るメモリダンプ収集方式
の構成を示すブロック図、 第2図は第1図中のプロセス実行時刻登録テーブルの構
成を示す図、 第3図は第1図中のメモリダンプ収集手段の処理を示す
流れ図である。 図において、 l・・・プロセス実行時刻登録テーブル、゛  2・・
・メモリダンプ収集ファイル、3・・・プロセス実行時
刻登録手段、 4・・・メモリダンプ収集手段、 5・・・メモリである。
FIG. 1 is a block diagram showing the configuration of a memory dump collection method according to an embodiment of the present invention, FIG. 2 is a diagram showing the configuration of the process execution time registration table in FIG. 1, and FIG. 3 is the same as that shown in FIG. 1. 3 is a flowchart showing processing of a memory dump collection means in FIG. In the figure, l... Process execution time registration table, ゛ 2...
- Memory dump collection file, 3... Process execution time registration means, 4... Memory dump collection means, 5... Memory.

Claims (1)

【特許請求の範囲】 計算機システムにおけるシステム異常終了発生時のメモ
リダンプ収集方式において、 システム異常終了発生時のメモリダンプを収集するため
のファイルであるメモリダンプ収集ファイルと、 各プロセスについて該プロセスの最終実行時刻を登録す
るプロセス実行時刻登録テーブルと、各プロセスへのC
PUディスパッチがとぎれた時点でその時刻を前記プロ
セス実行時刻登録テーブルに登録するプロセス実行時刻
登録手段と、システム異常終了発生時にCPU上で実行
中のプロセスについてメモリダンプ収集を行った後に前
記プロセス実行時刻登録テーブルを参照して最終実行時
刻がシステム異常終了発生時刻に近いプロセスから順に
メモリダンプ収集を行い前記メモリダンプ収集ファイル
が満杯になった時点でメモリダンプの収集を終了するメ
モリダンプ収集手段と を有することを特徴とするメモリダンプ収集方式。
[Claims] In a memory dump collection method when an abnormal system termination occurs in a computer system, a memory dump collection file that is a file for collecting a memory dump when an abnormal system termination occurs; A process execution time registration table that registers execution times, and C for each process.
a process execution time registration means that registers the time in the process execution time registration table when PU dispatch is interrupted; and a process execution time registration means that registers the time in the process execution time registration table when the PU dispatch is interrupted; A memory dump collection means that refers to a registration table, collects memory dumps in order of processes whose last execution time is closest to the time when the system abnormal termination occurred, and ends the collection of memory dumps when the memory dump collection file becomes full. A memory dump collection method comprising:
JP1126325A 1989-05-19 1989-05-19 Memory dump collecting system Pending JPH02304640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1126325A JPH02304640A (en) 1989-05-19 1989-05-19 Memory dump collecting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1126325A JPH02304640A (en) 1989-05-19 1989-05-19 Memory dump collecting system

Publications (1)

Publication Number Publication Date
JPH02304640A true JPH02304640A (en) 1990-12-18

Family

ID=14932393

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1126325A Pending JPH02304640A (en) 1989-05-19 1989-05-19 Memory dump collecting system

Country Status (1)

Country Link
JP (1) JPH02304640A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007264856A (en) * 2006-03-28 2007-10-11 Kyocera Corp Cpu monitoring system, device and method
US7383471B2 (en) 2004-12-28 2008-06-03 Hewlett-Packard Development Company, L.P. Diagnostic memory dumping
JP2009205254A (en) * 2008-02-26 2009-09-10 Fujitsu Ltd Computer, dumping program, and dumping method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7383471B2 (en) 2004-12-28 2008-06-03 Hewlett-Packard Development Company, L.P. Diagnostic memory dumping
JP2007264856A (en) * 2006-03-28 2007-10-11 Kyocera Corp Cpu monitoring system, device and method
JP2009205254A (en) * 2008-02-26 2009-09-10 Fujitsu Ltd Computer, dumping program, and dumping method

Similar Documents

Publication Publication Date Title
JP3268338B2 (en) Computer system
CN107451038B (en) Hardware event acquisition method, processor and computing system
JPH02304640A (en) Memory dump collecting system
JPH02242447A (en) Memory dump collecting system
JP2979553B2 (en) Fault diagnosis method
JPS5833631B2 (en) data processing system
JP2518390B2 (en) System performance monitoring method
JPH04223527A (en) Program executing method
JPH08286950A (en) Information processor and trace information storage method
JPS61213935A (en) Step execution system for high-level language program
JPH05143422A (en) Updated journal managing system
JPH03125236A (en) Memory dump collection system
JPH044429A (en) Automatic rearrangement linking system for virtual storing system
JPH0373033A (en) Fault analyzing system
JPH01305446A (en) Program debug support processing system
JPH03255547A (en) Memory dump output system
JPH1055294A (en) Log management system for multi-program
JPH02109147A (en) Memory dump collection system
JPS62147544A (en) Roll-back processing system
JPH02165352A (en) Dump processing system
JPH06208489A (en) Program-sorted record division managing system
JPH05250228A (en) Fault information collection system
JPS6331811B2 (en)
JPH03125237A (en) Memory dump collection system
JPH03103943A (en) Save and restoration system