JP2003173294A - Disk device - Google Patents

Disk device

Info

Publication number
JP2003173294A
JP2003173294A JP2001373518A JP2001373518A JP2003173294A JP 2003173294 A JP2003173294 A JP 2003173294A JP 2001373518 A JP2001373518 A JP 2001373518A JP 2001373518 A JP2001373518 A JP 2001373518A JP 2003173294 A JP2003173294 A JP 2003173294A
Authority
JP
Japan
Prior art keywords
data
cache
disk
read
area
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
JP2001373518A
Other languages
Japanese (ja)
Inventor
Yukie Hiratsuka
幸恵 平塚
Hitoshi Ogawa
仁 小川
Manabu Nishikawa
西川  学
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 JP2001373518A priority Critical patent/JP2003173294A/en
Publication of JP2003173294A publication Critical patent/JP2003173294A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To increase the efficiency of using a cache to enhance its hit rate by controlling the way of prefetching so that data from the same area on a disk will not exist in the cache at the same time. <P>SOLUTION: When prefetching is started or continued while the range of prefetching is limited, a cache data management table is used to check whether data in the range to be prefetched exists on the cache; if data within the range to be prefetched is determined to exist on the cache as effective data, and if it is determined that the data existing on the cache will not be overwritten even when untransferred data in the range to be prefetched is transferred to the cache, then the read gate of a disk formatter is controlled for opening or closing to prevent the transferred data in the range to be prefetched from being transferred to the cache. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、先読みの際、ディ
スク上同一領域からのデータがキャッシュに同時に存在
することのないようにすることで、キャッシュ領域の使
用効率を上げ、ヒット率を高めてディスク装置の性能を
向上させるための技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention improves the efficiency of use of the cache area and the hit rate by preventing data from the same area on the disk from existing in the cache at the same time during pre-reading. The present invention relates to a technique for improving the performance of a disk device.

【0002】[0002]

【従来の技術】ハードディスクではホストよりリード要
求を受けると、一旦ディスクからキャッシュにリードデ
ータを蓄積し、キャッシュより該リード要求データをホ
ストに転送する。但し、リード要求データがキャッシュ
上に転送済みの場合(キャッシュヒット)は、ディスク
にアクセスすることなく、キャッシュより該要求データ
をホストに転送する。この場合、ディスクへのアクセス
が不要となるため、ディスク上ホスト要求データへのア
クセス時間とディスクからキャッシュにホスト要求デー
タを転送するのにかかる時間の両方を省くことができ
る。そのためヒット率を上げることでディスク装置の性
能を大幅に向上させることができる。
2. Description of the Related Art When a hard disk receives a read request from a host, it temporarily stores read data from the disk in the cache and transfers the read request data from the cache to the host. However, if the read request data has been transferred to the cache (cache hit), the request data is transferred from the cache to the host without accessing the disk. In this case, since access to the disk is unnecessary, it is possible to save both the access time to the host request data on the disk and the time required to transfer the host request data from the disk to the cache. Therefore, the performance of the disk device can be greatly improved by increasing the hit rate.

【0003】キャッシュのヒット率を向上させるために
は、ホスト要求データ以外のデータをあらかじめディス
クからキャッシュに転送しておくこと(以下先読み)が
必要である。先読み方式としてはこれまで、先読み中の
ヘッド位置とホスト要求データまでの距離がSectors Pe
r Track以内であるときにホスト要求データまで先読み
を継続する方式や、ホストのオーバヘッド時間や回転待
ち時間を先読みに充てるという方式が採用されてきた。
回転待ちを先読みに充てるディスク装置には例えば、
「磁気ディスク装置」(特開平6−95810)がある。
In order to improve the cache hit rate, it is necessary to transfer data other than the host request data from the disk to the cache in advance (hereinafter, prefetch). Until now, the distance between the head position during pre-reading and the host request data has been the sector read-out method.
A method has been adopted in which the prefetching is continued up to the host request data when it is within r Track, and the method of devoting the overhead time and rotation waiting time of the host to the prefetching.
For a disk device that dedicates waiting for rotation to prefetch, for example,
There is a "magnetic disk device" (JP-A-6-95810).

【0004】[0004]

【発明が解決しようとする課題】これまでの先読み方式
では、現在の先読み位置とホスト要求データとの位置関
係や、先読みに充てられる時間でのみ先読み範囲を決め
ていた。そのため、アクセスパタンによっては、ディス
ク上同一領域から読み込まれたデータがキャッシュ上に
複数存在することになり、キャッシュの使用効率が低下
するという問題があった。
In the previous read-ahead method, the read-ahead range is determined only by the positional relationship between the current read-ahead position and the host request data and the time allocated for the read-ahead. Therefore, depending on the access pattern, a plurality of data read from the same area on the disk may exist in the cache, which causes a problem that the cache usage efficiency decreases.

【0005】また、記録密度の向上によりトラック当た
りのセクタ数が多くなり一定時間内にキャッシュに転送
できるデータ量が増加してく一方でキャッシュ容量は増
えないため、先読み量に対しキャッシュの容量が不足す
る傾向となっている。
Further, since the number of sectors per track increases due to the improvement in recording density and the amount of data that can be transferred to the cache increases within a fixed time, the cache capacity does not increase, so the cache capacity is insufficient with respect to the read-ahead amount. Tend to do.

【0006】そこで本発明は、ディスク上同一領域から
のデータがキャッシュに同時に存在することのなうよう
先読みの仕方を制御することで、キャッシュの使用効率
を上げヒット率の向上を図る。また、本発明は、ホスト
要求データがキャッシュ上に分散して存在する場合に、
それら分散しているホスト要求データを連結してホスト
に転送できるようにすることで、キャッシュからホスト
へのデータ転送効率の向上を図る。
In view of the above, the present invention controls the prefetching method so that data from the same area on the disk will not exist in the cache at the same time, thereby improving the efficiency of use of the cache and the hit rate. In addition, the present invention, when the host request data is distributed in the cache,
By connecting the distributed host request data so that they can be transferred to the host, the efficiency of data transfer from the cache to the host is improved.

【0007】[0007]

【課題を解決するための手段】上記課題を達成するため
に本発明のディスク装置は、先読み範囲を限定して先読
みを開始または継続する場合に、ディスク上同一領域か
らのデータがキャッシュに同時に存在することのないよ
う先読みの仕方を制御している。
In order to achieve the above object, in the disk device of the present invention, when the read-ahead is limited and the read-ahead is started or continued, data from the same area on the disk is simultaneously present in the cache. The way to look ahead is controlled so that nothing happens.

【0008】すなわち、本発明は、第1の様態として、
ディスクとディスクにアクセスするヘッドと、ディスク
から読み込んだデータを一時的に保存するキャッシュ
と、キャッシュ上のデータを管理するためのキャッシュ
データ管理テーブルと、キャッシュを介したデータ転送
を制御するキャッシュ制御部と、ディスクから読み込ん
だアナログデータをディジタルデータに変換する、ある
いはホストからのディジタルデータをアナログデータに
変換する信号処理部と、ゲートの開閉を行いキャッシュ
から信号処理部へのデータ転送、あるいは信号処理部か
らキャッシュへのデータ転送を制御するディスクフォー
マッタを実装するディスク装置であって、先読み範囲を
限定して先読みを開始または継続する場合に、キャッシ
ュデータ管理テーブルを用いて先読み対象範囲のデータ
がキャッシュ上に存在するかを検索し、該先読み対象範
囲の少なくとも一部分のデータが有効データとしてキャ
ッシュ上に存在すると判断され、さらに先読み対象範囲
内の未転送データをキャッシュに転送しても、該転送済
みのデータが上書きされないと判断されたされた場合に
は、ディスクフォーマッタのリード用ゲートの開閉を制
御して該先読み対象範囲内の該転送済みデータをキャッ
シュに転送しないようにする手段をもつことを特徴とす
るディスク装置を提供している。
[0008] That is, the present invention, as a first aspect,
A disk, a head that accesses the disk, a cache that temporarily stores the data read from the disk, a cache data management table that manages the data on the cache, and a cache control unit that controls the data transfer via the cache. And a signal processing unit that converts analog data read from a disk into digital data, or that converts digital data from a host into analog data, and the gate is opened and closed to transfer data from the cache to the signal processing unit or to perform signal processing. A disk device that implements a disk formatter that controls the transfer of data from the cache to the cache, and when the prefetch is started or continued by limiting the prefetch range, the data in the prefetch target range is cached using the cache data management table. Existing on If it is determined that at least a part of the data in the prefetch target range exists in the cache as valid data, and the untransferred data in the prefetch target range is transferred to the cache, the transferred data still remains. When it is determined that the data is not overwritten, the device further comprises means for controlling the opening / closing of the read gate of the disk formatter so as not to transfer the transferred data within the prefetch target range to the cache. We provide disk devices.

【0009】また、該先読み対象範囲内のキャッシュに
未転送のデータをキャッシュに転送すると該キャッシュ
に存在するデータが上書きされると判断された場合に
は、ディスクフォーマッタのリード用ゲートの開閉を制
御して、該キャッシュに存在するデータの内上書きされ
ない領域のデータのみをキャッシュに転送しないように
する手段をもつことを特徴とするディスク装置を提供し
ている。
Further, when it is determined that the data existing in the cache is overwritten when the untransferred data is transferred to the cache within the prefetch target range, the opening / closing of the read gate of the disk formatter is controlled. Then, there is provided a disk device having means for preventing only data in an area which is not overwritten among data existing in the cache from being transferred to the cache.

【0010】また、上記ディスク装置は、先読み継続中
のヘッド位置と、ホスト要求データまでの距離がSector
s Per Track以内にあり、先読み継続中のヘッド位置か
らホスト要求データのアドレスまで先読みを継続する場
合に、ディスク上同一領域からのデータがキャッシュに
同時に存在することのないよう先読みの仕方を制御して
いる。
Further, in the above-mentioned disk device, the distance between the head position during pre-reading and the host request data is Sector.
Within the s Per Track, when pre-reading is continued from the head position during pre-reading to the address of the host request data, the pre-reading method is controlled so that data from the same area on the disk will not exist in the cache at the same time. ing.

【0011】また、上記ディスク装置は、回転待ちを先
読みに充て、かつ回転待ちをホスト要求データの先行デ
ータの先読みに充てる場合に、ディスク上同一領域から
のデータがキャッシュに同時に存在することのないよう
先読みの仕方を制御している。また、上記ディスク装置
は、先読み中リードコマンドを受領し、該次のコマンド
において新たに先読みを開始する場合でかつ、発生する
回転待ちを先行データの先読みに充て、さらに、先行デ
ータの先読みに回転待ち時間を充てても尚回転待ちが発
生すると判断される場合該回転待ちを後続データの先読
みに充てる場合に、ディスク上同一領域からのデータが
キャッシュに同時に存在することのないよう先読みの仕
方を制御している。
Further, in the above disk device, when the rotation waiting is used for the prefetching and the rotation waiting is used for the prefetching of the preceding data of the host request data, the data from the same area on the disk does not exist in the cache at the same time. It controls how to look ahead. Further, the disk device receives a read-ahead command during pre-reading, and when the pre-reading is newly started in the next command, the rotation wait that occurs is used for the pre-reading of the preceding data, and further the pre-reading of the preceding data is performed. When it is judged that the rotation wait still occurs even if the waiting time is allotted, when the rotation wait is allotted to the read-ahead of the subsequent data, the read-ahead method should be adopted so that the data from the same area on the disk may not exist in the cache at the same time. Have control.

【0012】また、本発明のディスク装置は、第2の様
態としてキャッシュ上データ管理テーブルを使用してヒ
ット検索した結果フルヒットしなかった場合、一部分ヒ
ットする(ハーフヒット)領域をすべて検索し、該領域
内にホスト要求データのすべてが存在する場合にはフル
ヒットとみなし、キャッシュ上に分散しているホスト要
求データをホスト要求順に呼び出してホストに転送でき
るようにする手段をもつことを特徴とするディスク装置
を提供している。
As a second mode, the disk device of the present invention searches for all partially hit (half hit) areas when a full hit does not occur as a result of hit search using the on-cache data management table. When all of the host request data exists in the area, it is considered as a full hit, and means for calling the host request data distributed on the cache in the host request order and transferring it to the host is provided. We provide a disk device that does.

【0013】[0013]

【発明の実施の形態】以下、本発明の実施例を図面によ
り説明する。図1は本発明を適用したディスク装置の例
である。本発明を適用するディスク装置は、先読み制御
プログラムを実装するプログラムROM101、ROM上の制
御プログラムを読み込み実行する制御プロセッサ10
2、ホストとキャッシュ及びキャッシュとディスクの間
のデータ転送を制御するキャッシュ制御部103、リー
ド要求データ/ライト要求データを一時的に書き込むキ
ャッシュ104(尚、キャッシュ104には、ディスク
から読み込んだデータについての情報を管理するキャッ
シュデータ管理テーブル105を備える)、データの読
み書きをする際に指定された位置にヘッドを移動するた
めの制御を行うサーボ制御部106、サーボ制御部10
6の指示に従って、ヘッドを移動するボイスコイルモー
タ(VCM)107、ディスクの回転を制御するモータド
ライバ108、ヘッドから読み込んだ磁気信号から指定
されたヘッドの信号だけを選択するセレクタ109、セ
レクタから送られたアナログデータをディジタルデータ
に変換するまたはキャッシュ制御部103から送られた
ディジタルデータをアナログデータに変換する信号処理
部110、リード用ゲートを開閉することにより、信号
処理部110より送られたリードデータをキャッシュ1
04に転送し、また、ライト用ゲートを開閉することに
より、キャッシュ104より転送されるライトデータを
信号処理部110に転送するディスクフォーマッタ11
1、コマンドやデータをやり取りするインタフェース制
御部112よりなる。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows an example of a disk device to which the present invention is applied. A disk device to which the present invention is applied includes a program ROM 101 that implements a read-ahead control program, and a control processor 10 that reads and executes a control program on the ROM.
2. A cache control unit 103 that controls data transfer between the host and the cache and between the cache and the disk, a cache 104 that temporarily writes read request data / write request data (the cache 104 stores data read from the disk). A cache data management table 105 for managing information of the above), a servo control unit 106 and a servo control unit 10 for performing control for moving the head to a designated position when reading and writing data.
According to the instruction of 6, the voice coil motor (VCM) 107 for moving the head, the motor driver 108 for controlling the rotation of the disk, the selector 109 for selecting only the signal of the specified head from the magnetic signals read from the head, and the signal sent from the selector. The signal processing unit 110 for converting the received analog data into digital data or converting the digital data sent from the cache control unit 103 into analog data, and the read gate is opened and closed to read the signal sent from the signal processing unit 110. Cache data 1
Disk formatter 11 that transfers the write data transferred from the cache 104 to the signal processing unit 110 by opening and closing the write gate.
1. An interface control unit 112 for exchanging commands and data.

【0014】次にリードコマンド処理における動作を、
図1の構成に基づき説明する。ホストは、ディスクに接
続されたバス(ホストインタフェース113)を介して
ディスクに対しリードコマンドデータを送信する。 図
2に、リード処理の際に発行されるコマンドの構成を示
す。リードコマンドは、リードコマンドを示すコード2
1、リードするデータの論理ブロックアドレス(以下、
LBA)22、リード要求データのサイズを示すホスト要
求データ転送数23よりなる。
Next, the operation in the read command processing will be described.
Description will be given based on the configuration of FIG. The host sends read command data to the disk via the bus (host interface 113) connected to the disk. FIG. 2 shows the structure of a command issued during the read process. The read command is code 2 indicating the read command
1. Logical block address of the data to read (hereinafter,
LBA) 22 and the host request data transfer number 23 indicating the size of the read request data.

【0015】ディスク装置はリードコマンドを受け取る
と、キャッシュ104上にあるキャッシュデータ管理テ
ーブル105を用いて、要求されたデータがキャッシュ
104上に存在するか検索する。図3にキャッシュデー
タ管理テーブル105の構成を示す。キャッシュデータ
管理テーブル105はキャッシュ104に書き込んだデ
ータの開始LBA31、キャッシュメモリ上開始アドレス
32、データサイズ33より成る。ヒット検索の際に
は、キャッシュデータ管理テーブル105を用いて、ホ
スト要求データのすべてがキャッシュ104上に存在す
るかを調べ、存在する場合は、該キャッシュ上データの
キャッシュメモリ上開始アドレス32からホスト要求デ
ータのキャッシュ104上での開始アドレスを算出し、
該開始アドレスからホスト要求データを読み出しホスト
に転送する。
When the disk device receives the read command, it uses the cache data management table 105 on the cache 104 to search whether the requested data exists on the cache 104. FIG. 3 shows the configuration of the cache data management table 105. The cache data management table 105 includes a start LBA 31 of data written in the cache 104, a start address 32 in the cache memory, and a data size 33. When performing a hit search, the cache data management table 105 is used to check whether or not all the host request data exists in the cache 104, and if there is, the host starts from the cache memory start address 32 of the data in the cache. Calculate the start address of the request data on the cache 104,
The host request data is read from the start address and transferred to the host.

【0016】キャッシュ104上にホスト要求データが
存在しない場合には、プログラムROM101に実装され
ている論理アドレス変換プログラムを用いてLBAをディ
スク上での配置を示す物理アドレスに変換し、次にサー
ボ制御部106を用いて物理アドレスの位置を検出し、
ディスクフォーマッタ111のリード用ゲートの開閉を
制御して信号制御部110から送られてきたデータをキ
ャッシュ制御部103に転送する。キャッシュ制御部1
03は、転送されたデータをキャッシュ104に書き込
み、さらにキャッシュ104に書き込んだデータについ
ての情報をキャッシュデータ管理テーブル105に登録
する。それからキャッシュ104よりホストにホスト要
求データを転送する。
When the host request data does not exist in the cache 104, the logical address conversion program installed in the program ROM 101 is used to convert the LBA into a physical address indicating the arrangement on the disk, and then the servo control is performed. The position of the physical address is detected using the unit 106,
The opening and closing of the read gate of the disk formatter 111 is controlled to transfer the data sent from the signal controller 110 to the cache controller 103. Cache control unit 1
03 writes the transferred data in the cache 104, and further registers information about the data written in the cache 104 in the cache data management table 105. Then, the host request data is transferred from the cache 104 to the host.

【0017】キャッシュデータ管理テーブル105に登
録されたリードデータは、転送元であるディスク上の領
域がライトにより更新された場合、キャッシュデータ管
理テーブル105より削除される。そのためキャッシュ
データ管理テーブル105にはキャッシュ104に読み
込まれたリードデータの内有効なリードデータのみが登
録されている。
The read data registered in the cache data management table 105 is deleted from the cache data management table 105 when the area on the disk as the transfer source is updated by writing. Therefore, in the cache data management table 105, only valid read data among the read data read in the cache 104 is registered.

【0018】図4に先読み開始ないし継続時に先読み対
象範囲を限定できる場合に、ディスク上同一領域からの
データがキャッシュ104に同時に存在することのない
よう先読みの仕方を制御する方式のフローを示す。
FIG. 4 shows a flow of a method of controlling the prefetching method so that data from the same area on the disk does not exist in the cache 104 at the same time when the prefetching target range can be limited at the time of starting or continuing the prefetching.

【0019】先読み開始ないし先読み継続時に先読み対
象範囲を決定(ステップ41)すると、本発明によるデ
ィスク装置はキャッシュデータ管理テーブル105を用
いて該先読み対象範囲内のデータがキャッシュ104に
存在する(キャッシュに転送済みである)か調べる(ス
テップ42)。先読み対象範囲はLBAとデータサイズで
示すことができまた、キャッシュデータ管理テーブル1
05にはキャッシュ104に存在するデータの転送元で
あるディスク領域の開始LBA31とデータサイズ33が
登録されているので、先読み対象範囲内のデータが、キ
ャッシュ104に存在するか判断できる。
When the pre-reading target range is determined (step 41) when the pre-reading is started or continued, the disk device according to the present invention uses the cache data management table 105 to store the data within the pre-reading target range in the cache 104 (in the cache). It is checked whether it has been transferred (step 42). The prefetch target range can be indicated by the LBA and data size. In addition, the cache data management table 1
Since the start LBA 31 and the data size 33 of the disk area which is the transfer source of the data existing in the cache 104 are registered in 05, it is possible to judge whether the data within the prefetch target range exists in the cache 104.

【0020】該先読み対象範囲内のデータがキャッシュ
104に存在すれば(ステップ43)、該先読み対象範
囲内のデータでキャッシュ104に存在するデータの総
量を求め、先読み対象範囲内のデータの内、未転送のデ
ータの総量を求める(ステップ44)。そして該未転送
データをすべてキャッシュ104に書き込んだ場合、該
キャッシュ上データが上書きされるか調べる(ステップ
45)。該キャッシュ上データが上書きされると判断さ
れた場合は、該データをキャッシュ104に存在しない
データ(キャッシュに未転送のデータ)として扱い(ス
テップ46)、ステップ44〜45を繰り返す。先読み
対象領域内の未転送データをすべてキャッシュ104に
書き込んでも該キャッシュ上データが上書きされないと
判断されたら、該キャッシュ上データの転送元である領
域の開始アドレスとデータサイズをディスクフォーマッ
タ111に設定し(ステップ47)、先読みを開始する
(ステップ48)。
If the data within the prefetch target range exists in the cache 104 (step 43), the total amount of data existing in the cache 104 among the data within the prefetch target range is calculated, and among the data within the prefetch target range, The total amount of untransferred data is calculated (step 44). When all the untransferred data are written in the cache 104, it is checked whether the data in the cache is overwritten (step 45). If it is determined that the data on the cache is overwritten, the data is treated as data that does not exist in the cache 104 (data that has not been transferred to the cache) (step 46), and steps 44 to 45 are repeated. If it is determined that the data on the cache is not overwritten even if all the untransferred data in the prefetch target area is written to the cache 104, the start address and the data size of the area that is the transfer source of the data on the cache are set in the disk formatter 111. (Step 47), prefetching is started (step 48).

【0021】また、該先読み対象範囲内のデータがキャ
ッシュ104に存在しなければ(ステップ43)、すぐ
に先読みを開始する(ステップ48)。先読み中、ディ
スクフォーマッタ111は、あらかじめ設定されている
該転送済みデータの転送元領域の開始アドレスとサイズ
にしたがってリード用ゲートを開閉し、先読み対象範囲
内の未転送データのみをキャッシュ104に転送する。
If data within the prefetch target range does not exist in the cache 104 (step 43), prefetch is immediately started (step 48). During pre-reading, the disk formatter 111 opens and closes the read gate according to the preset start address and size of the transfer source area of the transferred data, and transfers only the untransferred data within the pre-read target range to the cache 104. .

【0022】図5は、先読み中のヘッド位置X51と先読
み中に受領したリードコマンドのホスト要求データの開
始アドレスY52との間の距離がSectors Per Track以内
の場合であり、該ホスト要求データの開始アドレスY5
2まで先読みを継続する場合の例を示している。この場
合、先読み対象範囲53はX51からY52までの範囲と
なる。尚、キャッシュデータ管理テーブル105を検索
することにより領域B54のデータはすでにキャッシュ
104に転送されている(領域(B)57)ことがわか
っているものとする。また、上記ステップ41〜48ま
での処理を通して、領域D55と領域E56のデータをキ
ャッシュ104に読み込んでも領域B54のデータ(B)
57は上書きされないことがわかっているものとする。
本発明によるディスク装置は、領域B54の開始アドレ
スとサイズをディスクフォーマッタ111に設定すると
先読みを開始する。ディスクフォーマッタ111は、領
域B54の開始アドレスを識別すると、あらかじめ設定
されたデータサイズ分リード用ゲートをクローズしキャ
ッシュ104へのデータ転送を停止する。
FIG. 5 shows the case where the distance between the head position X51 during pre-reading and the start address Y52 of the host request data of the read command received during pre-reading is within Sectors Per Track. Address Y5
An example in which the prefetching is continued up to 2 is shown. In this case, the prefetch target range 53 is the range from X51 to Y52. It is assumed that it is known by searching the cache data management table 105 that the data in the area B54 has already been transferred to the cache 104 (area (B) 57). In addition, even if the data of the area D55 and the area E56 are read into the cache 104 through the processing of the steps 41 to 48, the data of the area B54 (B)
It is assumed that 57 is known not to be overwritten.
The disk device according to the present invention starts prefetching when the start address and size of the area B54 are set in the disk formatter 111. When the disk formatter 111 identifies the start address of the area B54, it closes the read gate for the preset data size and stops the data transfer to the cache 104.

【0023】そしてその後、再度リード用ゲートをオー
プンしてキャッシュ104へのデータ転送を再開する。
この一連の先読み処理により、最初に設定した先読み対
象範囲の内、領域B54を除く、前半の領域D55と後半
の領域E56のデータのみが、キャッシュ104に転送
されることになる。
After that, the read gate is opened again and the data transfer to the cache 104 is restarted.
Through this series of prefetch processing, only the data of the first half area D55 and the second half area E56 of the initially set prefetch target range, excluding the area B54, is transferred to the cache 104.

【0024】また図6に回転待ちを先読みに充てかつ先
行データの先読みに充てる場合で、先行データ先読み対
象範囲内のデータがキャッシュ104に転送済みである
場合の先読みの例を示す。尚、先行データ先読み対象範
囲61の内、領域A62のデータはキャッシュデータ管
理テーブル105を検索することにより、キャッシュ1
04に転送済みであることがわかっており、さらにステ
ップ41〜48までの処理を通して、領域A62のデー
タ(A)67は、領域D64と領域E65のデータをキャ
ッシュ104に読み込んでも上書きされないことがわか
っているものとする。また、シーク後の予測ヘッド位置
63は、リードコマンド受領直後のヘッド位置と、ホス
ト要求データの開始アドレスにより算出できる(回転待
ちを先行データの先読みに充てる方法は本特許での請求
範囲ではないので説明を省く)ため、先読みを開始する
前に、先行データの先読み対象範囲を求めることができ
る。
Further, FIG. 6 shows an example of pre-reading when the rotation wait is used for pre-reading and the pre-reading of the preceding data, and the data within the pre-reading target range has been transferred to the cache 104. The data in the area A62 in the preceding data prefetch target range 61 is searched for in the cache data management table 105,
It is known that the data has been transferred to 04, and through the processing of steps 41 to 48, the data (A) 67 of the area A62 is not overwritten even if the data of the area D64 and the area E65 are read into the cache 104. It is assumed that Further, the predicted head position 63 after seek can be calculated from the head position immediately after receiving the read command and the start address of the host request data (the method of devoting the waiting for rotation to the prefetch of the preceding data is not within the scope of the present invention). For the sake of omitting the description), the prefetch target range of the preceding data can be obtained before starting the prefetch.

【0025】本発明によるディスク装置は、領域A62
の開始アドレスとデータサイズをディスクフォーマッタ
111に設定すると先読みを開始する。ディスクフォー
マッタ111は、領域A62の開始アドレスを識別する
と、設定されているデータサイズ分リード用ゲートをク
ローズしてキャッシュ104へのデータ転送を停止す
る。そしてその後、再度リード用ゲートを開いてキャッ
シュ104へのデータ転送を再開する。この一連の先読
み処理により、最初に設定した先読み対象範囲61の
内、領域A62を除く、領域D64と領域E65のデータ
のみが、キャッシュ104に転送されることになる。
The disk device according to the present invention has an area A62.
When the start address and the data size of are set in the disk formatter 111, prefetching is started. When the disk formatter 111 identifies the start address of the area A62, the disk formatter 111 closes the read gate for the set data size and stops the data transfer to the cache 104. Then, after that, the read gate is opened again to restart the data transfer to the cache 104. Through this series of pre-reading processing, only the data in the areas D64 and E65 in the initially set pre-reading target range 61 excluding the area A62 is transferred to the cache 104.

【0026】また、図7に、先読み中にリードコマンド
を受領し該先読みを停止し、該受領リードコマンドにお
いて新たに先読みを開始する場合でかつ、発生する回転
待ち時間を先行データの先読み充て、さらに先行データ
の先読みに充てても尚回転待ちが生じると判断される場
合には該回転待ち時間を停止する先読みの延長に充てる
先読み制御方式を採用した場合において、先行データの
先読み対象範囲と後続データの先読み対象範囲の少なく
とも一部分のデータが有効データとして既にキャッシュ
104に存在する場合の例を示す。
Further, in FIG. 7, when the read command is received during the pre-reading, the pre-reading is stopped, and the pre-reading is newly started in the received read command, the rotation waiting time that occurs is pre-readed for the preceding data. Further, when it is determined that the waiting for rotation still occurs even when the prefetch of the preceding data is determined, when the prefetch control method that is used for extending the prefetch to stop the rotation waiting time is adopted, the prefetch target range of the preceding data and the subsequent An example is shown in which at least a part of the prefetch target range of data already exists in the cache 104 as valid data.

【0027】尚、キャッシュデータ管理テーブル105
を検索することにより後続データ先読み対象範囲701
では、領域A702のデータが、また、先行データ先読
み対象範囲703では、領域C704のデータがキャッ
シュ104に転送済みであることがわかっているものと
する。またステップ41〜48までの処理を通して、領
域F707、G705、H708、I706のデータをすべ
てキャッシュ104に転送しても、キャッシュ104上
の領域A702と領域C704のデータ(A)709、
(C)710は上書きされないことがわかっているもの
とする。
The cache data management table 105
By searching for the following data prefetch target range 701
Then, it is assumed that it is known that the data in the area A 702 and the data in the area C 704 in the preceding data prefetch target range 703 have already been transferred to the cache 104. Further, even if all the data in the areas F707, G705, H708, and I706 are transferred to the cache 104 through the processing of steps 41 to 48, the data (A) 709 in the area A702 and the area C704 on the cache 104,
(C) It is assumed that 710 is known not to be overwritten.

【0028】本発明によるディスク装置は、領域A70
2と領域C704の開始アドレスとサイズをA、Cの順に
ディスクフォーマッタ111に設定すると先読みを開始
する。ディスクフォーマッタ111は、領域A702の
開始アドレスを識別すると、リード用ゲートをクローズ
し、設定されているデータサイズ分キャッシュ104へ
のデータ転送を停止する。そしてその後、再度リード用
ゲートを開き、領域G705のデータを転送する。領域G
705のデータの転送が終了すると、シークを行い、シ
ーク後はトラックの先頭から先読みを開始する。
The disk device according to the present invention has an area A70.
When the start address and size of area 2 and area C 704 are set in the disk formatter 111 in the order of A and C, prefetching is started. When the disk formatter 111 identifies the start address of the area A 702, it closes the read gate and stops the data transfer to the cache 104 for the set data size. Then, after that, the read gate is opened again to transfer the data in the area G705. Area G
When the transfer of the data 705 is completed, a seek is performed, and after the seek, prefetching is started from the beginning of the track.

【0029】さらにディスクフォーマッタ111は、領
域C704の開始アドレスを識別すると、リード用ゲー
トをクローズし、データサイズ分キャッシュ104への
データ転送を停止する。そしてその後、再度リードゲー
トを開いて領域I706のデータをキャッシュ104に
転送する。
When the disk formatter 111 identifies the start address of the area C704, the disk formatter 111 closes the read gate and stops the data transfer to the cache 104 for the data size. Then, after that, the read gate is opened again to transfer the data in the area I706 to the cache 104.

【0030】上記一連の先読み処理により、後続データ
先読み対象範囲701と先行データの先読み対象範囲7
03の内、領域A702と領域C704を除く領域F70
7の後半部分、領域G705、領域H708及び領域I7
06のデータがキャッシュ104に転送されることにな
る。
By the above series of pre-reading processing, the following data pre-reading target range 701 and the preceding data pre-reading target range 7
Area F70 of Area 03 except Area A702 and Area C704
Second half of 7, area G705, area H708 and area I7
The data of 06 will be transferred to the cache 104.

【0031】また本発明によるディスク装置は、ホスト
要求データがキャッシュ104上に分散して存在する場
合、それら分散しているホスト要求データを連結してホ
ストに転送できるようにしている。
Further, in the disk device according to the present invention, when the host request data is distributed in the cache 104, the distributed host request data can be linked and transferred to the host.

【0032】図8に、ホスト要求データがキャッシュ1
04上に分散している場合、該分散データにリンクをは
ることで、ホスト要求データをキャッシュ104より転
送可能とする方式のフローを示す。ホストからリード要
求を受けると、キャッシュデータ管理テーブル105を
用いて、リード要求データがキャッシュ104上に存在
するか調べる(ステップ81)。該ホスト要求データが
キャッシュ104上の1つの連続データ領域内にすべて
存在する(以下フルヒット)か調べ(ステップ82)、
フルヒットすれば該連続領域よりホストに該リード要求
データを転送する(ステップ83)。
In FIG. 8, the host request data is cache 1
In the case of being distributed over 04, the flow of the method that enables the host request data to be transferred from the cache 104 by linking the distributed data is shown. When receiving a read request from the host, the cache data management table 105 is used to check whether the read request data exists in the cache 104 (step 81). It is checked whether the host request data are all present in one continuous data area on the cache 104 (hereinafter referred to as a full hit) (step 82),
If a full hit occurs, the read request data is transferred from the continuous area to the host (step 83).

【0033】またキャッシュデータ管理テーブル105
を用いて、該ホスト要求データがキャッシュ104上の
1つの連続データ領域内に部分的に存在する(以下ハー
フヒット)か調べ(ステップ84)、ハーフヒットする
場合には、すべてのハーフヒット領域を対象にして、該
領域内にホスト要求データのすべてが含まれているかを
調べ(ステップ85)、該領域内にホスト要求データの
すべてが含まれていれば、ハーフヒットした各領域内の
ホスト要求データのアドレス情報をLBA順にキャッシュ
制御部103のレジスタに設定する(ステップ86)。
それから、キャッシュ制御部103のレジスタに設定さ
れた順番通りに、ホスト要求データをキャッシュ104
より読み出してホストに転送する(ステップ87)。
Further, the cache data management table 105
Is used to check whether the host request data partially exists in one continuous data area on the cache 104 (hereinafter referred to as a half hit) (step 84). If a half hit occurs, all half hit areas are checked. As a target, it is checked whether or not all the host request data is included in the area (step 85). If all the host request data is included in the area, the host request in each half-hit area is included. The address information of the data is set in the register of the cache control unit 103 in the order of LBA (step 86).
Then, the host request data is cached 104 in the order set in the register of the cache control unit 103.
It is read out and transferred to the host (step 87).

【0034】またキャッシュデータ管理テーブル105
を用いて、ハーフヒットするかどうか調べ(ステップ8
4)、該ハーフヒットする領域がない場合またはハーフ
ヒットする領域があっても該領域内にホスト要求データ
のすべてが含まれていない場合には、ホスト要求データ
をディスクより読み出してキャッシュ104に転送し、
キャッシュ104よりホスト要求データをホストに転送
する(ステップ88)。図9にキャッシュ104上にホ
スト要求データのすべてがあり、1つの連続データ領域
内にホスト要求データのすべてが含まれていない場合の
例を示す。図9の領域(A)91と領域(D)93が、ホ
スト要求データにハーフヒットする領域である。領域
(A)91内のホスト要求データは領域(a)92、領域
(D)93内のホスト要求データは領域(d)94であ
る。尚、(a)92の転送元最終アドレスと(d)94の転送
元開始アドレスは連続しているものとする。
Further, the cache data management table 105
To see if a half-hit occurs (step 8
4) If there is no half-hit area, or if there is a half-hit area but all the host-requested data is not included in the area, the host-requested data is read from the disk and transferred to the cache 104. Then
The host request data is transferred from the cache 104 to the host (step 88). FIG. 9 shows an example in the case where all the host request data are stored in the cache 104 and all the host request data are not included in one continuous data area. The area (A) 91 and the area (D) 93 in FIG. 9 are areas where the host request data is half-hit. The host request data in the area (A) 91 is the area (a) 92, and the host request data in the area (D) 93 is the area (d) 94. It is assumed that the transfer source end address of (a) 92 and the transfer source start address of (d) 94 are continuous.

【0035】また図10にキャッシュ制御部103内の
レジスタの構成を示す。レジスタには、データの読み出
し順にデータを設定するようになっており、キャッシュ
上データ領域の開始アドレス1001と終了アドレス1
003及び、データ領域内でのポインタアドレス100
2が設定できるようになっている。
FIG. 10 shows the configuration of registers in the cache control unit 103. Data is set in the register in the order of reading data, and the start address 1001 and end address 1 of the data area on the cache are set.
003 and pointer address 100 in the data area
2 can be set.

【0036】キャッシュ制御部103は、ハーフヒット
領域(A)91と(D)93内のホスト要求データ(a)
92と(d)94を識別し、該ホスト要求データのキャ
ッシュ領域情報(開始アドレス1001、キャッシュポ
インタアドレス1002、終了アドレス1003)を、
(a)、(d)の順にレジスタに設定する。次にキャッシ
ュ制御部103は、レジスタに設定された順番通りに領
域(a)92のデータをキャッシュポインタアドレスよ
り読み出してホストに転送した後、領域(d)94のデ
ータをキャッシュポインタアドレスより読み出してホス
トに転送する。
The cache control unit 103 uses the host request data (a) in the half hit areas (A) 91 and (D) 93.
92 and (d) 94 are identified, and the cache area information (start address 1001, cache pointer address 1002, end address 1003) of the host request data is set to
Set the registers in the order of (a) and (d). Next, the cache control unit 103 reads the data in the area (a) 92 from the cache pointer address and transfers it to the host in the order set in the register, and then reads the data in the area (d) 94 from the cache pointer address. Transfer to host.

【0037】[0037]

【発明の効果】本発明のディスク装置によれば、ディス
ク上同一領域からのデータがキャッシュに同時に存在す
ることのないよう先読みの仕方を制御することでキャッ
シュの使用効率を高めヒット率を向上させて、性能を向
上させることができる。
According to the disk device of the present invention, the use efficiency of the cache is improved and the hit rate is improved by controlling the prefetching method so that the data from the same area on the disk do not exist in the cache at the same time. Therefore, the performance can be improved.

【0038】[0038]

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

【図1】本発明を適用する磁気ディスク装置の構成例を
示す図。
FIG. 1 is a diagram showing a configuration example of a magnetic disk device to which the present invention is applied.

【図2】ホストが発行するリードコマンドの構成を示す
図。
FIG. 2 is a diagram showing a configuration of a read command issued by a host.

【図3】キャッシュデータ管理テーブルの構成を示す
図。
FIG. 3 is a diagram showing a configuration of a cache data management table.

【図4】先読み開始ないし継続時に先読み対象範囲を限
定できる場合に、ディスク上同一領域からのデータがキ
ャッシュに同時に存在することのないよう先読みの仕方
を制御する方式を示すフローである。
FIG. 4 is a flow showing a method of controlling a prefetching method so that data from the same area on the disk will not exist in the cache at the same time when the prefetching target range can be limited when starting or continuing prefetching.

【図5】先読み中のヘッド位置と先読み中に受領したリ
ードコマンドのホスト要求データの開始アドレスとの間
の距離がSectors Per Track以内の場合であり、該ホス
ト要求データの開始アドレスまで先読みを継続する場合
に、ディスク上同一領域からのデータをキャッシュに読
み込まないようにする方式の例を示す説明図。
FIG. 5 is a case where the distance between the head position during pre-reading and the start address of the host request data of the read command received during pre-reading is within Sectors Per Track, and pre-reading continues until the start address of the host request data. FIG. 6 is an explanatory diagram showing an example of a method for preventing data from the same area on the disk from being read into the cache in the case of doing so.

【図6】ホスト要求データにアクセスする際に回転待ち
が生じ、該回転待ちを先行データの先読みに充てる場合
に、ディスク上同一領域からのデータをキャッシュに読
み込まないようにする方式の例を示す説明図。
FIG. 6 shows an example of a method for preventing data from the same area on the disk from being read into a cache when a rotation wait occurs when accessing host request data and the rotation wait is used for prefetching of preceding data. Explanatory drawing.

【図7】ホスト要求データにアクセスする際に回転待ち
が生じ、該回転待ちを先行データの先読みと、後続デー
タの先読みに充てる場合に、ディスク上同一領域からの
データをキャッシュに読み込まないようにする方式の例
を示す説明図。
FIG. 7: When a wait for rotation occurs when accessing host request data, and when the wait for rotation is used for pre-reading of preceding data and pre-reading of subsequent data, data from the same area on the disk is not read into the cache. Explanatory diagram showing an example of a method.

【図8】ホスト要求データがキャッシュ上に分散してい
る場合、該分散データにリンクをはることで、ホスト要
求データをキャッシュより転送可能とする方式を示すフ
ローである。
FIG. 8 is a flow showing a method in which, when host request data is distributed on a cache, linking the distributed data allows the host request data to be transferred from the cache.

【図9】ホスト要求データがキャッシュ上に分散してい
る場合の例を示す説明図。
FIG. 9 is an explanatory diagram showing an example in which host request data is distributed on a cache.

【図10】キャッシュ制御部のレジスタの構成を示す
図。
FIG. 10 is a diagram showing a configuration of a register of a cache control unit.

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

101:プログラムROM 102:制御プロセッサ 103:キャッシュ制御部 104:キャッシュメモリ 105:キャッシュデータ管理テーブル 106:サーボ制御部 107:ボイスコイルモータ(VCM) 108:モータドライバ 109:セレクタ 110:信号処理部 111:ディスクフォーマッタ 112:インタフェース制御部 113:ホストインタフェース 21:コマンドコード 22:論理ブロックアドレス(LBA) 23:ホスト要求データ転送数 31:データ開始LBA 32:キャッシュメモリ上開始アドレス 33:データサイズ 101: Program ROM 102: control processor 103: cache control unit 104: cache memory 105: cache data management table 106: Servo control unit 107: Voice coil motor (VCM) 108: Motor driver 109: Selector 110: Signal processing unit 111: Disk formatter 112: Interface control unit 113: Host interface 21: Command code 22: Logical block address (LBA) 23: Number of host requested data transfers 31: Data start LBA 32: Start address in cache memory 33: Data size

───────────────────────────────────────────────────── フロントページの続き (72)発明者 西川 学 神奈川県小田原市国府津2880番地 株式会 社日立製作所ストレージ事業部内 Fターム(参考) 5B005 JJ13 MM11 NN12 NN14 5B065 BA01 CA15 CC08 CE12 CH05   ─────────────────────────────────────────────────── ─── Continued front page    (72) Inventor Manabu Nishikawa             2880 Kozu, Odawara City, Kanagawa Stock Association             Company Hitachi Ltd. Storage Division F-term (reference) 5B005 JJ13 MM11 NN12 NN14                 5B065 BA01 CA15 CC08 CE12 CH05

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】ディスクとディスクにアクセスするヘッド
と、ディスクから読み込んだデータを一時的に保存する
キャッシュと、キャッシュ上のデータを管理するための
キャッシュデータ管理テーブルと、キャッシュを介した
データ転送を制御するキャッシュ制御部と、ディスクか
ら読み込んだアナログデータをディジタルデータに変換
する、あるいはホストからのディジタルデータをアナロ
グデータに変換する信号処理部と、ゲートの開閉を行い
キャッシュから信号処理部へのデータ転送、あるいは信
号処理部からキャッシュへのデータ転送を制御するディ
スクフォーマッタを実装するディスク装置であって、先
読み範囲を限定して先読みを開始または継続する場合
に、キャッシュデータ管理テーブルを用いて先読み対象
範囲のデータがキャッシュ上に存在するか検索し、該先
読み対象範囲の少なくとも一部分のデータが有効データ
としてキャッシュ上に存在すると判断され、さらに先読
み対象範囲内のキャッシュに未転送のデータをキャッシ
ュに転送しても該キャッシュに存在するデータが上書き
されないと判断された場合に、ディスクフォーマッタの
リード用ゲートの開閉を制御して、該先読み対象範囲の
データの内、既にキャッシュに存在するデータをキャッ
シュに転送しないよう制御し、該先読み対象範囲内のキ
ャッシュに未転送のデータをキャッシュに転送すると該
キャッシュに存在するデータが上書きされると判断され
た場合には、ディスクフォーマッタのリード用ゲートの
開閉を制御して、該キャッシュに存在するデータの内上
書きされない領域のデータのみをキャッシュに転送しな
いよう制御することを特徴とするディスク装置。
1. A disk, a head for accessing the disk, a cache for temporarily storing data read from the disk, a cache data management table for managing data on the cache, and a data transfer via the cache. A cache control unit for controlling, a signal processing unit for converting analog data read from the disk into digital data, or for converting digital data from the host into analog data, and data from the cache to the signal processing unit by opening / closing the gate. A disk device that implements a disk formatter that controls transfer or data transfer from the signal processing unit to the cache, and uses the cache data management table to start the read ahead when starting or continuing the read ahead with a limited read ahead range. The range data is Even if data that has not been transferred to the cache within the prefetch target range is transferred to the cache, it is determined that at least a part of the data in the prefetch target range exists as valid data in the cache. When it is determined that the data existing in the cache will not be overwritten, the opening / closing of the read gate of the disk formatter is controlled so that the data already existing in the cache out of the data of the read-ahead target range is not transferred to the cache. However, when it is determined that the data existing in the cache is overwritten when the untransferred data is transferred to the cache within the prefetch target range, the opening / closing of the read gate of the disk formatter is controlled, Of the data existing in the cache, only the data in the area that is not overwritten is cached. Disk device and controls not to transfer to the shoe.
【請求項2】請求項1に記載のディスク装置であって、
先読み継続中のヘッド位置と、ホスト要求データまでの
距離がSectors Per Track以内にあり、先読み継続中の
ヘッド位置からホスト要求データのアドレスまで先読み
を継続する場合に、ディスク上同一領域からのデータが
キャッシュに同時に存在することのないよう先読みの仕
方を制御することを特徴とするディスク装置。
2. The disk device according to claim 1, wherein
If the distance from the head position during pre-reading to the host request data is within Sectors Per Track and the pre-reading continues from the head position during pre-reading to the host request data address, data from the same area on the disk A disk device characterized by controlling the prefetching method so that they do not exist in the cache at the same time.
【請求項3】請求項1に記載のディスク装置であって、
回転待ちをホスト要求データの先行データの先読みに充
てる場合に、ディスク上同一領域からのデータがキャッ
シュに同時に存在することのないよう先読みの仕方を制
御することを特徴とするディスク装置。
3. The disk device according to claim 1, wherein:
A disk device characterized by controlling the prefetching method so that data from the same area on the disk will not simultaneously exist in the cache when the rotation waiting is used for the prefetching of the preceding data of the host request data.
【請求項4】請求項1に記載のディスク装置であって先
読み中リードコマンドを受領し該次のコマンドにおいて
新たに先読みを開始する場合でかつ、発生する回転待ち
を先行データの先読みに充て、さらに、先行データの先
読みに回転待ち時間を充てても尚回転待ちが発生すると
判断される場合は該回転待ちを後続データの先読みに充
てる場合に、ディスク上同一領域からのデータがキャッ
シュに同時に存在することのないよう先読みの仕方を制
御することを特徴とするディスク装置。
4. The disk device according to claim 1, wherein when a pre-reading read command is received and a new pre-reading is started in the next command, and the rotation wait that occurs is used for the pre-reading of the preceding data, Furthermore, if it is determined that the rotation wait still occurs even if the rotation waiting time is used for the prefetch of the preceding data, the data from the same area on the disk is simultaneously present in the cache when the rotation waiting is used for the prefetch of the subsequent data. A disk device characterized by controlling the way of pre-reading so as not to perform.
【請求項5】ディスクとディスクにアクセスするヘッド
と、ディスクから読み込んだデータを一時的に保存する
キャッシュと、キャッシュ上のデータを管理するための
キャッシュデータ管理テーブルと、キャッシュを介した
データ転送を制御するキャッシュ制御部と、ディスクか
ら読み込んだアナログデータをディジタルデータに変換
する、あるいはホストからのディジタルデータをアナロ
グデータに変換する信号処理部と、ゲートの開閉を行い
キャッシュから信号処理部へのデータ転送、あるいは信
号処理部からキャッシュへのデータ転送を制御するディ
スクフォーマッタを実装するディスク装置であって、キ
ャッシュ上データ管理テーブルを使用してヒット検索を
しフルヒットしなかった場合に、一部分ヒットする領域
をすべて検索し、ホスト要求データが該ハーフヒット領
域内にすべて含まれていればフルヒットとみなし、該ハ
ーフヒット領域内のホスト要求データをホスト要求順に
読み出してホストに転送可能とすることを特徴とするデ
ィスク装置。
5. A disk, a head for accessing the disk, a cache for temporarily storing data read from the disk, a cache data management table for managing data on the cache, and data transfer via the cache. A cache control unit for controlling, a signal processing unit for converting analog data read from the disk into digital data, or for converting digital data from the host into analog data, and data from the cache to the signal processing unit by opening / closing the gate. A disk device that implements a disk formatter that controls data transfer or data transfer from the signal processing unit to the cache, and if a full hit does not occur when a hit search is performed using the data management table on the cache, a partial hit occurs. Search all areas, Strike requested data regarded as full hit if it contains all the half hit area, the disk apparatus characterized by enabling transferred to the host reads the host request data of the half-hit region in the host request order.
JP2001373518A 2001-12-07 2001-12-07 Disk device Pending JP2003173294A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001373518A JP2003173294A (en) 2001-12-07 2001-12-07 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001373518A JP2003173294A (en) 2001-12-07 2001-12-07 Disk device

Publications (1)

Publication Number Publication Date
JP2003173294A true JP2003173294A (en) 2003-06-20

Family

ID=19182228

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001373518A Pending JP2003173294A (en) 2001-12-07 2001-12-07 Disk device

Country Status (1)

Country Link
JP (1) JP2003173294A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009151397A (en) * 2007-12-19 2009-07-09 Nec Corp Hierarchical storage control apparatus, hierarchical storage control system, and hierarchical storage control method and program for use therewith
WO2015064048A1 (en) * 2013-11-01 2015-05-07 日本電気株式会社 Information processing device, data cache device, information processing method, and data caching method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009151397A (en) * 2007-12-19 2009-07-09 Nec Corp Hierarchical storage control apparatus, hierarchical storage control system, and hierarchical storage control method and program for use therewith
WO2015064048A1 (en) * 2013-11-01 2015-05-07 日本電気株式会社 Information processing device, data cache device, information processing method, and data caching method

Similar Documents

Publication Publication Date Title
EP1280063A2 (en) Cache control methods and apparatus for hard disk drives
JP2007304691A (en) Disk device and read-ahead control method for rotary type memory device
JP3183993B2 (en) Disk control system
JP4925230B2 (en) Storage device, storage control device, and control method
JP2007241927A (en) Data storage device and method
JP3087429B2 (en) Storage system
KR19980029917A (en) How to improve read cache performance on magnetic disk drives
JPH11110139A (en) Method and device for reading data
JP2003508866A (en) Reduced seek sound with minimal performance degradation
JP2003337722A (en) Computer system
JP2001014109A (en) Storage device
JP2003173294A (en) Disk device
JP3969809B2 (en) Data buffer management method in storage device
US6957300B2 (en) Reducing delay of command completion due to overlap condition
US7370153B1 (en) System and method of pre-fetching using an extended data structure including required data and a pre-fetch flag
JP2002244816A (en) Disk device
JP2004164144A (en) Disk device
JP2845658B2 (en) Access control device for data recording / reproducing device
JP2002342038A (en) Disk device controlling execution order of commands
JPH11212733A (en) External storage system
JP2007011661A (en) Disk unit, and cache memory control method therefor
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
JP3435176B2 (en) Magnetic disk drive
JP3080758B2 (en) Magnetic disk drive
JP2009087460A (en) Command processing method for disk storage device