JPH10269113A - Method and device for storing information, and disk drive device - Google Patents

Method and device for storing information, and disk drive device

Info

Publication number
JPH10269113A
JPH10269113A JP9234424A JP23442497A JPH10269113A JP H10269113 A JPH10269113 A JP H10269113A JP 9234424 A JP9234424 A JP 9234424A JP 23442497 A JP23442497 A JP 23442497A JP H10269113 A JPH10269113 A JP H10269113A
Authority
JP
Japan
Prior art keywords
instruction
execution time
recording
time
information storage
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
JP9234424A
Other languages
Japanese (ja)
Inventor
Haruo Ando
治男 安東
Keiji Kobayashi
計司 小林
Kazunari Tsuchimoto
和成 土本
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.)
International Business Machines Corp
Original Assignee
International Business Machines 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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to JP9234424A priority Critical patent/JPH10269113A/en
Publication of JPH10269113A publication Critical patent/JPH10269113A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it easy to analyze a hang state by monitoring the time in which an instruction received from an external device is executed, and saving information in a volatile memory to a nonvolatile recording means when the execution time of the instruction exceeds a specified time. SOLUTION: The pressing time in which the MPU 12 of a control part 5 executes the instruction received from an external host device 10, is monitored and when the execution of the instruction does not ends within a specified time, the contents of a RAM 14 as the volatile memory are saved in a reserved area on a magnetic disk 1 as the nonvolatile recording means. Consequently, the disk drive device can dump the contents of the RAM 14 in case of a hang state without requiring an indication from a host device 10. Therefore, even if a hang state that can not be controlled from the host device is entered, the hang state can easily be analyzed.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は揮発性メモリ内の情
報を不揮発性記録手段に保存する情報保存方法、情報保
存装置、ディスクドライブ装置に関する。より詳しく
は、揮発性メモリ内に記憶されている情報を保存する条
件の判断に特徴を有する。
[0001] 1. Field of the Invention [0002] The present invention relates to an information storage method, an information storage device, and a disk drive device for storing information in a volatile memory in nonvolatile recording means. More specifically, the present invention is characterized in determining conditions for storing information stored in a volatile memory.

【0002】[0002]

【従来の技術】従来より、固定ディスク装置(HDD)
はハードディスクコントローラ(HDC)、MPU等を
備えており、パーソナルコンピュータ等のホスト装置か
らの指示によってこれらのHDC、MPUがホスト装置
とは独立に動作し、磁気ディスクに対する記録/再生制
御、ホスト装置に対するコマンド、データの入出力制御
等を行なうようになっている。
2. Description of the Related Art Conventionally, a fixed disk device (HDD)
Has a hard disk controller (HDC), an MPU, and the like. These HDCs and MPUs operate independently of the host device according to instructions from a host device such as a personal computer, and perform recording / reproduction control for the magnetic disk and control for the host device. Commands and data input / output control are performed.

【0003】HDDのHDC、MPU等がホスト装置か
ら制御に応じない状態すなわちHDDがハング(Hang U
p )した状態になることがある。このような場合、ハン
グの原因を調べるために、HDC、MPUが使用するメ
モリの内容(メモリダンプ:Memory Dump )を保存する
ことが望まれる場合がある。
A state in which the HDC, MPU, etc. of the HDD does not respond to the control from the host device, that is, the HDD hangs.
p) may occur. In such a case, it may be desirable to save the contents of the memory (Memory Dump) used by the HDC or MPU in order to investigate the cause of the hang.

【0004】従来、インタフェースを介した外部からの
命令により、メモリダンプをディスク上の予約領域(Re
served Area )に保存することができた。
Conventionally, a memory dump is stored in a reserved area (Re
served Area).

【0005】[0005]

【発明が解決しようとする課題】しかし、上述のように
インターフェースを介した外部からの命令では、ソフト
リセットも効かない(外部からの命令が一切効かない)
ような完全なハングの場合には、メモリ内の情報の保持
を指示することができない。このような状態におけるメ
モリの内容を知りたい場合には、HDC、MPU等が実
装されたHDDのコントロール基板をICE(In-Circu
it Emulator )が接続されたMPUを備えたコントロー
ル基板に変えてHDDを動作させ、同様なハング状態が
再現されるのを待ち、そのときのメモリの内容を読み出
すしかなかった。
However, as described above, an external command via the interface does not work for soft reset (an external command does not work at all).
In the case of such a complete hang, it is not possible to instruct to hold the information in the memory. If it is desired to know the contents of the memory in such a state, the control board of the HDD on which the HDC, MPU, etc. are mounted is connected to the ICE (In-Circuit).
It was necessary to read out the contents of the memory at that time, waiting for a similar hang state to be reproduced, operating the HDD instead of a control board with an MPU to which the it emulator was connected.

【0006】また、同様なハング状態が再現された際の
メモリの内容をICEにより読み出す場合には、ICE
に接続するための専用のハードウェア(パーソナルコン
ピュータ等と周辺機器一式)を必要とする。このため、
ハードウェアを設置する場所を要し、場所によっては設
置できない場合もある。設置できる場合でも、専用のハ
ードウェアをICEに接続させて再現させなければなら
なかった。さらに、コントロール基板自体に問題がある
場合には、ICEに接続されたコントロール基板に変え
てしまうと、同様なハング状態が再現されない。
When the contents of the memory at the time when the similar hang state is reproduced are read by ICE,
Dedicated hardware (a personal computer, etc. and a set of peripheral devices) for connecting to a computer is required. For this reason,
It requires a place to install hardware, and depending on the place, it may not be possible to install it. Even if it could be installed, it was necessary to connect dedicated hardware to the ICE and reproduce it. Further, when there is a problem with the control board itself, if the control board is changed to the control board connected to the ICE, a similar hang state cannot be reproduced.

【0007】本発明は、かかる課題に鑑み、インターフ
ェースを介した外部からの命令が一切効かないような完
全なハングの場合にも、容易に原因の解析を行なうこと
ができる情報保存方法、情報保存装置、ディスクドライ
ブ装置を提供することを目的とする。
The present invention has been made in view of the above problems, and provides an information storage method and information storage method capable of easily analyzing the cause even in the case of a complete hang where no external command via the interface is effective. It is an object to provide a device and a disk drive device.

【0008】[0008]

【課題を解決するための手段】本発明に係る情報保存方
法は、少なくとも記録媒体に対する記録又は再生を行な
う装置が、外部の装置から受信した命令を実行する時間
を監視する実行時間監視ステップと、命令の実行時間が
所定の時間を超えた場合に、揮発性メモリ内の情報を不
揮発性記録手段に保存する情報保存ステップとを有して
いる。
According to the present invention, there is provided an information storage method comprising: an execution time monitoring step of monitoring at least a time at which a device that records or reproduces data on or from a recording medium executes a command received from an external device; An information storage step of storing information in the volatile memory in the nonvolatile recording means when the execution time of the command exceeds a predetermined time.

【0009】また、本発明に係る情報保存装置は、少な
くとも記録媒体に対する記録又は再生を行なう装置が、
外部の装置から受信した命令を実行する時間を監視する
実行時間監視手段と、命令の実行時間が所定の時間を超
えた場合に、揮発性メモリ内の情報を不揮発性記録手段
に保存する情報保存手段とを備えている。
[0009] In the information storage device according to the present invention, at least a device that records or reproduces data on or from a recording medium,
An execution time monitoring means for monitoring a time for executing an instruction received from an external device; and an information storage for storing information in a volatile memory in a nonvolatile recording means when an execution time of the instruction exceeds a predetermined time. Means.

【0010】また、本発明に係るディスクドライブ装置
は、ディスク状記録媒体と、少なくともディスク状記録
媒体に対する記録又は再生を行なう記録/再生手段と、
外部の装置から受信した命令に基づいて記録/再生手段
による記録又は再生を制御する制御手段と、制御手段が
動作時に使用する揮発性メモリと、制御手段による前記
命令の実行時間を監視する実行時間監視手段と、命令の
実行時間が所定の時間を超えた場合に、揮発性メモリ内
の情報を不揮発性記録手段に保存する情報保存手段とを
備えている。
A disk drive device according to the present invention comprises: a disk-shaped recording medium; recording / reproducing means for performing recording or reproduction on at least the disk-shaped recording medium;
Control means for controlling recording or reproduction by the recording / reproduction means based on a command received from an external device; volatile memory used by the control means during operation; and execution time for monitoring the execution time of the command by the control means A monitoring means and an information storage means for storing information in the volatile memory in a non-volatile recording means when an execution time of an instruction exceeds a predetermined time.

【0011】[0011]

【発明の実施の形態】図1は、本発明の一実施形態に係
るディスクドライブ装置の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of a disk drive according to an embodiment of the present invention.

【0012】このディスクドライブ装置は、データを記
録するための磁気ディスク1と、磁気ディスク1に対し
てデータの記録/再生を行なうヘッド2と、ヘッド2の
位置を制御するサーボ系3と、ヘッド2によるデータの
記録/再生を制御する記録/再生系4と、サーボ制御、
データの記録/再生制御、ホスト装置10とのデータの
入出力等を制御する制御部5を備えている。
This disk drive device includes a magnetic disk 1 for recording data, a head 2 for recording / reproducing data on / from the magnetic disk 1, a servo system 3 for controlling the position of the head 2, A recording / reproducing system 4 for controlling recording / reproducing of data by means of
A control unit 5 for controlling data recording / reproduction control, input / output of data with the host device 10, and the like is provided.

【0013】この制御部5は、サーボ制御等を実行する
ハードディスクコントローラ(HDC)11と、サーボ
制御のためのサーボデータの演算、エラー処理等の処理
を実行するMPU12と、MPU12を動作させるため
のマイクロプログラム、データ等が格納されたROM1
3と、サーボ制御のためのデータが記憶され、あるいは
記録/再生データがキャッシュされるRAM14とを備
えている。
The control unit 5 includes a hard disk controller (HDC) 11 for executing servo control and the like, an MPU 12 for executing servo data calculation and error processing for servo control, and an MPU 12 for operating the MPU 12. ROM 1 storing microprograms, data, etc.
3 and a RAM 14 for storing data for servo control or for caching recorded / reproduced data.

【0014】ROM13の方が動作が高速であるため、
マイクロプログラムはROM13に格納している。しか
しながら、実装上あるいはコスト等の面からROM13
の容量には制限があり、ROM13に入りきらない部分
は磁気ディスク1上の所定の領域に保存しておき、電源
投入時(POR[Power On Reset:パワー・オン・リセ
ット]時)にRAM14に読み込んで実行するようにす
ることもできる。
Since the operation of the ROM 13 is faster,
The microprogram is stored in the ROM 13. However, in terms of mounting or cost, the ROM 13
There is a limit to the capacity of the magnetic disk 1, and the portion that cannot be stored in the ROM 13 is stored in a predetermined area on the magnetic disk 1 and stored in the RAM 14 when the power is turned on (POR [Power On Reset]). It can be read and executed.

【0015】マイクロプログラムは、実行速度等の面か
らROM13上で実行することが望ましいが、ROM1
3の容量には限りがあるので、圧縮してROM13に格
納しておき、実行時にRAM14に読み出して実行して
もよい。
The microprogram is desirably executed on the ROM 13 in terms of execution speed and the like.
Since the capacity of No. 3 is limited, it may be compressed and stored in the ROM 13 and read out to the RAM 14 and executed at the time of execution.

【0016】制御部5は、マイクロプログラムの複数の
プロセスを並行して実行することができるようになって
おり、そのうちの1つのプロセスは、磁気ディスク1上
に記録されているサーボセクタが再生される毎に実行さ
れるサーボデータを求めるための演算であり、他に情報
処理装置10との間のコマンド、データ等の入出力の制
御、エラー発生時の処理、ホスト装置10から読み出さ
れるであろうデータを先読みしてRAM14に記憶して
おくリードキャッシュプロセス、RAM14に記憶され
たデータを磁気ディスクに書き込むライトキャッシュプ
ロセス等を実行する。
The control unit 5 is capable of executing a plurality of processes of the microprogram in parallel, and one of the processes reproduces a servo sector recorded on the magnetic disk 1. This is an operation for obtaining servo data that is executed every time. In addition, it controls the input / output of commands and data with the information processing device 10, processes when an error occurs, and is read from the host device 10. A read cache process for pre-reading data and storing the data in the RAM 14 and a write cache process for writing data stored in the RAM 14 to a magnetic disk are executed.

【0017】エラー処理としては、記録/再生時のエラ
ーに対するリトライ、リトライ不能時の代替セクタの割
り当て、代替セクタが無い場合のエラー通知等を実行す
る。
The error processing includes retrying for an error during recording / reproducing, assigning an alternative sector when retry is not possible, and error notification when there is no alternative sector.

【0018】ところで、回復不可能なエラーの発生、M
PU12の誤動作等が発生した場合に、ホスト装置10
から見てディスクドライブ装置の動作が停止した状態
(ハング状態)となる場合がある。例えばMPU12の
処理が無限ループに入ってしまうと、ホスト装置10か
らの指示に応答しないハング状態となる。あるいは、ホ
スト装置10からの全てのデータの出力が終了している
が、何らかの予期しないエラーで、ディスクドライブ装
置側が全てのデータを受け取っていないと判断ミスした
場合では、ディスクドライブ装置は、依然として残りの
データの受信待ちの状態になったままである。この場合
には、ホスト装置10からのデータの出力が終了してい
るため、そのままでは残りのデータの受信待ちから回復
することはない。このような状態をホスト装置10側か
ら見ればディスクドライブ装置がハングした状態と同じ
である。
Incidentally, the occurrence of an unrecoverable error, M
When a malfunction or the like of the PU 12 occurs, the host device 10
As a result, the operation of the disk drive device may be stopped (hang state). For example, when the processing of the MPU 12 enters an infinite loop, a hang state occurs in which the MPU 12 does not respond to an instruction from the host device 10. Alternatively, if the output of all data from the host device 10 has been completed, but the disk drive device has mistakenly determined that all data has not been received due to some unexpected error, the disk drive device still has , And remains in a state of waiting for data reception. In this case, since the output of the data from the host device 10 has been completed, there is no recovery from waiting for reception of the remaining data. When viewed from the host device 10, such a state is the same as the state where the disk drive device is hung.

【0019】ディスクドライブ装置がハング状態となっ
てしまうと、ディスクドライブ装置を一旦リセットする
必要があるが、ハング状態となった原因を調べるため
に、制御部5のRAM14の内容を保存したい場合があ
る。このような場合、従来は、インタフェースを介した
外部からの命令により、RAM14の内容を磁気ディス
ク1上の予約領域(Reserved Area )に保存していた。
When the disk drive is hung, it is necessary to reset the disk drive once. However, there are cases where the contents of the RAM 14 of the control unit 5 need to be saved in order to investigate the cause of the hung state. is there. In such a case, conventionally, the contents of the RAM 14 are stored in a reserved area on the magnetic disk 1 by an external command via an interface.

【0020】しかしながら、このような方法では、ホス
ト装置10側から命令を供給してRAM14の内容の保
存を指示しなければならないため、ホスト装置10側か
らのソフトリセット等の命令が一切効かない完全なハン
グ状態となった場合には、RAM14の内容の保存を指
示することができない。
However, in such a method, since an instruction must be supplied from the host device 10 to instruct the storage of the contents of the RAM 14, an instruction such as a soft reset from the host device 10 is completely ineffective. If the hang state occurs, it is not possible to instruct to save the contents of the RAM 14.

【0021】ところで、通常、コマンドの実行は所定の
時間内に終了する。しかしながら、ハング状態となった
場合には、当然ながらコマンドの実行は所定時間内には
終了しない。従って、コマンドの実行が所定時間内に完
了しなかった場合には、ハング状態となっている可能性
が極めて高い。このため、このディスクドライブ装置で
は、コマンドの実行時間を監視し、所定時間内にコマン
ドが完了されなかった場合、ハング状態であると見なし
てRAM14の内容を保存するようになっている。
By the way, usually, the execution of the command ends within a predetermined time. However, in the case of a hung state, execution of the command does not naturally end within a predetermined time. Therefore, if the execution of the command is not completed within the predetermined time, it is highly likely that the command has been hung. For this reason, in this disk drive device, the execution time of the command is monitored, and if the command is not completed within a predetermined time, it is regarded as a hang state and the contents of the RAM 14 are stored.

【0022】図2及び図3は、上述のような動作を実現
するための処理を示すフローチャートである。
FIG. 2 and FIG. 3 are flowcharts showing processing for realizing the above-described operation.

【0023】図1中のMPU12は、ホスト装置10か
らの命令(コマンド)を受けると。図2のフローチャー
トに示す処理の実行を開始する。MPU12は、まず、
ステップ110において、カウンタ(COUNTER )に予め
決めておいた所定の時間(タイムアウト時間)に対応す
る内部タイムアウト(INTERNAL TIMEOUT)値をセットし
てカウンタの初期化を行なう。このINTERNAL TIMEOUT値
は、例えば100ms単位のカウント値(例えば、タイ
ムアウト時間が10sのときはINTERNAL TIMEOUT値は1
00となる。)としてカウンタにセットする。
The MPU 12 in FIG. 1 receives a command from the host device 10. Execution of the processing shown in the flowchart of FIG. 2 is started. First, the MPU 12
In step 110, an internal time-out (INTERNAL TIMEOUT) value corresponding to a predetermined time (time-out time) predetermined in a counter (COUNTER) is set, and the counter is initialized. The INTERNAL TIMEOUT value is, for example, a count value in units of 100 ms (for example, when the timeout time is 10 s, the INTERNAL TIMEOUT value is 1).
00. ) Is set in the counter.

【0024】続くステップ112で、MPU12は、CO
MMAND_PROCESSINGというフラグを命令の処理中であるこ
とを示す1とする。図1中の制御部5はMPU12に対
して所定間隔で割り込みを発生する割り込みタイマを備
えており、COMMAND_PROCESSINGフラグが1である間、例
えば100ms間隔で割り込みを発生するようになって
いる。この割り込みが発生されると、MPU12は、割
り込み毎に図3に示す処理を実行する。
In the following step 112, MPU 12
The flag MMAND_PROCESSING is set to 1 indicating that the instruction is being processed. The control unit 5 in FIG. 1 includes an interrupt timer that generates an interrupt to the MPU 12 at a predetermined interval, and generates an interrupt at an interval of, for example, 100 ms while the COMMAND_PROCESSING flag is 1. When this interrupt is generated, the MPU 12 executes the processing shown in FIG. 3 for each interrupt.

【0025】また、MPU12は、ステップ114にお
いて、命令に対する処理が完了したか否かを監視してお
り、命令に対する処理が完了していなければ、このステ
ップ114で待機する。命令に対する処理が完了してい
れば、MPU12はステップ116に進み、COMMAND_PR
OCESSINGというフラグを命令の処理中でないことを示す
0として終了する。
The MPU 12 monitors in step 114 whether the processing for the instruction has been completed. If the processing for the instruction has not been completed, the MPU 12 waits in this step 114. If the processing for the instruction has been completed, the MPU 12 proceeds to step 116 and executes the command COMMAND_PR.
The processing ends with the flag OCESSING set to 0 indicating that the instruction is not being processed.

【0026】一般的には、ディスクドライブ装置では、
ホスト装置10からの複数のコマンドが並列に実行され
るようになっているため、上述のような処理を各コマン
ド毎に並列に実行する。
Generally, in a disk drive device,
Since a plurality of commands from the host device 10 are executed in parallel, the processing described above is executed in parallel for each command.

【0027】上述のステップ112におけるフラグの設
定による割り込みが発生すると、MPU12は、図3に
示す処理を実行する。
When an interrupt occurs due to the setting of the flag in step 112, the MPU 12 executes the processing shown in FIG.

【0028】まず、MPU12は、ステップ120にお
いてCOMMAND_PROCESSINGフラグが1であるか否かを判断
する。このフラグが1である場合、命令はまだ処理中で
あるため、次のステップ122に進む。このフラグが1
でない場合、上述のタイムアウト時間内に命令が完了し
ているので、一旦復帰(割り込み処理を終了)する。こ
の状態で再度の割り込みが行なわれると、再度ステップ
120からの処理を実行する。
First, the MPU 12 determines whether or not the COMMAND_PROCESSING flag is 1 in Step 120. If this flag is 1, the instruction is still being processed, and the routine proceeds to the next step 122. This flag is 1
Otherwise, since the instruction has been completed within the above-mentioned timeout period, the process temporarily returns (ends the interrupt processing). If another interruption is performed in this state, the processing from step 120 is executed again.

【0029】次に、MPU12は、ステップ122にお
いてカウンタの値が0であるか否かを判断する。カウン
タの値が0でない場合、タイムアウト時間内であり、次
のステップ124に進む。カウンタの値が0である場
合、既にタイムアウト時間を経過しており、前回図3の
処理が実行されたときに磁気ディスク1上の予約領域に
メモリダンプが保存されているはずなので、ステップ1
32に進みエラー処理を実行する。
Next, the MPU 12 determines whether or not the value of the counter is 0 in step 122. If the value of the counter is not 0, it is within the timeout period, and the routine proceeds to the next step 124. If the value of the counter is 0, the timeout period has already elapsed, and the memory dump should have been saved in the reserved area on the magnetic disk 1 when the processing of FIG. 3 was executed last time.
Proceed to 32 to execute error processing.

【0030】ステップ124では、MPU12は、カウ
ンタの値から1を引く。続くステップ126で、MPU
12はカウンタの値が0であるか否かを判断する。カウ
ンタの値が0である場合、タイムアウト時間内に命令が
完了しなかったことを意味しているのでディスクドライ
ブ装置がハングしたと見なし、磁気ディスク1上の予約
領域にRAM14の内容(メモリダンプ)を保存する。
一方、カウンタの値が0でない場合は一旦復帰する。こ
の場合は、さらに100msが経過すると再び割り込み
が発生し、再度ステップ120からの処理を繰り返す。
In step 124, the MPU 12 subtracts 1 from the value of the counter. In the following step 126, the MPU
12 judges whether the value of the counter is 0 or not. If the value of the counter is 0, it means that the command has not been completed within the timeout period, so that the disk drive is regarded as hung, and the contents of the RAM 14 in the reserved area on the magnetic disk 1 (memory dump) Save.
On the other hand, if the value of the counter is not 0, the process returns once. In this case, an interrupt occurs again after 100 ms has elapsed, and the processing from step 120 is repeated again.

【0031】このような処理は、所定の時間間隔(10
0ms)毎に繰り返し実行され、カウンタの値が1ずつ
減少する。タイムアウト時間時間内に命令の処理が終了
すれば、上述の図2中のステップ116においてCOMMAN
D_PROCESSINGフラグが0とされるため、RAM14の内
容が保存されない。何らかの原因でディスクドライブ装
置がハング状態となった場合には、タイムアウト時間内
に命令の処理が終了しないため、タイムアウト時間の経
過後、図3のステップ126からステップ128に進ん
でRAM14の内容が磁気ディスク1上の予約領域に保
存される。
Such processing is performed at predetermined time intervals (10
0 ms), and the counter value is decreased by one. If the processing of the instruction is completed within the time-out period, COMMAN is executed in step 116 in FIG.
Since the D_PROCESSING flag is set to 0, the contents of the RAM 14 are not saved. If the disk drive is hung for some reason, the processing of the command is not completed within the timeout period. After the timeout period elapses, the process proceeds from step 126 to step 128 in FIG. It is stored in a reserved area on the disk 1.

【0032】上述のようにこのディスクドライブ装置で
は、MPU12が命令の処理時間を監視しており、所定
時間内に処理が終了しなかった場合にRAM14の内容
を磁気ディスク1上の予約領域に保存する。このため、
このディスクドライブ装置では、ハング状態となった場
合のメモリダンプを、ホスト装置10からの指示を必要
とせずに行なうことができる。従って、ホスト装置10
からの指示(命令)を一切受け付けない完全なハング状
態となった場合であってもRAM14の内容を確実に磁
気ディスク1上に保存することができる。
As described above, in this disk drive device, the MPU 12 monitors the processing time of the command, and if the processing is not completed within a predetermined time, saves the contents of the RAM 14 in the reserved area on the magnetic disk 1. I do. For this reason,
In this disk drive device, a memory dump in the case of a hung state can be performed without requiring an instruction from the host device 10. Therefore, the host device 10
Even when a complete hang state occurs, in which no instruction (command) is received, the contents of the RAM 14 can be reliably stored on the magnetic disk 1.

【0033】従来、完全なハング状態になった場合のR
AMの内容を知りたい場合には、HDC、MPU等が実
装されたディスクドライブ装置のコントロール基板をI
CE(In-Circuit Emulator )が接続されたMPUを備
えたコントロール基板に変えてディスクドライブ装置を
動作させ、同様なハング状態が再現されるのを待ち、そ
のときのメモリの内容を読み出すしかなかった。
Conventionally, R when a complete hang condition occurs
If you want to know the contents of AM, you need to install the control board of the disk drive device on which HDC, MPU, etc. are mounted.
Instead of operating a disk drive device instead of a control board with an MPU to which a CE (In-Circuit Emulator) is connected, wait for a similar hang state to be reproduced, and then read the contents of the memory at that time. .

【0034】この実施形態に係るディスクドライブ装置
では、ディスクドライブ装置自体がハング時のRAM1
4の内容を磁気ディスク1上に記録するため、ICE等
の専用のハードウェアを必要としない。このため、これ
らのハードウェアを設置する場所が必要なく、また、こ
れらを用意するコストもかからないため、原因の解析を
容易に行なうことができる。
In the disk drive according to this embodiment, when the disk drive itself hangs in the RAM 1
4 is recorded on the magnetic disk 1, so that dedicated hardware such as an ICE is not required. For this reason, there is no need for a place for installing these hardware, and there is no cost for preparing them, so that the cause can be easily analyzed.

【0035】例えば顧客先でハングが起きた場合には、
ICE等を持ち込むことが不可能な場合が多い。このよ
うな場合であっても、このディスクドライブ装置は、装
置自体がハング時のRAM14の内容を磁気ディスク1
上に記録しているため、例えばリセットをかけた後、ホ
スト装置10から容易に読み出すことができる。従っ
て、ICE等の専用のハードウェアを持ち込まなくても
ハングの原因を容易に解析することができる。
For example, if a hang-up occurs at the customer,
It is often impossible to bring in ICE or the like. Even in such a case, this disk drive device stores the contents of the RAM 14 when the device itself hangs on the magnetic disk 1.
Since it is recorded above, it can be easily read from the host device 10 after resetting, for example. Therefore, the cause of the hang can be easily analyzed without bringing in dedicated hardware such as an ICE.

【0036】また、コントロール基板自体に問題がある
場合には、ICEに接続されたコントロール基板に変え
てしまうと、同様なハング状態が再現されない問題があ
った。このディスクドライブ装置では、このような場合
であっても、RAM14の内容は磁気ディスク1に記録
されるため、ハングの原因の解析を行なうことができ
る。
Further, when there is a problem in the control board itself, if the control board is changed to the control board connected to the ICE, there is a problem that a similar hang state cannot be reproduced. In this disk drive device, even in such a case, the contents of the RAM 14 are recorded on the magnetic disk 1, so that the cause of the hang can be analyzed.

【0037】なお、本発明は上述の実施形態に限定され
るものではなく、上述の実施形態では記録媒体として磁
気ディスクを用いた場合について説明したが、例えば光
磁気ディスク等の光学ディスク、フラッシュメモリ等の
半導体記憶装置を記録媒体と用いた装置にも本発明を適
用することができる。
The present invention is not limited to the above-described embodiment. In the above-described embodiment, a case where a magnetic disk is used as a recording medium has been described. For example, an optical disk such as a magneto-optical disk, a flash memory The present invention can also be applied to a device using a semiconductor storage device such as described above as a recording medium.

【0038】また、例えばメモリダンプ保存機能の使
用、不使用を制御できる構成とすることもでき、このよ
うな構成とすることにより、用途に応じてメモリダンプ
保存機能を用いるか否かを容易に切り替えることができ
る。また、実行時にタイムアウト時間をROM13ある
いは磁気ディスク1上の所定の領域に記録しておいたテ
ーブルから読み出す構成としてもよい。このような構成
とすれば、必要に応じてテーブルを変えることで、タイ
ムアウト時間を容易に変更することができる。
In addition, for example, a configuration can be used in which the use or non-use of the memory dump storage function can be controlled. With such a configuration, it is easy to determine whether to use the memory dump storage function depending on the application. Can switch. Further, a configuration may be employed in which the timeout time is read from the table recorded in the ROM 13 or a predetermined area on the magnetic disk 1 at the time of execution. With such a configuration, the timeout period can be easily changed by changing the table as needed.

【0039】また、例えば上述の実施形態では、MPU
12によって実行されるソフトウェアによって命令の実
行時間の監視、タイムアウト時間内に処理が終了しなか
った場合のメモリダンプの保存等の処理を実行していた
が、コストは上昇するかも知れないが、MPU12とは
別のハードウェア(例えば専用の回路、複数のMPU等
を用いている場合には他のMPU等)を用いて同様の処
理を実行することにより、MPU12自体の動作に障害
が生じた場合等においてもメモリダンプを保存すること
ができ、信頼性を向上させることができる。その他、本
発明の技術的思想の範囲内で適宜変更を加えることがで
きる。
In the above embodiment, for example, the MPU
The software executed by the MPU 12 monitors the execution time of the instruction and saves a memory dump when the processing is not completed within the timeout period. However, the cost may increase. If a failure occurs in the operation of the MPU 12 itself by executing the same processing using another hardware (for example, a dedicated circuit or another MPU in the case of using a plurality of MPUs or the like) And the like, a memory dump can be saved, and the reliability can be improved. In addition, changes can be made as appropriate within the scope of the technical idea of the present invention.

【0040】[0040]

【発明の効果】本発明によれば、少なくとも記録媒体に
対する記録又は再生を行なう装置が、外部の装置から受
信した命令を実行する時間が所定の時間を超えた場合
に、揮発性メモリ内の情報を不揮発性記録手段に保存す
る。このため、ハング状態となったときの揮発性メモリ
内の情報を、当該ハング状態となった装置単独で保存す
ることができる。
According to the present invention, when at least a device that performs recording or reproduction on a recording medium executes a command received from an external device exceeds a predetermined time, information stored in a volatile memory is stored. Is stored in the non-volatile recording means. For this reason, the information in the volatile memory at the time of the hung state can be saved by the device of the hung state alone.

【0041】従って、外部の装置から制御することがで
きないハング状態となった場合においても、従来のよう
にICE(In-Circuit Emulator )を設置する場所やI
CEの数の制限などの条件に影響されることなく、ハン
グ状態の解析を容易に行なうことができる。
Therefore, even in the case where the hang state cannot be controlled from the external device, the place where the ICE (In-Circuit Emulator) is installed and the I
The analysis of the hang state can be easily performed without being affected by the condition such as the limitation of the number of CEs.

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

【図1】 本発明の一実施形態に係るディスクドライブ
装置の構成を示すブロック図、
FIG. 1 is a block diagram showing a configuration of a disk drive device according to an embodiment of the present invention;

【図2】 本発明の一実施形態に係るディスクドライブ
装置におけるコマンド処理時間監視処理を示すフローチ
ャート、
FIG. 2 is a flowchart showing a command processing time monitoring process in the disk drive device according to one embodiment of the present invention;

【図3】 本発明の一実施形態に係るディスクドライブ
装置におけるメモリダンプ保存処理を示すフローチャー
トである。
FIG. 3 is a flowchart showing a memory dump saving process in the disk drive device according to one embodiment of the present invention.

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

1 磁気ディスク、4 記録/再生系、5 制御部、1
0 ホスト装置、11HDC、12 MPU、13 R
OM、14 RAM
1 magnetic disk, 4 recording / reproducing system, 5 control unit, 1
0 Host device, 11 HDC, 12 MPU, 13 R
OM, 14 RAM

───────────────────────────────────────────────────── フロントページの続き (72)発明者 小林 計司 神奈川県藤沢市桐原町1番地 日本アイ・ ビー・エム株式会社 藤沢事業所内 (72)発明者 土本 和成 神奈川県藤沢市桐原町1番地 日本アイ・ ビー・エム株式会社 藤沢事業所内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Keiji Kobayashi 1 Kirihara-cho, Fujisawa-shi, Kanagawa IBM Japan, Ltd. Fujisawa office (72) Inventor Kazunari Tsuchimoto 1 Kirihara-cho, Fujisawa-shi, Kanagawa Address IBM Japan, Ltd. Fujisawa Office

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 命令を受け取るステップと、 前記命令の実行時間を監視するステップと、 前記命令の実行時間が所定の値以上である場合、揮発性
メモリ内の情報を不揮発性メモリ内に保存するステップ
とを有することを特徴とする情報保存方法。
Receiving an instruction, monitoring an execution time of the instruction, and storing information in a volatile memory in a nonvolatile memory when the execution time of the instruction is equal to or longer than a predetermined value. And an information storage method.
【請求項2】 少なくとも記録媒体に対する記録又は再
生を行なう装置が動作時に使用する揮発性メモリ内の情
報を記録手段に保存する情報保存方法であって、 前記装置が、外部の装置から受信した命令を実行する時
間を監視する実行時間監視ステップと、 前記命令の実行時間が所定の時間を超えた場合に、前記
揮発性メモリ内の情報を不揮発性記録手段に保存する情
報保存ステップとを有することを特徴とする情報保存方
法。
2. An information storage method for storing, in a recording unit, information in a volatile memory used by at least an apparatus for recording or reproducing data on or from a recording medium, wherein the apparatus stores a command received from an external apparatus. An execution time monitoring step of monitoring the execution time of the instruction; and an information storage step of storing information in the volatile memory in a nonvolatile recording unit when the execution time of the instruction exceeds a predetermined time. An information storage method characterized by the following.
【請求項3】 前記実行時間監視ステップは、前記命令
を受信した後の経過時間又は命令の実行開始からの経過
時間を計測することにより、前記命令の実行時間を監視
することを特徴とする請求項2記載の情報保存方法。
3. The execution time monitoring step monitors the execution time of the instruction by measuring an elapsed time after receiving the instruction or an elapsed time from the start of execution of the instruction. Item 2. The information storage method according to Item 2.
【請求項4】 少なくとも記録媒体に対する記録又は再
生を行なう装置が動作時に使用する揮発性メモリ内の情
報を記録手段に保存する情報保存装置であって、 前記装置が、外部の装置から受信した命令を実行する時
間を監視する実行時間監視手段と、 前記命令の実行時間が所定の時間を超えた場合に、前記
揮発性メモリ内の情報を不揮発性記録手段に保存する情
報保存手段とを備えることを特徴とする情報保存装置。
4. An information storage device for storing, in a recording unit, information in a volatile memory used at least by a device that records or reproduces data on or from a recording medium, wherein the device stores a command received from an external device. Execution time monitoring means for monitoring the execution time of the instruction, and information storage means for storing information in the volatile memory in a nonvolatile recording means when the execution time of the instruction exceeds a predetermined time. An information storage device characterized by the above-mentioned.
【請求項5】 ディスク状記録媒体と、 少なくとも該ディスク状記録媒体に対する記録又は再生
を行なう記録/再生手段と、 外部の装置から受信した命令に基づいて前記記録/再生
手段による記録又は再生を制御する制御手段と、 該制御手段が動作時に使用する揮発性メモリと、 前記制御手段による前記命令の実行時間を監視する実行
時間監視手段と、 前記命令の実行時間が所定の時間を超えた場合に、前記
揮発性メモリ内の情報を不揮発性記録手段に保存する情
報保存手段とを備えることを特徴とするディスクドライ
ブ装置。
5. A disk-shaped recording medium, recording / reproducing means for performing recording or reproduction on at least the disk-shaped recording medium, and controlling recording or reproduction by the recording / reproducing means based on a command received from an external device. Control means, a volatile memory used by the control means during operation, an execution time monitoring means for monitoring the execution time of the instruction by the control means, and when the execution time of the instruction exceeds a predetermined time. An information storage unit for storing information in the volatile memory in a non-volatile recording unit.
JP9234424A 1997-01-24 1997-08-29 Method and device for storing information, and disk drive device Pending JPH10269113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9234424A JPH10269113A (en) 1997-01-24 1997-08-29 Method and device for storing information, and disk drive device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP9-11040 1997-01-24
JP1104097 1997-01-24
JP9234424A JPH10269113A (en) 1997-01-24 1997-08-29 Method and device for storing information, and disk drive device

Publications (1)

Publication Number Publication Date
JPH10269113A true JPH10269113A (en) 1998-10-09

Family

ID=26346415

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9234424A Pending JPH10269113A (en) 1997-01-24 1997-08-29 Method and device for storing information, and disk drive device

Country Status (1)

Country Link
JP (1) JPH10269113A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009211162A (en) * 2008-02-29 2009-09-17 Toshiba Corp Information processor and start control method
JP2009301079A (en) * 2008-06-10 2009-12-24 Mitsubishi Electric Corp Electronic computer device and data storage method when software processing delay is detected
WO2014112039A1 (en) * 2013-01-15 2014-07-24 富士通株式会社 Information processing device, method for controlling information processing device and information processing device control program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009211162A (en) * 2008-02-29 2009-09-17 Toshiba Corp Information processor and start control method
JP2009301079A (en) * 2008-06-10 2009-12-24 Mitsubishi Electric Corp Electronic computer device and data storage method when software processing delay is detected
WO2014112039A1 (en) * 2013-01-15 2014-07-24 富士通株式会社 Information processing device, method for controlling information processing device and information processing device control program
JPWO2014112039A1 (en) * 2013-01-15 2017-01-19 富士通株式会社 Information processing apparatus, information processing apparatus control method, and information processing apparatus control program

Similar Documents

Publication Publication Date Title
US6125459A (en) Information storing method, information storing unit, and disk drive
JP3348417B2 (en) Data recovery method in storage system
US20090083580A1 (en) Techniques for Background Testing a Hard Disk Drive
JP4775843B2 (en) Storage system and storage control method
US5838991A (en) Preemptable idle time activities for constant data delivery by determining whether initiating a host command will conflict with an idle time activity being executed
JPH10269113A (en) Method and device for storing information, and disk drive device
JPS5942343B2 (en) Trace information logging method
US6088818A (en) Data read apparatus and data read method
JP3150242B2 (en) Disk unit
JPH0793101A (en) Data backup device
JP2944648B1 (en) Information processing device and CD-ROM device control method
US20060218342A1 (en) Processing method for preventing anomalies when reading device-specific information for media storage device, and media storage device
JPH0651918A (en) Semiconductor disk device
US20020046367A1 (en) Method for preventing data corruption by a floppy diskette controller
KR100305309B1 (en) Data reading method and data storage device
JPH10254780A (en) Disk cache control system
JP4499909B2 (en) Multiplexed storage controller
JP2000305717A (en) Disk array device and method for quickening disk access
JPH05109191A (en) Disk device with format function
JPS59177660A (en) Logging system of diagnostic result in electronic computer
JPS58223860A (en) Magnetic disk controller
JP2569694B2 (en) Disk controller
JPH096545A (en) User file backup system
JPH04358312A (en) Head cleaning method for flexible disk device
JPH0279145A (en) Peripheral controller