JPH03183067A - Magnetic disk device - Google Patents

Magnetic disk device

Info

Publication number
JPH03183067A
JPH03183067A JP31899389A JP31899389A JPH03183067A JP H03183067 A JPH03183067 A JP H03183067A JP 31899389 A JP31899389 A JP 31899389A JP 31899389 A JP31899389 A JP 31899389A JP H03183067 A JPH03183067 A JP H03183067A
Authority
JP
Japan
Prior art keywords
read
memory
data
order
write
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
JP31899389A
Other languages
Japanese (ja)
Inventor
Kazuhiko Takaishi
和彦 高石
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP31899389A priority Critical patent/JPH03183067A/en
Publication of JPH03183067A publication Critical patent/JPH03183067A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Abstract

PURPOSE:To optimumize the move of a magnetic head when an instruction is executed by simultaneously executing the plural read / write instructions. CONSTITUTION:When the prescribed number of read / write instructions are held in a memory 4 or after the lapse of prescribed time, a control part 6 rearranges the read / write instructions in order according to cylinder sector numbers and the instructions are executed according to the order. Therefore, a magnetic head 1 is moved according to the order for the cylinder number of a magnetic disk 3 and is not moved back and forth repeatedly within an overlapped range. The read instruction is executed and the read data are held in a memory 5. Then, the control part 6 outputs the data corresponding to the read instructions while rearranging the data in the order of the original read instructions. Accordingly, the data can be received according to the order of the read instructions.

Description

【発明の詳細な説明】 〔概要〕 高速動作を可能とした磁気ディスク装置に関し、リード
・ライト命令実行時の磁気ヘッドの移動を最適化するこ
とを目的とし、 磁気ヘッドを駆動部により位置決めして磁気ディスクに
データ書込又は読出しを行う磁気ディスク装置に於いて
、外部からのリード・ライト命令を複数個保持する第1
のメモリと、リード命令の実行により読出したデータを
保持する第2のメモリと、前記第1のメモリに保持され
たリード・ライト命令が所定数となるか又は所定時間経
過時に、該第1のメモリに保持されたリード・ライト命
令をシリンダ・セクタ番号に従った順序に並べ替えて、
該リード・ライト命令を実行させ、且つリード命令の実
行によって読出したデータを前記第2のメモリに保持し
、該第2のメモリに保持されたデータを、リード命令の
元の順序に並べ替えて出力する制御部とを備えて構成し
た。
[Detailed Description of the Invention] [Summary] The purpose of this invention is to optimize the movement of the magnetic head when executing read/write commands with respect to a magnetic disk device capable of high-speed operation. In a magnetic disk device that writes data to or reads data from a magnetic disk, the first
a second memory that holds data read by executing a read instruction; and when the number of read/write instructions held in the first memory reaches a predetermined number or a predetermined time elapses, the first Sort the read/write instructions held in memory in the order according to cylinder and sector numbers,
Execute the read/write command, hold the data read by the execution of the read command in the second memory, and rearrange the data held in the second memory in the original order of the read command. The controller is configured to include a control section for outputting data.

〔産業上の利用分野〕[Industrial application field]

本発明は、高速動作を可能とした磁気ディスク装置に関
するものである。
The present invention relates to a magnetic disk device capable of high-speed operation.

コンピュータシステムの情報処理の高速化に伴って、フ
ァイル装置等としての磁気ディスク装置も高速動作化が
要望されている。
As the speed of information processing in computer systems increases, magnetic disk devices such as file devices are also required to operate at higher speeds.

〔従来の技術〕[Conventional technology]

磁気ディスク装置は、小型から大型まで各種の構成が実
用化されており、磁気ディスクの実装枚数を増加したり
、又は記録密度を向上させて、大容量化が図られている
Magnetic disk drives have been put into practical use in various configurations ranging from small to large, and attempts are being made to increase the capacity by increasing the number of magnetic disks mounted or by improving the recording density.

このような磁気ディスク装置に対して、ホストコンピュ
ータ等からリード・ライト命令と共にシリンダ番号とセ
クタ番号とが与えられ、そのシリンダ番号の磁気ディス
クのシリンダ位置に磁気ヘッドが位置決めされ、リード
命令の場合はセクタ番号によるセクタからデータが読出
され、又ライト命令の場合はセクタ番号によるセクタに
データが書込まれる。そして、次のリード・ライト命令
によるシリンダ位置に磁気ヘッドが移動される。
To such a magnetic disk device, a read/write command, as well as a cylinder number and a sector number, are given from a host computer, etc., and the magnetic head is positioned at the cylinder position of the magnetic disk corresponding to the cylinder number. Data is read from the sector specified by the sector number, and in the case of a write command, data is written to the sector specified by the sector number. Then, the magnetic head is moved to the cylinder position according to the next read/write command.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

前述のように、従来例の磁気ディスク装置に於いては、
与えられたリード・ライト命令を順次実行するものであ
り、リード・ライト命令によるシリンダ番号はランダム
的である場合が一般的であるから、磁気ヘッドは重複し
た範囲を繰り返し往復する場合がある。極端な場合は、
内周シリンダと外周シリンダとの間を往復する場合が生
じることになり、磁気ヘッドの移動に要する時間の為に
リード・ライト命令の実行速度を向上させることが困難
であった。
As mentioned above, in conventional magnetic disk drives,
Given read/write commands are executed sequentially, and cylinder numbers according to read/write commands are generally random, so the magnetic head may repeatedly move back and forth over overlapping ranges. In extreme cases,
Since the magnetic head sometimes moves back and forth between the inner cylinder and the outer cylinder, it has been difficult to improve the execution speed of read/write commands due to the time required for the movement of the magnetic head.

本発明は、リード・ライト命令実行時の磁気ヘッドの移
動を最適化することを目的とするものである。
An object of the present invention is to optimize the movement of a magnetic head when executing a read/write command.

[課題を解決するための手段] 本発明の磁気ディスク装置は、複数個のリード・ライト
命令をまとめて実行するものであり、第1図を参照して
説明する。
[Means for Solving the Problems] A magnetic disk device of the present invention executes a plurality of read/write commands at once, and will be described with reference to FIG.

磁気ヘッド1をボイスコイルモータ等の駆動部2により
位置決めして磁気ディスク3にデータを書込み或いはデ
ータを読出す磁気ディスク装置に於いて、ホストコンピ
ュータ等の外部からのリード・ライト命令を複数個保持
する第1のメモリ4と、リード命令の実行により読出し
たデータを保持する第2のメモリ5と、第1のメモリ4
に保持されたリード・ライト命令が所定数となるか又は
所定時間経過時に、第1のメモリ4に保持されたリード
・ライト命令を、シリンダ・セクタ番号に従った順序に
並べ替えて、そのリード・ライト命令を実行させ、且つ
リード命令の実行によって読出したデータを第2のメモ
リ5に保持し、この第2のメモリ5に保持したデータを
、リード命令の元の順序に従って並べ替えて出力する制
御部6とを備えて構成した。
A magnetic disk device that positions a magnetic head 1 using a drive unit 2 such as a voice coil motor to write data to or read data from a magnetic disk 3 holds a plurality of read/write commands from an external device such as a host computer. a first memory 4 that stores data read by executing a read command; a second memory 5 that stores data read by executing a read command;
When the number of read/write commands held in the first memory 4 reaches a predetermined number or a predetermined period of time has elapsed, the read/write commands held in the first memory 4 are rearranged in the order according to the cylinder sector number, and the read/write commands are read/written.・Execute the write command, hold the data read by executing the read command in the second memory 5, rearrange the data held in the second memory 5 according to the original order of the read command, and output it. The control unit 6 is also provided with a control unit 6.

〔作用〕[Effect]

第1のメモリ4に所定数のリード・ライト命令が保持さ
れた時、又は所定時間経過した時に、制御部6によりシ
リンダ・セクタ番号に従った順序にリード・ライト命令
を並べ替えて、その順序に従って命令を実行させる。従
って、磁気ヘッド1は、磁気ディスク3のシリンダ番号
の順番に従って移動されることになり、重複した範囲を
繰り返し往復することはなくなる。
When a predetermined number of read/write commands are held in the first memory 4 or when a predetermined period of time has elapsed, the control unit 6 rearranges the read/write commands in the order according to the cylinder sector number, execute instructions according to the instructions. Therefore, the magnetic head 1 is moved in accordance with the order of the cylinder numbers of the magnetic disk 3, and does not repeatedly move back and forth through overlapping ranges.

又リード命令を実行して読出されたデータを第2のメモ
リ5に保持し、制御部6によりリード命令対応のデータ
を元のリード命令の順序に並べ替えて出力する。従って
、外部では、リード命令の順序に従ったデータを受は取
ることができる。
Further, the data read by executing the read command is held in the second memory 5, and the control unit 6 rearranges the data corresponding to the read command in the order of the original read command and outputs the rearranged data. Therefore, data can be received and received externally in accordance with the order of read commands.

〔実施例〕〔Example〕

以下図面を参照して本発明の実施例について詳細に説明
する。
Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は本発明の実施例のブロック図であり、11は磁
気ヘッド、12はボイスコイルモータ等からなる駆動部
、13は磁気ディスク、14はスピンドルモータ、15
は回転制御回路、16は位置決め制御回路、17はリー
ド・ライト制御回路、18は内部バス、19は磁気ディ
スク制御回路、20はマイクロプロセッサ(MPU)、
21は第1のメモリ領域21aと第2のメモリ領域21
bとからなるメモリ、22はインタフェース回路、23
はホストコンピュータである。
FIG. 2 is a block diagram of an embodiment of the present invention, in which 11 is a magnetic head, 12 is a drive unit including a voice coil motor, 13 is a magnetic disk, 14 is a spindle motor, 15
16 is a rotation control circuit, 16 is a positioning control circuit, 17 is a read/write control circuit, 18 is an internal bus, 19 is a magnetic disk control circuit, 20 is a microprocessor (MPU),
21 is a first memory area 21a and a second memory area 21
22 is an interface circuit, 23 is a memory consisting of
is the host computer.

マイクロプロセッサ20と磁気ディスク制御回路19と
を含む構成が第1図の制御部6に相当し、又メモリ21
の第1のメモリ領域21aと第2のメモリ領域21bと
が第1図の第1のメモリ4と第2のメモリ5とに相当す
るものである。
The configuration including the microprocessor 20 and the magnetic disk control circuit 19 corresponds to the control section 6 in FIG.
The first memory area 21a and the second memory area 21b correspond to the first memory 4 and the second memory 5 in FIG.

又磁気デイ、スフ13は1枚の場合を図示しているが、
複数枚をスピンドルに取付けた構成が一般的であり、回
転制御回路15により制御されるスピンドルモータ14
により一定速度で回転される。
Also, although the illustration shows a case where there is only one magnetic day and Sufu 13,
A configuration in which a plurality of sheets are attached to a spindle is common, and a spindle motor 14 is controlled by a rotation control circuit 15.
rotated at a constant speed.

又磁気ヘッド11は、磁気ディスク130両面に配置さ
れる構成が一般的であり、位置決め制御回路16により
制御される駆動部12により磁気ディスク13上の指定
されたシリンダ位置に位置決めされる。又リード・ライ
ト制御回路17は、データを変調して磁気ヘッド11に
加える変調部及び続出信号を復調してデータとする復調
部とを備えているものである。
The magnetic head 11 is generally arranged on both sides of the magnetic disk 130, and is positioned at a designated cylinder position on the magnetic disk 13 by a drive unit 12 controlled by a positioning control circuit 16. The read/write control circuit 17 also includes a modulation section that modulates data and applies it to the magnetic head 11, and a demodulation section that demodulates successive signals and converts them into data.

又記憶領域の物理アドレスとしての磁気ディスク13の
シリンダ番号及びセクタ番号の管理は、通常はホストシ
ンピユータ23側で行うものであるが、磁気ディスク装
置側のマイクロプロセッサ20等により行う構成とする
こともできる。
Furthermore, the management of the cylinder number and sector number of the magnetic disk 13 as the physical address of the storage area is normally performed on the host computer 23 side, but it may be configured to be managed by the microprocessor 20 or the like on the magnetic disk device side. You can also do it.

ホストコンピュータ23からリード・ライト命令が与え
られると、マイクロプロセッサ20の制御によりメモリ
21の第1のメモリ領域21aに蓄積される。この第1
のメモリ領域21aに所定数のリード・ライト命令が蓄
積された時、又は所定時間経過しても次のリード・ライ
ト命令がない時に、マイクロプロセッサ20の制御によ
り、シリンダ番号の順番及び同一シリンダ番号の場合は
セクタ番号の順番に従ってリード・ライト命令の並べ替
えが行われる。この場合、リード・ライト命令が蓄積さ
れたアドレスの操作により等価的に並べ替える処理を行
うことになる。
When a read/write command is given from the host computer 23, the data is stored in the first memory area 21a of the memory 21 under the control of the microprocessor 20. This first
When a predetermined number of read/write commands are accumulated in the memory area 21a, or when there is no next read/write command after a predetermined period of time, the order of cylinder numbers and the same cylinder number are determined by the control of the microprocessor 20. In this case, read/write instructions are rearranged according to the order of sector numbers. In this case, the read/write commands are equivalently rearranged by manipulating the stored addresses.

この並べ替えられたリード・ライト命令を磁気ディスク
制御回路19の制御により実行させるもので、シリンダ
番号に従った制御信号を位置決め制御回路16に加える
ことにより、駆動部12により磁気ヘッド11を磁気デ
ィスク13のシリンダ番号位置に位置決めされる。又リ
ード・ライト制御回路17は、リード命令の場合、磁気
ヘッド11の続出信号を復調し、内部バス18を介して
磁気ディスク制御回路19に転送するもので、転送され
たデータは、マイクロプロセッサ20の制御によりメモ
リ21の第2のメモリ領域21bに蓄積される。又ライ
ト命令の場合は、データが変調されて磁気ヘッド11に
加えられ、磁気ディスク13に書込まれる。
The rearranged read/write commands are executed under the control of the magnetic disk control circuit 19. By applying a control signal according to the cylinder number to the positioning control circuit 16, the drive unit 12 moves the magnetic head 11 to the magnetic disk. It is positioned at cylinder number position 13. Further, in the case of a read command, the read/write control circuit 17 demodulates the successive signals from the magnetic head 11 and transfers the signals to the magnetic disk control circuit 19 via the internal bus 18, and the transferred data is sent to the microprocessor 20. is stored in the second memory area 21b of the memory 21 under the control of the memory 21. In the case of a write command, data is modulated, applied to the magnetic head 11, and written to the magnetic disk 13.

一連のリード・ライト命令が実行され、その中のライト
命令の実行により読出されて第2のメモリ領域21bに
蓄積されたデータは、マイクロプロセッサ20の制御に
より、元のライト命令の順序に従って並べ替えられる。
A series of read/write instructions are executed, and the data read out by executing the write instructions among them and stored in the second memory area 21b is rearranged according to the order of the original write instructions under the control of the microprocessor 20. It will be done.

そして、インタフェース回路22を介してホストコンピ
ュータ23側へ送出される。
The data is then sent to the host computer 23 via the interface circuit 22.

第3図は本発明の実施例のフローチャートであり、命令
受信待ち■の状態からホストコンピュータ23例の命令
送出要求の有無を判定し■、命令送出要求があればリー
ド・ライト命令を受付け■、第1のメモリ(第1のメモ
リ領域21b)に空きがあるか否か判定し■、空きがあ
る場合は、その命令を格納する■。或いは、第1のメモ
リに所定数の命令が格納されたか否か判定し、所定数の
命令が格納されていない場合は、その命令を格納するこ
ともできる。
FIG. 3 is a flowchart of an embodiment of the present invention, in which it is determined from the state of waiting for command reception (■) whether there is an instruction sending request from the host computer 23, and if there is an instruction sending request, the read/write command is accepted; It is determined whether or not there is space in the first memory (first memory area 21b). If there is space, the instruction is stored. Alternatively, it is possible to determine whether a predetermined number of instructions are stored in the first memory, and if the predetermined number of instructions are not stored, the instructions can be stored.

又命令送出要求がない場合は、命令受信待ち■の状態と
なると共に、所定時間経過したか否か判定し■、所定時
間経過した時は、第1のメモリに格納された命令の有無
を判定し■、格納された命令がない場合は、命令受信待
ち■の状態となる。
If there is no command sending request, the system enters a state of waiting for command reception and determines whether a predetermined time has elapsed.When the predetermined time has elapsed, determines whether there is an instruction stored in the first memory. However, if there is no stored instruction, the system enters the state of waiting for command reception.

又第1のメモリに格納された命令がある場合、及び命令
を受付けて、第1のメモリに空きがなくなった場合、或
いは前述のように第1のメモリに所定数の命令が格納さ
れた場合に、リード・ライト実行をホストコンピュータ
23等の外部へ通知する■。即ち、磁気ディスク装置が
ビジー状態であることを外部へ通知する。
Also, if there is an instruction stored in the first memory, if an instruction is accepted and there is no more space in the first memory, or if a predetermined number of instructions are stored in the first memory as described above. Then, the read/write execution is notified to external devices such as the host computer 23. That is, it notifies the outside that the magnetic disk device is in a busy state.

そして、リード・ライト命令をシリンダ番号及びセクタ
番号の順番に従って並べ替えて■、その命令を実行する
[相]。そして、リード命令が含まれているか否か判定
し■、ライト命令のみでリード命令が含まれていない場
合は、命令受信可能を外部へ通知し[相]、命令受信待
ち■の状態となる。又リード命令が含まれている場合は
、続出データを第2のメモリ(第2のメモリ領域21b
)に格納し@、その続出データを元のリード命令の順序
に従って並べ替える@。この並べ替えが終了してデータ
送出可能か否か判定し■、送出可能となるとそのデータ
をホストコンピュータ23等の外部へ送出し■、命令受
信可能を外部へ通知して■、命令受信待ち■の状態とな
る。
Then, the read/write commands are rearranged according to the order of cylinder numbers and sector numbers, and the commands are executed [phase]. Then, it is determined whether or not a read command is included (1). If there is only a write command and no read command is included, the command is notified to the outside that the command can be received [phase], and the state is set to (3) waiting for command reception. In addition, if a read command is included, successive data is stored in the second memory (second memory area 21b).
) and rearrange the subsequent data according to the order of the original read command. After this sorting is completed, it is determined whether or not the data can be sent.■ If it is possible to send the data, the data is sent to the outside such as the host computer 23.■, It is notified to the outside that the command can be received.■ It waits for the command to be received. The state will be as follows.

磁気ディスク装置に於ける磁気へンドは、前述のように
、磁気ディスク13の枚数に対応して複数個の磁気ヘッ
ド11を有するものであり、例えば、ヘッド番号l〜5
の磁気ヘッドを有し、シリンダ番号100〜1000の
磁気ディスクを有する場合のリード・ライト命令の実行
の一例を第4図を参照して説明する。
As mentioned above, the magnetic head in the magnetic disk device has a plurality of magnetic heads 11 corresponding to the number of magnetic disks 13, for example, head numbers l to 5.
An example of the execution of a read/write command when the apparatus has a magnetic head with a magnetic disk having cylinder numbers 100 to 1000 will be described with reference to FIG.

リード命令Rとライト命令Wとが、それぞれヘッド番号
、シ堕−ンダ番号、セクタ番号と共に、第4図の〔1]
に示す順番で与えられた場合、磁気ヘッド11はリード
・ライト命令R/Wにより、磁気ディスク13上を、1
00 →700 →500→900→200→1000
→600→300→800→200のように、ランダム
的にシリンダ番号の位置に移動されることになる。
The read command R and write command W are shown in [1] in FIG.
When the commands are given in the order shown in FIG.
00 → 700 → 500 → 900 → 200 → 1000
→600→300→800→200, etc., and will be randomly moved to the position of the cylinder number.

そこで、このようなリード・ライト命令R/Wを第1の
メモリ領域21aに格納し、10個の命令を所定数とし
た時、或いは所定時間経過した時に、シリンダ番号の順
番に従って並べ替えるもので、同一シリンダ番号の場合
はセクタ番号の順番に従って並べ替える。例えば、命令
番号5,1゜については、同一のシリンダ番号200で
あるが、セクタ番号は17.11であるから、命令番号
5のセクタ番号が大きいので、命令番号10.5の順番
に並べ替える。従って、命令番号1〜10のリード・ラ
イト命令R/Wは、〔2〕に示すように、!、10,5
,8,3,7,2,9,4.6の順番に並べ替えられる
ことになる。
Therefore, such read/write commands R/W are stored in the first memory area 21a, and when a predetermined number of 10 instructions has passed, or when a predetermined time has elapsed, they are rearranged according to the order of cylinder numbers. , if the cylinder numbers are the same, they are sorted according to the order of sector numbers. For example, the instruction number 5.1° has the same cylinder number 200, but the sector number is 17.11. Since the sector number of instruction number 5 is large, it is rearranged in the order of instruction number 10.5. . Therefore, the read/write commands R/W of command numbers 1 to 10 are as shown in [2]! ,10,5
, 8, 3, 7, 2, 9, 4.6.

二のようなリード・ライト命令R/Wの並べ替えは、例
えば、第1のメモリ領域21aのアドレスの変換テーブ
ルを設けて、この変換テーブル上で並べ替えを行うこと
により、高速で処理することができる。
The reordering of the read/write commands R/W as described in 2 above can be processed at high speed by, for example, providing a conversion table for the addresses of the first memory area 21a and performing the reordering on this conversion table. I can do it.

そして、命令の実行順序として、(a)シリンダ番号1
00から1000に向かって磁気ヘッド11を移動させ
、命令番号として、1→10→5→8→3→7→2→9
→4→6の順番で行うか、或いは(b)シリンダ番号5
00に磁気ヘッド11が位置しているとして、このシリ
ンダ番号500の位置から、命令番号として、3→8→
5→10→1→7→2→9→4→6の順番で行うもので
ある。又は(a)の命令実行順序と反対の順序とするこ
とも可能であり、同様に、(ロ)の命令実行順序と反対
にシリンダ番号500からシリンダ番号1000に向か
う命令を先に実行することも可能である。
Then, as the instruction execution order, (a) cylinder number 1
The magnetic head 11 is moved from 00 to 1000, and the command numbers are 1 → 10 → 5 → 8 → 3 → 7 → 2 → 9.
→ Perform in the order of 4 → 6, or (b) cylinder number 5
Assuming that the magnetic head 11 is located at cylinder number 500, the instruction number is 3→8→
The order is 5→10→1→7→2→9→4→6. Alternatively, the order of execution of the instructions in (a) can be reversed, and similarly, the order of execution of the instructions from cylinder number 500 to cylinder number 1000 can be executed first, contrary to the order of execution of instructions in (b). It is possible.

第5図は前述の命令実行順序に従った磁気ヘッドの移動
方向を示すものであり、alは外側から内側に向かうシ
リンダ番号の順番で命令を実行する場合を示し、a2は
その反対の方向の順番で命令を実行する場合を示す。
FIG. 5 shows the direction of movement of the magnetic head according to the above-mentioned command execution order, where al indicates the case where commands are executed in the order of cylinder numbers from outside to inside, and a2 indicates the direction in the opposite direction. Indicates when instructions are executed in order.

又b1は中間のシリンダ番号の位置から外側に向かうシ
リンダ番号の順番で命令を実行し、その中間のシリンダ
番号の位置まで戻った後に、内側へ向かうシリンダ番号
の順番で命令を実行する場合を示す。この場合、−旦外
側のシリンダ番号の位置に磁気ヘッド・と移動させた後
に、alに示すような命令の実行順序とすることもでき
る。又b2はblと反対の順番で命令を実行する場合を
示す。
Also, b1 indicates a case where commands are executed in the order of cylinder numbers going outward from the middle cylinder number position, and after returning to the middle cylinder number position, commands are executed in the order of cylinder numbers going inward. . In this case, after the magnetic head is first moved to the position of the outer cylinder number, the instruction execution order may be as shown in al. Further, b2 indicates a case where instructions are executed in the opposite order to bl.

又磁気ヘッドの現在位置を基に命令実行順序を決定する
こともできる。例えば、磁気ディスクの外側のシリンダ
番号に位置しているか内側のシリンダ番号に位置してい
るかにより、bl、b2の何れかに類似した実行順序を
選択するように制御することもできる。
It is also possible to determine the instruction execution order based on the current position of the magnetic head. For example, control can be performed so that an execution order similar to either bl or b2 is selected depending on whether the cylinder number is located at the outer cylinder number or the inner cylinder number of the magnetic disk.

又リード命令Rが含まれている場合は、続出データを第
2のメモリ領域21bに格納するものであり、シリンダ
番号100から順番に命令が実行された場合に、続出デ
ータは、並べ替えられた命令番号1.10,8,3,2
.9のリード命令Rに従って〔3〕に示すように、RD
I、RDIO。
If a read command R is included, the successive data is stored in the second memory area 21b, and when the commands are executed in order from cylinder number 100, the successive data is rearranged. Instruction number 1.10, 8, 3, 2
.. According to the read command R of 9, as shown in [3], the RD
I, RDIO.

RD8.RD3.RD2.RD9で示す順番で、第2の
メモリ領域21bに格納される。
RD8. RD3. RD2. They are stored in the second memory area 21b in the order indicated by RD9.

この第2のメモリ領域21bに格納された続出データを
リード命令Rの元の順序に並べ替えるもので、その並べ
替えにより、右側の〔4〕に示すように、RDI、RD
2.RD3.RD8.RD9、RDIOとなる。それに
より、順次続出データを送出することにより、与えられ
たリード命令に従った順序で続出データを送出すること
かできる。
This is to rearrange the successive data stored in the second memory area 21b in the original order of the read command R. As a result of this rearrangement, as shown in [4] on the right side, the RDI, RD
2. RD3. RD8. They become RD9 and RDIO. Thereby, by sequentially sending out the successive data, it is possible to send out the successive data in the order according to the given read command.

この場合、続出データを並べ替えることも可能であるが
、メモリ上で大量のデータを入替えることは相当の時間
を要することになるから、第1のメモリ領域21aに於
ける並べ替えと同様に、第2のメモリ領域21bに格納
された各続出データのアドレスの変換テーブルを設けて
、この変換テーブル上で並べ替えを行うことにより、高
速で並べ替えを行うζ′とが可能となる。
In this case, it is possible to rearrange the successive data, but since it would take a considerable amount of time to replace a large amount of data in the memory, it is possible to rearrange the successive data, but since it would take a considerable amount of time to rearrange a large amount of data in the memory, it is possible to rearrange the successive data. By providing a conversion table for the addresses of each successive data stored in the second memory area 21b and performing rearrangement on this conversion table, high-speed rearrangement ζ' becomes possible.

例えば、第4図の〔1〕に示すリード・ライト命令R/
Wが与えられ、磁気ヘッド11がシリンダ番号500に
位置しているとして、与えられたリード・ライト命令R
/Wの順序に従って命令を実行する従来例に於いては、
磁気ヘッド11の移動距離は、シリンダ数で4900と
なるが、本発明の前述の実施例によれば、工300とな
り、磁気ヘッド11の移動距離を大幅に縮小することが
できる。従って、リード・ライト命令R/Wを複数個蓄
積した後、その命令を並べ替える処理が必要となるが、
磁気ヘッド11の移動速度に比較して高速で並べ替えの
処理が可能であるから、平均的にリード・ライト命令R
/Wの実行を高速化することができることになる。
For example, the read/write command R/ shown in [1] in FIG.
Assuming that W is given and the magnetic head 11 is located at cylinder number 500, a given read/write command R
In the conventional example where instructions are executed according to the order of /W,
The moving distance of the magnetic head 11 is 4900 cylinders, but according to the above-described embodiment of the present invention, the moving distance is reduced to 300 cylinders, and the moving distance of the magnetic head 11 can be significantly reduced. Therefore, after accumulating multiple read/write instructions R/W, it is necessary to rearrange the instructions.
Since the sorting process can be performed at a high speed compared to the moving speed of the magnetic head 11, on average the read/write command R
/W can be executed faster.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、リード・ライト命令を
第1のメモリ4に格納し、制御部6の制御により、リー
ド・ライト命令が所定数格納された時又は所定時間経過
した時に、シリンダ・セクタ番号の順番に従って並べ替
えて、リード・ライト命令を実行させるものであり、磁
気ヘッドlを重複した範囲内を繰り返し往復移動させる
ことがなくなり、シリンダ番号の順番に従って移動させ
て、リード・ライト命令を実行することになるから、高
速でリード・ライト命令を実行させることができる。
As explained above, the present invention stores read/write commands in the first memory 4, and when a predetermined number of read/write commands have been stored or a predetermined time has elapsed under the control of the control unit 6, the cylinder・Read/write commands are executed by rearranging sectors according to the order of sector numbers, which eliminates the need to repeatedly move the magnetic head l back and forth within overlapping ranges, and instead moves read/write commands according to the order of cylinder numbers. Since the command is executed, read/write commands can be executed at high speed.

又並べ替えられたリード命令の実行により続出されたデ
ータを第2のメモリ5に格納し、リード命令の元の順序
に従って並べ替えて出力するものであり、磁気ヘッドl
の移動を最適化したことにより、リード命令の順序と異
なる順序で続出データが得られても、元のリード命令の
順序に戻して外部装置に送出することかできるものであ
る。
Further, the data successively output by executing the rearranged read commands is stored in the second memory 5, rearranged and outputted according to the original order of the read commands, and the magnetic head l
By optimizing the movement of the data, even if successive data is obtained in an order different from the order of the read command, it can be returned to the original order of the read command and sent to the external device.

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

第1図は本発明の原理説明図、第2図は本発明の実施例
のブロック図、第3図は本発明の実施例のフローチャー
ト、第4図は本発明の実施例のリード・ライト命令の実
行説明図、第5図は磁気ヘッドの移動方向説明図である
。 1は磁気ヘッド、2は駆動部、3は磁気ディスク、4,
5は第1及び第2のメモリ、6は制御部である。
Fig. 1 is a diagram explaining the principle of the present invention, Fig. 2 is a block diagram of an embodiment of the invention, Fig. 3 is a flowchart of an embodiment of the invention, and Fig. 4 is a read/write instruction of an embodiment of the invention. FIG. 5 is an explanatory diagram of the movement direction of the magnetic head. 1 is a magnetic head, 2 is a drive unit, 3 is a magnetic disk, 4,
5 is a first and second memory, and 6 is a control unit.

Claims (1)

【特許請求の範囲】 磁気ヘッド(1)を駆動部(2)により位置決めして磁
気ディスク(3)にデータ書込又は読出しを行う磁気デ
ィスク装置に於いて、 外部からのリード・ライト命令を複数個保持する第1の
メモリ(4)と、 リード命令の実行により読出したデータを保持する第2
のメモリ(5)と、 前記第1のメモリ(4)に保持されたリード・ライト命
令が所定数となるか又は所定時間経過時に、該第1のメ
モリ(4)に保持されたリード・ライト命令をシリンダ
・セクタ番号に従った順序に並べ替えて、該リード・ラ
イト命令を実行させ、且つリード命令の実行によって読
出したデータを前記第2のメモリ(5)に保持し、該第
2のメモリ(5)に保持されたデータを、リード命令の
元の順序に並べ替えて出力する制御部(6)とを備えた
ことを特徴とする磁気ディスク装置。
[Claims] In a magnetic disk device that positions a magnetic head (1) by a drive unit (2) to write or read data on a magnetic disk (3), a plurality of external read/write commands are provided. A first memory (4) that holds data, and a second memory (4) that holds data read by executing a read command.
a memory (5), and when the number of read/write commands held in the first memory (4) reaches a predetermined number or a predetermined period of time has elapsed, the read/write commands held in the first memory (4) are read/write. The instructions are rearranged in the order according to cylinder/sector numbers, the read/write instructions are executed, and the data read by the execution of the read instructions is held in the second memory (5), and the second A magnetic disk device comprising: a control unit (6) that rearranges data held in a memory (5) in the original order of a read command and outputs the rearranged data.
JP31899389A 1989-12-11 1989-12-11 Magnetic disk device Pending JPH03183067A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31899389A JPH03183067A (en) 1989-12-11 1989-12-11 Magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31899389A JPH03183067A (en) 1989-12-11 1989-12-11 Magnetic disk device

Publications (1)

Publication Number Publication Date
JPH03183067A true JPH03183067A (en) 1991-08-09

Family

ID=18105299

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31899389A Pending JPH03183067A (en) 1989-12-11 1989-12-11 Magnetic disk device

Country Status (1)

Country Link
JP (1) JPH03183067A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0991098A (en) * 1995-09-27 1997-04-04 Nec Software Ltd Device driver access system
US5944792A (en) * 1996-01-12 1999-08-31 Nec Corporation Data transfer device with computed start times for data blocks
WO2002017305A2 (en) * 2000-08-22 2002-02-28 Qlogic Corporation Disk controller configured to perform out of order execution of write operations
DE19648752B4 (en) * 1996-03-30 2010-04-01 Samsung Electronics Co., Ltd., Suwon Command execution procedure for a CD-ROM drive
US9201599B2 (en) 2004-07-19 2015-12-01 Marvell International Ltd. System and method for transmitting data in storage controllers

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0991098A (en) * 1995-09-27 1997-04-04 Nec Software Ltd Device driver access system
US5944792A (en) * 1996-01-12 1999-08-31 Nec Corporation Data transfer device with computed start times for data blocks
DE19648752B4 (en) * 1996-03-30 2010-04-01 Samsung Electronics Co., Ltd., Suwon Command execution procedure for a CD-ROM drive
WO2002017305A2 (en) * 2000-08-22 2002-02-28 Qlogic Corporation Disk controller configured to perform out of order execution of write operations
WO2002017305A3 (en) * 2000-08-22 2003-07-17 Qlogic Corp Disk controller configured to perform out of order execution of write operations
US6826650B1 (en) 2000-08-22 2004-11-30 Qlogic Corporation Disk controller configured to perform out of order execution of write operations
US7103715B2 (en) 2000-08-22 2006-09-05 Marvell World Trade Ltd. Disk controller configured to perform out of order execution of write operations
US7484037B2 (en) 2000-08-22 2009-01-27 Marvell International Ltd. Disk controller configured to perform out of order execution of write operations
US7814271B2 (en) 2000-08-22 2010-10-12 Marvell World Trade Ltd. Disk controller configured to perform out of order execution of write operations
US8145835B2 (en) 2000-08-22 2012-03-27 Marvell World Trade, Ltd. Disk controller configured to perform out of order execution of write operations
US8769219B2 (en) 2000-08-22 2014-07-01 Marvell World Trade Ltd. Disk controller configured to perform out of order execution of write operations
US9201599B2 (en) 2004-07-19 2015-12-01 Marvell International Ltd. System and method for transmitting data in storage controllers

Similar Documents

Publication Publication Date Title
US20200020357A1 (en) Data-center drive with split-actuator that increases read/write performance via data striping
US20190035427A1 (en) Apparatus and method for dynamic multiple actuator drive data access
JP2002522865A (en) Data distribution across the disk zone in stripes
JPH03183067A (en) Magnetic disk device
JPS62177621A (en) Disk device
JPH05257613A (en) Multi-head loading hard disk device
JP2655119B2 (en) Magnetic disk drive controller
JPS6366773A (en) Magnetic head mechanism for magnetic disk device
JPH05165579A (en) Mirrored disk controller
JP3329083B2 (en) Data storage device and method
JPH0155485B2 (en)
JPH04191921A (en) Data filling device
JP2616444B2 (en) Magnetic disk drive
JPH01182970A (en) Magnetic disk device
JPS60234272A (en) Disk memory
JPH03245390A (en) Magnetic disk device
JPH04349274A (en) Disk device control system
JPH05128528A (en) Optical disk device
JPH011047A (en) data processing system
JPS60109087A (en) Disk storage device
JPH02289975A (en) Parallel transfer type disk system
JPH0567022A (en) High speed data access system
JPH05341913A (en) Magnetic disk controller
JPH08263220A (en) Data input and output device
JPH04295946A (en) Disk controller