JPH07244613A - Dual-memory control method - Google Patents

Dual-memory control method

Info

Publication number
JPH07244613A
JPH07244613A JP6035985A JP3598594A JPH07244613A JP H07244613 A JPH07244613 A JP H07244613A JP 6035985 A JP6035985 A JP 6035985A JP 3598594 A JP3598594 A JP 3598594A JP H07244613 A JPH07244613 A JP H07244613A
Authority
JP
Japan
Prior art keywords
memory
data
error
analysis
mpu
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.)
Withdrawn
Application number
JP6035985A
Other languages
Japanese (ja)
Inventor
Hiroshi Muto
博 武藤
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 JP6035985A priority Critical patent/JPH07244613A/en
Publication of JPH07244613A publication Critical patent/JPH07244613A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Hardware Redundancy (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To minimize the influence of fault occurrence by storing an analytic program in a stand-by memory and taking a fault analysis if an error which needs to be analyzed occurs, and restoring the contents of the stand-by memory to the state before the fault occurrence after the fault analysis is taken. CONSTITUTION:It is checked whether or not there is abnormality in a device. When there is not abnormality, data are read out of an in-use memory 2a and an error of the read data is checked. When no error is found, the data are transferred to an MPU 1. Once abnormality in the device is confirmed, information is stored in an error register, a reset circuit 6 resets the MPU 1, and a data selection part 3 switches a readout destination memory from the in-use memory 2a to the stand-by memory 2b. After the MPU 1 is reset, the device is started up under the control of the stand-by memory 2b and a communication is restarted; and the fault analytic program is loaded to an analytic program storage area in the stand-by memory 2b to takes the fault analysis. After the analysis, a data selection part 3 switches the data readout destination memory to the in-use memory 2a.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は二重化メモリを備えた装
置における、障害発生時の復旧方法に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for recovering from a failure in a device having a dual memory.

【0002】[0002]

【従来の技術】図6は従来技術におけるブロック図であ
る。本図において、21はMPU、22はメモリ、23
は障害検出回路、24はリセット回路である。図6に示
した装置における障害発生時の動作を以下に説明する。
2. Description of the Related Art FIG. 6 is a block diagram of the prior art. In the figure, 21 is an MPU, 22 is a memory, and 23.
Is a failure detection circuit, and 24 is a reset circuit. The operation when a failure occurs in the device shown in FIG. 6 will be described below.

【0003】装置内に異常が発生すると、障害検出回路
23が感知し、エラー信号をリセット回路24に転送す
る。リセット回路24は、MPU21に強制的にリセッ
トをかけて動作ストップさせる。再立ち上げ後、メモリ
22に障害解析プログラムをロードし、障害解析を行
う。
When an abnormality occurs in the device, the fault detection circuit 23 senses it and transfers an error signal to the reset circuit 24. The reset circuit 24 forcibly resets the MPU 21 to stop the operation. After restarting, the failure analysis program is loaded into the memory 22 and failure analysis is performed.

【0004】[0004]

【発明が解決しようとする課題】従来技術においては上
記のように動作することにより、以下のような問題点が
あった。 1.障害が発生するとMPUにリセットをかけるので、
障害情報が収集できない。従って、障害解析の手掛かり
となる情報が得られず、障害解析に時間を要する。 2.障害解析プログラムをメモリにロードすることによ
り、元に存在したデータを消去せざるを得ない。 3.メモリ自体に異常がある場合、障害プログラムが正
常に働かず、障害解析ができない可能性がある。
In the prior art, the following problems occur due to the operation as described above. 1. When a failure occurs, the MPU is reset, so
Failure information cannot be collected. Therefore, information that may be a clue for failure analysis cannot be obtained, and failure analysis takes time. 2. By loading the failure analysis program into the memory, the original data must be erased. 3. If the memory itself is abnormal, the faulty program may not work properly and fault analysis may not be possible.

【0005】本発明は、障害発生による影響を最小限に
とどめ、信頼性の高いメモリを提供することを目的とす
る。
It is an object of the present invention to provide a highly reliable memory which minimizes the influence of failure occurrence.

【0006】[0006]

【課題を解決するための手段】図1に本発明の原理フロ
ーチャートである。図1のフローチャートにおける各処
理を以下に説明する。1〜7はそれぞれ図1の1〜7の
処理に対応する。 1:装置内の異常の有無を調べる。 2:処理1で異常がなければ現用メモリからデータを読
出す。 3:読出したデータの誤り調べる。 4:処理3で誤りがなければデータをMPUへ転送す
る。 5:処理3で誤りが発生していれば、予備用メモリから
データを読出す。 6:処理1で異常を検出すると、予備用メモリを用いて
障害解析を行う。 7:予備用メモリの内容を異常発生前の状態に復元す
る。
FIG. 1 is a flowchart of the principle of the present invention. Each process in the flowchart of FIG. 1 will be described below. 1 to 7 correspond to the processes of 1 to 7 in FIG. 1, respectively. 1: Examine the device for abnormalities. 2: If there is no abnormality in the process 1, the data is read from the active memory. 3: Check the read data for errors. 4: If there is no error in the process 3, the data is transferred to the MPU. 5: If an error occurs in the process 3, the data is read from the spare memory. 6: When an abnormality is detected in the process 1, the failure analysis is performed using the spare memory. 7: The contents of the spare memory are restored to the state before the abnormality occurred.

【0007】[0007]

【作用】通常時において、MPUはデータを現用メモ
リ、予備用メモリの両方にデータを書込み、データを読
み出すときは、現用メモリを読出先メモリとして選択
し、現用メモリから読み出したデータをMPUに転送す
る。読み出しデータにエラーが確認されると、読出先メ
モリを予備用メモリに切替え、予備用メモリ2bから読
み出したデータをMPUに転送する。
In normal operation, the MPU writes data to both the working memory and the spare memory, and when reading the data, the working memory is selected as the read destination memory and the data read from the working memory is transferred to the MPU. To do. When an error is confirmed in the read data, the read destination memory is switched to the spare memory, and the data read from the spare memory 2b is transferred to the MPU.

【0008】しかし、装置内部に障害解析を必要とする
ような重度の異常が発生した場合、予備用メモリに障害
解析用プログラムをロードして障害解析を行う。これに
より異常発生の場所や現象を認識できる。また予備用メ
モリの領域を使用して解析を行うので異常発生場所が現
用メモリでも障害解析ができる。解析終了後は、メモリ
二重化の機構を利用し、現用メモリのデータを予備用メ
モリにロードすることにより、予備用メモリの内容を異
常発生前の状態に復元できる。
However, when a serious abnormality that requires a failure analysis occurs inside the apparatus, the failure analysis program is loaded into the spare memory and the failure analysis is performed. This makes it possible to recognize the place and phenomenon of the abnormality. In addition, since the analysis is performed using the area of the spare memory, the failure analysis can be performed even if the abnormal place is the current memory. After the analysis is completed, the memory duplication mechanism is used to load the data in the working memory into the spare memory, whereby the contents of the spare memory can be restored to the state before the abnormality occurred.

【0009】[0009]

【実施例】図2〜図5に本発明の実施例における説明図
を示す。図2は本発明の一実施例としての二重化メモリ
を備えた装置のブロック図である。図3は本発明の実施
例のフローチャートである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIGS. 2 to 5 are explanatory views of an embodiment of the present invention. FIG. 2 is a block diagram of an apparatus having a duplicated memory as an embodiment of the present invention. FIG. 3 is a flowchart of the embodiment of the present invention.

【0010】図4は装置内部に異常が認められてから、
メモリを現用メモリ2aから予備用メモリ2bに切り替
えるまでのタイムチャートである。図5は現用メモリ2
a及び予備用メモリ2bに格納されている情報を示した
図である。図2において、1はMPU、2はメモリであ
り現用メモリ2aと予備用メモリ2bに分かれている。
3はデータ選択部、4データチェック部、5は障害検出
部、6はリセット回路、7はエラーレジスタである。
FIG. 4 shows that after an abnormality is found inside the device,
It is a time chart until the memory is switched from the working memory 2a to the spare memory 2b. Figure 5 shows the working memory 2
It is a figure showing the information stored in a and spare memory 2b. In FIG. 2, 1 is an MPU and 2 is a memory, which is divided into a working memory 2a and a spare memory 2b.
3 is a data selection unit, 4 is a data check unit, 5 is a failure detection unit, 6 is a reset circuit, and 7 is an error register.

【0011】図中、データ選択部3は現用メモリ2a及
び予備用メモリ2bの一方からデータを読出してMPU
1に転送する。データチェック部4は読み出したデータ
の誤りを調べるため、パリティチェック等を行う。障害
検出部5は、装置内の各部を監視し障害の検出を行う。
In the figure, a data selection unit 3 reads out data from one of the working memory 2a and the spare memory 2b and outputs it to the MPU.
Transfer to 1. The data check unit 4 performs a parity check or the like to check an error in the read data. The failure detection unit 5 monitors each unit in the device and detects a failure.

【0012】リセット回路6は、障害検出部5が異常を
確認するとMPU1にリセットをかける。エラーレジス
タ7は、障害情報を記憶し、障害解析プログラム実行時
に参照される。以下に図3のフローチャートに従って、
本発明における二重化メモリの制御手順を説明する。1
〜14は、それぞれ図3の1〜14の処理に対応する。 1:装置内部には何らかの異常が発生する場合があり、
障害検出部が装置内の異常を監視している。 2:通常時は現用メモリ2a及び予備用メモリ2bにデ
ータが書き込まれ、データの読出しはデータ選択部3に
より現用メモリ2aのデータを読みだすように設定され
ており、処理1で異常が検出されていなければ、データ
を読出す。 3:読出したデータに対し、データチェック部4でパリ
ティチェック等の検査を行う。 4:処理4で誤りはないと判断すればCPU1に転送す
る。 5:データチェック部4での検査の結果、誤りがあれば
データ選択部3はデータの読出先を予備用メモリ2bに
変更する。 6:予備用メモリ3bからデータを読み込む。 7:処理1で異常が発生すれば障害検出回路5が感知
し、リセット回路6及びデータ選択部3にエラー信号を
送る。 8:エラー情報がエラーレジスタ7に格納される。 9:リセット回路6は、障害情報がエラーレジスタ7に
格納されるのを待ってMPU1にリセットをかける。 10:データ選択部3は、データの読出先メモリを予備
用メモリ2bに切り替える。
The reset circuit 6 resets the MPU 1 when the failure detecting section 5 confirms an abnormality. The error register 7 stores failure information and is referred to when the failure analysis program is executed. Below, according to the flowchart of FIG.
The control procedure of the duplicated memory in the present invention will be described. 1
To 14 correspond to the processes of 1 to 14 in FIG. 3, respectively. 1: Some abnormality may occur inside the device,
The fault detection unit monitors the device for abnormalities. 2: Normally, data is written in the working memory 2a and the spare memory 2b, and the data is set to read the data in the working memory 2a by the data selection unit 3, and an abnormality is detected in the process 1. If not, the data is read. 3: The data check unit 4 performs a check such as a parity check on the read data. 4: If it is determined in processing 4 that there is no error, it is transferred to the CPU 1. 5: If there is an error as a result of the check by the data check unit 4, the data selection unit 3 changes the data read destination to the spare memory 2b. 6: Read data from the spare memory 3b. 7: If an abnormality occurs in process 1, the fault detection circuit 5 senses it and sends an error signal to the reset circuit 6 and the data selection unit 3. 8: Error information is stored in the error register 7. 9: The reset circuit 6 resets the MPU 1 after waiting for the failure information to be stored in the error register 7. 10: The data selection unit 3 switches the data read memory to the spare memory 2b.

【0013】図4は上記手順7〜10におけるタイムチ
ャートであり、異常を確認すると、エラーレジスタ7に
情報を蓄え、リセット回路6がMPU1にリセットをか
け、データ選択部3が読出先メモリを現用メモリ2aか
ら予備用メモリ2bへ切り替える。 11:リセット後、予備用メモリ2bの制御により装置
が立ち上がり、通信が再開され、障害解析用プログラム
が予備用メモリ2bの解析プログラム格納領域にロード
される。 12:障害解析などが実行される。解析プログラムが実
行されると、エラーレジスタ7の内容を参照しながら、
装置内の各部を調査していき、エラーの現象やエラーを
起こした場所等を解明していく。 13: 解析終了後、データ選択部3はデータ読出先メ
モリを現用メモリ2aに切り替える。 14:また、解析プログラムをロードしたため、元に存
在していたデータが破壊されてしまった予備用メモリ2
bの障害解析プログラム格納領域を復元する必要があ
る。以下にその説明をする。
FIG. 4 is a time chart in steps 7 to 10. When an abnormality is confirmed, information is stored in the error register 7, the reset circuit 6 resets the MPU 1, and the data selection unit 3 uses the read destination memory. The memory 2a is switched to the spare memory 2b. 11: After reset, the device is started up by control of the spare memory 2b, communication is restarted, and the failure analysis program is loaded into the analysis program storage area of the spare memory 2b. 12: Failure analysis and the like are executed. When the analysis program is executed, referring to the contents of the error register 7,
By investigating each part in the device, we will clarify the phenomenon of the error and the place where the error occurred. 13: After the analysis is completed, the data selection unit 3 switches the data read destination memory to the working memory 2a. 14: In addition, since the analysis program was loaded, the original memory was destroyed and the spare memory 2
It is necessary to restore the failure analysis program storage area of b. The explanation will be given below.

【0014】図5(a)は現用メモリ2a、図5(b)
は予備用メモリ2bの内容を示している。現用メモリ2
a、予備用メモリ2bには共通固定エリアがあり、メモ
リ書込み/読込みプログラム、退避アドレス、通信プロ
グラムが記憶されている。ここで、退避アドレスとは現
用メモリ2aの解析プログラム格納領域に対応する領域
の先頭アドレスα及び最後尾アドレスβのことである。
FIG. 5A shows the working memory 2a and FIG. 5B.
Indicates the contents of the spare memory 2b. Working memory 2
a, the spare memory 2b has a common fixed area in which a memory write / read program, a save address, and a communication program are stored. Here, the save addresses are the start address α and the end address β of the area corresponding to the analysis program storage area of the active memory 2a.

【0015】MPU1は現用メモリ2aの退避領域に格
納されているデータ(アドレスα、アドレスβ)を読出
し、現用メモリ2aのアドレスα〜βに記憶されている
データを読み出す。読出したデータは予備用メモリ2b
の解析プログラム格納領域に書き込まれ、障害発生前の
データが復元される。
The MPU 1 reads the data (address α, address β) stored in the save area of the active memory 2a and reads the data stored at addresses α to β of the active memory 2a. The read data is stored in the spare memory 2b.
Is written in the analysis program storage area of and the data before the failure is restored.

【0016】[0016]

【発明の効果】本発明によれば、障害発生時において、
障害情報の収集ができるので障害解析の時間が短縮でき
る。また、予備用メモリの領域を使用して障害解析を実
行するので、現用メモリに障害が発生していても解析が
行え、発生場所が現用メモリであることが認識できる。
解析終了後はメモリ二重化の利点を生かし、現用メモリ
データを予備用メモリにロードできるので、予備用メモ
リの内容の復元が可能である。
According to the present invention, when a failure occurs,
Since failure information can be collected, failure analysis time can be shortened. Further, since the failure analysis is executed by using the area of the spare memory, the analysis can be performed even if the failure occurs in the working memory, and the occurrence location can be recognized as the working memory.
After the analysis is completed, the advantage of the memory duplication is taken advantage of and the current memory data can be loaded into the spare memory, so that the contents of the spare memory can be restored.

【0017】以上のように、本発明では障害発生時にお
ける影響の軽減することができ、信頼性の向上に寄与す
るところが大きい。
As described above, according to the present invention, it is possible to reduce the influence at the time of occurrence of a failure, and largely contributes to the improvement of reliability.

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

【図1】本発明の原理フローチャートFIG. 1 is a flowchart of the principle of the present invention.

【図2】本発明の実施例を示す図FIG. 2 is a diagram showing an embodiment of the present invention.

【図3】本発明の実施例におけるフローチャートFIG. 3 is a flowchart in an embodiment of the present invention.

【図4】本発明におけるメモリ切替時のタイムチャート
を示す図
FIG. 4 is a diagram showing a time chart during memory switching according to the present invention.

【図5】本発明における現用メモリ及び予備用メモリの
内容を示す図
FIG. 5 is a diagram showing the contents of a working memory and a spare memory according to the present invention.

【図6】従来例を示す図FIG. 6 is a diagram showing a conventional example.

【符号の説明】[Explanation of symbols]

1・・・MPU 2・・・メモリ 2a・・・現用メモリ 2b・・・予備用メモリ 3・・・データ選択部 4・・・データチェック部 5・・・障害検出部 6・・・リセット回路 7・・・エラーレジスタ 1 ... MPU 2 ... Memory 2a ... Working memory 2b ... Spare memory 3 ... Data selection unit 4 ... Data check unit 5 ... Fault detection unit 6 ... Reset circuit 7 ... Error register

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】データエラーが発生すると、現用メモリか
ら予備用メモリに切替えてメモリの読出しが行われる二
重化メモリの制御方法であって、 障害解析を必要とするエラーが発生した場合、該予備用
メモリに解析用プログラムを格納して障害解析を行い、 障害解析終了後、該予備用メモリの内容を障害発生前の
状態に復元することを特徴とする二重化メモリ制御方
法。
1. A method of controlling a redundant memory, wherein when a data error occurs, the current memory is switched to a spare memory and the memory is read out. When an error requiring failure analysis occurs, the spare memory is read. A redundant memory control method, wherein an analysis program is stored in a memory for failure analysis, and after the failure analysis is completed, the contents of the spare memory are restored to the state before the failure occurred.
JP6035985A 1994-03-07 1994-03-07 Dual-memory control method Withdrawn JPH07244613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6035985A JPH07244613A (en) 1994-03-07 1994-03-07 Dual-memory control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6035985A JPH07244613A (en) 1994-03-07 1994-03-07 Dual-memory control method

Publications (1)

Publication Number Publication Date
JPH07244613A true JPH07244613A (en) 1995-09-19

Family

ID=12457167

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6035985A Withdrawn JPH07244613A (en) 1994-03-07 1994-03-07 Dual-memory control method

Country Status (1)

Country Link
JP (1) JPH07244613A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5923740A (en) * 1997-03-21 1999-07-13 Fujitsu Limited Relief method of billing data in ATM switching system
JP2014127193A (en) * 2012-12-27 2014-07-07 Fujitsu Ltd Information processing apparatus and storage information analysis method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5923740A (en) * 1997-03-21 1999-07-13 Fujitsu Limited Relief method of billing data in ATM switching system
JP2014127193A (en) * 2012-12-27 2014-07-07 Fujitsu Ltd Information processing apparatus and storage information analysis method

Similar Documents

Publication Publication Date Title
JPS598852B2 (en) Error handling method
JPH11175409A (en) Memory control system
JPH07244613A (en) Dual-memory control method
JPH07121315A (en) Disk array
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
JPH0535606A (en) Electronic disk device
JPS59180897A (en) Double structure system of battery back-up memory
JPH0217550A (en) Trouble processing system for multiprocessor system
JP3340284B2 (en) Redundant system
JPS6356751A (en) Memory patrol control system
JPH04111032A (en) Multiplexed storage device
JPH1196083A (en) Semiconductor disk device
JPS61150041A (en) Duplex information processing system
JPH10133958A (en) Communication device control circuit
JPH01209547A (en) Cache memory controller
JPH07152659A (en) Storage data protection device of computer
JPH04365145A (en) Memory fault processing method
JPH0644145A (en) Memory error saving system
JPH0341538A (en) Main storage device
JPH06348604A (en) Memory copy system
JPS6213702B2 (en)
JPH07160588A (en) Disk controller
JPH03202943A (en) Error detection system for storage device
JPH05151100A (en) Memory control system
JPS635779B2 (en)

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20010508