JPH0235542A - Transfer control system for disk cache data - Google Patents

Transfer control system for disk cache data

Info

Publication number
JPH0235542A
JPH0235542A JP63184718A JP18471888A JPH0235542A JP H0235542 A JPH0235542 A JP H0235542A JP 63184718 A JP63184718 A JP 63184718A JP 18471888 A JP18471888 A JP 18471888A JP H0235542 A JPH0235542 A JP H0235542A
Authority
JP
Japan
Prior art keywords
cache memory
block
track
read
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP63184718A
Other languages
Japanese (ja)
Other versions
JP2634867B2 (en
Inventor
Yoshiro Shirayanagi
白柳 芳朗
Yoshinaga Kuwabara
桑原 善祥
Shigeru Kijiro
木城 茂
Katsunori Nakamura
中村 勝憲
Hisaharu Takeuchi
久治 竹内
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
Original Assignee
Hitachi 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 filed Critical Hitachi Ltd
Priority to JP63184718A priority Critical patent/JP2634867B2/en
Publication of JPH0235542A publication Critical patent/JPH0235542A/en
Application granted granted Critical
Publication of JP2634867B2 publication Critical patent/JP2634867B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To shorten an access time by providing load end flags by blocks and setting a flag every time the block is loaded completely. CONSTITUTION:A target block of data is transferred between a channel device 3 and a disk device 7 and the block is saved even on a cache memory 5. When the data transfer is completed, the load completion flag 62 of the block is set to 1 and the command end is reported to the channel device 3. Then the load completion flag 62 is set to 1 every time a block is loaded until the whole track is loaded. Then a hit result is obtained when a read, write or search command is issued, the load completion flag 62 of a target block is read in and checked. When loading is completed, data transfer is performed between the channel device 3 and cache memory 5 and the command end is reported to the channel device 3, thus finishing the operation.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、ディスクキャッシュのデータ転送制御方式に
係り、特に、トランク単位にキャッシュメモリを扱うデ
ィスクキャッシュのデータ転送制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data transfer control method for a disk cache, and particularly to a data transfer control method for a disk cache that handles cache memory on a trunk-by-trunk basis.

[従来の技術] ディスク装置の実効的性能を上げるものの一つとしてデ
ィスクキャッシュがある。ディスクキャッシュは、ディ
スク装置と主記憶装置の間に置かれ、ディスク装置のデ
ータの写しをキャッシュメモリに置き、中央処理装置か
ら、ディスク装置から主記憶装置へデータを転送するリ
ード(読み出し)命令や、主記憶装置からディスク装置
へデータ転送するライト(書き込み)命令が発行された
とき、それぞ九キャッシュメモリから主記憶装置へある
いは主記憶装置からキャッシュメモリへデータを転送し
た時点で、リード命令やライ1〜命令を終了させること
によりディスク装置上の目的ブロックへ位置付けるため
のトラック位置決め(シーク)時間やディスク回転待時
間をなくし入出力処理の高速化を図るものである。
[Prior Art] A disk cache is one of the things that improves the effective performance of a disk device. A disk cache is placed between a disk device and a main storage device. A copy of data from the disk device is placed in the cache memory, and the central processing unit receives a read command or command to transfer data from the disk device to the main storage device. When a write command is issued to transfer data from the main memory to the disk device, a read command or By terminating the RIE 1 to command, the track positioning (seek) time for positioning to the target block on the disk device and the disk rotation waiting time are eliminated, thereby speeding up the input/output processing.

従来、キャッシュメモリへのデータの写しは、トラック
単位とブロック単位の2種類が多く用いられている。こ
こで、「ブロックJは、cpu側からみた論理レコード
のまとまった単位で、通常。
Conventionally, two types of copying of data to a cache memory are often used: track by track and block by block. Here, ``Block J is usually a unit of logical records from the CPU side.

ディスク装置の1トラツク中に含まれるブロック数は9
5程度である。ディスク装置からキャッシュメモリへデ
ータを移す契機として、リード命令やライト命令が発行
された時目的データがキャッシュメモリにないならば、
ディスク装置から主記憶装置に目的データを転送するの
と同時にキャッシュメモリにもデータを移し、ひきつづ
きトラック単位(1トラツク分全部)や数ブロツク単位
(ロード開始レコードからトラックの最終レコードまで
)の大きさで、データをキャッシュメモリに移すことが
多い、なお、1つの命令で要求されるデータの大きさは
、1トラツク未満のこともあるし、数トラック分のこと
もあるし、まちまちである。
The number of blocks included in one track of the disk device is 9.
It is about 5. If the target data is not in the cache memory when a read or write command is issued as an opportunity to move data from the disk device to the cache memory,
At the same time that the target data is transferred from the disk device to the main memory, the data is also transferred to the cache memory, and the data is continuously transferred in units of tracks (all of one track) or units of several blocks (from the load start record to the last record of the track). In this case, data is often moved to a cache memory.The amount of data required by one instruction varies, sometimes being less than one track, sometimes several tracks worth.

以下、ディスク装置からキャッシュメモリにデータを移
す(書き込む、コピーする。)動作をロードと称する。
Hereinafter, the operation of moving (writing, copying) data from the disk device to the cache memory will be referred to as loading.

トラック単位や数ブロツク単位でリードライトを実行し
た近傍のデータをキャッシュメモリに移すのは、次にア
クセスされる確率が高いと思われるからである。
The reason for moving adjacent data that has been read/written in units of tracks or in units of several blocks to the cache memory is that the probability of it being accessed next is considered to be high.

ブロック単位のロードは中央処理装置からのリードライ
ト命令の単位がブロックであるため、データの管理をき
めこまかくできる反面、可変長ブロックを対象にする場
合、キャッシュメモリ内のブロックの空エリア管理が複
雑となる。従って、ブロック単位のロードは固定長ブロ
ックに向いている。このような固定長ブロックのロード
に関して開示された公知例として特開昭55−1570
56号公報記載のようなものがある。
Loading in blocks allows for fine-grained data management because the unit of read/write commands from the central processing unit is a block, but on the other hand, when variable-length blocks are targeted, managing the empty area of blocks in the cache memory becomes complicated. Become. Therefore, block-by-block loading is suitable for fixed-length blocks. A known example of loading such fixed-length blocks is disclosed in Japanese Patent Application Laid-Open No. 55-1570.
There is something like the one described in Publication No. 56.

また、可変長ブロックをロードするにはトラック単位が
扱いやすく、多くのディスクキャッシュで使われている
。その公知例の一つは特開昭56−16257号公報に
示されている。
In addition, track units are easy to handle when loading variable-length blocks, and are used in many disk caches. One of the known examples is shown in Japanese Unexamined Patent Publication No. 16257/1983.

[発明が解決しようとする課題] 以下、トラック単位のロードの一例を第3図にもとづき
説明する。なお、本明細書中、「レコードROJ等とあ
るのは、ディスク上の物理レコードで、前記「ブロック
」と同義のものとして扱う。
[Problems to be Solved by the Invention] An example of loading in units of tracks will be described below with reference to FIG. 3. Note that in this specification, "record ROJ, etc." refers to a physical record on a disk, and is treated as having the same meaning as the above-mentioned "block."

第3図は1トラツクを一列に広げた図であり、そのトラ
ックは、ホームアドレス(HA)、レコードO(RO)
以下レコード1 (R1)、 レコード2 (R2) 
、レコード3 (R3)と順次レコードが記録されてお
り、最終レコードL(R,、)までフォーマツティング
されているものとする。中央処理装置からレコード2の
リード命令が発行されたときに当該レコードを含むトラ
ンクがキャッシュメモリに存在しない場合は、レコード
R2をディスク装置から読み出しながら主記憶装置とキ
ャッシュメモリへ同時に送り、当該命令に対して終了報
告を返した後、ひきつづきR3以降RLまでとHA、R
O,R1まで1トラック全体をディスク装置からキャッ
シュメモリヘロードする。キャッシュメモリ管理の方法
によっては、R3からトラック最終レコードRしまでの
ロードのみしてもよい、従来このロード中のレコードに
対して次のリードライト命令が発行された場合、トラッ
ク全体のロードが完了するまで、当該リードライト命令
を待たせる必要があった。特に、順次アクセスファイル
に対するリードライト命令はレコードR2の後R3とい
う順にシーケンシャルにアクセスされるため、上記ロー
ド完了時ちが発生する確率が高い。
Figure 3 shows one track spread out in a row, and the track has the home address (HA), record O (RO)
Below are record 1 (R1), record 2 (R2)
, record 3 (R3) are recorded sequentially, and formatting is performed up to the final record L (R, , ). If the trunk containing the record does not exist in the cache memory when a read command for record 2 is issued from the central processing unit, record R2 is read from the disk device and simultaneously sent to the main storage and cache memory, and After returning the completion report, continue from R3 to RL and HA, R.
The entire track up to O and R1 is loaded from the disk device to the cache memory. Depending on the cache memory management method, it may be possible to only load from R3 to the last track record R. Conventionally, when the next read/write command is issued for the record currently being loaded, the loading of the entire track is completed. It was necessary to make the read/write command wait until the read/write command was executed. In particular, since read/write commands for sequential access files are accessed sequentially in the order of records R2 and R3, there is a high probability that an error will occur when the loading is completed.

トラック全体をロードする時間はブロック長が短い場合
ディスク1回転の時間となり、上記ロード完了時ちはデ
ィスクキャッシュアクセス性能の向上を妨げる一つの要
因である。
If the block length is short, the time to load the entire track is the time required for one rotation of the disk, and this is one factor that hinders the improvement of disk cache access performance when the load is completed.

本発明の目的はこの、以前のリードライト命令に対する
ロード動作中に発行されたロード対象ブロックに対する
次のリードライト命令をトラック全体のロード完了まで
待たせることなく実行できるようにし、高速アクセスを
可能とするディスクキャッシュ転送!IJ御方式を提供
することにある。
The purpose of the present invention is to enable high-speed access by making it possible to execute the next read/write command for a block to be loaded that was issued during a load operation for a previous read/write command without having to wait until the entire track has been loaded. Disk cache transfer! Our goal is to provide an IJ control method.

[課題を解決するための手段] 上記目的を達成するため1本発明のキャッシュメモリデ
ータ転送制御方式は、各々のブロック毎に前記ロードが
完了したことを表わすフラグであって、このキャッシュ
メモリにロードされるべき各トラック毎に、少なくとも
各トランクが有するブロック数分のロード完了フラグを
それぞれ格納する手段と、前記ディスク装置から前記キ
ャッシュメモリにトラック単位でロードを開始する際に
、ロード対象のトラック内ブロックに対応する眞記ロー
ド完了フラグをすべてリセットする(未ロード状態を表
示する)第1の手段と、各ブロックのロード完了毎に当
該ブロックに対応する前記ロード完了フラグをセットす
る(当該ブロックのロード完了を表示する)第2の手段
とを僅える。
[Means for Solving the Problems] In order to achieve the above object, the cache memory data transfer control method of the present invention provides a flag indicating that the loading is completed for each block, means for storing load completion flags corresponding to at least the number of blocks possessed by each trunk for each track to be loaded; A first means of resetting all the Makki load completion flags corresponding to a block (indicating an unloaded state), and setting the load completion flag corresponding to the block each time the loading of each block is completed (of the block and a second means (indicating loading completion).

又、ロード中のトラック内ブロックに対して中央処理装
置から次の読み出し・書き込み命令が発行された場合、
前記ロード完了フラグがロード完了状態にセットされて
いるときにはこの読み出し・書き込み命令を即座に実行
し、前記ロード完了フラグがリセットされているときに
はこの読み出し・書き込み命令を待たせる第3の手段を
備える。
Also, when the central processing unit issues the next read/write command to the block in the track that is being loaded,
A third means is provided to immediately execute the read/write command when the load completion flag is set to a load completion state, and to make the read/write command wait when the load completion flag is reset.

更に、前記第3の手段により読み出し、書き込み命令を
待たせた場合、その後に目的ブロックがロード完了とな
った時点を検知することにより、上位装置に対し再度命
令を発行するように要求する第4の手段を備える。
Furthermore, when the read and write commands are made to wait by the third means, the fourth means requests the host device to issue the command again by detecting the point in time when the loading of the target block is completed. Equipped with means for

前記ロード完了フラグを格納する手段は、キャッシュメ
モリ内、又はディレクトリメモリ、もしくはそれ以外の
メモリに設けてもよい。
The means for storing the load completion flag may be provided in a cache memory, a directory memory, or other memory.

[作用] 上記構成に基づく作用を説明する。[Effect] The effect based on the above configuration will be explained.

中央処理装置からリードライト(読み出し・書き込み)
命令が発行された場合、キャッシュメモリに、目的デー
タが存在しないとき、前記第1の手段により当該トラッ
クのロード完了フラグを全部リセットする。そして、デ
ィスク装置と主記憶装置間でデータ転送を行ない、当該
データをキャッシュメモリにも転送(ロード)する。目
的データの転送完了後当該ブロックのロード完了フラグ
をセットし、ひきつづきディスク装置からキャッシュメ
モリへデータをロードしはじめる。ロードの途中、ブロ
ックごとにロードが完了するたびに前記第2の手段によ
り当該ブロックのロード完了フラグをセットする。トラ
ック全体のロードが完了した時点でトラック内全体のブ
ロックのロード完了フラグがセットされたことになる。
Read/write from central processing unit
When the command is issued and the target data does not exist in the cache memory, the first means resets all the load completion flags of the track. Then, data is transferred between the disk device and the main storage device, and the data is also transferred (loaded) to the cache memory. After the transfer of the target data is completed, the load completion flag for the block is set, and data continues to be loaded from the disk device to the cache memory. During loading, each time the loading of each block is completed, the second means sets the loading completion flag of the block. When the loading of the entire track is completed, the loading completion flag of the entire block in the track is set.

ロード中に次のリードライト命令が発行され。The next read/write command is issued during loading.

その目的ブロックがロード完了であれば、前記第3の手
段によりすぐにキャッシュメモリと主記憶装置間で処理
を実行し、ロード未完了であれば第3の手段により当該
リードライト命令を待たせて。
If the target block has been loaded, the third means immediately executes the processing between the cache memory and the main memory, and if the load has not been completed, the third means makes the read/write command wait. .

(キャッシュ制御をディスク制御装置以下のレベルで行
なうのであればコマンド再試行で待たせることもできる
)ロード完了を待ち、当該ブロックのロード完了時に、
第4の手段により再び当該リードライト命令の再発行を
要求して、主記憶装置とキャッシュメモリ間の転送を行
なう。このような制御を行なうことにより、ロード処理
中のトラック内ブロックを目的とするリードライト命令
は最小限の待ち時間で、キャッシュメモリ上で実行でき
る。
(If cache control is performed at a level below the disk controller, you can wait by retrying the command.) Wait for the load to complete, and when the block is finished loading,
The fourth means requests reissue of the read/write command again to perform transfer between the main storage device and the cache memory. By performing such control, a read/write instruction aimed at a block within a track that is being loaded can be executed on the cache memory with minimal waiting time.

[実施例コ 次に本発明の一実施例を図面を参照して詳細に説明する
[Embodiment] Next, an embodiment of the present invention will be described in detail with reference to the drawings.

第2図は本発明の適用されるシステム構成例である。本
システム構成例は、リードライト命令をチャンネルコマ
ンドワード(CCW)としてチャネル装置3に指示する
中央処理装置1と、主記憶装置2と、中央処理装置1か
らCCWを受けとり。
FIG. 2 is an example of a system configuration to which the present invention is applied. This system configuration example includes a central processing unit 1 that instructs a channel device 3 to read/write a read/write command as a channel command word (CCW), a main storage device 2, and a CCW received from the central processing unit 1.

ディスク制御装置4ヘコマンドを発行するチャネル装置
3と、キャッシュメモリ5と、該メモリ5に格納される
トラック単位情報を格納するディレクトリメモリ6と、
これらのキャッシュメモリ5及びデイレクトメモリ6を
制御し、さらにチャネル3とディスク装置7の間の転送
制御をつかさどるディスク制御装置4と、キャッシュメ
モリ6に比べて格段に大きい容量を持つディスク装置7
とから成る。本実施例ではキャッシュメモリ5とディレ
クトリメモリ6をディスク制御装置4のレベルに置いた
か、主記憶装置2とディスク装置7の間のどこに置いて
も本発明の効果は失わない。また、ディレクトリメモリ
6はキャッシュメモリ5に含まれても良い0本発明の効
果を最大限生かすため、主記憶装置2及びキャッシュメ
モリ5の間のデータ転送と、キャッシュメモリS及びデ
ィスク装置7の間のデータ転送とは、同時にかつ独立に
実行できるものとする。
a channel device 3 that issues commands to the disk control device 4; a cache memory 5; a directory memory 6 that stores track unit information stored in the memory 5;
A disk control device 4 that controls these cache memories 5 and direct memories 6 and also takes charge of transfer control between the channel 3 and the disk devices 7, and a disk device 7 that has a much larger capacity than the cache memory 6.
It consists of In this embodiment, the effects of the present invention are not lost even if the cache memory 5 and directory memory 6 are placed at the level of the disk control device 4 or anywhere between the main storage device 2 and the disk device 7. In addition, the directory memory 6 may be included in the cache memory 5. In order to maximize the effects of the present invention, the directory memory 6 may be included in the data transfer between the main storage device 2 and the cache memory 5, and the data transfer between the cache memory S and the disk device 7. Data transfer can be performed simultaneously and independently.

第1図は、ディスク制御装置4とディレクトリメモリ6
の詳細を示した図である。ディスク制御装置4は、チャ
ネル装置3とキャッシュメモリ5との間のデータ転送を
制御するチャネル転送制御部41と、ディスク装置7と
キャッシュメモリ5との間のデータ転送を制御するデバ
イス転送制御部42とからなり、それぞれマイクロプロ
グラム411と421を有している。これらのマイクロ
プログラムを実行するマイクロプロセッサはいくつであ
っても良い。ディレクトリメモリ6は、キャッシュメモ
リ5のトラック単位の制御情報を格納するメモリであり
、制御3601.602を介してそれぞれチャネル転送
制御部41とデバイス転送制御部42からアクセスされ
る。ビット/ミス判定テーブル61はチャネル装置3が
ら送られてきたコマンドがリード、ライト系コマンドで
あるとき目的トラックがキャッシュ内に存在する(ビッ
ト:キャッシュ内に当該トラックエリアを確保したがロ
ード未完了のケースを含む)か、存在しない(ミス)か
を判定するためのテーブルである。ロード完了フラグ6
2はキャッシュメモリ5内に格納されたトラックごとに
ホームアドレスHA 7)1ら最大レコードRmaxま
での全ブロックに対するロード完了/未完了を表示する
フラグであり、ここではロード未完了時Oにリセット、
ロード完了時に1にセットすることとする。
FIG. 1 shows a disk controller 4 and a directory memory 6.
FIG. The disk control device 4 includes a channel transfer control section 41 that controls data transfer between the channel device 3 and the cache memory 5, and a device transfer control section 42 that controls data transfer between the disk device 7 and the cache memory 5. and have microprograms 411 and 421, respectively. Any number of microprocessors may be used to execute these microprograms. The directory memory 6 is a memory that stores track-by-track control information of the cache memory 5, and is accessed by the channel transfer control unit 41 and device transfer control unit 42 via controls 3601 and 602, respectively. The bit/miss determination table 61 shows that when the command sent from the channel device 3 is a read or write command, the target track exists in the cache (bit: the target track area is secured in the cache but the loading is not completed). This is a table for determining whether a case is included (includes a case) or does not exist (miss). Load completion flag 6
2 is a flag that indicates completion/incomplete of loading for all blocks from home address HA 7) 1 to maximum record Rmax for each track stored in the cache memory 5; here, it is reset to O when loading is not completed;
It is set to 1 when loading is completed.

第4図に、リード・ライト・サーチ系コマンドの実行概
略フローを示す。
FIG. 4 shows a schematic execution flow of read/write/search commands.

以下第4図(a)(b)に従い、動作を説明する。The operation will be explained below with reference to FIGS. 4(a) and 4(b).

ャネル転送制御部41はヒツト/ミス判定テーブル61
を読み出しくステップ1002)、目的ブロックが含ま
れているトラックがキャッシュ内に存在するか否かをチ
エツクする(ステップ1003)。
The channel transfer control unit 41 uses a hit/miss determination table 61
(step 1002), and checks whether a track containing the target block exists in the cache (step 1003).

ミスの場合には、当該トラックエリアをキャッシュメモ
リに確保し、それと同時にロード完了フラグ62を全ブ
ロンク分リセットする(ステップ1004)(前記第1
の手段)。
In the case of a miss, the relevant track area is secured in the cache memory, and at the same time, the load completion flag 62 is reset for all broncs (step 1004) (the first
means).

次にチャネル装置3とディスク装@7の間で目的ブロッ
クのデータ転送を行ない、その時当該ブロックをキャッ
シュメモリ5にも入れる(ステップ1005)。データ
転送を完了すると当該ブロックのロード完了フラグを1
にセットし、チャネル装置3に対してコマンド終了報告
を行なう(ステップ1006)。その後トラック全体が
ロードされるまでブロックをロードするたびにロード完
了フラグを1にセットしていく(ステップ1007゜1
008)(前記第2の手段)、1トラック全体のロード
が完了した時点で(ステップ1009)、ビット/ミス
判定テーブル61や他のテーブル(キャッシュメモリの
先頭アドレス、データの大きさ、シリンダ番号等を管理
するスロット管理テーブルなど)に対してロード完了の
状態をセットする(ステップ1010)。
Next, the data of the target block is transferred between the channel device 3 and the disk device @7, and at that time, the block is also stored in the cache memory 5 (step 1005). When the data transfer is completed, the load completion flag for the block is set to 1.
is set, and a command completion report is sent to the channel device 3 (step 1006). Thereafter, the load completion flag is set to 1 each time a block is loaded until the entire track is loaded (step 1007゜1).
008) (the second means), when the loading of the entire track is completed (step 1009), the bit/miss determination table 61 and other tables (cache memory start address, data size, cylinder number, etc.) are A load completion status is set for the slot management table (for example, a slot management table that manages the data) (step 1010).

一方、リ−1・・ライト・サーチ・コマンドが発行され
たときヒツトであると(ステップ1003)、目的ブロ
ックのロード完了フラグ62を読み、チエツクする。ロ
ード完了済みであれば(ステップ1021)、チャネル
とキャッシュメモリ間でデータ転送を行ない(ステップ
1022)、コマンド終了報告をチャネル装置3に返し
て終了する(ステップ1023)。
On the other hand, if it is a hit when the read/write search command is issued (step 1003), the load completion flag 62 of the target block is read and checked. If the loading has been completed (step 1021), data is transferred between the channel and the cache memory (step 1022), a command completion report is returned to the channel device 3, and the process ends (step 1023).

また、目的ブロックのロードが未完了の場合は(ステッ
プ1021)、チャネルデータ転送制御部41はチャネ
ル装置3に対してコマンド再試行を報告しくステップ1
031)、当該コマンドを待たせる(前記第3の手段)
。この間、チャネル制御部41は目的ブロックのロード
完了フラグがセットされたか否かを監視しくステップl
 O32)、セットされたのをきっかけに、チャネル装
置3に対してコマンド再発行の要求を行なう(ステップ
1033)(前記第4の手段)。
Further, if the loading of the target block is not completed (step 1021), the channel data transfer control unit 41 reports the command retry to the channel device 3.
031), make the command wait (the third means)
. During this time, the channel control unit 41 monitors whether or not the load completion flag of the target block is set.
O32), upon being set, requests the channel device 3 to reissue the command (step 1033) (the fourth means).

目的ブロックのロード完了フラグ62のセット監視(前
記ステップ1032)はチャネルデータ転送制御部41
が行ない、ロード完了フラグ62のセット(前記ステッ
プ1008)はデバイスデータ転送制御部42が行ない
、各制御部が独立に同時に処理を実行できるようにすれ
ば、ロード完了の待ち時間を最小限にすることができる
The channel data transfer control unit 41 monitors the setting of the target block load completion flag 62 (step 1032).
The setting of the load completion flag 62 (step 1008) is performed by the device data transfer control unit 42, and by allowing each control unit to execute processing independently and simultaneously, the waiting time for load completion can be minimized. be able to.

本実施例によれば、ブロック毎にロード完了フラグを立
てることによって、ロード完了したブロックに即座にア
クセスでき、1トラック全体のロード完了を待たなくて
よいので、アクセスタイムが短縮される。なお、キャッ
シュメモリやディレクトリメモリとしては、大容量のも
のができるので、これらのメモリを用いれば、ロード完
了フラグの格納エリアを容易に確保することができる。
According to this embodiment, by setting a load completion flag for each block, a block that has been loaded can be accessed immediately, and there is no need to wait for the entire track to be loaded, thereby shortening the access time. Note that cache memory and directory memory can have a large capacity, so if these memories are used, the storage area for the load completion flag can be easily secured.

[発明の効果] 以上詳しく述べたように、本発明のディスクキャッシュ
データ転送制御方式によれば、各ブロック毎にロード完
了フラグを設け、キャッシュメモリにトラック単位でロ
ードを開始する際にトラック内の全ブロックに対応する
ロード完了フラグをリセットし、次々のブロックのロー
ド完了の度に当該フラグをセットするようにしたので、
ディスク装置からキャッシュメモリにデータをロード中
に、当該トランク内のブロックに対して次の読み取り・
書き込み命令が発行されたとき、当該命令のロード完了
待ち時間を著しく短縮することができ、その結果、サブ
システムへのアクセスタイムが短縮され、システム全体
のスループットを向上することができる等、優れた効果
を奏する。
[Effects of the Invention] As described above in detail, according to the disk cache data transfer control method of the present invention, a load completion flag is provided for each block, and when starting loading into the cache memory in units of tracks, The load completion flag corresponding to all blocks is reset, and the flag is set each time the loading of successive blocks is completed.
While data is being loaded from the disk device to the cache memory, the next read/write is performed on the block in the trunk.
When a write instruction is issued, the wait time for the instruction to complete loading can be significantly shortened, resulting in a reduction in the access time to the subsystem and an improvement in the throughput of the entire system. be effective.

【図面の簡単な説明】 第1図は本発明の一実施例の詳細を示すブロック図、第
2図は本発明の一実施例のシステム構成図、第3図はト
ラック単位のロードを行なう説明図、第4図(a)(b
)は本発明の一実施例の動作を示すフローチャートであ
る。 1−・・・・・中央処理装置、2・・・・主記憶装置、
31.。 ・・・チャネル装置、4・・・・・・ディスク制御装置
、5・・・・・キャッシュメモリ、6・・・・・・ディ
レクトリメモリ。 7・・・・・ディスク装置、41・・・・・・チャネル
転送制御部、42・・・・・・デバイス転送制御部、4
11・・・・・チャネル側マイクロプログラム、421
・・・・・・デバイス側マイクロプログラム、61・・
・・・ヒツト/ミス判定テーブル、62・・・・・・ロ
ード完了フラグ。 第3図 ロード終了
[Brief Description of the Drawings] Fig. 1 is a block diagram showing details of an embodiment of the present invention, Fig. 2 is a system configuration diagram of an embodiment of the present invention, and Fig. 3 is an explanation of loading in units of tracks. Figure 4(a)(b)
) is a flowchart showing the operation of an embodiment of the present invention. 1-...Central processing unit, 2...Main storage device,
31. . ... Channel device, 4 ... Disk control device, 5 ... Cache memory, 6 ... Directory memory. 7...Disk device, 41...Channel transfer control unit, 42...Device transfer control unit, 4
11...Channel side microprogram, 421
...Device side microprogram, 61...
...Hit/miss judgment table, 62...Load completion flag. Figure 3 Loading completed

Claims (1)

【特許請求の範囲】 1、主記憶装置と、多数のトラックを持ち各トラックが
複数のブロックから成るディスク装置と、前記ディスク
装置の写しをトラック単位で保持するキャッシュメモリ
とを具備し、中央処理装置からの前記ブロックの読み出
し・書き込み命令に対し、目的ブロックを含むトラック
が前記キャッシュメモリ内に存在するときには、前記キ
ャッシュメモリと前記主記憶装置との間でデータ転送を
行ない、目的ブロックを含むトラックが前記キャッシュ
メモリ内に存在しないときには、前記ディスク装置と前
記主記憶装置との間でデータ転送を行なうと共に、前記
ディスク装置から前記キャッシュメモリにデータをロー
ドするディスクキャッシュデータ転送制御方式において
、各々のブロック毎に前記ロードが完了したことを表わ
すフラグであつて、前記キャッシュメモリにロードされ
るべき各トラック毎に、少なくとも各トラックが有する
ブロック数分のロード完了フラグをそれぞれ格納する手
段と、前記ディスク装置から前記キャッシュメモリにト
ラック単位でロードを開始する際に、ロード対象のトラ
ック内ブロックに対応する前記ロード完了フラグをすべ
てリセットする第1の手段と、各ブロックのロード完了
毎に当該ブロックに対応する前記ロード完了フラグをセ
ットする第2の手段とを備えたことを特徴とするディス
クキャッシュデータ転送制御方式。 2、ロード中のトラック内ブロックに対して中央処理装
置から次の読み出し・書き込み命令が発行された場合、
前記ロード完了フラグがロード完了状態にセットされて
いるときには前記読み出し書き込み命令を即座に実行し
、前記ロード完了フラグがリセットされているときには
前記読み出し・書き込み命令を待たせる第3の手段を備
えたことを特徴とする請求項1記載のディスクキャッシ
ュデータ転送制御方式。 3、前記第3の手段により前記読み出し・書き込み命令
を待たせた後、当該ブロックがロード完了になつた時点
を検知することにより、上位装置に対し再び命令を発行
するように要求する第4の手段を備えたことを特徴とす
る請求項2記載のディスクキャッシュデータ転送制御方
式。
[Claims] 1. A main storage device, a disk device having a large number of tracks and each track consisting of a plurality of blocks, and a cache memory that holds a copy of the disk device in units of tracks, and a central processing In response to a read/write command for the block from the device, if a track containing the target block exists in the cache memory, data is transferred between the cache memory and the main storage device, and the track containing the target block is transferred. does not exist in the cache memory, in a disk cache data transfer control method in which data is transferred between the disk device and the main storage device and data is loaded from the disk device to the cache memory, each means for storing, for each track to be loaded into the cache memory, at least as many load completion flags as the number of blocks possessed by each track, the flag indicating that the loading is completed for each block; and a first means for resetting all the load completion flags corresponding to the blocks in the track to be loaded when starting loading from the device to the cache memory in track units; and second means for setting the load completion flag. 2. When the next read/write command is issued from the central processing unit to the block in the track being loaded,
and third means for immediately executing the read/write command when the load completion flag is set to a load completion state, and causing the read/write command to wait when the load completion flag is reset. 2. The disk cache data transfer control method according to claim 1. 3. After making the read/write command wait by the third means, a fourth method requests the host device to issue the command again by detecting the point in time when the loading of the block is completed. 3. The disk cache data transfer control system according to claim 2, further comprising means.
JP63184718A 1988-07-26 1988-07-26 Disk cache data transfer control method Expired - Lifetime JP2634867B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63184718A JP2634867B2 (en) 1988-07-26 1988-07-26 Disk cache data transfer control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63184718A JP2634867B2 (en) 1988-07-26 1988-07-26 Disk cache data transfer control method

Publications (2)

Publication Number Publication Date
JPH0235542A true JPH0235542A (en) 1990-02-06
JP2634867B2 JP2634867B2 (en) 1997-07-30

Family

ID=16158151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63184718A Expired - Lifetime JP2634867B2 (en) 1988-07-26 1988-07-26 Disk cache data transfer control method

Country Status (1)

Country Link
JP (1) JP2634867B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04256143A (en) * 1990-08-31 1992-09-10 Internatl Business Mach Corp <Ibm> Peripheral subsystem and control method
JPH0549182A (en) * 1991-08-08 1993-02-26 Sharp Corp Charger for battery set

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6031664A (en) * 1983-08-01 1985-02-18 Nippon Telegr & Teleph Corp <Ntt> Access system of cache preceding
JPS62154153A (en) * 1985-12-27 1987-07-09 Hitachi Ltd Control system for external storage

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6031664A (en) * 1983-08-01 1985-02-18 Nippon Telegr & Teleph Corp <Ntt> Access system of cache preceding
JPS62154153A (en) * 1985-12-27 1987-07-09 Hitachi Ltd Control system for external storage

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04256143A (en) * 1990-08-31 1992-09-10 Internatl Business Mach Corp <Ibm> Peripheral subsystem and control method
JPH0549182A (en) * 1991-08-08 1993-02-26 Sharp Corp Charger for battery set

Also Published As

Publication number Publication date
JP2634867B2 (en) 1997-07-30

Similar Documents

Publication Publication Date Title
US5937427A (en) Information recording apparatus and method capable of efficient erase, write and verify processes
US6374327B2 (en) Method of data migration
US5551002A (en) System for controlling a write cache and merging adjacent data blocks for write operations
JP3175371B2 (en) Data storage format conversion method, conversion method thereof, access control device, and data access method
JP4252139B2 (en) Storage system
EP0077453A2 (en) Storage subsystems with arrangements for limiting data occupancy in caches thereof
JPS619722A (en) Apparatus for rearranging page with track in disc memory
JP2003501778A (en) Disk drive controller circuit and method for skipping defective and / or unwanted sectors
US20040268070A1 (en) Method and apparatus for backing up data in virtual storage medium
US5872955A (en) Method and apparatus for reading and writing data in a disk drive system
JPH0115903B2 (en)
JPH0235542A (en) Transfer control system for disk cache data
US6209057B1 (en) Storage device having data buffer
JP2523715B2 (en) Magnetic disk drive
JPH0241776B2 (en)
JP2023130038A (en) Disk array device, load distribution method, and load distribution program
JP3472357B2 (en) Information processing device
US20030053237A1 (en) System and method for performing write operations in a disk drive using a write stack drive
JPH0876940A (en) Method for controlling disk array
JPH04111015A (en) Information recorder
JPS597986B2 (en) Magnetic disk subsystem
WO1994022134A1 (en) Buffer control for data transfer within hard disk during idle periods
JPH05151094A (en) Backup control system of file high-speed writing mechanism
JPH0652027A (en) Data storage device
JPH04341977A (en) Data reproducing control system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080425

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090425

Year of fee payment: 12

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090425

Year of fee payment: 12