JPH04355843A - Storage device - Google Patents

Storage device

Info

Publication number
JPH04355843A
JPH04355843A JP3157872A JP15787291A JPH04355843A JP H04355843 A JPH04355843 A JP H04355843A JP 3157872 A JP3157872 A JP 3157872A JP 15787291 A JP15787291 A JP 15787291A JP H04355843 A JPH04355843 A JP H04355843A
Authority
JP
Japan
Prior art keywords
write
data
storage
state
time
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.)
Granted
Application number
JP3157872A
Other languages
Japanese (ja)
Other versions
JP3302706B2 (en
Inventor
Toshiichi Marushima
敏一 丸島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP15787291A priority Critical patent/JP3302706B2/en
Publication of JPH04355843A publication Critical patent/JPH04355843A/en
Application granted granted Critical
Publication of JP3302706B2 publication Critical patent/JP3302706B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the time required for the change of the storage state and to reduce the amount of required hardware by allowing the write history to remain in a write history holding means at the time of writing data in a storage means indicated by a latest state display means. CONSTITUTION:Data is written in one of plural storage means 20 by a data write means 10. A write history holding means 30 holds the write or the non- write to storage means 20, and one of plural storage means which holds the latest state is indicated by a latest state display means 40. The data write means 10 refers to the latest state display means 40 to write data in the storage means 20 indicated by this means 40. At the time of this write, the write history is allowed to remain in the write history holding means 30. Thus, it is sufficient if a pointer is switched to the data holding position without transferring the actual body of data at the time of return to the state at a certain time, and therefore, redundant data transfer is avoided.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、ある時点の記憶状態を
保持しておくことにより記憶状態の復帰を可能とする記
憶装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a storage device that maintains a memory state at a certain point in time and allows the memory state to be restored.

【0002】0002

【従来の技術】ある時点の記憶状態を保持して記憶状態
の復帰を行うための従来の記憶装置では、複数の記憶手
段を配置して各時点の記憶状態を保持してこれに対処し
ている(例えば、W.Hwu and Y.Patt:
 ”Checkpoint Repair for H
igh−Performance Out−of−Or
der Execution Machines”, 
IEEE Transactions on Comp
uters,Vol.C−36,No.12,pp.1
496−1514,Dec.1987)。この記憶装置
では、図4のように複数の記憶手段の間で全記憶状態を
全て転送することにより、記憶状態の復帰を可能として
いる。
2. Description of the Related Art In a conventional storage device for retaining a memory state at a certain point in time and restoring the memory state, a plurality of storage means are arranged to maintain the memory state at each point in time to cope with this problem. (For example, W. Hwu and Y. Patt:
”Checkpoint Repair for H
right-Performance Out-of-Or
der Execution Machines”,
IEEE Transactions on Comp
uters, Vol. C-36, No. 12, pp. 1
496-1514, Dec. 1987). In this storage device, the entire storage state is transferred between a plurality of storage means as shown in FIG. 4, thereby making it possible to restore the storage state.

【0003】0003

【発明が解決しようとする課題】しかしながら、上述の
記憶装置では記憶状態あたりの記憶量が増すにつれて転
送にかかる時間的コストやハードウェアコストが高くな
り、効率上の問題点があった。このように、従来の記憶
装置には転送時間やハードウェアのコストに関し解決す
べき課題があった。本発明の目的は、このような従来の
課題を除去して、冗長なデータ転送を回避することによ
り、効率の高い記憶装置を提供することにある。
However, in the above-mentioned storage device, as the amount of storage per storage state increases, the time cost and hardware cost required for transfer increase, resulting in a problem in terms of efficiency. As described above, conventional storage devices have problems that need to be solved regarding transfer time and hardware costs. An object of the present invention is to provide a highly efficient storage device by eliminating such conventional problems and avoiding redundant data transfer.

【0004】0004

【課題を解決するための手段】前述の課題を解決するた
めに本願の発明は;ある時点の記憶状態を保持すること
により記憶状態の復帰を可能とする記憶装置において、
データの書込みを行う第1の手段と、第1の手段により
前記データを書込まれ該データを記憶する複数の第2の
手段と、第1の手段による第2の手段へのデータ書込み
の履歴を保持する第3の手段と、複数の第2の手段の中
で最新状態を含むものがいずれであるかを表示する第4
の手段とを備え、第2の手段を複数の語毎に管理するこ
とを特徴とする。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention provides a storage device that enables restoration of a storage state by retaining a storage state at a certain point in time.
A first means for writing data, a plurality of second means for writing the data by the first means and storing the data, and a history of data writing by the first means to the second means. and a fourth means for displaying which one of the plurality of second means contains the latest state.
means, and the second means is managed for each of a plurality of words.

【0005】[0005]

【作用】このような手段をとることによって、ある時点
の状態に復帰する際には、データの実体を転送すること
なしに、データが保持されている場所へのポインタを切
換えるだけですむ。これにより、冗長なデータ転送を回
避し、効率的な記憶装置を提供することができる。
[Operation] By taking such a means, when returning to a state at a certain point in time, it is possible to simply switch the pointer to the location where the data is held, without transferring the actual data. This avoids redundant data transfer and provides an efficient storage device.

【0006】[0006]

【実施例】図1は本発明の一実施例を示す構成図である
。図中10は記憶手段に対してデータの書込みを行うデ
ータ書込み手段である。20は記憶手段であり、複数あ
る中でいずれか1つの記憶手段20に対して、データ書
込み手段10からデータが書き込まれる。30は記憶手
段20に対する書込みの有無を保持しておく、書込み履
歴保持手段である。40は複数の記憶手段の内いずれが
最新の状態を保持しているかを示す、最新状態表示手段
である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, numeral 10 denotes data writing means for writing data into the storage means. 20 is a storage means, and data is written into any one of the plurality of storage means 20 from the data writing means 10. Reference numeral 30 denotes a write history holding means for holding whether or not writing has been performed on the storage means 20. Reference numeral 40 denotes a latest state display means for indicating which of the plurality of storage means holds the latest state.

【0007】図2は書込み履歴保持手段30の形式を表
している。本形式は記憶手段20の語数nおよび記憶手
段20の数mに対応している。書込み履歴保持手段30
の第j記憶状態の第i語をBH[j,i]と記述するこ
とにすると、”BH[j,i]=1”は第j番目の記憶
手段の第i語に対して書込みがあることを示している。
FIG. 2 shows the format of the write history holding means 30. This format corresponds to the number n of words in the storage means 20 and the number m of the storage means 20. Writing history holding means 30
If we write the i-th word of the j-th storage state as BH[j,i], "BH[j,i]=1" means that there is a write to the i-th word of the j-th storage means. It is shown that.

【0008】図3は最新状態表示手段40の形式を表し
ている。本形式は記憶手段20の語数nに対応している
。最新状態表示手段40の第i語をWC[i]と記述す
ることにすると、”WC[i]=j”は、第i語の最新
の記憶状態は第j番目の記憶手段にあることを示してい
る。
FIG. 3 shows the format of the latest status display means 40. This format corresponds to the number of words n in the storage means 20. If the i-th word of the latest state display means 40 is written as WC[i], "WC[i]=j" means that the latest storage state of the i-th word is in the j-th storage means. It shows.

【0009】以上のような構成の記憶装置において、本
発明の内容を説明する。まず、データ書込みを行なう際
の動作を説明する。データ書込み手段10からのデータ
の書込みはいずれかの記憶手段20に記憶される。いず
れの記憶手段20に書込むかは、最新状態表示手段40
に従う。すなわち、第i語に書込みを行なおうとする場
合は、最新状態表示手段40の第i語であるWC[i]
(=jとする)を参照し、第j番目の記憶手段に対して
書込みを行なう。この書込みの際には、書込み履歴保持
手段30の第j記憶状態の第i語であBH[j,i]を
1にして、書込みの履歴を残す。
The contents of the present invention will be explained in connection with a storage device having the above configuration. First, the operation when writing data will be explained. Data written from the data writing means 10 is stored in one of the storage means 20. The latest status display means 40 determines which storage means 20 to write to.
Follow. That is, when attempting to write to the i-th word, the i-th word WC[i] of the latest status display means 40
(=j) and writes to the j-th storage means. During this writing, BH[j,i] is set to 1 in the i-th word of the j-th storage state of the writing history holding means 30, and the writing history is left.

【0010】次に、記憶状態の保存(チェックポイント
)をする際の動作を説明する。チェックポイントは、同
時に最大m(書込み履歴保持手段30の可能記憶状態数
)個保存することができる。書込み履歴保持手段30で
の最新記憶状態番号をHP、最古記憶状態番号をTPと
する。HPとTPは共に1〜mの値をとり、初期状態は
1である。HPはTPに対して常に先行してインクリメ
ントされる。チェックポイントを行なう場合は、最新状
態表示手段40の第i語であるWC[i]に対し、書込
み履歴保持手段30の第j記憶状態の第i語であるBH
[j,i]を加える(mod  m)。但し、iは1〜
nの全てについてであり、jはHPである。次にHPを
インクリメント(mod  m)して、書込み履歴保持
手段30のBH[HP,i]を0にしておく。但し、こ
のチェックポイントをする際には(HP+1)≠TPで
なければならない。
Next, the operation when saving the memory state (checkpoint) will be explained. A maximum of m checkpoints (the number of possible storage states of the write history holding means 30) can be saved at the same time. Let HP be the latest storage state number in the write history holding means 30, and TP be the oldest storage state number. Both HP and TP take values from 1 to m, and the initial state is 1. HP is always incremented ahead of TP. When performing a checkpoint, BH, which is the i-th word of the j-th storage state of the writing history holding means 30, is
Add [j,i] (mod m). However, i is 1~
for all n, and j is HP. Next, HP is incremented (mod m) and BH[HP,i] of the write history holding means 30 is set to 0. However, when performing this checkpoint, (HP+1) must be ≠ TP.

【0011】次に1つ前の記憶状態に復元する場合の動
作について説明する。復元を行なう場合は、最新状態表
示手段40の第i語であるWC[i]から、書込み履歴
保持手段30の第j記憶状態の第i語であるBH[j,
i]を減算する(mod  m)。但し、iは1〜nの
全てについてであり、jはTPである。次にHPをデク
リメント(mod  m)する。最も古い記憶状態を廃
棄する場合には、TPをインクリメント(mod  m
)する。
Next, the operation when restoring to the previous storage state will be explained. When performing restoration, from WC[i] which is the i-th word of the latest state display means 40 to BH[j, which is the i-th word of the j-th storage state of the writing history holding means 30
i] (mod m). However, i is all of 1 to n, and j is TP. Next, HP is decremented (mod m). To discard the oldest storage state, increment TP (mod m
)do.

【0012】以下に、上述した本発明の動作についてま
とめる。但し、WC[i]は第i語の最新記憶手段番号
(=1〜m)、BH[j,i]は「第j記憶状態の第i
語」への書込み履歴(=1の時、書込み有を示す)、H
PはBHにおける最新記憶状態番号、TPはBHにおけ
る最古記憶状態番号、WNは書込みを行なう語番号、を
それぞれ示す。 初期状態 WC[i]←0              (i=1
〜n)BH[1,i]←0          (i=
1〜n)HP←1 TP←1 書込み時 BH[WC[WN],WN]←1     最新バックアップ状態の作成時      i
f(HP+1)≠TP  then         
 WC[i]←WC[i]+BH[HP,i]  (m
od  m)                   
                         
              (i=1〜n)    
      HP←HP+1  (mod  m)  
        BH[HP,i]←0       
                     (i=1
〜n)    1つ前のバックアップ状態に復元する時
      WC[i]←WC[i]−BH[HP,i
]  (mod  m)              
                         
                   (i=1〜n
)    HP←HP−1  (mod  m)  最
古バックアップ状態の破棄時 TP←TP+1  (mod  m)
The operation of the present invention described above will be summarized below. However, WC[i] is the latest storage means number (=1 to m) of the i-th word, and BH[j,i] is the "i-th storage means number of the j-th storage state".
History of writing to “word” (=1 indicates writing exists), H
P represents the latest storage state number in BH, TP represents the oldest storage state number in BH, and WN represents the word number to be written. Initial state WC[i]←0 (i=1
~n) BH[1,i]←0 (i=
1 to n) HP←1 TP←1 When writing BH [WC[WN], WN]←1 When creating the latest backup state i
f(HP+1)≠TP then
WC[i]←WC[i]+BH[HP,i] (m
od m)

(i=1~n)
HP←HP+1 (mod m)
BH[HP,i]←0
(i=1
~n) When restoring to the previous backup state WC[i]←WC[i]-BH[HP,i
] (mod m)

(i=1~n
) HP←HP-1 (mod m) When discarding the oldest backup state TP←TP+1 (mod m)

【0013】[0013]

【発明の効果】以上の説明で明らかなように、本発明に
よると、記憶手段全体を転送していた従来の記憶装置に
比較して、語単位のきめ細かな制御を行うことにより、
記憶状態の変更にかかる時間的コストやハードウェアコ
ストの低い、無駄の少ない効率的な記憶装置を提供する
ことができる。
[Effects of the Invention] As is clear from the above explanation, according to the present invention, compared to the conventional storage device which transfers the entire storage means, by performing fine control on a word-by-word basis,
It is possible to provide an efficient storage device with little waste and low time cost and hardware cost for changing the storage state.

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

【図1】本発明の一実施例を示す構成図。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】図1の書込み履歴保持手段の構成を示す図。FIG. 2 is a diagram showing the configuration of write history holding means in FIG. 1;

【図3】図1の最新状態表示手段の構成を示す図。FIG. 3 is a diagram showing the configuration of latest status display means in FIG. 1;

【図4】従来の技術による構成図。FIG. 4 is a configuration diagram according to a conventional technique.

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

10    データ書込み手段 20    記憶手段 30    書込み履歴保持手段 40    最新状態表示手段 10 Data writing means 20 Memory means 30 Writing history retention means 40 Latest status display means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  ある時点の記憶状態を保持することに
より記憶状態の復帰を可能とする記憶装置において、デ
ータの書込みを行う第1の手段と、第1の手段により前
記データを書込まれ該データを記憶する複数の第2の手
段と、第1の手段による第2の手段へのデータ書込みの
履歴を保持する第3の手段と、複数の第2の手段の中で
最新状態を含むものがいずれであるかを表示する第4の
手段とを備え、第2の手段を複数の語毎に管理すること
を特徴とする記憶装置。
Claims: 1. A storage device capable of restoring a storage state by retaining the storage state at a certain point in time, comprising: first means for writing data; A plurality of second means for storing data, a third means for retaining a history of data writing to the second means by the first means, and one containing the latest state among the plurality of second means. and fourth means for displaying which one is, and the second means is managed for each of a plurality of words.
JP15787291A 1991-05-31 1991-05-31 Storage device Expired - Fee Related JP3302706B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15787291A JP3302706B2 (en) 1991-05-31 1991-05-31 Storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15787291A JP3302706B2 (en) 1991-05-31 1991-05-31 Storage device

Publications (2)

Publication Number Publication Date
JPH04355843A true JPH04355843A (en) 1992-12-09
JP3302706B2 JP3302706B2 (en) 2002-07-15

Family

ID=15659254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15787291A Expired - Fee Related JP3302706B2 (en) 1991-05-31 1991-05-31 Storage device

Country Status (1)

Country Link
JP (1) JP3302706B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002543490A (en) * 1999-04-27 2002-12-17 トランジティブ テクノロジーズ リミテッド Method and apparatus for exception handling used in program code conversion

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002543490A (en) * 1999-04-27 2002-12-17 トランジティブ テクノロジーズ リミテッド Method and apparatus for exception handling used in program code conversion

Also Published As

Publication number Publication date
JP3302706B2 (en) 2002-07-15

Similar Documents

Publication Publication Date Title
JP2001521246A (en) Buffering data exchanged between buses operating at different frequencies
JPS607818B2 (en) How to back up files
JPH04355843A (en) Storage device
JPH04311219A (en) Data backup system
JP2985517B2 (en) Storage device
US20050050382A1 (en) Apparatus, system, and method to estimate memory for recovering data
JPS63217441A (en) Journal collecting system
JP2906739B2 (en) Storage device
JP2004070456A (en) Data backup method, data backup device, and information processing unit
JP2001209567A (en) Journal writing system
JPH0242523A (en) Disk controller, difference back-up method and computer system
JPH05233440A (en) Data transfer system equipped with buffer function
JPS5816482B2 (en) Power-off recovery method
JP2001175422A (en) Disk array device
JPS5916066A (en) Data transfer system
JPS63239521A (en) Data processing system for magnetic tape device
JP3009168B2 (en) Data processing device
JP2888062B2 (en) Information processing device
JP2004094789A (en) Multiplexing system
KR0160190B1 (en) Complementary computer system and data recording
JPH07319720A (en) System switching method for processor
JPS63201859A (en) Data transfer system
JPS6220045A (en) Current/stand-by switching system for memory device
JPH04346144A (en) Storage content saving system for storage device
JPS63293667A (en) Multi-processor constituting device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20010321

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080426

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090426

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100426

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees