JPH06231053A - Data saving system - Google Patents

Data saving system

Info

Publication number
JPH06231053A
JPH06231053A JP5018586A JP1858693A JPH06231053A JP H06231053 A JPH06231053 A JP H06231053A JP 5018586 A JP5018586 A JP 5018586A JP 1858693 A JP1858693 A JP 1858693A JP H06231053 A JPH06231053 A JP H06231053A
Authority
JP
Japan
Prior art keywords
power supply
volatile memory
data
cache
power source
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
JP5018586A
Other languages
Japanese (ja)
Inventor
Tadashi Yoneyama
正 米山
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 JP5018586A priority Critical patent/JPH06231053A/en
Publication of JPH06231053A publication Critical patent/JPH06231053A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

PURPOSE:To prevent the storage data of a volatile memory from being deleted without using a battery back-up when a power source is interrupted. CONSTITUTION:The interrupting period of a direct current power source output from a power source 26 for cache when interruption occurs, is delayed by (the discharge action of) a capacitor 263 connected with a smoothing circuit 262 in the power source 26 in parallel. At that time, the supply of the direct current power source from the power source 26 to a cache RAM 23, EEPROM 24, and data saving/restoration control circuit 25 is continued regardless of the occurrence of interruption. Also, at the time of the interruption (direct current power source interruption), a power source interruption signal 27 is outputted from the power source 26. Then, the data saving/restoration control circuit 25 operates data saving from the cache RAM 23 to the EEPROM 24. On the other hand, at the time of restoration from the power source interruption, the data saving/restoration control circuit 25 waits for the end of the change of the capacitor 263, and operates data restoration from the EEPROM 24 to the cache RAM 23.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、読出し/書込み可能
な揮発性メモリを備えた情報処理機器に係り、特に電源
遮断時に揮発性メモリのデータを不揮発性メモリに退避
することにより揮発性メモリのデータが消失するのを防
止するようにしたデータ退避方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing device equipped with a readable / writable volatile memory, and more particularly to saving data in the volatile memory to a non-volatile memory when power is cut off. The present invention relates to a data saving method that prevents data loss.

【0002】[0002]

【従来の技術】近年の計算機システムのディスクサブシ
ステムには、ディスクアクセスの高速化のために、ディ
スクキャッシュ方式を適用したものが多い。このディス
クキャッシュ方式は、ディスクデータの一部の写しが置
かれるRAM(揮発性メモリ)構成のディスクキャッシ
ュ(キャッシュRAM)を備え、同キャッシュに目的デ
ータが存在する場合には、ディスク装置をアクセスしな
くても、目的データが得られるようにしたものである。
ディスクキャッシュ方式には、ライトアクセスの相違に
より、ライトスルーキャッシュ方式とライトバックキャ
ッシュ方式の2つがある。
2. Description of the Related Art In many disk subsystems of computer systems in recent years, a disk cache system is applied in order to speed up disk access. This disk cache system has a disk cache (cache RAM) of RAM (volatile memory) structure in which a copy of a part of the disk data is placed. When the target data exists in the cache, the disk device is accessed. Even if it does not exist, the target data can be obtained.
There are two disk cache methods, a write-through cache method and a write-back cache method, depending on the difference in write access.

【0003】ライトスルーキャッシュ方式は、キャッシ
ュRAMにデータを書込むと同時に、ディスクへもデー
タを書込む方式であり、キャッシュRAMの内容とディ
スクの該当する内容は常に一致している。
The write-through cache system is a system in which data is written to the disk simultaneously with writing to the cache RAM, and the contents of the cache RAM and the corresponding contents of the disk are always the same.

【0004】これに対し、ライトスルーキャッシュ方式
は、キャッシュRAMにデータを書込んだ時点で(要求
された)書込みの終了とし、キャッシュRAMからディ
スクへの書込みは負荷(処理状況)との関係を見ながら
負荷の少ない期間に適宜行う方式である。この方式は、
ディスクへの書込み動作の性能が著しく向上することか
ら、ディスクキャッシュ方式の主流となっている。
On the other hand, in the write-through cache method, the writing (requested) is terminated when the data is written in the cache RAM, and the writing from the cache RAM to the disk has a relationship with the load (processing status). This is a method that is appropriately performed while the load is low while watching. This method
Since the performance of write operation to the disk is remarkably improved, it is the mainstream of the disk cache method.

【0005】このライトバックキャッシュ方式を適用す
る上で最も注意しなければならない点は、停電等が発生
した場合にはキャッシュRAMのデータが消失すること
から、このキャッシュRAMにディスクへの書込みが行
われていないデータが存在していると問題になるという
ことである。
The most important point in applying this write-back cache method is that data in the cache RAM is lost when a power failure or the like occurs. This means that the existence of undisclosed data is a problem.

【0006】[0006]

【発明が解決しようとする課題】上記したように、ライ
トバックキャッシュ方式を適用するディスクサブシステ
ムでは、ディスクへの書込み動作の性能が著しく向上す
るものの、停電等が発生するとキャッシュRAMのデー
タが消失するために、キャッシュRAMにディスクへの
未書込みデータが存在する場合には問題であった。そこ
で、この問題を解決する方式として、従来より次の2つ
が知られていた。
As described above, in the disk subsystem to which the write-back cache system is applied, the performance of the write operation to the disk is remarkably improved, but the data in the cache RAM is lost when a power failure or the like occurs. Therefore, there is a problem when there is unwritten data to the disk in the cache RAM. Therefore, the following two methods have been conventionally known as methods for solving this problem.

【0007】第1は、ディスクキャッシュの記憶素子
に、RAMではなくて不揮発性メモリを使用する方式で
ある。しかし、この第1の方式では、不揮発性メモリの
書込み速度がRAMに比べてあまりにも遅いため、性能
的にディスクキャッシュとして満足できないという問題
があった。
The first is a method of using a non-volatile memory instead of a RAM for the storage element of the disk cache. However, in the first method, the writing speed of the non-volatile memory is much slower than that of the RAM, so that there is a problem that the disk cache cannot be satisfied in terms of performance.

【0008】第2は、記憶装置に従来通りRAMを使用
し、電源遮断時には、充電式バッテリを用いた電源バッ
クアップにより、このRAM(キャッシュRAM)への
電源供給を継続することで、RAMの記憶データが消失
するのを防ぐ方式である。しかし、この第2の方式で
は、充電式バッテリの寿命が短く、交換回数が多くなる
という問題があった。
Secondly, the RAM is used as a storage device as in the conventional case, and when the power is cut off, the power is backed up using a rechargeable battery to continue the power supply to the RAM (cache RAM), thereby storing the RAM. This is a method to prevent data loss. However, the second method has a problem that the life of the rechargeable battery is short and the number of times of replacement is large.

【0009】この発明は上記事情を考慮してなされたも
のでその目的は、記憶装置に揮発性メモリ(RAM)を
用いていても、電源遮断時には、その揮発性メモリの記
憶データを不揮発性メモリに退避することによりデータ
消失を防ぐことができ、しかもバッテリバックアップを
用いないで済むデータ退避方式を提供することにある。
The present invention has been made in consideration of the above circumstances, and an object thereof is to store data stored in a volatile memory in a non-volatile memory even when a volatile memory (RAM) is used as a storage device when power is cut off. Another object of the present invention is to provide a data saving method in which data loss can be prevented by saving the data to a computer, and a battery backup is unnecessary.

【0010】[0010]

【課題を解決するための手段】この発明は、揮発性メモ
リを備えた情報処理機器に、不揮発性メモリと、上記揮
発性メモリから不揮発性メモリへのデータ退避を制御す
る制御回路と、交流電源をもとに直流電源を発生して、
揮発性メモリ、不揮発性メモリおよび制御回路に供給す
る電源装置であって、交流電源の通電開始時に充電し、
遮断時に放電することにより、交流電源の遮断後も直流
電源の供給を短時間継続するための大容量コンデンサを
内蔵した電源装置とを設けると共に、上記の制御回路
が、交流電源の遮断時に起動されて、電源装置からコン
デンサの放電により継続して供給される直流電源を受け
て揮発性メモリから不揮発性メモリへのデータ退避を行
う構成としたことを特徴とするものである。
The present invention provides an information processing apparatus having a volatile memory, a nonvolatile memory, a control circuit for controlling data saving from the volatile memory to the nonvolatile memory, and an AC power supply. DC power is generated based on
A power supply device for supplying to a volatile memory, a non-volatile memory, and a control circuit, which is charged at the start of energization of an AC power supply,
A power supply device with a built-in large-capacity capacitor is provided for continuing the supply of DC power for a short time even after the AC power is cut off by discharging when the AC power is cut off, and the above control circuit is activated when the AC power is cut off. In addition, the configuration is characterized in that it receives the DC power continuously supplied from the power supply device by discharging the capacitor and saves the data from the volatile memory to the nonvolatile memory.

【0011】また、この発明は、上記電源装置の交流電
源遮断からの復帰時に、上記制御回路が、コンデンサの
充電完了に応じて、不揮発性メモリから揮発性メモリへ
のデータ復元を開始する構成としたことをも特徴とす
る。
Further, according to the present invention, the control circuit starts data restoration from the non-volatile memory to the volatile memory in response to the completion of charging of the capacitor when the power supply is restored from the AC power interruption. It is also characterized by what was done.

【0012】[0012]

【作用】上記の構成において、停電等により電源装置の
交流電源が遮断すると、制御回路が起動される。このと
き、電源装置に内蔵のコンデンサは、交流電源が遮断さ
れたことから放電を開始する。これにより、電源装置か
ら揮発性メモリ、不揮発性メモリおよび制御回路等へ供
給される直流電源が遮断するのが遅延され、短時間では
あるものの、直流電源供給が継続される。制御回路は、
このコンデンサの放電に伴う直流電源供給を受けて、交
流電源の遮断時より揮発性メモリの記憶データを不揮発
性メモリに退避する。このデータ退避は短時間で行える
ため、電源装置に内蔵のコンデンサにより直流電源の遮
断時期を少し遅延(揮発性メモリの容量が16MBの例
では、約8秒)するだけで、揮発性メモリの記憶データ
が消失するのを防止することができる。
In the above structure, when the AC power supply of the power supply device is cut off due to a power failure or the like, the control circuit is activated. At this time, the capacitor built in the power supply device starts discharging because the AC power supply is cut off. As a result, the interruption of the DC power supplied from the power supply device to the volatile memory, the non-volatile memory, the control circuit, etc. is delayed, and the DC power supply is continued for a short time. The control circuit
Upon receiving the DC power supply accompanying the discharge of the capacitor, the stored data in the volatile memory is saved in the non-volatile memory when the AC power supply is cut off. Since this data saving can be done in a short time, it is possible to store the data in the volatile memory only by slightly delaying the cutoff time of the DC power supply by the capacitor built in the power supply device (about 8 seconds in the case of the volatile memory having a capacity of 16 MB). Data loss can be prevented.

【0013】次に、停電等から復帰して、電源装置に交
流電源が通電されるようになると、放電していたコンデ
ンサへの充電が開始され、その充電完了に応じて制御回
路が再起動される。すると制御回路は、不揮発性メモリ
に退避されていたデータを揮発性メモリに復元する。こ
れにより、通常の運転が可能となる。
Next, when the AC power is supplied to the power supply device after recovery from a power failure or the like, charging of the discharged capacitor is started, and the control circuit is restarted in response to the completion of the charging. It Then, the control circuit restores the data saved in the non-volatile memory to the volatile memory. As a result, normal operation becomes possible.

【0014】[0014]

【実施例】図1はこの発明のデータ退避方式を計算機シ
ステムの磁気ディスクサブシステムに実施した場合の一
実施例を示すブロック構成図である。
1 is a block diagram showing an embodiment in which the data saving method of the present invention is applied to a magnetic disk subsystem of a computer system.

【0015】同図において、1は計算機システムの中枢
をなすCPU1、2はライトバックキャッシュ方式を適
用した磁気ディスクサブシステムである。CPU1と磁
気ディスクサブシステム2とはI/Oバス3により接続
されている。
In the figure, reference numeral 1 is a CPU 1, 2 which is the center of the computer system, and 2 is a magnetic disk subsystem to which a write-back cache system is applied. The CPU 1 and the magnetic disk subsystem 2 are connected by an I / O bus 3.

【0016】磁気ディスクサブシステム2は、同システ
ム2全体を制御するコントローラ21と、このコントロ
ーラ21によりアクセス制御される例えば2台のディス
クドライブ22と、例えば16MB(メガバイト)のR
AM構成のディスクキャッシュ(以下、キャッシュRA
Mと称する)23とを有している。このキャッシュRA
M23は、ディスクドライブ22(に装着されている記
憶媒体であるディスク)の記憶データの一部の写しを保
持するのに用いられる。
The magnetic disk subsystem 2 includes a controller 21 that controls the entire system 2, two disk drives 22 that are access-controlled by the controller 21, and 16 MB (megabyte) R, for example.
AM configuration disk cache (hereinafter referred to as cache RA
(Referred to as M) 23. This cache RA
The M23 is used to hold a copy of a part of the storage data of the disk drive 22 (a disk that is a storage medium mounted in the disk drive 22).

【0017】磁気ディスクサブシステム2はまた、キャ
ッシュRAM23の記憶データを退避するのに用いられ
る(キャッシュRAM23と同一容量の)読出し/書込
み可能な不揮発性メモリ、例えばEEPROM(電気的
消去可能なPROM)24と、キャッシュRAM23か
らEEPROM24へのデータ退避およびEEPROM
24からキャッシュRAM23へのデータ復元を制御す
るデータ退避/復元制御回路25と、交流電源(商用電
源)から例えば定格3.5A、5Vの直流電源を発生す
るキャッシュ用電源26とを有している。このキャッシ
ュ用電源26で発生された直流電源は、キャッシュRA
M23、EEPROM24およびデータ退避/復元制御
回路25の駆動電源として、これらに供給される。
The magnetic disk subsystem 2 is also a readable / writable non-volatile memory (having the same capacity as the cache RAM 23) used for saving the data stored in the cache RAM 23, for example, an EEPROM (electrically erasable PROM). 24, data saving from the cache RAM 23 to the EEPROM 24, and the EEPROM
It has a data save / restore control circuit 25 for controlling data restoration from 24 to the cache RAM 23, and a cache power supply 26 for generating a DC power supply with a rating of 3.5 A and 5 V from an AC power supply (commercial power supply). . The DC power generated by the cache power supply 26 is the cache RA.
It is supplied to the M23, the EEPROM 24, and the data save / restore control circuit 25 as driving power.

【0018】キャッシュ用電源26は、交流を整流する
整流回路261と整流電圧を平滑化する平滑回路262
との間に設けられた大容量コンデンサ263を内蔵す
る。このコンデンサ263は平滑回路262に並列接続
され、キャッシュ用電源26への交流電源通電時に充電
され、交流電源遮断時に放電される。
The cache power supply 26 includes a rectifying circuit 261 for rectifying an alternating current and a smoothing circuit 262 for smoothing a rectified voltage.
And a large-capacity capacitor 263 provided between and. The capacitor 263 is connected in parallel with the smoothing circuit 262, and is charged when the AC power supply to the cache power supply 26 is energized and discharged when the AC power supply is shut off.

【0019】コンデンサ263は、交流電源遮断時の放
電作用により、交流電源が遮断されても直ちに直流電源
が遮断せず、直流電源出力が短時間継続するように(即
ち直流電源遮断時期を遅延させるように)設けられたも
のである。コンデンサ263の容量は、この放電時間
(直流電源遮断の遅延時間)が、キャッシュRAM23
からEEPROM24へのデータ退避に要する時間(こ
こでは、約7秒)を十分上回る時間となるように選定さ
れる必要がある。この例では、コンデンサ263の容量
は5,610μFであり、この場合、交流電源遮断に伴
う直流電源遮断時期を約8秒遅らせることが可能とな
る。なお、上記のコンデンサ263を用いなかった場合
の遅延時間は、平滑回路262中のコンデンサの容量が
300μFの例では、約400ミリ秒である。
The capacitor 263 does not immediately shut off the DC power supply even if the AC power supply is shut off due to the discharging action when the AC power supply is shut off, so that the DC power supply output continues for a short time (that is, the DC power supply shutoff timing is delayed). Is provided). As for the capacity of the capacitor 263, the discharge time (delay time of DC power supply cutoff) is determined by the cache RAM 23.
It is necessary to select a time period that is sufficiently longer than the time period (here, about 7 seconds) required to save data from the memory to the EEPROM 24. In this example, the capacity of the capacitor 263 is 5,610 μF, and in this case, it is possible to delay the DC power supply cutoff timing accompanying the AC power supply cutoff by about 8 seconds. The delay time when the capacitor 263 is not used is about 400 milliseconds when the capacity of the capacitor in the smoothing circuit 262 is 300 μF.

【0020】キャッシュ用電源26は、停電等に起因し
た交流電源遮断を検出して電源遮断信号27を出力する
周知の機能の他、交流電源の通電開始によりコンデンサ
263への充電が行われた際に、その充電電圧が所定レ
ベル以上となったことを(図示せぬ充電完了検出回路に
より)検出して充電完了信号28を出力する機能を有す
る。この電源遮断信号27および充電完了信号28はデ
ータ退避/復元制御回路25に供給される。なお、図1
では、コントローラ21に電源を供給するコントローラ
用電源等は省略されている。次に、図1中の磁気ディス
クサブシステム2の動作を説明する。
The cache power supply 26 has a known function of detecting AC power interruption due to power failure or the like and outputting a power interruption signal 27, and also when the capacitor 263 is charged by the start of energization of the AC power supply. In addition, it has a function of detecting that the charging voltage becomes equal to or higher than a predetermined level (by a charging completion detecting circuit (not shown)) and outputting the charging completion signal 28. The power cutoff signal 27 and the charge completion signal 28 are supplied to the data save / restore control circuit 25. Note that FIG.
In, the controller power supply for supplying power to the controller 21 is omitted. Next, the operation of the magnetic disk subsystem 2 in FIG. 1 will be described.

【0021】ライトバックキャッシュ方式を適用する磁
気ディスクサブシステム2では、CPU1からディスク
ライト要求があった場合、キャッシュRAM23にデー
タを書込んだ時点で、コントローラ21からCPU1に
対して書込み終了が報告される。そして、ディスクドラ
イブ22への書込みは、負荷の軽いときを見計らって行
われる。
In the magnetic disk subsystem 2 to which the write-back cache method is applied, when the CPU 1 makes a disk write request, the controller 21 reports the completion of writing to the CPU 1 when the data is written in the cache RAM 23. It Then, writing to the disk drive 22 is performed in consideration of a light load.

【0022】このようなライトバックキャッシュ方式で
は、ディスクライトアクセスの性能向上は図れるもの
の、停電等が発生して、もしキャッシュRAM23への
電源供給が無くなると、キャッシュRAM23の記憶デ
ータは消失するため、ディスクドライブ22(に装着さ
れているディスク)内の未書き込みデータ(未更新デー
タ)を正しいデータに書換えることは不可能となる。
In such a write-back cache system, although the performance of the disk write access can be improved, if the power supply to the cache RAM 23 is lost due to a power failure or the like, the data stored in the cache RAM 23 will be lost. It becomes impossible to rewrite unwritten data (unupdated data) in the disk drive 22 (a disk mounted in the disk drive) into correct data.

【0023】しかし本実施例では、停電等が発生した場
合に、キャッシュ用電源26内のコンデンサ263の作
用による直流電源遮断の遅延を利用して、キャッシュR
AM23の記憶データをEEPROM24に退避してお
き、停電等からの復帰時に、その退避データによりキャ
ッシュRAM23の内容を復元できるようにしている。
以下、停電時のデータ退避動作および停電からの復帰時
のデータ復元動作を、図2および図3のフローチャート
を参照して説明する。
In this embodiment, however, the cache R is delayed by the action of the capacitor 263 in the cache power supply 26 when a power failure or the like occurs.
The data stored in the AM 23 is saved in the EEPROM 24 so that the contents of the cache RAM 23 can be restored by the saved data when returning from a power failure or the like.
Hereinafter, the data saving operation at the time of power failure and the data restoring operation at the time of recovery from the power failure will be described with reference to the flowcharts of FIGS. 2 and 3.

【0024】まず、停電が発生して、キャッシュ用電源
26に入力される交流電源が遮断すると、キャッシュ用
電源26(内の図示せぬ電源遮断検出回路)によりその
旨が検出され、データ退避/復元制御回路25に電源遮
断信号27が出力される(ステップS1)。
First, when a power failure occurs and the AC power input to the cache power supply 26 is shut off, the cache power supply 26 (a power shutoff detection circuit (not shown)) detects that fact and saves data. The power-off signal 27 is output to the restoration control circuit 25 (step S1).

【0025】また、キャッシュ用電源26においては、
交流電源が遮断されたことから、コンデンサ263の放
電が開始される。この結果、交流電源が遮断されても、
このコンデンサ263の放電が終了するまでの期間は、
コンデンサ263からの放電電流に従いキャッシュ用電
源26からの直流電源出力が継続され、キャッシュRA
M23、EEPROM24およびデータ退避/復元制御
回路25へ直流電源が供給される(ステップS2)。
In the cache power supply 26,
Since the AC power supply is cut off, the discharge of the capacitor 263 is started. As a result, even if the AC power is cut off,
The period until the discharge of this capacitor 263 is completed is
In accordance with the discharge current from the capacitor 263, the DC power supply output from the cache power supply 26 is continued and the cache RA
DC power is supplied to the M23, the EEPROM 24, and the data save / restore control circuit 25 (step S2).

【0026】データ退避/復元制御回路25は、キャッ
シュ用電源26からの電源遮断信号27により起動さ
れ、キャッシュRAM23の記憶データをEEPROM
24に転送して書込む処理、即ちキャッシュRAM23
の記憶データをEEPROM24に退避するデータ退避
処理を行う(ステップS3)。この退避処理に要する時
間は、キャッシュRAM23およびEEPROM24の
容量が16MBの本実施例では、約7秒である。これに
対し、コンデンサ263の放電時間(交流電源遮断に伴
う直流電源遮断の遅延時間)は、その容量を5,610
μFとした場合、約8秒である。したがって、上記のデ
ータ退避処理の間は、キャッシュ用電源26内のコンデ
ンサ263の放電動作により、キャッシュ用電源26か
らキャッシュRAM23、EEPROM24およびデー
タ退避/復元制御回路25への直流電源供給が確実に継
続され、データ退避処理は確実に実行される。
The data save / restore control circuit 25 is activated by the power cutoff signal 27 from the cache power supply 26, and the data stored in the cache RAM 23 is stored in the EEPROM.
Processing for transferring to 24 and writing, that is, cache RAM 23
A data saving process is performed to save the stored data in the EEPROM 24 (step S3). The time required for this save processing is about 7 seconds in the present embodiment in which the capacity of the cache RAM 23 and the EEPROM 24 is 16 MB. On the other hand, the discharge time of the capacitor 263 (the delay time of the cutoff of the DC power supply due to the cutoff of the AC power supply) is 5,610.
When it is set to μF, it takes about 8 seconds. Therefore, during the above data saving process, the DC power supply from the cache power supply 26 to the cache RAM 23, the EEPROM 24, and the data save / restore control circuit 25 is surely continued by the discharging operation of the capacitor 263 in the cache power supply 26. Thus, the data saving process is surely executed.

【0027】次に、停電から復帰して、キャッシュ用電
源26に交流電源が通電されるようになると、キャッシ
ュ用電源26内のコンデンサ263への充電が開始され
る。そして、コンデンサ263の充電電圧が所定レベル
以上となって充電が完了すると(本実施例では約30秒
で充電完了)、キャッシュ用電源26(内の図示せぬ充
電完了検出回路)によりその旨が検出され、データ退避
/復元制御回路25に充電完了信号28が出力される
(ステップS11)。
Next, when the power supply for cache 26 is restored from the power failure and the AC power is supplied to the power supply for cache 26, the charging of the capacitor 263 in the power supply for cache 26 is started. Then, when the charging voltage of the capacitor 263 becomes equal to or higher than a predetermined level and the charging is completed (in this embodiment, the charging is completed in about 30 seconds), the cache power supply 26 (the charging completion detection circuit (not shown) therein) indicates that. The charge completion signal 28 is detected and output to the data save / restore control circuit 25 (step S11).

【0028】データ退避/復元制御回路25は、キャッ
シュ用電源26からの充電完了信号28により再起動さ
れ、先程とは逆に、EEPROM24に退避しておいた
データをキャッシュRAM23に転送して書込む処理、
即ちキャッシュRAM23の内容を停電直前の状態に復
元するデータ復元処理を行う(ステップS12)。この
データ復元処理が完了すると、磁気ディスクサブシステ
ム2の通常の運転が可能となる。
The data save / restore control circuit 25 is restarted by the charging completion signal 28 from the cache power supply 26, and contrary to the above, the data saved in the EEPROM 24 is transferred to the cache RAM 23 and written therein. processing,
That is, a data restoration process is performed to restore the contents of the cache RAM 23 to the state immediately before the power failure (step S12). When this data restoration process is completed, normal operation of the magnetic disk subsystem 2 becomes possible.

【0029】なお、前記実施例では、停電時等において
キャッシュ用電源26からの直流電源出力が直ちに遮断
されるのを防ぐために、更に具体的に述べるならば、直
流電源が遮断されるのを遅延させて、その遅延時間内に
キャッシュRAM23からEEPROM24へのデータ
退避が行えるようにするために、平滑回路262に並列
に大容量コンデンサ263を設けた場合について説明し
たが、これに限るものではない。例えば、平滑回路26
2に含まれるコンデンサに大容量コンデンサを用いるよ
うにしても構わない。
In the above embodiment, in order to prevent the DC power output from the cache power supply 26 from being immediately shut off in the event of a power failure or the like, more specifically, delaying the DC power shutoff is delayed. Then, in order to enable the data to be saved from the cache RAM 23 to the EEPROM 24 within the delay time, the case where the large capacity capacitor 263 is provided in parallel with the smoothing circuit 262 has been described, but the present invention is not limited to this. For example, the smoothing circuit 26
A large-capacity capacitor may be used as the capacitor included in 2.

【0030】以上は、磁気ディスクサブシステム2内の
キャッシュRAM23の記憶データが停電時に消失する
のを防ぐために、キャッシュRAM23の記憶データを
停電時に不揮発性メモリ(EEPROM24)に退避す
る場合について説明したが、この発明は、キャッシュR
AM23に限らず、揮発性メモリ全般について、停電時
の記憶データ消失防止に適用可能である。
The case has been described above in which the stored data in the cache RAM 23 in the magnetic disk subsystem 2 is saved in the non-volatile memory (EEPROM 24) in the event of a power failure in order to prevent the stored data from being lost during a power failure. , This invention is a cache R
Not only the AM 23 but also the volatile memory in general can be applied to the prevention of loss of stored data at the time of power failure.

【0031】[0031]

【発明の効果】以上詳述したようにこの発明によれば、
揮発性メモリを備えた情報処理機器に、不揮発性メモリ
と、揮発性メモリから不揮発性メモリへのデータ退避を
制御する制御回路とを設けると共に、これら揮発性メモ
リ、不揮発性メモリおよび制御回路等に直流電源を供給
する電源装置内に、交流電源の通電開始時に充電し、遮
断時に放電することにより、交流電源の遮断に伴う直流
電源遮断時期を遅延させるための大容量コンデンサを設
け、この直流電源遮断の遅延時間内に、制御回路の制御
により、揮発性メモリから不揮発性メモリへのデータ退
避を行う構成としたので、停電等が発生しても、揮発性
メモリの記憶データが消失するのを防止することがで
き、しかもバッテリによるバックアップ方式を用いない
ために保守も簡単となる。
As described above in detail, according to the present invention,
An information processing device equipped with a volatile memory is provided with a non-volatile memory and a control circuit for controlling data saving from the volatile memory to the non-volatile memory, and the volatile memory, the non-volatile memory, the control circuit, etc. A large-capacity capacitor is provided in the power supply unit that supplies DC power when the AC power is turned on and is discharged when the AC power is turned off. Data is saved from the volatile memory to the non-volatile memory under the control of the control circuit within the shutdown delay time, so even if a power failure occurs, the stored data in the volatile memory will not be lost. This can be prevented, and maintenance is simplified because a battery backup system is not used.

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

【図1】この発明のデータ退避方式を計算機システムの
磁気ディスクサブシステムに実施した場合の一実施例を
示すブロック構成図。
FIG. 1 is a block diagram showing an embodiment in which the data saving method of the present invention is applied to a magnetic disk subsystem of a computer system.

【図2】同実施例における停電時のデータ退避動作を説
明するためのフローチャート。
FIG. 2 is a flow chart for explaining a data saving operation at the time of power failure in the same embodiment.

【図3】同実施例における停電からの復帰時のデータ復
元動作を説明するためのフローチャート。
FIG. 3 is a flowchart for explaining a data restoration operation at the time of recovery from a power failure in the same embodiment.

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

1…CPU、2…磁気ディスクサブシステム、21…コ
ントローラ、22…ディスクドライブ、23…キャッシ
ュRAM(揮発性メモリ)、24…EEPROM(不揮
発性メモリ)、25…データ退避/復元制御回路、26
…キャッシュ用電源、261…整流回路、262…平滑
回路、263…コンデンサ。
1 ... CPU, 2 ... Magnetic disk subsystem, 21 ... Controller, 22 ... Disk drive, 23 ... Cache RAM (volatile memory), 24 ... EEPROM (nonvolatile memory), 25 ... Data save / restore control circuit, 26
... cache power supply, 261 ... rectifier circuit, 262 ... smoothing circuit, 263 ... capacitor.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 読出し/書込み可能な揮発性メモリを備
えた情報処理機器において、 前記揮発性メモリの記憶データを退避するのに用いられ
る不揮発性メモリと、 前記揮発性メモリから前記不揮発性メモリへのデータ退
避を制御する制御回路と、 交流電源をもとに直流電源を発生して、同直流電源を少
なくとも前記揮発性メモリ、前記不揮発性メモリおよび
前記制御回路に供給する電源装置であって、前記交流電
源の通電開始時に充電し、遮断時に放電することによ
り、前記交流電源の遮断後も前記直流電源の供給を短時
間継続するための大容量コンデンサを内蔵した電源装置
とを具備し、前記制御回路は、前記交流電源の遮断時に
起動され、前記電源装置から前記コンデンサの放電によ
り継続して供給される前記直流電源を受けて前記揮発性
メモリの記憶データを前記不揮発性メモリに退避するよ
うに構成されていることを特徴とするデータ退避方式。
1. An information processing device comprising a readable / writable volatile memory, comprising: a non-volatile memory used to save the stored data of the volatile memory; and the volatile memory to the non-volatile memory. And a power supply device for generating a direct current power supply based on an alternating current power supply and supplying the direct current power supply to at least the volatile memory, the non-volatile memory and the control circuit, A power supply device having a built-in large-capacity capacitor for continuing the supply of the DC power supply for a short time even after the AC power supply is cut off by charging when the AC power supply starts to be energized and discharging when the AC power supply is cut off; The control circuit is activated when the AC power supply is cut off, receives the DC power supply continuously supplied from the power supply device by discharging the capacitor, and volatilizes the control circuit. Data storage method, characterized in that it is configured to save data stored in a non-volatile memory to the non-volatile memory.
【請求項2】 前記制御回路は、前記電源装置の交流電
源遮断からの復帰時に、前記コンデンサの充電完了に応
じて、前記不揮発性メモリから前記揮発性メモリへのデ
ータ復元を行うことを特徴とする請求項1記載のデータ
退避方式。
2. The control circuit restores data from the non-volatile memory to the volatile memory in response to completion of charging of the capacitor when the AC power supply of the power supply device is restored. The data saving method according to claim 1.
JP5018586A 1993-02-05 1993-02-05 Data saving system Pending JPH06231053A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5018586A JPH06231053A (en) 1993-02-05 1993-02-05 Data saving system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5018586A JPH06231053A (en) 1993-02-05 1993-02-05 Data saving system

Publications (1)

Publication Number Publication Date
JPH06231053A true JPH06231053A (en) 1994-08-19

Family

ID=11975737

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5018586A Pending JPH06231053A (en) 1993-02-05 1993-02-05 Data saving system

Country Status (1)

Country Link
JP (1) JPH06231053A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5519831A (en) * 1991-06-12 1996-05-21 Intel Corporation Non-volatile disk cache
JP2006302315A (en) * 2003-07-07 2006-11-02 Hitachi Ulsi Systems Co Ltd Storage device and storage system
JP2007026453A (en) * 2003-07-07 2007-02-01 Hitachi Ulsi Systems Co Ltd Storage device and storage system
JP2008293426A (en) * 2007-05-28 2008-12-04 Toshiba Corp Information processor and its data recording method
JP2009193371A (en) * 2008-02-14 2009-08-27 Rohm Co Ltd Data control unit
JP2011170887A (en) * 2011-05-25 2011-09-01 Toshiba Corp Information processing apparatus and data recording method therefor
US8078908B2 (en) 2009-05-19 2011-12-13 Fujitsu Limited Data storage device and method
US8190788B2 (en) 2009-09-16 2012-05-29 Canon Kabushiki Kaisha Shifting volatile memories to self-refresh mode
US8291149B2 (en) 2003-07-07 2012-10-16 Hitachi Ulsi Systems Co., Ltd. Storage device and storage system having a hard disk drive and flash memory
JP2012226569A (en) * 2011-04-20 2012-11-15 Fanuc Ltd Data protection device for storage device
US8862808B2 (en) 2011-03-28 2014-10-14 Fujitsu Limited Control apparatus and control method
JP2020102167A (en) * 2018-12-25 2020-07-02 キヤノン株式会社 Information processor and control method thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5519831A (en) * 1991-06-12 1996-05-21 Intel Corporation Non-volatile disk cache
US8291149B2 (en) 2003-07-07 2012-10-16 Hitachi Ulsi Systems Co., Ltd. Storage device and storage system having a hard disk drive and flash memory
JP2006302315A (en) * 2003-07-07 2006-11-02 Hitachi Ulsi Systems Co Ltd Storage device and storage system
JP2007026453A (en) * 2003-07-07 2007-02-01 Hitachi Ulsi Systems Co Ltd Storage device and storage system
JP2008293426A (en) * 2007-05-28 2008-12-04 Toshiba Corp Information processor and its data recording method
US8140880B2 (en) 2008-02-14 2012-03-20 Rohm Co., Ltd. Data control unit
JP2009193371A (en) * 2008-02-14 2009-08-27 Rohm Co Ltd Data control unit
US8078908B2 (en) 2009-05-19 2011-12-13 Fujitsu Limited Data storage device and method
US8190788B2 (en) 2009-09-16 2012-05-29 Canon Kabushiki Kaisha Shifting volatile memories to self-refresh mode
US8375149B2 (en) 2009-09-16 2013-02-12 Canon Kabushiki Kaisha Memory controller connected to plural volatile memories and data saving control method of the same
US8862808B2 (en) 2011-03-28 2014-10-14 Fujitsu Limited Control apparatus and control method
JP2012226569A (en) * 2011-04-20 2012-11-15 Fanuc Ltd Data protection device for storage device
JP2011170887A (en) * 2011-05-25 2011-09-01 Toshiba Corp Information processing apparatus and data recording method therefor
JP2020102167A (en) * 2018-12-25 2020-07-02 キヤノン株式会社 Information processor and control method thereof

Similar Documents

Publication Publication Date Title
JP3224153B2 (en) Improved data protection system and data protection method
US7126857B2 (en) Storage subsystem with embedded circuit for protecting against anomalies in power signal from host
US8499184B2 (en) Method for resuming a system from a power failure after the main power supply has recovered and prior to fully recharging the backup power supply by enabling the reception of input/output commands by the cache memory at a rate proportational to the amount of charge on the backup power supply currently available
JPH06231053A (en) Data saving system
JP2006313407A (en) Dirty data processing method, dirty data processor and dirty data processing program
JPH07175728A (en) Disk cache data maintenance system
JPH09330277A (en) Service interruption processing system for disk cache system and method therefor
JP2002099390A (en) Disk controller
CN114265550A (en) Solid state disk power failure protection method and system
JP7060806B2 (en) Information processing equipment, data management method and data management program
JP3133492B2 (en) Information processing device
JPH064228A (en) Semiconductor disk device
JPH0728572A (en) Automatic data preserving device at power interruption
JPH09212424A (en) Disk cache and disk caching method
JPH11149419A (en) Method and device for backing up data
JPH08161236A (en) Data backup system by flash memory
WO2022038857A1 (en) Terminal device
JPH0744982A (en) Data recording/reproducing device and method for controlling data write
JP3087650B2 (en) Automatic power recovery method
KR100577800B1 (en) Automatic back-up device and method for computer system
JP3053270B2 (en) Power supply backup method and device
JPH05143469A (en) Memory backup device
JP3080005B2 (en) Data processing device
JPH0415726A (en) Write back-up system for disk controller
JPH05233474A (en) Storage contents protection system