JPH0488539A - Disk cache control system - Google Patents

Disk cache control system

Info

Publication number
JPH0488539A
JPH0488539A JP2204537A JP20453790A JPH0488539A JP H0488539 A JPH0488539 A JP H0488539A JP 2204537 A JP2204537 A JP 2204537A JP 20453790 A JP20453790 A JP 20453790A JP H0488539 A JPH0488539 A JP H0488539A
Authority
JP
Japan
Prior art keywords
cache
data
cache memory
host computer
flag
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
JP2204537A
Other languages
Japanese (ja)
Inventor
Kazuya Kimura
木村 一弥
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2204537A priority Critical patent/JPH0488539A/en
Publication of JPH0488539A publication Critical patent/JPH0488539A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To immediately obtain an effect of disk cache when ordinary processing is restarted by holding data with high access frequency accumulated in cache memory in previous processing as it is. CONSTITUTION:When a data write request is issued from a host computer 11 to a magnetic disk 12, the cache write flag of a flag register 18 is set, and data is written on the magnetic disk 12. Simultaneously, it is written on the cache memory 17. Also, when a data readout request is issued, the flag of the flag register 18 is set similarly in a write operation. When the readout request exists in the cache memory 17, the readout of the data is performed, and it is transmitted to a host computer 11. In the ordinary processing in which the designation of cache is received, the update processing of the cache memory 17 is performed, and the data with high access frequency can be accumulated.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、ホストコンピュータからのディスクに対する
アクセス要求に応じてキャッシュ・メモリを制御するデ
ィスク・キャッシュ制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention relates to a disk cache control method for controlling a cache memory in response to a disk access request from a host computer.

(従来の技術) 例えば、磁気ディスク装置をデータメモリとして備えた
コンピュータシステムには、ディスク・キャッシュ装置
か設けられる。このディスク・キャッシュ装置とは、磁
気ディスク装置の所定のメモリエリア毎に対応して、R
AM等で構成されたキャッシュ・メモリを補助記憶エリ
アとして設けたもので、つまり、磁気ディスク装置に記
憶されたデータのうち、アクセス頻度の高い一部デー夕
をキャッシュ・メモリに格納させることで、データアク
セスの高速化を図っている。
(Prior Art) For example, a computer system equipped with a magnetic disk device as a data memory is provided with a disk cache device. This disk cache device is an R
A cache memory composed of AM or the like is provided as an auxiliary storage area.In other words, by storing some of the data stored in the magnetic disk device that is frequently accessed in the cache memory, Efforts are being made to speed up data access.

すなわち、ホストコンピュータよりデータの書込み要求
があった際に、該書込み要求データかキャッシュ・メモ
リに存在しない場合(キャッシュ・ミスヒツト)には磁
気ディスク装置及びキャッシュ・メモリの両者に対して
データ書込みを行ない、該書込み要求データがキャッシ
ュ・メモリに存在した場合(キャッシュ・ヒツト)には
磁気ディスク装置に対してのみデータ書込みを行なう。
In other words, when there is a data write request from the host computer and the requested data does not exist in the cache memory (cache miss), the data is written to both the magnetic disk device and the cache memory. If the write request data exists in the cache memory (cache hit), the data is written only to the magnetic disk device.

また、ホストコンピュータよりデータの読出し要求かあ
った際に、該読出し要求データがキャッシュ・メモリに
存在しない場合(キャッシュ・ミスヒツト)には磁気デ
ィスク装置から該当データの読出しを行なうと共に、キ
ャッシュ・メモリに対して該読出されたデータの書込み
を行なう。
Furthermore, when there is a request to read data from the host computer, if the requested data does not exist in the cache memory (cache miss), the corresponding data is read from the magnetic disk device and is stored in the cache memory. The read data is written to.

方、上記読出し要求データがキャッシュ・メモリに存在
した場合(キャッシュ・ヒツト)には磁気ディスク装置
からの読出しはせずにキャッシュ争メモリからの直接的
な読出しのみ行なう。
On the other hand, if the read request data exists in the cache memory (cache hit), it is not read from the magnetic disk device but only directly read from the cache memory.

つまり、上記のようなディスク・キャッシュ方式では、
データの書込み処理は常に磁気ディスク装置に対しても
行なわれるので、キャッシュ・ヒツトした場合のデータ
の読出しに際してのみ、磁気ディスク装置からのデータ
読出しに比較してデータアクセスの高速化か図られる。
In other words, with the disk cache method described above,
Since data writing processing is always performed also on the magnetic disk device, only when reading data in the case of a cache hit, data access is made faster than when reading data from the magnetic disk device.

この場合、キャッシュ・メモリに対するデータの読出し
処理及び書込み処理に際しては、そのアクセス対象とな
るデータのキャッシュ・メモリ内における格納順位レベ
ルが、最上位レベルに置換されるもので、これにより、
アクセス頻度の高いデータが常にキャッシュ・メモリの
上位レベルに保持されることになる。なお、キャッシュ
・メモリの最上位レベルに対する新たなデータの書込み
に際しては、従来存在したデータが1ブロツクずつ下位
にシフトされ、最下位レベルのキャッシュ・データが追
出されることになる。
In this case, when reading and writing data to the cache memory, the storage order level in the cache memory of the data to be accessed is replaced with the highest level.
Frequently accessed data will always be held in the upper levels of cache memory. Note that when new data is written to the highest level of the cache memory, the previously existing data is shifted downward one block at a time, and the lowest level cache data is evicted.

(発明が解決しようとする課題) しかしながら、上記のようなディスク・キャッシュ制御
処理をディスクアクセスの全てに対して行なった場合、
例え・ば頻繁に実行される処理の合間に、長大なファイ
ルのり−ド/ライト処理等を実施すると、上記頻繁に実
行される処理に合わせて予めキャッシュ・メモリに蓄積
されたデータの全てか新たなデータに更新されてしまう
。この場合、再び通常の処理の実行に戻ったとしても、
ディスクアクセスに際し当分の間キャッシュ・ヒツトは
見られず、ディスク・キャッシュの効果が得られない状
態になる。
(Problem to be Solved by the Invention) However, if the above disk cache control processing is performed for all disk accesses,
For example, if a long file load/write process is performed between frequently executed processes, all of the data previously stored in the cache memory will be updated in accordance with the frequently executed processes. The data will be updated. In this case, even if you return to normal processing,
When accessing the disk, no cache hits are seen for a while, and the disk cache becomes ineffective.

本発明は上記課題に鑑みなされたもので、例えば頻繁に
実行される処理の合間に希に行なわれる処理の実行に際
しては、キャッシュ・メモリの内容変更が行なわれるこ
となく、通常処理の実行時におけるキャッシュ効率を向
上させることが可能になるディスク・キャッシュ制御方
式を提供することを目的とする。
The present invention has been made in view of the above-mentioned problems. For example, when executing a process that is rarely executed between frequently executed processes, the contents of the cache memory are not changed, and the cache memory is not changed during the execution of the normal process. The purpose of this invention is to provide a disk cache control method that makes it possible to improve cache efficiency.

[発明の構成コ (課題を解決するための手段) すなわち、本発明に係わるディスク・キャッシュ制御方
式は、ホストコンピュータから磁気ディスク装置に対し
てディスクアクセスを行なう際にキャッシュ・メモリへ
のデータ書込み更新処理を制御するもので、上記ホスト
コンピュータにおいて実行する処理の内容に応じてディ
スクアクセス時におけるキャッシュ書込みの指定を指示
するキャッシュ指示手段と、このキャッシュ指示手段に
よりキャッシュ書込みの指定か為された際にアクセスデ
ータのキャッシュ・メモリへの書込みを示すフラグを立
てるキャッシュ・フラグ操作手段と、上記ホストコンピ
ュータから磁気ディスク装置に対するディスクアクセス
時において上記キャッシュ・フラグ操作手段によりキャ
ッシュ書込みを示すフラグが立てられている場合にはキ
ャッシュ・メモリの最上位レベルへのアクセスデータの
書込み更新を行なうキャッシュ・データ更新手段とを備
えなるものである。
[Configuration of the Invention (Means for Solving the Problems) In other words, the disk cache control method according to the present invention writes and updates data to the cache memory when a host computer accesses a magnetic disk device. It controls the processing, and includes a cache instruction means for instructing cache writing at the time of disk access according to the content of the processing to be executed in the host computer, and a cache instruction means for instructing cache writing when the cache instruction is specified by the cache instruction means. a cache flag operating means for setting a flag indicating writing of access data to a cache memory; and a flag indicating cache writing is set by the cache flag operating means when the host computer accesses the magnetic disk device. In some cases, the cache data update means writes and updates access data to the highest level of the cache memory.

(作用) つまり、上記キャッシュ指示手段によりキャッシュ書込
みの指示が為されない場合には予めそれ以前の処理にお
いてキャッシュ・メモリに蓄積サレタアクセス頻度の高
いデータがそのまま保持されるようになり、通常処理の
再開時において直ちにディスク・キャッシュの効果を得
ることができる。
(Function) In other words, if the cache instruction means does not issue a cache write instruction, the data that has been accumulated in the cache memory in the previous process and is frequently accessed will be retained as is, and the normal process will be restarted. You can benefit from disk caching immediately.

(実施例) 以下図面により本発明の一実施例について説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明のディスク・キャッシュ制御方式を実現
したコンピュータシステムの構成を示すもので、このコ
ンピュータシステムには、ホストコンピュータ11に対
して磁気ディスク装置12か備えられ、該磁気ディスク
装置12はホストコンピュータ11に対してディスクイ
ンターフェイス13を通して接続される。
FIG. 1 shows the configuration of a computer system that implements the disk cache control method of the present invention. In this computer system, a magnetic disk device 12 is provided for a host computer 11, and the magnetic disk device 12 is equipped with a magnetic disk device 12 for a host computer 11. It is connected to the host computer 11 through a disk interface 13.

上記ディスクインターフェイス13は、CPU(中央処
理装置)14を備えている。このCPU14は、ホスト
コンピュータ11からホストインターフェイス15を介
してディスクアクセスの要求かあった際に、ディスクコ
ントローラ16を通して上記磁気ディスク装置12との
データアクセス処理を制御すると共に、キャッシュ・メ
モリ17に対するデータアクセス処理も制御するもので
、この場合、キャッシュ・メモリ17に対するデータ書
込み更新処理は、キャッシュ・フラグレジスタ18にて
管理されるキャッシュ書込み指定のフラグか立っている
か否かに応じて実行される。
The disk interface 13 includes a CPU (central processing unit) 14. When a disk access request is received from the host computer 11 via the host interface 15, the CPU 14 controls data access processing with the magnetic disk device 12 through the disk controller 16, and controls data access to the cache memory 17. It also controls processing, and in this case, data write update processing for the cache memory 17 is executed depending on whether a cache write designation flag managed by the cache flag register 18 is set.

つまり、上記キャッシュ・フラグレジスタ18にキャッ
シュ書込み指定を示すフラグ]゛か保持されている場合
には、磁気ディスク装置]2に対するデータアクセスに
伴い、キャッシュ・メモリ17に対するデータの更新も
必す実行され、また、上記キャッシュ・フラグレジスタ
18にキャッシュ書込み指定を示すフラグが保持されて
ない“0“の場合には、キャッシュ・メモリ17に対す
るデータの更新は全く行なわれないことになる。
In other words, when the cache flag register 18 holds a flag indicating cache write designation, the data must be updated in the cache memory 17 when accessing data to the magnetic disk device 2. Further, if the cache flag register 18 does not hold a flag indicating cache write designation and is "0", no data is updated in the cache memory 17 at all.

ここで、上記キャッシュ・フラグレジスタ18に対する
フラグ操作は、ホストコンピュータ11からのディスク
アクセス要求と共に与えられるキャッシュ指定コマンド
に応じてCPU14により制御され、また、ホストコン
ピュータ11におけるキャッシュ指定の有無は、例えば
今後実行する処理が通常時に頻繁に実行される処理か、
又は、希に実行される処理かに応じて、予めオペレータ
により任意に操作設定される。
Here, the flag operation for the cache flag register 18 is controlled by the CPU 14 in response to a cache designation command given together with a disk access request from the host computer 11, and the presence or absence of cache designation in the host computer 11 will be determined in the future, for example. Is the process to be executed frequently during normal times?
Alternatively, the settings may be arbitrarily set by the operator in advance depending on whether the process is rarely executed.

次に、上記構成によるディスク・キャッシュ制御方式を
実現したコンピュータシステムのディスクアクセス処理
について説明する。
Next, a description will be given of the disk access processing of the computer system that implements the disk cache control method with the above configuration.

まず、通常時に頻繁に実行される処理を行なうのに、オ
ペレータはホストコンピュータ11に対してキャッシュ
指定の指示を行なう。すると、ホストコンピュータ11
からのディスクアクセス要求には、常にキャッシュ指定
コマンドか付けられるようになる。
First, an operator instructs the host computer 11 to designate a cache in order to perform processing that is frequently executed during normal times. Then, the host computer 11
A cache specification command will always be added to disk access requests from .

ここで、ホストコンピュータ11からディスクインター
フェイス13に対しデータ書込み要求が受信されると、
CPU14は、該データ書込み要求に伴い入力されたキ
ャッシュ指定コマンドに基づき、キャッシュ・フラグレ
ジスタ18にキャッシュ書込み指定フラグ1”を立てる
と共に、ディスクコントローラ16を通して磁気ディス
ク装置12内の予め指定されたアドレス位置に対してデ
ータの書込みを行なう。この場合、上記キヤ・ソシュ・
フラグレジスタ18には、キャッシュ書込み指定フラグ
1゛か立てられているので、磁気ディスク装置12に対
して書込まれたデータは、キャッシュ・メモリ17の最
上位レベルにも書込まれる。
Here, when a data write request is received from the host computer 11 to the disk interface 13,
Based on the cache designation command input in conjunction with the data write request, the CPU 14 sets a cache write designation flag 1'' in the cache flag register 18, and writes the cache to a prespecified address position in the magnetic disk device 12 through the disk controller 16. In this case, write data to the above-mentioned
Since the cache write designation flag 1 is set in the flag register 18, the data written to the magnetic disk device 12 is also written to the highest level of the cache memory 17.

つまり、ホストコンピュータ11からのデータ書込み要
求と共にキャッシュ指定コマンドが受信された場合には
、磁気ディスク装置12に対するデータ書込みと同時に
、キャッシュ・メモリ17に対してもデータ書込み更新
処理か実行される。
That is, when a cache designation command is received along with a data write request from the host computer 11, data write update processing is also executed for the cache memory 17 at the same time as data is written to the magnetic disk device 12.

また、ホストコンピュータ11からディスクインターフ
ェイス13に対しデータ読出し要求か受信されると、C
PtJ14は、上記書込み時と同様にデータ読出し要求
に伴い入力されたキヤ・ソシュ指定コマンドに基づき、
キャッシュ・フラグレジスタ18にキャッシュ書込み指
定フラグ1”を立てると共に、キャッシュ・メモリ17
内に該読出し要求に対応するキャッシュ・データか存在
する場合(キャッシュ・ヒツト)には、このキャッシュ
・データの読出しのみを行なってホストコンピュータ1
1へ送信する。また、上記キャッシュ・メモリ17内に
該読出し要求に対応するキヤ、ソシュ・データか存在し
ない場合(キャッシュ・ミスヒツト)には、該当データ
が磁気ディスク装置12の予め指定されたアドレス位置
からディスクコントローラ16を通して読出され、ホス
トコンピュータ11に送信される。
Also, when a data read request is received from the host computer 11 to the disk interface 13, the C
PtJ14 is based on the Kya Sosh specified command input in response to the data read request in the same way as when writing above.
Set the cache write designation flag 1" in the cache flag register 18, and
If there is cache data corresponding to the read request (cache hit), the host computer 1 only reads this cache data.
Send to 1. Furthermore, if there is no cache data corresponding to the read request in the cache memory 17 (cache miss), the data is transferred from a pre-specified address position of the magnetic disk device 12 to the disk controller 16. and transmitted to the host computer 11.

この場合、上記キャッシュ・フラグレジスタ18には、
キャッシュ書込み指定フラグ1″が立てられているので
、上記キャッシュ・ヒツト又はキャッシュ・ミスヒツト
に係わらず、キャッシュ・メモリ17に対する該当デー
タの最上位レベルへの書込み更新処理か実行される。
In this case, the cache flag register 18 has the following information:
Since the cache write designation flag 1'' is set, regardless of the cache hit or cache miss, the write update process of the corresponding data to the highest level of the cache memory 17 is executed.

つまり、ホストコンピュータ11からのデータ読出し要
求と共にキャッシュ指定コマンドが受信された場合には
、キャッシュ・メモリ17又は磁気ディスク装置12か
らのデータ読出しと同時に、キャッシュ・メモリ17に
対してもデータ書込み更新処理が実行される。
In other words, when a cache specification command is received together with a data read request from the host computer 11, the data write update process is performed on the cache memory 17 at the same time as the data is read from the cache memory 17 or the magnetic disk device 12. is executed.

すなわち、予めホストコンピュータ11においてキャッ
シュの指定を受けた通常処理の実行中においては、デー
タ書込み処理及びデータ読出し処理の何れに際しても、
キャッシュ・メモリ17の更新処理が実行され、アクセ
ス頻度の高いデータか蓄積されるようになる。
That is, during the execution of normal processing for which cache has been designated in advance in the host computer 11, in both data writing processing and data reading processing,
The cache memory 17 is updated, and frequently accessed data is stored.

第2図は上記キャッシュ・ミスヒツト時におけるキャッ
シュ制御処理を示すフローチャートである。
FIG. 2 is a flowchart showing the cache control processing at the time of the cache miss.

一方、通常時には実行されない、例えば磁気ディスク装
置12内の全記憶データの読出し処理を行なう場合には
、オペレータはホストコンピュータ11に対してキャッ
シュ指定の指示を行なわない。すると、ホストコンピュ
ータ11からのディスクアクセス要求には、キャッシュ
指定コマンドが付けられないことになる。
On the other hand, when performing a process of reading all stored data in the magnetic disk device 12, which is not normally executed, for example, the operator does not instruct the host computer 11 to designate a cache. In this case, a cache specification command will not be attached to a disk access request from the host computer 11.

ここで、ホストコンピュータ11からディスクインター
フェイス13に対しデータ読出し要求か受信されると、
CPU14は、データ読出し要求に伴いキャッシュ指定
コマンドが人力されないことに基づき、キャッシュ・フ
ラグレジスタ18に立てられていたキャッシュ書込み指
定フラグ1゛を“0”に下げると共に、読出し要求に対
応するデータか磁気ディスク装置12の予め指定された
アドレス位置からディスクコントローラ16を通して順
次読出され、ホストコンピュータ11に送信される。
Here, when a data read request is received from the host computer 11 to the disk interface 13,
Based on the fact that the cache designation command is not input manually in response to the data read request, the CPU 14 lowers the cache write designation flag 1' set in the cache flag register 18 to "0" and writes the data corresponding to the read request to the magnetic field. The information is sequentially read from a pre-specified address position of the disk device 12 through the disk controller 16 and transmitted to the host computer 11.

この場合、上記キャッシュ・フラグレジスタ18には、
キャッシュ書込み指定フラグ1”が立てられていないの
で、上記磁気ディスク装置12からのデータ読出し処理
に伴うキヤ・ンシュ・メモリ17に対する該当データの
最上位レベルへの書込み更新処理は全く実行されること
がない。
In this case, the cache flag register 18 has the following information:
Since the cache write designation flag 1'' is not set, the write update process of the corresponding data to the highest level in the cache memory 17 accompanying the data read process from the magnetic disk device 12 cannot be executed at all. do not have.

つまり、ホストコンピュータ11からのデータ読出し要
求と共にキャッシュ指定コマンドが受信されない場合に
は、磁気ディスク装置12からのデータ読出しがあって
も、キャッシュ・メモリ17に対するデータ書込み更新
処理は実行されない。
That is, if a cache designation command is not received along with a data read request from the host computer 11, even if data is read from the magnetic disk device 12, data write update processing for the cache memory 17 is not executed.

すなわち、予めホストコンピュータ11においてキャッ
シュの指定を受けない通常希な処理の実行中においては
、データ書込み処理及びデータ読出し処理の何れに際し
ても、キャッシュ・メモリ17の更新処理は実行されず
、通常処理の実行時において予め蓄積されたアクセス頻
度の高いデータがそのまま保持されるようになる。
That is, during the execution of normally rare processing in which the cache is not specified in advance in the host computer 11, the update processing of the cache memory 17 is not executed during either the data write processing or the data read processing, and the normal processing is performed. At the time of execution, frequently accessed data stored in advance is retained as is.

したがって、上記構成のディスク゛キャッシュ制御方式
を実現したコンピュータシステムによれば、通常頻繁に
行なう処理か否かに応じて、予めホストコンピュータ1
1側においてキャッシュ指定の指示を行ない、通常処理
の実行時においては、キャッシュ・フラグレジスタ18
に対してキャッシュ書込み指定のフラグを立てて常にキ
ャッシュ・メモリ17のデータ内容を更新し、また、通
常希な処理の実行時においては、キャッシュ・フラグレ
ジスタ18に対してキャッシュ書込み指定のフラグを立
てずにキャッシュ・メモリ17のデータ更新処理を一切
行なわないようにしたので、該通常希な処理の実行時に
おいては通常処理実行時におけるキャッシュ・データか
そのまま保持されることになり、上記通常処理の再開時
において直ちにディスク・キャッシュの効果を得ること
かできる。
Therefore, according to a computer system that implements the disk cache control method with the above configuration, the host computer
The cache flag register 18 is specified by the cache flag register 18 when executing normal processing.
The data contents of the cache memory 17 are always updated by setting a cache write designation flag for the cache memory 17, and when executing rare processing, a cache write designation flag is set for the cache flag register 18. Since data update processing in the cache memory 17 is not performed at all without performing any processing, when executing the normally rare processing, the cache data at the time of executing the normal processing is retained as is, so that the data in the cache memory 17 is not updated. You can immediately take advantage of the disk cache upon restart.

[発明の効果] 以上のように本発明によれば、ホストコンピュータから
磁気ディスク装置に対してディスクアクセスを行なう際
にキャッシュ・メモリへのデータ書込み更新処理を制御
するもので、上記ホストコンピュータにおいて実行する
処理の内容に応じてディスクアクセス時におけるキャッ
シュ書込みの指定を指示するキャッシュ指示手段と、こ
のキャッシュ指示手段によりキャッシュ書込みの指定が
為された際にアクセスデータのキャッシュ・メモリへの
書込みを示すフラグを立てるキャッシュ・フラグ操作手
段と、上記ホストコンピュータから磁気ディスク装置に
対するディスクアクセス時において上記キャッシュ・フ
ラグ操作手段によりキャッシュ書込みを示すフラグが立
てられている場合にはキャッシュ・メモリの最上位レベ
ルへのアクセスデータの書込み更新を行なうキャッシュ
・データ更新手段とを備え、上記キャッシュ指示手段に
よりキャッシュ書込みの指示が為されない場合には予め
それ以前の処理においてキャッシュ・メモリに蓄積され
たアクセス頻度の高いデータかそのまま保持されるよう
になるので、例えば頻繁に実行される処理の合間に希に
行なわれる処理の実行に際しては、キャッシュ・メモリ
の内容変更が行なわれることなく、通常処理の実行時に
おけるキャッシュ効率を向上させることが可能になる。
[Effects of the Invention] As described above, according to the present invention, when a host computer performs disk access to a magnetic disk device, the data writing update process to the cache memory is controlled, and a cache instruction means for instructing cache writing at the time of disk access according to the content of the processing to be performed; and a flag indicating writing of accessed data to the cache memory when cache writing is specified by the cache instruction means. and a cache flag operating means that sets a cache flag to the highest level of the cache memory when a flag indicating cache writing is set by the cache flag operating means when the host computer accesses the magnetic disk device. cache data update means for writing and updating accessed data, and when the cache instruction means does not issue a cache write instruction, the cache data is updated in advance from frequently accessed data accumulated in the cache memory in previous processing. For example, when executing a process that is rarely executed between frequently executed processes, the contents of the cache memory will not be changed, and the cache efficiency during normal process execution will be improved. It becomes possible to improve.

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

第1図は本発明のディスク拳キャッシュ制御方式の一実
施例に係わるコンピュータシステムの構成を示すブロッ
ク図、第2図は上記コンピュータシステムにおけるキャ
ッシュ・ミスヒツト時のキャッシュ制御処理を示すフロ
ーチャートである。 11・・・ホストコンピュータ、12・磁気ディスク装
置、13・ディスクインターフェイス、14・・・CP
U (中央処理装置)、15・・・ホストインターフェ
イス、16・・・ディスクコントローラ、17・・キャ
ッシュ・メモリ、18・・・キャッシュ・フラグレジス
タ。 出願人代理人 弁理士 鈴江武彦 第 15il 第2図
FIG. 1 is a block diagram showing the configuration of a computer system according to an embodiment of the disk cache control method of the present invention, and FIG. 2 is a flowchart showing cache control processing in the case of a cache miss in the computer system. 11...Host computer, 12.Magnetic disk device, 13.Disk interface, 14...CP
U (central processing unit), 15... host interface, 16... disk controller, 17... cache memory, 18... cache flag register. Applicant's agent Patent attorney Takehiko Suzue No. 15il Figure 2

Claims (1)

【特許請求の範囲】  ホストコンピュータから磁気ディスク装置に対してデ
ィスクアクセスを行なう際にキャッシュ・メモリへのデ
ータ書込み更新処理を制御するディスク・キャッシュ制
御方式において、 上記ホストコンピュータにおいて実行する処理の内容に
応じてディスクアクセス時におけるキャッシュ書込みの
指定を指示するキャッシュ指示手段と、 このキャッシュ指示手段によりキャッシュ書込みの指定
が為された際にアクセスデータのキャッシュ・メモリへ
の書込みを示すフラグを立てるキャッシュ・フラグ操作
手段と、 上記ホストコンピュータから磁気ディスク装置に対する
ディスクアクセス時において上記キャッシュ・フラグ操
作手段によりキャッシュ書込みを示すフラグが立てられ
ている場合にはキャッシュ・メモリの最上位レベルへの
アクセスデータの書込み更新を行なうキャッシュ・デー
タ更新手段とを具備したことを特徴とするディスク・キ
ャッシュ制御方式。
[Scope of Claims] In a disk cache control method for controlling data writing update processing to a cache memory when a host computer performs disk access to a magnetic disk device, the contents of the processing executed in the host computer include: and a cache flag that sets a flag indicating that the accessed data should be written to the cache memory when cache writing is specified by the cache instruction means. an operating means; and when a flag indicating cache writing is set by the cache flag operating means when the host computer accesses the magnetic disk device, writing and updating access data to the highest level of the cache memory; 1. A disk cache control method comprising cache data update means for performing.
JP2204537A 1990-08-01 1990-08-01 Disk cache control system Pending JPH0488539A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2204537A JPH0488539A (en) 1990-08-01 1990-08-01 Disk cache control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2204537A JPH0488539A (en) 1990-08-01 1990-08-01 Disk cache control system

Publications (1)

Publication Number Publication Date
JPH0488539A true JPH0488539A (en) 1992-03-23

Family

ID=16492177

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2204537A Pending JPH0488539A (en) 1990-08-01 1990-08-01 Disk cache control system

Country Status (1)

Country Link
JP (1) JPH0488539A (en)

Similar Documents

Publication Publication Date Title
US4593354A (en) Disk cache system
JP3707854B2 (en) Computer having cache function and cache memory control method
JP2003216491A (en) Hierarchical cache control method
US5293618A (en) Method for controlling access to a shared file and apparatus therefor
JP2002123424A (en) System and method for dynamically reallocating memory in computer system
JPH0488539A (en) Disk cache control system
JPH01133162A (en) Cache memory control system
JPH01303547A (en) Control system for information memory
JP4826873B2 (en) Microprocessor system with hot routine memory
JPH0448358A (en) Cache memory control system
JP2854667B2 (en) Disk cache control method
JP2854668B2 (en) Disk cache control method
JPH0628258A (en) Microprocessor
JP2811678B2 (en) Data processing device with cache memory
JPH01131940A (en) Disk cache controller
JPH0816467A (en) Arithmetic processor with write-back cache memory
CN114265726A (en) Backup method and system for volume shadow readable and writable disk volume
JPS603224B2 (en) Data creation method for adjusting the number of page storage areas in page buffer memory
JPS59217284A (en) System controllr of data processor
JPH01281545A (en) Cache memory control system
JPH0324612A (en) File update retrieving processor
JPH0520188A (en) Cache controller
JPH04113414A (en) Automatic application system for disk cache
JPS63155342A (en) Control method for buffer storage device
JPH01150953A (en) Disk cache device