JPH02240880A - Disk device - Google Patents

Disk device

Info

Publication number
JPH02240880A
JPH02240880A JP6267289A JP6267289A JPH02240880A JP H02240880 A JPH02240880 A JP H02240880A JP 6267289 A JP6267289 A JP 6267289A JP 6267289 A JP6267289 A JP 6267289A JP H02240880 A JPH02240880 A JP H02240880A
Authority
JP
Japan
Prior art keywords
cylinder
circuit
access
address
statistical information
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
JP6267289A
Other languages
Japanese (ja)
Inventor
Takeshi Morinaga
森永 武之
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 JP6267289A priority Critical patent/JPH02240880A/en
Publication of JPH02240880A publication Critical patent/JPH02240880A/en
Pending legal-status Critical Current

Links

Landscapes

  • Moving Of Head For Track Selection And Changing (AREA)

Abstract

PURPOSE:To attain the efficient operation of a device and a system by providing a storage means storing the operating state at every cylinder and revising the head position when access is not inputted for a prescribed time. CONSTITUTION:A statistic information storage circuit 12 stores statistic information such as access number, frequency and operating state at every cylinder of a positioned disk medium. A timer circuit 16 counts the time without access from a host device and when the time exceeds the prescribed time, a timer signal 108 is issued to a control circuit 11 to be informed. The circuit 11 outputs a signal 105 to a selection circuit 13 to select a cylinder data 101 and outputs an execution signal 107 to a positioning control circuit 15 in the next timing to revise the head position. In response to the stored operating state, since the head position on the disk medium is revised, it is not required to move the head at each access, thereby attaining efficient operation.

Description

【発明の詳細な説明】 技術分野 本発明はディスク装置に関し、特に磁気ディスク装置に
おいて位置決め制御を行う駆動部コントローラの制御機
構に関する。
TECHNICAL FIELD The present invention relates to a disk device, and more particularly to a control mechanism for a drive controller that performs positioning control in a magnetic disk device.

従来技術 従来の磁気ディスク装置について、第6図に示すコンピ
ュータシステムにおける磁気ディスク装置の接続構成を
用いて説明する。
Prior Art A conventional magnetic disk device will be explained using a connection configuration of a magnetic disk device in a computer system shown in FIG.

一般に、磁気ディスク装置6−1(i−1,2゜・・・
・・・ n)が接続されるコンピュータシステム3は、
中央処理装置(CPU)4と、この中央処理装置4にイ
ンタフェース121を介して接続される磁気ディスク装
置コントローラ(DKC)(以下コントローラとする)
5と、コントローラ5にインタフェース122を介して
接続される磁気ディスク装置6−1とによって構成され
る。
Generally, magnetic disk device 6-1 (i-1, 2゜...
... n) is connected to the computer system 3,
A central processing unit (CPU) 4 and a magnetic disk drive controller (DKC) (hereinafter referred to as controller) connected to the central processing unit 4 via an interface 121.
5 and a magnetic disk device 6-1 connected to the controller 5 via an interface 122.

また、各磁気ディスク装置6−1はディスク駆動部(D
K)62−1〜65−1と、ディスク駆動部62−i〜
65−1を制御するための駆動部コントローラ(DDC
)61−1とによって構成されており、夫々内部インタ
フェース123−1を介して接続されている。
Each magnetic disk device 6-1 also has a disk drive unit (D
K) 62-1 to 65-1 and disk drive unit 62-i to
A drive unit controller (DDC) for controlling 65-1.
) 61-1, and are connected to each other via an internal interface 123-1.

この中央処理装置4は磁気ディスク装置6−1に記録さ
れているデータを読出す読出し動作、あるいは新しいデ
ータを記録する書込み動作の際に、コントローラ5に対
して磁気ディスク装置6−1を指定するためのアドレス
情報と、読出し動作または書込み動作を行わせる命令と
をインタフェース121を介して送出する。
This central processing unit 4 specifies the magnetic disk device 6-1 to the controller 5 during a read operation to read data recorded on the magnetic disk device 6-1 or a write operation to record new data. Address information for performing the read operation or write operation is sent via the interface 121.

コントローラ5は中央処理装置4からのアドレス情報を
受取ると、磁気ディスク装置6−iの駆動部コントロー
ラ61−■に対して詳細なアドレス情報をインタフェー
ス122を介して送出する。
When the controller 5 receives the address information from the central processing unit 4, it sends detailed address information to the drive unit controller 61-2 of the magnetic disk device 6-i via the interface 122.

この詳細なアドレス情報は磁気ディスク装置6−1の番
号、それに接続されるディスク駆動部62−1〜65−
Iの番号、そのディスク駆動部62−1〜65−■のシ
リンダアドレスやヘッドアドレス、およびセクタ位置な
どを示す情報によって構成されている。
This detailed address information includes the number of the magnetic disk device 6-1 and the disk drives 62-1 to 65- connected to it.
It is made up of information indicating the number I, the cylinder address and head address of the disk drive units 62-1 to 65-2, and the sector position.

磁気ディスク装置6−iの駆動部コントローラ61−1
はコントローラ5からのアドレス情報のうち、磁気ディ
スク装置6−1の番号が自装置の番号に該当するとぎ、
ディスク駆動部62−1〜65−■に対して該アドレス
情報のうち装置番号を除いたアドレス情報を送出する。
Drive unit controller 61-1 of magnetic disk device 6-i
In the address information from the controller 5, since the number of the magnetic disk device 6-1 corresponds to the number of the own device,
The address information excluding the device number from the address information is sent to the disk drive units 62-1 to 65-2.

ディスク駆動部62−1〜65−1においてはこのアド
レス情報のうち、ディスク駆動部62−1〜65−iの
番号が自分の番号に該当するとき、送られてきたアドレ
ス情報の中のシリンダアドレスに位置決めを行い、ヘッ
ドを選択し、セクタ位置の探索を開始する。
In the disk drive units 62-1 to 65-1, when the number of the disk drive unit 62-1 to 65-i corresponds to its own number among this address information, the cylinder address in the sent address information is used. The head is positioned, the head is selected, and the search for the sector position begins.

このセクタ位置の探索が終了すると、駆動部コントロー
ラ61−■はコントローラ5に対して終了を通知するた
めのアテンションを発行する。
When this sector position search is completed, the drive unit controller 61-2 issues an attention to the controller 5 to notify the completion.

コントローラ5は駆動部コントローラ61−1からのア
テンションを受取ると、磁気ディスク装置6−1に対し
てデータの読出しまたは書込みを開始する。
Upon receiving the attention from the drive unit controller 61-1, the controller 5 starts reading or writing data to the magnetic disk device 6-1.

一般に、コントローラ5からのアドレス情報をディスク
駆動部62−I〜65−1が受取り、そのアドレス情報
の示す位置に位置決めを行うまでのアクセス時間はコン
トローラ5の処理時間に比べて非常に長いので、コント
ローラ5がディスク駆動部62−1〜65−1に対して
アドレス情報を送出した後、ディスク駆動部62−1〜
65−1が位置決めを終了するまで次の処理の開始を待
つ場合には、システム全体の効率が低下するとともに、
磁気ディスク装置6−1の稼動率が低下することとなる
Generally, the access time from when the disk drives 62-I to 65-1 receive address information from the controller 5 to positioning at the position indicated by the address information is much longer than the processing time of the controller 5. After the controller 5 sends address information to the disk drives 62-1 to 65-1, the disk drives 62-1 to 65-1
If you wait to start the next process until 65-1 finishes positioning, the efficiency of the entire system will decrease, and
The operating rate of the magnetic disk device 6-1 will decrease.

したがって、コントローラ5はディスク駆動部62−1
〜65−■に対してアドレス情報を送出すると、そのデ
ィスク駆動部62−I〜65−■において位置決め動作
が終了するまで待たずに順次具るディスク駆動部62−
I〜65−1を選択し、該ディスク駆動部62−1〜6
5−1に対してアドレス情報を発行する動作を行い、位
置決め動作が終了してアテンションを送ってきたディス
ク駆動部62−1〜65−1に対して読出し動作または
書込み動作の指示を行う命令を送出するように制御して
いる。
Therefore, the controller 5 has the disk drive section 62-1.
When the address information is sent to ~65-■, the disk drive units 62-I to 65-■ are sequentially equipped without waiting until the positioning operation is completed.
Select I to 65-1 and drive the disk drives 62-1 to 62-6.
5-1, and instructs the disk drive units 62-1 to 65-1, which have completed the positioning operation and sent the attention, to perform a read operation or a write operation. It is controlled to be sent.

このため、オンライン状態にある磁気ディスク装置6−
【はコントローラ5からのアクセスの有無にかかわらず
、コントローラ5からの命令を受取るために命令待機状
態となっている必要があった。
Therefore, the magnetic disk device 6- which is in the online state
[ needs to be in an instruction standby state in order to receive an instruction from the controller 5 regardless of whether there is an access from the controller 5 or not.

このような従来の磁気ディスク装置6−1では、データ
の読出し動作または書込み動作に際して上位装置から送
られてくるアドレス情報のシリンダアドレスが現在位置
決めしているシリンダアドレスと異るとき、アドレス情
報の示すシリンダアドレスへ位置決め動作を行うため、
データの読出し動作または書込み動作を行うまでに位置
決め動作を行うための時間を必要とするので、上位装置
から送られてくるアドレス情報によって直ぐにデータの
読出し動作または書込み動作を行うことができなかった
In such a conventional magnetic disk device 6-1, when the cylinder address of the address information sent from the host device during a data read or write operation is different from the currently positioned cylinder address, the address information is To perform positioning operation to the cylinder address,
Since time is required to perform a positioning operation before a data read or write operation is performed, a data read or write operation cannot be performed immediately based on address information sent from a host device.

これは上位装置が一つの装置に専有されることなく、複
数の装置に対して順次命令を送出する制御を行っても、
磁気ディスク装置6−1の数が少なかったり、あるいは
上位装置の数が多い場合には多くの待ち時間が生ずるこ
ととなる。
This means that even if the host device is not monopolized by a single device and controls sending commands sequentially to multiple devices,
If the number of magnetic disk devices 6-1 is small or if the number of host devices is large, a lot of waiting time will occur.

よって、従来の磁気ディスク装置6−1では位置決め動
作を行うための待ち時間が生ずるため、システムや磁気
ディスク装置6−1の効率的な運用を行うことができな
いという欠点がある。
Therefore, in the conventional magnetic disk device 6-1, there is a waiting time for performing a positioning operation, so there is a drawback that the system and the magnetic disk device 6-1 cannot be operated efficiently.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、システムや装置の効率的な運用を行うこ
とができるディスク装置の提供を目的とする。
OBJECTS OF THE INVENTION The present invention has been made to eliminate the drawbacks of the conventional devices as described above, and an object of the present invention is to provide a disk device that allows efficient operation of systems and devices.

発明の構成 本発明によるディスク装置は、ディスク媒体の各シリン
ダ毎に使用状況を記憶する記憶手段と、上位装置からの
アクセスが予め定められた所定時間入力されないとき、
前記記憶手段に記憶された前記使用状況に応じて前記デ
ィスク媒体上のヘッドの位置を変更する変更手段とを有
することを特徴とする。
Structure of the Invention The disk device according to the present invention includes a storage means for storing the usage status of each cylinder of the disk medium, and a storage means that stores the usage status for each cylinder of the disk medium, and when no access from the host device is input for a predetermined period of time.
The apparatus is characterized by comprising a changing means for changing the position of the head on the disk medium according to the usage status stored in the storage means.

実施例 次に、本発明の一実施例について図面を参照して説明す
る。
Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、磁気ディスク装置1の制御回路11は
図示せぬ上位装置から送られてくる命令100を解読し
、装置内各部に対して詳細な動作を指示する。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a control circuit 11 of a magnetic disk device 1 decodes a command 100 sent from a host device (not shown) and instructs detailed operations to various parts within the device.

統計情報記憶回路12は位置決めされた各シリンダアド
レス毎にアクセス回数やアクセス頻度などの統計情報を
記憶する。すなわち、統計情報記憶回路12は上位装置
からのシリンダデータlotを制御回路11からの位置
決め情報書込み信号(以下書込み信号とする)102に
よって取込み、制御回路11からの位置決め情報読出し
信号(以下読出し信号とする)103によってシリンダ
データ104を選択回路13に送出する。
The statistical information storage circuit 12 stores statistical information such as the number of accesses and the access frequency for each positioned cylinder address. That is, the statistical information storage circuit 12 takes in cylinder data lots from the host device using a positioning information write signal (hereinafter referred to as a write signal) 102 from the control circuit 11, and receives a positioning information read signal (hereinafter referred to as a read signal) from the control circuit 11. ) 103 sends the cylinder data 104 to the selection circuit 13.

選択回路13は上位装置かうのシリンダデータ101と
統計情報記憶回路12からのシリンダデータ104との
うち一方を制御回路11からのシリンダデータ選択信号
(以下選択信号とする)105に応じて選択し、その選
択したデータをシリンダデータ109としてシリンダ記
憶回路14に送出する。
The selection circuit 13 selects one of the cylinder data 101 of the host device and the cylinder data 104 from the statistical information storage circuit 12 in response to a cylinder data selection signal (hereinafter referred to as selection signal) 105 from the control circuit 11; The selected data is sent to the cylinder storage circuit 14 as cylinder data 109.

シリンダ記憶回路14は選択回路13から送られてきた
シリンダデータ109を受取ると、該データを制御回路
11からのシリンダデータ保持信号(以下保持信号とす
る)10Bによって保持するとともに、位置決め制御回
路15に対してシリンダデータ110を送出する。
When the cylinder storage circuit 14 receives the cylinder data 109 sent from the selection circuit 13, it holds the data using a cylinder data holding signal (hereinafter referred to as a holding signal) 10B from the control circuit 11, and also sends the data to the positioning control circuit 15. The cylinder data 110 is sent to the cylinder data 110.

位置決め制御回路15は制御回路11からの位置決め実
行信号(以下実行信号とする)107とシリンダ記憶回
路14からのシリンダデータ110とを受取ると、ヘッ
ドディスクアッセンブリ (HDA)17に対して位置
決め制御動作を行わせるための位置決め制御信号[11
のやり取りを行い、目的のシリンダアドレスに位置決め
を行わせる。
When the positioning control circuit 15 receives the positioning execution signal (hereinafter referred to as execution signal) 107 from the control circuit 11 and the cylinder data 110 from the cylinder storage circuit 14, it performs a positioning control operation on the head disk assembly (HDA) 17. Positioning control signal [11
and performs positioning at the target cylinder address.

タイマ回路16は上位装置からのアクセスがない時間を
計測し、その時間がある閾値を越えたときに制御回路1
1に対してタイマ信号10Bを出力し、上位装置からの
アクセスがない時間が閾値を越えたことを制御回路11
に通知する。
The timer circuit 16 measures the time when there is no access from the host device, and when the time exceeds a certain threshold, the control circuit 1
1, the control circuit 11 outputs a timer signal 10B to indicate that the time without access from the host device exceeds the threshold.
Notify.

ヘッドディスクアッセンブリ17はデータの記録が行わ
れる磁気ディスク媒体(図示せず)、データの読出しお
よび書込みを行う磁気ヘッド(図示せず)、複数の磁気
ヘッドを支えるアーム(図示せず)、磁気ヘッドを所定
位置に移動させるための磁気回路(図示せず)、磁気デ
ィスク媒体を回転させるためのモータ(図示せず)など
を一体化した機構部である。
The head disk assembly 17 includes a magnetic disk medium (not shown) on which data is recorded, a magnetic head (not shown) that reads and writes data, an arm (not shown) that supports a plurality of magnetic heads, and a magnetic head. This is a mechanical unit that integrates a magnetic circuit (not shown) for moving the magnetic disk to a predetermined position, a motor (not shown) for rotating the magnetic disk medium, etc.

制御回路11においては上位装置からの制御によって動
作する状態と、統計情報記憶回路12に記憶された統計
情報によって動作する状態との二つの状態が存在する。
There are two states in the control circuit 11: a state in which it operates under control from a host device and a state in which it operates in accordance with statistical information stored in the statistical information storage circuit 12.

すなわち、制御回路11が上位装置からの制御によって
動作する状態の場合、制御回路11は上位装置から送ら
れてくる位置決め命令100を受取ると、書込み信号1
02を統計情報記憶回路12に出力し、その位置決め命
令100と同時に送られてくるシリンダデータ101を
統計情報記憶回路12に取込む。
That is, when the control circuit 11 is in a state where it operates under the control from the higher-level device, when the control circuit 11 receives the positioning command 100 sent from the higher-level device, it outputs the write signal 1.
02 is output to the statistical information storage circuit 12, and the cylinder data 101 sent simultaneously with the positioning command 100 is taken into the statistical information storage circuit 12.

同時に、制御回路11は選択回路13に選択信号105
を出力して選択回路13に上位装置からのシリンダデー
タlotを選択させ、その後にシリンダ記憶回路14に
保持信号10Bを出力して選択回路13からのシリンダ
データ109を保持させる。
At the same time, the control circuit 11 sends a selection signal 105 to the selection circuit 13.
is outputted to cause the selection circuit 13 to select the cylinder data lot from the host device, and then a holding signal 10B is outputted to the cylinder storage circuit 14 to cause the cylinder data 109 from the selection circuit 13 to be held.

また、制御回路11は次のタイミングで位置決め制御回
路15に対し、位置決め動作を行わせるための実行信号
107を出力する。これにより、ヘッドディスクアッセ
ンブリ17においては上位装置から送られてくるシリン
ダデータ101によって位置決め動作が行われる。
Further, the control circuit 11 outputs an execution signal 107 for causing the positioning control circuit 15 to perform a positioning operation at the next timing. As a result, the head disk assembly 17 performs a positioning operation based on the cylinder data 101 sent from the host device.

制御回路11が統計情報記憶回路12に記憶された統計
情報によって動作する状態の場合、制御回路11は上位
装置からのアクセスがないときにタイマ回路16からの
タイマ信号108の状態を調べ、アクセスがない時間が
閾値を越えたことを検出すると、統計情報記憶回路12
からシリンダデータ104を読出すために読出し信号1
03を統計情報記憶回路12に出力する。
When the control circuit 11 is in a state in which it operates based on the statistical information stored in the statistical information storage circuit 12, the control circuit 11 checks the state of the timer signal 108 from the timer circuit 16 when there is no access from the host device, and determines whether there is an access. When it is detected that the time exceeds the threshold, the statistical information storage circuit 12
Read signal 1 to read cylinder data 104 from
03 is output to the statistical information storage circuit 12.

また、制御回路11は選択回路13に対して選択信号1
05を出力し、選択回路13に統計情報記憶回路12か
らのシリンダデータ104を選択させる。
The control circuit 11 also sends a selection signal 1 to the selection circuit 13.
05 and causes the selection circuit 13 to select the cylinder data 104 from the statistical information storage circuit 12.

その後に、制御回路11はシリンダ記憶回路14に保持
信号LHを出力し、シリンダ記憶回路14に選択回路1
3からのシリンダデータ10gを保持させる。
After that, the control circuit 11 outputs the holding signal LH to the cylinder storage circuit 14, and the selection circuit 1
10g of cylinder data from 3 is retained.

制御回路11は次のタイミングで位置決め制御回路15
に対し、位置決め動作を行わせるための実行信号107
を出力する。これにより、ヘッドディスクアッセンブリ
17においては統計情報記憶回路12に記憶された統計
情報によって位置決め動作が行われる。
The control circuit 11 activates the positioning control circuit 15 at the next timing.
Execution signal 107 for performing positioning operation on
Output. As a result, the head disk assembly 17 performs a positioning operation based on the statistical information stored in the statistical information storage circuit 12.

第2図は本発明の一実施例のアクセス回数による位置決
め制御を示す図であり、第3図は第1図の統計情報記憶
回路12におけるアクセス回数の記憶動作を示すフロー
チャートである。
FIG. 2 is a diagram showing positioning control based on the number of accesses according to an embodiment of the present invention, and FIG. 3 is a flowchart showing the storage operation of the number of accesses in the statistical information storage circuit 12 of FIG.

これら第1図〜第3図を用いて本発明の一実施例のアク
セス回数による位置決め制御について説明する。
Positioning control based on the number of accesses according to an embodiment of the present invention will be explained using FIGS. 1 to 3.

磁気ディスク装置1においては磁気ディスク媒体2の外
形20から内形25のうち、データの記録が行われてい
る最外周のシリンダ21から最内周のシリンダ24まで
の各シリンダ21〜24毎にアクセス回数が統計情報記
憶回路12に記憶されている。
In the magnetic disk device 1, access is made to each of the cylinders 21 to 24 from the outermost cylinder 21 to the innermost cylinder 24 in which data is recorded among the outer shape 20 to the inner shape 25 of the magnetic disk medium 2. The number of times is stored in the statistical information storage circuit 12.

すなわち、上位装置からのアクセス命令が入力されると
(第3図ステップ31)、統計情報記憶回路12では上
位装置からのシリンダアドレスをメモリアドレスに変換
しく第3図ステップ32)、該メモリアドレスにより統
計情報記憶回路12のメモリ(図示せず)に記憶されて
いる内容を読出す(第3図ステップ33)。
That is, when an access command is input from the host device (step 31 in FIG. 3), the statistical information storage circuit 12 converts the cylinder address from the host device into a memory address (step 32 in FIG. 3). The contents stored in the memory (not shown) of the statistical information storage circuit 12 are read (step 33 in FIG. 3).

次に、統計情報記憶回路12はメモリから読出された内
容、すなわち当該シリンダ21〜24のアクセス回数X
に「1」を加算しく第3図ステップ34)、「1」が加
算されたアクセス回数Xをメモリの同一アドレスに格納
する(第3図ステップ35)。
Next, the statistical information storage circuit 12 stores the contents read from the memory, that is, the number of accesses of the cylinders 21 to 24
Then, "1" is added to (step 34 in FIG. 3), and the access count X to which "1" has been added is stored at the same address in the memory (step 35 in FIG. 3).

このとき、統計情報記憶回路12は「1」が加算された
アクセス回数Xと、予め保持されている最大アクセス回
数とを比較しく第3図ステップ36)、アクセス回数X
が最大アクセス回数よりも大きくなると(X≧MAX 
) 、当該シリンダアドレスを最大アクセス回数シリン
ダとして登録しく第3図ステップ37)、またそのアク
セス回数Xも最大アクセス回数として保持する(第3図
ステップ38)。
At this time, the statistical information storage circuit 12 compares the number of accesses X to which "1" has been added and the maximum number of accesses held in advance (step 36 in FIG. 3).
becomes larger than the maximum number of accesses (X≧MAX
), the cylinder address is registered as the maximum number of accesses cylinder (step 37 in FIG. 3), and the number of accesses X is also held as the maximum number of accesses (step 38 in FIG. 3).

アクセス回数Xが最大アクセス回数よりも大きくならな
ければ(X<MAX)、統計情報記憶回路12での記憶
処理が終了し、磁気ディスク装置1の処理がそのまま続
行される。
If the number of accesses X does not become larger than the maximum number of accesses (X<MAX), the storage process in the statistical information storage circuit 12 ends, and the processing in the magnetic disk device 1 continues as it is.

磁気ディスク装置1が上位装置によってアクセスされな
い状態が続き、タイマ回路16から制御回路11にタイ
マ信号108が出力され、上位装置からのアクセスがな
い時間が閾値を越えたことが通知されると、制御回路1
1は統計情報記憶回路12に記憶された統計情報によっ
て動作する。
When the magnetic disk device 1 continues to be in a state where it is not accessed by the host device, and the timer circuit 16 outputs the timer signal 108 to the control circuit 11 to notify that the time without access from the host device has exceeded the threshold, the control circuit 1
1 operates based on the statistical information stored in the statistical information storage circuit 12.

すなわち、制御回路11は統計情報記憶回路12に読出
し信号10Bを出力し、統計情報記憶回路12から読出
したシリンダデータ104、つまり最大アクセス回数の
シリンダアドレスを選択回路13を介してシリンダ記憶
回路14に保持させる。
That is, the control circuit 11 outputs the read signal 10B to the statistical information storage circuit 12, and sends the cylinder data 104 read from the statistical information storage circuit 12, that is, the cylinder address with the maximum number of accesses, to the cylinder storage circuit 14 via the selection circuit 13. let it hold.

制御回路11は次のタイミングで位置決め制御回路15
に対し、位置決め動作を行わせるための実行信号107
を出力し、ヘッドディスクアッセンブリ17において統
計情報記憶回路12から読出された最大アクセス回数の
シリンダアドレスによる位置決め動作を行わせる。
The control circuit 11 activates the positioning control circuit 15 at the next timing.
Execution signal 107 for performing positioning operation on
is output, and the head disk assembly 17 performs a positioning operation based on the cylinder address having the maximum number of accesses read from the statistical information storage circuit 12.

よって、磁気ヘッド(図示せず)は現在位置決めされて
いるシリンダ22上のヘッド位置22aから最大アクセ
ス回数のシリンダ23上のヘッド位置23aに移動され
る。
Therefore, the magnetic head (not shown) is moved from the currently positioned head position 22a on the cylinder 22 to the head position 23a on the cylinder 23 that has been accessed the maximum number of times.

磁気ディスク装置1が上位装置によってアクセスされな
い状態が長く続く場合には、現在位置決めされているシ
リンダアドレスに対するデータの読出し動作あるいは書
込み動作が行われる可能性はなく、次のアクセスにおい
ては必ず他のシリンダアドレスへの移動命令をともなっ
た読出し命令あるいは書込み命令が送出されてくるとい
う推論のもとに、予めアクセス回数の多いシリンダアド
レスに位置決めしておくことになる。
If the magnetic disk device 1 remains unaccessed by a host device for a long time, there is no possibility that data will be read or written to the currently positioned cylinder address, and the next access will always be made to another cylinder. Based on the inference that a read command or a write command accompanied by a move command to the address will be sent, the cylinder address is positioned in advance at a cylinder address that is frequently accessed.

但し、現在位置決めされているシリンダアドレスが最大
アクセス回数のシリンダアドレスのときには、最大アク
セス回数の次にアクセス回数が多いシリンダアドレスに
対して位置決め動作が行われる。
However, when the currently positioned cylinder address is the cylinder address with the maximum number of accesses, the positioning operation is performed for the cylinder address with the next highest number of accesses after the maximum number of accesses.

しかしながら、上位装置からのアクセスが統計情報によ
って位置決めされたシリンダアドレスとは異なるシリン
ダアドレスへのアクセスである場合には磁気ヘッドを移
動させなければならな(1が、上位装置からのアクセス
がないときに最大アクセス回数のシリンダアドレス、す
なわちアクセスされる可能性の最も高い予測シリンダア
ドレスに移動させておけば、上位装置からのアクセスが
該予測シリンダアドレスに対するアクセスのときには磁
気ヘッドを移動させずに済むため、アクセス速度を向上
させることができる。
However, if the access from the host device is to a cylinder address that is different from the cylinder address determined by the statistical information, the magnetic head must be moved (1 is when there is no access from the host device). If the cylinder address is moved to the cylinder address with the maximum number of accesses, that is, the predicted cylinder address that is most likely to be accessed, the magnetic head does not need to be moved when the host device accesses the predicted cylinder address. , access speed can be improved.

第4図は本発明の一実施例の単位時間当りのアクセス回
数(アクセス頻度)による位置決め制御を示す図であり
、第5図は第1図の統計情報記憶回路12におけるアク
セス頻度の記憶動作を示すフローチャートである。
FIG. 4 is a diagram showing positioning control based on the number of accesses per unit time (access frequency) according to an embodiment of the present invention, and FIG. 5 shows the storage operation of the access frequency in the statistical information storage circuit 12 of FIG. FIG.

これら第1図と第4図と第5図とを用いて本発明の一実
施例のアクセス頻度による位置決め制御について説明す
る。
Positioning control based on access frequency according to an embodiment of the present invention will be explained using FIG. 1, FIG. 4, and FIG. 5.

磁気ディスク装置1においては磁気ディスク媒体2の外
形20から内形25のうち、データの記録が行われてい
る最外周のシリンダ21から最内周のシリンダ24まで
の各シリンダ21〜24毎にアクセス回数が統計情報記
憶回路12に記憶されている。
In the magnetic disk device 1, access is made to each of the cylinders 21 to 24 from the outermost cylinder 21 to the innermost cylinder 24 in which data is recorded among the outer shape 20 to the inner shape 25 of the magnetic disk medium 2. The number of times is stored in the statistical information storage circuit 12.

すなわち、第3図のステップ31〜38に示すように、
上位装置からのアクセス命令が入力されると、統計情報
記憶回路12では上位装置からのシリンダアドレスをメ
モリアドレスに変換し、該メモリアドレスにより統計情
報記憶回路12のメモリに記憶されている内容が読出さ
れ、このメモリから読出された内容、すなわち当該シリ
ンダ21〜24のアクセス回数Xに「1」が加算されて
メモリの同一アドレスに格納される。
That is, as shown in steps 31 to 38 in FIG.
When an access command is input from the host device, the statistical information storage circuit 12 converts the cylinder address from the host device into a memory address, and reads out the contents stored in the memory of the statistical information storage circuit 12 using the memory address. Then, "1" is added to the content read from this memory, that is, the number of accesses X of the cylinders 21 to 24, and the result is stored at the same address in the memory.

このとき、統計情報記憶回路12は「1」が加算された
アクセス回数Xと、予め保持されている最大アクセス回
数とを比較し、アクセス回数Xが最大アクセス回数より
も大きくなると(xaMAX)当該シリンダアドレスを
最大アクセス回数シリンダとして登録するとともに、そ
のアクセス回数Xを最大アクセス回数として保持する。
At this time, the statistical information storage circuit 12 compares the number of accesses X to which "1" has been added and the maximum number of accesses held in advance, and if the number of accesses X becomes greater than the maximum number of accesses (xaMAX), the cylinder The address is registered as a maximum access count cylinder, and the access count X is held as the maximum access count.

アクセス回数Xが最大アクセス回数よりも大きくならな
ければ(x<MAX)、統計情報記憶回路12での記憶
処理がそのまま続行される。
If the number of accesses X does not become larger than the maximum number of accesses (x<MAX), the storage process in the statistical information storage circuit 12 continues as is.

統計情報記憶回路12においては各シリンダ21〜24
毎のアクセス頻度を算出するために、−定時間毎にタイ
マ割込みを発生させ(第5図ステップ41)、メモリに
記憶された各シリンダ21〜24毎のアクセス回数の減
算を行い(第5図ステップ42)、タイマ割込みを終了
する(第5図ステップ43)。これにより、統計情報記
憶回路12のメモリにはアクセス頻度が格納される。
In the statistical information storage circuit 12, each cylinder 21 to 24
In order to calculate the access frequency for each cylinder, a timer interrupt is generated at regular intervals (step 41 in FIG. 5), and the number of accesses for each cylinder 21 to 24 stored in memory is subtracted (step 41 in FIG. 5). Step 42), and the timer interrupt is terminated (Step 43 in FIG. 5). Thereby, the access frequency is stored in the memory of the statistical information storage circuit 12.

このとき、最大アクセス回数の減算も行われ、最高アク
セス頻度が算出されて保持される。
At this time, the maximum number of accesses is also subtracted, and the maximum access frequency is calculated and held.

磁気ディスク装置1が上位装置によってアクセスされな
い状態が続き、タイマ回路16から制御回路11にタイ
マ信号108が出力され、上位装置からのアクセスがな
い時間が閾値を越えたことが通知されると、制御回路1
1は統計情報記憶回路12に記憶された統計情報によっ
て動作する。
When the magnetic disk device 1 continues to be in a state where it is not accessed by the host device, and the timer circuit 16 outputs the timer signal 108 to the control circuit 11 to notify that the time without access from the host device has exceeded the threshold, the control circuit 1
1 operates based on the statistical information stored in the statistical information storage circuit 12.

すなわち、制御回路11は統計情報記憶回路12に読出
し信号103を出力し、統計情報記憶回路12から読出
したシリンダデータ104 、最高アクセス頻度のシリ
ンダアドレスを選択回路13を介してシリンダ記憶回路
14に保持させる。
That is, the control circuit 11 outputs a read signal 103 to the statistical information storage circuit 12, and holds the cylinder data 104 read from the statistical information storage circuit 12 and the cylinder address with the highest access frequency in the cylinder storage circuit 14 via the selection circuit 13. let

制御回路11は次のタイミングで位置決め制御回路15
に対して位置決め動作を行わせるための実行信号107
を出力し、ヘッドディスクアッセンブリ17において統
計情報記憶回路12から読出された最高アクセス頻度の
シリンダアドレスによる位置決め動作を行わせる。
The control circuit 11 activates the positioning control circuit 15 at the next timing.
Execution signal 107 for performing positioning operation on
is output, and the head disk assembly 17 performs a positioning operation based on the cylinder address with the highest access frequency read from the statistical information storage circuit 12.

よって、磁気ヘッドは現在位置決めしているシリンダ2
2上のヘッド位置22bから最高アクセス頻度のシリン
ダ23上のヘッド位置23bに移動される。
Therefore, the magnetic head is currently positioned in cylinder 2.
from the head position 22b on the cylinder 23 to the head position 23b on the cylinder 23 with the highest access frequency.

この場合も、現在位置決めを行っているシリンダアドレ
スが最高アクセス頻度のシリンダアドレスのときには、
最高アクセス頻度の次にアクセス頻度が高いシリンダア
ドレスに対して位置決め動作が行われる。
In this case as well, if the cylinder address currently being positioned is the cylinder address with the highest access frequency,
A positioning operation is performed for the cylinder address that has the next highest access frequency after the highest access frequency.

これにより、上位装置からのアクセスがないときに最高
アクセス頻度のシリンダアドレス、すなわちアクセスさ
れる可能性の最も高い予測シリンダアドレスに移動させ
ておけば、上位装置からのアクセスが該予測シリンダア
ドレスに対するアクセスのときには磁気ヘッドを移動さ
せずに済むため、アクセス速度を向上させることができ
る。
As a result, when there is no access from the host device, if the cylinder address is moved to the most frequently accessed cylinder address, that is, the predicted cylinder address that is most likely to be accessed, the access from the host device will be the access to the predicted cylinder address. In this case, the magnetic head does not need to be moved, so the access speed can be improved.

このように、磁気ディスク媒体2の各シリンダ21〜2
4のアクセス回数またはアクセス頻度などの統計情報、
すなわちディスク媒体2の各シリンダ21〜24毎の使
用状況を統計情報記憶回路12に記憶しておき、上位装
置からのアクセス命令を受取る前にそれら統計情報によ
って磁気ヘッドを予測シリンダアドレスに移動させてお
くようにすることによって、従来の制御において必ず生
ずる位置決め動作による待ち時間が生じにくくなるため
、上位装置からのアクセス命令による読出し動作あるい
は書込み動作を直ぐに実行することができ、システムや
磁気ディスク装置1の効率的な運用を行うことができる
In this way, each cylinder 21 to 2 of the magnetic disk medium 2
Statistical information such as the number of accesses or access frequency in 4.
That is, the usage status of each cylinder 21 to 24 of the disk medium 2 is stored in the statistical information storage circuit 12, and the magnetic head is moved to a predicted cylinder address based on the statistical information before receiving an access command from the host device. By doing so, the waiting time due to positioning operations that always occur in conventional control is less likely to occur, so read or write operations can be executed immediately by access commands from the host device, and the system or magnetic disk device can be operated efficiently.

尚、本発明の一実施例では磁気ディスク装置1の場合に
ついて述べたが、他のディスク装置に適用できることは
明白であり、これに限定されない。
Although the embodiment of the present invention has been described with respect to the magnetic disk device 1, it is obvious that the present invention can be applied to other disk devices, and is not limited thereto.

発明の詳細 な説明したように本発明によれば、ディスク媒体の各シ
リンダ毎に使用状況を記憶しておき、上位装置からのア
クセスが予め定められた所定時間入力されないときに、
記憶された使用状況に応じてディスク媒体上のヘッドの
位置を変更するようにすることによって、システムや装
置の効率的な運用を行うことができるという効果がある
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, the usage status is stored for each cylinder of a disk medium, and when no access from a host device is input for a predetermined period of time,
By changing the position of the head on the disk medium according to the stored usage status, there is an effect that the system or device can be operated efficiently.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図は本発明の一実施例のアクセス回数による位置決め
制御を示す図、第3図は第1図の統計情報記憶回路にお
けるアクセス回数の記憶動作を示すフローチャート、第
4図は本発明の一実施例の単位時間当りのアクセス回数
による位置決め制御を示す図であり、第5図は第1図の
統計情報記憶回路におけるアクセス頻度の記憶動作を示
すフローチャート、第6図は従来例のシステム構成を示
すブロック図である。 主要部分の符号の説明 1・・・・・・磁気ディスク装置 2・・・・・・磁気ディスク媒体 11・・・・・・制御回路 12・・・・・・統計情報記憶回路 13・・・・・・選択回路 14・・・・・・シリンダ記憶回路 15・・・・・・位置決め制御回路 16・・・・・・タイマ回路
FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention, FIG. 2 is a diagram showing positioning control based on the number of accesses in one embodiment of the present invention, and FIG. 3 is a block diagram showing the configuration of the statistical information storage circuit of FIG. 1. 4 is a flowchart showing the storage operation of the number of accesses, FIG. 4 is a diagram showing positioning control based on the number of accesses per unit time in an embodiment of the present invention, and FIG. 5 is a flowchart showing the access frequency in the statistical information storage circuit of FIG. 1. FIG. 6 is a block diagram showing a conventional system configuration. Explanation of symbols of main parts 1...Magnetic disk device 2...Magnetic disk medium 11...Control circuit 12...Statistical information storage circuit 13... ... Selection circuit 14 ... Cylinder memory circuit 15 ... Positioning control circuit 16 ... Timer circuit

Claims (1)

【特許請求の範囲】[Claims] (1)ディスク媒体の各シリンダ毎に使用状況を記憶す
る記憶手段と、上位装置からのアクセスが予め定められ
た所定時間入力されないとき、前記記憶手段に記憶され
た前記使用状況に応じて前記ディスク媒体上のヘッドの
位置を変更する変更手段とを有することを特徴とするデ
ィスク装置。
(1) A storage means for storing usage status for each cylinder of a disk medium, and when no access from a host device is input for a predetermined period of time, the usage status stored in the storage means is stored in the disk medium. 1. A disk device comprising: changing means for changing the position of a head on a medium.
JP6267289A 1989-03-15 1989-03-15 Disk device Pending JPH02240880A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6267289A JPH02240880A (en) 1989-03-15 1989-03-15 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6267289A JPH02240880A (en) 1989-03-15 1989-03-15 Disk device

Publications (1)

Publication Number Publication Date
JPH02240880A true JPH02240880A (en) 1990-09-25

Family

ID=13207013

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6267289A Pending JPH02240880A (en) 1989-03-15 1989-03-15 Disk device

Country Status (1)

Country Link
JP (1) JPH02240880A (en)

Similar Documents

Publication Publication Date Title
JPH1063578A (en) Information recording and reproducing device
US5590336A (en) Method and apparatus for performing overlapping service of multiple IDE peripheral devices
US6523142B1 (en) Apparatus and method of performing in a disk drive commands issued from a host system
US5548784A (en) Automatic disk change detection without causing head movement by step pulses
JPH10149260A (en) Reading cache system for disk drive
GB2361557A (en) Data storage device with data transfer before write instruction
US5875453A (en) Apparatus for and method of information processing
JPH04259048A (en) Pre-read data control system using statistic information
JP2001283503A (en) Control method for head unloading of magnetic storage device and magnetic storage device
JPH02240880A (en) Disk device
WO2001020442A1 (en) Magnetic disk, method of accessing magnetic disk device, and recording medium storing disk access control program for magnetic disk device
JP3122702B2 (en) Disk device write-back control method
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
JPH09330257A (en) External storage medium reader
US6041392A (en) Disk drive device and method for controlling the same
JP2734865B2 (en) Continuous write processing method for disk device
US7336573B2 (en) Method for handling interrupt request in optical storage drive
JP2002189572A (en) Disk storage device, information processing equipment provided with the same and processing method when failing in write
JPH04251421A (en) Method for decreasing number of moving times of head/arm of disk drive in direction of diameter
JP3150242B2 (en) Disk unit
JPH03290873A (en) Disk type storage device, controller of disk type storage device, and control method for disk type storage device
JPH05241736A (en) File control method for magnetic tape storage device
JPH10333984A (en) Recording and reproducing device
JP2704138B2 (en) Control method of magnetic disk cache
JPH0512026A (en) Magnetic disk drive