JP2000298621A - Magnetic disk drive - Google Patents

Magnetic disk drive

Info

Publication number
JP2000298621A
JP2000298621A JP11106015A JP10601599A JP2000298621A JP 2000298621 A JP2000298621 A JP 2000298621A JP 11106015 A JP11106015 A JP 11106015A JP 10601599 A JP10601599 A JP 10601599A JP 2000298621 A JP2000298621 A JP 2000298621A
Authority
JP
Japan
Prior art keywords
data
magnetic disk
disk drive
cache memory
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP11106015A
Other languages
Japanese (ja)
Inventor
Yasuhisa Tokai
泰久 東海
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 Engineering Ltd
Original Assignee
NEC 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP11106015A priority Critical patent/JP2000298621A/en
Publication of JP2000298621A publication Critical patent/JP2000298621A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To reduce the capacity of a battery for backup when power supply is disconnected, to make it small-sized and to reduce an installation space by reducing time needed to save data when power supply is disconnected. SOLUTION: When a read instruction comes from a central processing unit 10, a management table 23 decides the existence/absence of target data in a cache memory 24, transfers it from the memory 24 when the data exist and transfers it from a magnetic disk drive part 25 when the data do not exist. When power supply is disconnected, the contents of the table 23 and the memory 24 are compressed and saved into a prescribed area of the part 25. When power supply is inputted, the data existing in the prescribed area of the part 25 are depressed, expanded and stored in the table 23 and the memory 24.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、中央処理装置に
よる命令によってデータの転送とデータの書込み命令を
実行する磁気ディスク装置に関し、特にデータを一時的
に格納するキャッシュ・メモリを制御する手段を備えた
磁気ディスク装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk drive for executing a data transfer and a data write command in accordance with a command from a central processing unit, and more particularly to a means for controlling a cache memory for temporarily storing data. To a magnetic disk drive.

【0002】[0002]

【従来の技術】中央処理装置(CPU)を中心とするコ
ンピュータシステムにおいて、中央処理装置と記憶装置
の間でデータの転送を行う場合、必ずアクセスのための
待ち時間(アクセス・タイム)が発生する。このアクセ
スタイムの長短は、記憶装置によってさまざまである。
半導体記憶装置では数ns〜数10μs、ディスク装置
では平均数ms〜数100msである。ところで、コン
ピュータシステムの性能を向上させるためには、このア
クセス・タイムの短縮を図ることが要求される。
2. Description of the Related Art In a computer system centered on a central processing unit (CPU), when data is transferred between the central processing unit and a storage device, a waiting time (access time) for access always occurs. . The length of the access time varies depending on the storage device.
It takes several ns to several tens of microseconds in a semiconductor memory device, and several milliseconds to several hundred ms in a disk device. By the way, in order to improve the performance of the computer system, it is required to shorten the access time.

【0003】前記アクセス・タイムを短縮する方法に
は、種々のものがあるが、代表的なものとしてキャッシ
ュ・メモリ制御による方法がある。図4は従来のこの種
のキャッシュ・メモリ制御のシステムを示す概略のブロ
ック図である。このシステムは、中央処理装置1とシス
テムメモリ2、キャッシュ制御部3、磁気ディスク装置
4とを備えている。また、キャッシュ制御部3は、キャ
ッシュ・メモリ3aと、キャッシュ制御部3に電源が投入
されたことを検出する電源投入検出手段3b、同じく電源
が切断されたことを検出する電源切断検出手段3c、キャ
ッシュ・メモリ3aと前記磁気ディスク装置4との間のデ
ータの転送を制御する転送制御手段3dとを備えている。
また、前記電源投入手段3bにって電源投入が検出される
と、前記転送制御手段3dによってキャッシュ・メモリ3a
と磁気ディスク装置4との間でデータの転送が行なわれ
る。そして、キャッシュ制御部3は、磁気ディスク装置
4に対して中央処理装置1からアクセスがあると、磁気
ディスク装置4のデータをキャッシュ・メモリ3aに一時
格納し、以降同一のアクセスがあるとキャッシュ・メモ
リ3aに格納されたデータを中央処理装置1に転送する。
There are various methods for shortening the access time, and a typical method is to control the cache memory. FIG. 4 is a schematic block diagram showing a conventional cache memory control system of this kind. This system includes a central processing unit 1, a system memory 2, a cache control unit 3, and a magnetic disk device 4. The cache control unit 3 includes a cache memory 3a, a power-on detection unit 3b for detecting that the power is supplied to the cache control unit 3, a power-off detection unit 3c for detecting that the power is also turned off, A transfer control unit 3d for controlling data transfer between the cache memory 3a and the magnetic disk device 4 is provided.
When power-on is detected by the power-on means 3b, the transfer control means 3d controls the cache memory 3a.
Data is transferred between the disk drive and the magnetic disk device 4. Then, when the central processing unit 1 accesses the magnetic disk device 4, the cache control unit 3 temporarily stores the data of the magnetic disk device 4 in the cache memory 3a. The data stored in the memory 3a is transferred to the central processing unit 1.

【0004】キャッシュ制御部3は、キャッシュ・メモ
リ3aにデータが格納されていない場合に、システム全体
の電源が投入されると、中央処理装置1から読み出し命
令が発行される前に、中央処理装置1の制御とは無関係
に磁気ディスク装置4の先頭からキャッシュ・メモリ3a
が充足されるまでデータが転送される。また、システム
の稼働中に電源切断検出手段3cが電源切断を検出した場
合には、キャッシュ・メモリ3aのデータを磁気ディスク
装置4の所定の領域に退避させる。なお、システムへの
電源の供給には商用電源が用いられており、停電など不
用意な電源切断があるとバッテリーなどによって電源の
バックアップが行なわれるようになっている。
When data is not stored in the cache memory 3a and the power of the entire system is turned on, the cache control unit 3 issues a read command to the central processing unit 1 before the central processing unit 1 issues a read command. 1 from the beginning of the magnetic disk device 4 regardless of the control of the cache memory 3a.
Data is transferred until is satisfied. When the power-off detecting means 3c detects the power-off during operation of the system, the data in the cache memory 3a is evacuated to a predetermined area of the magnetic disk device 4. A commercial power supply is used to supply power to the system, and a power supply is backed up by a battery or the like when an unintended power cut such as a power failure occurs.

【0005】AC電源供給が停止した場合に、システム
をダウンさせることなく自動的に退避行動を行なうこと
を可能とし、かつ小スペースで停電保護装置を内蔵する
ものとして、例えば特開平6−266479号公報に記
載された小型パーソナルコンピュータがある。これは、
AC電源に基づきDC入力電圧を生成する手段と、バッ
テリー電源と、AC電源断を検出する検出手段と、この
検出手段の検出出力に応じて電源をバッテリー電源に切
り替える切り替え手段と、検出手段の検出出力に応じた
割り込み処理によりコンピュータ内の揮発性記憶手段の
データを自動的に不揮発性記憶手段に退避する処理手段
とを備えさせたものである。
Japanese Patent Laid-Open No. Hei 6-266479 discloses a system in which, when an AC power supply is stopped, an evacuation action can be performed automatically without bringing down the system, and a power failure protection device is built in a small space. There is a small personal computer described in the gazette. this is,
A means for generating a DC input voltage based on the AC power, a battery power, a detecting means for detecting a disconnection of the AC power, a switching means for switching the power to the battery power according to a detection output of the detecting means, and a detecting means for detecting the detecting means And a processing means for automatically saving the data in the volatile storage means in the computer to the non-volatile storage means by interrupt processing corresponding to the output.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、上述し
た従来の磁気ディスク装置では、キャッシュ・メモリを
搭載することによりアクセス時間が短縮され、システム
全体の性能を向上させることができるが、より一層の性
能の向上を図る場合に、一度にアクセスするデータのサ
イズを大きくしようとすると、キャッシュ・メモリの容
量を大きくして対応することになり、その結果キャッシ
ュ・メモリの退避・復元処理の負荷が大きくなってしま
うおそれがある。すなわち、従来の磁気ディスク装置に
おける電源切断時のキャッシュ・メモリの内容の退避処
理では、退避させるべきキャッシュ・メモリの状態や容
量により退避時間が左右され、キャッシュ・メモリの容
量を大きくした場合には退避させるべきデータが増大
し、退避処理に要する時間が大きくなる。このため、停
電などの電源が切断された場合にバックアップするバッ
テリーには、この時間に対応した容量が要求され、大型
で高価なバッテリーとなってしまうおそれがある。
However, in the above-mentioned conventional magnetic disk drive, the access time can be shortened by mounting the cache memory, and the performance of the entire system can be improved. In order to increase the size of data that is accessed at one time, the cache memory capacity must be increased and the load of the cache memory save / restore process increases. There is a risk that it will. That is, in the process of saving the contents of the cache memory when the power is turned off in the conventional magnetic disk device, the saving time depends on the state and capacity of the cache memory to be saved, and when the capacity of the cache memory is increased, The data to be saved increases, and the time required for the saving process increases. For this reason, a battery that is backed up when the power is cut off due to a power failure or the like is required to have a capacity corresponding to this time, and there is a possibility that the battery may become large and expensive.

【0007】そこで、この発明は、電源切断時などに迅
速に所定のデータをキャッシュ・メモリから退避させる
ことができ、電源切断時のバックアップ用のバッテリー
の容量を小さくすることができる磁気ディスク装置を提
供することを目的としている。
Therefore, the present invention provides a magnetic disk drive that can quickly save predetermined data from the cache memory when the power is turned off, and can reduce the capacity of a backup battery when the power is turned off. It is intended to provide.

【0008】[0008]

【課題を解決するための手段】前記の目的を達成するた
めの技術的手段として、この発明に係る磁気ディスク装
置は、データ等を記憶する磁気ディスク駆動部と、前記
磁気ディスク駆動部に対してデータ等の読出しと書込み
とを指示するディスク制御部と、データ等を一時的に格
納するキャッシュ・メモリと、前記キャッシュ・メモリ
に格納されたデータ等の管理のための管理データを格納
して該キャッシュ・メモリに格納されたデータ等を管理
する管理テーブルと、前記管理テーブルによって前記キ
ャッシュ・メモリに格納されたデータ等の存否を検出す
ると共に、電源の投入と切断とを検出するキャッシュ制
御部とを備え、電源切断時には、前記キャッシュ・メモ
リに格納されたデータ等と前記管理テーブルに格納され
た管理データとを前記磁気ディスク駆動部に退避させ、
電源投入時には、前記管理データと、該管理データによ
って管理されるデータ等とを前記キャッシュ・メモリに
復元することを特徴としている。
As a technical means for achieving the above object, a magnetic disk drive according to the present invention comprises: a magnetic disk drive for storing data and the like; A disk control unit that instructs reading and writing of data and the like, a cache memory that temporarily stores data and the like, and management data for managing data and the like stored in the cache memory and storing the data. A management table that manages data and the like stored in the cache memory, and a cache control unit that detects the presence or absence of the data and the like stored in the cache memory by the management table and that detects power-on and power-off. When power is turned off, the data and the like stored in the cache memory and the management data stored in the management table are Serial retracts the magnetic disk drive unit,
When the power is turned on, the management data and data managed by the management data are restored in the cache memory.

【0009】すなわち、キャッシュ・メモリに格納され
たデータを磁気ディスク駆動部に転送する場合には、管
理テーブルに格納された管理データと共に転送する。そ
して、電源が投入された時には、キャッシュ・メモリに
は管理データに基づいてデータを復元する。また、中央
処理装置から読み出し命令が発行された場合には、管理
テーブルにてキャッシュ・メモリ内における当該データ
の有無を判断する。すなわち、当該データに対応した管
理データが管理テーブルに存する場合にはキャッシュ・
メモリから当該データを読み出し、存しない場合には磁
気ディスク駆動部から当該データを読み出す。このた
め、データのヒットに要する時間を短縮することができ
る。また、管理テーブルをキャッシュ・メモリとは別個
に格納するから、キャッシュ・メモリの容量を小さくす
ることができる。
That is, when data stored in the cache memory is transferred to the magnetic disk drive, the data is transferred together with the management data stored in the management table. When the power is turned on, the data is restored in the cache memory based on the management data. When a read command is issued from the central processing unit, the management table is used to determine the presence or absence of the data in the cache memory. That is, if the management data corresponding to the data exists in the management table,
The data is read from the memory, and if not present, the data is read from the magnetic disk drive. Therefore, the time required for hitting data can be reduced. Further, since the management table is stored separately from the cache memory, the capacity of the cache memory can be reduced.

【0010】また、請求項2の発明に係る磁気ディスク
装置は、前記キャッシュ制御部は、前記データ等と管理
データとを磁気ディスク駆動部に退避させる際にこれら
データ等の圧縮処理を行ない、キャッシュ・メモリに復
元させる際にはこれらデータ等の展開処理を行なうこと
を特徴としている。
Further, in the magnetic disk drive according to the present invention, the cache control unit performs a compression process on the data and the like when saving the data and the management data to the magnetic disk drive unit, -It is characterized in that when data is restored to the memory, the data is expanded.

【0011】データ等が転送される際には、データ等は
圧縮された状態にあるから、転送時間を短縮することが
できる。
When data and the like are transferred, the data and the like are in a compressed state, so that the transfer time can be reduced.

【0012】また、請求項3の発明に係る磁気ディスク
装置は、前記キャッシュ制御部は、前記データ等と管理
データとを磁気ディスク駆動部に退避させる際に、これ
らデータ等の中の未更新データのみを退避させることを
特徴としている。
According to a third aspect of the present invention, in the magnetic disk drive, when the cache control unit saves the data and the like and the management data to the magnetic disk drive, the cache control unit stores the unupdated data in the data and the like. Only the evacuation is characterized.

【0013】ここで、未更新データとは、キャッシュ・
メモリに格納されているデータ等であって、磁気ディス
ク駆動部に格納されている内容と同期が取れていないデ
ータをいう。すなわち、データ等を退避させる場合にこ
の未更新データのみを退避させるようにする。この場合
には、全データを退避させる場合に比べて退避処理に要
する時間が短くなる。
Here, the unupdated data is defined as a cache
Data stored in the memory, etc., which is not synchronized with the content stored in the magnetic disk drive. That is, when saving data or the like, only the unupdated data is saved. In this case, the time required for the save process is shorter than when all data is saved.

【0014】[0014]

【発明の実施の形態】以下、図示した好ましい実施の形
態に基づいて、この発明に係る磁気ディスク装置を具体
的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a magnetic disk drive according to the present invention will be specifically described based on preferred embodiments shown in the drawings.

【0015】図1はこの発明に係る磁気ディスク装置の
構成の概略を示すブロック図で、中央処理装置10に接続
された磁気ディスク装置20は、ディスク制御部21とキャ
ッシュ制御部22、管理テーブル23、キャッシュ・メモリ
24、磁気ディスク駆動部25とによって構成されている。
FIG. 1 is a block diagram schematically showing the configuration of a magnetic disk drive according to the present invention. A magnetic disk drive 20 connected to a central processing unit 10 includes a disk control unit 21, a cache control unit 22, and a management table 23. , Cache memory
24, and a magnetic disk drive unit 25.

【0016】前記ディスク制御部21は、キャッシュ制御
部22からの指示を受けて、磁気ディスク駆動部25に対し
てデータ転送のための指示を行う。
The disk control unit 21 receives an instruction from the cache control unit 22 and instructs the magnetic disk drive unit 25 to transfer data.

【0017】キャッシュ制御部21は、中央処理装置10か
ら発行される命令を受けて、管理テーブル23に格納され
た管理データを用いて、任意のキャッシュ・アルゴリズ
ムによりキャッシュ・メモリ24内に格納されているデー
タの中に発行命令に係るデータに関する存否(ヒット/
ミスヒット)の判定を行なう。そして、ヒットした場合
(存在する場合)には、キャッシュ・メモリ24から当該
データを読み出して中央処理装置10に転送し、ミスヒッ
トした場合(存在しない場合)には、磁気ディスク駆動
部25から当該データを読み出して中央処理装置10に転送
するようディスク制御部21に対して指示を行なう。ま
た、該キャッシュ制御部22は、この磁気ディスク装置20
に対する電源の投入と切断を検出する。さらに、管理テ
ーブル23に格納された管理データとキャッシュ・メモリ
24に格納されたデータ等の圧縮・展開を行なう。
The cache control unit 21 receives an instruction issued from the central processing unit 10 and uses the management data stored in the management table 23 to store the cache data in the cache memory 24 according to an arbitrary cache algorithm. The presence / absence of data related to the issued instruction (hit /
Mis-hit). If there is a hit (if it exists), the data is read from the cache memory 24 and transferred to the central processing unit 10, and if there is a miss (if it does not exist), the data is read from the magnetic disk drive unit 25. It instructs the disk controller 21 to read the data and transfer it to the central processing unit 10. Also, the cache control unit 22
Detects power on and power off. Further, the management data stored in the management table 23 and the cache memory
Compresses and decompresses data stored in 24.

【0018】前記管理テーブル23には、キャッシュ・メ
モリ24に格納されるデータの属性と制御情報、磁気ディ
スク駆動部25におけるデータのアドレスなどが保持され
ている。
The management table 23 stores data attributes and control information stored in the cache memory 24, data addresses in the magnetic disk drive 25, and the like.

【0019】前記キャッシュ・メモリ24には、中央処理
装置10から転送される書込みデータと、磁気ディスク駆
動部25から読み出されるデータとが格納される。
The cache memory 24 stores write data transferred from the central processing unit 10 and data read from the magnetic disk drive 25.

【0020】前記磁気ディスク駆動部25は、ディスク制
御部21の指示を受けて、データの読み出し及び書込み動
作を行なう。
The magnetic disk drive unit 25 receives data from the disk control unit 21 and performs data read and write operations.

【0021】なお、磁気ディスク装置20に対する電源供
給には商用電源を利用することができ、商用電源から供
給を受けている場合に、停電などで不用意に電源が切断
されようとした場合には、自動的に切り替えられて電源
の供給を切断してしまうことがないようバックアップ用
バッテリーが備えられている。
A commercial power supply can be used to supply power to the magnetic disk device 20. If power is accidentally cut off due to a power failure or the like while power is being supplied from the commercial power supply, A backup battery is provided so that the power supply is not automatically switched to disconnect the power supply.

【0022】以上により構成されたこの発明に係る磁気
ディスク装置の実施形態について、その動作を説明す
る。
The operation of the embodiment of the magnetic disk drive according to the present invention configured as described above will be described.

【0023】中央処理装置10から磁気ディスク装置20に
対して、データの読み出し命令が発行されると、キャッ
シュ制御部22は、命令に係る目的データがキャッシュ・
メモリ24に存在するか否かを、前記管理テーブル23に格
納された管理データを利用して判定する。キャッシュ・
メモリ24に目的データが存する場合(ヒット)には、磁
気ディスク駆動部25から目的データを読み出すことな
く、キャッシュ・メモリ24から目的データを読み出して
中央処理装置10に転送する。
When a data read command is issued from the central processing unit 10 to the magnetic disk device 20, the cache control unit 22 stores the target data related to the command in the cache memory.
Whether or not the data exists in the memory 24 is determined by using the management data stored in the management table 23. cache·
If the target data exists in the memory 24 (hit), the target data is read from the cache memory 24 and transferred to the central processing unit 10 without reading the target data from the magnetic disk drive 25.

【0024】他方、キャッシュ・メモリ24に目的データ
が存しない場合(ミスヒット)には、磁気ディスク駆動
部25から目的データを読み出すよう、ディスク制御部21
に対して指示を行なう。目的データが読み出されると、
中央処理装置10に転送すると共に、キャッシュ・メモリ
24にも該目的データを格納し、管理テーブル23の内容の
更新処理を行なう。
On the other hand, if the target data does not exist in the cache memory 24 (miss hit), the disk control unit 21 reads the target data from the magnetic disk drive unit 25.
Is instructed. When the target data is read,
Transfer to central processing unit 10 and cache memory
The target data is also stored in 24, and the contents of the management table 23 are updated.

【0025】また、中央処理装置10からデータの書込み
命令が発行されると、キャッシュ制御部21はキャッシュ
・メモリ24に対して書込みデータを格納し、管理テーブ
ル23の更新処理を行なう。そして、前記書込み命令が発
行させれて一定時間が経過すると、該書込みデータは磁
気ディスク駆動部25に格納される。
When a data write command is issued from the central processing unit 10, the cache control unit 21 stores the write data in the cache memory 24 and updates the management table 23. Then, when a predetermined time elapses after the write command is issued, the write data is stored in the magnetic disk drive unit 25.

【0026】なお、これらの読み出しあるいは書込みに
よる目的データのヒット、ミスヒットの判定とキャッシ
ュ・メモリ24へのデータの格納アドレス選択処理は、L
RU(Least Recently Used)アルゴリズム等に従うも
のとしてある。
The determination of hit or mishit of the target data by the reading or writing and the process of selecting the storage address of the data in the cache memory 24 are performed by L.
It is based on an RU (Least Recently Used) algorithm or the like.

【0027】次に、図2及び図3のフローチャートを参
照して、電源切断時と電源投入時の動作を説明する。
Next, the operation at the time of power-off and at the time of power-on will be described with reference to the flowcharts of FIGS.

【0028】図2は電源切断時のキャッシュデータ退避
処理のフローチャートで、キャッシュ制御部22が電源切
断を検出すると退避処理が開始され(ステップ20
1)、キャッシュ・メモリ24が使用状態にあるか否かが
判定される(ステップ202)。なお、キャッシュ・メ
モリ24を使用可能とするか不可能とするかは、任意に設
定できるようにしてある。使用状態になければ(ステッ
プ202/NO)、バッテリー切断処理が実行される
(ステップ210)。使用状態にあれば(ステップ20
2/YES)、管理テーブルの内容を読み出し(ステッ
プ203)、磁気ディスク駆動部25に格納されている内
容と同期が取れていないデータ(未更新データ)が存在
するか否かを判別する(ステップ204)。
FIG. 2 is a flowchart of the cache data saving process at the time of power-off. When the cache control unit 22 detects the power-off, the saving process is started (step 20).
1) It is determined whether or not the cache memory 24 is in use (step 202). Whether the cache memory 24 can be used or not can be arbitrarily set. If not in use (step 202 / NO), a battery disconnection process is executed (step 210). If in use (step 20
2 / YES), the contents of the management table are read (step 203), and it is determined whether or not there is data (unupdated data) that is not synchronized with the contents stored in the magnetic disk drive unit 25 (step 203). 204).

【0029】未更新データが存在しない場合には(ステ
ップ204/NO)、バッテリー切断処理が実行される
(ステップ210)。他方、未更新データが存在する場
合には(ステップ204/YES)、未更新データを含
む全データの任意のアルゴリズムによる圧縮処理が実行
される(ステップ205)。この圧縮処理にはハードウ
ェア等が用いられて行なわれるため、圧縮処理の終了を
確認するまで待機し(ステップ206)、圧縮処理の終
了後(ステップ206/YES)、圧縮されたデータを
磁気ディスク駆動部25の所定の領域に保存する退避処理
が実行される(ステップ207)。
If there is no unupdated data (step 204 / NO), a battery disconnection process is executed (step 210). On the other hand, if there is unupdated data (step 204 / YES), compression processing of all data including the unupdated data by an arbitrary algorithm is executed (step 205). Since the compression process is performed using hardware or the like, the process waits until the end of the compression process is confirmed (step 206), and after the end of the compression process (step 206 / YES), the compressed data is transferred to the magnetic disk. An evacuation process for saving in a predetermined area of the drive unit 25 is executed (step 207).

【0030】所定のデータの退避処理の終了に待機し
(ステップ208)、終了が確認されたならば(ステッ
プ208/YES)、退避完了フラグをセットし(ステ
ップ209)、磁気ディスク装置20の運用を停止して構
わないのであるから、バッテリーによる電源供給状態を
解除するバッテリー切断処理が実行される(ステップ2
10)。なお、前記ステップ202の判定またはステッ
プ204の判定が否定された場合には、磁気ディスク装
置20の運用を停止できるので、前述したようにバッテリ
ー切断処理が実行される(ステップ202/NO、ステ
ップ204/NO)。
Waiting for the end of the predetermined data evacuation processing (step 208), if the end is confirmed (step 208 / YES), the evacuation completion flag is set (step 209), and the operation of the magnetic disk device 20 is started. May be stopped, a battery disconnection process for canceling the power supply state by the battery is executed (step 2).
10). If the determination at step 202 or the determination at step 204 is negative, the operation of the magnetic disk device 20 can be stopped, so that the battery disconnection process is executed as described above (step 202 / NO, step 204). / NO).

【0031】次に、電源切断時の手順を図3を参照しな
がら説明する。磁気ディスク装置20の電源が投入され、
キャッシュ制御部22が電源投入を検出すると、復元処理
が開始される(ステップ301)。ステップ302で
は、図2に示した退避処理におけるステップ209でセ
ットされた退避完了フラグの有無を確認する。退避完了
フラグがセットされていなければ(ステップ302/N
O)、復元すべきデータが存在しないのであるから、復
元処理を行なわずに終了する。退避完了フラグがセット
されている場合には(ステップ302/YES)、デー
タの復元処理が実行される(ステップ303)。このデ
ータ復元処理では、退避処理において退避させたデータ
を磁気ディスク駆動部25の所定の領域から読み出す。復
元が終了したならば(ステップ304/YES)、読み
出されたデータに対して解凍処理が実行され(ステップ
305)、管理データは管理テーブル23に、データ等は
キャッシュ・メモリ24にそれぞれ展開される。なお、こ
れらデータ等の解凍は前記圧縮時に利用したアルゴリズ
ムに対応した処理で行なわれる。この解凍処理が終了し
たならば(ステップ306/YES)、退避完了フラグ
をリセットして、処理を終了する。
Next, a procedure at the time of power-off will be described with reference to FIG. When the power of the magnetic disk device 20 is turned on,
When the cache control unit 22 detects that the power is turned on, a restoration process is started (step 301). In step 302, the presence or absence of the evacuation completion flag set in step 209 in the evacuation processing shown in FIG. 2 is confirmed. If the save completion flag is not set (step 302 / N
O) Since there is no data to be restored, the process ends without performing the restoration process. If the save completion flag is set (step 302 / YES), data restoration processing is executed (step 303). In this data restoration process, the data saved in the save process is read from a predetermined area of the magnetic disk drive unit 25. When the restoration is completed (step 304 / YES), decompression processing is executed on the read data (step 305), and the management data is expanded in the management table 23, and the data and the like are expanded in the cache memory 24, respectively. You. The decompression of these data and the like is performed by processing corresponding to the algorithm used at the time of compression. When the decompression processing is completed (step 306 / YES), the evacuation completion flag is reset, and the processing ends.

【0032】電源が投入され、管理テーブル23とキャッ
シュ・メモリ24とにそれぞれ管理データとデータ等が展
開されたならば、磁気ディスク装置20は使用可能な状態
となったことを中央処理装置10に通知し、中央処理装置
10からの命令に待機することになる。
When the power is turned on and the management data and data are developed in the management table 23 and the cache memory 24, respectively, the magnetic disk device 20 is notified to the central processing unit 10 that it is in a usable state. Notify and central processing unit
You will be waiting for orders from 10.

【0033】本実施形態では、データを退避させる場合
には未更新データを含む全データを退避するものとして
説明したが、退避処理時に未更新データを検索を行なっ
て、未更新データのみを退避させるようにしても構わな
い。未更新データのみの退避を行なう場合には、退避さ
せるデータ量が小さくなり退避処理に要する時間をより
短縮することができる。
In the present embodiment, it has been described that all data including unupdated data is saved when data is saved. However, at the time of save processing, unupdated data is searched for and only unupdated data is saved. It does not matter. When saving only the unupdated data, the amount of data to be saved is reduced, and the time required for the saving process can be further reduced.

【0034】[0034]

【発明の効果】以上説明したように、この発明に係る磁
気ディスク装置によれば、管理テーブルの管理データと
キャッシュ・メモリのデータ等を電源切断時に磁気ディ
スク駆動部に退避させ、電源投入時には退避させたデー
タをキャッシュ・メモリと管理テーブルに復元するよう
にしたから、システムの休止、再開によるキャッシュ・
データのヒット率の低下を防ぐことができる。
As described above, according to the magnetic disk drive of the present invention, the management data of the management table and the data of the cache memory are saved in the magnetic disk drive when the power is turned off, and are saved when the power is turned on. The restored data is restored to the cache memory and management table, so the cache
The data hit rate can be prevented from lowering.

【0035】また、請求項2の発明に係る磁気ディスク
装置によれば、電源切断時の管理テーブルとキャッシュ
・メモリの内容を圧縮して退避することにより退避処理
に要する時間を短縮することができる。このため、電源
切断時のバックアップ用バッテリーを容量の小さいもの
にすることができ、省スペースで省電力のバッテリー装
置とすることができる。
According to the magnetic disk drive of the second aspect of the present invention, the time required for the save process can be reduced by compressing and saving the contents of the management table and the cache memory when the power is turned off. . For this reason, the backup battery when the power is turned off can be reduced in capacity, and a space-saving and power-saving battery device can be obtained.

【0036】また、請求項3の発明に係る磁気ディスク
装置によれば、データを退避させる際に最少量のデータ
のみを転送できるので、退避処理に要する時間をさらに
短縮することができ、より小容量のバッテリー装置とす
ることができる。
According to the magnetic disk drive of the third aspect of the present invention, since only a minimum amount of data can be transferred when data is saved, the time required for the save process can be further reduced. It can be a battery device with a capacity.

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

【図1】この発明に係る磁気ディスク装置の概略の構成
を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of a magnetic disk drive according to the present invention.

【図2】この発明に係る磁気ディスク装置の、電源切断
時にキャッシュ・メモリ内のデータを磁気ディスク駆動
部に退避させる退避処理の手順を示すフローチャートで
ある。
FIG. 2 is a flowchart showing a procedure of a save process for saving data in a cache memory to a magnetic disk drive unit when power is turned off in the magnetic disk device according to the present invention.

【図3】この発明に係る磁気ディスク装置の、電源投入
時にキャッシュ・メモリにデータを復元する復元処理の
手順を示すフローチャートである。
FIG. 3 is a flowchart showing a procedure of a restoration process of restoring data in a cache memory when power is turned on in the magnetic disk device according to the present invention.

【図4】従来の磁気ディスク装置におけるキャッシュ・
メモリの制御を説明するためのシステムの構成を示すブ
ロック図で、図1に対応する図である。
FIG. 4 is a diagram illustrating a conventional cache system for a magnetic disk drive.
FIG. 2 is a block diagram illustrating a configuration of a system for explaining control of a memory, and is a diagram corresponding to FIG. 1.

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

10 中央処理装置 20 磁気ディスク装置 21 ディスク制御部 22 キャッシュ制御部 23 管理テーブル 24 キャッシュ・メモリ 25 磁気ディスク駆動部 10 Central processing unit 20 Magnetic disk unit 21 Disk control unit 22 Cache control unit 23 Management table 24 Cache memory 25 Magnetic disk drive unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) // G06F 1/30 G06F 1/00 341M ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) // G06F 1/30 G06F 1/00 341M

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 データ等を記憶する磁気ディスク駆動部
と、 前記磁気ディスク駆動部に対してデータ等の読出しと書
込みとを指示するディスク制御部と、 データ等を一時的に格納するキャッシュ・メモリと、 前記キャッシュ・メモリに格納されたデータ等の管理の
ための管理データを格納して該キャッシュ・メモリに格
納されたデータ等を管理する管理テーブルと、 前記管理テーブルによって前記キャッシュ・メモリに格
納されたデータ等の存否を検出すると共に、電源の投入
と切断とを検出するキャッシュ制御部とを備え、 電源切断時には、前記キャッシュ・メモリに格納された
データ等と前記管理テーブルに格納された管理データと
を前記磁気ディスク駆動部に退避させ、 電源投入時には、前記管理データと、該管理データによ
って管理されるデータ等とを前記キャッシュ・メモリに
復元することを特徴とする磁気ディスク装置。
1. A magnetic disk drive for storing data and the like, a disk controller for instructing the magnetic disk drive to read and write data and the like, and a cache memory for temporarily storing data and the like A management table for storing management data for managing data and the like stored in the cache memory and managing the data and the like stored in the cache memory; and storing in the cache memory by the management table A cache control unit for detecting the presence / absence of the stored data and the like, and detecting power-on and power-off. When the power is turned off, the data and the like stored in the cache memory and the management stored in the management table are provided. Data is evacuated to the magnetic disk drive unit, and when the power is turned on, the management data and the management data are managed by the management data. A magnetic disk drive for restoring data to be processed and the like in the cache memory.
【請求項2】 前記キャッシュ制御部は、前記データ等
と管理データとを磁気ディスク駆動部に退避させる際に
これらデータ等の圧縮処理を行ない、キャッシュ・メモ
リに復元させる際にはこれらデータ等の展開処理を行な
うことを特徴とする請求項1に記載の磁気ディスク装
置。
2. The cache control unit performs a compression process on the data and the like and the management data when the data and the management data are saved to a magnetic disk drive unit, and performs a compression process on the data and the like when the data and the management data are restored to a cache memory. 2. The magnetic disk drive according to claim 1, wherein the expansion processing is performed.
【請求項3】 前記キャッシュ制御部は、前記データ等
と管理データとを磁気ディスク駆動部に退避させる際
に、これらデータ等の中の未更新データのみを退避させ
ることを特徴とする請求項1または請求項2に記載の磁
気ディスク装置。
3. The cache control unit according to claim 1, wherein when the data and the like and the management data are saved to a magnetic disk drive, only the unupdated data in the data and the like is saved. Alternatively, the magnetic disk drive according to claim 2.
JP11106015A 1999-04-14 1999-04-14 Magnetic disk drive Withdrawn JP2000298621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11106015A JP2000298621A (en) 1999-04-14 1999-04-14 Magnetic disk drive

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11106015A JP2000298621A (en) 1999-04-14 1999-04-14 Magnetic disk drive

Publications (1)

Publication Number Publication Date
JP2000298621A true JP2000298621A (en) 2000-10-24

Family

ID=14422844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11106015A Withdrawn JP2000298621A (en) 1999-04-14 1999-04-14 Magnetic disk drive

Country Status (1)

Country Link
JP (1) JP2000298621A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007079749A (en) * 2005-09-13 2007-03-29 Hitachi Ltd Storage device and disk control method
JP2007286679A (en) * 2006-04-12 2007-11-01 Fujitsu Ltd Information processor with information dividing/recording function
CN102044295A (en) * 2009-10-16 2011-05-04 三星电子株式会社 Nonvolatile memory system and method for managing data thereof
JP2012164194A (en) * 2011-02-08 2012-08-30 Nec Corp Storage control device and cache data saving method for the same
US9996268B2 (en) 2015-12-18 2018-06-12 Toshiba Memory Corporation Memory system and control method of the same

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007079749A (en) * 2005-09-13 2007-03-29 Hitachi Ltd Storage device and disk control method
JP2007286679A (en) * 2006-04-12 2007-11-01 Fujitsu Ltd Information processor with information dividing/recording function
CN102044295A (en) * 2009-10-16 2011-05-04 三星电子株式会社 Nonvolatile memory system and method for managing data thereof
US8819336B2 (en) 2009-10-16 2014-08-26 Samsung Electronics Co., Ltd. Nonvolatile memory system and related method of preserving stored data during power interruption
CN102044295B (en) * 2009-10-16 2016-05-11 三星电子株式会社 Nonvolatile memory system and in the method for during power interruption save data
JP2012164194A (en) * 2011-02-08 2012-08-30 Nec Corp Storage control device and cache data saving method for the same
US9996268B2 (en) 2015-12-18 2018-06-12 Toshiba Memory Corporation Memory system and control method of the same
US10599561B2 (en) 2015-12-18 2020-03-24 Toshiba Memory Corporation Memory system and control method of the same

Similar Documents

Publication Publication Date Title
US8327171B2 (en) Method and apparatus for facilitating device hibernation
JP2779813B2 (en) computer
US8838918B2 (en) Information processing apparatus and data backup method
TWI335505B (en) Systems and methods for storing data on computer systems
US7519808B2 (en) Method and apparatus for quickly reanimating devices from hibernation
US7900074B2 (en) Method and apparatus for quickly reanimating devices from hibernation
JPH077317B2 (en) System restart device
US6016536A (en) Method for backing up the system files in a hard disk drive
JP3047791B2 (en) computer
JPH07175728A (en) Disk cache data maintenance system
WO2001037066A1 (en) Information processor and computer-readable medium
JP2000298621A (en) Magnetic disk drive
JP2000215100A (en) Power-saving memory management system
US20060206652A1 (en) Machine state storage apparatus and method
JP2000357059A (en) Disk array device
JP2002099390A (en) Disk controller
JP2008158773A (en) Information processing device and memory management method
US7194640B2 (en) Alternate non-volatile memory for robust I/O
JPH11194938A (en) Memory managing method for computer having hard disk drive
JPH11259162A (en) Suspending/resuming method
JPH064228A (en) Semiconductor disk device
JPH09212424A (en) Disk cache and disk caching method
JPH0728572A (en) Automatic data preserving device at power interruption
JP2003122647A (en) Information processor
JP2005025740A (en) Microprocessor system having hot routine memory and its using method

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20050406

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060704