JPH11232037A - Magnetic disk device having disk cache write function - Google Patents

Magnetic disk device having disk cache write function

Info

Publication number
JPH11232037A
JPH11232037A JP10028079A JP2807998A JPH11232037A JP H11232037 A JPH11232037 A JP H11232037A JP 10028079 A JP10028079 A JP 10028079A JP 2807998 A JP2807998 A JP 2807998A JP H11232037 A JPH11232037 A JP H11232037A
Authority
JP
Japan
Prior art keywords
write
data
disk
host
random 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
Application number
JP10028079A
Other languages
Japanese (ja)
Inventor
Toshio Sugiyama
敏雄 杉山
Yoshihiko Yano
良彦 矢野
Toshiyuki Nakamura
俊之 中村
Seiji Ono
誠司 大野
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP10028079A priority Critical patent/JPH11232037A/en
Publication of JPH11232037A publication Critical patent/JPH11232037A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To attain the decrease of frequency disabling write cache performance because of buffer empty wait and the improvement of performance through a method for temporarily and sequentially writing write data into a saving area provided on a disk corresponding to write commands continuously issued by random access. SOLUTION: The continuous write to positions 21, 22 and 23 on a recording medium is temporarily and sequentially performed into the saving area shown by 20. When there is no host access, the data written in the saving area are returned to the positions 21, 22 and 23. Since the write end of write data to the saving area corresponding to the write command continuously issued by the random access becomes the end of write to the host requested position, seeking from the position 21 to 22 and from 22 to 23 on the disk is not required and a buffer can be made empty speedily just for that time.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ランダムアクセス
で連続発行されるライトコマンドにおけるディスク上へ
の書き込み時間の短縮及び性能向上を目的としている。
ゆえにこれらのアクセスが発生する磁気ディスク装置に
利用される。
BACKGROUND OF THE INVENTION The present invention aims at shortening the write time on a disk and improving the performance of write commands continuously issued by random access.
Therefore, it is used for a magnetic disk device in which these accesses occur.

【0002】[0002]

【従来の技術】磁気ディスク装置では、ライトコマンド
に対してバッファへのライト要求データの受領が完了し
た時点でコマンドを終了し、後でディスク上に書き込む
といったライトキャッシュ機能を用いてライト性能を上
げている。シーケンシャルアクセス或いはランダムアク
セスで連続発生されるライトコマンドに対してライトキ
ャッシュは機能し、その処理はバッファに空きができる
までの時間、すなわちディスクへの書き込み時間がはや
い程有効となる。
2. Description of the Related Art In a magnetic disk device, a write command is completed when reception of write request data to a buffer in response to a write command is completed, and write performance is improved by using a write cache function of writing the data to a disk later. ing. The write cache functions in response to write commands that are continuously generated by sequential access or random access, and the processing becomes effective as the time until a buffer becomes available, that is, the time to write to the disk, becomes faster.

【0003】本発明では、性能の向上のためディスク上
に設けた退避エリアを用いる。特開平5−189863
号公報では、データバッファ内のデータを記録装置へ書
き込む前に、供給電源の異常(瞬断)が生じた場合、デ
ィスク上に設けた退避エリアにデータバッファ内のデー
タをセーブするという用途が異なるが退避エリアを使う
という試みが示されている。また呼び名は異なるが、特
開平6−348597号公報では、ディスク上に2次キ
ャッシュ領域を設けキャッシュから溢れたデータを退避
させるために用いている。キャッシュメモリからデータ
が溢れた場合、そのデータを2次キャッシュ領域にシー
ケンシャルライトして、キャッシュ及び2次キャッシュ
を用いて性能を向上させている。
In the present invention, a save area provided on a disk is used to improve performance. JP-A-5-189863
In Japanese Patent Application Laid-Open Publication No. H10-209, if the power supply abnormality (short interruption) occurs before the data in the data buffer is written to the recording device, the data in the data buffer is saved in a save area provided on the disk. Has attempted to use the evacuation area. In addition, although the names are different, in Japanese Patent Application Laid-Open No. Hei 6-348597, a secondary cache area is provided on the disk to save data overflowing from the cache. When data overflows from the cache memory, the data is sequentially written to the secondary cache area, and the performance is improved by using the cache and the secondary cache.

【0004】[0004]

【発明が解決しようとする課題】2.5インチディスク
等の小型ディスク装置では、ディスク装置内のキャッシ
ュとしてのバッファ容量が小さいためバッファがいっぱ
いになる頻度はホストの種類等に依存するがかなり高い
と予想される。ランダムアクセスでライトコマンドが連
続発行されディスク装置内のバッファがいっぱいになっ
た場合、ディスク上への書き込みによりバッファに空き
が生じるまで、次のライトコマンドを受け取ることがで
きない。バッファに空きができるまでの時間は、ランダ
ムアクセスにおいてコマンド間に目的位置へのヘッド移
動を伴うためシーケンシャルアクセスに比べ長くなる。
In a small disk device such as a 2.5-inch disk, the buffer capacity as a cache in the disk device is small, so the frequency with which the buffer becomes full depends on the type of the host, but is quite high. It is expected to be. When a write command is continuously issued by random access and the buffer in the disk device becomes full, the next write command cannot be received until the buffer becomes empty by writing on the disk. The time required for the buffer to become empty is longer than in sequential access because random access involves moving the head to the target position between commands.

【0005】特開平6−348597号公報におけるキ
ャッシュ制御は、キャッシュメモリがいっぱいの時追い
出されるに最もふさわしいと判断されたデータ等の退避
に2次キャッシュを使ったり、2次キャッシュでキャッ
シュヒットした場合そのデータをキャッシュに戻す等の
処理をしている。2次キャッシュに退避させるデータ
は、キャッシュからあふれたものだからいろいろなパタ
ーンがあると思われる。そのため、退避データによって
は性能が劣化することも考えられる。本発明では、バッ
ファに空きができるまでの時間が最も長いと思われるパ
ターン、すなわちランダムアクセスで連続発行されるラ
イトコマンドに対し退避エリアを用いたコマンド処理を
行う。
The cache control disclosed in Japanese Patent Application Laid-Open No. 6-348597 is based on the case where a secondary cache is used to save data or the like which is determined to be most suitable for being evicted when the cache memory is full, or when a cache hit occurs in the secondary cache. Processing such as returning the data to the cache is performed. Since the data to be saved in the secondary cache overflows from the cache, there are probably various patterns. Therefore, the performance may be degraded depending on the save data. In the present invention, command processing using the save area is performed for a pattern that is considered to have the longest time until a buffer becomes available, that is, a write command that is continuously issued by random access.

【0006】本発明は、ライトコマンドがランダムアク
セスで連続発行される時に限りデータを退避エリアにシ
ーケンシャルにライトし、目的位置へのヘッド移動とい
うオーバーヘッドを削減し性能を向上させるものであ
る。
According to the present invention, data is sequentially written to a save area only when a write command is continuously issued by random access, thereby reducing the overhead of moving a head to a target position and improving performance.

【0007】[0007]

【課題を解決するための手段】本発明実現のため、ライ
トコマンドがランダムアクセスで連続発行されたかを判
断する機能とランダムアクセスで連続発行されるライト
コマンドに対してライトデータをディスク上にシーケン
シャルにライトする機能とそのデータをディスク上に一
時的に退避させるためのエリアとホストからのアクセス
要求の無い時に退避させたデータをホスト要求位置にラ
イトする機能を設ける。ホストからのアクセス要求の無
い時にデータをホスト要求位置にライトすることは、ホ
ストに退避エリアの存在がみえないようにする効果があ
る。ホストは、この効果により実際に要求した位置にラ
イトしていないにもかかわらずディスク上へのライトが
終了したと判断するため、次のライトコマンドをよりは
やく出せるようになる。
In order to realize the present invention, a function for judging whether write commands are continuously issued by random access and write data in response to write commands continuously issued by random access are sequentially written on a disk. There is provided a function for writing, an area for temporarily saving the data on the disk, and a function for writing the saved data to the host request position when there is no access request from the host. Writing data to the host request position when there is no access request from the host has the effect of preventing the host from seeing the existence of the save area. Due to this effect, the host determines that the writing on the disk has been completed even though the writing has not been actually performed at the requested position, so that the next write command can be issued more quickly.

【0008】磁気ディスク装置に、本発明で提案した方
式を適用することにより、バッファ空き待ちでライトキ
ャッシュ機能しなくなる頻度が減少し、ランダムアクセ
スで連続発行されるライトコマンドに対する性能の向上
が可能となる。
By applying the method proposed in the present invention to a magnetic disk drive, the frequency of losing the write cache function while waiting for a free buffer space is reduced, and the performance for write commands continuously issued by random access can be improved. Become.

【0009】[0009]

【発明の実施の形態】本発明における実施例のフローチ
ャートを図1に示す。本発明の具体例としてホストから
ライトコマンドが連続で発行されたとし、図1に基づい
て説明を行う。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 shows a flowchart of an embodiment of the present invention. As a specific example of the present invention, it is assumed that write commands are continuously issued from the host, and description will be given based on FIG.

【0010】判定1では、カレントコマンドと一つ前の
コマンドの比較を行う。ここでは、ライトコマンドが連
続で発行されたと仮定するため次に判定2を実施する。
In judgment 1, the current command is compared with the previous command. Here, it is assumed that the write commands are issued successively, so that the determination 2 is performed next.

【0011】判定2では、一つ前のライトコマンドの終
了位置とカレントのライトコマンドの開始位置のシリン
ダ、ヘッド、セクタを比較しアクセスパターンがランダ
ムであるかを判定する。ランダムアクセスであった場
合、ディスク上に設けられた退避エリアに前のコマンド
とシーケンシャルになる位置にカレントコマンドを書き
込む(処理3)。この時、ホストが要求したシリンダ、
ヘッド、セクタ、ブロック数等の情報は、ディスクコン
トローラ上の退避エリア管理のためのテーブルに記憶さ
せる。テーブルに記憶された情報は、ディスクコントロ
ーラ等から集められた情報により決められたフォーマッ
トをとり、後で退避エリアのデータを読む時及びホスト
が要求した位置にデータをライトする時に参照される。
データの書き込み終了後、処理4により退避エリアのス
タート位置を示すためのポインタを更新する。退避エリ
アへのライト開始位置はこのポインタにより決定され、
ポインタは常に退避エリアへのライトがシーケンシャル
となるように動く。
In determination 2, the cylinder, head, and sector at the end position of the previous write command and the start position of the current write command are compared to determine whether the access pattern is random. If the access is a random access, the current command is written into a save area provided on the disk at a position sequential with the previous command (process 3). At this time, the cylinder requested by the host,
Information such as a head, a sector, and the number of blocks is stored in a save area management table on the disk controller. The information stored in the table takes a format determined by information collected from a disk controller or the like, and is referred to later when reading data in the save area and when writing data at a position requested by the host.
After the data writing is completed, the pointer for indicating the start position of the save area is updated by processing 4. The write start position to the evacuation area is determined by this pointer,
The pointer always moves such that writing to the save area is sequential.

【0012】次に、退避エリアに収納したデータを本来
の位置に戻す作業を行うため判定5を実施する。ホスト
アクセス中でなければ、退避エリアのデータをリードし
(処理6)退避エリアで使用するポインタを戻す(処理
7)。リードしたデータは、退避エリア管理テーブルか
ら割り出したホスト要求位置に書き込む(処理8)。最
後に、退避エリアにデータが残っていないかをみる(判
定9)。残っていれば判定5以下の処理を繰り返す。
Next, a decision 5 is made to perform the operation of returning the data stored in the evacuation area to the original position. If the host is not being accessed, the data in the save area is read (process 6), and the pointer used in the save area is returned (process 7). The read data is written to the host request position calculated from the save area management table (process 8). Finally, it is determined whether data remains in the evacuation area (determination 9). If remaining, the processing of judgment 5 and thereafter is repeated.

【0013】次に本発明の実施例を可視的に表わしたも
のを図2に示す。ホストからライトコマンドが、記録媒
体上の位置21、22、23に連続で発行される。位置
21、22、23はランダムな位置関係なので通常の動
作では、それぞれの位置へのヘッド移動とデータ書き込
みの繰り返しとなる。本発明では、20の点線で示され
る退避エリアにデータを図のような形式でシーケンシャ
ルに書き込む。ここでポインタAは、ライト開始位置を
表わし、退避エリアへのライトが常にシーケンシャルと
なる位置を示している。図においては、一つ目の退避エ
リアへのライト(位置21へのライト)終了でポインタ
Aは位置25、になる。次のライト(位置22へのライ
ト)終了でポインタAは位置26になる。この時点で退
避エリアのデータが位置22に戻されると、ポインタA
も位置25に戻る。
FIG. 2 shows a visual representation of an embodiment of the present invention. The host issues a write command continuously to the positions 21, 22, and 23 on the recording medium. Since the positions 21, 22, and 23 have a random positional relationship, in a normal operation, head movement to each position and data writing are repeated. In the present invention, data is sequentially written in the save area indicated by the dotted line 20 in the format shown in the figure. Here, the pointer A indicates a write start position, and indicates a position where the write to the save area is always sequential. In the figure, the pointer A becomes the position 25 at the end of the writing to the first evacuation area (writing to the position 21). At the end of the next write (write to position 22), pointer A becomes position 26. At this point, when the data in the save area is returned to the position 22, the pointer A
Also returns to position 25.

【0014】退避エリアに書かれたデータは、退避エリ
ア管理テーブルを参照し記録媒体上の位置を割り出しホ
ストアクセスが無い時にホスト要求位置(21、22、
23の位置)に戻される。
The data written in the save area refers to the save area management table to determine the position on the recording medium, and when there is no host access, the host request position (21, 22,
23 position).

【0015】本発明において退避エリアへの書き込みの
終了は、すなわちホスト要求位置への書き込みの終了と
同等の意味を持つ。ランダムアクセスのライトであれ
ば、目的位置へのシーク動作を経てはじめてディスク上
への書き込みが終了するが、本発明においては位置21
から位置22へのヘッドの移動と位置22から位置23
へのヘッドの移動時間分はやくバッファに空きができる
ことになり、バッファ空き待ちでライトキャッシュが機
能しなくなる頻度が減少する。
In the present invention, the end of writing to the save area has the same meaning as the end of writing to the host requested position. In the case of a random access write, the write operation on the disk is completed only after a seek operation to the target position is performed.
Movement of head from position to position 22 and position 23 from position 22
As the time required for moving the head to the buffer becomes empty, the buffer becomes empty, and the frequency at which the write cache does not function while waiting for an empty buffer is reduced.

【0016】[0016]

【発明の効果】本発明では、ランダムアクセスで連続発
行されるライトコマンドに対し、退避エリアを用いるこ
とによりバッファ空き待ちでライトキャッシュが機能し
なくなる頻度が減少し性能が向上する。
According to the present invention, the frequency at which the write cache does not function due to the buffer empty waiting is reduced by using the save area for write commands continuously issued by random access, and the performance is improved.

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

【図1】本発明を実現するフローチャートの一例。FIG. 1 is an example of a flowchart for realizing the present invention.

【図2】本発明を説明するための可視的な図。FIG. 2 is a visual diagram for explaining the present invention.

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

1,2,5,9…判断分岐、 3,4,6,7,8
…実行処理、20…退避エリア、 21−
23…記憶媒体上の位置、24−27…ポインタの位
置。
1,2,5,9 ... decision branch, 3,4,6,7,8
... Execution processing, 20 ... Evacuation area, 21-
23: position on storage medium, 24-27: position of pointer.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 大野 誠司 神奈川県小田原市国府津2880番地株式会社 日立製作所ストレージシステム事業部内 ────────────────────────────────────────────────── ─── Continued on the front page (72) Inventor Seiji Ono 2880 Kozu, Odawara-shi, Kanagawa Prefecture Hitachi, Ltd. Storage Systems Division

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ランダムアクセスで連続発行されるライト
コマンドに対して、一時的にライトデータをディスク上
に設けた退避エリアにシーケンシャルにライトする機能
を有し、かつ退避エリアにライトしたデータは、ホスト
からのアクセス要求が無い時にホスト要求位置にライト
する機能を持つことを特徴とする磁気ディスク装置。
In response to a write command continuously issued by random access, a function of temporarily writing write data to a save area provided on a disk sequentially and having a function of writing data to a save area is provided. A magnetic disk drive having a function of writing to a host request position when there is no access request from the host.
JP10028079A 1998-02-10 1998-02-10 Magnetic disk device having disk cache write function Pending JPH11232037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10028079A JPH11232037A (en) 1998-02-10 1998-02-10 Magnetic disk device having disk cache write function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10028079A JPH11232037A (en) 1998-02-10 1998-02-10 Magnetic disk device having disk cache write function

Publications (1)

Publication Number Publication Date
JPH11232037A true JPH11232037A (en) 1999-08-27

Family

ID=12238779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10028079A Pending JPH11232037A (en) 1998-02-10 1998-02-10 Magnetic disk device having disk cache write function

Country Status (1)

Country Link
JP (1) JPH11232037A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005034120A1 (en) * 2003-10-02 2005-04-14 Sony Corporation Recording/reproducing device and recording method
JP2007265600A (en) * 2006-03-27 2007-10-11 Toshiba Corp Disk drive write method
US7603517B2 (en) 2005-09-27 2009-10-13 Fujitsu Limited Disk storage device and cache control method for disk storage device
US8145179B2 (en) 2002-10-25 2012-03-27 Qualcomm Incorporated Data detection and demodulation for wireless communication systems

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145179B2 (en) 2002-10-25 2012-03-27 Qualcomm Incorporated Data detection and demodulation for wireless communication systems
WO2005034120A1 (en) * 2003-10-02 2005-04-14 Sony Corporation Recording/reproducing device and recording method
US7649822B2 (en) 2003-10-02 2010-01-19 Sony Corporation Recording and reproducing apparatus and recording method
US7603517B2 (en) 2005-09-27 2009-10-13 Fujitsu Limited Disk storage device and cache control method for disk storage device
JP2007265600A (en) * 2006-03-27 2007-10-11 Toshiba Corp Disk drive write method

Similar Documents

Publication Publication Date Title
EP0080876B1 (en) Cache control method and apparatus
US20010011324A1 (en) Method of data migration
JPH06236241A (en) Hard disk device using flash memory
US6490651B1 (en) Host-based virtual disk drive for improving the performance of a hard disk drive's input/output
JPH10149260A (en) Reading cache system for disk drive
JPH07225715A (en) Method and system for accessing data in cache
JPH11232037A (en) Magnetic disk device having disk cache write function
US5875453A (en) Apparatus for and method of information processing
JP2002342038A (en) Disk device controlling execution order of commands
JP2007011661A (en) Disk unit, and cache memory control method therefor
US6041392A (en) Disk drive device and method for controlling the same
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
US6957302B2 (en) System and method for performing write operations in a disk drive using a write stack drive
JPH11265262A (en) High speed write cache disk device
JPH05289827A (en) Disk controller
JP2704138B2 (en) Control method of magnetic disk cache
JPH064225A (en) Disk controller prereading stand-by sector
JPH06250793A (en) Data processor
JPH08286836A (en) Information recording and reproducing device
JPH0695808A (en) Magnetic disk device
JPH05274090A (en) Magnetic disk device
JPH07334311A (en) Magnetic disk device and method for transferring data to buffer memory of same
JPH0934782A (en) Information storage device
JPS59172186A (en) Cache memory control system
JP2000172448A (en) Data processor and cache processing method for data processor, and computer-readable storage medium stored with program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20041224