JPH03102418A - Magnetic disk device - Google Patents
Magnetic disk deviceInfo
- Publication number
- JPH03102418A JPH03102418A JP24015889A JP24015889A JPH03102418A JP H03102418 A JPH03102418 A JP H03102418A JP 24015889 A JP24015889 A JP 24015889A JP 24015889 A JP24015889 A JP 24015889A JP H03102418 A JPH03102418 A JP H03102418A
- Authority
- JP
- Japan
- Prior art keywords
- sectors
- sector
- magnetic disk
- disk device
- access
- 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
Links
- 230000000694 effects Effects 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
Landscapes
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、情報処理システム等で使用される磁気ディス
ク装置に関する。DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a magnetic disk device used in an information processing system or the like.
(従来の技術)
最近、コンピュータ等の外部記憶装置として、磁気ディ
スク装置や磁気Iへラム装置が多く用いられている。こ
の種の記憶製置は、その構造上アクセスタイムをms単
位より減少させることは困難であり、その+]:能はア
クセス9イl1に大きく依存している。(Prior Art) Recently, magnetic disk devices and magnetic I-RAM devices have been widely used as external storage devices for computers and the like. Due to the structure of this type of memory arrangement, it is difficult to reduce the access time below the millisecond unit, and its performance is largely dependent on the access time.
磁気ディスタ装置のアクセスタイl1は、ヘッ1一がシ
リンダ間を移動ずる1時間、移動後の安)と時間、ディ
スクの同転待ち時間、ヘッドがディスクに接触してから
安定するまでの時間を含んでいる。この中でディスクの
回i1g待ち時間とは、ヘツIヘがシリンダ上にあると
き論理的セクタ番号が指定するセクタかヘッドを通過す
るまでの待ち時間であり、前記アクセスツイl1の中て
このディスクの回転待ち時間が大きな割合を占めている
。The access tie l1 of a magnetic disk drive device is the one hour it takes for the head 11 to move between cylinders, the time it takes after the movement, the wait time for the disk to rotate simultaneously, and the time it takes for the head to stabilize after it makes contact with the disk. Contains. In this, the disk rotation i1g waiting time is the waiting time until the logical sector number passes through the sector specified by the logical sector number or the head when the head I is on the cylinder. The rotation waiting time occupies a large proportion of the time.
(発明が解決しようとする課題)
しかしながら、上詔従来の技術では、右方向に回転して
いるディスクにおいて同一シリンダ七で現イfアクセス
しているセクタに続いて物那的付置が前記セクタの右隣
りのセクタをアクセスするバターンが多発しても、その
都度ディスクが1回転するまで待たないとアクセスでき
ないという問題点を有していた。−L記問題点を解決す
る方法としてセクタの再割付けを行って右隣りのセクタ
を左隣りに移すことにより、次のこのパターンでアクセ
スする時のディスクの回転待ち時間を減らすという方法
がある。(Problem to be Solved by the Invention) However, in the prior art, following the sector currently being accessed in the same cylinder 7 on a disk rotating in the right direction, physical attachment is performed on the sector. Even if there are many patterns of accessing the sector on the right, the problem is that access cannot be made until the disk rotates once each time. - As a method to solve the problem described in L, there is a method of reallocating sectors and moving the sector on the right to the sector on the left, thereby reducing the disk rotation waiting time when accessing this pattern next time.
本発明は上記従来の問題を解決するものであり、上記セ
クタの再割付けを行う場合に使用する論理的セクタ番号
に対応して物理セクタ番号を設定し、かつ、連続してア
クセスされたセクタのパターンに対するアクセス回数を
自動計数する磁気ディスク装置を提供することを目的と
するものである。The present invention solves the above conventional problems, and sets physical sector numbers corresponding to logical sector numbers used when reallocating sectors, and The object of the present invention is to provide a magnetic disk device that automatically counts the number of accesses to a pattern.
(問題点を解決するための手段)
本発明は上記目的を達或するために、磁気ディスク装置
は、論理的セクタ番号により指定される記憶付置に物理
的セクタ番号を記憶する手段と、現在アクセスされてい
るセクタの論理的セクタ番号と直前にアクセスされてい
たセクタの論理的セクタ番号に対応する2つの物理的セ
クタ番号を用いて1つのアドレスを生或する手段と、前
記ア[〜レスによる指定される記憶位置から読み出され
る連続してアクセスされたセクタのパターンに対するア
クセス回数に1を加算したあと、前記記憶位置に加算結
果を記憶する手段とから構成されるものである。(Means for Solving the Problems) In order to achieve the above object, the present invention provides a magnetic disk device with means for storing physical sector numbers in storage devices designated by logical sector numbers, and means for generating one address using two physical sector numbers corresponding to the logical sector number of the sector being accessed and the logical sector number of the sector that was accessed immediately; The method comprises means for adding 1 to the number of accesses for a pattern of continuously accessed sectors read from a designated storage location, and then storing the addition result in the storage location.
(作 用)
したがって、本発明は上記構成によって、連続してアク
セスされたセクタのパターンに対する総アクセス同数と
セクタの物坤的セクタ番号を提イ』(することが可能に
なり、これらを用いてセクタの再割付けを行うことによ
って磁気ディスク装置の性能を向上させることができる
。(Function) Therefore, with the above configuration, the present invention makes it possible to provide the same total number of accesses and the physical sector number of sectors for patterns of consecutively accessed sectors. By reallocating sectors, the performance of the magnetic disk device can be improved.
(実施例)
第上図はセクタの再割付けの原理を示すものである。フ
ォーマット時に、第1図(a)で示す順序でセクタが書
き込まれていたとする。読み出し時にA−+Bという順
序でアクセスするパターンが多発した場合、第1図(b
)に示すようにセクタの再割付けを行うことによって、
次にA−)Bの順序の3
パターンでアクセスした時の回転待ち時間を大幅に減ら
すことが可能となる。(Embodiment) The upper figure shows the principle of sector reallocation. Assume that during formatting, sectors are written in the order shown in FIG. 1(a). If the pattern of accessing in the order of A-+B occurs frequently during reading, the pattern shown in Fig. 1 (b
) by reallocating sectors as shown in
Next, it becomes possible to significantly reduce the rotational waiting time when accessing in the three patterns of order A-)B.
第2図は本発明の一実旅例における磁気ディスク装置の
構成を示すものである。第2図において、10はアドレ
スレジスタ,11は物理的セクタ番号を格納するRAM
、12は連続してアクセスされたセクタのパターンを示
す物理的セクタ番号のペアを格納するランチ回路(a)
, (b)、13はアドレスレジスタ、14は前記パタ
ーンの総アクセス回数を格納するRAM、{5は加算器
、111ないしH8はセクタ番号、1.20はラッチ回
路12(a)の内容をラッチ回路12(b)に移す信号
、12↑はRAM].4に書き込むための書込信号、1
22はRAM.14から読み出すための読出信号、12
3は総アクセス回数、131ないし135は物理的セク
タ番号である。FIG. 2 shows the configuration of a magnetic disk device in one practical example of the present invention. In FIG. 2, 10 is an address register, and 11 is a RAM that stores physical sector numbers.
, 12 is a launch circuit (a) that stores a pair of physical sector numbers indicating a pattern of consecutively accessed sectors.
, (b), 13 is an address register, 14 is a RAM that stores the total number of accesses of the pattern, {5 is an adder, 111 to H8 are sector numbers, 1.20 latches the contents of the latch circuit 12(a) Signal transferred to circuit 12(b), 12↑ is RAM]. Write signal for writing to 4, 1
22 is RAM. a read signal for reading from 14, 12
3 is the total number of accesses, and 131 to 135 are physical sector numbers.
次に上記実施例の動作について説明する。上記実施例に
おいて、論理的セクタ番号111〜118がホストから
与えられるとアドレスレジスタ10で指定されるR A
Mllの記憶位置から、上記論理的セクタ番号に対応
する物理的セクタ番号131〜135がラ4
ッチ回路1.2(a)に格納される。同時にラッチ回路
12に信号120が与えられて、ラッチ回路12(a)
に格納されていた直前にアクセスされたセクタの物却的
セクタ番号がラッチ回路1.2(b)に格納される。Next, the operation of the above embodiment will be explained. In the above embodiment, when logical sector numbers 111 to 118 are given from the host, the R A specified by the address register 10 is
From the storage location of Mll, physical sector numbers 131 to 135 corresponding to the above logical sector numbers are stored in the latch circuit 1.2(a). At the same time, a signal 120 is applied to the latch circuit 12, and the latch circuit 12(a)
The physical sector number of the most recently accessed sector stored in latch circuit 1.2(b) is stored in latch circuit 1.2(b).
一方、ラッチ回路12(a)の出力124は、アドレス
レジスタ13の上位ビット部分に入力され、ラッチ回路
12(b)の出力125はアドレスレジスタ13の下位
ビッ1〜部分に入力される。この続けてアクセスされた
セクタの物理的セクタ番号の組がアクセスパターンであ
り、アドレスレジスタ13にセットされるアクセスパタ
ーンによって指定されるRAM14の記憶位置から、前
記アクセスパターンに対する総アクセス回数123が出
力される。総アクセス回数123は、加算器15の一方
の入力となる。加算器15のもう一方の入力は、プルア
ップされているので、加算器15からの出力126は総
アクセス回数123に1を加算した値となる。ここで、
RAM.14に書込信号121を与えると、加算器l5
からの出力126がアドレスレジスタ13で指定されて
いる記憶位置に格納される。以上の動作により、同一シ
リンダ」―のセクタ聞のアクセスパターンに対するアク
セス回数をすべてRAM1.4の中に記憶することがで
きる。On the other hand, the output 124 of the latch circuit 12(a) is input to the upper bit part of the address register 13, and the output 125 of the latch circuit 12(b) is input to the lower bit 1~ part of the address register 13. This set of physical sector numbers of continuously accessed sectors is an access pattern, and the total number of accesses 123 for the access pattern is output from the storage location of the RAM 14 specified by the access pattern set in the address register 13. Ru. The total number of accesses 123 becomes one input of the adder 15. Since the other input of the adder 15 is pulled up, the output 126 from the adder 15 is the total number of accesses 123 plus 1. here,
RAM. When the write signal 121 is applied to adder l5
The output 126 from the address register 13 is stored in the storage location specified by the address register 13. Through the above operations, all the access counts for the access pattern between sectors in the same cylinder can be stored in the RAM 1.4.
次に、セクタの再割付けを行う場合には、セクタの再割
付けが必要だと考えられるアクセスパターンを威す論理
的セクタ番号をアドレスレジスタ10に順次人力し、ア
セクスパターンをアドレスレジスタ13にセットするご
とにRAM14に対する読出信号122を与えることに
より、ホストでセクタの再割付けを行う場合に必要なア
クセスパターンに対する総アクセス回数を読み出すこと
ができる。Next, when reallocating sectors, sequentially enter logical sector numbers in the address register 10 that give access patterns that are considered necessary for sector reallocation, and set the access pattern in the address register 13. By applying a read signal 122 to the RAM 14 each time a host performs sector reallocation, it is possible to read the total number of accesses for the access pattern required when the host reallocates sectors.
この結果を用いて最適なセクタの再割付けをセクタで行
う。Using this result, optimal sector reallocation is performed in sectors.
(発明の効果)
本発明は上記実胞例から明らかなように、アクセスパタ
ーンごとにアクセス回数を保持する機構と論理的セクタ
番号と物理的セクタ番号を対応させる機構を磁気ディス
ク装置内で実現することにより、磁気ディスク装置の性
能向上のためのセクタの再割付けが可能になるという効
果を有する。(Effects of the Invention) As is clear from the above-mentioned actual examples, the present invention realizes a mechanism for retaining the number of accesses for each access pattern and a mechanism for associating logical sector numbers with physical sector numbers in a magnetic disk device. This has the effect of making it possible to reallocate sectors to improve the performance of the magnetic disk device.
第1図はセクタの再剖伺けの効果を説明するための図、
第2図は本発明の一実旅例における磁気ディスク装置の
構成を示す図である。
10. 13 ・アドレスレジスタ、1.1.14・
・RAM、12・・ラッチ回路、15 ・・加算器。Figure 1 is a diagram to explain the effect of re-anatomizing the sector.
FIG. 2 is a diagram showing the configuration of a magnetic disk device in one practical example of the present invention. 10. 13 ・Address register, 1.1.14・
・RAM, 12...Latch circuit, 15...Adder.
Claims (1)
クタ番号を記憶する手段と、現在アクセスされているセ
クタの論理的セクタ番号と直前にアクセスされていたセ
クタの論理的セクタ番号に対応する1組の物理的セクタ
番号を用いてアドレスを生成する手段と、前記アドレス
により指定される記憶位置から読み出される続いてアク
セスされたセクタのパターンに対する総アクセス回数に
1を加算したあと前記記憶位置に加算結果を記憶する手
段を備えたことを特徴とする磁気ディスク装置。means for storing a physical sector number in a storage location designated by the logical sector number; and a set corresponding to the logical sector number of the currently accessed sector and the logical sector number of the sector that was accessed immediately before. means for generating an address using a physical sector number of the address, and adding 1 to the total number of accesses for the pattern of subsequently accessed sectors read from the storage location specified by the address, and then adding the result to the storage location; A magnetic disk device comprising means for storing.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24015889A JPH03102418A (en) | 1989-09-18 | 1989-09-18 | Magnetic disk device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP24015889A JPH03102418A (en) | 1989-09-18 | 1989-09-18 | Magnetic disk device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03102418A true JPH03102418A (en) | 1991-04-26 |
Family
ID=17055358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP24015889A Pending JPH03102418A (en) | 1989-09-18 | 1989-09-18 | Magnetic disk device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03102418A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000293317A (en) * | 1996-04-08 | 2000-10-20 | Hitachi Ltd | Storage controller |
JP2003271425A (en) * | 2003-04-01 | 2003-09-26 | Hitachi Ltd | Storage control device |
-
1989
- 1989-09-18 JP JP24015889A patent/JPH03102418A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2000293317A (en) * | 1996-04-08 | 2000-10-20 | Hitachi Ltd | Storage controller |
US6446161B1 (en) | 1996-04-08 | 2002-09-03 | Hitachi, Ltd. | Apparatus and method for reallocating logical to physical disk devices using a storage controller with access frequency and sequential access ratio calculations and display |
US6708252B2 (en) | 1996-04-08 | 2004-03-16 | Hitachi, Ltd. | Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display |
US6915382B2 (en) | 1996-04-08 | 2005-07-05 | Hitachi, Ltd. | Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display |
US7069383B2 (en) | 1996-04-08 | 2006-06-27 | Hitachi, Ltd. | Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display |
US7577815B2 (en) | 1996-04-08 | 2009-08-18 | Hitachi, Ltd. | Apparatus and method for reallocating logical to physical disk devices using a storage controller, with access frequency and sequential access ratio calculations and display |
US8032733B2 (en) | 1996-04-08 | 2011-10-04 | Hitachi, Ltd. | Apparatus and method for reallocating logical to physical disk devices using a storage controller with access frequency and sequential access ratio calculations and display |
US8898383B2 (en) | 1996-04-08 | 2014-11-25 | Hitachi, Ltd. | Apparatus for reallocating logical to physical disk devices using a storage controller and method of the same |
JP2003271425A (en) * | 2003-04-01 | 2003-09-26 | Hitachi Ltd | Storage control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5555402A (en) | A disk storage subsystem for interfacing with a parallel path, a nonvolatile media and a volatile storage medium | |
US5070474A (en) | Disk emulation system | |
US5603002A (en) | Hard disk drive having buffer memory employing directory based cache controller with data replacement scheme | |
US4811280A (en) | Dual mode disk controller | |
JPH08212018A (en) | Method and apparatus for dynamic extension of raid | |
JPH07295763A (en) | Disk, array device and method of storing data | |
JP2836929B2 (en) | Rotary storage device and control method thereof | |
JPH03102418A (en) | Magnetic disk device | |
US3490006A (en) | Instruction storage and retrieval apparatus for cyclical storage means | |
JPS5851367A (en) | Control processing system for floppy disk device | |
JPH05210915A (en) | Disk device | |
JPS6331809B2 (en) | ||
JP2782842B2 (en) | Disk cache device | |
JPS61245253A (en) | Input and output control system for virtual computer | |
JPS59221810A (en) | Alternate sector device in magnetic storage device | |
JP2765448B2 (en) | Magnetic disk drive | |
JPH064221A (en) | Buffer control circuit and rotary storage device | |
JPH05173720A (en) | Disk controller, disk device and disk control system | |
JPS6013360A (en) | Storage device | |
JPS6149229A (en) | Information processor | |
JPH04349274A (en) | Disk device control system | |
JPS62140275A (en) | Alternation allotment processing system | |
JPS63251965A (en) | Disk managing system | |
JPS5897760A (en) | Magnetic disk device | |
JPH06290547A (en) | High-speed data transferring method |