JPS63153650A - Memory dump system - Google Patents

Memory dump system

Info

Publication number
JPS63153650A
JPS63153650A JP61300824A JP30082486A JPS63153650A JP S63153650 A JPS63153650 A JP S63153650A JP 61300824 A JP61300824 A JP 61300824A JP 30082486 A JP30082486 A JP 30082486A JP S63153650 A JPS63153650 A JP S63153650A
Authority
JP
Japan
Prior art keywords
program
write protection
dump
memory block
memory
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
JP61300824A
Other languages
Japanese (ja)
Inventor
Masatoshi Nishikawa
正斗志 西川
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 JP61300824A priority Critical patent/JPS63153650A/en
Publication of JPS63153650A publication Critical patent/JPS63153650A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent the execution of a program other than a dump program from being kept waiting long by installing a write protection key to each memory block and giving a function outputting contents of a memory block to other storage device in a write protection exemption processing program. CONSTITUTION:A write protection key 6 is provided to each divided memory block 5 and if a mechanical interruption takes place in write protection exemption to rewrite the content of the memory block 5, a function outputting the content of the memory block 5 to other storage device 9 is provided in the write protection exemption processing program 7 receiving the control. The write protection exemption processing program 7 is to be dumped and started only when the content of the memory block 5 whose dump is not finished is to be changed to apply dump processing to the dump program. Thus, the delay in the execution of other program is suppressed to a short time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、情報処理装置内のメモリの内容を他の記憶
装置に蓄えるダンプ処理の方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a dump processing method for storing the contents of a memory within an information processing device in another storage device.

〔従来の技術〕[Conventional technology]

第4図は従来のメモリダンプ方式の構成を示すブロック
図である。図において、1はCPU(中央処理装置)で
あり、複数個のプログラム2を順次に実行するものであ
る。この複数個のプログラム2の中にダンププログラム
3が含まれる。4はメモリであり、ダンプすべきデータ
がその中に存在する。また、メモリ4は一定のサイズに
よってブロック化されており、そのブロック化された各
々をメモリブロック5と呼ぶ。8はダンプすべきデータ
を一時格納するための出力バッファであり、そのサイズ
は1つのメモリブロック5と一致する。
FIG. 4 is a block diagram showing the configuration of a conventional memory dump method. In the figure, 1 is a CPU (central processing unit), which executes a plurality of programs 2 sequentially. A dump program 3 is included in the plurality of programs 2. 4 is a memory in which data to be dumped exists. Further, the memory 4 is divided into blocks of a fixed size, and each of the blocks is called a memory block 5. 8 is an output buffer for temporarily storing data to be dumped, and its size matches one memory block 5.

9はメモリ4の内容を蓄える他の記憶装置であり、例え
ば磁気ディスク装置である。
Reference numeral 9 denotes another storage device that stores the contents of the memory 4, such as a magnetic disk device.

第5図は、第4図のメモリダンプ方式におけるダンププ
ログラムの動作を説明するためのフローチャートである
FIG. 5 is a flowchart for explaining the operation of the dump program in the memory dump method of FIG. 4.

次に、上記第4図に示す従来のメモリダンプ方式の動作
について、第5図を参照して説明する。
Next, the operation of the conventional memory dump method shown in FIG. 4 will be described with reference to FIG. 5.

まず、ダンプ要求があった時、ダンププログラム3はC
PUIを割込み禁止状態にする(第5図のステップ10
)。このことによって、他のプログラム2の実行を禁止
する。これは、ダンプすべきメモリ4の内容を他のプロ
グラム2が変更してしまうことを防ぐためである。次に
、ダンププログラム3は1つのメモリブロック5の内容
をいったん出力バッファ8ヘコピーした後(第5図のス
テップ11)、磁気ディスク装置9に出力する(第5図
のステップ12)。ダンプすべきすべてのメモリブロッ
ク5について、この処理を繰り返して行う(第5図のス
テップ17.18)。すべてのメモリブロック5につい
て処理を終了すれば、CPUIを割込み許可状態にして
(第5因のステップ14)、他のプログラム2の実行を
許し、ダンププログラム3のダンプ処理は終了する。
First, when there is a dump request, the dump program 3
Set the PUI to an interrupt-disabled state (step 10 in Figure 5).
). This prohibits the execution of other programs 2. This is to prevent other programs 2 from changing the contents of the memory 4 to be dumped. Next, the dump program 3 once copies the contents of one memory block 5 to the output buffer 8 (step 11 in FIG. 5), and then outputs it to the magnetic disk device 9 (step 12 in FIG. 5). This process is repeated for all memory blocks 5 to be dumped (steps 17 and 18 in FIG. 5). When the processing for all memory blocks 5 is completed, the CPU is set to an interrupt enabled state (step 14 of the fifth cause), other programs 2 are allowed to be executed, and the dump processing of the dump program 3 is completed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記のような従来のメモリダンプ方式では、ダンププロ
グラム3がダンプ処理を行っている間、他のプログラム
2の実行を禁止しているので、ダンプすべきメモリ4の
サイズが大きい場合には、長時間、他のプログラム2の
実行が遅れるという問題点がめった。
In the conventional memory dump method described above, execution of other programs 2 is prohibited while the dump program 3 is performing dump processing, so if the size of the memory 4 to be dumped is large, a long There was a frequent problem that the execution of other programs 2 was delayed.

この発明は、かかる問題点を解決するためになされたも
ので、メモリブロックの内容を書き換える場合でも、他
のプログラムの実行の遅れを短時間に抑えることができ
るメモリダンプ方式を得ることを目的とする。
This invention was made in order to solve this problem, and the purpose is to obtain a memory dump method that can suppress the delay in execution of other programs to a short time even when rewriting the contents of a memory block. do.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るメモリダンプ方式は、分割された各メモ
リブロックに書込み保護キーを設置し、メモリブロック
の内容を書き換えるべく書込み保護例外の機械割込みが
発生した時に、制御を受は取る書込み保護例外処理プロ
グラム内に、メモリブロックの内容を他の記憶装置に出
力する機能を持たせたものである。
The memory dump method according to the present invention installs a write protection key in each divided memory block, and takes control of write protection exception processing when a write protection exception machine interrupt occurs to rewrite the contents of the memory block. This is a program that has a function to output the contents of a memory block to another storage device.

〔作用〕[Effect]

この発明のメ% IJダンプ方式においては、書込み保
護例外処理プログラムは、ダンプすべきであり、かつダ
ンプが完了していないメモリブロックの内容を変更しよ
うとした時のみ起動して、ダンププログラムのダンプ処
理を行う。
In the IJ dump method of this invention, the write protection exception handling program is activated only when the contents of a memory block that should be dumped and has not been completely dumped is started, and the write protection exception handling program Perform processing.

〔実施例〕〔Example〕

第1図はこの発明の一実施例であるメモリダンプ方式の
構成を示すブロック図である。図において、1はCPU
(中°央処理装置)であり、複数個のプログラム2を順
次に実行するものである。この複数個のプログラム2の
中にダンププログラム3が含まれる。4はメモリであり
、ダンプすべきデータがその中に存在する。また、メモ
リ4は一定のサイズによってブロック化されており、そ
のブロック化された各々をメモリブロック5と呼ぶ。
FIG. 1 is a block diagram showing the configuration of a memory dump method which is an embodiment of the present invention. In the figure, 1 is the CPU
(central processing unit), which executes a plurality of programs 2 sequentially. A dump program 3 is included in the plurality of programs 2. 4 is a memory in which data to be dumped exists. Further, the memory 4 is divided into blocks of a fixed size, and each of the blocks is called a memory block 5.

1つのメモリブロック5に1個の書込み保護キー6が存
在する。7は、あるプログラム2が書込み保護例外の機
械割込みを起こした時に実行される書込みIM撞例外処
理プログラムである。8はダンプすべきデータを一時格
納するための出力バッファであり、そのサイズは1つの
メモリブロック5と一致する。9はメモリ4の内容を蓄
える他の記憶装置、すなわちダンプ処理の結果を格納す
る記憶装置、例えば磁気ディスク装置である。
One write protection key 6 exists in one memory block 5. 7 is a write IM exception handling program that is executed when a certain program 2 causes a machine interrupt of a write protection exception. 8 is an output buffer for temporarily storing data to be dumped, and its size matches one memory block 5. Reference numeral 9 designates another storage device that stores the contents of the memory 4, that is, a storage device that stores the results of dump processing, such as a magnetic disk device.

第2図は、第1図のメモリダンプ方式における書込み保
護例外処理プログラムの動作を説明するためのフローチ
ャート、第3図は、第1図のメモリダンプ方式における
ダンププログラムの動作を説明するためのフローチャー
トである。
2 is a flowchart for explaining the operation of the write protection exception handling program in the memory dump method of FIG. 1, and FIG. 3 is a flowchart for explaining the operation of the dump program for the memory dump method of FIG. 1. It is.

次に、上記第1図に示すこの発明の一実施例であるメモ
リダンプ方式の動作について、第2図及び第3図を参照
して説明する。まず、書込み保護例外処理プログラム7
の動作について説明する。
Next, the operation of the memory dump system, which is an embodiment of the present invention shown in FIG. 1, will be explained with reference to FIGS. 2 and 3. First, write protection exception handling program 7
The operation will be explained.

この書込み保護例外処理プログラム7が実行されるのは
、あるプログラム2が書込み保鞭キー6のセットされた
メモリブロック5内の内容を書き換えようとして、書込
み保護例外の機械割込みが発生した時である。書込み保
護例外処理プログラム7は、最初にCPUIを割込み禁
止状態にしく第2図のステップ10)、次に、書込み保
護例外が発生したメモリブロック5の内容をいったん出
力バッファ8にコピーした後(第2図のステップ11)
、磁気ディスク装置9に出力する(第2図のステップ1
2)。その後に、書込み保護例外が発生したメモリプロ
yり5の書込み保護キー6を取り外しく第2図のステッ
プ13)、CPUIの割込み許可を行って(第2図のス
テップ14)、動作は終了する。この動作の終了後、薯
込み保護例外を引き起こしたプログラム2は、この書込
み保護例外を引き起こした命令を再び実行する。この時
は、該当メモリブロック5は書込み保護キー6がセット
されていないので、書込み保護例外の機械割込みは発生
せず、プログラム2は命令の実行を継続できる。
This write protection exception handling program 7 is executed when a program 2 attempts to rewrite the contents of the memory block 5 to which the write hold key 6 is set and a write protection exception machine interrupt occurs. . The write protection exception handling program 7 first places the CPUI in an interrupt disabled state (step 10 in FIG. 2), then copies the contents of the memory block 5 where the write protection exception has occurred to the output buffer 8 (step Step 11 in Figure 2)
, output to the magnetic disk device 9 (step 1 in Fig. 2).
2). After that, the write protection key 6 of the memory processor 5 in which the write protection exception occurred is removed (step 13 in Figure 2), and CPUI interrupts are enabled (step 14 in Figure 2), and the operation ends. . After this operation is completed, the program 2 that caused the write protection exception re-executes the instruction that caused the write protection exception. At this time, since the write protection key 6 is not set in the corresponding memory block 5, a machine interrupt due to a write protection exception does not occur, and the program 2 can continue executing instructions.

次に、ダンププログラム3の動作について説明する。ま
ず、ダンプ要求があった時、ダンププログラム3はCP
UIを割込み禁止状態にする(第3図のステップ10)
。次いで、ダンプすべきすべてのメモリブロック5内の
書込み保護キー6をセットした後(第3図のステップ1
5)、CPU1を割込み許可する(第3図のステップ1
4)。
Next, the operation of the dump program 3 will be explained. First, when there is a dump request, the dump program 3
Set the UI to interrupt-disabled state (step 10 in Figure 3)
. Next, after setting the write protection keys 6 in all memory blocks 5 to be dumped (step 1 in FIG.
5), enable interrupts for CPU1 (step 1 in Figure 3).
4).

続いて、ダンププログラム3は1つのメモリブロック5
内の内容の一部分を読み取り、直ちに同一データを書き
込む(第3図のステップ16)。この時、該当メモリブ
ロック5に書込み保護キー6がセットされているかどう
かは、他のプログラム2の動作に依存する。他のプログ
ラム2が該当メモリブロック5の内容を書き換えていな
ければ、書込み保護キー6がセットされているので、ダ
ンププログラム3が書込み保護例外の機械割込みを引き
起こす。すると、前述のとおり書込み保護例外処理プロ
グラム7が起動して、該当メモリブロック5の内容を磁
気ディスク装置9に出力し、該当メモリブロック5の書
込み保護キー6を取り外す。次に、ダンププログラム3
が動作する時には、該当メモリブロック5については書
込み保護例外の機械割込は発生しない。一方、他のプロ
グラム2が該当メモリブロック5の内容を書き換えてい
た場合は、すでに該当メモリブロック5に対して書込み
保護例外処理プログラム7が動作し、書込み保護キー6
は取り外されているので、ダンププログラム3は書込み
保護例外の機械割込みは引き起こさない。ダンププログ
ラム3は1つのメモリブロック5について上記の処理を
行った後に、異なるメモリプロ、り5について同様の処
理を繰り返す(第3図のステップ17.18)。ダンプ
すべきすべてのメモリプロ、り5についての処理が終了
した時、ダンププログラム3はダンプ処理を終了する。
Subsequently, the dump program 3 dumps one memory block 5
A portion of the contents is read and the same data is immediately written (step 16 in FIG. 3). At this time, whether the write protection key 6 is set in the corresponding memory block 5 depends on the operation of other programs 2. If another program 2 has not rewritten the contents of the corresponding memory block 5, the write protection key 6 is set, so the dump program 3 causes a machine interrupt of a write protection exception. Then, as described above, the write protection exception handling program 7 is activated, outputs the contents of the corresponding memory block 5 to the magnetic disk device 9, and removes the write protection key 6 of the corresponding memory block 5. Next, dump program 3
When the memory block 5 operates, no machine interrupt due to a write protection exception occurs for the corresponding memory block 5. On the other hand, if another program 2 has rewritten the contents of the corresponding memory block 5, the write protection exception handling program 7 has already operated on the corresponding memory block 5, and the write protection key 6
has been removed, so dump program 3 does not cause a machine interrupt for the write protection exception. After the dump program 3 performs the above processing for one memory block 5, it repeats the same processing for a different memory block 5 (steps 17 and 18 in FIG. 3). When processing for all memory programs 5 to be dumped is completed, the dump program 3 ends the dump processing.

なお、上記実施例では、ダンププログラム3はメモリブ
ロック5内にデータを書き込む場合について説明したが
、該当メモリブロック5の書込み保護キー6の状態を調
べ、セットがされている時には、書込み保護例外処理プ
ログラム7を実行するようにしても良い。
In the above embodiment, the dump program 3 writes data into the memory block 5. However, the state of the write protection key 6 of the corresponding memory block 5 is checked, and if it is set, write protection exception handling is performed. Program 7 may also be executed.

また、上記実施例では、出力バッファ8は1個しか存在
していなかったが、複数個の出力バッファ8を設けても
良い。
Further, in the above embodiment, only one output buffer 8 was provided, but a plurality of output buffers 8 may be provided.

〔発明の効果〕 この発明は以上説明したとおり、メモリダンプ方式にお
いて、分割された各メモリブロックに書込み保護キーを
設置し、メモリブロックの内容を書き換えるべく書込み
保護例外の機械割込みが発生した時に、制御を受は取る
書込み保護例外処理プログラム内に、メモリブロックの
内容を他の記憶装置に出力する機能を持たせた構成とし
たので、ダンププログラム以外のプログラムの実行が長
時間待たされることがないという優れた効果を奏するも
のである。
[Effects of the Invention] As explained above, in the memory dump method, this invention installs a write protection key in each divided memory block, and when a machine interrupt of a write protection exception occurs to rewrite the contents of the memory block, The write protection exception handling program that receives control has a function to output the contents of the memory block to another storage device, so the execution of programs other than the dump program will not have to wait for a long time. This has an excellent effect.

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

第1図はこの発明の一実施例であるメモリダンプ方式の
構成を示すブロック図、第2図は、第1図のメモリダン
プ方式における書込み採掘例外処理プログラムの動作を
説明するためのフローチャート、第3図は、第1図のメ
モリダンプ方式におけるダンププログラムの動作を説明
するためのフローチャート、第4図は従来のメモリダン
プ方式の構成を示すブロック図、第5図は、第4図のメ
モリダンプ方式におけるダンププログラムの動作を説明
するためのフローチャートである。 図において1,1・・・CPU(中央処理装置)、2・
・・プログラム、3・・・ダンププログラム、4・・・
メモリ、5・・・メモリブロック、6・・・書込み保護
キー、7・・・書込み保護例外処理プログラム、8・・
・出力バッファ、9・・・磁気ディスク−i置、10〜
18・・・ステップである。 なお、各図中、同一符号は同一、又は相当部分を示す。
FIG. 1 is a block diagram showing the configuration of a memory dump method that is an embodiment of the present invention, and FIG. 2 is a flow chart for explaining the operation of a write mining exception handling program in the memory dump method of FIG. 3 is a flowchart for explaining the operation of the dump program in the memory dump method of FIG. 1, FIG. 4 is a block diagram showing the configuration of the conventional memory dump method, and FIG. 5 is a flowchart for explaining the operation of the dump program in the memory dump method of FIG. 4. 3 is a flowchart for explaining the operation of a dump program in the method. In the figure, 1, 1...CPU (central processing unit), 2...
...Program, 3...Dump program, 4...
Memory, 5...Memory block, 6...Write protection key, 7...Write protection exception handling program, 8...
・Output buffer, 9...Magnetic disk-i location, 10~
18...Step. In each figure, the same reference numerals indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] ダンプすべきメモリを幾つかのメモリブロック単位に分
割し、各々のメモリブロック単位に書込み保護キーを設
け、メモリブロックの内容を書き換えるべく書込み保護
例外の機械割込みが発生した時を契機として、そのメモ
リブロックの内容をダンプすることを特徴とするメモリ
ダンプ方式。
The memory to be dumped is divided into several memory blocks, a write protection key is provided for each memory block, and when a machine interrupt of a write protection exception occurs to rewrite the contents of the memory block, the memory is A memory dump method characterized by dumping the contents of blocks.
JP61300824A 1986-12-17 1986-12-17 Memory dump system Pending JPS63153650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61300824A JPS63153650A (en) 1986-12-17 1986-12-17 Memory dump system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61300824A JPS63153650A (en) 1986-12-17 1986-12-17 Memory dump system

Publications (1)

Publication Number Publication Date
JPS63153650A true JPS63153650A (en) 1988-06-27

Family

ID=17889546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61300824A Pending JPS63153650A (en) 1986-12-17 1986-12-17 Memory dump system

Country Status (1)

Country Link
JP (1) JPS63153650A (en)

Similar Documents

Publication Publication Date Title
JP2539199B2 (en) Digital processor controller
US7840768B2 (en) Memory-controller-embedded apparatus and procedure for achieving system-directed checkpointing without operating-system kernel support
JPH0760388B2 (en) Pipeline control circuit
JPH0810437B2 (en) Guest execution control method for virtual machine system
JPH01303529A (en) Invalidation system for retrial point
JPS63153650A (en) Memory dump system
JP2000029690A (en) Method and device for data processing
JP2671160B2 (en) Exception handling method
JP2562838B2 (en) Processor and store buffer control method
JP2552738B2 (en) Data processing device
JP2001265750A (en) Memory controller
JP3130798B2 (en) Bus transfer device
JPH08161185A (en) Guest execution control system for virtual computer system
JPS6148741B2 (en)
JPS63157238A (en) Computer
JP2584528Y2 (en) Information processing device
JPH01300352A (en) Dump area instruction control system
JP2551139B2 (en) Information processing device
JPS5938827A (en) Microprocessor ipl system
JPS6149695B2 (en)
JPH0535499A (en) Data processing device and method
JPH02219145A (en) Missing page processing system
JPH01240941A (en) Information processor
JPS60196847A (en) Microprogram control system
JPH02268348A (en) Data processing system