JPH11345137A - Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein - Google Patents

Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein

Info

Publication number
JPH11345137A
JPH11345137A JP10150151A JP15015198A JPH11345137A JP H11345137 A JPH11345137 A JP H11345137A JP 10150151 A JP10150151 A JP 10150151A JP 15015198 A JP15015198 A JP 15015198A JP H11345137 A JPH11345137 A JP H11345137A
Authority
JP
Japan
Prior art keywords
memory
checkpoint
time
generation
backup
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
JP10150151A
Other languages
Japanese (ja)
Inventor
Kunio Yamada
邦夫 山田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP10150151A priority Critical patent/JPH11345137A/en
Publication of JPH11345137A publication Critical patent/JPH11345137A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain improvement in performance by avoiding unwanted backup by adding a function to the memory management of an OS software, completely eliminating the need for the backup of write from an I/O to a memory and decreasing the number of bus transactions. SOLUTION: This system is provided with CPU 1a,..., 1n, backup device 2, I/O device 3, memory 4, system bus 5, check point modules 51 and memory managing module 52 and for the memory which is free at a recent check point time, backup is dispensed with from the time point of memory acquiring request to the next check point. By setting such a memory as a non-backup object, performance can be improved while decreasing the bus transactions.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、計算機の高信頼化
技術、即ちメモリチェックポイント・ロールバック方式
の計算機、チェックポイントロールバック計算機に於け
るメモリ管理制御方法、及び同方法のプログラム情報を
格納したコンピュータ読取り可能な記憶媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer high-reliability technology, that is, a computer of a memory checkpoint / rollback system, a memory management control method in a checkpoint rollback computer, and program information of the method are stored. Computer-readable storage medium.

【0002】[0002]

【従来の技術】従来、メモリチェックポイント・ロール
バック方式を採用した計算機システムに於いては、シス
テムの一貫性の取れた状態を定期的にメモリ上に保存し
ていた。障害/故障が発生した場合には、メモリ上に保
存された最新のチェックポイントの状態に戻すことによ
り、障害/故障回復を実現していた。
2. Description of the Related Art Conventionally, in a computer system employing a memory checkpoint / rollback method, a consistent state of the system is periodically stored in a memory. When a failure / failure has occurred, the failure / failure recovery is realized by returning to the state of the latest checkpoint stored in the memory.

【0003】例えば、代表的なインプリメントでは、シ
ステムバス上にチェックポイント用の装置を置き、当該
装置にてCPU(中央処理装置)からのライトトランザ
クションを捉え、書き換える前のデータをバッファに格
納する。そして、OS(オペレーティングシステム)ソ
フトウェアはCPUレジスタとキャッシュ上のダーティ
エントリを定期的にフラッシュした上で、上記装置のバ
ッファをクリアする。
For example, in a typical implementation, a checkpoint device is placed on a system bus, the device captures a write transaction from a CPU (central processing unit), and stores data before rewriting in a buffer. The OS (operating system) software periodically flushes the CPU registers and dirty entries on the cache, and then clears the buffer of the device.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た技術に於いては、ライトトランザクションを捉え、書
き換わる前のデータをバッファに格納する必要がある。
この点にバストランザクションの増加による性能劣化が
生じる。而してバックアップする部分が少ないほど、性
能は改善される。
However, in the above-described technique, it is necessary to capture a write transaction and store data before rewriting in a buffer.
At this point, performance degradation occurs due to an increase in bus transactions. Thus, the smaller the part to be backed up, the better the performance.

【0005】そこで、本発明は上記事情を考慮して成さ
れたものであり、上記不具合を解消し、OSソフトウェ
アのメモリ管理に機能を付加して、不必要なバックアッ
プを回避するとともに、I/Oからメモリへの書き込み
(I/Oからのリード)のバックアップを完全に不要と
することを実現し、以てバストランザクションを減少さ
せて、性能改善を図ったチェックポイントロールバック
方式計算機システム、及びチェックポイントロールバッ
ク計算機に於けるメモリ管理制御方法、並びにチェック
ポイントロールバック計算機システムに於けるメモリ管
理制御方法のプログラム情報を格納したコンピュータ読
取り可能な記憶媒体を提供することを目的とする。
Accordingly, the present invention has been made in view of the above circumstances, and solves the above-mentioned disadvantages, adds a function to memory management of OS software, avoids unnecessary backup, and improves I / O. A checkpoint rollback computer system which realizes that backup of writing from O to memory (read from I / O) is completely unnecessary, thereby reducing bus transactions and improving performance. An object of the present invention is to provide a memory management control method in a checkpoint rollback computer and a computer-readable storage medium storing program information of the memory management control method in a checkpoint rollback computer system.

【0006】[0006]

【課題を解決するための手段】本発明は上記目的を達成
するため、メモリチェックポイント・ロールバックによ
るリカバリ方式を採用しており、バックアップ装置に
は、バックアップ非対象領域をソフトウェアにより設定
できる手段を提供しているシステムに於いて、チェック
ポイント時に加算されるチェックポイント世代を記録す
るカウンタと、メモリ解放要求時にメモリ獲得/解放の
最小単位のソフトウェア管理構造にその時点のチェック
ポイント世代を記録する、チェックポイント世代格納エ
リアと、メモリ獲得要求時に獲得されるメモリ管理構造
のチェックポイント世代格納エリアに格納された値と、
その時点でのチェックポイント世代を比較して、チェッ
クポイント世代格納エリアに格納された値がその時点で
のチェックポイント世代よりも小さい場合には、そのペ
ージをバックアップ非対象領域に設定した後に要求者に
そのメモリを返却し、次のチェックポイント時には以前
のチェックポイント区間に於いて、上記の手段で設定し
たバックアップ非対象領域をリセットする手段を設けた
ことを特徴とする。
In order to achieve the above object, the present invention employs a recovery method based on a memory checkpoint / rollback. A backup device is provided with means for setting a non-backup target area by software. In the provided system, a counter that records a checkpoint generation added at the time of a checkpoint, and a checkpoint generation at that time are recorded in a software management structure of a minimum unit of memory acquisition / release at the time of a memory release request. A checkpoint generation storage area, a value stored in the checkpoint generation storage area of the memory management structure acquired at the time of a memory acquisition request,
Compare the checkpoint generation at that time, and if the value stored in the checkpoint generation storage area is smaller than the current checkpoint generation area, set the page as a non-backup target area and then request the The memory is returned, and at the time of the next checkpoint, means for resetting the backup non-target area set by the above means in the previous checkpoint section is provided.

【0007】このような構成によれば、最も最近のチェ
ックポイントの時点においてフリーであったメモリにつ
いては、メモリ獲得要求時点から次のチェックポイント
までバックアップが不要である。このようなメモリに対
して、バックアップ非対象に設定することで、バストラ
ンザクションを減らして性能向上が期待できる。
[0007] According to such a configuration, for a memory that was free at the time of the most recent checkpoint, backup is not required from the time of a memory acquisition request to the next checkpoint. By setting such a memory as a non-backup target, it is possible to reduce bus transactions and improve performance.

【0008】また、本発明は上記目的を達成するため、
メモリチェックポイント・ロールバックによるリカバリ
方式を採用しており、バックアップ装置には、I/Oか
らメモリへの書き込みのデータをバックアップするかし
ないかをソフトウェアにより設定できる手段を提供して
いるシステムに於いて、チェックポイント時に加算され
るチェックポイント世代を記録するカウンタと、メモリ
解放要求時にメモリ獲得/解放の最小単位のソフトウェ
ア管理構造にその時点のチェックポイント世代を記録す
る、チェックポイント世代格納エリアと、メモリ解放要
求時に、解放されるメモリ管理構造のチェックポイント
世代格納エリアにその時点のチェックポイント世代を格
納し、I/Oからメモリへの書き込み要求に対するメモ
リの割り当てに対してはチェックポイント世代格納エリ
アに格納された値がその時点でのチェックポイント世代
よりも小さいメモリを返却する手段を設けたことを特徴
とする。
[0008] In order to achieve the above object, the present invention provides:
A recovery method based on memory checkpoint / rollback is adopted, and the backup device is provided with a means that can set by software whether or not to back up data written from the I / O to the memory. A counter for recording a checkpoint generation to be added at the time of a checkpoint, a checkpoint generation storage area for recording a checkpoint generation at that time in a software management structure of a minimum unit of memory acquisition / release at the time of a memory release request, At the time of a memory release request, the checkpoint generation at that time is stored in the checkpoint generation storage area of the memory management structure to be released, and the checkpoint generation storage area is stored for the memory allocation for the write request from the I / O to the memory. Value stored in Characterized in that a means for returning the smaller memory than the checkpoint generation at that time.

【0009】このような構成によれば、I/Oからメモ
リへの書き込み要求に対しては、最も最近のチェックポ
イントの時点においてフリーであったメモリを割り当て
ることで、そのメモリのバックアップが不要になる。こ
れによりバストランザクションを減らせ、性能の向上に
繋がる。
According to such a configuration, a memory that has been free at the time of the most recent checkpoint is allocated to a write request from the I / O to the memory, so that backup of the memory is not required. Become. As a result, bus transactions can be reduced, leading to an improvement in performance.

【0010】[0010]

【発明の実施の形態】以下、図面を参照して本発明の一
実施の形態を説明する。図1は本実施形態が適用される
計算機であり、CPU1a,…,1nと、バックアップ
装置2、I/O装置3、メモリ4、そして前記各要素を
接続するシステムバス5とで構成される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows a computer to which the present embodiment is applied, and includes a CPU 1a,..., 1n, a backup device 2, an I / O device 3, a memory 4, and a system bus 5 for connecting the above elements.

【0011】図2に本発明が前提とするバックアップ装
置2に具備されている情報を概念的に示す。この図2に
あっては、1行で1つの「バックアック非対象領域」を
表現する。「有効/無効」には、本行の情報が有効か無
効かが格納される。「アドレス情報」にはバックアップ
非対象領域のスタートアドレスが、「サイズ」にはその
バックアップ非対象領域のサイズが格納される。今、ス
タートアドレスをα、サイズをAとすると、(α、α+
A)の範囲のアドレス領域のデータがバックアップされ
ないことになる。
FIG. 2 conceptually shows information provided in the backup device 2 on which the present invention is based. In FIG. 2, one “back-up non-target area” is expressed by one line. “Valid / Invalid” stores whether the information of the bank is valid or invalid. The “address information” stores the start address of the non-backup target area, and the “size” stores the size of the non-backup target area. Now, assuming that the start address is α and the size is A, (α, α +
The data in the address area in the range A) is not backed up.

【0012】上記構成につき、図2に係るバックアップ
装置2の動作を示すフローチャートである図3と、図2
及び図3の機能を使用するソフトウェアの動作を示すフ
ローチャートである図4を参照して、その動作を説明す
る。
FIG. 3 is a flowchart showing the operation of the backup apparatus 2 shown in FIG.
The operation will be described with reference to FIG. 4 which is a flowchart showing the operation of the software using the functions of FIG.

【0013】先ず、アドレスがバックアップ非対象領域
として登録されているか否かの判断が行われる(図3の
ステップS31)。バックアップ非対象領域として登録
されているのならば(ステップS31のYes)、続い
て、情報の有効性判断が成される(ステップS32)。
ここで、情報がの有効と判断されたのならば(ステップ
S32のYes)、バックアップ動作が行われる(ステ
ップS33)。
First, it is determined whether the address is registered as a non-backup target area (step S31 in FIG. 3). If the area is registered as a non-backup target area (Yes in step S31), the validity of the information is subsequently determined (step S32).
If it is determined that the information is valid (Yes in step S32), a backup operation is performed (step S33).

【0014】一方、上記ステップS31にてバックアッ
プ非対象領域として登録されていない場合も(ステップ
S31のNo)、バックアップ動作が行われる(ステッ
プS33)。
On the other hand, if the area is not registered as a backup non-target area in step S31 (No in step S31), a backup operation is performed (step S33).

【0015】続いて、バックアップ非対象領域に情報を
セットするソフトウェアの動作の流れを説明する。排他
ロックをとる処理が行われると(図4のステップS4
1)、無効エントリの探索処理となる(ステップS4
2)。ここで、無効エントリが存在すると(ステップS
43のYes)、指定アドレスとサイズをセットし、有
効エントリとされる(ステップS44)。そして、排他
ロックが解放される(ステップS45)。
Next, the flow of the operation of software for setting information in the non-backup target area will be described. When the process of taking the exclusive lock is performed (step S4 in FIG. 4)
1), a process of searching for an invalid entry is performed (step S4)
2). Here, if there is an invalid entry (step S
43 (Yes), the designated address and the size are set, and a valid entry is made (step S44). Then, the exclusive lock is released (step S45).

【0016】一方、上記ステップS43にて無効エント
リが存在しないと判断された場合も(ステップS43の
No)、排他ロックが解放される(ステップS45)。
次に、本実施形態のシステム、即ちメモリチェックポイ
ント・ロールバックによるリカバリ方式を採用してお
り、バックアップ装置2にはバックアップ非対象領域を
ソフトウェアにより設定できる手段を提供しているシス
テムに於いて、チェックポイント時に加算されるチェッ
クポイント世代を記録するカウンタと、メモリ解放要求
時にメモリ獲得/解放の最小単位のソフトウェア管理構
造に、その時点のチェックポイント世代を記録するチェ
ックポイント世代格納エリアと、メモリ獲得要求時に獲
得されるメモリ管理構造のチェックポイント世代格納エ
リアに格納された値と、その時点でのチェックポイント
世代を比較してチェックポイント世代格納エリアに格納
された値が、その時点でのチェックポイント世代よりも
小さい場合には、そのページをバックアップ非対象領域
に設定した後に要求者にそのメモリを返却し、次のチェ
ックポイント時には以前のチェックポイント区間に於い
て、上記の手段で設定したバックアップ非対象領域をリ
セットする手段を具備したことを特徴とするシステムに
於けるデータ構造の一例を示す図5を参照して説明す
る。
On the other hand, when it is determined in step S43 that there is no invalid entry (No in step S43), the exclusive lock is released (step S45).
Next, in the system of the present embodiment, that is, in the system in which the recovery method based on the memory checkpoint / rollback is adopted, and the backup device 2 is provided with means for setting the non-backup target area by software, A counter for recording a checkpoint generation to be added at the time of a checkpoint, a checkpoint generation storage area for recording a checkpoint generation at that time in a software management structure of a minimum unit of memory acquisition / release at the time of a memory release request, and a memory acquisition The value stored in the checkpoint generation storage area of the memory management structure obtained at the time of the request is compared with the checkpoint generation at that time, and the value stored in the checkpoint generation storage area is the checkpoint at that time. If it is smaller than the generation, After the page is set as a non-backup area, the memory is returned to the requester, and at the next checkpoint, there is provided a means for resetting the non-backup area set by the above means in the previous checkpoint section. A description will be given with reference to FIG. 5 showing an example of a data structure in a system characterized by the following.

【0017】本実施形態に係る処理プログラムは、オペ
レーティングシステム(OS)のソフトウェア内に存在
する。チェックポイントモジュール51には、当該モジ
ュール51が管理するチェックポイント世代511が内
設されている。チェックポイントモジュール51はチェ
ックポイント世代511をチェックポイントの度に、チ
ェックポイント世代511に「1」を加算する。
The processing program according to the present embodiment exists in software of an operating system (OS). In the checkpoint module 51, a checkpoint generation 511 managed by the module 51 is provided. The checkpoint module 51 adds “1” to the checkpoint generation 511 every time the checkpoint generation 511 is checked.

【0018】メモリ管理モジュール52には、物理ペー
ジを管理するソフトウェアの論理構造であるページ管理
構造521が内設されている。このページ管理構造52
1は、通常のページ化仮想記憶を実現しているオペレー
ティングシステムには必ず存在するものである。そし
て、ページ管理構造521には、チェックポイント世代
格納エリア(CPA)522が内設されている。
The memory management module 52 has a page management structure 521, which is a logical structure of software for managing physical pages. This page management structure 52
No. 1 always exists in an operating system that implements ordinary paged virtual storage. In the page management structure 521, a checkpoint generation storage area (CPA) 522 is provided.

【0019】また、メモリ管理モジュール52には、バ
ックアップ装置2に、「バックアップ非対象領域」とし
て設定したページを格納している登録リスト523か内
設されている。
In the memory management module 52, a registration list 523 which stores pages set as “backup non-target areas” in the backup device 2 is provided.

【0020】尚、上記チェックポイントモジュール51
とメモリ管理モジュール52は、図1に示すメモリ4内
に格納されるOSの内部に存するものである。以下に、
図6を参照してメモリ解放が発生した場合の処理を、図
7を参照してにメモリ獲得が発生した場合の処理を、そ
して図8を参照してチェックポイント完了時の処理を説
明する。
The above checkpoint module 51
The memory management module 52 exists inside the OS stored in the memory 4 shown in FIG. less than,
The processing when a memory release occurs will be described with reference to FIG. 6, the processing when a memory acquisition has occurred with reference to FIG. 7, and the processing when the checkpoint is completed will be described with reference to FIG.

【0021】メモリ解放要求が発生すると(図6のステ
ップS61)、ページ管理構造のチェックとポイント格
納世代のチェックが行われ、ポイント世代が格納される
(ステップS62)。
When a memory release request is issued (step S61 in FIG. 6), the page management structure and the point storage generation are checked, and the point generation is stored (step S62).

【0022】一方、メモリ獲得要求が発生すると(図7
のステップS71)、割当てるメモリの管理構造に格納
されたチェックポイント(α)世代と現在のチェックポ
イント(β)世代の比較処理が行われる(ステップS7
2)。
On the other hand, when a memory acquisition request occurs (FIG. 7)
(Step S71), the checkpoint (α) generation stored in the management structure of the memory to be allocated is compared with the current checkpoint (β) generation (Step S7).
2).

【0023】現在のチェックポイント(β)世代の方が
割当てるメモリの管理構造に格納されたチェックポイン
ト(α)世代より大の場合は(ステップS73のYe
s)、図4のフローチャートに示したバックアップ非対
象領域に情報をセットする処理が成され(ステップS7
4)、バックアップ非対象領域設定情報に情報がセット
される(ステップS75)。
If the current checkpoint (β) generation is larger than the checkpoint (α) generation stored in the memory management structure to be allocated (Yes in step S73)
s), the process of setting information in the backup non-target area shown in the flowchart of FIG. 4 is performed (step S7).
4), information is set in the backup non-target area setting information (step S75).

【0024】また、上記ステップS73にて、現在のチ
ェックポイント(β)世代の方が割当てるメモリの管理
構造に格納されたチェックポイント(α)世代より小の
場合は(ステップS73のNo)、処理終了となる。
If it is determined in step S73 that the current checkpoint (β) generation is smaller than the checkpoint (α) generation stored in the memory management structure to be allocated (No in step S73), the process proceeds. It ends.

【0025】尚、チェックポイント完了時、登録リスト
523に格納されたアドレスの図2に於ける有効情報を
すべて無効とする。続いて、登録リスト523を走査す
ると(図8のステップS81)、登録アドレスと図2に
於けるアドレスの比較処理が行われる(ステップS8
2)。
When the checkpoint is completed, all the valid information in FIG. 2 of the address stored in the registration list 523 is invalidated. Subsequently, when the registration list 523 is scanned (step S81 in FIG. 8), a comparison process between the registered address and the address in FIG. 2 is performed (step S8).
2).

【0026】ここで、一致した場合は(ステップS83
のYes)、エントリの有効/無効を無効にセットして
(ステップS84)、該当エントリを登録リストから削
除する(ステップS85)。一致しない場合は(ステッ
プS83のNo)、処理終了となる。
Here, if they match (step S83)
Yes), the valid / invalid of the entry is set to invalid (step S84), and the corresponding entry is deleted from the registration list (step S85). If they do not match (No in step S83), the process ends.

【0027】上記実施形態によれば、最も最近のチェッ
クポイントの時点においてフリーであったメモリについ
ては、メモリ獲得要求時点から、次のチェックポイント
までバックアップが不要である。このようなメモリに対
して、バックアップ非対象に設定することで、バストラ
ンザクションを減らし、性能向上が期待できる。
According to the above embodiment, for the memory that was free at the time of the most recent checkpoint, no backup is required from the memory acquisition request time to the next checkpoint. By setting such a memory as a non-backup target, it is possible to reduce bus transactions and improve performance.

【0028】以下に、I/Oからメモリへの書き込み
(一般にはI/Oからのリード)のメモリ確保の要求に
対し、常に(ページを解放したチェックポイント世代)
<(現在のチェックポイント世代)を保証するメモリ管
理について、図9を参照してその論理を説明する。
In the following, in response to a request to secure a memory for writing from I / O to memory (generally, reading from I / O), a checkpoint generation that releases a page is always performed.
The logic of memory management that guarantees <(current checkpoint generation) will be described with reference to FIG.

【0029】即ち、メモリチェックポイント・ロールバ
ックによるリカバリ方式を採用しており、バックアップ
装置にはI/Oからメモリへの書き込みのデータをバッ
クアップするかしないかをソフトウェアにより設定でき
る手段を提供しているシステムに於いて、チェックポイ
ント時に加算されるチェックポイント世代を記録するカ
ウンタと、メモリ解放要求時にメモリ獲得/解放の最小
単位のソフトウェア管理構造にその時点のチェックポイ
ント世代を記録するチェックポイント世代格納エリア
と、メモリ解放要求時に、解放されるメモリ管理構造の
チェックポイント世代格納エリアにその時点のチェック
ポイント世代を格納し、I/Oからメモリへの書き込み
要求に対するメモリの割り当てに対しては、チェックポ
イント世代格納エリアに格納された値がその時点でのチ
ェックポイント世代よりも小さいメモリを返却する手段
を具備したことを特徴とするシステムについて、図9を
参照してその論理を説明する。
That is, a recovery method based on a memory checkpoint / rollback is adopted, and the backup device is provided with a means for setting by software whether or not to back up data written from the I / O to the memory. And a checkpoint generation storage that records the checkpoint generation at the time in the software management structure of the minimum unit of memory acquisition / release at the time of a memory release request. The checkpoint generation at that time is stored in an area and a checkpoint generation storage area of a memory management structure to be released when a memory release request is issued. Point generation storage area Stored value for the system characterized by comprising means for returning a smaller memory than the checkpoint generation at that time, the logic will be described with reference to FIG. 9.

【0030】I/O用メモリ獲得(入力はサイズ)処理
が成されると(図9のステップS91)、指定サイズ
分、α<βとなるページが確保できるかどうかが調査さ
れる(Sステップ92)。
When the I / O memory acquisition (input is size) process is performed (step S91 in FIG. 9), it is checked whether a page satisfying α <β for the designated size can be secured (S step). 92).

【0031】指定サイズ分確保できなかった場合(Sス
テップ93のNo)、前回のチェックポイント処理から
充分に時間が経過しているかの判断が成される(Sステ
ップ94)。充分に時間経過していない場合は(Sステ
ップ94のNo)、イベント待ちリスト処理となり(S
ステップ95)、前記ステップS92の処理へ戻る。一
方、充分に時間経過している場合は(Sステップ94の
Yes)、チェックポイン採取が行われ(Sステップ9
6)、前記ステップS92の処理へ戻る。
If the specified size cannot be secured (No in S93), it is determined whether a sufficient time has elapsed since the previous checkpoint processing (S94). If the time has not passed sufficiently (No in step S94), an event waiting list process is performed (step S94).
Step 95), and return to the process of step S92. On the other hand, if a sufficient time has elapsed (Yes in step S94), checkpoint collection is performed (step S9).
6), the process returns to the step S92.

【0032】ところで、上記ステップS93にて、指定
サイズ分確保できた場合は(Sステップ93のYe
s)、処理終了となる。このように上記実施形態によれ
ば、I/Oからメモリへの書き込み要求に対しては、最
も最近のチェックポイントの時点においてフリーであっ
たメモリを割り当てることで、そのメモリのバックアッ
プが不要になる。これによりバストランザクションを減
少させて性能向上を図れる。
If it is determined in step S93 that the designated size has been secured (Yes in step S93).
s), the process ends. As described above, according to the above-described embodiment, for a write request from an I / O to a memory, a memory that is free at the time of the latest checkpoint is allocated, so that backup of the memory becomes unnecessary. . As a result, bus transactions can be reduced and performance can be improved.

【0033】[0033]

【発明の効果】以上詳記したように本発明によれば、O
Sソフトウェアのメモリ管理に機能を付加して、不必要
なバックアップを回避すると共にI/Oからメモリへの
書き込みのバックアップを完全に不要とすることを実現
し、以てバストランザクションを減少させて性能改善を
図れる。即ち、バックアップが不要なメモリ空間に対す
るバックアップ動作が減少し、これによりバストランザ
クションが減少して性能向上が図れる。
As described above, according to the present invention, O
By adding a function to the memory management of the S software, it is possible to avoid unnecessary backup and completely eliminate the need for backup of writing from the I / O to the memory, thereby reducing bus transactions and improving performance. Can be improved. That is, the number of backup operations for a memory space that does not need to be backed up is reduced, thereby reducing bus transactions and improving the performance.

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

【図1】本発明の一実施の形態に係る計算機の構成を示
すブロック図。
FIG. 1 is a block diagram showing a configuration of a computer according to an embodiment of the present invention.

【図2】同実施の形態に係る、バックアップ装置に具備
されている情報を概念的に示す図。
FIG. 2 is an exemplary view conceptually showing information included in a backup device according to the embodiment;

【図3】同実施の形態に係る、図2に係わるバックアッ
プ装置2の動作を示すフローチャート。
FIG. 3 is a flowchart showing an operation of the backup device 2 according to FIG. 2 according to the embodiment;

【図4】同実施の形態に係る、バックアップ非対象領域
に情報をセットするソフトウェアの動作の流れを示すフ
ローチャート。
FIG. 4 is an exemplary flowchart showing an operation flow of software for setting information in a non-backup target area according to the embodiment;

【図5】同実施の形態に係る、データ構造の一例を示す
図。
FIG. 5 is a diagram showing an example of a data structure according to the embodiment.

【図6】同実施の形態に係る、メモリ解放が発生した場
合の処理の流れを示すフローチャート。
FIG. 6 is a flowchart showing a flow of processing when memory release occurs according to the embodiment;

【図7】同実施の形態に係る、メモリ獲得が発生した場
合の処理の流れを示すフローチャート。
FIG. 7 is a flowchart showing the flow of processing when memory acquisition has occurred according to the embodiment;

【図8】同実施の形態に係る、チェックポイント完了時
の処理の流れを示すフローチャート。
FIG. 8 is a flowchart showing a flow of processing at the time of completion of a checkpoint according to the embodiment;

【図9】同実施の形態に係る、I/Oからメモリへの書
き込みのメモリ確保の要求に対し常に(ページを解放し
たチェックポイント世代)<(現在のチェックポイント
世代)を保証するメモリ管理についての処理の流れを示
すフローチャート。
FIG. 9 shows memory management according to the embodiment, which always guarantees (checkpoint generation that released pages) <(current checkpoint generation) in response to a request for securing memory for writing from I / O to memory. 4 is a flowchart showing the flow of the processing.

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

1a,…,1n…CPU 2…バックアップ装置 3…I/O装置 4…メモリ 5…システムバス 51…チェックポイントモジュール 52…メモリ管理モジュール 1a, 1n CPU 2 backup device 3 I / O device 4 memory 5 system bus 51 checkpoint module 52 memory management module

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 メモリチェックポイント・ロールバック
によるリカバリ方式を採用し、バックアップ装置にはバ
ックアップ非対象領域をソフトウェアにより設定できる
手段を提供している計算機システムであって、 チェックポイント時に加算されるチェックポイント世代
を記録するカウンタ手段と、 メモリ解放要求時に、メモリの獲得/解放の最小単位の
ソフトウェア管理構造に、その時点のチェックポイント
世代を記録するチェックポイント世代格納エリア手段
と、 上記メモリ獲得要求時に獲得されるメモリ管理構造のチ
ェックポイント世代格納エリア手段に格納された値と、
その時点でのチェックポイント世代とを比較する比較手
段と、 この比較手段により、チェックポイント世代格納エリア
に格納された値が、その時点でのチェックポイント世代
よりも小さい場合には、そのページをバックアップ非対
象領域に設定した後に要求者にそのメモリを返却し、次
のチェックポイント時には、以前のチェックポイント区
間に於いて上記手段で設定したバックアップ非対象領域
をリセットする手段とを具備したことを特徴とするチェ
ックポイントロールバック方式計算機システム。
1. A computer system which employs a recovery method based on a memory checkpoint / rollback and provides a backup device with means for setting a non-backup target area by software. Counter means for recording a point generation; checkpoint generation storage area means for recording a checkpoint generation at that time in a software management structure of a minimum unit of memory acquisition / release at the time of memory release request; A value stored in the checkpoint generation storage area means of the obtained memory management structure;
A comparing means for comparing the checkpoint generation at that time with the checkpoint generation; and if the value stored in the checkpoint generation storage area is smaller than the checkpoint generation at that time by the comparing means, the page is backed up. Means for returning the memory to the requester after setting it in the non-target area, and resetting the backup non-target area set by the above means in the previous checkpoint section at the time of the next checkpoint. Checkpoint rollback computer system.
【請求項2】 メモリチェックポイント・ロールバック
によるリカバリ方式を採用し、バックアップ装置にはI
/Oからメモリへの書き込みのデータをバックアップす
るか否かをソフトウェアにより設定できる手段を提供し
ている計算機システムであって、 チェックポイント時に加算されるチェックポイント世代
を記録するカウンタ手段と、 メモリ解放要求時に、メモリ獲得/解放の最小単位のソ
フトウェア管理構造にその時点のチェックポイント世代
を記録するチェックポイント世代格納エリア手段と、 上記メモリ解放要求時に、解放されるメモリ管理構造の
チェックポイント世代格納エリアにその時点のチェック
ポイント世代を格納する格納手段と、 上記I/Oから上記メモリへの書き込み要求に対するメ
モリの割り当てに対しては、上記チェックポイント世代
格納エリア手段に格納された値が、その時点でのチェッ
クポイント世代よりも小さいメモリを返却する手段とを
具備したことを特徴とするチェックポイントロールバッ
ク方式計算機システム。
2. A recovery method based on memory checkpoint / rollback is adopted, and a backup device
What is claimed is: 1. A computer system, comprising: means for setting, by software, whether or not to back up data written from / O to a memory; counter means for recording a checkpoint generation added at the time of a checkpoint; Checkpoint generation storage area means for recording the current checkpoint generation in the software management structure of the minimum unit of memory acquisition / release at the time of request, and checkpoint generation storage area of the memory management structure released at the time of the memory release request Means for storing the checkpoint generation at that time, and for allocating memory for the write request from the I / O to the memory, the value stored in the checkpoint generation storage area means Smaller than checkpoint generation at A checkpoint rollback computer system, comprising: means for returning a memory.
【請求項3】 メモリチェックポイント・ロールバック
によるリカバリ方式を採用し、バックアップ装置にはバ
ックアップ非対象領域をソフトウェアにより設定できる
手段を提供している計算機システムに於いて、 チェックポイント時に加算されるチェックポイント世代
をカウント記録し、 メモリ解放要求時に、メモリの獲得/解放の最小単位の
ソフトウェア管理構造に、その時点のチェックポイント
世代を記録し、 上記メモリ獲得要求時に獲得されるメモリ管理構造のチ
ェックポイント世代格納エリアに格納された値と、その
時点でのチェックポイント世代とを比較し、 この比較により、チェックポイント世代格納エリアに格
納された値が、その時点でのチェックポイント世代より
も小さい場合には、そのページをバックアップ非対象領
域に設定した後に要求者にそのメモリを返却し、 次のチェックポイント時には、以前のチェックポイント
区間において上記設定したバックアップ非対象領域をリ
セットするようにしたことを特徴とするチェックポイン
トロールバック計算機システムに於けるメモリ管理制御
方法。
3. A computer system that employs a recovery method based on a memory checkpoint / rollback and provides a backup device with means for setting a non-backup target area by software. The point generation is counted and recorded. When a memory release request is made, the checkpoint generation at that time is recorded in the software management structure of the minimum unit of memory acquisition / release, and the checkpoint of the memory management structure acquired at the time of the memory acquisition request is recorded. The value stored in the generation storage area is compared with the checkpoint generation at that time, and if the value stored in the checkpoint generation storage area is smaller than the checkpoint generation at that time, Will not back up that page After that, the memory is returned to the requester, and at the time of the next checkpoint, the backup non-target area set above is reset in the previous checkpoint section. Memory management control method in
【請求項4】 メモリチェックポイント・ロールバック
によるリカバリ方式を採用し、バックアップ装置にはI
/Oからメモリへの書き込みのデータをバックアップす
るか否かをソフトウェアにより設定できる手段を提供し
ている計算機システムに於いて、 チェックポイント時に加算されるチェックポイント世代
をカウント記録し、 メモリ解放要求時に、メモリ獲得/解放の最小単位のソ
フトウェア管理構造にその時点のチェックポイント世代
を記録し、 上記メモリ解放要求時に、解放されるメモリ管理構造の
チェックポイント世代格納エリアにその時点のチェック
ポイント世代を格納し、 上記I/Oから上記メモリへの書き込み要求に対するメ
モリの割り当てに対しては、上記チェックポイント世代
格納エリアに格納された値が、その時点でのチェックポ
イント世代よりも小さいメモリを返却するようにしたこ
とを特徴とするチェックポイントロールバック計算機シ
ステムに於けるメモリ管理制御方法。
4. A recovery method based on memory checkpoint / rollback is adopted, and a backup
In a computer system that provides means for setting whether or not to back up data written from / O to a memory by software, a checkpoint generation to be added at the time of a checkpoint is counted and recorded at the time of a memory release request. Then, the current checkpoint generation is recorded in the software management structure of the minimum unit of memory acquisition / release, and at the time of the memory release request, the current checkpoint generation is stored in the checkpoint generation storage area of the released memory management structure. When the memory is allocated to the write request from the I / O to the memory, a memory whose value stored in the checkpoint generation storage area is smaller than the checkpoint generation at that time is returned. Checkpoint row characterized by Memory management control method in the LUVAC computer system.
【請求項5】 メモリチェックポイント・ロールバック
によるリカバリ方式を採用し、バックアップ装置にはバ
ックアップ非対象領域をソフトウェアにより設定できる
手段を提供している計算機システムに於いて、 チェックポイント時に加算されるチェックポイント世代
をカウント記録する機能と、 メモリ解放要求時に、メモリの獲得/解放の最小単位の
ソフトウェア管理構造に、その時点のチェックポイント
世代を記録する機能と、 上記メモリ獲得要求時に獲得されるメモリ管理構造のチ
ェックポイント世代格納エリアに格納された値と、その
時点でのチェックポイント世代とを比較する機能と、 この比較機能により、チェックポイント世代格納エリア
に格納された値が、その時点でのチェックポイント世代
よりも小さい場合には、そのページをバックアップ非対
象領域に設定した後に要求者にそのメモリを返却し、次
のチェックポイント時には、以前のチェックポイント区
間において上記設定したバックアップ非対象領域をリセ
ットするようにした機能とを実行させるチェックポイン
トロールバック計算機システムに於けるメモリ管理制御
プログラムを格納したコンピュータ読取り可能な記憶媒
体。
5. A computer system which employs a recovery method based on memory checkpoint / rollback and provides a backup device with means for setting a non-backup target area by software. A function of counting and recording the point generation; a function of recording the checkpoint generation at that time in a software management structure of a minimum unit of memory acquisition / release at the time of a memory release request; and a memory management acquired at the time of the memory acquisition request. A function that compares the value stored in the checkpoint generation storage area of the structure with the checkpoint generation at that point in time. This comparison function allows the value stored in the checkpoint generation storage area to be checked at that time. If it is smaller than the point generation, After setting a page as a backup non-target area, the memory is returned to the requester, and at the next checkpoint, a function that resets the set backup non-target area in the previous checkpoint section is executed. A computer-readable storage medium storing a memory management control program in a checkpoint rollback computer system.
【請求項6】 メモリチェックポイント・ロールバック
によるリカバリ方式を採用し、バックアップ装置にはI
/Oからメモリへの書き込みのデータをバックアップす
るか否かをソフトウェアにより設定できる手段を提供し
ている計算機システムに於いて、 チェックポイント時に加算されるチェックポイント世代
をカウント記録する機能と、 メモリ解放要求時に、メモリ獲得/解放の最小単位のソ
フトウェア管理構造にその時点のチェックポイント世代
を記録する機能と、 上記メモリ解放要求時に、解放されるメモリ管理構造の
チェックポイント世代格納エリアにその時点のチェック
ポイント世代を格納する機能と、 上記I/Oから上記メモリへの書き込み要求に対するメ
モリの割り当てに対しては、上記チェックポイント世代
格納エリアに格納された値が、その時点でのチェックポ
イント世代よりも小さいメモリを返却する機能とを実行
させるチェックポイントロールバック計算機システムに
於けるメモリ管理制御プログラムを格納したコンピュー
タ読取り可能な記憶媒体。
6. A recovery method based on memory checkpoint / rollback is adopted, and a backup device is
In a computer system which provides means for setting whether or not to back up data written from / O to a memory by software, a function of counting and recording a checkpoint generation added at a checkpoint, and releasing memory. A function to record the checkpoint generation at that time in the software management structure of the minimum unit of memory acquisition / release at the time of request; and a check at that time in the checkpoint generation storage area of the memory management structure released at the time of the memory release request. For the function of storing the point generation and the memory allocation for the write request from the I / O to the memory, the value stored in the checkpoint generation storage area is smaller than the value of the checkpoint generation at that time. Check to execute the function to return the small memory A computer-readable storage medium storing a memory management control program in a lockpoint rollback computer system.
JP10150151A 1998-05-29 1998-05-29 Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein Pending JPH11345137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10150151A JPH11345137A (en) 1998-05-29 1998-05-29 Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10150151A JPH11345137A (en) 1998-05-29 1998-05-29 Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein

Publications (1)

Publication Number Publication Date
JPH11345137A true JPH11345137A (en) 1999-12-14

Family

ID=15490624

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10150151A Pending JPH11345137A (en) 1998-05-29 1998-05-29 Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein

Country Status (1)

Country Link
JP (1) JPH11345137A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7802135B2 (en) 2007-04-24 2010-09-21 Denso Corporation Rollback method and information processing apparatus executing the same
JP2013156886A (en) * 2012-01-31 2013-08-15 Nec Corp Calculation device, arithmetic processing system, method for setting check point, and program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7802135B2 (en) 2007-04-24 2010-09-21 Denso Corporation Rollback method and information processing apparatus executing the same
JP2013156886A (en) * 2012-01-31 2013-08-15 Nec Corp Calculation device, arithmetic processing system, method for setting check point, and program

Similar Documents

Publication Publication Date Title
US10379954B2 (en) Method and apparatus for cache management of transaction processing in persistent memory
US8700585B2 (en) Optimistic locking method and system for committing transactions on a file system
US6119209A (en) Backup directory for a write cache
US20130091331A1 (en) Methods, apparatus, and articles of manufacture to manage memory
US20050216552A1 (en) Communication-link-attached persistent memory system
WO2019228440A1 (en) Data page access method, storage engine, and computer readable storage medium
KR20120103715A (en) Mechanisms to accelerate transactions using buffered stores
JP2000284995A (en) Data processor and recording medium
US20060224639A1 (en) Backup system, program and backup method
US9990150B2 (en) Method to provide transactional semantics for updates to data structures stored in a non-volatile memory
US9003106B1 (en) Crash consistency
CN115408411A (en) Data writing method and device, electronic equipment and storage medium
US9335941B1 (en) Crash consistency
CN111611223B (en) Non-volatile data access method, system, electronic device and medium
CN113220490A (en) Transaction persistence method and system for asynchronous write-back persistent memory
JPH11345137A (en) Check point roll-back type computer system, memory management control method for the same system and storage medium stored with the same method therein
US6829693B2 (en) Auxiliary storage slot scavenger
JPH0816881B2 (en) Database update method
JP3107094B2 (en) Method and apparatus for shortening shared buffer lock period
JP2000047891A (en) Device and method for controlling input/output for computer system and storage medium storing the programmed method
CN111506458A (en) Method and module for improving transaction performance of F2FS file system and storage system
CN112306956B (en) Methods, apparatuses, and computer program products for metadata maintenance
JPH0816880B2 (en) Database system and processing method thereof
JPH0833855B2 (en) Hotspot data management processing method
JP3027782B2 (en) Database recovery method