JPH06243040A - Disk cache control system - Google Patents

Disk cache control system

Info

Publication number
JPH06243040A
JPH06243040A JP5051405A JP5140593A JPH06243040A JP H06243040 A JPH06243040 A JP H06243040A JP 5051405 A JP5051405 A JP 5051405A JP 5140593 A JP5140593 A JP 5140593A JP H06243040 A JPH06243040 A JP H06243040A
Authority
JP
Japan
Prior art keywords
cache
data
area
stored
transferred
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.)
Granted
Application number
JP5051405A
Other languages
Japanese (ja)
Other versions
JP3066623B2 (en
Inventor
Shoshichi Munakata
昭七 宗像
Takayuki Kuribayashi
崇幸 栗林
Keiichi Yu
恵一 勇
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
Hitachi Asahi Electronics Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Asahi Electronics Co 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, Hitachi Asahi Electronics Co Ltd filed Critical Hitachi Ltd
Priority to JP5051405A priority Critical patent/JP3066623B2/en
Publication of JPH06243040A publication Critical patent/JPH06243040A/en
Application granted granted Critical
Publication of JP3066623B2 publication Critical patent/JP3066623B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To permit even a magnetic disk which does not have a cache function to inexpensively obtain the cache function without providing a private hardware by comparing the contents of a starting parameter with a cache control table when the number of starts is less than a prescribed value. CONSTITUTION:When the number of starts is larger than a prescribed value, regular data transfer is executed, namely, data only for the number of starts are read out of the magnetic disk 4 and they are transferred to the user area of a main storage device 2. When the number of starts is less than the prescribed value, a system shifts to a cache control processing. When data for the number of starts are previously stored in a cache area in a hardware-only area from a start address, data stored in the cache area is transferred and stored in the user area. When it is not stored in the cache area, data for the number of starts are transferred and stored in the user area from the start address, and data only for the number of succeeding starts are transferred and stored in the cache area in the hardware-only area as look-ahead data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、磁気ディスク記憶装置
を有するシステムにおけるディスクキャッシュ制御方式
に係り、特に、キャッシュ専用ハードウェアを設けるこ
となくキャッシュ機能を実現できるディスクキャッシュ
制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk cache control system in a system having a magnetic disk storage device, and more particularly to a disk cache control system capable of realizing a cache function without providing dedicated hardware for cache.

【0002】[0002]

【従来の技術】従来の技術においては、キャッシュ制御
部、キャッシュメモリ等キャッシュ専用のハードウェア
を付加する構成をとっていた。また、キャッシュメモリ
に格納される先読みデータも、ディスク回転待の間のト
ラック全てのデータをキャッシュメモリへ転送し保持す
るという方式となっている。この種の方式として、特開
平3−116221等が知られている。
2. Description of the Related Art In the prior art, cache dedicated hardware such as a cache controller and a cache memory is added. Further, the pre-read data stored in the cache memory is also a method of transferring and holding all the data of all tracks during the disk rotation waiting time to the cache memory. Japanese Patent Laid-Open No. 3-116221 and the like are known as this type of system.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術は、基本
的にキャッシユ専用の制御部およびメモリをハードウェ
アとして持っており、原価的に高価な作りとなってい
る。近年磁気ディスクの標準インタフェースとなってい
るSCSI I/Fにおいて、SCSIバスのデータ転
送速度が遅いため、磁気ディスク装置そのものの性能を
引き出せていないと言う問題があり、特にCOBOL言
語及び順編成ファイルのソート処理等の様にレコード単
位でデータを扱う処理において性能上問題があった。本
発明の目的は、キャッシユ機能を持たない磁気ディスク
でも専用のハードウェアを持つことなくキャッシユ機能
を安価に提供すると共に、COBOL言語等レコード単
位でデータを扱う処理に対しても処理性能を向上させる
ことにある。
The above-mentioned prior art basically has a control unit and a memory dedicated to the cache as hardware, and is expensive in cost. In the SCSI I / F, which has become the standard interface for magnetic disks in recent years, there is a problem that the performance of the magnetic disk device itself cannot be brought out because the data transfer speed of the SCSI bus is low. There was a performance problem in the processing of handling data in record units such as sort processing. An object of the present invention is to provide a cache function at a low cost without having dedicated hardware even for a magnetic disk that does not have a cache function, and to improve processing performance for processing data in record units such as COBOL language. Especially.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、主記憶装置のハードウェア専用領域に複数のキャッ
シュ用エリアを設け、磁気ディスク制御装置の制御部に
キャッシュ用エリア対応にキャッシュ制御テーブルを設
ける。そして、前記制御部は、中央処理装置から入出力
起動命令を受け、読み出し起動のとき、起動パラメータ
の起動数が所定値より大きな場合には、磁気ディスク装
置からデータを読み出し主記憶装置のユーザエリアに転
送格納する。起動数が所定値以下の場合は、起動パラメ
ータとキャッシュ制御テーブルの内容を比較し、一致し
たときは、一致したキャッシュ制御テーブルに対応する
キャッシュ用エリアのデータをユーザエリアに転送格納
する。不一致のときは、更新順位の低いキャッシュ制御
テーブルを、前記起動パラメータの内の起動アドレスを
該起動アドレスに起動数を加えたアドレスとした起動パ
ラメータで更新し、磁気ディスク装置から前記起動数の
倍のデータを読み出し、前半分のデータを前記ユーザエ
リアに転送格納し、後半分のデータを前記更新したキャ
ッシュ制御テーブルに対応するキャッシュ用エリアに先
読みデータとして転送格納するようにしている。
To achieve the above object, a plurality of cache areas are provided in a dedicated hardware area of a main storage device, and a cache control table corresponding to the cache areas is provided in a control unit of a magnetic disk control device. Set up. Then, the control unit receives an input / output activation command from the central processing unit, and when reading is activated, if the number of activations of the activation parameter is larger than a predetermined value, the controller reads data from the magnetic disk device and writes the data to the user area of the main storage device. Transfer to and store. If the number of activations is less than or equal to a predetermined value, the activation parameters and the contents of the cache control table are compared, and if they match, the data in the cache area corresponding to the matched cache control table is transferred and stored in the user area. If they do not match, the cache control table with the lowest update order is updated with a start parameter in which the start address of the start parameters is an address obtained by adding the number of starts to the start address. Data is read, the first half data is transferred and stored in the user area, and the second half data is transferred and stored as prefetch data in the cache area corresponding to the updated cache control table.

【0005】[0005]

【作用】上記の手段を取ることにより、起動パラメータ
の起動数が所定数より大きな場合には、磁気ディスク装
置から読み出されたデータはそのまま主記憶装置のユー
ザエリアに転送格納するが、起動数が所定数以下の場合
には、起動パラメータとキャッシュ制御テーブルの内容
が一致すれば、該テーブルに対応するキャッシュ用エリ
アに格納されている先読みデータがユーザエリアに転送
格納し、不一致ならば、更新順位の低いキャッシュ制御
テーブルの内容を更新して、起動パラメータのディスク
装置NOと起動数と、起動アドレスに起動数を加えて得
られるアドレスに書替え、起動数の倍のデータを磁気デ
ィスク装置から読み出し、前半分のデータを本来の指定
された読み出しデータとして前記ユーザエリアに転送格
納し、後半分のデータを前記更新したキャッシュ制御テ
ーブルに対応するキャッシュ用エリアに先読みデータと
して転送格納するようにしているので、キャッシユ専用
ハードウェアを備えていなくても、磁気ディスク制御装
置に多少手を加えることにより、少ないメモリ容量でキ
ャッシユ機能を安価、容易に実現することができる。
By taking the above means, when the number of activations of the activation parameter is larger than the predetermined number, the data read from the magnetic disk device is transferred and stored as it is in the user area of the main storage device. Is less than a predetermined number, if the start-up parameters and the contents of the cache control table match, the prefetch data stored in the cache area corresponding to the table is transferred and stored in the user area. The contents of the cache control table with the lower rank are updated, and the address is obtained by adding the disk device number and the number of start-up parameters, and the start-up address to the start-up address, and the data twice the start-up number is read from the magnetic disk device. , The first half of the data is transferred and stored in the user area as the originally designated read data, and the data of the second half is stored. Since the data is transferred and stored as prefetch data in the cache area corresponding to the updated cache control table, even if the cache dedicated hardware is not provided, by slightly modifying the magnetic disk control device, The cache function can be easily realized at low cost with a small memory capacity.

【0006】[0006]

【実施例】以下本発明の1実施例を図1〜図4により具
体的に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be specifically described below with reference to FIGS.

【0007】図1は、本発明におけるシステム構成を示
すブロック図であり、1はプログラムを解析実行しデー
タ転送受授を行うDMAC(DMAコントローラ)6を
具備した中央処理部(CPU)であり、2はユーザエリ
アおよびハードウェア専用領域を設けた主記憶装置、3
は磁気ディスク装置を制御する磁気ディスク制御装置
(DKC)である。7はDKCを制御するマイクロプロ
セッサ(MP)であり、4は磁気ディスク装置(DK
U)である。通常磁気ディスクへの起動は、CPU1よ
り入出力起動命令が発令され、データバス5を通してD
KC3へ転送される。DKC3では、マイクロプロセッ
サ7が、入出力起動命令の入出力起動パラメータを解析
し、DKU4へ起動をかけ、データバス5、DMAC6
を通して主記憶装置のユーザエリアへデータが、転送さ
れる。ここで、入出力起動パラメータは、図3に60と
して示されており、ディスク装置NO、コマンド、起動
アドレス、起動数、チェイニング テーブル アドレスか
らなる。本実施例では、詳細には後述するが、入出力起
動パラメータを解析して読み出し起動のとき、、起動数
(例えば、セクタ数)が所定値より大きければ、上述の
通常のデータ転送、すなわち、起動数だけのデータが磁
気ディスクから読み出され、主記憶装置のユーザエリア
へ転送される。起動数が所定値以下の場合には、キャッ
シュ制御処理へと移行する。すなわち、既に起動アドレ
スから起動数分のデータがハードウェア専用領域のキャ
ッシュ用エリアに格納されていれば、このキャッシュ用
エリアに格納されているデータがユーザエリアに転送記
憶されるが、キャッシュ用エリアに格納されていなけれ
ば、起動アドレスから起動数分のデータがユーザエリア
に転送記憶され、続く起動数分だけのデータが先読みデ
ータとしてハードウェア専用領域のキャッシュ用エリア
に転送記憶される。そして、これらの制御は後述する各
種テーブルを用いて行なわれる。
FIG. 1 is a block diagram showing a system configuration according to the present invention. Reference numeral 1 is a central processing unit (CPU) having a DMAC (DMA controller) 6 for analyzing and executing a program to transfer data. 2 is a main storage device provided with a user area and a dedicated hardware area, 3
Is a magnetic disk controller (DKC) for controlling the magnetic disk device. Reference numeral 7 is a microprocessor (MP) that controls the DKC, and 4 is a magnetic disk device (DK
U). Normally, when starting up to a magnetic disk, an I / O start-up command is issued from the CPU 1 and D is sent through the data bus 5.
Transferred to KC3. In the DKC 3, the microprocessor 7 analyzes the input / output activation parameters of the input / output activation instruction, activates the DKU 4, and activates the data bus 5 and the DMAC 6
The data is transferred to the user area of the main storage device through. Here, the input / output start-up parameter is shown as 60 in FIG. 3 and is composed of the disk device NO, command, start-up address, start-up number, and chaining table address. In the present embodiment, as will be described later in detail, when the read / start is performed by analyzing the input / output start parameters, if the number of starts (for example, the number of sectors) is larger than a predetermined value, the above-mentioned normal data transfer, that is, Data corresponding to the number of boots is read from the magnetic disk and transferred to the user area of the main storage device. If the number of activations is less than or equal to the predetermined value, the process proceeds to cache control processing. In other words, if the data for the number of activations from the activation address has already been stored in the cache area of the dedicated hardware area, the data stored in this cache area will be transferred to the user area. If not stored, the data for the number of activations from the activation address is transferred and stored in the user area, and the data for the number of subsequent activations is transferred and stored as the prefetch data in the cache area of the dedicated hardware area. Then, these controls are performed using various tables described later.

【0008】図2は、主記憶装置2のハードウェア専用
領域に、本実施例にて使用するキャッシュ用エリア1
0、11およびチェイニングテーブル12を割り当てた
様子を示した図である。図3は、本実施例において使
用、作成する制御情報およびそのテーブルを示してい
る。キャッシュ制御テーブルは、ハードウェア専用領域
のキャッシュ用エリアに格納されているデータに関する
パラメータが記述されており、キャッシュ用エリア1、
2に対応して2面用意され、これらのテーブルはマイク
ロプロセッサ7の内部メモリに用意されている。キャッ
シュ制御フラグは最後に更新したテーブルを指示するフ
ラグであり、マイクロプロセッサ7内に用意されてい
る。磁気ディスク入出力起動パラメータは磁気ディスク
起動時にマイクロプロセッサ7に送られるものであり、
チェイニングテーブル70はDKC3内のレジスタに用
意され、チェイニングテーブル80はハードウェア専用
領域に設けられたチェイニングテーブル12である。
FIG. 2 shows a cache area 1 used in this embodiment in a dedicated hardware area of the main storage device 2.
It is the figure which showed the mode that 0, 11 and the chaining table 12 were allocated. FIG. 3 shows control information used and created in this embodiment and its table. The cache control table describes parameters related to the data stored in the cache area of the dedicated hardware area.
Two tables are prepared corresponding to 2, and these tables are prepared in the internal memory of the microprocessor 7. The cache control flag is a flag for designating the last updated table, and is prepared in the microprocessor 7. The magnetic disk input / output start parameter is sent to the microprocessor 7 when the magnetic disk is started,
The chaining table 70 is prepared in a register in the DKC 3, and the chaining table 80 is the chaining table 12 provided in the dedicated hardware area.

【0009】図4は、本実施例における処理の概略フロ
ーを示している。CPU1よりDKC3へ入出力起動命
令が発行されると、DKC3は、MP7により入出力起
動命令を受理して処理を行ない、読み出し起動のとき処
理100に移る。処理100にて、DKU4への起動数
をチェックする。本実施例では起動数が4セクタ(レコ
ード)以下か否かを判定している。ここで、起動数が、
4セクタ以下の場合、本発明におけるキャッシュ制御処
理へと移行する。4セクタより大きな場合は通常処理を
行ない、起動アドレスから起動数分のセクタのデータを
ユーザエリアに転送記憶する。すなわち、チェイニング
テーブル70にて示されているユーザエリア内のデータ
転送アドレスへ、起動数に対応するデータ転送数(バイ
ト数)(1セクタは256Bとしている)だけ転送す
る。チェイニングテーブル70のデータ転送アドレス、
データ転送数は入出力起動パラメータ発行時にセットさ
れる。なお、上記の判定の基準となる起動数、すなわ
ち、キャッシュ制御処理へと移行する起動数は、4セク
タに限られるわけではなく、任意に指定できるが、余り
大きな起動数を指定すると、ハードウェア専用領域にデ
ータを格納できなくなり、また、磁気ディスクからデー
タを読み出すために要する時間が長くなり、次の命令の
実行に支障を来たすことになる。
FIG. 4 shows a schematic flow of processing in this embodiment. When the CPU 1 issues an input / output activation instruction to the DKC 3, the DKC 3 accepts the input / output activation instruction by the MP 7 and performs processing, and when reading is activated, the processing proceeds to processing 100. In process 100, the number of activations to DKU4 is checked. In this embodiment, it is determined whether the number of activations is 4 sectors (record) or less. Here, the number of startup is
When the number of sectors is 4 or less, the cache control process of the present invention is started. If it is larger than 4 sectors, normal processing is performed, and the data of sectors corresponding to the number of activations from the activation address is transferred and stored in the user area. That is, the number of data transfers (the number of bytes) corresponding to the number of activations (one sector is 256B) is transferred to the data transfer address in the user area indicated by the chaining table 70. Data transfer address of the chaining table 70,
The number of data transfers is set when the I / O activation parameter is issued. It should be noted that the number of activations that is the criterion for the above determination, that is, the number of activations that shifts to the cache control processing is not limited to 4 sectors, and can be arbitrarily specified, but if an excessively large number of activations is specified, the hardware Data cannot be stored in the dedicated area, and the time required to read the data from the magnetic disk becomes long, which hinders the execution of the next instruction.

【0010】処理101では、入出力起動パラメータ
と、キャッシュ制御テーブル40または50内のパラメ
ータであるディスク装置NO、起動アドレス、起動数と
が同一値であるか比較計算する。比較結果が同一値で一
致したならば、キャシシュヒットしたと考え処理110
へ移行する。なお、本実施例では、キャッシュ制御テー
ブル40、50と2面設定しているが、本テーブルも任
意に増すことができる。処理110では、キャシシュヒ
ットしたテーブルに対応したハードウェア専用領域のキ
ャッシュ用エリアに格納されているデータを、チェイニ
ングテーブル70にて示されているユーザエリア内のデ
ータ転送アドレスへ、起動数に対応するデータ転送数
(バイト数)だけ転送する。入出力起動パラメータと、
キャッシュ制御テーブルのパラメータとの比較の結果、
キャッシュ制御テーブル40、50のいずれとも一致が
取れなかった場合には、処理102へ移行する。
In the process 101, the input / output activation parameter and the parameters in the cache control table 40 or 50, the disk device NO, the activation address, and the number of activations, are compared to see if they are the same value. If the comparison results show the same value and match, it is considered that a cashish hit has occurred and the process 110
Move to. In this embodiment, the cache control tables 40 and 50 are set on two sides, but this table can be arbitrarily increased. In the process 110, the data stored in the cache area of the dedicated hardware area corresponding to the cache hit table is set to the data transfer address in the user area shown in the chaining table 70 and set to the number of activations. Transfer only the corresponding data transfer count (byte count). I / O startup parameters,
As a result of comparison with the parameters of the cache control table,
If no match is found with either of the cache control tables 40 and 50, the process proceeds to step 102.

【0011】処理102では、キャッシュ制御フラグ3
0をチェックする。キャッシュ制御フラグは、キャッシ
ュ制御テーブル40、50のどちら側が最後に更新した
テーブル、すなわち、更新順位の高いテーブルかを示す
フラグであり、マイクロプロセッサ7内に記憶されてい
る。フラグは、オン(‘1')のとき1面目(キャッシ
ュ制御テーブル40)を更新している事を示し、オフ
(‘0')のとき2面目(キャッシュ制御テーブル5
0)を更新している事を示す。フラグはキャッシュ制御
テーブルの更新に伴い後述するように更新される。フラ
グがオンのときは処理103へ、オフのときは処理10
4へ移行する。
In process 102, cache control flag 3
Check 0. The cache control flag is a flag indicating which side of the cache control tables 40, 50 is the last updated table, that is, the table with the highest update order, and is stored in the microprocessor 7. The flag indicates that the first side (cache control table 40) is being updated when it is on ('1'), and the second side (cache control table 5) when it is off ('0').
0) is updated. The flag is updated as will be described later with the update of the cache control table. If the flag is on, proceed to step 103, and if it is off, proceed to step 10.
Go to 4.

【0012】処理103、104では、該当キャッシュ
制御テーブルの、ディスク装置NO、起動アドレス、起
動数を更新設定する。ここで、ディスク装置NOは、磁
気ディスク入出力起動バラメータ60内のディスク装置
NOを設定する。起動アドレスは、磁気ディスク入出力
起動パラメータ60内の起動アドレスに同パラメータ6
0内の起動数を加算した値を、起動アドレスとして設定
する。起動数には、同パラメータ60内の起動数そのも
のを設定する。この様にして各データ設定後、処理10
5へ移行する。なお、該当ハードウェア専用領域アドレ
スとしては対応するキャッシュ用エリアのアドレスが設
定されている。処理105では、キャッシュ制御フラグ
30を更新する。処理106では、DKU4を実際に起
動するパラメータを更新する。すなわち、キャッシユ用
先読みデータの読み取りを実行させる為、磁気ディスク
入出力起動パラメータ60内の起動数を2倍に設定し直
す。
In processes 103 and 104, the disk device number, the boot address, and the boot number of the corresponding cache control table are updated and set. Here, the disk device NO sets the disk device NO in the magnetic disk input / output activation parameter 60. The start address is the same as the start address in the magnetic disk input / output start parameter 60.
The value obtained by adding the number of activations within 0 is set as the activation address. As the number of activations, the number of activations itself in the parameter 60 is set. After setting each data in this way, the process 10
Go to 5. The address of the corresponding cache area is set as the address of the dedicated hardware area. In process 105, the cache control flag 30 is updated. In the process 106, the parameter for actually starting the DKU4 is updated. That is, in order to read the cache read-ahead data, the number of activations in the magnetic disk input / output activation parameter 60 is reset to double.

【0013】処理107では、チェイニングテーブルの
作成が行なわれる。すなわち、チェイニングテーブル8
0(ハードウェア専用領域のチェイニングテーブル12
と同じ)に対するハードウェア専用領域アドレスとデー
タ転送数(起動数)の設定およびチェイニングテーブル
70に対する次のチェイニングテーブルアドレスの設定
が行なわれる。ハードウェア専用領域アドレスとして
は、キャッシュ用エリア1あるいは2のアドレスを設定
し、データ転送数としては、チェイニングテーブル70
と同一値を設定し、次のチェイニングテーブルアドレス
としては、チェイニングテーブル12のアドレスを設定
する。設定終了後、処理108へ移行する。処理108
では、DKU4に対し実際に入出力起動をかける。DK
C3は、処理106で更新された磁気ディスク入出力起
動パラメータ60により、通常の読み込みデータを、す
なわち、起動アドレスから始まるチェイニングテーブル
70のデータ転送数だけのデータを、チェイニングテー
ブル70に示される主記憶装置2のユーザエリアのデー
タ転送アドレスへDKU4よりDMAC6を介してへ転
送する。次いで、チェイニングテーブル70の‘次のチ
ェイニングテーブルアドレス’によりハードウェア専用
領域のチェイニングテーブル12を参照し、そのハード
ウェア専用領域アドレス(キャッシュ用エリアのアドレ
ス)に、そのデータ転送数だけ、上記通常の読み込みデ
ータに引続いて読み出されるデータ(先読みデータ)を
DKU4よりDMAC6を介してへ転送する。CPU1
から磁気ディスク入出力命令発行され、読み出し起動の
場合、上述した処理がくり返される。
In step 107, a chaining table is created. That is, the chaining table 8
0 (chaining table 12 in the dedicated hardware area)
The hardware dedicated area address and the data transfer number (starting number) are set for the same) and the next chaining table address is set for the chaining table 70. The address of the cache area 1 or 2 is set as the dedicated hardware area address, and the chaining table 70 is set as the data transfer number.
The same value is set, and the address of the chaining table 12 is set as the next chaining table address. After the setting is completed, the process proceeds to step 108. Process 108
Then, actual input / output activation is applied to DKU4. DK
The C3 indicates in the chaining table 70 the normal read data, that is, the data corresponding to the number of data transfers of the chaining table 70 starting from the start address, by the magnetic disk input / output start-up parameter 60 updated in the process 106. The data is transferred from the DKU 4 to the data transfer address in the user area of the main memory 2 via the DMAC 6. Next, the chaining table 12 of the dedicated hardware area is referred to by the “next chaining table address” of the chaining table 70, and the dedicated hardware area address (address of the cache area) is set to the number of data transfers, The data (preread data) read subsequently to the normal read data is transferred from the DKU 4 to the DMAC 6. CPU1
When a magnetic disk input / output command is issued from, and reading is started, the above-described processing is repeated.

【0014】以上述べた実施例から分かる様に、ディス
クキャッシュを持たないシステムにおいて、ディスクD
KC3内のマイクロプロセッサ7に手を加える事によ
り、記憶装置のハードウェア専用領域を利用してハード
ウェアの追加無しで容易にキャッシユ機能を実現するこ
とができる。
As can be seen from the above-mentioned embodiments, in the system without the disk cache, the disk D
By modifying the microprocessor 7 in the KC3, the cache function can be easily realized by utilizing the dedicated hardware area of the storage device without adding hardware.

【0015】[0015]

【発明の効果】本発明によれば、ディスクキャッシュを
持たないシステムにおいて、キャッシユ専用ハードウェ
アを用意することなく、少ないメモリ容量でキャッシユ
機能を安価に実現できる。ディスク記憶装置、上位プロ
グラム(OSレベル)を変更することなくにキャッシユ
機能を組み込むことができる。COBOL言語等、高級
言語で扱うディスクアクセスの単位はレコード(セク
タ)単位であり処理の性能向上が計られる。
According to the present invention, in a system having no disk cache, the cache function can be realized at a low cost with a small memory capacity without preparing hardware dedicated to the cache. The cache function can be incorporated without changing the disk storage device and the upper program (OS level). The unit of disk access handled in a high-level language such as COBOL language is a record (sector) unit, and the processing performance can be improved.

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

【図1】本発明におけるシステム構成を示すブロック図
である。
FIG. 1 is a block diagram showing a system configuration in the present invention.

【図2】主記憶装置内の各エリアを説明するための図で
ある。
FIG. 2 is a diagram illustrating each area in a main storage device.

【図3】実施例において使用、作成する制御情報および
そのテーブルを示す図である。
FIG. 3 is a diagram showing control information used and created in the embodiment and its table.

【図4】実施例における処理の概略フローを示す図であ
る。
FIG. 4 is a diagram showing a schematic flow of a process in an example.

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

1 中央処理装置 2 主記憶装置 3 磁気ディスク制御装置 4 磁気ディスク装置 5 データバス 6 DMAC 7 マイクロプロセッサ 1 central processing unit 2 main memory unit 3 magnetic disk control unit 4 magnetic disk unit 5 data bus 6 DMAC 7 microprocessor

───────────────────────────────────────────────────── フロントページの続き (72)発明者 勇 恵一 愛知県尾張旭市晴丘町池上1番地 株式会 社日立製作所オフィスシステム事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yuichi Yuichi 1 Ikegami, Haruoka-cho, Owariasahi-shi, Aichi Incorporated Hitachi Office Systems Division

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中央処理装置と、磁気ディスク装置と、
制御部を有する磁気ディスク制御装置と、ユーザエリア
と通常プログラムからはアクセスできないハードウェア
専用領域を具備した主記憶装置とから成る計算機システ
ムにおけるディスクキャッシュ制御方式であって、 前記主記憶装置のハードウェア専用領域に複数のキャッ
シュ用エリアを設け、前記磁気ディスク制御装置の制御
部に前記キャッシュ用エリア対応にキャッシュ制御テー
ブルを設け、 前記制御部は、中央処理装置から入出力起動命令を受
け、読み出し起動のとき、起動パラメータの起動数が所
定値より大きな場合は、磁気ディスク装置からデータを
読み出し前記ユーザエリアに転送格納し、 起動数が所定値以下の場合は、前記起動パラメータとキ
ャッシュ制御テーブルの内容を比較し、一致したとき
は、一致したキャッシュ制御テーブルに対応する前記キ
ャッシュ用エリアのデータを前記ユーザエリアに転送格
納し、不一致のときは、更新順位の低いキャッシュ制御
テーブルを、前記起動パラメータの内の起動アドレスを
該起動アドレスに起動数を加えたアドレスとした起動パ
ラメータで更新し、磁気ディスク装置から前記起動数の
倍のデータを読み出し、前半分のデータを前記ユーザエ
リアに転送格納し、後半分のデータを前記更新したキャ
ッシュ制御テーブルに対応する前記キャッシュ用エリア
に先読みデータとして転送格納することを特徴とするデ
ィスクキャッシュ制御方式。
1. A central processing unit, a magnetic disk unit,
A disk cache control method in a computer system comprising a magnetic disk control device having a control unit and a main storage device having a user area and a hardware dedicated area inaccessible from a normal program. A plurality of cache areas are provided in a dedicated area, and a cache control table corresponding to the cache area is provided in the control unit of the magnetic disk control device. The control unit receives an input / output start instruction from the central processing unit and starts reading. If the number of startup parameters is greater than the specified value, the data is read from the magnetic disk device and transferred to the user area and stored. If the number of startup parameters is less than the specified value, the contents of the startup parameter and cache control table Compare and if matched, match cache The data in the cache area corresponding to the control table is transferred and stored in the user area, and when they do not match, the cache control table with the lowest update order is used, and the activation address in the activation parameters is used as the activation number. The data is updated by the start parameter that is the added address, the data twice as many as the start number is read from the magnetic disk device, the first half data is transferred and stored in the user area, and the second half data is stored in the updated cache control table. A disk cache control method characterized in that it is transferred and stored as preread data in the corresponding cache area.
JP5051405A 1993-02-17 1993-02-17 Disk cache control method Expired - Fee Related JP3066623B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5051405A JP3066623B2 (en) 1993-02-17 1993-02-17 Disk cache control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5051405A JP3066623B2 (en) 1993-02-17 1993-02-17 Disk cache control method

Publications (2)

Publication Number Publication Date
JPH06243040A true JPH06243040A (en) 1994-09-02
JP3066623B2 JP3066623B2 (en) 2000-07-17

Family

ID=12886032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5051405A Expired - Fee Related JP3066623B2 (en) 1993-02-17 1993-02-17 Disk cache control method

Country Status (1)

Country Link
JP (1) JP3066623B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4900979A (en) * 1987-05-28 1990-02-13 Kabushiki Kaisha Toshiba Color cathode ray apparatus provided with dynamic convergence means

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4900979A (en) * 1987-05-28 1990-02-13 Kabushiki Kaisha Toshiba Color cathode ray apparatus provided with dynamic convergence means

Also Published As

Publication number Publication date
JP3066623B2 (en) 2000-07-17

Similar Documents

Publication Publication Date Title
US6754793B2 (en) Method for flashing ESCD and variables into a ROM
US6012106A (en) Prefetch management for DMA read transactions depending upon past history of actual transfer lengths
US6374327B2 (en) Method of data migration
JP3183993B2 (en) Disk control system
US4593354A (en) Disk cache system
US20070005904A1 (en) Read ahead method for data retrieval and computer system
EP0335318A2 (en) Input and output control system
JP4308152B2 (en) Method, system, and product for reserving memory
JPH03160534A (en) Access control system for shared file
JPS62232773A (en) Identification of diskette
JP3566319B2 (en) Information storage device
JP3066623B2 (en) Disk cache control method
JPS6258351A (en) Optical disk cache system
JP2980326B2 (en) Disk controller
JPH09223049A (en) Disk array system
JP2811678B2 (en) Data processing device with cache memory
JPH09244932A (en) Disk array device
JP2001125754A (en) Data access method for disk array
JPH036646A (en) Data processor
JPS59172186A (en) Cache memory control system
JPH0743634B2 (en) Split volume control method
JPH09237224A (en) Disk array device
JPH0477916A (en) Magnetic disk device
JPH04111015A (en) Information recorder
JPH02311925A (en) Controller for external storage device of large capacity

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees