JPH0644011A - Magnetic disk device - Google Patents

Magnetic disk device

Info

Publication number
JPH0644011A
JPH0644011A JP4095724A JP9572492A JPH0644011A JP H0644011 A JPH0644011 A JP H0644011A JP 4095724 A JP4095724 A JP 4095724A JP 9572492 A JP9572492 A JP 9572492A JP H0644011 A JPH0644011 A JP H0644011A
Authority
JP
Japan
Prior art keywords
magnetic disk
data
storage area
volatile memory
memory
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.)
Withdrawn
Application number
JP4095724A
Other languages
Japanese (ja)
Inventor
Yasuhiro Tajima
康弘 田嶋
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 JP4095724A priority Critical patent/JPH0644011A/en
Publication of JPH0644011A publication Critical patent/JPH0644011A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To considerably shorten the access time of a magnetic disk device by accessing to a non-volatile memory on data with much access rotation. CONSTITUTION:It is judged whether data on the physical address of a magnetic disk which is to be accessed from now exists in a data storage area in the non-volatile memory 3 or not by a flag string existing in the memory. When it exists in the data storage area, the data storage area concerned is searched, and a data write or read operation is executed as if the area is the magnetic disk 7. When it dose not exist in the data storage area, the magnetic disk 7 is accessed. When a data saving reservation flag in a statistic information is turned on, data on the data storage area is saving-operated at the time of reading the magnetic disk 7, and bit unit information concerned on the flag string existing in the memory is turned on.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は磁気ディスク装置に関
し、特にそのアクセス制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk device and, more particularly, to an access control system therefor.

【0002】[0002]

【従来の技術】磁気ディスク装置における従来のアクセ
ス制御方式は、1回のアクセスの度に磁気ディスクに対
して物理的にデータの書込みまたは読出し動作を行う
か、または、読出し動作の場合、その直前にキャッシュ
メモリ内に読込まれている内容の中に、読出しを要求さ
れた磁気ディスクの物理アドレスのデータが存在すると
き、そのキャッシュメモリ内に読込まれている該当する
データを要求元の処理プログラムに対して返送するとい
う手段によっている。
2. Description of the Related Art A conventional access control method in a magnetic disk device is to physically write or read data to or from a magnetic disk each time an access is made, or in the case of a read operation, immediately before that. When there is data at the physical address of the magnetic disk requested to be read in the contents read in the cache memory, the corresponding data read in the cache memory is sent to the requesting processing program. It is by means of returning it to the other party.

【0003】[0003]

【発明が解決しようとする課題】上述したような磁気デ
ィスク装置における従来のアクセス制御方式では、デー
タの授受を高速に行うためには、物理的なアクセス時間
が短い磁気ディスクを使用するか、または、プログラム
自身が磁気ディスク装置に対してデータを格納す方法お
よび磁気ディスクに対するアクセスタイミングを意識
し、アクセス時間が短くなるようにプログラムを作成す
る必要があるという欠点がある。また、磁気ディスクの
物理的なアクセス時間の短縮には限界があり、装置が高
価になるという問題点も有している。
In the conventional access control method in the magnetic disk device as described above, in order to transfer data at high speed, a magnetic disk having a short physical access time is used, or However, there is a drawback in that the program itself needs to be created so as to shorten the access time, taking into consideration the method of storing data in the magnetic disk device and the access timing to the magnetic disk. Further, there is a limit to the reduction of the physical access time of the magnetic disk, and there is a problem that the apparatus becomes expensive.

【0004】[0004]

【課題を解決するための手段】本発明の磁気ディスク装
置は、バッテリバックアップされた大容量の不揮発性メ
モリと、前記不揮発性メモリの一定領域ごとのデータの
誤りをチェックするデータエラー検出部と、磁気ディス
クの一定領域に対するアクセス回数の統計処理を行いそ
の統計情報によって前記不揮発性メモリをアクセスする
制御部と、前記制御部の動作を指示するプログラムを格
納する読出し専用メモリとを備えている。
A magnetic disk device according to the present invention comprises a battery-backed large-capacity non-volatile memory, and a data error detection unit for checking data errors in a predetermined area of the non-volatile memory. A controller is provided for statistically processing the number of accesses to a certain area of the magnetic disk and accessing the nonvolatile memory based on the statistical information, and a read-only memory for storing a program instructing the operation of the controller.

【0005】[0005]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0006】図1は本発明の一実施例を示すブロック
図、図2は図1の実施例の不揮発性メモリの内容の例を
示すフォーマット図、図3は図1の実施例のデータ処理
動作を示すフローチャート、図4は図1の実施例のヒッ
ト率計算動作を示すフローチャートである。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a format diagram showing an example of contents of a nonvolatile memory of the embodiment of FIG. 1, and FIG. 3 is a data processing operation of the embodiment of FIG. 4 is a flowchart showing the hit rate calculation operation of the embodiment of FIG.

【0007】図1において、本実施例の磁気ディスク装
置10は、本装置を利用する上位システム9から、イン
タフェース部1を介して処理コマンドを受取る。制御部
(CPU)8は、そのコマンドに対応する処理プログラ
ムを読出し専用メモリ(ROM)2から読出し、その処
理プログラムに従ってデータ処理を行う。
In FIG. 1, the magnetic disk device 10 of this embodiment receives a processing command from the host system 9 using this device via the interface section 1. The control unit (CPU) 8 reads a processing program corresponding to the command from the read-only memory (ROM) 2 and performs data processing according to the processing program.

【0008】磁気ディスク7に対してデータの書込みま
たは読出し動作を行う場合は、ハードウエア制御部6を
介して磁気ディスク7に対してデータの書込みまたは読
出しの処理を行う。不揮発性メモリ3は、バッテリ5に
よってバックアップされており、磁気ディスク装置10
の電源が切断されても、その記憶内容を保持している。
不揮発性メモリ3には、アクススに関する情報と、それ
を統計処理した結果と、磁気ディスク7に記録したデー
タと同じデータと、その位置属性を示す管理情報とを記
憶している。データエラー検出部4は、不揮発性メモリ
3内のデータに対するアクセスのとき、その内容の一部
破壊を含むデータの誤りをチェックする。
When performing a data write or read operation on the magnetic disk 7, a data write or read process is performed on the magnetic disk 7 via the hardware control section 6. The non-volatile memory 3 is backed up by a battery 5, and the magnetic disk device 10
It retains its memory contents even when the power is turned off.
The non-volatile memory 3 stores information about the ax, the result of statistical processing of the information, the same data as the data recorded on the magnetic disk 7, and the management information indicating the position attribute. When accessing the data in the non-volatile memory 3, the data error detector 4 checks an error in the data including partial destruction of the content.

【0009】図2において、(a)に示すメモリ内存在
フラグ列11は、磁気ディスク7の物理的な一定領域、
例えばセクタ等、にビット単位に対応したビット単位情
報11aを有しており、磁気ディスク7のその領域のデ
ータがこの不揮発性メモリ3に存在しているために、不
揮発性メモリ3を磁気ディスク7の代りに処理の対象と
することができることを示す情報である。(b)に示す
統計情報12は、データのアクセス回数に基く統計情報
を計算するためのテーブルであり、磁気ディスク7の物
理的な一定領域毎に、何回アクセスが発生したかという
情報を記憶するアクセスカウンタ12cと、その情報を
他の領域に関する情報と比較判断するため、不揮発性メ
モリ3上で処理の対象とするためのデータセーブ存在フ
ラグ12aおよびデータセーブ予約フラグ12bとを有
している。(c)に示すアクセスインデックス13は、
不揮発性メモリ3のどこに該当するデータが格納されて
いるか示す位置情報が記憶されており、メモリ内存在フ
ラグ列11によって、これからアクセスしようとする磁
気ディスク7の物理アドレスのデータが、不揮発性メモ
リ3内に存在していることが判明したとき、このアクセ
スインデックス13を利用して該当するデータの先頭の
位置を高速に捜すことができる。(d)に示すデータ格
納エリア14は、磁気ディスク7の物理的な情報格納エ
リアに対応し、あたかも磁気ディスク7に対してデータ
を処理するが如く処理を行うことができる。
In FIG. 2, an in-memory presence flag string 11 shown in FIG. 2A is a physical fixed area of the magnetic disk 7,
For example, a sector or the like has bit unit information 11a corresponding to a bit unit, and since the data of the area of the magnetic disk 7 exists in this nonvolatile memory 3, the nonvolatile memory 3 is stored in the magnetic disk 7 It is information indicating that it can be targeted for processing instead of. The statistical information 12 shown in (b) is a table for calculating statistical information based on the number of times data is accessed, and stores information on how many times access has occurred in each physical fixed area of the magnetic disk 7. Access counter 12c, and a data save existence flag 12a and a data save reservation flag 12b to be processed on the non-volatile memory 3 in order to compare and judge the information with information on other areas. . The access index 13 shown in (c) is
Position information indicating where in the non-volatile memory 3 the corresponding data is stored is stored, and by the in-memory presence flag string 11, the data of the physical address of the magnetic disk 7 to be accessed from now on is stored in the non-volatile memory 3. When it is found that it exists in the inside, the access index 13 can be used to search for the head position of the corresponding data at high speed. The data storage area 14 shown in (d) corresponds to the physical information storage area of the magnetic disk 7, and processing can be performed as if the data were processed on the magnetic disk 7.

【0010】次に上述のように構成した実施例の動作に
ついて説明する。
Next, the operation of the embodiment configured as described above will be described.

【0011】データ処理動作は、図3に示すように、ま
ずステップ21において、これからアクセスしようとす
る磁気ディスク7の物理アドレスのデータが、不揮発性
メモリ3内のデータ格納エリア14に存在しているか否
かをメモリ内存在フラグ列11によって判断する。デー
タ格納エリア14に存在しているときは、ステップ26
に移行し、該当するデータ格納エリア14を捜してその
エリアが恰も磁気ディスク7であるが如くデータの書込
みまたは読出し動作を行う。データ格納エリア14に存
在していないときは、ステップ22に移行し、磁気ディ
スク7に対してアクセスを行う。統計情報12内のデー
タセーブ予約フラグ12bがオンの場合は(ステップ2
3)、磁気ディスク7に対する読出し動作のとき、デー
タ格納エリア14に対するデータのセーブ動作を行い
(ステップ24)、メモリ内存在フラグ列11の該当す
るビット単位情報11aをオンとする(ステップ2
5)。
In the data processing operation, as shown in FIG. 3, first in step 21, the data of the physical address of the magnetic disk 7 to be accessed is present in the data storage area 14 in the non-volatile memory 3. Whether or not it is determined by the in-memory presence flag string 11. If it exists in the data storage area 14, step 26
Then, the corresponding data storage area 14 is searched, and the data writing or reading operation is performed as if the area is the magnetic disk 7. If it does not exist in the data storage area 14, the process proceeds to step 22 and the magnetic disk 7 is accessed. If the data save reservation flag 12b in the statistical information 12 is on (step 2
3) When the read operation is performed on the magnetic disk 7, a data save operation is performed on the data storage area 14 (step 24), and the corresponding bit unit information 11a of the in-memory presence flag string 11 is turned on (step 2).
5).

【0012】ステップ26またはステップ25の処理が
終了したとき、または、ステップ23においてデータセ
ーブ予約フラグ12bがオフのとき、ステップ27に移
行して統計情報12のアクセスカウンタ12cのアクセ
ス回数を更新する。次にステップ28において、ステッ
プ27で処理した内容を基に、アクセス頻度の高い物理
アドレスの領域を統計処理によって求め、ステップ29
において、不揮発性メモリ3内で処理する条件に合致す
るか否かの判断を行う。合致しているときは、次回のア
クセスのときに不揮発性メモリ3を使用することを設定
するため、データセーブ予約フラグ12bをオンとする
処理を行う(ステップ30)。
When the processing of step 26 or step 25 is completed, or when the data save reservation flag 12b is off in step 23, the process proceeds to step 27 and the access count of the access counter 12c of the statistical information 12 is updated. Next, in step 28, based on the contents processed in step 27, the area of the physical address with high access frequency is obtained by statistical processing, and step 29
At, it is determined whether or not the conditions for processing in the non-volatile memory 3 are met. If they match, the data save reservation flag 12b is turned on to set the use of the non-volatile memory 3 at the next access (step 30).

【0013】ヒット率計算動作は、必要において起動さ
れる処理であり、図4に示す動作を行う。すなわち、ま
ずステップ31において、データ格納エリア14のアク
セスヒット率を、統計情報12に基いて計算する。ヒッ
ト率が全体的に低下している場合は(ステップ32)、
データの磁気ディスク7へ書込み(ステップ33)と、
統計情報12のデータセーブ存在フラグ12aをオフに
する処理(ステップ34)とを行って、不揮発性メモリ
3の該当する部分または全ての部分の使用を取止める処
理を行う。
The hit rate calculation operation is a process which is activated when necessary, and performs the operation shown in FIG. That is, first, in step 31, the access hit rate of the data storage area 14 is calculated based on the statistical information 12. If the hit rate is declining overall (step 32),
Writing data to the magnetic disk 7 (step 33),
A process of turning off the data save existence flag 12a of the statistical information 12 (step 34) is performed, and a process of stopping the use of the corresponding part or all parts of the nonvolatile memory 3 is performed.

【0014】なお、不揮発性メモリ3の容量が制限され
ている場合は、統計情報12の処理を先に行ってからデ
ータ格納エリア14を使用するように制御することによ
り、不揮発性メモリ3上の同一エリアに統計情報12と
アクセスインデックス13とデータ格納エリア14とを
マッピングすることができるため、不揮発性メモリ3を
有効に使用することが可能となる。
When the capacity of the non-volatile memory 3 is limited, the statistical information 12 is processed first and then the data storage area 14 is controlled to be used. Since the statistical information 12, the access index 13, and the data storage area 14 can be mapped in the same area, the non-volatile memory 3 can be effectively used.

【0015】[0015]

【発明の効果】以上説明したように、本発明の磁気ディ
スク装置は、バッテリバックアップされた大容量の不揮
発性メモリを設け、アクセス回数の統計処理を行ってそ
の統計情報によって不揮発性メモリに格納するデータを
選別変更し、アクセス回数の多いデータに対しては磁気
ディスクの代りに不揮発性メモリに対してアクセスする
ことができるようにすることにより、磁気ディスク装置
のアクセス時間を大幅に短縮することが可能となるとい
う効果がある。
As described above, the magnetic disk device of the present invention is provided with a large-capacity non-volatile memory backed up by a battery, performs statistical processing of the number of accesses, and stores the statistical information in the non-volatile memory. By selecting and changing the data so that the frequently accessed data can be accessed to the non-volatile memory instead of the magnetic disk, the access time of the magnetic disk device can be significantly reduced. There is an effect that it becomes possible.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1の実施例の不揮発性メモリの内容の例を示
すフォーマット図である。
FIG. 2 is a format diagram showing an example of contents of a nonvolatile memory of the embodiment of FIG.

【図3】図1の実施例のデータ処理動作を示すフローチ
ャートである。
FIG. 3 is a flowchart showing a data processing operation of the embodiment of FIG.

【図4】図1の実施例のヒット率計算動作を示すフロー
チャートである。
FIG. 4 is a flowchart showing a hit rate calculation operation of the embodiment of FIG.

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

1 インタフェース部 2 専用メモリ(ROM) 3 不揮発性メモリ 4 データエラー検出部 5 バッテリ 6 ハードウエア制御部 7 磁気ディスク 8 制御部(CPU) 9 上位システム 10 磁気ディスク装置 11 メモリ内存在フラグ列 11a ビット単位情報 12 統計情報 12a データセーブ存在フラグ 12b データセーブ予約フラグ 12c アクセスカウンタ 13 アクセスインデックス 14 格納エリア 21〜34 ステップ 1 interface unit 2 dedicated memory (ROM) 3 non-volatile memory 4 data error detection unit 5 battery 6 hardware control unit 7 magnetic disk 8 control unit (CPU) 9 host system 10 magnetic disk device 11 presence flag string in memory 11a bit unit Information 12 Statistical information 12a Data save existence flag 12b Data save reservation flag 12c Access counter 13 Access index 14 Storage area 21 to 34 steps

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 バッテリバックアップされた大容量の不
揮発性メモリと、前記不揮発性メモリの一定領域ごとの
データの誤りをチェックするデータエラー検出部と、磁
気ディスクの一定領域に対するアクセス回数の統計処理
を行いその統計情報によって前記不揮発性メモリをアク
セスする制御部と、前記制御部の動作を指示するプログ
ラムを格納する読出し専用メモリとを備えることを特徴
とする磁気ディスク装置。
1. A large-capacity non-volatile memory backed up by a battery, a data error detection unit for checking a data error for each constant area of the non-volatile memory, and statistical processing of the number of accesses to a certain area of a magnetic disk. A magnetic disk device comprising: a controller that accesses the non-volatile memory based on statistical information of the execution; and a read-only memory that stores a program that instructs the operation of the controller.
JP4095724A 1992-04-16 1992-04-16 Magnetic disk device Withdrawn JPH0644011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4095724A JPH0644011A (en) 1992-04-16 1992-04-16 Magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4095724A JPH0644011A (en) 1992-04-16 1992-04-16 Magnetic disk device

Publications (1)

Publication Number Publication Date
JPH0644011A true JPH0644011A (en) 1994-02-18

Family

ID=14145426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4095724A Withdrawn JPH0644011A (en) 1992-04-16 1992-04-16 Magnetic disk device

Country Status (1)

Country Link
JP (1) JPH0644011A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079969A (en) * 2008-09-25 2010-04-08 Sharp Corp Optical disk drive control unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010079969A (en) * 2008-09-25 2010-04-08 Sharp Corp Optical disk drive control unit

Similar Documents

Publication Publication Date Title
US7117309B2 (en) Method of detecting sequential workloads to increase host read throughput
JP3183993B2 (en) Disk control system
JP2014160450A (en) Data storage device and writing method
WO2002001365A2 (en) Non-volatile cache
JPH07146820A (en) Control method for flash memory and information processor using the same
JPH037978B2 (en)
JPH09237225A (en) Computer having cache function and method for controlling cache memory
JPH1063578A (en) Information recording and reproducing device
US10162760B2 (en) Hibernation based on page source
US6693754B2 (en) Method and apparatus for a disc drive adaptive file system
CN111324549A (en) Memory and control method and device thereof
JPH04259048A (en) Pre-read data control system using statistic information
JPH0644011A (en) Magnetic disk device
JPH06348600A (en) Disk cache device
JPH0863397A (en) Method for controlling disk cache
JPH10171713A (en) Disk storage device and method for controlling cache applied to the same device
JP3865530B2 (en) Nonvolatile semiconductor memory and semiconductor memory device
JP2728949B2 (en) Control method of optical disk subsystem
JP2634867B2 (en) Disk cache data transfer control method
JPH05225062A (en) Disk cache device
JP2746978B2 (en) External storage device with write protection
JPS6013360A (en) Storage device
JP4724289B2 (en) Data processing apparatus and memory access control method for data processing apparatus
JPH02165354A (en) Auxiliary storage device
JPH0250743A (en) External storage subsystem

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990706