JPH02220155A - Magnetic disk controller - Google Patents
Magnetic disk controllerInfo
- Publication number
- JPH02220155A JPH02220155A JP1040264A JP4026489A JPH02220155A JP H02220155 A JPH02220155 A JP H02220155A JP 1040264 A JP1040264 A JP 1040264A JP 4026489 A JP4026489 A JP 4026489A JP H02220155 A JPH02220155 A JP H02220155A
- Authority
- JP
- Japan
- Prior art keywords
- disk
- memories
- magnetic disk
- data
- cache
- 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
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は、磁気ディスク装置を制御する磁気ディスク
制御装置に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a magnetic disk control device that controls a magnetic disk device.
特に、磁気ディスク制御装置のディスクキャッシュメモ
リに関するものである。In particular, it relates to a disk cache memory of a magnetic disk control device.
[従来の技術] 従来例の構成を第2図を参照しながら説明する。[Conventional technology] The configuration of a conventional example will be explained with reference to FIG.
第2図は、従来の磁気ディスク制御装置を示すブロック
図である。FIG. 2 is a block diagram showing a conventional magnetic disk control device.
第2図において、システムは、中央処理装置(1)と、
この中央処理装置(1)に接続されたシステムバス(2
)と、このシステムバス(2)に接続された主記憶装置
(3)と、システムバス(2)に接続された磁気ディス
ク制御装置(4)と、この磁気ディスク制御装置(4)
に接続された磁気ディスク装置(5)とから構成されて
いる。In FIG. 2, the system includes a central processing unit (1),
The system bus (2) connected to this central processing unit (1)
), a main storage device (3) connected to this system bus (2), a magnetic disk control device (4) connected to the system bus (2), and this magnetic disk control device (4)
It consists of a magnetic disk device (5) connected to.
また、従来の磁気ディスク制御装置(4)は、システム
バス(2)に接続されたシステムバスインタフェース(
41)と、このシステムバスインタフェース(41)に
接続されたディスクコントローラ(42)と、このディ
スクコントローラ(42)に接続されたキャッシュタグ
メモリ(43)と、磁気ディスク装置(5)及びシステ
ムバスインタフニースフ41)に接続されたディスクイ
ンタフェース(44)と、ディスクコントローラ(42
)及びディスクインタフェース(44)に入力側が接続
されかつシステムバスインタフェース(41)に出力側
が接続されたディスクキャッシュメモリ(45)とから
構成されている。In addition, the conventional magnetic disk control device (4) has a system bus interface (2) connected to the system bus (2).
41), a disk controller (42) connected to this system bus interface (41), a cache tag memory (43) connected to this disk controller (42), a magnetic disk device (5) and a system bus interface. A disk interface (44) connected to the NiceF 41) and a disk controller (42)
) and a disk cache memory (45) whose input side is connected to the disk interface (44) and whose output side is connected to the system bus interface (41).
なお、磁気ディスク装置(5)は、磁気ディスク制御装
置(4)のディスクコントローラ(42)にも接続され
ている。Note that the magnetic disk device (5) is also connected to a disk controller (42) of the magnetic disk control device (4).
つぎに、上述した従来例の動作を第3図を参照しながら
説明する。Next, the operation of the above-mentioned conventional example will be explained with reference to FIG.
第3図は、従来の磁気ディスク制御装置のキャッシュタ
グメモリ(43)のデータ構造を示す説明図である。FIG. 3 is an explanatory diagram showing the data structure of a cache tag memory (43) of a conventional magnetic disk control device.
第3図において、キャッシュタグメモリ(43)は、ア
ドレスO〜(n−1)を有するn個のエントリから構成
され、各エントリ内には、有効ビットV、物理セクタア
ドレスPSA、参照カウンタRF等がある。In FIG. 3, the cache tag memory (43) is composed of n entries having addresses O to (n-1), and each entry contains a valid bit V, physical sector address PSA, reference counter RF, etc. There is.
最初に、中央処理装置(1)は、磁気ディスク装置(5
)に対する入出力命令をシステムバス(2)を経由して
磁気ディスク制御装置(4)に与える。すなわち、ディ
スクコントローラ(42)は、入出力命令を入出力指令
Aとして、システムバスインタフェース(41)を経由
して中央処理装置(1)がら受は取る。First, the central processing unit (1) starts the magnetic disk drive (5).
) is given to the magnetic disk controller (4) via the system bus (2). That is, the disk controller (42) receives the input/output command as the input/output command A from the central processing unit (1) via the system bus interface (41).
ディスクコントローラ(42)は、入出力指令Aの内容
が磁気ディスク装置(5)の物理セクタアドレスPS、
A(p)のデータ読み込みの場合、その物理セクタアド
レスP S A (p)をディスクセクタアドレス情報
Bとしてキャッシュタグメモリ(43)に与える。The disk controller (42) determines that the contents of the input/output command A are the physical sector address PS of the magnetic disk device (5),
When reading data from A(p), the physical sector address P S A (p) is given to the cache tag memory (43) as disk sector address information B.
キャッシュタグメモリ(43)は、物理セクタアドレス
P S A (p)に関する情報が自身のもっているデ
ータ内にあるかどうが調べる。すなわち、エントリ0〜
(n−1)の物理セクタアドレスPSAの内容が、ディ
スクセクタアドレス情報Bと合致するかどうかを調べる
0合致しており、がっ有効ビットV=1の場合、ヒツト
信号Cを有意にし、かつ合致したエントリアドレスをエ
ントリ情報りとしてディスクコントローラ(42)に返
送する。第3図で示す例では、エントリアドレスは“1
”である。The cache tag memory (43) checks whether information regarding the physical sector address P S A (p) exists in its own data. That is, entry 0~
Check whether the contents of the physical sector address PSA of (n-1) match the disk sector address information B.0 If they match and the valid bit V=1, make the hit signal C significant and The matching entry address is returned to the disk controller (42) as entry information. In the example shown in Figure 3, the entry address is “1”.
” is.
ディスクコントローラ(42)は、データ読み込みの要
求のあった物理セクタアドレスP S A (p)のデ
ータ(内容)が、過去に磁気ディスク装置(5)からデ
ィスクキャッシュメモリ(45)に読み込まれており、
今も存在していることを知る。従って、エントリ情報り
に基づいてディスクキャッシュメモリ(45)のアドレ
スを算出し、ディスクキャッシュメモリ(45)に読み
込まれている物理セクタアドレスP S A (p)の
データをシステムバスインタフェース(41)を経由し
て主記憶装置(3)に転送する。The disk controller (42) determines that the data (contents) at the physical sector address P S A (p) for which data reading was requested has been read into the disk cache memory (45) from the magnetic disk device (5) in the past. ,
I know it still exists. Therefore, the address of the disk cache memory (45) is calculated based on the entry information, and the data at the physical sector address PSA (p) read into the disk cache memory (45) is transferred to the system bus interface (41). The data is transferred to the main storage device (3) via the computer.
こうして、従来の磁気ディスク制御装置(4)は、直接
、磁気ディスク装置(5)の物理セクタアドレスP S
A (p)にアクセスしなくてよいので、入出力処理
時間を大幅に短縮することができる。In this way, the conventional magnetic disk control device (4) directly determines the physical sector address P S of the magnetic disk device (5).
Since there is no need to access A (p), input/output processing time can be significantly shortened.
ここで、ディスクキャッシュメモリ(45)について説
明する。Here, the disk cache memory (45) will be explained.
ディスクキャッシュメモリ(45)は、全体をn個の区
画に分割されており、どれも等しい大きさを持っている
。この区画の1つの大きさは、(ブロックサイズ)と呼
ばれ、一般には、磁気ディスク装置(5)の1つの物理
セクタの大きさの整数倍の大きさとすることが多い、そ
の理由は、磁気ディスク装置(5)のある箇所がアクセ
スされると、引き続いてその近辺をアクセスされる確率
が非常に高いこと、及びキャッシュタグメモリ(43)
のエントリ数を少なくする必要があること等によるもの
である。The disk cache memory (45) is entirely divided into n sections, all of which have the same size. The size of one of these partitions is called the (block size), and is generally set to an integral multiple of the size of one physical sector of the magnetic disk device (5). When a certain part of the disk device (5) is accessed, there is a very high probability that the vicinity will be accessed subsequently, and the cache tag memory (43)
This is due to the need to reduce the number of entries.
例えば、ディスクキャッシュメモリ(45)のブロック
サイズが、磁気ディスク装置(5)のセクタサイズの8
倍の場合について説明する。For example, the block size of the disk cache memory (45) is 8, which is the sector size of the magnetic disk device (5).
The case of double the number will be explained.
磁気ディスク装置(5)の物理セクタアドレスPSAが
81+1から8川+7までのいずれかのセクタに対して
、データ読み込みの入出力指令Aがあり、その時点にお
いてディスクキャッシュメモリ(45)にまだそのアド
レスのデータが存在していないときは、磁気ディスク制
御装置(4)は、磁気ディスク装置(5)の物理セクタ
アドレスPSAが8111から8セクタ分のデータを読
み込んでディスクキャッシュメモリ(45)に格納する
ことになる。ディスクキャッシュメモリ(45)の1ブ
ロツクに読み込まれているデータ(内容)は、磁気ディ
スク装置(5)の物理セクタアドレスPSAが8ffl
、5ILl+1.8m+2、・・・、8m+7の8セク
タ分のデータである。There is an input/output command A to read data for any sector whose physical sector address PSA of the magnetic disk device (5) is 81+1 to 8+7, and at that point, that address is still in the disk cache memory (45). If the data does not exist, the magnetic disk control device (4) reads 8 sectors worth of data from the physical sector address PSA of 8111 of the magnetic disk device (5) and stores it in the disk cache memory (45). It turns out. The data (content) read into one block of the disk cache memory (45) has a physical sector address PSA of 8ffl of the magnetic disk device (5).
, 5ILl+1.8m+2, . . . , 8m+7.
上述したブロックに対応するキャッシュタグメモリ(4
3)の内容は、V=1、PSA=8論となっている。Cache tag memory (4
The content of 3) is that V=1 and PSA=8.
従って、その後、磁気ディスク制御装置(4)は、物理
セクタアドレスPSAが8輸から8噛+7までのいずれ
かのセクタに対して、データ読み込みの入出力指令Aが
あっても、ヒツト信号Cが有意となるので、磁気ディス
ク装置(5)に直接アクセスする必要がなくなる。Therefore, after that, even if there is an input/output command A to read data to any sector whose physical sector address PSA is from 8 to 8 + 7, the magnetic disk control device (4) will not receive a hit signal C. Since it is significant, there is no need to directly access the magnetic disk device (5).
[発明が解決しようとする課題]
上述したような従来の磁気ディスク制御装置では、1度
データ読み込みを実行したセクタの近傍に対して引き続
きデータ読み込みの要求を行うと、キャッシュ効果によ
り極めて迅速に処理される反面、その近傍の複数セクタ
分を1度にディスクキャッシュメモリに取り込むので、
磁気ディスク上のあちこちに散乱した情報を1セクタづ
つ収集するような場合は、かえって処理時間が長くなり
、かつディスクキャッシュメモリの使用効率も低下する
という問題点があった。[Problems to be Solved by the Invention] In the conventional magnetic disk control device as described above, when a data read request is made to the vicinity of a sector where data has been read once, the processing is extremely quickly due to the cache effect. On the other hand, since multiple sectors in the vicinity are imported into the disk cache memory at once,
In the case where information scattered all over the magnetic disk is collected one sector at a time, there is a problem in that the processing time becomes longer and the usage efficiency of the disk cache memory decreases.
この発明は、上述した問題点を解決するためになされた
もので、比較的少ない容量のディスクキャッシュメモリ
によりヒツト検査時間等の処理時間を短縮することがで
き、かつその使用効率を向上することができる磁気ディ
スク制御装置を得ることを目的とする。This invention was made to solve the above-mentioned problems, and it is possible to shorten processing time such as human inspection time by using a disk cache memory with a relatively small capacity, and to improve its usage efficiency. The purpose is to obtain a magnetic disk control device that can perform the following steps.
[課題を解決するための手段]
この発明に係る磁気ディスク制御装置は、以下に述べる
ような手段を備えたものである。[Means for Solving the Problems] A magnetic disk control device according to the present invention includes the following means.
(i)、静的に予め定められたブロックサイズの異なる
複数個のディスクキャッシュメモリ。(i) A plurality of disk cache memories with different statically predetermined block sizes.
<ii)、上記複数個のディスクキャッシュメモリに対
応しているキャッシュタグメモリ。<ii) A cache tag memory corresponding to the plurality of disk cache memories.
(ii)、データ読み込み要求と上記キャッシュタグメ
モリの内容とに基づいて上記複数のディスクキャッシュ
メモリの中から適切なブロックサイズをもったものを選
択するディスクコントローラ。(ii) A disk controller that selects one having an appropriate block size from among the plurality of disk cache memories based on a data read request and the contents of the cache tag memory.
[作用]
この発明においては、ディスクキャッシュメモリによっ
て、磁気ディスク装置のデータのうち使用頻度の高いデ
ータが格納される。[Operation] In the present invention, the disk cache memory stores frequently used data among the data of the magnetic disk device.
また、キャッシュタグメモリによって、上記ディスクキ
ャッシュメモリの状態が管理される。Further, the state of the disk cache memory is managed by the cache tag memory.
さらに、ディスクコントローラによって、データ読み込
み要求と上記キャッシュタグメモリの内容とに基づいて
、上記複数のディスクキャッシュメモリの中から適切な
ブロックサイズをもったものが選択される。Further, the disk controller selects one having an appropriate block size from among the plurality of disk cache memories based on the data read request and the contents of the cache tag memory.
し実施例] 実施例の構成を第1図を参照しながら説明する。Examples] The configuration of the embodiment will be explained with reference to FIG.
第1図は、この発明の一実施例を示すブロック図であり
、システムバスインタフェース(41)及びディスクイ
ンタフェース(44)は上記従来装置のものと全く同一
である。FIG. 1 is a block diagram showing one embodiment of the present invention, and the system bus interface (41) and disk interface (44) are exactly the same as those of the conventional device.
第1図において、この発明の一実施例は、上述した従来
装置のものと全く同一のものと、システムバスインタフ
ェース(41)に接続されたディスクコントローラ(4
2八)と、このディスクコントローラ(42Δ)に接続
されたキャッシュタグメモリ(43X)、(43Y)及
び<432) 、!:、、ディスクコントローラ(42
^)及びディスクインタフェース(44)に入力側が接
続されかつシステムバスインタフェース(41)に出力
側が接続されたディスクキャッシュメモリ(45X)、
<45Y)及び(452)とから構成されている。In FIG. 1, one embodiment of the present invention has exactly the same components as those of the conventional device described above, and a disk controller (41) connected to a system bus interface (41).
28) and the cache tag memory (43X), (43Y) and <432) connected to this disk controller (42Δ),! :,, disk controller (42
^) and a disk cache memory (45X) whose input side is connected to the disk interface (44) and whose output side is connected to the system bus interface (41),
<45Y) and (452).
なお、磁気ディスク装置(5)は、磁気ディスク制御装
置(4^)のディスクコントローラ(42^)にも接続
されており、セクタサイズがIKバイトである。The magnetic disk device (5) is also connected to the disk controller (42^) of the magnetic disk control device (4^), and has a sector size of IK bytes.
ディスクキャッシュメモリ(45X)の容量は、256
にバイトであり、ブロックサイズが2にバイトのブロッ
クを12828個有、同様に、ディスクキャッシュメモ
リ(45Y)及び(45Z)の容量は、各256にバイ
トであり、ブロックサイズが4 Kバイト及び8にバイ
トのブロックを64個及び32個有する。The capacity of disk cache memory (45X) is 256
Similarly, the capacity of disk cache memory (45Y) and (45Z) is 256 bytes each, and the block size is 4 Kbytes and 8 bytes. have 64 and 32 byte blocks.
キャッシュタグメモリ(43x)、(43Y)及び(4
3Z)は、従来のキャッシュタグメモリ(43)と同一
のデータ構造を有し、各サイズは対応するディスクキャ
ッシュメモリ(45x)、(45Y)及び(452)ノ
ブロック数と同じである。Cache tag memory (43x), (43Y) and (4
3Z) has the same data structure as the conventional cache tag memory (43), and each size is the same as the number of corresponding disk cache memories (45x), (45Y) and (452) blocks.
つぎに、上述した実施例の動作を説明する。Next, the operation of the above embodiment will be explained.
最初に、中央処理袋!(1)は、磁気ディスク装置(5
)に対する入出力命令をシステムバス(2)を経由して
磁気ディスク制御装置(4^)に与える。すなわち、デ
ィスクコントローラ(42^)は、入出力命令を入出力
指令Aとして、システムバスインタフェース(41)を
経由して中央処理装置(1)から受は取る。First, the central processing bag! (1) is a magnetic disk device (5
) is given to the magnetic disk controller (4^) via the system bus (2). That is, the disk controller (42^) receives the input/output command as the input/output command A from the central processing unit (1) via the system bus interface (41).
ディスクコントローラ(42A)は、入出力指令Aの内
容が磁気ディスク装置(5)の物理セクタアドレスPS
Aのデータ読み込みの場合、その物理セクタアドレスP
SAをディスクセクタアドレス情報Bとしてキャッシュ
タグメモリ(43X)、(43Y)及び(43Z)に与
える。The disk controller (42A) determines that the content of the input/output command A is the physical sector address PS of the magnetic disk device (5).
When reading data from A, its physical sector address P
SA is given as disk sector address information B to cache tag memories (43X), (43Y) and (43Z).
各キャッシュタグメモリ(43X)、(43Y)及び(
43Z)は、それぞれ物理セクタアドレスPSAに関す
る情報が自身のもっているデータ内にあるかどうが調べ
る。すなわち、各エントリ(O〜12)、0〜63.0
〜31)の物理セクタアドレスPSAの内容が、ディス
クセクタアドレス情報Bと合致するかどうかを調べる0
合致しており、かつ有効ビット■=1であるものが存在
する場合、ヒツト信号Cx、Cy又はCzを有意にし、
かつ合致したエントリアドレスをエントリ情報Dx、D
y又はDzとしてディスクコントローラ(42^)に返
送する。Each cache tag memory (43X), (43Y) and (
43Z) each checks whether information regarding the physical sector address PSA is included in its own data. That is, each entry (0 to 12), 0 to 63.0
0 to check whether the contents of the physical sector address PSA of ~31) match the disk sector address information B
If there is a match and a valid bit = 1, make the hit signal Cx, Cy or Cz significant;
And the matching entry address is added to the entry information Dx, D
It is returned to the disk controller (42^) as y or Dz.
ディスクコントローラ(42^)は、各キャッシュタグ
メ−1: !J (43X)、(43Y)及び(43Z
)からの応答を調べる。ヒツト信号Cx、Cy又はCz
のいずれかが有意である場合は、データ読み込みの要求
のあった物理セクタアドレスPSAのデータ(内容)が
、過去に磁気ディスク装置(5)からディスクキャッシ
ュメモリ(45X)、(45Y)又は(452)に読み
込まれており、今も存在していることを知る。従って、
対応するエントり情報Dx、Dy又はDzに基づいてデ
ィスクキャッシュメモリ(45X)、(45Y>又は(
452)のアドレスを算出し、ディスクキャッシュメモ
!、J (45X)、(45Y)又ハ(45Z)に読み
込まれている物理セクタアドレスPSAのデータをシス
テムバスインタフェース(41)を経由して主記憶装置
(3)に転送する。The disk controller (42^) has each cache tag name 1: ! J (43X), (43Y) and (43Z
). Hit signal Cx, Cy or Cz
If either of these is significant, the data (contents) at the physical sector address PSA for which data reading was requested was previously transferred from the magnetic disk device (5) to the disk cache memory (45X), (45Y) or (452). ) and that it still exists. Therefore,
Based on the corresponding entry information Dx, Dy or Dz, the disk cache memory (45X), (45Y> or (
452) and save the disk cache memo! , J (45X), (45Y) or C (45Z) are transferred to the main storage device (3) via the system bus interface (41).
一方、ディスクコントローラ(42^)は、ヒツト信号
Cx、Cy又はCzのいずれもが有意でない場合は、デ
ータ読み込みの要求のあった物理セクタアドレスPSA
のデータ(内容)が、磁気ディスク装置(5)からディ
スクキャッシュメモリ(45X)、(45Y)又は(4
52)に読み込まれておらず、存在していないこと(ミ
スヒツト)を知る。On the other hand, if none of the hit signals Cx, Cy, or Cz is significant, the disk controller (42^) reads the physical sector address PSA of the data read request.
The data (contents) is transferred from the magnetic disk device (5) to the disk cache memory (45X), (45Y) or (4
52) and found out that it did not exist (mishit).
上述した場合は、ディスクコントローラ(42^)は、
入出力指令Aの中のデータカウントを調べる。In the above case, the disk controller (42^) is
Check the data count in input/output command A.
何セクタ分のデータ読み込みの要求かを調べ、データ読
み込みの要求のサイズと、各ディスクキャッシュメモリ
(45X)、(45Y)及び(45Z)のブロックサイ
ズとを小さいものから比較し、要求されたサイズを包含
することができる最小のブロックサイズを有するディス
クキャッシュメモリ(45X)、(45Y)又は(45
2)を選択する。そして、データ読み込みの要求のあっ
た物理セクタアドレスPSAのデータを磁気ディスク装
置(5)から選択されたディスクキャッシュメモリ(4
5X)、(45Y)又ハ(45Z)に読み込み、かつ主
記憶装置(3)に転送する。Find out how many sectors worth of data read is requested, compare the size of the data read request with the block size of each disk cache memory (45X), (45Y), and (45Z) from smallest to largest, and determine the requested size. Disk cache memory with the smallest block size that can contain (45X), (45Y) or (45
Select 2). Then, the data at the physical sector address PSA for which data reading was requested is transferred from the magnetic disk device (5) to the selected disk cache memory (4).
5X), (45Y) or C (45Z) and transferred to the main memory (3).
すなわち、ディスクコントローラ(42^)は、データ
読み込みの要求がミスヒツトの場合、データカウントが
2にバイト以下のときは、ディスクキャッシュメモリ(
45X)を選択し、データカウントが2にバイトより太
きく4にバイト以下のときは、ディスクキャッシュメモ
リ(45Y)を選択し、データカウントが4にバイトよ
り大きいときは、ディスクキャッシュメモリ(452)
を選択する。In other words, if the data read request is a miss, and the data count is less than or equal to 2 bytes, the disk controller (42^) stores the data in the disk cache memory (42^).
45X), and if the data count is greater than 2 bytes and less than 4 bytes, select disk cache memory (45Y), and if the data count is greater than 4 bytes, select disk cache memory (452).
Select.
ここで、従来例と上述した実施例とを比較してみる。Here, a comparison will be made between the conventional example and the above-mentioned embodiment.
従来のディスクキャッシュメモリ(45)のブロックサ
イズは、磁気ディスク装置(5)のセクタサイズの8倍
の場合、磁気ディスク装置(5)のセクタサイズがIK
バイトであるので、8にバイトどなる。ディスクキャッ
シュメモリ(45)の容量を例えば768にバイトとす
ると、従来のディスクキャッシュメモリ(45)の8に
バイトのブロックのエントリ数は96個である。If the block size of the conventional disk cache memory (45) is eight times the sector size of the magnetic disk device (5), then the sector size of the magnetic disk device (5) is IK.
Since it is a part-time job, the part-time job yells at 8. If the capacity of the disk cache memory (45) is, for example, 768 bytes, the number of entries in a block of 8 bytes in the conventional disk cache memory (45) is 96.
実施例の各ディスクキャッシュメモリ(45X)、(4
5Y)及び(452)の合計の容量は、従来例と同じ7
68にバイト(=256にバイト×3)である。Each disk cache memory (45X), (4
The total capacity of 5Y) and (452) is 7, which is the same as the conventional example.
68 bytes (=256 bytes x 3).
ディスクキャッシュメモリ<45X)の2にバイトのブ
ロックのエントリ数は128個であり、ディスクキャッ
シュメモリ(45Y)の4にバイトのブロックのエント
リ数は64個であり、ディスクキャッシュメモリ(45
2)の8にバイトのブロックのエントリ数は32個であ
るので、エントリ数の合計は224個である。The number of entries for a block of 2 bytes in the disk cache memory (45X) is 128, the number of entries for a block of 4 bytes in the disk cache memory (45Y) is 64, and
Since the number of entries in the 8-byte block in 2) is 32, the total number of entries is 224.
従って、上述した実施例は、データカウントの小さな入
出力指令に対するヒツト率が、2倍以上に向上している
。Therefore, in the embodiment described above, the hit rate for input/output commands with a small data count is more than doubled.
また、従来のディスクキャッシュメモリ(45)のブロ
ックサイズを例えば2にバイトにすれば、エントリ数が
384個に増大して、従来例でもヒツト率が向上するが
、ヒツトかどうかを調べるヒツト検査時間が長くなる欠
点を有する。In addition, if the block size of the conventional disk cache memory (45) is set to 2 bytes, for example, the number of entries increases to 384, and the hit rate improves even in the conventional example, but the hit check time to check whether there is a hit or not increases. It has the disadvantage that it becomes long.
この発明の一実施例は、上述したようにブロックサイズ
の異なる3つのディスクキャッシュメモリ(45X)、
(45Y)及び(452)を備えテイルノテ、ディスク
キャッシュメモリ(45x)、(45Y)又ハ(452
) ヲシステムの傾向から適切に選択すれば、すなわち
、入出力指令のデータカウントを調べて適切に選択する
ことにより、ヒツト検査時間を短くすることができ、か
つヒツト率を高くすることができるという効果を奏する
。One embodiment of the present invention includes three disk cache memories (45X) with different block sizes, as described above.
Equipped with (45Y) and (452), tail note, disk cache memory (45x), (45Y) and (452)
) By making an appropriate selection based on system trends, that is, by examining the input/output command data count and making an appropriate selection, it is possible to shorten the human inspection time and increase the hit rate. be effective.
なお、上記実施例では3つのディスクキャッシュメモリ
について説明したが、3つに限定する必要はなく、シス
テムの傾向からブロックサイズの種類と大きさを決定す
れば、さらによい効果を期待することができる。Although three disk cache memories have been described in the above embodiment, it is not necessary to limit the number to three, and even better effects can be expected by determining the type and size of the block size based on the system tendency. .
[発明の効果]
この発明は、以上説明したとおり、静的に予め定められ
たブロックサイズの異なる複数個のディスクキャッシュ
メモリと、上記複数個のディスクキャッシュメモリに対
応しているキャッシュタグメモリと、データ読み込み要
求と上記キャッシュタグメモリの内容とに基づいて上記
複数のディスクキャッシュメモリの中から適切なブロッ
クサイズをもったものを選択するディスクコントローラ
とを備えたので、比較的少ない容量のディスクキャッシ
ュメモリによりヒツト検査時間等の処理時間を短縮する
ことができ、かつその使用効率を向上することができる
という効果を奏する。[Effects of the Invention] As explained above, the present invention includes a plurality of disk cache memories having different statically predetermined block sizes, a cache tag memory corresponding to the plurality of disk cache memories, Since it is equipped with a disk controller that selects one with an appropriate block size from among the plurality of disk cache memories based on a data read request and the contents of the cache tag memory, the disk cache memory has a relatively small capacity. This has the effect that processing time such as human testing time can be shortened and the efficiency of its use can be improved.
第1図はこの発明の一実施例を示すブロック図、第2図
は従来の磁気ディスク制御装置を示すブロック図、第3
図は従来の磁気ディスク制御装置のキャッシュタグメモ
リのデータ構造を示す説明図である。
図において、
(4A) ・・−磁気ディスク制御装置、(41)
・・・ システムバスインタフェース、(42^)?
・・ ディスクコントローラ、<43X)、(43Y)
、(432)
・・・ キャッシュタグメモリ、
(44) ・・・ ディスクインタフェース、<45
X)、(45Y)、(45Z)
・・・ ディスクキャッシュメモリである。
なお、各図中、同一符号は同一、又は相当部分を示す。FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a block diagram showing a conventional magnetic disk control device, and FIG.
The figure is an explanatory diagram showing the data structure of a cache tag memory of a conventional magnetic disk control device. In the figure, (4A)...-Magnetic disk control device, (41)
... System bus interface, (42^)?
・・Disk controller, <43X), (43Y)
, (432) ... Cache tag memory, (44) ... Disk interface, <45
X), (45Y), (45Z)...Disk cache memory. In each figure, the same reference numerals indicate the same or equivalent parts.
Claims (1)
ディスクキャッシュメモリ、上記複数個のディスクキャ
ッシュメモリに対応しているキャッシュタグメモリ、及
びデータ読み込み要求と上記キャッシュタグメモリの内
容とに基づいて上記複数のディスクキャッシュメモリの
中から適切なブロックサイズをもったものを選択するデ
ィスクコントローラを備えたことを特徴とする磁気ディ
スク制御装置。A plurality of disk cache memories having different statically predetermined block sizes, a cache tag memory corresponding to the plurality of disk cache memories, and the above based on the data read request and the contents of the cache tag memory. A magnetic disk control device comprising a disk controller that selects one with an appropriate block size from among a plurality of disk cache memories.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1040264A JPH02220155A (en) | 1989-02-22 | 1989-02-22 | Magnetic disk controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1040264A JPH02220155A (en) | 1989-02-22 | 1989-02-22 | Magnetic disk controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02220155A true JPH02220155A (en) | 1990-09-03 |
Family
ID=12575798
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1040264A Pending JPH02220155A (en) | 1989-02-22 | 1989-02-22 | Magnetic disk controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02220155A (en) |
-
1989
- 1989-02-22 JP JP1040264A patent/JPH02220155A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US3761881A (en) | Translation storage scheme for virtual memory system | |
| JPS59114658A (en) | Management of data memory space | |
| JPS589277A (en) | Data processor | |
| JPH0623968B2 (en) | Data transfer control system | |
| US6353871B1 (en) | Directory cache for indirectly addressed main memory | |
| US4639862A (en) | Computer system | |
| JPH08137754A (en) | Disk cache device | |
| KR100463205B1 (en) | Computer system embedded sequantial buffer for improving DSP data access performance and data access method thereof | |
| EP0502211A1 (en) | System equipped with processor and method of converting addresses in said system | |
| JPH02220155A (en) | Magnetic disk controller | |
| JPS6255743A (en) | Cache memory and cache memory system using said cache memory | |
| KR102838096B1 (en) | Electronic device and computing system including same | |
| GB2037466A (en) | Computer with cache memory | |
| JPH0154735B2 (en) | ||
| JPH0421222B2 (en) | ||
| JPS6331808B2 (en) | ||
| JPH05225062A (en) | Disk cache device | |
| JPH04324194A (en) | Rom circuit | |
| JPS5821352B2 (en) | Buffer memory control method | |
| JP2595753B2 (en) | Invalidation method of cache memory | |
| WO2026040881A1 (en) | Data access method and apparatus, and device | |
| JPS61141054A (en) | Information processor | |
| JPH02176839A (en) | Information processor | |
| JPH03116345A (en) | Data processor | |
| JPS63240649A (en) | Data processor |