JPH04148351A - Disk cache controller - Google Patents

Disk cache controller

Info

Publication number
JPH04148351A
JPH04148351A JP2272837A JP27283790A JPH04148351A JP H04148351 A JPH04148351 A JP H04148351A JP 2272837 A JP2272837 A JP 2272837A JP 27283790 A JP27283790 A JP 27283790A JP H04148351 A JPH04148351 A JP H04148351A
Authority
JP
Japan
Prior art keywords
data
cache
disk device
cache memory
circuit
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
JP2272837A
Other languages
Japanese (ja)
Inventor
Akihiro Asano
浅野 聡宏
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 JP2272837A priority Critical patent/JPH04148351A/en
Publication of JPH04148351A publication Critical patent/JPH04148351A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)
  • Signal Processing Not Specific To The Method Of Recording And Reproducing (AREA)

Abstract

PURPOSE:To write the data of a cache memory which is written at a high speed in a partial writing form, in a disk device by writing the data from the disk device transferred by a logical sector unit, in a logical sector part which is not updated in a physical sector to which the partial writing is operated. CONSTITUTION:The data of the logical sector unit from a disk device 3, which are transferred from a cache logical sector data transferring circuit 16, are written in the logical sector part which is not updated in the physical sector to which the partial writing is operated, by the control of a subprocessor 15, towards the data which is written in a cash memory 18 at a high speed in the partial writing form. Therefore, the data which are written in the cache memory 18 at high speed in the partial writing form can be handled by the physical sector unit even when the data of the cache memory 18 can be recorded in the disk device 3 only by the physical sector unit. Thus, the data which are written in the cache memory 18 in the partial writing form can be recorded in the disk device 3.

Description

【発明の詳細な説明】 技術分野 本発明はディスクキャッシュ制御装置に関し、特にキャ
ッシュメモリに書込むデータの保存を行うディスクキャ
ッシュ制御装Vに関する。
DETAILED DESCRIPTION OF THE INVENTION TECHNICAL FIELD The present invention relates to a disk cache control device, and more particularly to a disk cache control device V that stores data to be written in a cache memory.

従来技術 従来、ディスクキャッシュ制御装置においては、第3図
に示すように、ディスクキャッシュ制御装置5内のキャ
ッシュメモリ56からホストプロセッサ2にデータ転送
を行う場合、キャッシュデータ読取り回路57によって
キャッシュメモリ56から読取られたデータが読取りデ
ータ転送回路52によりホストインタフェース50を介
してホストプロセッサ2に転送される。
BACKGROUND ART Conventionally, in a disk cache control device, as shown in FIG. The read data is transferred to the host processor 2 via the host interface 50 by the read data transfer circuit 52.

ディスク装置3からホストプロセッサ2にデータ転送を
行う場合、ディスク装置データ読取り回路58によって
ディスク装置3から読取られたデータが読取りデータ転
送回路52によりホストインタフェース50を介してホ
ストプロセッサ2に転送される。
When data is transferred from the disk device 3 to the host processor 2, the data read from the disk device 3 by the disk device data reading circuit 58 is transferred to the host processor 2 by the read data transfer circuit 52 via the host interface 50.

ディスク装置3からキャッシュメモリ56にデータ転送
を行う場合、ディスク装置データ読取り回路58によっ
てディスク装置3から読取られたデータが読取りデータ
転送回路52および書込みデータ転送回路53を介して
キャッシュデータ書込み回路55に転送され、該データ
がキャッシュデータ書込み回路55によりキャッシュメ
モリ56に書込まれる。
When data is transferred from the disk device 3 to the cache memory 56, the data read from the disk device 3 by the disk device data reading circuit 58 is transferred to the cache data writing circuit 55 via the read data transfer circuit 52 and the write data transfer circuit 53. The data is then written into the cache memory 56 by the cache data write circuit 55.

この場合、ディスク装置3のデータが複数の論理セクタ
からなる物理セクタ単位で記憶されているので、キャッ
シュメモリ56にはディスク装置3のデータが物理セク
タ単位あるいはキャッシュブロック単位で論理セクタ毎
に格納される。
In this case, since the data of the disk device 3 is stored in physical sector units made up of multiple logical sectors, the data of the disk device 3 is stored in the cache memory 56 in physical sector units or cache block units for each logical sector. Ru.

ホストプロセッサ2からのデータをキャッシュメモリ5
6に書込む場合、ホストインタフェース50を介してホ
ストプロセッサ2から転送されてきたデータが書込みデ
ータ転送回路53を介してキャッシュデータ書込み回路
55に転送され、該データがキャッシュデータ書込み回
路55によりキャッシュメモリ56に書込まれる。
Data from host processor 2 is transferred to cache memory 5
6, data transferred from the host processor 2 via the host interface 50 is transferred to the cache data write circuit 55 via the write data transfer circuit 53, and the data is transferred to the cache memory by the cache data write circuit 55. 56.

また、ホストプロセッサ2からのデータをキャッシュメ
モリ56のみに書込む高速書込み命令が出力された場合
にも、上記のホストプロセッサ2からのデータをキャッ
シュメモリ56に書込む場合と同様にして、ホストプロ
セッサ2からのデータがキャッシュメモリ56に書込ま
れる。
Furthermore, even when a high-speed write command is output to write data from the host processor 2 only to the cache memory 56, the host processor 2 is written to cache memory 56.

さらに、ホストプロセッサ2からのデータをキャッシュ
メモリ56に部分書込みする場合、ディスク装置データ
読取り回路58によってディスク装置3から読取られた
データが読取りデータ転送回路52を介して書込みデー
タ転送回路53に転送され、該データとホストインタフ
ェース50を介してホストプロセッサ2から転送されて
きたデータとが書込みデータ転送回路53でマージされ
てからキャッシュデータ書込み回路55に転送され、マ
ージされたデータがキャッシュデータ書込み回路55に
よりキャッシュメモリ56に書込まれる。
Further, when partially writing data from the host processor 2 to the cache memory 56, the data read from the disk device 3 by the disk device data reading circuit 58 is transferred to the write data transfer circuit 53 via the read data transfer circuit 52. , the data and the data transferred from the host processor 2 via the host interface 50 are merged by the write data transfer circuit 53 and transferred to the cache data write circuit 55, and the merged data is transferred to the cache data write circuit 55. The data is written to the cache memory 56 by the following.

ホストプロセッサ2からのデータをディスク装置3に書
込む場合、ホストインタフェース50を介してホストプ
ロセッサ2から転送されてきたデータが書込みデータ転
送回路53を介してディスク装置データ書込み回路59
に転送され、該データがディスク装置データ書込み回路
59によりディスク装W3に書込まれる。
When writing data from the host processor 2 to the disk device 3, the data transferred from the host processor 2 via the host interface 50 is transferred to the disk device data write circuit 59 via the write data transfer circuit 53.
The data is written to the disk unit W3 by the disk unit data writing circuit 59.

キャッシュメモリ56に格納されているデータをディス
ク装置3に書込む場合、キャッシュデータ読取り回路5
7によってキャッシュメモリ56から読取られたデータ
がディスク装置データ書込み回路59に転送され、該デ
ータがディスク装置データ書込み回路59によりディス
ク装置3に書込まれる。
When writing data stored in the cache memory 56 to the disk device 3, the cache data reading circuit 5
7 transfers the data read from the cache memory 56 to the disk device data writing circuit 59, and the data is written to the disk device 3 by the disk device data writing circuit 59.

この場合、キャッシュメモリ56にはデータが論理セク
タ単位で格納されているので、キャッシュデータ読取り
回路57によってキャッシュメモリ56から読取られた
論理セクタ単位のデータがディスク装置データ書込み回
路59により物理セクタ単位でディスク装置3に書込ま
れる。
In this case, since data is stored in the cache memory 56 in units of logical sectors, the data in units of logical sectors read from the cache memory 56 by the cache data reading circuit 57 is converted into units of physical sectors by the disk device data writing circuit 59. The data is written to the disk device 3.

これらホストプロセッサ2とディスク装置3とキャッシ
ュメモリ56との間のデータ転送はマイクロプロセッサ
51により管理され、キャッシュメモリ56はディレク
トリメモリ54に格納された管理情報に基づいて管理さ
れる。
Data transfer between the host processor 2, disk device 3, and cache memory 56 is managed by the microprocessor 51, and the cache memory 56 is managed based on management information stored in the directory memory 54.

このような従来のディスクキャッシュ制御装置5では、
キャッシュメモリ56からの論理セクタ単位のデータが
ディスク装置3に物理セクタ単位で書込まれているので
、部分書込みの形でキャッシュメモリ56に高速書込み
された場合、この高速書込みにより書換えられた論理セ
クタ以外の他の論理セクタの内容が不定となってしまう
ため、高速書込みにより書換えられたキャッシュメモリ
56のデータをディスク装置3に書込むことができない
という欠点がある。
In such a conventional disk cache control device 5,
Since data in units of logical sectors from the cache memory 56 is written in units of physical sectors to the disk device 3, when data is written to the cache memory 56 at high speed in the form of partial writing, the logical sector rewritten by this high-speed writing Since the contents of the other logical sectors become undefined, there is a drawback that data in the cache memory 56 that has been rewritten by high-speed writing cannot be written to the disk device 3.

発明の目的 本発明は上記のような従来のものの欠点を除去すべくな
されたもので、部分書込みの形で高速書込みされたキャ
ッシュメモリのデータをディスク装置に書込むことがで
きるディスクキャッシュ制御装置の提供を目的とする。
OBJECTS OF THE INVENTION The present invention has been made to eliminate the drawbacks of the conventional devices as described above, and provides a disk cache control device that can write cache memory data written at high speed in the form of partial writing to a disk device. For the purpose of providing.

発明の構成 本発明によるディスクキャッシュ制御装置は、複数の論
理セクタからなる物理セクタ単位でデータを格納するデ
ィスク装置と上位装置とを接続し、前記ディスク装置内
に格納されたデータの一部を論理セクタ単位で保持する
キャッシュメモリを有するディスクキャッシュ制御装置
であって、前記上位装置からのデータにより前記キャッ
シュメモリに保持された前記複数の論理セクタの一部が
更新されたとき、その更新情報を格納する格納手段と、
前記ディスク装置から読出したデータを前記論理セクタ
単位で前記キャッシュメモリに転送する転送手段と、前
記格納手段の前記更新情報に基づいて前記転送手段によ
り転送される前記論理セクタ単位のデータを前記キャッ
シュメモリに書込むよう制御する制御手段とを設けたこ
とを特徴とする。
Composition of the Invention A disk cache control device according to the present invention connects a disk device that stores data in physical sector units consisting of a plurality of logical sectors and a host device, and stores part of the data stored in the disk device in a logical manner. A disk cache control device having a cache memory held in sector units, which stores update information when a part of the plurality of logical sectors held in the cache memory is updated by data from the host device. storage means for
a transfer unit that transfers data read from the disk device to the cache memory in units of logical sectors; and a transfer unit that transfers data in units of logical sectors transferred by the transfer unit based on the update information of the storage unit to the cache memory. The invention is characterized in that it is provided with a control means for controlling writing to.

実施例 次に、本発明の一実施例について図面を参照して説明す
る。
Embodiment Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図であ
る。図において、ディスクキャッシュ制御装置1内のホ
ストインタフェース10はバス102を介してホストプ
ロセッサ2から転送されてきたデータをバスlitを介
して書込みデータ転送回路13に転送し、バス112を
介して読取りデータ転送回路12から転送されてきたデ
ータをバス102を介してホストプロセッサ2に転送す
ることにより、ホストプロセッサ2とディスク装置3お
よびキャッシュメモリ18との間のデータ転送を行つ〇 マイクロプロセッサ11はバスlll 、 114〜1
20を介してホストインタフェース10と、読取りデー
タ転送回路12と、書込みデータ転送回路13と、サブ
プロセッサ15と、キャッシュデータ書込み回路17と
、キャッシュデータ読取り回路19と、ディスク装置デ
ータ読取り回路20と、ディスク装置データ書込み回路
21とを夫々制御することにより、ホストプロセッサ2
とディスク装置3とキャッシュメモリ18との間のデー
タ転送を管理し、また終了報告などの応答信号のホスト
プロセッサとのやりとりをバス111とホストインタフ
ェース10とバス101とを介して行う。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, a host interface 10 in a disk cache control device 1 transfers data transferred from a host processor 2 via a bus 102 to a write data transfer circuit 13 via a bus lit, and transfers read data via a bus 112. By transferring the data transferred from the transfer circuit 12 to the host processor 2 via the bus 102, data transfer between the host processor 2, the disk device 3, and the cache memory 18 is performed. lll, 114-1
20, a host interface 10, a read data transfer circuit 12, a write data transfer circuit 13, a sub-processor 15, a cache data write circuit 17, a cache data read circuit 19, a disk device data read circuit 20, By controlling the disk device data writing circuit 21, the host processor 2
It manages data transfer between the disk drive 3 and the cache memory 18, and exchanges response signals such as completion reports with the host processor via the bus 111, host interface 10, and bus 101.

読取りデータ転送回路12はバス123,124を介し
てキャッシュデータ読取り回路19およびディスク装置
データ読取り回路20から夫々転送されてきたデータを
バス112.122を介してホストインタフェース10
および書込みデータ転送回路13に転送することにより
、ディスク装置3から読取ったデータのホストプロセッ
サ2およびキャッシュメモリ18への転送と、キャッシ
ュメモリ18から読取ったデータのホストプロセッサ2
への転送とを行う。
The read data transfer circuit 12 transfers data transferred from the cache data read circuit 19 and the disk device data read circuit 20 via buses 123 and 124, respectively, to the host interface 10 via buses 112 and 122.
and the write data transfer circuit 13, the data read from the disk device 3 is transferred to the host processor 2 and the cache memory 18, and the data read from the cache memory 18 is transferred to the host processor 2.
Transfer to.

書込みデータ転送回路13はバス113を介してホスト
インタフェース10から転送されてきたデータ′をバス
125.128を介してキャッシュデータ書込み回路1
7およびディスク装置データ書込み回路21に転送する
ことにより、ホストプロセッサ2からのデータのディス
ク装置3およびキャッシュメモリ18への転送と、ディ
スク装置3がら読取ったデータのキャッシュメモリ18
への転送とを行う。
The write data transfer circuit 13 transfers the data transferred from the host interface 10 via the bus 113 to the cache data write circuit 1 via buses 125 and 128.
7 and the disk device data writing circuit 21, the data from the host processor 2 is transferred to the disk device 3 and the cache memory 18, and the data read from the disk device 3 is transferred to the cache memory 18.
Transfer to.

また、ホストプロセッサ2からのデータをキャッシュメ
モリ18に部分書込みする場合、書込みデータ転送回路
13はバス113を介してホストインタフェース10か
ら転送されてきたホストプロセッサ2からのデータと、
バス122を介して読取りデータ転送回路12から転送
されてきたディスク装置3からのデータとをマージし、
マージしたデータをバス126を介してキャッシュデー
タ書込み回路17に転送することによりキャッシュメモ
リ18に書込む。
Further, when partially writing data from the host processor 2 to the cache memory 18, the write data transfer circuit 13 writes the data from the host processor 2 transferred from the host interface 10 via the bus 113,
Merges the data from the disk device 3 transferred from the read data transfer circuit 12 via the bus 122,
The merged data is written into the cache memory 18 by being transferred to the cache data writing circuit 17 via the bus 126.

ディレクトリメモリ14はキヤ・ジシュメモリ18の管
理情報を格納するとともに、ホストプロセッサ2による
キャッシュメモリ18への高速書込みや部分書込みの情
報も合わせて格納し、バス121.127を介してマイ
クロプロセッサ11およびサブプロセッサ15により参
照される。
The directory memory 14 stores management information of the cache memory 18, and also stores information on high-speed writing and partial writing to the cache memory 18 by the host processor 2, and communicates with the microprocessor 11 and sub-processors via buses 121 and 127. Referenced by processor 15.

サブプロセッサ15はバス128〜130を介してキャ
ッシュ論理セクタデータ転送回路16と、キャッシュデ
ータ書込み回路17と、ディスク装置データ読取り回路
20とを夫々制御することにより、ディスク装置3とキ
ャッシュメモリ18との間のデータ転送の制御を行う。
The sub-processor 15 controls the cache logical sector data transfer circuit 16, the cache data write circuit 17, and the disk device data reading circuit 20 via buses 128 to 130, respectively, thereby controlling the connection between the disk device 3 and the cache memory 18. Controls data transfer between

キャッシュ論理セクタデータ転送回路16はバス132
を介してディスク装置データ転送回路20から転送され
てきたデータを、バス131を介してキャッシュデータ
書込み回路17に論理セクタ単位で転送することにより
、ディスク装置3から読取った物理セクタ単位のデータ
を論理セクタ単位でキャッシュメモリ18に転送する。
Cache logical sector data transfer circuit 16 connects to bus 132
By transferring the data transferred from the disk device data transfer circuit 20 via the bus 131 to the cache data writing circuit 17 in units of logical sectors, the data in units of physical sectors read from the disk device 3 is transferred to the cache data writing circuit 17 via the bus 131. The data is transferred to the cache memory 18 in units of sectors.

キャッシュデータ書込み回路17はバス128,111
を介して書込みデータ転送回路13およびキャッシュ論
理セクタデータ転送回路16から転送されてきたデータ
をバス133を介してキャッシュメモリ18に書込むこ
とにより、ホストプロセッサ2およびディスク装置3か
らのデータのキャッシュメモリ18への書込みと、キャ
ッシュ論理セクタデータ転送回路16からの論理セクタ
単位のデータのキャッシュメモリ18への書込みとを行
う。
Cache data write circuit 17 uses buses 128 and 111
By writing the data transferred from the write data transfer circuit 13 and the cache logical sector data transfer circuit 16 via the bus 133 to the cache memory 18, the data from the host processor 2 and the disk device 3 can be stored in the cache memory. 18, and data in logical sector units from the cache logical sector data transfer circuit 16 is written to the cache memory 18.

キャッシュメモリ18はディスク装置3に格納されたデ
ータの一部を論理セクタ単位で格納する。
The cache memory 18 stores part of the data stored in the disk device 3 in units of logical sectors.

キャッシュデータ読取り回路19はバス184を介して
キャッシュメモリ18から読取ったデータをバス123
,135を介して読取りデータ転送回路12およびディ
スク装置データ書込み回路21に転送することにより、
キャッシュメモリ18から読取ったデータをホストプロ
セッサ2およびディスク装置3に転送する。
The cache data reading circuit 19 transfers the data read from the cache memory 18 via the bus 184 to the bus 123.
, 135 to the read data transfer circuit 12 and the disk device data write circuit 21,
Data read from cache memory 18 is transferred to host processor 2 and disk device 3.

ディスク装置データ読取り回路20はバス13Bを介し
てディスク装置3から読取ったデータをバス124.1
32を介して読取りデータ転送回路12およびキャッシ
ュ論理セクタデータ転送回路16に転送することにより
、ディスク装置3から読取ったデータをホストプロセッ
サ2およびキャッシュメモリ18に転送する。
The disk device data reading circuit 20 transfers the data read from the disk device 3 via the bus 13B to the bus 124.1.
32 to the read data transfer circuit 12 and cache logical sector data transfer circuit 16, data read from the disk device 3 is transferred to the host processor 2 and cache memory 18.

ディスク装置データ書込み回路21はバス125゜11
5を介して書込みデータ転送回路13およびキャッシュ
データ読取り回路19から夫々転送されてきたデータを
バス137を介してディスク装置3に書込むことにより
、ホストプロセッサ2およびキャッシュメモリ18から
転送されてきたデータを物理セクタ単位でディスク装置
3に書込む。
The disk device data writing circuit 21 is connected to the bus 125°11.
By writing the data transferred from the write data transfer circuit 13 and the cache data read circuit 19 via the bus 137 to the disk device 3 via the bus 137, the data transferred from the host processor 2 and the cache memory 18 is written. is written to the disk device 3 in units of physical sectors.

第2図は本発明の一実施例の動作を示すフローチャート
である。これら第1図および第2図を用いて本発明の一
実施例の動作について説明する。
FIG. 2 is a flowchart showing the operation of one embodiment of the present invention. The operation of an embodiment of the present invention will be explained using FIG. 1 and FIG. 2.

尚、キャッシュメモリ18に格納されたデータがホスト
プロセッサ1により部分書込みの形で高速書込みにより
書換えられた場合に、キャッシュメモリ18に高速書込
みされたデータを物理セクタ単位で扱えるようにする動
作について以下説明する。
In addition, when the data stored in the cache memory 18 is rewritten by the host processor 1 in the form of partial write at high speed, the following describes the operation for handling the data written to the cache memory 18 at high speed in units of physical sectors. explain.

ホストプロセッサ2からホストインタフェース10およ
び書込みデータ転送回路13を介してキャッシュデータ
書込み回路17に転送され、キャッシュデータ書込み回
路17からキャッシュメモリ18に書込まれた高速書込
みデータについての情報はディレクトリメモリ14に格
納されているので、マイクロプロセッサ11はバス12
1を介してディレクトリメモリ14内の情報を読出し、
ホストプロセッサ2により高速書込みが行われたファイ
ル内に部分書込みが存在するか否かを調べる(第2図ス
テップ31)。
Information about high-speed write data transferred from the host processor 2 to the cache data write circuit 17 via the host interface 10 and the write data transfer circuit 13 and written from the cache data write circuit 17 to the cache memory 18 is stored in the directory memory 14. microprocessor 11 is stored on bus 12.
1 reads information in the directory memory 14 through the
It is checked whether a partial write exists in the file that has been written at high speed by the host processor 2 (step 31 in FIG. 2).

高速書込みが行われたファイル内に部分書込みが存在し
なければ(第2図ステップ32)、処理を終了する。
If there is no partial writing in the file that has been written at high speed (step 32 in FIG. 2), the process ends.

また、高速書込みが行われたファイル内に部分書込みが
存在すれば(第2図ステップ32)、マイクロプロセッ
サ11はバス120を介してサブプロセッサ15に対し
て起動を指示する(第2図ステップ33)。
Furthermore, if a partial write exists in the file that has been written at high speed (step 32 in FIG. 2), the microprocessor 11 instructs the subprocessor 15 to start up via the bus 120 (step 33 in FIG. 2). ).

サブプロセッサ15はマイクロプロセッサ11の指示に
より起動されると、バス127を介してディレクトリメ
モリ14の情報を読出し、高速書込みが行われたファイ
ル内の部分書込みが行われた物理セクタのアドレスを調
べる(第2図ステップ34)。
When the sub-processor 15 is activated by an instruction from the microprocessor 11, it reads information from the directory memory 14 via the bus 127, and checks the address of the physical sector where the partial write was performed in the file where the high-speed write was performed ( Figure 2 step 34).

その後に、サブプロセッサ15はディレクトリメモリ1
4の情報から得た物理セクタのアドレスを含むディスク
装W3が使用可能かどうかを調べる(第2図ステップ3
5)。
After that, the sub-processor 15 executes the directory memory 1
Check whether the disk drive W3 containing the physical sector address obtained from the information in Step 4 is available for use (Step 3 in Figure 2).
5).

そのディスク装置3が使用可能でなければ(第2図ステ
ップ36)、サブプロセッサ15はそのディスク装置3
が使用可能となるまで待ち状態となる。
If the disk device 3 is not usable (step 36 in FIG. 2), the subprocessor 15
It will wait until it becomes available.

また、そのディスク装置3が使用可能であれば(第2図
ステップ36)、サブプロセッサ15はバス180を介
してディスク装置データ読取り回路20に対し、高速書
込みが行われたファイル内において部分書込みによって
更新されなかった論理セクタ部のデータをディスク装置
3から読出してキャッシュ論理セクタデータ転送回路1
6に転送するように指示を出力する。
If the disk device 3 is usable (step 36 in FIG. 2), the subprocessor 15 communicates with the disk device data reading circuit 20 via the bus 180 by performing partial writing in the file that has been written at high speed. The data in the logical sector portion that has not been updated is read from the disk device 3 and transferred to the cache logical sector data transfer circuit 1.
Outputs an instruction to transfer to 6.

ディスク装置データ読取り回路20ではサブプロセッサ
15からの指示によりバスLHを介してディスク装置3
からデータを読出し、バス132を介してディスク装置
3からのデータをキャッシュ論理セクタデータ転送回路
16に転送すると、バス130を介してサブプロセッサ
15に転送終了報告を行う。
The disk device data reading circuit 20 reads the disk device 3 via the bus LH according to instructions from the subprocessor 15.
After reading data from the disk device 3 and transferring the data from the disk device 3 to the cache logical sector data transfer circuit 16 via the bus 132, a transfer completion report is sent to the sub-processor 15 via the bus 130.

サブプロセッサ15はディスク装置データ読取り回路2
0からの転送終了報告を受取ると、バス128を介して
キャッシュ論理セクタデータ転送回路16に対し、ディ
スク装置データ読取り回路20から転送されてきたデー
タをキャッシュデータ書込み回路17に転送するように
指示を出力する(第2図ステップ37)。
The sub-processor 15 is a disk device data reading circuit 2
Upon receiving the transfer completion report from 0, it instructs the cache logical sector data transfer circuit 16 via the bus 128 to transfer the data transferred from the disk device data reading circuit 20 to the cache data writing circuit 17. Output (step 37 in Figure 2).

キャッシュ論理セクタデータ転送回路16ではサブプロ
セッサ15からの指示によりディスク装置データ読取り
回路20から転送されてきたデータを論理セクタ単位で
バス131を介してキヤ・ンシュデータ書込み回路17
に転送すると、バス128を介してサブプロセッサ15
に転送終了報告を行う。
The cache logical sector data transfer circuit 16 transfers data transferred from the disk device data reading circuit 20 in response to instructions from the subprocessor 15 to the cache data writing circuit 17 via the bus 131 in units of logical sectors.
When transferred to sub-processor 15 via bus 128
Report the completion of the transfer.

サブプロセッサ15ではキャッシュ論理セクタデータ転
送回路16から転送終了報告が送られてこなければ(第
2図ステップ38)、キヤ・ソシュ論理セクタデータ転
送回路16から転送終了報告が送られてくるまで待ち状
態となる。
If the subprocessor 15 does not receive a transfer completion report from the cache logical sector data transfer circuit 16 (step 38 in FIG. 2), it waits until a transfer completion report is sent from the cache logical sector data transfer circuit 16. becomes.

また、サブプロセッサ15はキャッシュ論理セクタデー
タ転送回路16から転送終了報告が送られてくると(第
2図ステップ38)、ディスク装W3からキャッシュデ
ータ書込み回路17にデータが転送される間にエラーが
検出されたか否かを調べ(第2図ステップ39)、その
データ転送中にエラーが検出されていれば、エラー処理
に移行する。
Further, when the sub-processor 15 receives a transfer completion report from the cache logical sector data transfer circuit 16 (step 38 in FIG. It is checked whether an error has been detected (step 39 in FIG. 2), and if an error is detected during the data transfer, the process moves to error processing.

そのデータ転送中にエラーが検出されていなければ、サ
ブプロセッサ15はバス129を介してキャッシュデー
タ書込み回路17に対し、バス133を介してキャッシ
ュ論理セクタデータ転送回路16から転送されてきたデ
ータをキャッシュメモリ18の部分書込みが行われた物
理セクタ内の更新されなかった論理セクタ部に書込むよ
うに指示を出力する(第2図ステップ40)。
If no error is detected during the data transfer, the sub-processor 15 sends the data transferred from the cache logical sector data transfer circuit 16 via the bus 133 to the cache data write circuit 17 via the bus 129. An instruction is output to write to the logical sector part that has not been updated in the physical sector in which the partial writing of the memory 18 has been performed (step 40 in FIG. 2).

キャッシュデータ書込み回路17ではサブプロセッサ1
5からの指示によりキャッシュ論理セクタデータ転送回
路16から転送されてきたデータをキャッシュメモリ1
8の部分書込みが行われた物理セクタ内の更新されなか
った論理セクタ部に書込むと、バス129を介してサブ
プロセッサ15に終了報告を行う。
In the cache data writing circuit 17, the sub processor 1
The data transferred from the cache logical sector data transfer circuit 16 according to instructions from the cache memory 1
When the data is written to the logical sector portion which has not been updated in the physical sector where the partial writing of No. 8 has been performed, a completion report is sent to the sub-processor 15 via the bus 129.

サブプロセッサ15ではキャッシュデータ書込み回路1
7から終了報告が送られてこなければ(第2図ステップ
41)、キャッシュデータ書込み回路17から終了報告
が送られてくるまで待ち状態となる。
In the sub-processor 15, the cache data write circuit 1
If no completion report is sent from the cache data writing circuit 17 (step 41 in FIG. 2), the cache data writing circuit 17 enters a waiting state until a completion report is sent from the cache data writing circuit 17.

また、サブプロセッサ15はキャッシュデータ書込み回
路17から終了報告が送られてくると(第2図ステップ
41)、キャッシュデータ書込み回路17によるキャッ
シュメモリ18へのデータ書込みでエラーが検出された
か否かを調べ(第2図ステップ42)、そのデータ書込
み中にエラーが検出されていれば、エラー処理に移行す
る。
Further, when the sub-processor 15 receives a completion report from the cache data write circuit 17 (step 41 in FIG. 2), the sub-processor 15 determines whether an error has been detected in the data write to the cache memory 18 by the cache data write circuit 17. If an error is detected during data writing (step 42 in FIG. 2), the process moves to error processing.

また、そのデータ書込み中にエラーが検出されていなけ
れば、サブプロセッサ15はバス120を介してマイク
ロプロセッサ11にキャッシュメモリ18へのデータ書
込みが終了したことを報告しく第2図ステップ43)、
キャッシュメモリ18に高速書込みされたデータを物理
セクタ単位で扱えるようにする動作を終了する。
Further, if no error is detected during the data writing, the subprocessor 15 reports to the microprocessor 11 via the bus 120 that the data writing to the cache memory 18 has been completed (step 43 in FIG. 2).
The operation for handling data written to the cache memory 18 at high speed in units of physical sectors is completed.

このように、部分書込みの形でキャッシュメモリ18に
高速書込みされたデータに対して、部分書込みが行われ
た物理セクタ内の更新されなかった論理セクタ部にキャ
ッシュ論理セクタデータ転送回路16から転送されてき
た論理セクタ単位のディスク装w3からのデータをサブ
プロセッサ15の制御により書込むようにすることによ
って、キャッシュメモリ18のデータをディスク装置f
3に記録するときに物理セクタ単位でしか処理できない
場合でも、キャッシュメモリ18に部分書込みの形で高
速書込みされたデータが物理セクタ単位で扱えるように
なるので、キャッシュメモリ18に部分書込みの形で書
込まれたデータをディスク装置3に記録することができ
る。
In this way, data that is written to the cache memory 18 at high speed in the form of partial writing is transferred from the cache logical sector data transfer circuit 16 to the logical sector portion that has not been updated in the physical sector where the partial writing has been performed. By writing the data from the disk device w3 in logical sector units under the control of the sub-processor 15, the data in the cache memory 18 is written to the disk device f.
3, even if data can only be processed in physical sector units, the data written to the cache memory 18 at high speed in the form of a partial write can be handled in units of physical sectors. The written data can be recorded on the disk device 3.

発明の詳細 な説明したように本発明によれば、部分書込みの形でキ
ャッシュメモリに高速書込みされたデータに対して、部
分書込みが行われた物理セクタ内の更新されなかった論
理セクタ部に論理セクタ単位で転送されてきたディスク
装置からのデータを書込むようにすることによって、部
分書込みの形で高速書込みされたキャッシュメモリのデ
ータをディスク装置に書込むことができるという効果が
ある。
DETAILED DESCRIPTION OF THE INVENTION According to the present invention, for data written to a cache memory at high speed in the form of a partial write, a logical By writing data transferred from the disk device in units of sectors, it is possible to write data in the cache memory that has been written at high speed in the form of partial writing to the disk device.

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

′!s1図は本発明の一実施例の構成を示すブロック図
、第2図は本発明の一実施例の動作を示すフローチャー
ト、第3図は従来例の構成を示すブロック図である。 主要部分の符号の説明 1・・・・−・ディスクキャッシュ制御装置2・・・・
・・ホストプロセッサ 3・・・・・・ディスク装置 11・・・・・・マイクロプロセッサ 14・・・・・・ディレクトリメモリ 15・・・・・・サブプロセッサ 16・・・・・・キャッシュ論理セクタデータ転送回路 17・・・・・・キャッシュデータ書込み回路18・・
・・・・キャッシュメモリ 20・・・・・・デイ スフ装置データ読取り回路
′! s1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a flowchart showing the operation of the embodiment of the present invention, and FIG. 3 is a block diagram showing the configuration of a conventional example. Explanation of symbols of main parts 1...Disk cache control device 2...
...Host processor 3 ...Disk device 11 ...Microprocessor 14 ...Directory memory 15 ...Subprocessor 16 ...Cache logical sector Data transfer circuit 17...Cache data write circuit 18...
...Cache memory 20...Distribution device data reading circuit

Claims (1)

【特許請求の範囲】[Claims] (1)複数の論理セクタからなる物理セクタ単位でデー
タを格納するディスク装置と上位装置とを接続し、前記
ディスク装置内に格納されたデータの一部を論理セクタ
単位で保持するキャッシュメモリを有するディスクキャ
ッシュ制御装置であって、前記上位装置からのデータに
より前記キャッシュメモリに保持された前記複数の論理
セクタの一部が更新されたとき、その更新情報を格納す
る格納手段と、前記ディスク装置から読出したデータを
前記論理セクタ単位で前記キャッシュメモリに転送する
転送手段と、前記格納手段の前記更新情報に基づいて前
記転送手段により転送される前記論理セクタ単位のデー
タを前記キャッシュメモリに書込むよう制御する制御手
段とを設けたことを特徴とするディスクキャッシュ制御
装置。
(1) A disk device that stores data in physical sector units consisting of multiple logical sectors is connected to a host device, and has a cache memory that holds part of the data stored in the disk device in logical sector units. A disk cache control device, when a part of the plurality of logical sectors held in the cache memory is updated by data from the host device, a storage means for storing updated information; a transfer means for transferring the read data to the cache memory in logical sector units; and a transfer unit for writing the data in logical sector units transferred by the transfer means to the cache memory based on the update information of the storage means. 1. A disk cache control device comprising: a control means for controlling the disk cache.
JP2272837A 1990-10-11 1990-10-11 Disk cache controller Pending JPH04148351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2272837A JPH04148351A (en) 1990-10-11 1990-10-11 Disk cache controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2272837A JPH04148351A (en) 1990-10-11 1990-10-11 Disk cache controller

Publications (1)

Publication Number Publication Date
JPH04148351A true JPH04148351A (en) 1992-05-21

Family

ID=17519469

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2272837A Pending JPH04148351A (en) 1990-10-11 1990-10-11 Disk cache controller

Country Status (1)

Country Link
JP (1) JPH04148351A (en)

Similar Documents

Publication Publication Date Title
JP2561398B2 (en) Redundant disk controller
JPH0518143B2 (en)
JPH04148351A (en) Disk cache controller
US5359623A (en) Magneto-optical disc control system and method for avoiding the need to initialize an entire surface of a storage medium on commencement of use
JPH0793101A (en) Data backup device
JP3425355B2 (en) Multiple write storage
JPS6331806B2 (en)
JPH0520196A (en) Disk / Cash control unit
JP3376316B2 (en) Disk array device, high-speed communication method used therefor, and recording medium recording control program therefor
JP3480282B2 (en) Duplicated file I/O device, method thereof, and information processing device using the same
JPS61127026A (en) Optical disk controller
JP3940701B2 (en) Disk array device and cache matching control method applied to the same
JP2001014219A (en) Method and device for controlling cache
JPH0830402A (en) Parity storage method
JPH05181613A (en) Information processor
JPS6346553A (en) File copying method
JPH10254781A (en) Auxiliary storage
JPH04322341A (en) Disk cache controller
JPH0876940A (en) Disk array control method
JPH02165354A (en) auxiliary storage
JPH04257951A (en) Disk cache controller
JPH05233159A (en) Dual auxiliary storage system
JPS6390088A (en) Optical disc recording information management system
JPH05334012A (en) Large capacity disk controller
JPH02501602A (en) Mirror disk RAM system