JPH05210915A - Disk device - Google Patents

Disk device

Info

Publication number
JPH05210915A
JPH05210915A JP4038374A JP3837492A JPH05210915A JP H05210915 A JPH05210915 A JP H05210915A JP 4038374 A JP4038374 A JP 4038374A JP 3837492 A JP3837492 A JP 3837492A JP H05210915 A JPH05210915 A JP H05210915A
Authority
JP
Japan
Prior art keywords
data block
data
medium
zone
disk
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
JP4038374A
Other languages
Japanese (ja)
Inventor
Shun Murata
瞬 村田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP4038374A priority Critical patent/JPH05210915A/en
Publication of JPH05210915A publication Critical patent/JPH05210915A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the performance of the disk system where information is recorded by the zone bit system by dynamically rearranging data blocks in optimum zones in accordance with statistical information of access to a medium. CONSTITUTION:When a medium 10 is loaded, contents of an exchange table area 13 and an access count table area 14 on the medium are read out to an exchange table memory 60 and an access count memory 40. At the time of reading/writing data from/in the medium 10, contents of the access count memory 40 are incremented simultaneously with data read/write. Contents of the access count memory 30 for a zone 11 where data is read or written are compared with those for a more outer zone 17; and if data exchange improves the performance of the disk system, data in the zone 11 is exchanged with data in the more outer zone 17. Thus, data blocks whose frequency in access is higher are dynamically moved to zones accessed at a higher speed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はコンピュータシステムに
用いられるディスク装置、さらに詳しくいえばディスク
媒体上へのデータブロック配置を考慮したディスク装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk device used in a computer system, and more particularly to a disk device in consideration of data block arrangement on a disk medium.

【0002】[0002]

【従来の技術】まず、図を用いて従来のディスク装置の
構成を説明し、その問題点に言及する。図7は従来のデ
ィスク装置の一例を示すブロック図である。従来のディ
スク装置103はディスクコントローラ104およびデ
ィスクドライブ101より構成されている。ディスクド
ライブ101はディスク媒体10に対する物理的制御を
行う駆動部21およびディスク媒体10上のデータの読
み書きを行うリードライト制御部20を有している。ま
た、ディスクコントローラ104はディスク媒体10に
記録しているデータを一時的に保存するデータバッファ
メモリ50,ディスク媒体10上から読み出したデータ
の誤り訂正を行う誤り訂正部70,上位システム200
との間のインタフェースを制御する上位インタフェース
80,ディスク装置全体の制御を行うシステムコントロ
ーラ30を有している。
2. Description of the Related Art First, the structure of a conventional disk device will be described with reference to the drawings, and its problems will be mentioned. FIG. 7 is a block diagram showing an example of a conventional disk device. The conventional disk device 103 is composed of a disk controller 104 and a disk drive 101. The disk drive 101 has a drive unit 21 that physically controls the disk medium 10 and a read / write control unit 20 that reads and writes data on the disk medium 10. Further, the disk controller 104 includes a data buffer memory 50 for temporarily storing the data recorded on the disk medium 10, an error correction unit 70 for performing error correction on the data read from the disk medium 10, an upper system 200.
And a system controller 30 for controlling the entire disk device.

【0003】上位装置200からのデータの書き込み命
令は上位インタフェース80を通してディスクコントロ
ーラ102内のシステムコントローラ30に送出され
る。システムコントローラ30は上位装置200からの
書き込みデータをデータバッファメモリ50に格納し、
誤り訂正部70を用いて誤り訂正符号を付加し、その結
果をディスクドライブ101内のリードライト制御部2
0および駆動部21を用いてディスク媒体10に書き込
む。データの書き込み時は必要に応じてベリファイ動作
を行い、書き込み不良時にはデータブロックの代替処理
を行い、データ書き込みの信頼性を向上させている。ま
た、ディスク媒体10の記録はゾーンビットレコーディ
ング方式を採っており、媒体の回転数が一定のときは媒
体の外周部と内周部でデータ転送速度が異なることを利
用し、外周部には高速にアクセスする必要のあるデータ
を格納し、それ以外のデータは内周部に格納することに
より、ディスクシステム全体の性能を向上させるように
している。
A data write command from the host device 200 is sent to the system controller 30 in the disk controller 102 through the host interface 80. The system controller 30 stores the write data from the higher-level device 200 in the data buffer memory 50,
An error correction code is added using the error correction unit 70, and the result is added to the read / write control unit 2 in the disk drive 101.
0 and the drive unit 21 are used to write to the disk medium 10. When data is written, a verify operation is performed as necessary, and when a write failure occurs, a data block substitute process is performed to improve the reliability of data writing. Further, the recording on the disk medium 10 adopts the zone bit recording method, and when the number of rotations of the medium is constant, the fact that the data transfer rate is different between the outer peripheral portion and the inner peripheral portion is utilized, and the outer peripheral portion has a high speed. The data that needs to be accessed is stored, and the other data is stored in the inner peripheral portion to improve the performance of the entire disk system.

【0004】[0004]

【発明が解決しようとする課題】さて、従来のディスク
装置103は上位装置200によってデータブロックの
配置が決定されるので、ディスク媒体10上に存在する
データのアクセス頻度に変化があった場合は、上位装置
200がデータの配置を変更しない限り、ディスクシス
テム全体としてのデータの転送速度の性能向上は行えな
い。また、上位装置200がディスク媒体10上のデー
タの配置を最適化するためにはディスク媒体10上のデ
ータのアクセス状況を上位装置200の内部で保存して
いる必要があり、これには通常大きなオーバヘッドが伴
うため現実的でないという問題があった。さらにディス
ク媒体10の装着/排出が上位装置200の介入なしに
行われるシステムではデータアクセスの状況を上位装置
200によってディスク媒体10上に保存することは困
難であった。本発明の目的は上記問題を解決するもの
で、ディスク媒体へのアクセスの統計情報によりデータ
ブロックを最適ゾーンに動的に再配置することにより、
性能向上を図ることができるゾーンビット方式による記
録を行うディスク装置を提供することにある。
In the conventional disk device 103, since the arrangement of the data blocks is determined by the host device 200, when the access frequency of the data existing on the disk medium 10 changes, Unless the upper-level device 200 changes the data arrangement, the performance of the data transfer rate of the entire disk system cannot be improved. In addition, in order for the higher-level device 200 to optimize the data arrangement on the disk medium 10, it is necessary to store the access status of the data on the disk medium 10 inside the higher-level device 200, which is usually large. There is a problem that it is not realistic because it involves overhead. Further, in a system in which the loading / unloading of the disk medium 10 is performed without the intervention of the higher-level device 200, it is difficult for the higher-level device 200 to save the data access status on the disk medium 10. An object of the present invention is to solve the above problem by dynamically rearranging a data block in an optimum zone according to statistical information of access to a disk medium.
It is an object of the present invention to provide a disk device that performs recording by the zone bit method that can improve performance.

【0005】[0005]

【課題を解決するための手段】前記目的を達成するため
に本発明によるディスク装置は着脱可能な媒体を使用す
るディスク装置において、媒体に対するアクセス情報を
格納するアクセス情報格納領域と、データブロックの配
置情報を格納するデータブロック管理領域とを有し、デ
ィスク装置に媒体を装着する際、前記データブロック管
理領域から管理情報を読み出し、媒体排出時には、デー
タブロックのアクセス情報とデータブロックの配置情報
を媒体上に再保存するように構成してある。また、上記
構成において、前記アクセス情報格納領域とデータブロ
ック管理領域は着脱可能な媒体上の各ゾーン毎に配置す
ることができる。さらに、上記構成において、前記アク
セス情報格納領域とデータブロック管理領域の内容を保
存するメモリを有し、データブロックの読み書きの際
に、前記メモリの内容を参照して媒体上の情報の読み書
きの制御およびデータバッファに格納するデータブロッ
クの状態を制御するように構成してある。さらにゾーン
ビットレコーディングを使用するディスク装置におい
て、メモリの内容によりアクセス頻度の高いデータブロ
ックを外周のゾーンに再配置するように構成することが
できる。上記構成において、前記データブロックの再配
置を上位装置の介在なしにディスク装置内で処理するよ
うに構成することができる。
In order to achieve the above object, a disk device according to the present invention is a disk device using a removable medium. In the disk device, an access information storage area for storing access information to the medium and an arrangement of data blocks are arranged. A data block management area for storing information, and when the medium is loaded into the disk device, the management information is read from the data block management area, and when the medium is ejected, the access information of the data block and the arrangement information of the data block are stored in the medium. It is configured to be saved again above. Further, in the above configuration, the access information storage area and the data block management area can be arranged in each zone on the removable medium. Further, in the above configuration, a memory for storing the contents of the access information storage area and the data block management area is provided, and at the time of reading / writing a data block, the reading / writing of information on the medium is controlled by referring to the contents of the memory. And to control the state of the data blocks stored in the data buffer. Further, in a disk device using zone bit recording, a data block that is frequently accessed can be relocated to the outer zone depending on the contents of the memory. In the above configuration, the rearrangement of the data block can be configured to be processed in the disk device without the intervention of the host device.

【0006】[0006]

【実施例】以下、図面を参照して本発明をさらに詳しく
説明する。図1は本発明によるディスク装置の実施例を
示すブロック図である。同図において、ディスクドライ
ブ101は着脱可能なディスク媒体10,ディスク媒体
10上のデータの読み書きを行うリードライト制御部2
0およびディスク媒体10に対する物理的な制御を行う
駆動部21を含んでいる。ディスクコントローラ102
はディスク媒体10上に存在するデータへのアクセス回
数を保存するアクセスカウントメモリ40,ディスク媒
体10に記録しているデータを一時的に保存するデータ
バッファメモリ50,ディスク媒体10上にあるデータ
ブロックの配置状態を保存する交換テーブルメモリ6
0,ディスク媒体10から読み出したデータの誤り訂正
およびディスク媒体10にデータを書き込む際に誤り訂
正コードを付加する誤り訂正部70,外部のシステムと
のインタフェースを行う上位インタフェース80ならび
にディスク装置全体の制御を行うシステムコントローラ
30を含んでいる。ディスク装置100はディスクコン
トローラ102およびディスクドライブ101より構成
されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in more detail below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of a disk device according to the present invention. In the figure, a disk drive 101 is a removable disk medium 10, and a read / write control unit 2 for reading and writing data on the disk medium 10.
0 and the drive unit 21 for physically controlling the disk medium 10. Disk controller 102
Is an access count memory 40 for storing the number of accesses to the data existing on the disk medium 10, a data buffer memory 50 for temporarily storing the data recorded on the disk medium 10, and a data block on the disk medium 10. Exchange table memory 6 for storing the arrangement state
0, error correction of data read from the disk medium 10 and an error correction unit 70 that adds an error correction code when writing data to the disk medium 10, an upper interface 80 for interfacing with an external system, and control of the entire disk device It includes a system controller 30 for performing. The disk device 100 is composed of a disk controller 102 and a disk drive 101.

【0007】図2はゾーンビットレコーディングによっ
てデータを記録するときのディスク媒体上のデータの配
置を示す図である。この図はディスク媒体10上のディ
スクエリアを便宜的に展開して表しており、11,1
5,16および17はデータエリアを半径方向にn分割
したゾーンである。このゾーンのうち、11は最内周ゾ
ーン,15は最内周ゾーン11に隣接したゾーン,17
は最外周ゾーン,16は最外周ゾーンに隣接したゾーン
をそれぞれ示している。9はゾーン内のデータの記録単
位であるセクタである。ゾーン1から外周ゾーンnー2
までの間のゾーンはこの図では省略されている。この図
から明らかなようにゾーンビットレコーディングを行う
ディスク装置では最内周ゾーン11と最外周ゾーン17
とは最外周ゾーン17のほうが1トラック当たりのセク
タ9の数が多い。
FIG. 2 is a diagram showing an arrangement of data on a disk medium when data is recorded by zone bit recording. This figure shows the disc area on the disc medium 10 by exploding for convenience.
5, 16 and 17 are zones obtained by dividing the data area into n in the radial direction. Of these zones, 11 is the innermost zone, 15 is the zone adjacent to the innermost zone 11, 17
Indicates the outermost zone, and 16 indicates a zone adjacent to the outermost zone. A sector 9 is a recording unit of data in the zone. Zone 1 to outer zone n-2
Zones up to are omitted in this figure. As is clear from this figure, the innermost zone 11 and the outermost zone 17 are used in a disk device that performs zone bit recording.
The outermost zone 17 has more sectors 9 per track.

【0008】図3はディスク媒体10上のゾーン内のデ
ータの配置を示す図である。同図において、12はユー
ザのデータを格納する領域,13はディスク媒体10上
のゾーンにおけるデータブロックの配置状態を記録する
交換テーブル領域,14はディスク媒体10上のデータ
ブロックのアクセス情報を保存するアクセスカウントテ
ーブル領域である。
FIG. 3 is a diagram showing the arrangement of data in the zones on the disk medium 10. In the figure, reference numeral 12 is an area for storing user data, 13 is an exchange table area for recording the arrangement state of data blocks in the zone on the disk medium 10, and 14 is access information for the data blocks on the disk medium 10. This is an access count table area.

【0009】図4はディスクコントローラ102内の交
換テーブルメモリの構成を示す図である。交換テーブル
メモリ60はディスク媒体10上のデータブロックの配
置情報を格納する交換テーブルエントリを含んでいる。
交換テーブルエントリ61の交換テーブルメモリ60内
での位置がディスク媒体10上のデータブロックの論理
的な位置に対応し、その内容は媒体上の物理的な位置を
示している。
FIG. 4 is a diagram showing the structure of the exchange table memory in the disk controller 102. The exchange table memory 60 includes exchange table entries for storing arrangement information of data blocks on the disk medium 10.
The position of the exchange table entry 61 in the exchange table memory 60 corresponds to the logical position of the data block on the disk medium 10, and the content thereof indicates the physical position on the medium.

【0010】図5はディスクコントローラ102内のア
クセスカウントメモリの構成を示す図である。アクセス
カウントメモリ40はディスク媒体10上のデータブロ
ックに対するアクセス回数を保存するアクセスカウント
エントリ41を含んでいる。アクセスカウントエントリ
41のアクセスカウントメモリ40内での位置がディス
ク媒体10上のデータブロックの論理的な位置に対応
し、その内容はデータブロックに対するアクセス回数を
示している。
FIG. 5 is a diagram showing the configuration of the access count memory in the disk controller 102. The access count memory 40 includes an access count entry 41 that stores the number of accesses to the data block on the disk medium 10. The position of the access count entry 41 in the access count memory 40 corresponds to the logical position of the data block on the disk medium 10, and the content thereof indicates the number of times of access to the data block.

【0011】図6はアクセスカウントエントリの構成を
示す図である。アクセスカウントエントリ41はディス
ク媒体10上のデータブロックに対する読み出し回数を
保存するリードカウント43とディスク媒体10上のデ
ータブロックに対する書き込み回数を保存するライトカ
ウント42を含んでいる。
FIG. 6 is a diagram showing the structure of the access count entry. The access count entry 41 includes a read count 43 for storing the number of read times for the data block on the disk medium 10 and a write count 42 for storing the number of write times for the data block on the disk medium 10.

【0012】つぎにこれら図を用いて動作を説明する。
ディスク装置100にディスク媒体10を装着すると、
ディスクコントローラ102内のシステムコントローラ
30はディスクドライブ101の駆動部21およびリー
ドライト制御部20を制御し、ディスク媒体10上の各
ゾーン11,15,16および17の中の交換テーブル
領域13およびアクセスカウント領域14の内容を読み
出しディスクコントローラ102内のデータバッファメ
モリ50に格納する。この読み出した内容は誤り訂正部
70により誤り訂正が行われ、交換テーブルメモリ60
とアクセスカウントメモリ40にそれぞれ格納される。
Next, the operation will be described with reference to these figures.
When the disk medium 10 is attached to the disk device 100,
The system controller 30 in the disk controller 102 controls the drive unit 21 and the read / write control unit 20 of the disk drive 101, and the exchange table area 13 and the access count in each zone 11, 15, 16 and 17 on the disk medium 10. The contents of the area 14 are read and stored in the data buffer memory 50 in the disk controller 102. The read contents are subjected to error correction by the error correction unit 70, and the exchange table memory 60
And the access count memory 40 respectively.

【0013】ディスク装置100からディスク媒体10
を排出するときはディスクコントローラ102内のシス
テムコントローラ30は交換テーブルメモリ60の内容
をデータバッファメモリ50に転送し、誤り訂正部70
を用いて誤り訂正コードを付加し、駆動部21およびリ
ードライト制御部20によってディスク媒体10上の交
換テーブル領域13に書き込む。つぎにアクセスカウン
トメモリ40の内容をデータバッファメモリ50に転送
し、誤り訂正部70により誤り訂正コードを付加し、駆
動部21およびリードライト制御部20によりディスク
媒体10上のアクセスカウント領域14に書き込む。
From the disk device 100 to the disk medium 10
When ejecting, the system controller 30 in the disk controller 102 transfers the contents of the exchange table memory 60 to the data buffer memory 50, and the error correction unit 70
Is used to add an error correction code, and is written in the exchange table area 13 on the disk medium 10 by the drive unit 21 and the read / write control unit 20. Next, the contents of the access count memory 40 are transferred to the data buffer memory 50, an error correction code is added by the error correction unit 70, and the data is written in the access count region 14 on the disk medium 10 by the drive unit 21 and the read / write control unit 20. ..

【0014】つぎに上位装置200からのデータ読み出
し命令に対する動作を説明する。なお、上位装置が読み
出しを要求するデータブロックは図2において0ゾーン
11に存在するものとして説明する。以下の説明ではn
−1ゾーン17にデータブロックが存在するとき以外は
0ゾーン11にデータブロックが存在するときの処理
を、1ゾーン15以降にデータブロックが存在するとき
にも同様に行うものとする。また、ディスク媒体10上
に存在するデータブロックの位置を物理的な位置と呼
び、上位装置が読み出しを要求するデータブロックの位
置を論理的な位置と呼ぶ。
Next, the operation in response to the data read command from the upper level device 200 will be described. The data block requested to be read by the higher-level device will be described as existing in the 0 zone 11 in FIG. In the following description, n
Unless the data block exists in the -1 zone 17, the process when the data block exists in the 0 zone 11 is similarly performed when the data block exists in the 1 zone 15 and thereafter. Further, the position of the data block existing on the disk medium 10 is called a physical position, and the position of the data block requested to be read by the host device is called a logical position.

【0015】上位装置200が発行したデータ読み出し
命令は上位インタフェース80を通してシステムコント
ローラ30に到達する。システムコントローラ30は交
換テーブルメモリ60の内容により読み出すデータブロ
ックがディスク媒体10上のどの位置に存在するかを求
める。システムコントローラ30は駆動部21およびリ
ードライト制御部20によりディスク媒体10上のデー
タブロックを読み出し、データバッファメモリ50に転
送し、誤り訂正部70により誤り訂正を行い、上位イン
タフェース80を通して上位装置200にデータを転送
する。以下このデータブロックを第1のデータブロック
と呼ぶ。このとき、第1のデータブロックの物理的な位
置に対応するアクセスカウントメモリ40内のアクセス
カウントエントリ41のリードカウント42の内容をイ
ンクリメントする。さらに第1のデータブロックに対応
するアクセスカウントエントリ41のリードカウント4
2の内容と第1のデータブロックが存在する0ゾーン1
1より外周の1ゾーン15のアクセスカウントエントリ
41のリードカウント42の内容を比較する。
The data read command issued by the host device 200 reaches the system controller 30 through the host interface 80. The system controller 30 finds at which position on the disk medium 10 the data block to be read exists based on the contents of the exchange table memory 60. The system controller 30 reads the data block on the disk medium 10 by the drive unit 21 and the read / write control unit 20, transfers it to the data buffer memory 50, corrects the error by the error correction unit 70, and transfers it to the higher level device 200 through the higher level interface 80. Transfer data. Hereinafter, this data block will be referred to as a first data block. At this time, the content of the read count 42 of the access count entry 41 in the access count memory 40 corresponding to the physical position of the first data block is incremented. Further, the read count 4 of the access count entry 41 corresponding to the first data block
2 zone and 0 zone where the first data block exists 1
The contents of the read count 42 of the access count entry 41 of the one zone 15 on the outer periphery of 1 are compared.

【0016】このとき1ゾーン15に対応するアクセス
カウントエントリ41のリードカウント42の内容のう
ち、第1のデータブロックに対応するアクセスカウント
エントリ41のリードカウント42の内容より小さい値
を持つものであれば、次に説明するデータブロックの入
れ換え処理を行う。以下、入れ換えの対象となるデータ
ブロックを第2のデータブロックと呼ぶ。
At this time, if the read count 42 of the access count entry 41 corresponding to one zone 15 has a smaller value than the read count 42 of the access count entry 41 corresponding to the first data block. For example, the data block replacement process described below is performed. Hereinafter, the data block to be replaced is referred to as a second data block.

【0017】データリード時のデータブロックの入れ換
え処理について説明する。システムコントローラ30は
第2のデータブロックの内容を駆動部21およびリード
ライト制御部20によりデータバッファメモリ50に転
送し、誤り訂正部70により誤り訂正を行う。つぎにシ
ステムコントローラ30は第1のデータブロックを誤り
訂正部70により誤り訂正コードを付加し、0ゾーン1
1で第1のデータブロックが存在するデータブロックの
位置に第2のデータブロックの内容を、また、1ゾーン
15の第2のデータブロックが存在するデータブロック
の位置に第1のデータブロックの内容を駆動部21およ
びリードライト制御部20を制御してディスク媒体10
に書き込む。
The data block replacement process at the time of data reading will be described. The system controller 30 transfers the contents of the second data block to the data buffer memory 50 by the drive unit 21 and the read / write control unit 20, and the error correction unit 70 performs error correction. Next, the system controller 30 adds an error correction code to the first data block by the error correction unit 70, and the 0 zone 1
1, the content of the second data block is located at the position of the data block where the first data block exists, and the content of the first data block is located at the position of the data block where the second data block of 1 zone 15 is located. The disk medium 10 by controlling the drive unit 21 and the read / write control unit 20.
Write in.

【0018】さらに交換テーブルメモリ60内の交換テ
ーブルエントリ61を、第1のデータブロックのものと
第2のデータブロックのものとを交換し、第1のデータ
ブロックに対応するアクセスカウントエントリ41の内
容と第2のデータブロックに対応するアクセスカウント
エントリ41の内容を交換する。
Further, the exchange table entry 61 in the exchange table memory 60 is exchanged between the first data block and the second data block, and the contents of the access count entry 41 corresponding to the first data block. And the contents of the access count entry 41 corresponding to the second data block are exchanged.

【0019】つぎに上位装置200からのデータ書き込
み命令に対する動作を説明する。なお、読み出し命令に
対する動作の説明と同様に上位装置が書き込みを要求す
るデータブロックは図2において0ゾーン11に存在す
るものとして説明する。以下の説明ではn−1ゾーン1
7にデータブロックが存在するとき以外は0ゾーン11
にデータブロックが存在するときの処理を、1ゾーン1
5以降にデータブロックが存在するときにも同様に行う
ものとする。また、ディスク媒体10上に存在するデー
タブロックの位置を物理的な位置と呼び、上位装置が書
き込みを要求するデータブロックの位置を論理的な位置
と呼ぶ。
Next, the operation in response to the data write command from the upper level device 200 will be described. Note that, similar to the description of the operation for the read command, the data block requested to be written by the host device will be described as existing in the 0 zone 11 in FIG. In the following description, n-1 zone 1
0 zone 11 except when data block exists in 7
Processing when there is a data block in 1 zone 1
The same is done when there are data blocks after 5. The position of a data block existing on the disk medium 10 is called a physical position, and the position of a data block requested to be written by a host device is called a logical position.

【0020】上位装置200が発行したデータ書き込み
命令は上位インタフェース80を通してシステムコント
ローラ30に到達する。システムコントローラ30は上
位装置200から書き込むデータを受取り、データバッ
ファメモリ50に格納し誤り訂正部70により誤り訂正
コードを付加する。つぎにシステムコントローラ30は
交換テーブルメモリ60の内容により書き込みを行うデ
ータブロックがディスク媒体10上のどの位置に存在す
るかを求める。システムコントローラ30は駆動部21
およびリードライト制御部20によりディスク媒体10
上にデータブロックを書き込む。以下このデータブロッ
クを第3のデータブロックと呼ぶ。
The data write command issued by the host device 200 reaches the system controller 30 through the host interface 80. The system controller 30 receives the data to be written from the host device 200, stores it in the data buffer memory 50, and adds the error correction code by the error correction unit 70. Next, the system controller 30 determines at which position on the disk medium 10 the data block to be written exists based on the contents of the exchange table memory 60. The system controller 30 has a drive unit 21.
The read / write control unit 20 controls the disk medium 10
Write the data block on top. Hereinafter, this data block is referred to as a third data block.

【0021】このとき、第3のデータブロックの物理的
な位置に対応するアクセスカウントメモリ40内のアク
セスカウントエントリ41のライトカウント43の内容
をインクリメントする。さらに第3のデータブロックを
書き込んだ0ゾーン11より外周の1ゾーン15のアク
セスカウントエントリ41のライトカウント43を比較
する。このとき、1ゾーン15に対応するアクセスカウ
ントエントリ41のライトカウント43の内容のうち、
第3のデータブロックに対応するアクセスカウントエン
トリ41のライトカウント43の内容より小さい値をも
つものであれば、次に説明するデータブロックの入れ換
え処理を行う。以下入れ換えの対象となるデータブロッ
クを第4のデータブロックと呼ぶ。
At this time, the content of the write count 43 of the access count entry 41 in the access count memory 40 corresponding to the physical position of the third data block is incremented. Further, the write count 43 of the access count entry 41 of the 1 zone 15 outside the 0 zone 11 in which the third data block is written is compared. At this time, of the contents of the write count 43 of the access count entry 41 corresponding to 1 zone 15,
If it has a value smaller than the content of the write count 43 of the access count entry 41 corresponding to the third data block, the data block replacement process described below is performed. Hereinafter, the data block to be replaced is referred to as the fourth data block.

【0022】データライト時のデータブロックの入れ換
え処理について説明する。システムコントローラ30は
第4のデータブロックの内容を駆動部21およびリード
ライト制御部20によりデータバッファメモリ50に転
送し、誤り訂正部70により誤り訂正を行い、再度誤り
訂正部70により誤り訂正コードをデータブロックに付
加する。つぎにシステムコントローラ30は0ゾーン1
1で第3のデータブロックが存在するデータブロックの
位置に第4のデータブロックの内容を、また、1ゾーン
15の第2のデータブロックが存在するデータブロック
の位置に第3のデータブロックの内容を駆動部21およ
びリードライト制御部20を制御してディスク媒体10
に書き込む。
A data block replacement process at the time of data writing will be described. The system controller 30 transfers the contents of the fourth data block to the data buffer memory 50 by the drive unit 21 and the read / write control unit 20, the error correction unit 70 performs error correction, and the error correction unit 70 again outputs the error correction code. Append to data block. Next, the system controller 30 is 0 zone 1
1, the content of the fourth data block is located at the position of the data block where the third data block exists, and the content of the third data block is located at the position of the data block where the second data block of 1 zone 15 is located. The disk medium 10 by controlling the drive unit 21 and the read / write control unit 20.
Write in.

【0023】さらに交換テーブルメモリ60内の交換テ
ーブルエントリ61を、第3のデータブロックのものと
第4のデータブロックのものとを交換し、第3のデータ
ブロックに対応するアクセスカウントエントリ41の内
容と第4のデータブロックに対応するアクセスカウント
エントリ41の内容を交換する。上記の処理を行うこと
により、アクセス頻度の高いデータブロックがシステム
コントローラ30によりデータ転送速度の速い外周部に
移動させられる。
Furthermore, the exchange table entry 61 in the exchange table memory 60 is exchanged between the third data block and the fourth data block, and the contents of the access count entry 41 corresponding to the third data block are exchanged. And the contents of the access count entry 41 corresponding to the fourth data block are exchanged. By performing the above processing, the data block having a high access frequency is moved to the outer peripheral portion having a high data transfer rate by the system controller 30.

【0024】[0024]

【発明の効果】以上、説明したように本発明によるディ
スク装置はデータのアクセス状況を内部で保存するとと
もにディスク媒体上のデータの配置をデータのアクセス
状況により再配置するように構成されているので、頻繁
にアクセスするデータが外周部に集中し、ディスク装置
のデータ転送速度の性能向上を図ることができるという
効果がある。
As described above, the disk device according to the present invention is configured to internally store the data access status and rearrange the data layout on the disk medium according to the data access status. As a result, frequently accessed data are concentrated on the outer peripheral portion, and the data transfer speed of the disk device can be improved in performance.

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

【図1】本発明によるディスク装置の実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a disk device according to the present invention.

【図2】媒体上のゾーンの配置を示す図である。FIG. 2 is a diagram showing an arrangement of zones on a medium.

【図3】ゾーン内のデータの配置を示す図である。FIG. 3 is a diagram showing an arrangement of data in a zone.

【図4】交換テーブルメモリ内のデータの配置を示す図
である。
FIG. 4 is a diagram showing an arrangement of data in an exchange table memory.

【図5】アクセスカウントメモリ内のデータの配置を示
す図である。
FIG. 5 is a diagram showing an arrangement of data in an access count memory.

【図6】アクセスカウントエントリ内のデータの配置を
示す図である。
FIG. 6 is a diagram showing an arrangement of data in an access count entry.

【図7】従来のディスク装置の一例を示すブロック図で
ある。
FIG. 7 is a block diagram showing an example of a conventional disk device.

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

9…セクタ 10…媒体 11…0ゾーン 12…ユーザデータエリア 13…交換テーブル領域 14…アクセスカウントテーブル領域 15…1ゾーン 16…nー2ゾーン 17…nー1ゾーン 20…リードライト制御部 21…駆動部 30…システムコントローラ 40…アクセスカウントメモリ 41…アクセスカウントエントリ 42…リードカウント 43…ライトカウント 50…交換メモリ 60…データバッファメモリ 61…交換メモリメントリ 70…誤り訂正部 80…上位インタフェース 100,103…ディスク装置 101…ディスクドライブ 102,104…ディスクコントローラ 200…上位装置 9 ... Sector 10 ... Medium 11 ... 0 zone 12 ... User data area 13 ... Exchange table area 14 ... Access count table area 15 ... 1 zone 16 ... n-2 zone 17 ... n-1 zone 20 ... Read / write control section 21 ... Drive unit 30 ... System controller 40 ... Access count memory 41 ... Access count entry 42 ... Read count 43 ... Write count 50 ... Exchange memory 60 ... Data buffer memory 61 ... Exchange memory memory 70 ... Error correction unit 80 ... Upper interface 100, 103 ... Disk device 101 ... Disk drives 102, 104 ... Disk controller 200 ... Upper device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 着脱可能な媒体を使用するディスク装置
において、 媒体に対するアクセス情報を格納するアクセス情報格納
領域と、 データブロックの配置情報を格納するデータブロック管
理領域とを有し、 ディスク装置にディスク媒体を装着する際、前記データ
ブロック管理領域から管理情報を読み出し、ディスク媒
体排出時には、データブロックのアクセス情報とデータ
ブロックの配置情報を媒体上に再保存するように構成し
たことを特徴とするディスク装置。
1. A disk device using a removable medium, comprising: an access information storage area for storing access information for the medium; and a data block management area for storing data block arrangement information. A disc characterized in that when the medium is loaded, the management information is read from the data block management area, and when the disc medium is ejected, the access information of the data block and the arrangement information of the data block are re-stored on the medium. apparatus.
【請求項2】 前記アクセス情報格納領域とデータブロ
ック管理領域は着脱可能な媒体上の各ゾーン毎に配置し
たことを特徴とする請求項1記載のディスク装置。
2. The disk device according to claim 1, wherein the access information storage area and the data block management area are arranged for each zone on a removable medium.
【請求項3】 前記アクセス情報格納領域とデータブロ
ック管理領域の内容を保存するメモリを有し、 データブロックの読み書きの際に、前記メモリの内容を
参照して媒体上の情報の読み書きの制御およびデータバ
ッファに格納するデータブロックの状態を制御すること
を特徴とする請求項1記載のディスク装置。
3. A memory for storing the contents of the access information storage area and the data block management area is provided, and when the data block is read or written, the content of the memory is referenced to control the reading or writing of information on the medium. 2. The disk device according to claim 1, wherein a state of a data block stored in the data buffer is controlled.
【請求項4】 ゾーンビットレコーディング方式を採用
するディスク装置において、 メモリの内容によりアクセス頻度の高いデータブロック
を外周のゾーンに再配置するように構成したことを特徴
とする請求項2記載のディスク装置。
4. A disk device adopting the zone bit recording method, wherein a data block having a high access frequency is relocated to an outer zone depending on the contents of the memory. ..
【請求項5】 前記データブロックの再配置を上位装置
の介在なしにディスク装置内で処理するように構成した
ことを特徴とする請求項4記載のディスク装置。
5. The disk device according to claim 4, wherein the relocation of the data block is configured to be processed in the disk device without intervention of a host device.
JP4038374A 1992-01-30 1992-01-30 Disk device Pending JPH05210915A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4038374A JPH05210915A (en) 1992-01-30 1992-01-30 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4038374A JPH05210915A (en) 1992-01-30 1992-01-30 Disk device

Publications (1)

Publication Number Publication Date
JPH05210915A true JPH05210915A (en) 1993-08-20

Family

ID=12523511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4038374A Pending JPH05210915A (en) 1992-01-30 1992-01-30 Disk device

Country Status (1)

Country Link
JP (1) JPH05210915A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319625A (en) * 1996-05-24 1997-12-12 Nec Corp Area allocating system for multizone recording disk
JPH103412A (en) * 1996-06-19 1998-01-06 Nec Software Ltd Magnetic disk file relocation system
WO2009142178A1 (en) * 2008-05-20 2009-11-26 シャープ株式会社 Recording method, recording device, optical disc, optical disc manufacturing method, and optical disc drive device
JP2010191539A (en) * 2009-02-16 2010-09-02 Nec Corp Storage device, data relocation method and program
JP2012113662A (en) * 2010-11-26 2012-06-14 Fujitsu Ltd Access control program, access control method and information processing device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01179280A (en) * 1987-12-29 1989-07-17 Osaka Gas Co Ltd Method for storing rewritable recording medium and for allocating store area
JPH0334158A (en) * 1989-06-30 1991-02-14 Hitachi Ltd Data recorder
JPH03104056A (en) * 1989-09-19 1991-05-01 Hitachi Ltd Information recording and reproducing method for rotary type information recording and reproducing device
JPH03268037A (en) * 1990-03-19 1991-11-28 Hitachi Maxell Ltd Data editing system
JPH0431491A (en) * 1990-05-25 1992-02-03 Tonen Corp Manufacture of clean carbonaceous pitch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01179280A (en) * 1987-12-29 1989-07-17 Osaka Gas Co Ltd Method for storing rewritable recording medium and for allocating store area
JPH0334158A (en) * 1989-06-30 1991-02-14 Hitachi Ltd Data recorder
JPH03104056A (en) * 1989-09-19 1991-05-01 Hitachi Ltd Information recording and reproducing method for rotary type information recording and reproducing device
JPH03268037A (en) * 1990-03-19 1991-11-28 Hitachi Maxell Ltd Data editing system
JPH0431491A (en) * 1990-05-25 1992-02-03 Tonen Corp Manufacture of clean carbonaceous pitch

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09319625A (en) * 1996-05-24 1997-12-12 Nec Corp Area allocating system for multizone recording disk
JPH103412A (en) * 1996-06-19 1998-01-06 Nec Software Ltd Magnetic disk file relocation system
WO2009142178A1 (en) * 2008-05-20 2009-11-26 シャープ株式会社 Recording method, recording device, optical disc, optical disc manufacturing method, and optical disc drive device
US8526278B2 (en) 2008-05-20 2013-09-03 Sharp Kabushiki Kaisha Recording method, recording device, optical disc, optical disc manufacturing method, and optical disc drive device
JP2010191539A (en) * 2009-02-16 2010-09-02 Nec Corp Storage device, data relocation method and program
JP2012113662A (en) * 2010-11-26 2012-06-14 Fujitsu Ltd Access control program, access control method and information processing device

Similar Documents

Publication Publication Date Title
US5835930A (en) One or more logical tracks per physical track in a headerless disk drive
US5784220A (en) Magnetic disk apparatus, recording and accessing method for performing density recording
US5603002A (en) Hard disk drive having buffer memory employing directory based cache controller with data replacement scheme
US5535355A (en) Controller for a storage device which allows either prestored or user defined firmware to be executed
JP2557203B2 (en) Fuzzy packing method and data storage system
US5274507A (en) Parallel data encoding for moving media
JPH0334158A (en) Data recorder
JPH05210915A (en) Disk device
US5239424A (en) Information recording/reproducing apparatus for recording information and verifying recorded information
JPH05257613A (en) Multi-head loading hard disk device
JPH0434764A (en) Magnetic disc
JPH03290873A (en) Disk type storage device, controller of disk type storage device, and control method for disk type storage device
JP2623238B2 (en) Information playback method
JP3409306B2 (en) Disk controller
JP2834081B2 (en) Magnetic disk controller
JP4782739B2 (en) Disk unit
JP3341094B2 (en) Recording medium reading device
JP3402289B2 (en) Magnetic disk drive
JP2002216426A (en) Information recording system
JPH06325494A (en) Defect relieving device for memory device
JP2503371B2 (en) Disk system
JPH0845190A (en) Hard disk device
JPH11232046A (en) Magnetic disk device
JPS6149229A (en) Information processor
JPH06290547A (en) High-speed data transferring method