JPS63259733A - Contents insurance system for volatile storage device resident information - Google Patents

Contents insurance system for volatile storage device resident information

Info

Publication number
JPS63259733A
JPS63259733A JP62093049A JP9304987A JPS63259733A JP S63259733 A JPS63259733 A JP S63259733A JP 62093049 A JP62093049 A JP 62093049A JP 9304987 A JP9304987 A JP 9304987A JP S63259733 A JPS63259733 A JP S63259733A
Authority
JP
Japan
Prior art keywords
information
storage device
resident
transaction
history information
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
JP62093049A
Other languages
Japanese (ja)
Inventor
Toshiaki Tsuboi
俊明 坪井
Teizaburo Kanai
金居 貞三郎
Hiroyuki Kitajima
北嶋 弘行
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.)
Hitachi Microcomputer System Ltd
Hitachi Ltd
Original Assignee
Hitachi Ltd
Hitachi Microcomputer Engineering 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 Hitachi Ltd, Hitachi Microcomputer Engineering Ltd filed Critical Hitachi Ltd
Priority to JP62093049A priority Critical patent/JPS63259733A/en
Publication of JPS63259733A publication Critical patent/JPS63259733A/en
Pending legal-status Critical Current

Links

Landscapes

  • Retry When Errors Occur (AREA)

Abstract

PURPOSE:To improve a system performance by limiting a processing which fetches a resident information on a main storage device to a non-volatile storage device at the time of a check point, only for a part which is updated by a transaction, completed after the check point of the previous time. CONSTITUTION:At the time of the start of a system, etc., the non-volatile storage device 24 which can be accessed by a high speed random access in order to insure the contents of the restoration object information of a resident table or a resident data base, made resident on the main storage device 21, is connected to a CPU/main storage device 21. The resident information in a volatile main storage device 21 is identified at every optional sized input output unit and at the time of the periodic check point, the input output unit updated by the transaction completed after the check point of the previous time, is written to the non-volatile storage device 24. Thus, the quantity of the resident information to be fetched to the non-volatile storage device 24 at the time of the check point is reduced, and a resident information contents insurance overhead can be reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、トランザクション処理を行うデータ処理シス
テムにおける主記憶装置等の揮発性記憶装置上の内容保
証方式に係り、特に内容保証オーバヘッド削減とシステ
ム障害からの回復時間の短縮を可能とした揮発性記憶装
置上の常駐情報の内容保証方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a content guarantee method on a volatile storage device such as a main memory device in a data processing system that performs transaction processing, and particularly relates to a content guarantee method for reducing content guarantee overhead and system This invention relates to a content guarantee method for resident information on a volatile storage device that enables shortening recovery time from failure.

〔従来の技術〕[Conventional technology]

従来より、オンラインシステム等のトランザクション処
理を行うデータ処理システムでは、電源断等によりシス
テム障害が発生した場合にもシステムの論理的一貫性を
保つため、周期的にチェックポイントを設け、チェック
ポイント時に、主記憶装置上の情報を不揮発記憶装置に
記録することが、J、N、グレイ著二ノーツ オン デ
ータベース オペレイティング システムズ(1978
年)オペレーテイングシステムズ:アン アドバンスト
 コースの一章(J、 N、 Gray : Note
s onData Ba5e Opsrating S
ystems、 OperatingSystems 
: An Advanced Course、 R,B
ayer、 R,M。
Traditionally, in data processing systems that perform transaction processing such as online systems, checkpoints are set periodically to maintain the logical consistency of the system even in the event of a system failure due to a power outage, etc. Recording information in main memory to non-volatile storage is described in Notes on Database Operating Systems by J.N. Gray (1978).
) Operating Systems: An Advanced Course Chapter (J, N, Gray: Note
s onData Ba5e Opsrating S
operating systems
: An Advanced Course, R,B
ayer, R.M.

Graham and G、 Seegmuller 
(eds、 ) Springer−Verl、ag 
1978 )において論じられている。この方式によれ
ば、システム障害が発生した場合、上記の不揮発記憶装
置に格納した内容と履歴情報によりシステムの論理的一
貫性を回復することが可能である。
Graham and G, Seegmuller
(eds, ) Springer-Verl, ag.
1978). According to this method, when a system failure occurs, it is possible to restore the logical consistency of the system using the contents and history information stored in the nonvolatile storage device.

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

上記従来技術は、以下に述べる問題点があった。 The above conventional technology has the following problems.

(1)チェックポイント時に主記憶装置上の回復対象情
報の全内容を不揮発記憶装置に取得するため、その書き
出し処理がボトルネックとなリシステムの性能を低下さ
せる恐れがある。
(1) Since the entire contents of the recovery target information on the main storage device are acquired into the non-volatile storage device at the time of a checkpoint, the writing process may become a bottleneck and reduce the performance of the resystem.

(2)システム障害時の回復処理では、チェックポイン
ト以降の履歴情報を用いて、回復対象情報の論理的一貫
性の回復を行う。チェックポイントの間隔は、常駐情報
を不揮発記憶装置に取得する時間より広くする必要があ
り、あまり短かくできない。このため、システム障害回
復に必要な履歴情報の範囲が広がり、履歴情報の読みこ
みに時間がかかる。さらに、次のシステム障害に備える
ため、回復後の主記憶装置上の回復対象情報の全内容を
不揮発記憶装置に取得することも行う。これらの処理の
ためにシステム障害回復時間が長びく恐れがある。
(2) In recovery processing when a system failure occurs, the logical consistency of recovery target information is restored using history information after the checkpoint. The checkpoint interval needs to be wider than the time required to acquire resident information to the nonvolatile storage device, and cannot be made too short. For this reason, the range of history information necessary for system failure recovery expands, and it takes time to read the history information. Furthermore, in preparation for the next system failure, all contents of the recovery target information on the main storage device after recovery are acquired into the nonvolatile storage device. These processes may prolong system failure recovery time.

本発明の目的は、チェックポイン1〜時に主記憶装置上
の常駐情報を不揮発性記憶装置に取得する処理を、前回
チェックポイント以降に完了トランザクションにより更
新された部分に限定することにより、システム性能を向
上させること、およびシステム障害回復時の履歴情報の
読みこみ量を減らし、回復後の常駐情報を不揮発性記憶
装置に取得する処理量を減らすことにより、システム障
害回復時間を大幅に短縮することにある。
An object of the present invention is to improve system performance by limiting the process of acquiring resident information on the main storage device to a nonvolatile storage device from checkpoint 1 to the portion updated by completed transactions since the previous checkpoint. By reducing the amount of historical information read during system failure recovery, and reducing the amount of processing required to retrieve resident information to nonvolatile storage after recovery, system failure recovery time can be significantly shortened. be.

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

上記問題点を解決するため、本発明では、主記憶装置等
の揮発性装置内に常駐化した、障害時に回復すべき常駐
情報を任意の大きさの入出力単位ごとに識別する3周期
的なチェックポイント時に、前回チェックポイント以降
に完了したトランザクションにより更新された上記入出
力単位の内容と該入出力単位を更新した未完了トランザ
クション識別子とを不揮発性記憶装置に記録し、咳未完
了トランザクションの更新履歴情報を履歴情報ファイル
に記録する。不揮発性記憶装置としては、バッテリ装置
等により不揮発化を実現した半導体記憶装置(例えば、
半導体ディスクや不揮発性拡張記憶装置)のように高速
ランダムアクセス可能な記憶装置を用いる。システム障
害発生時には、まず、上記不揮発性記憶装置に記録した
各入出力単位の内容を揮発性記憶装置内の常駐情報領域
に読みこむ。次に、チェックポイント時に記録した未完
了トランザクションで正常に終了しなかったものについ
て、履歴情報ファイル内の更新履歴情報をもとにその影
響を排除し、チェックポイント以降に完了した1〜ラン
ザクジヨンの更新内容を履歴情報をもとに反映して、常
駐情報内容の論理的一貫性を回復する。
In order to solve the above problems, the present invention provides a three-period system that identifies resident information that resides in a volatile device such as a main memory and that should be recovered in the event of a failure for each input/output unit of arbitrary size. At the time of a checkpoint, the contents of the input/output unit updated by the transaction completed since the previous checkpoint and the uncompleted transaction identifier that updated the input/output unit are recorded in a nonvolatile storage device, and the uncompleted transaction is updated. Record history information in a history information file. Examples of nonvolatile storage devices include semiconductor storage devices that have been made nonvolatile by a battery device, etc. (for example,
A storage device that allows high-speed random access, such as a semiconductor disk or a non-volatile expanded storage device, is used. When a system failure occurs, the contents of each input/output unit recorded in the nonvolatile storage device are first read into the resident information area in the volatile storage device. Next, for uncompleted transactions recorded at the time of the checkpoint that did not end normally, we eliminate the influence based on the update history information in the history information file, and update the 1st to 3rd runs completed after the checkpoint. The logical consistency of the resident information content is restored by reflecting the content based on historical information.

〔作用〕[Effect]

上記手段の作用を以下にまとめる。 The effects of the above means are summarized below.

(1)主記憶装置等の揮発性記憶装置内に常駐化した、
障害時に回復すべき、常駐情報を任意の大きさの入出力
単位ごとに識別し、周期的なチェックポイント時に、前
回チェックポイント以降に完了したトランザクションに
より更新された上記入出力単位を不揮発性記憶装置に書
き出す。
(1) Resident in a volatile storage device such as the main storage device,
Resident information that should be recovered in the event of a failure is identified for each input/output unit of arbitrary size, and at periodic checkpoints, the input/output units updated by transactions completed since the previous checkpoint are stored in a nonvolatile storage device. Write it down.

したがって、チェックポイント時に、不揮発性記憶装置
に取得する常駐情報量が減少し、チェックポイント時の
常駐情報の内容保証オーバヘッドを削減できる。さらに
、常駐情報取得時間が短縮されるため、チェックポイン
ト間隔を短縮できる。したがって、システム障害時に、
常駐情報の論理的一貫性を回復するのに必要な履歴情報
量が減るため、システム障害回復時間が短縮できる。
Therefore, at the time of a checkpoint, the amount of resident information acquired in the nonvolatile storage device is reduced, and the overhead of guaranteeing the content of the resident information at the time of a checkpoint can be reduced. Furthermore, since the resident information acquisition time is shortened, the checkpoint interval can be shortened. Therefore, in the event of a system failure,
System failure recovery time can be reduced because the amount of historical information required to restore the logical consistency of resident information is reduced.

(2)常駐情報に対する排他単位と常駐情報内容を保証
するための入出力単位とが異なる場合、同一人出力単位
を複数のトランザクションが更新する状態が起りうる。
(2) If the exclusive unit for resident information is different from the input/output unit for guaranteeing the contents of resident information, a situation may occur in which multiple transactions update the same person's output unit.

また、周期的なチェックポイント時に書き出す入出力単
位が、未完了トランザクションにより更新されている場
合が起りうる。本発明においては、チェックポイント時
に、前回チェックポイント以降に完了したトランザクシ
ョンにより更新された入出力単位を不揮発性記憶装置に
書き出したのち、該入出力単位を更新した未完了トラン
ザクションの更新履歴情報を履歴情報ファイルに記録す
る。したがって、常駐情報は、チェックポイント時に不
揮発性記憶装置に格納した常駐情報内容と履歴情報ファ
イルの更新履歴情報により、論理的一貫性を回復できる
Furthermore, there may be cases where the input/output unit written at periodic checkpoints has been updated by an unfinished transaction. In the present invention, at the time of a checkpoint, the input/output unit updated by the transaction completed after the previous checkpoint is written to the nonvolatile storage device, and then the update history information of the uncompleted transaction that updated the input/output unit is stored in the history. Record in information file. Therefore, the logical consistency of the resident information can be restored by the resident information contents stored in the nonvolatile storage device at the time of the checkpoint and the update history information of the history information file.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図〜第6図により説明す
る。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 6.

最初に本実施例の全体構成を第2図を用いて説明する。First, the overall configuration of this embodiment will be explained using FIG. 2.

第2図は本実施例におけるデータ処理システムの全体構
成を表わす図であり、データベース等の情報群を格納し
た磁気ディスク等の情報蓄積媒体22.履歴情報ファイ
ル23の蓄積媒体である磁気ディスク(磁気テープまた
は半導体記憶装置でもよい)、システム開始時等に、主
記憶装置上に常駐化した常駐テーブルや常駐データベー
ス等の回復対象情報の内容を保証するための不揮発化し
た半導体記憶装置等の高速ランダムアクセス可能な不揮
発性記憶装置24が、CPTJ/主記憶装置21に接続
されている。不揮発性記憶装置24は、制御情報領域2
5と常駐情報保証領域26とから構成される。
FIG. 2 is a diagram showing the overall configuration of the data processing system in this embodiment, and shows an information storage medium 22, such as a magnetic disk, that stores information groups such as a database. Guarantees the contents of the recovery target information such as the magnetic disk (magnetic tape or semiconductor storage device) that is the storage medium of the history information file 23, resident tables and resident databases that are made resident on the main storage device at the time of system startup, etc. A non-volatile memory device 24 capable of high-speed random access, such as a non-volatile semiconductor memory device, is connected to the CPTJ/main memory device 21. The nonvolatile storage device 24 has a control information area 2
5 and a resident information guaranteed area 26.

第3図は、主記憶装置上の情報内容を表わす図であり、
常駐テーブルや常駐データベース等の常駐情報群32.
更新データ管理部35.不揮発性記憶装置管理部36が
、主記憶装置31上に存在する。
FIG. 3 is a diagram showing the information content on the main storage device,
Resident information group 32, such as resident tables and resident databases.
Update data management unit 35. A nonvolatile storage device management section 36 exists on the main storage device 31.

常駐情報群32を論理的な入出力単位であるページごと
に、識別する際、個々の常駐情報の排他制御範囲とペー
ジの関係は任意でよく、本実施例では、排他境界33a
〜33dで区切られる常駐情報A−Dにおいて、常駐情
報Aと同Bと同Cはページ境界34で区切られる1ペー
ジ内に配置され、常駐情報りは1ページを占有している
When identifying the resident information group 32 for each page, which is a logical input/output unit, the relationship between the exclusive control range of each resident information and the page may be arbitrary, and in this embodiment, the exclusive boundary 33a
In the resident information A to D separated by 33d, the resident information A, B, and C are arranged within one page separated by the page boundary 34, and the resident information occupies one page.

第4図は更新データ管理部35の情報内容を表わす図で
ある。トランザクション情報テーブル41は実行状態の
トランザクション毎に存在し、各トランザクションの識
別子、該トランザクションの先頭履歴情報アドレスおよ
び当該トランザクションが更新した常駐情報群32内の
ページの識別情報を保持している。更新データ管理テー
ブル42はチェックポイント時に出力するページ識別子
を管理しており、チェックポイントごとに別テーブルに
ページ識別子を登録できるように2テーブルより構成す
る。有効情報管理テーブル43は、当チェックポイント
間で登録を行っている更新デ−タ管理テーブル42を示
す情報を管理している。
FIG. 4 is a diagram showing the information contents of the update data management section 35. The transaction information table 41 exists for each transaction in the execution state, and holds the identifier of each transaction, the start history information address of the transaction, and the identification information of the page in the resident information group 32 updated by the transaction. The update data management table 42 manages page identifiers output at checkpoints, and is composed of two tables so that page identifiers can be registered in separate tables for each checkpoint. The valid information management table 43 manages information indicating the updated data management table 42 that is registered between checkpoints.

履歴情報管理テーブル44はチェックポイント処理の開
始時とページ出力後の、履歴情報ファイル23において
、次に履歴情報を書き出すアドレスを記録するテーブル
である。カレント情報テーブル45はチェックポイント
時に、不揮発性記憶装置24に書き出すページ識別子と
、該ページを書き出す常駐情報保証領域26内のブロッ
ク番号を記録するテーブルである。
The history information management table 44 is a table that records addresses at which history information is to be written next in the history information file 23 at the start of checkpoint processing and after page output. The current information table 45 is a table that records the page identifier to be written to the nonvolatile storage device 24 and the block number in the resident information guaranteed area 26 to which the page is written at the time of a checkpoint.

第5図は不揮発性記憶装置管理部36と不揮発性記憶装
置24の情報内容を表わす図である。常駐情報保証領域
26は、常駐情報群32を分割する各ページを格納する
領域であり、ページと同一サイズのブロックに分割され
ており、各ブロックには先頭から順序番号が付けられて
いる。
FIG. 5 is a diagram showing the information contents of the nonvolatile storage device management section 36 and the nonvolatile storage device 24. As shown in FIG. The resident information guarantee area 26 is an area for storing each page that divides the resident information group 32, and is divided into blocks of the same size as the page, and each block is assigned a sequence number from the beginning.

ページテーブル51は、常駐情報群32を分割する各ペ
ージに関して、不揮発性記憶装置24上の常駐情報保証
領域26内の格納位置を示す上記ブロック番号からなる
テーブルである。
The page table 51 is a table consisting of the above-mentioned block numbers indicating the storage positions in the resident information guaranteed area 26 on the nonvolatile storage device 24 for each page that divides the resident information group 32.

ブロック使用ビットマツプ52は、常駐情報保証領域2
6内の各ブロックの使用状態を表わすビットマツプであ
り、本実施例では、使用中ブロックに対しビット11′
、未使用ブロックに対しビット′0′が設定されている
。制御情報領域25は、ページテーブル51やブロック
使用ビットマツプ52などの制御情報を格納する領域で
あり、チェックポイントごとに前回と異なる領域に制御
情報を格納できるように2領域より構成する。有効領域
管理テーブル53は、有効な制御情報領域25を示す情
報を管理している。
The block usage bitmap 52 is the resident information guaranteed area 2.
This is a bitmap representing the usage status of each block in block 6. In this embodiment, bit 11' is used for the block in use.
, bit '0' is set for unused blocks. The control information area 25 is an area for storing control information such as the page table 51 and block usage bitmap 52, and is composed of two areas so that control information can be stored in a different area for each checkpoint than the previous one. The valid area management table 53 manages information indicating valid control information areas 25.

次にシステム動作について説明する。最初にシステム動
作の概要を簡単な具体例を用いて説明する。
Next, system operation will be explained. First, an overview of the system operation will be explained using a simple example.

第6図は、システム開始からシステム障害発生、回復時
までのトランザクション実行による常駐情報群32.履
歴情報ファイル23および不揮発性記憶装置24上の常
駐情報保証領域26の状態遷移を示す図である。第6図
において、常駐情報A〜Cがページ境界34で区切られ
る同一ページ内に格納されている。
FIG. 6 shows a group of resident information 32. by transaction execution from system startup to system failure occurrence and recovery. 3 is a diagram showing state transitions of a history information file 23 and a resident information guaranteed area 26 on a nonvolatile storage device 24. FIG. In FIG. 6, resident information A to C are stored within the same page separated by a page boundary 34.

システム開始時刻Toにおいて、常駐情報群32の各ペ
ージが常駐情報保証領域26に書き出される。トランザ
クション61は時刻T1に開始され、常駐情報Aのデー
タaha’ に変更し、(これを常駐情NA’ とする
)時刻T5に完了している。トランザクション62は時
刻T2に開始され、常駐情報Bのデータbをb′に変更
しくこれを常駐情報B′とする)時刻T1oにシステム
障害発生により中断されている。トランザクション63
は時刻T7に開始され、時刻T6に常駐情報Cのデータ
CをC′に変更しくこれを常駐情報C′とする)、時刻
T9に完了している。トランザクション61と63が更
新した常駐情報の更新履歴情報は、それぞれのトランザ
クションが完了するまでに履歴情報ファイル23に取得
される。
At system start time To, each page of the resident information group 32 is written to the resident information guaranteed area 26. Transaction 61 is started at time T1, changes resident information A to data aha' (this is defined as resident information NA'), and is completed at time T5. Transaction 62 is started at time T2, and is interrupted at time T1o (data b of resident information B is changed to b' and this is designated as resident information B') due to the occurrence of a system failure. transaction 63
is started at time T7, data C of resident information C is changed to C' at time T6, and this is designated as resident information C'), and completed at time T9. Update history information of the resident information updated by transactions 61 and 63 is acquired in the history information file 23 by the time each transaction is completed.

チェックポイント時T6において、前回チェックポイン
ト以降(システム開始後、最初のチェックポイントの場
合、システム開始以降)に完了トランザクションにより
更新されたページを常駐情報保証領域26に取得する。
At checkpoint time T6, pages updated by completed transactions after the previous checkpoint (in the case of the first checkpoint after the system start, after the system start) are acquired in the resident information guarantee area 26.

この処理により常駐情報A’ 、B’ 、Cが常駐情報
保証領域26に記録される。この後、完了トランザクシ
ョンが更新したページを更新した未完了トランザクショ
ンの当ページ更新履歴情報を履歴情報ファイル23に取
得する。
Through this process, the resident information A', B', and C are recorded in the resident information guaranteed area 26. Thereafter, the current page update history information of the incomplete transaction that updated the page updated by the completed transaction is acquired in the history information file 23.

システム障害発生時TIOにおいて、主記憶装置上の情
報は消失するが、不揮発性記憶装置24上の常駐情報保
証領域26内に前回チェックポイント時点までの完了ト
ランザクションの常駐情報更新結果が反映されている。
At TIO when a system failure occurs, the information on the main storage device is lost, but the resident information update results of completed transactions up to the previous checkpoint are reflected in the resident information guaranteed area 26 on the nonvolatile storage device 24. .

よって、この内容と履歴情報ファイル23内の常駐情報
更新履歴情報をもとにシステムの論理的一貫性を保証す
ることが可能である。
Therefore, it is possible to guarantee the logical consistency of the system based on this content and the resident information update history information in the history information file 23.

次に本発明に係るシステム動作をシステム開始時動作9
適當時動作、チェックポイント時動作。
Next, system operation according to the present invention is system start operation 9.
Operation at appropriate times, operation at checkpoints.

チェックポイント時動作、トランザクション障害時動作
に分けて述べる。
We will explain the operation at checkpoint and the operation at transaction failure.

(1)システム開始時の動作 システム開始時の本発明に係る処理を以下(a) 、 
(b)に示す。
(1) Operation when starting the system The processing according to the present invention when starting the system is as follows (a):
Shown in (b).

(a)ページ書き出し システム開始処理で、主記憶装置上に作成された常駐情
報群32を不揮発性記憶装置24に書き出す。具体的に
は、常駐情報報32の各ページについて、ブロック使用
ビットマツプ52で未使用ブロックをみつけて、該ビッ
トを′1′とし、当該ブロック番号をページテーブルに
記録する。その後、ページテーブル51に記録されたブ
ロックにページを書き出す。
(a) In page writing system start processing, the resident information group 32 created on the main storage device is written to the nonvolatile storage device 24. Specifically, for each page of the resident information information 32, an unused block is found in the block use bit map 52, the bit is set to '1', and the block number is recorded in the page table. After that, the page is written to the block recorded in the page table 51.

(b)制御情報の書き出し ページテーブル51.ブロック使用ビットマツプ52と
書き出し時刻を制御情報領域25に書き出す。書き出し
た領域を示すように有効領域管理テーブル53に情報を
記録する。具体的には、制御情報領域25内の2領域を
ビット10′とビット′1′に対応付け、制御情報を書
き出した領域を示すビット情報を記録する。
(b) Control information writing page table 51. The block usage bitmap 52 and the writing start time are written to the control information area 25. Information is recorded in the effective area management table 53 to indicate the written area. Specifically, two areas in the control information area 25 are associated with bit 10' and bit '1', and bit information indicating the area where the control information has been written is recorded.

有効情報管理テーブル43に初期値としてビット10″
 を記録する。
Bit 10″ is set as an initial value in the effective information management table 43.
Record.

(2)通常時動作 トランザクションの開始から終了までの本発明に係る処
理を以下(a) 、 (b)に示す。
(2) Normal operation Processing according to the present invention from the start to the end of a transaction is shown in (a) and (b) below.

(a)更新ページの記録 トランザクション処理中、常駐情報を初めて更新した場
合、当トランザクション識別子と更新データの識別情報
をトランザクション情報テーブル41に記録する。以降
、当トランザクションが常駐情報を更新した場合、更新
ページの識別情報を当トランザクション識別子が記録さ
れたトランザクション情報テーブル41に記録する。
(a) Recording of update page When resident information is updated for the first time during transaction processing, the transaction identifier and the identification information of the update data are recorded in the transaction information table 41. Thereafter, when the current transaction updates the resident information, the identification information of the updated page is recorded in the transaction information table 41 in which the current transaction identifier is recorded.

(b)履歴情報取得 トランザクションが常駐情報を更新した場合、更新履歴
情報を履歴情報ファイル23に取得する。この際、該ト
ランザクションの最初の履歴情報の先頭アドレスをトラ
ンザクション情報テーブル41に記録する。
(b) When the history information acquisition transaction updates resident information, the updated history information is acquired into the history information file 23. At this time, the start address of the first history information of the transaction is recorded in the transaction information table 41.

トランザクションが完了した場合、完了トランザクジョ
ンの更新したページ識別子を更新データ管理テーブル4
2に記録する。具体的には、トランザクション処理と非
同期に、トランザクション情報テーブル41のうち、完
了トランザクション分について、ページ識別子を有効情
報管理テーブル43の内容が示す更新データ管理テーブ
ル42に記録する。
When the transaction is completed, update the updated page identifier of the completed transaction in Data Management Table 4
Record in 2. Specifically, page identifiers for completed transactions in the transaction information table 41 are recorded in the update data management table 42 indicated by the contents of the valid information management table 43 asynchronously with transaction processing.

光処理が終了したトランザクション情報テーブル41は
クリアする。
The transaction information table 41 for which optical processing has been completed is cleared.

(3)チェックポイント時動作 チェックポイントは、システム障害時の回復に要する時
間の短縮等のために、システム開始時または前回チェッ
クポイントから一定件数の履歴情報を取得した時点など
で設定される。チェックポイント時動作のうち本発明に
係る処理を第1図(a)に示す。以下、第1図(、)に
従って説明する。
(3) Operation at checkpoint A checkpoint is set at the start of the system or at the time when a certain number of pieces of history information have been acquired from the previous checkpoint, in order to reduce the time required for recovery in the event of a system failure. Among the checkpoint operations, processing according to the present invention is shown in FIG. 1(a). Hereinafter, the explanation will be given according to FIG. 1 (,).

(a)更新データ管理テーブル切換え(ステップ有効情
報管理テーブル43のビット内容とビット′1′との排
他的論理和を有効情報管理テーブル43に記録する。こ
の処理により通常時動作において、完了トランザクショ
ンが更新したページ識別子を記録する更新データ管理テ
ーブル42が切換わる。
(a) Switching the update data management table (recording the exclusive OR of the bit contents of the step valid information management table 43 and bit '1' in the valid information management table 43. With this process, a completed transaction is The updated data management table 42 that records updated page identifiers is switched.

トランザクション情報テーブル41より、未完了トラン
ザクションの識別子と最初の履歴情報アドレスからなる
リスト(未完了トランザクションリスト)を作成する。
From the transaction information table 41, a list (incomplete transaction list) consisting of identifiers of uncompleted transactions and first history information addresses is created.

(b)履歴情報アドレス1の記録(ステップ11)履歴
情報ファイル23において、次に履歴情報を書き出すア
ドレス(履歴情報アドレス1とする)を履歴情報管理テ
ーブル44に記録する。
(b) Recording history information address 1 (step 11) In the history information file 23, the address (referred to as history information address 1) at which history information is to be written next is recorded in the history information management table 44.

(c)更新ページ出力(ステップ12)有効情報管理テ
ーブル43のビット内容とビット11′との排他的論理
和が示す更新データ管理テーブル42に記録されたペー
ジを常駐情報保証領域26に書き出す。具体的には、ブ
ロック使用ビットマツプ52で未使用ブロックをみつけ
て、該ビットを′1′とし、当該ページ識別子と割当て
たブロック番号をカレント情報テーブル45に記録する
。この後、カレント情報テーブル45に記録されたペー
ジを割当てたブロックに書き出す。ステップ12の処理
中に開始され、常駐情報を更新したトランザクションに
ついて、ステップ10の処理で作成した未完了トランザ
クションリストに該トランザクションの識別子と最初の
履歴情報アドレスを記録する。
(c) Output of updated page (step 12) The page recorded in the updated data management table 42 indicated by the exclusive OR of the bit content of the valid information management table 43 and bit 11' is written to the resident information guaranteed area 26. Specifically, an unused block is found in the block used bit map 52, the bit is set to '1', and the page identifier and assigned block number are recorded in the current information table 45. Thereafter, the page recorded in the current information table 45 is written to the allocated block. Regarding the transaction that was started during the processing in step 12 and updated the resident information, the identifier and first history information address of the transaction are recorded in the incomplete transaction list created in the processing in step 10.

(d)未完了トランザクションの履歴情報取得(ステッ
プ13) カレント情報テーブル45に記録されたページを更新し
た未完了トランザクションをトランザクション情報テー
ブル41により判定し、該当トランザクションによる当
該ページ更新情報を履歴情報ファイル23に取得する。
(d) Acquisition of history information of incomplete transactions (step 13) The incomplete transaction that updated the page recorded in the current information table 45 is determined by the transaction information table 41, and the page update information by the corresponding transaction is stored in the history information file 23. to get to.

(e)履歴情報アドレス2の記録(ステップ14)履歴
情報ファイル23において、次に履歴情報を書き出すア
ドレス(Jli歴情報アドレス2とする)を履歴情報管
理テーブル44に記録する。
(e) Recording history information address 2 (step 14) In the history information file 23, the address at which history information is to be written next (referred to as Jli history information address 2) is recorded in the history information management table 44.

(f)制御情報の取得(ステップ15)上記ステップ1
4の処理が終了するとカレント情報テーブル45に記録
されたページについて以下の(i)、(ii)の処理を
行う。
(f) Acquisition of control information (step 15) Above step 1
When the process 4 is completed, the following processes (i) and (ii) are performed for the page recorded in the current information table 45.

(i)ページテーブル51に記録されたブロック番号を
もとに、ブロック使用ビットマツプ52の当該ビットを
10′にする。
(i) Based on the block number recorded in the page table 51, the corresponding bit in the block usage bitmap 52 is set to 10'.

(ji)カレント情報テーブル45に記録されたブロッ
ク番号をページテーブル51の該当ページに記録する。
(ji) The block number recorded in the current information table 45 is recorded in the corresponding page of the page table 51.

この後、有効領域管理テーブル53のビット内容とビッ
ト′1′の排他的論理和が示す制御情報領域25に、ペ
ージテーブル51.履歴情報管理テーブル44.未完了
トランザクションリスト(トランザクション情報テーブ
ル41の未完了トランザクションの識別子と最初の履歴
情報アドレスからなるリスト)、と記録時刻を書き出す
。この後、当処理で書き出した制御情報領域25を示す
ように有効領域管理テーブル53の内容を変更する。
Thereafter, the page table 51. History information management table 44. An uncompleted transaction list (a list consisting of the identifiers of uncompleted transactions in the transaction information table 41 and the first history information address) and the recording time are written out. Thereafter, the contents of the effective area management table 53 are changed to indicate the control information area 25 written in this process.

(4)システム障害回復時の動作 システム障害回復動作のうち本発明に係る処理を第1図
(b)に示す。以下、第1図(b)に従って説明する。
(4) Operation during system failure recovery Among the system failure recovery operations, the processing according to the present invention is shown in FIG. 1(b). This will be explained below with reference to FIG. 1(b).

(a)制御情報の読みこみ(ステップ16)2つの制御
情報領域25に記録された書き込み時間を比較し、制御
情報の取得時間が遅い方の領域を示すように、有効領域
管理テーブル53にビット情報を記録し、当該領域から
ページテーブル51.履歴情報管理テーブル44.未完
了トランザクションリストを主記憶装置上に読みこむ。
(a) Reading of control information (step 16) Compare the writing times recorded in the two control information areas 25, and add bits to the effective area management table 53 to indicate the area where the control information acquisition time is slower. Record the information and extract it from the page table 51. History information management table 44. Read the incomplete transaction list into main memory.

ページマツプ51に記録されたブロック番号よりブロッ
ク使用ビットマツプ52を作成する。
A block use bitmap 52 is created from the block numbers recorded in the page map 51.

(b)常駐情報の読みこみ(ステップ17)ページテー
ブル51を参照し、各ページに対応するブロックを不揮
発性記憶装置24上の常駐情報保証領域26から、主記
憶装置内に読みこむ。
(b) Reading resident information (step 17) Referring to the page table 51, blocks corresponding to each page are read from the resident information guaranteed area 26 on the nonvolatile storage device 24 into the main storage device.

(c)B層情報による回復(ステップ18)障害発生時
点から履歴情報アドレス2まで、履歴情報ファイル23
を逆順に読み、未完了トランザクションリストに記録さ
れたトランザクションのうち、未完了のものとトランザ
クション障害が発生したものを判定する。該トランザク
ションについて、履歴情報アドレス2から該トランザク
ションのうち最初の履歴情報アドレスまで履歴情報ファ
イル23を逆順に読み、常駐情報群32に与えた影響を
排除する。
(c) Recovery using B-layer information (step 18) From the time of failure to history information address 2, history information file 23
are read in reverse order to determine which transactions are incomplete and which have a transaction failure among the transactions recorded in the incomplete transaction list. Regarding the transaction, the history information file 23 is read in reverse order from the history information address 2 to the first history information address of the transaction, and the influence on the resident information group 32 is eliminated.

この後、履歴情報アドレス1から障害発生時点まで履歴
情報ファイル23を順に読み、完了トランザクションの
常駐情報更新結果を常駐情報群32に反映し、常駐情報
群32の論理的一貫性を回復する。
Thereafter, the history information file 23 is sequentially read from the history information address 1 to the point of failure occurrence, and the resident information update result of the completed transaction is reflected in the resident information group 32, thereby restoring the logical consistency of the resident information group 32.

上記回復処理の際対象となったページ識別子を更新デー
タ管理テーブル42に記録する。
The page identifier targeted during the recovery process is recorded in the update data management table 42.

(d)変更ページの書き出しくステップ19)更新デー
タ管理テーブル42に記録されたページをチェックポイ
ント時処理と同じ方式で不揮発性記憶装置24内の常駐
情報保証領域26に書き出す。
(d) Writing changed pages Step 19) The pages recorded in the update data management table 42 are written to the resident information guaranteed area 26 in the nonvolatile storage device 24 in the same manner as the checkpoint processing.

(5)トランザクシコン障害時の動作 トランザクション障害発生時の本発明に係る処理を以下
に示す。
(5) Operation when a transaction failure occurs The processing according to the present invention when a transaction failure occurs is shown below.

通常時動作においてトランザクションが完了した際、完
了トランザクションのトランザクション管理テーブル4
1より該トランザクションが更新したページ識別子を更
新データ管理テーブル42に記録する。トランザクショ
ン障害時には、上記処理を行わず該トランザクションの
トランザクション管理テーブル41をクリアする。
Transaction management table 4 of completed transactions when a transaction is completed during normal operation
1, the page identifier updated by the transaction is recorded in the updated data management table 42. When a transaction failure occurs, the transaction management table 41 for the transaction is cleared without performing the above processing.

また、通常時動作において、更新履歴情報を履歴情報フ
ァイル23に取得したのち常駐情報を更新する場合、上
記実施例を以下のように変更することにより常駐情報内
容を保証できる。
Furthermore, in normal operation, when resident information is updated after update history information is acquired in the history information file 23, the content of the resident information can be guaranteed by modifying the above embodiment as follows.

通常時動作の履歴情報取得処理において、トランザクシ
ョンごとに履歴情報ファイル23に記録した最初と最新
の履歴情報の先頭アドレスをトランザクション情報テー
ブル41に記録する。チェックポイント時動作の制御情
報の取得処理(ステップ15)において、未完了トラン
ザクションリスト(トランザクション情報テーブル41
から未完了トランザクションの識別子、最初と最新の履
歴情報アドレスからなるリスト)を制御情報領域25に
書き出す。さらに履歴情報アドレス1の記録(ステップ
11)を省略する。
In the history information acquisition process during normal operation, the start addresses of the first and latest history information recorded in the history information file 23 for each transaction are recorded in the transaction information table 41. In the checkpoint operation control information acquisition process (step 15), the uncompleted transaction list (transaction information table 41
A list consisting of the identifier of the incomplete transaction and the first and latest history information addresses) is written to the control information area 25. Furthermore, recording of history information address 1 (step 11) is omitted.

システム障害回復時動作の履歴情報による回復処理(ス
テップ18)において、以下の処理を行う。障害発生時
点から履歴情報アドレス2まで、履歴情報ファイル23
を逆順に読み、未完了トランザクションリストに記録さ
れたトランザクションのうち、未完了またはトランザク
ション障害が発生したものと完了したものとを判定する
。未完了またはトランザクション障害が発生したトラン
ザクションについて、履歴情報アドレス2から該トラン
ザクションの最初の履歴情報アドレスのうち最古の履歴
情報アドレスまで履歴情報を逆順に読み、常駐情報群3
2に与えた影響を排除する。
In the recovery process (step 18) based on the history information of the system failure recovery operation, the following process is performed. History information file 23 from the time of failure to history information address 2
are read in reverse order, and among the transactions recorded in the incomplete transaction list, it is determined which transactions are incomplete or have a transaction failure, and which are completed. For a transaction that is incomplete or a transaction failure has occurred, the history information is read in reverse order from the history information address 2 to the oldest history information address among the first history information addresses of the transaction, and the resident information group 3 is read.
Eliminate the influence on 2.

この後、完了トランザクションの最新の履歴情報アドレ
スのうち最古の履歴情報アドレスから障害発生時点まで
履歴情報ファイルを順に読み、完了トランザクションの
常駐情報更新結果を常駐情報群32に反映し、常駐情報
群32の論理的一貫性を回復する。
After that, the history information file is sequentially read from the oldest history information address among the latest history information addresses of the completed transaction to the point of failure occurrence, and the resident information update result of the completed transaction is reflected in the resident information group 32, and the resident information group 32 logical consistency is restored.

以上述べたように、本実施例によれば前述の従来の主記
憶装置等に常駐化した常駐情報の内容保証方式における
問題点を解決できる。また本実施例の効果として、常駐
情報の排他制御単位によらず常駐情報の内容保証のため
の入出力単位を、システムの効率を考慮した大きさに設
定できる。
As described above, according to this embodiment, it is possible to solve the problems in the above-described conventional content guarantee method for resident information resident in the main storage device or the like. Further, as an effect of this embodiment, the input/output unit for guaranteeing the contents of resident information can be set to a size that takes system efficiency into consideration, regardless of the exclusive control unit of resident information.

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

本発明によれば、主記憶装置等の揮発性記憶装置内に常
駐化した常駐情報をもとにトランザクション処理を行う
情報処理システムにおいて、チェックポイント時に、前
回チェックポイント以降に完了したトランザクションに
より更新された入出力単位のみ不揮発性記憶装置に取得
するため、チエラグポイント時に常駐情報の内容保証オ
ーバヘッドが削減できる。さらに、チェックポイント時
の常駐情報取得時間が短縮されるため、チェックポイン
ト間隔を短縮できる。したがって、システム障害回復時
に常駐情報の論理的一貫性を回復するのに必要な履歴情
報量が減り、システム障害回復時間が短縮される。
According to the present invention, in an information processing system that performs transaction processing based on resident information resident in a volatile storage device such as a main storage device, at a checkpoint, information is updated by transactions completed since the previous checkpoint. Since only the input/output units that have been input/output are acquired in the nonvolatile storage device, the overhead of guaranteeing the content of resident information at the time of the checkpoint can be reduced. Furthermore, since the time required to acquire resident information at checkpoints is shortened, checkpoint intervals can be shortened. Therefore, the amount of history information required to restore the logical consistency of resident information during system failure recovery is reduced, and system failure recovery time is shortened.

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

第1図は本発明の実施例におけるチェックポイント時の
常駐情報保証処理フローチャート(a)、システム障害
回復処理フローチャート(b)、第2図は本発明の一実
施例におけるシステムの全体構成図、第3図は本実施例
における主記憶装置上の情報内容図、第4図は本実施例
における更新データ管理部の情報内容図、第5図は本実
施例における不揮発性記憶装置管理部と該装置内の情報
内容図、第6図は本実施例の具体例でのシステムの状態
遷移を表わす説明図である。 21・・・CPU/主記憶装置、22・・・情報蓄積媒
体、23・・・履歴情報ファイル、24・・・不揮発性
記憶袋置、25・・・制御情報領域、26・・・常駐情
報保証領域、31・・・主記憶装置、32・・・常駐情
報群、33a〜33d・・・排他境界、34・・・ペー
ジ境界、35・・・更新データ管理部、36・・・不揮
発性記憶装置管理部、41・・・トランザクション情報
テーブル、42・・・更新データ管理テーブル、43・
・・有効情報管理テーブル、44・・・履歴情報管理テ
ーブル、45・・・カレント情報テーブル、51・・・
ページテーブル、52・・・ブロック使用ビットマツプ
、53・・・有効領域管理テーブル、61〜62・・・
トランザクション。
FIG. 1 is a flowchart of resident information guarantee processing at checkpoint in an embodiment of the present invention (a), a flowchart of system failure recovery processing (b), FIG. 2 is an overall configuration diagram of a system in an embodiment of the present invention, 3 is an information content diagram on the main storage device in this embodiment, FIG. 4 is an information content diagram of the update data management section in this embodiment, and FIG. 5 is a diagram of the nonvolatile storage device management section and the device in this embodiment. The information content diagram in FIG. 6 is an explanatory diagram showing the state transition of the system in a specific example of this embodiment. 21... CPU/main storage device, 22... Information storage medium, 23... History information file, 24... Non-volatile storage bag, 25... Control information area, 26... Resident information Guaranteed area, 31... Main storage device, 32... Resident information group, 33a to 33d... Exclusive boundary, 34... Page boundary, 35... Update data management unit, 36... Non-volatile Storage device management unit, 41... Transaction information table, 42... Update data management table, 43.
... Effective information management table, 44... History information management table, 45... Current information table, 51...
Page table, 52...Block usage bitmap, 53...Valid area management table, 61-62...
transaction.

Claims (1)

【特許請求の範囲】[Claims] 1、主記憶装置等の揮発性記憶装置内に常駐化した常駐
情報をもとに、トランザクション処理を行う情報処理シ
ステムにおいて、障害時に回復すべき常駐情報を任意の
大きさの入出力単位ごとに識別すること、システム開始
時に、常駐情報内容が不揮発性記憶装置に格納されてい
ない場合、その内容を不揮発性記憶装置に書き出すこと
、周期的なチェックポイント時に、前回チェックポイン
ト以降に完了したトランザクションにより更新された上
記入出力単位の内容と該入出力単位を更新した未完了ト
ランザクション識別子とを不揮発性記憶装置に記録し、
該未完了トランザクションの更新履歴情報を履歴情報フ
ァイルに記録すること、システム障害回復時に、上記不
揮発性記憶装置に記録した各入出力単位の内容を揮発性
記憶装置内の常駐情報領域に読みこみ、チェックポイン
ト時に記録した未完了トランザクションで正常に終了し
なかったものについて、履歴情報ファイル内に記録した
更新履歴情報をもとにその影響を排除し、チェックポイ
ント以降に完了したトランザクションの更新内容を履歴
情報をもとに反映して、常駐情報内容を回復すること、
を特徴とする揮発性記憶装置常駐情報の内容保証方式。
1. In an information processing system that performs transaction processing based on resident information resident in volatile storage devices such as main memory, resident information that should be recovered in the event of a failure is determined for each input/output unit of arbitrary size. identifying, at system startup, if the resident information content is not stored in non-volatile storage, writing that content to non-volatile storage; and, at periodic checkpoints, depending on transactions completed since the last checkpoint; recording the updated contents of the input/output unit and the incomplete transaction identifier that updated the input/output unit in a nonvolatile storage device;
recording update history information of the incomplete transaction in a history information file; upon recovery from a system failure, reading the contents of each input/output unit recorded in the nonvolatile storage device into a resident information area in the volatile storage device; For uncompleted transactions recorded at the time of checkpoint that did not end normally, we eliminate the influence based on the update history information recorded in the history information file, and create a history of the updated contents of transactions completed after the checkpoint. Reflecting the information and restoring the resident information content;
A content guarantee method for volatile storage device resident information.
JP62093049A 1987-04-17 1987-04-17 Contents insurance system for volatile storage device resident information Pending JPS63259733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62093049A JPS63259733A (en) 1987-04-17 1987-04-17 Contents insurance system for volatile storage device resident information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62093049A JPS63259733A (en) 1987-04-17 1987-04-17 Contents insurance system for volatile storage device resident information

Publications (1)

Publication Number Publication Date
JPS63259733A true JPS63259733A (en) 1988-10-26

Family

ID=14071653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62093049A Pending JPS63259733A (en) 1987-04-17 1987-04-17 Contents insurance system for volatile storage device resident information

Country Status (1)

Country Link
JP (1) JPS63259733A (en)

Similar Documents

Publication Publication Date Title
US5499367A (en) System for database integrity with multiple logs assigned to client subsets
Lorie Physical integrity in a large segmented database
US4961134A (en) Method for minimizing locking and reading in a segmented storage space
US5535381A (en) Apparatus and method for copying and restoring disk files
US6018746A (en) System and method for managing recovery information in a transaction processing system
US5638508A (en) Method and a system for processing a log record
US10176190B2 (en) Data integrity and loss resistance in high performance and high capacity storage deduplication
US6119209A (en) Backup directory for a write cache
JP5160006B2 (en) Method and apparatus for performing atomic updates using a logical flash memory device
JPH06508708A (en) disk storage system
US6636941B1 (en) Enhanced stable disk storage
JPH06195250A (en) Method, system and device for renewal of database
CN111414134B (en) Transaction write optimization framework method and system for persistent memory file system
CN111414320B (en) Method and system for constructing disk cache based on nonvolatile memory of log file system
US20060053260A1 (en) Computing system with memory mirroring and snapshot reliability
JPH06149485A (en) Data completion guarantee processing method
JPS63133240A (en) Contents assurance system for residence table
JPS62245348A (en) Method and device for updating data base
JPS63259733A (en) Contents insurance system for volatile storage device resident information
EP0096199A2 (en) Method and apparatus for logging journal data in a computing apparatus
CN114328018A (en) Snapshot creating method, computing device and storage medium
JPH033046A (en) Log record control system
JPS63195755A (en) Contents assuring system for information on main memory device
Shu et al. Shadowing-based crash recovery schemes for real-time database systems
US5659744A (en) Data file store system with means for efficiently managing freeing of data blocks