JP2002196980A - Data loading method and device - Google Patents

Data loading method and device

Info

Publication number
JP2002196980A
JP2002196980A JP2001325763A JP2001325763A JP2002196980A JP 2002196980 A JP2002196980 A JP 2002196980A JP 2001325763 A JP2001325763 A JP 2001325763A JP 2001325763 A JP2001325763 A JP 2001325763A JP 2002196980 A JP2002196980 A JP 2002196980A
Authority
JP
Japan
Prior art keywords
record
track
cache memory
access
data
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
JP2001325763A
Other languages
Japanese (ja)
Other versions
JP3468762B2 (en
Inventor
Akira Yamamoto
山本  彰
Toshiaki Tsuboi
俊明 坪井
Shigeo Honma
繁雄 本間
Katsunori Nakamura
勝憲 中村
Kimisaki Kanbayashi
公咲 神林
Hiroyuki Kitajima
弘行 北嶋
Akira Kurano
昭 倉野
Masashi Nozawa
正史 野沢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Hitachi Solutions Technology Ltd
Original Assignee
Hitachi Ltd
Hitachi ULSI Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Hitachi ULSI Systems Co Ltd filed Critical Hitachi Ltd
Priority to JP2001325763A priority Critical patent/JP3468762B2/en
Publication of JP2002196980A publication Critical patent/JP2002196980A/en
Application granted granted Critical
Publication of JP3468762B2 publication Critical patent/JP3468762B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve the problem that, when an access pattern from a central processing unit to a disk device is changed with time in a same storage region, the using efficiency of a cache memory cannot be held optimally, because the operation mode in the divided and individual storage region of the disk device is fixed. SOLUTION: A disk control device is connected to the disk device and the central processing unit and provided with the cache memory with a physical region on the disk device set to a cache control unit. When no data in a cache control unit including a region to be an access target exists in the cache memory inside, only data in the region to be the access target of the central processing unit is loaded in the cache memory. In this case, when there is an access to data except for those already stored in the cache memory among the data in the cache control unit, the data except for those already stored in the cache memory is loaded in the cache memory.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、キャッシュメモリ
を有する制御装置において、キャッシュメモリへのロー
ディングを行なうのに好適なデータローディング方法に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data loading method suitable for loading data in a cache memory in a control device having the cache memory.

【0002】[0002]

【従来の技術】外部記憶装置として用いられる磁気ディ
スク装置などにおいては、比較的安価に大きな記憶容量
を実現できるという利点がある。しかし記憶媒体である
磁気ディスクの回転待ちやヘッドのシーク動作などに起
因して、データの記録,再生などにおけるアクセス速度
の向上には自ずと限界がある。
2. Description of the Related Art A magnetic disk device used as an external storage device has an advantage that a large storage capacity can be realized relatively inexpensively. However, there is a natural limit to improving the access speed in data recording and reproduction due to the rotation waiting of the magnetic disk as a storage medium and the seek operation of the head.

【0003】このため、外部記憶装置として磁気ディス
ク装置などを備えた電子計算機システムにおいては次の
ようにしている。中央処理装置と磁気ディスク装置との
間に介在して両者間のデータの授受を制御する磁気ディ
スク制御装置などに、磁気ディスク装置よりも高速なア
クセスが可能な半導体メモリなどからなるキャッシュメ
モリを設ける。そして磁気ディスク装置に格納されてい
るデータの一部をこのキャッシュメモリに格納して、中
央処理装置からのアクセスに応答することにより、磁気
ディスク装置と中央処理装置との間の大きな動作速度の
差異を緩和する。このように磁気ディスク装置と中央処
理装置との間のデータの授受を効率化することが一般的
である。
For this reason, an electronic computer system having a magnetic disk device or the like as an external storage device is configured as follows. A cache memory such as a semiconductor memory that can be accessed at a higher speed than a magnetic disk device is provided in a magnetic disk control device or the like that is interposed between a central processing unit and a magnetic disk device and controls transmission and reception of data between the two. . By storing a part of the data stored in the magnetic disk device in the cache memory and responding to the access from the central processing unit, a large difference in operation speed between the magnetic disk device and the central processing unit is obtained. To relax. As described above, it is general to efficiently exchange data between the magnetic disk device and the central processing unit.

【0004】その場合、中央処理装置からアクセスされ
る目的のデータがキャッシュメモリ上に存在する確率、
すなわちヒット率を可能な限り大きくすることがキャッ
シュメモリをより有効に機能させるなどの観点から重要
である。そのために従来から以下のような種々の技術が
提案されている。
In such a case, the probability that the target data accessed from the central processing unit exists in the cache memory,
That is, it is important to increase the hit ratio as much as possible from the viewpoint of making the cache memory function more effectively. For that purpose, the following various techniques have been conventionally proposed.

【0005】例えば、オーム社刊「電子情報通信ハンド
ブック」(1988年)には、キャッシュメモリに対す
るデータローディングはトラック単位で行なわれてい
る。
For example, in the "Electronic Information Communication Handbook" (1988) published by Ohm, data loading to a cache memory is performed in track units.

【0006】また、たとえば、特開昭55−15464
8号公報に開示される技術では次のようにしている。磁
気ディスク装置の記憶領域を複数個に分割する。その分
割された各々の記憶領域に応じて異なる動作モードを予
め設定する。中央処理装置からの入出力指令によって指
定される記憶領域に対応した動作モードに切り替えるよ
うにする。以上のようにしてヒット率の向上を図ろうと
するものである。
Further, for example, Japanese Patent Application Laid-Open No. 55-15464
The technique disclosed in Japanese Patent Publication No. 8 is as follows. The storage area of the magnetic disk drive is divided into a plurality. A different operation mode is set in advance according to each of the divided storage areas. The operation mode is switched to the operation mode corresponding to the storage area specified by the input / output command from the central processing unit. An attempt is made to improve the hit rate as described above.

【0007】また、たとえば、特開昭60−14360
号公報に記載される技術では次のようにしている。ヒッ
ト/ミス等の統計データをディスク制御装置で収集す
る。収集した統計データを中央処理装置に転送する。こ
れらの統計データに基づいて、オペレータやシステム管
理者が現在のキャッシュメモリの利用状態が最適か否か
を判断する。その判断結果に基いて磁気ディスク装置か
らキャッシュメモリ上にロードされるデータの範囲すな
わちキャッシュ対象範囲を適切に制御する。このように
して、中央処理装置と磁気ディスク装置との間における
データの転送効率を向上させようとしている。
Further, for example, Japanese Patent Application Laid-Open No. Sho 60-14360
In the technology described in Japanese Patent Laid-Open Publication No. H10-209, the following is performed. Statistical data such as hits / misses is collected by the disk controller. The collected statistical data is transferred to the central processing unit. Based on these statistical data, an operator or a system administrator determines whether the current use state of the cache memory is optimal. Based on the determination result, the range of data loaded from the magnetic disk device onto the cache memory, that is, the cache target range is appropriately controlled. In this way, an attempt is made to improve the data transfer efficiency between the central processing unit and the magnetic disk device.

【0008】さらに、情報処理学会、第29回全国大
会、pp.169−170においては、シーケンシャル
・アクセスの認識をディスク制御装置で行い、あるトラ
ックに対するシーケンシャル・アクセスが完了した後、
このトラックをキャッシュメモリから最も追い出されや
すいデータとして扱うという方法が提案されている。
Further, the Information Processing Society of Japan, 29th National Convention, pp. In 169-170, recognition of sequential access is performed by the disk controller, and after sequential access to a certain track is completed,
A method has been proposed in which this track is treated as data that is most likely to be evicted from the cache memory.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、上記、
「電子情報通信ハンドブック」では、ローディングのオ
ーバーヘッドが大きく、アクセス対象データがキャッシ
ュ内に存在する確率が高い場合は問題にならないが、存
在確率が低い場合には、キャッシュ導入により、かえっ
て性能が劣化する可能性があった。
SUMMARY OF THE INVENTION However,
In the "Electronic Information Communication Handbook", there is no problem if the loading overhead is large and the probability that the data to be accessed exists in the cache is high, but if the probability of existence is low, the performance is rather degraded due to the introduction of the cache. There was a possibility.

【0010】これに対しては、アクセス対象となったレ
コードのみをキャッシュにロードする方式が考えられる
が、一般的には、トラック内のレコード長は可変長であ
り、トラック単位の管理を基本としたローディング方式
が必要である。
To deal with this, a method of loading only the record to be accessed into the cache is conceivable. However, in general, the record length in a track is variable, and management on a track basis is basically performed. A proper loading method is required.

【0011】また、特開昭55−154648号公報で
は、ディスク制御装置では、中央処理装置からアクセス
特性を指示し、これに従って、ローディング方法(動作
モード)を選択する。従って、中央処理装置に負担がか
かる。また、中央処理装置でアクセス特性が認識しきれ
ない場合、キャッシュメモリへの適切なローディング方
法が選択できなかった。
In Japanese Patent Application Laid-Open No. 55-154648, the disk control device instructs an access characteristic from the central processing unit and selects a loading method (operation mode) according to the instruction. Therefore, a burden is imposed on the central processing unit. If the access characteristics cannot be fully recognized by the central processing unit, an appropriate loading method to the cache memory cannot be selected.

【0012】また、分割された個々の記憶領域について
見れば動作モードは固定であるので、同一の記憶領域内
において中央処理装置からディスク装置へのアクセスパ
ターンが経時的変動する場合にはキャッシュメモリの利
用効率を最適に維持することができないという問題があ
る。
In addition, since the operation mode is fixed with respect to each divided storage area, if the access pattern from the central processing unit to the disk device fluctuates in the same storage area over time, the cache memory is There is a problem that the use efficiency cannot be maintained optimally.

【0013】すなわち、同一の記憶領域に設けられたフ
ァイルを、たとえばランダムなアクセスが主なオンライ
ン処理とシーケンシャルなアクセスが主なバッチ処理と
で共用する場合などに対応が困難となる。
That is, it is difficult to cope with a case where a file provided in the same storage area is shared by, for example, online processing mainly for random access and main batch processing for sequential access.

【0014】特開昭60−14360号公報では、磁気
ディスク制御装置において得られた統計情報を判断する
のがオペレータやシステム管理者である。したがって、
業務により磁気ディスク装置への中央処理装置からのア
クセスパターンが異なるなどの場合、実行する業務に合
わせて時々刻々とキャッシュ対象範囲(キャッシュメモ
リにロードすべきデータの範囲)を最適に制御すること
が事実上不可能であるという問題点がある。
In Japanese Patent Application Laid-Open No. Sho 60-14360, it is an operator or a system administrator who judges statistical information obtained in a magnetic disk control device. Therefore,
If the access pattern from the central processing unit to the magnetic disk device differs depending on the task, it is possible to optimally control the cache target range (the range of data to be loaded into the cache memory) every moment according to the task to be performed. There is a problem that it is practically impossible.

【0015】さらに、上記情報処理学会論文では、ディ
スク装置への典型的なアクセスパターンであるシーケン
シャル・アクセスの認識を行っている。認識の結果、ア
クセス済みのトラックをキャッシュから最も追い出され
やすく制御するのみで、特にローディング方法を選択す
るという内容ではない。
Further, in the above-mentioned paper of the IPSJ, sequential access, which is a typical access pattern to a disk device, is recognized. As a result of the recognition, only the track that has been accessed is easily controlled to be evicted from the cache, but the loading method is not selected.

【0016】本発明の目的は、磁気ディスクのトラック
を構成しているレコードが可変長の場合、トラック単位
の管理方法をベースとしてローディングオーバーヘッド
を少なくすることが可能な、ローディング方法を提供す
ることにある。
An object of the present invention is to provide a loading method capable of reducing the loading overhead based on a track-based management method when the records constituting the tracks of the magnetic disk are of variable length. is there.

【0017】本発明の他の目的は、ディスク制御装置に
おいて、各入出力要求のアクセス特性を把握して、この
結果、ヒット率の向上とローディング・オーバーヘッド
の軽減を実現するローディング方法を提供することにあ
る。
Another object of the present invention is to provide a loading method in a disk control device, which grasps the access characteristics of each input / output request, thereby improving the hit rate and reducing the loading overhead. It is in.

【0018】[0018]

【課題を解決するための手段】本発明の目的は次のよう
にして達成される。ディスク制御装置はディスク装置と
中央処理装置に接続され、かつ、ディスク装置上のある
物理領域をキャッシュ管理単位(キャッシュメモリの管
理単位)とするキャッシュメモリを有する。中央処理装
置からのアクセス対象となった領域を含むキャッシュ管
理単位内のデータが、キャッシュメモリ内に全く存在し
ないとき、中央処理装置からのアクセス対象となった領
域のデータのみをキャッシュメモリにロードする初期ロ
ーディングを行う。この後、このキャッシュ管理単位内
のデータで、すでにキャッシュメモリ内に格納されてい
るデータ以外のデータにアクセスがあったとき、このキ
ャッシュ管理単位内の、キャッシュメモリ内に格納され
ているデータ以外のデータをキャッシュメモリに追加ロ
ードすることを特徴とするデータローディング方法によ
って達成される。
The object of the present invention is achieved as follows. The disk control device is connected to the disk device and the central processing unit, and has a cache memory that uses a certain physical area on the disk device as a cache management unit (a cache memory management unit). When no data in the cache management unit including the area accessed from the central processing unit exists in the cache memory, only the data in the area accessed from the central processing unit is loaded into the cache memory. Perform initial loading. Thereafter, when the data in the cache management unit accesses data other than the data already stored in the cache memory, the data in the cache management unit other than the data stored in the cache memory is accessed. This is achieved by a data loading method characterized by additionally loading data into a cache memory.

【0019】さらに、本発明の他の目的は次のようにし
て達成される。
Further, another object of the present invention is achieved as follows.

【0020】入出力要求をシーケンシャル・アクセスと
これ以外の入出力要求とに分類する。シーケンシャルア
クセスはアクセス特性の把握が容易で、かつ、効率のよ
いローディング方法を決定することが容易である。
I / O requests are classified into sequential access and other I / O requests. With sequential access, it is easy to grasp the access characteristics, and it is easy to determine an efficient loading method.

【0021】シーケンシャル・アクセスと認識した場
合、現在アクセス中のトラックから、複数のトラックの
先読み・ローディングを行う。
When the access is recognized as sequential access, a plurality of tracks are pre-read / loaded from the track currently being accessed.

【0022】シーケンシャル・アクセスでないと認識し
た場合、この入出力要求がアクセス対象としているデー
タを含むキャッシュ管理単位(通常はトラック)がキャ
ッシュメモリ内に滞在する間に中央処理装置からアクセ
ス対象となる部分を統計情報により予測し、この部分の
みをローディングすることにより、ヒット率とローディ
ングの軽減をバランスよく実現する。
When it is recognized that the access is not a sequential access, a portion to be accessed from the central processing unit while the cache management unit (usually a track) containing the data to be accessed by the input / output request stays in the cache memory. Is predicted by statistical information, and only this part is loaded, thereby achieving a good balance between the hit ratio and the reduction of the loading.

【0023】[0023]

【発明の実施の形態】以下、本発明の一実施例を図面を
引用しつつ説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings.

【0024】図1は、本発明の一実施例であるキャッシ
ュ制御方法の一例の動作を説明する概念図である。図2
はこのキャッシュ制御方法が適用される情報処理システ
ムの一例の構成を示すブロック図である。
FIG. 1 is a conceptual diagram illustrating the operation of an example of a cache control method according to an embodiment of the present invention. FIG.
FIG. 1 is a block diagram showing a configuration of an example of an information processing system to which the cache control method is applied.

【0025】まず、図2などにより、本実施例における
情報処理システムの構成の概略を説明する。
First, an outline of the configuration of the information processing system according to the present embodiment will be described with reference to FIG.

【0026】たとえば、汎用の電子計算機などの一部を
構成する中央処理装置(Central Proces
sing Unit)1(上位システムと呼ぶこともあ
る。)と、外部記憶装置としての磁気ディスク装置2と
の間に、両者間におけるデータおよびコマンドなどの授
受を制御するディスク制御装置3(制御装置)が設けら
れている。
For example, a central processing unit (Central Processes) which constitutes a part of a general-purpose computer or the like.
sing Unit) 1 (also referred to as an upper system) and a magnetic disk device 2 as an external storage device, a disk control device 3 (control device) for controlling transmission and reception of data and commands between the two. Is provided.

【0027】図2にはディスク装置2を1台図示してあ
るが、一般に、一台のディスク制御装置が接続される。
FIG. 2 shows one disk drive 2, but generally one disk controller is connected.

【0028】中央処理装置1には、中央処理装置1と外
部との間におけるデータおよびコマンドなどの授受を制
御するチャネル装置11が設けられている。
The central processing unit 1 is provided with a channel device 11 for controlling transmission and reception of data and commands between the central processing unit 1 and the outside.

【0029】一方、ディスク制御装置3には、チャネル
インターフェイス制御部31およびデバイスインターフ
ェイス制御32部が設けられており、それぞれ、チャネ
ル装置11とディスク制御装置3との間におけるデータ
およびコマンドの遣り取り、およびディスク制御装置3
と磁気ディスク装置2との間におけるデータの遣り取り
などを受け持っている。
On the other hand, the disk control unit 3 is provided with a channel interface control unit 31 and a device interface control unit 32, for exchanging data and commands between the channel device 11 and the disk control unit 3, respectively. Disk controller 3
And the magnetic disk device 2 for exchanging data.

【0030】さらに、このチャネルインターフェイス制
御部31とデバイスインターフェイス制御部32との間
には、これらを制御するプロセッサ33と、当該プロセ
ッサ33の制御プログラムなどが格納された制御メモリ
34が設けられている。
Further, between the channel interface control section 31 and the device interface control section 32, there is provided a processor 33 for controlling these, and a control memory 34 storing a control program for the processor 33 and the like. .

【0031】また、チャネルインターフェイス制御部3
1とデバイスインターフェイス制御部32とは、データ
パス35によって接続されている。
The channel interface control unit 3
1 and the device interface control unit 32 are connected by a data path 35.

【0032】このデータパス35の一部には、たとえば
磁気ディスク装置2よりもはるかに動作の高速な半導体
メモリなどからなるキャッシュメモリ36が設けられて
いる。
A part of the data path 35 is provided with a cache memory 36 composed of, for example, a semiconductor memory which operates much faster than the magnetic disk device 2.

【0033】そして、磁気ディスク装置2に格納されて
いるデータの中で、上位のチャネル装置11を介して中
央処理装置1からアクセスされる確率の高いものを予め
複写しておき、このキャッシュメモリ36に格納された
データによって上位の中央処理装置1の側からのアクセ
ス要求に応答することにより、高速のチャネル装置11
の側と動作の遅い磁気ディスク装置2との間におけるデ
ータの授受の効率を高めるものである。
Then, of the data stored in the magnetic disk device 2, those having a high probability of being accessed from the central processing unit 1 via the higher-level channel device 11 are copied in advance, and the cache memory 36 is copied. Responds to an access request from the upper central processing unit 1 with the data stored in the high-speed channel device 11.
And the efficiency of data transfer between the hard disk drive 2 and the magnetic disk device 2 which operates slowly.

【0034】さらに、データパス35において、キャッ
シュメモリ36よりもデバイスインターフェイス制御部
32により近い側には、データバッファ37が介設され
ており、デバイスインターフェイス制御部32と、キャ
ッシュメモリ36およびチャネルインターフェイス制御
部31などとの間で授受されるデータが一時的に蓄えら
れるように構成されている。
Further, on the data path 35, a data buffer 37 is provided on a side closer to the device interface control unit 32 than the cache memory 36, and the device interface control unit 32, the cache memory 36 and the channel interface control unit are controlled. The data exchanged with the unit 31 and the like is configured to be temporarily stored.

【0035】また、キャッシュメモリ36およびデータ
バッファ37の動作は前記マイクロプロセッサ33によ
って制御されている。
The operations of the cache memory 36 and the data buffer 37 are controlled by the microprocessor 33.

【0036】一方、前記磁気ディスク装置2において
は、図4に示されるように、記憶媒体である複数の磁気
ディスク21の各々の両面に同心円状に複数のトラック
22が設けられており、各々のトラック22には図3に
示されるようにデータの記録単位の一種であるレコード
が複数個格納されている。
On the other hand, in the magnetic disk device 2, as shown in FIG. 4, a plurality of tracks 22 are provided concentrically on both surfaces of a plurality of magnetic disks 21 as a storage medium. As shown in FIG. 3, the track 22 stores a plurality of records which are a kind of data recording unit.

【0037】また、個々の磁気ディスク21の両面に
は、それぞれ磁気ディスク21の回転中心から距離が互
いに等しい状態で当該磁気ディスク21の径方向に同時
に同一方向に移動して、目的のトラック上への位置付け
動作、すなわちシーク動作を行う複数の図示しないヘッ
ドが対向して配置されており、この図示しないヘッドを
介して任意のトラック22に対する前記レコードなどの
データの記録・再生動作が行われる。
On both surfaces of each magnetic disk 21, the magnetic disks 21 are simultaneously moved in the same direction in the radial direction with the distances from the center of rotation of the magnetic disk 21 being equal to each other, and onto the target track. A plurality of heads (not shown) for performing the positioning operation, that is, the seek operation, are arranged to face each other, and the recording / reproducing operation of the data such as the record for an arbitrary track 22 is performed via the head (not shown).

【0038】さらに、この複数のヘッドを磁気ディスク
21の径方向に変位させることなしに、すなわち回転中
心から等距離にあり、所要時間の長いシーク動作を行う
ことなくヘッドの選択操作のみで高速に連続したアクセ
スが可能な一群のトラック22によりシリンダ23が構
成されている。
Furthermore, the plurality of heads can be moved at high speed only by selecting the heads without displacing the plurality of heads in the radial direction of the magnetic disk 21, that is, at equal distances from the center of rotation and without performing a seek operation that requires a long time. A cylinder 23 is constituted by a group of tracks 22 that can be accessed continuously.

【0039】そして、上位の中央処理装置1の側からの
任意のレコードへのアクセスは、このシリンダ23の番
号,図示しないヘッドの番号(トラック番号)およびレ
コード番号などを指定して行われるものである。
Access to an arbitrary record from the upper central processing unit 1 is performed by designating a cylinder number, a head number (track number) (not shown), a record number, and the like. is there.

【0040】この場合、キャッシュメモリ36には、図
1に示されるように、磁気ディスク装置2における複数
のトラック22の任意の幾つかにそれぞれ対応する複数
のトラックスロット361〜367…が設けられてい
る。磁気ディスク装置2の任意のトラック22に格納さ
れているレコードRなどのデータがそのトラック22に
格納されている場合と等価な記録形式でこのトラックス
ロット361〜367…に随時複写(ロード)される。
In this case, as shown in FIG. 1, the cache memory 36 is provided with a plurality of track slots 361 to 367... Corresponding to arbitrary some of the plurality of tracks 22 in the magnetic disk drive 2. I have. Data such as a record R stored in an arbitrary track 22 of the magnetic disk device 2 is copied (loaded) to the track slots 361 to 167... At any time in a recording format equivalent to that stored in the track 22. .

【0041】これにより、チャネル装置11は、そのア
クセスに際して、キャッシュメモリ36に目的のデータ
が存在する場合には、高速なアクセスが可能なものであ
る。
As a result, the channel device 11 can perform high-speed access when the target data exists in the cache memory 36 at the time of the access.

【0042】さらに、キャッシュメモリ36の内部にお
けるこれらの複数のトラックスロット361〜367…
は、キャッシュメモリ管理テーブル4によって管理され
ている。
Further, the plurality of track slots 361 to 368...
Are managed by the cache memory management table 4.

【0043】キャッシュ管理テーブル4には個々のトラ
ックスロットに対応する複数のエントリ41が設けられ
る。個々のエントリ41には、個々のトラックスロット
に格納されたデータの複写元のトラック22の磁気ディ
スク21における図示しない格納位置情報(シリンダ番
号,トラック番号など)と、キャッシュメモリ36内に
おけるトラックスロットの格納位置を指す図示しないポ
インタなどが記録されている。
The cache management table 4 is provided with a plurality of entries 41 corresponding to individual track slots. Each entry 41 includes storage position information (cylinder number, track number, etc.) of the track 22 from which data stored in each track slot is copied on the magnetic disk 21, and the track slot information in the cache memory 36. A pointer (not shown) indicating the storage position is recorded.

【0044】さらに、個々のエントリ41、すなわち個
々のエントリ41に属する個々のトラックスロットはキ
ャッシュ管理テーブル4においてLRU法(Least
Recently Used low)により管理さ
れている。
Further, each entry 41, that is, each track slot belonging to each entry 41 is stored in the cache management table 4 in the LRU method (Least
Recently Used low).

【0045】すなわち、中央処理装置1からチャネル装
置11を介して磁気ディスク装置2の所定のデータにア
クセスの要求があった場合には、まず、キャッシュ管理
テーブル4を検索してキャッシュメモリ36上に目的の
データがあるか否かが調べられる。目的のデータが存在
する(以下、ヒットと記す)場合には、キャッシュメモ
リ36内のデータを用いた高速なアクセスが可能とな
る。一方、目的のデータが存在しない(以下、ミスと記
す)場合には、直接に磁気ディスク装置2に対してアク
セスを行うことになる。
That is, when there is a request from the central processing unit 1 to access predetermined data in the magnetic disk device 2 via the channel device 11, first, the cache management table 4 is searched and stored in the cache memory 36. It is checked whether or not there is target data. If the target data exists (hereinafter, referred to as hit), high-speed access using the data in the cache memory 36 becomes possible. On the other hand, when the target data does not exist (hereinafter, referred to as a mistake), the magnetic disk device 2 is directly accessed.

【0046】このミスの場合には、たとえば、磁気ディ
スク装置2からチャネル装置11に読み出されるデータ
は同時にキャッシュメモリ36に複写され、次のアクセ
スに備えることとなる。この複写に際しては、解放され
るべきトラックスロットが選択される。キャッシュメモ
リ36に設けられた複数のトラックスロット361〜3
67…の中で最も古い時点でアクセスがあったもの、す
なわち、キャッシュ管理テーブル4のLRU管理におい
て最も順位の低い(OUT側)エントリ41に対応する
ものが選択される。複写されたトラックスロットに対応
するエントリ41をLRU管理の最上位(IN側)に位
置づける操作が行われる。
In the case of this mistake, for example, data read from the magnetic disk device 2 to the channel device 11 is simultaneously copied to the cache memory 36 to prepare for the next access. In this copying, a track slot to be released is selected. A plurality of track slots 361 to 3 provided in the cache memory 36
67..., The one corresponding to the lowest (OUT side) entry 41 in the LRU management of the cache management table 4 is selected. An operation is performed to position the entry 41 corresponding to the copied track slot at the highest level (IN side) of the LRU management.

【0047】すなわち、最近にアクセスされたデータは
次にアクセスされる可能性が高いのでなるべく長くキャ
ッシュメモリ36の内部に保持する。最も古い時点でア
クセスされたデータが格納されているトラックスロット
を新しいデータの複写のために開放する。このようにし
てヒット率の向上を図るものである。
That is, since recently accessed data is highly likely to be accessed next, it is held in the cache memory 36 as long as possible. The track slot storing the data accessed at the oldest point in time is released for copying new data. In this way, the hit rate is improved.

【0048】本実施例においては、前述のようなミスの
際に行われる磁気ディスク装置2からキャッシュメモリ
36への所望のデータのロードの仕方などを規定するキ
ャッシュ動作モードとして少なくとも次の2種類が設け
られている。ローディングモードとレコードモードであ
る。
In the present embodiment, at least the following two types of cache operation modes for defining the manner of loading desired data from the magnetic disk device 2 to the cache memory 36 at the time of the above-described mistake are provided. Is provided. Loading mode and record mode.

【0049】図3に示されるように、磁気ディスク装置
2における任意のトラック22に格納されている複数の
レコードのうち、任意のレコードRにアクセスがあっ
た場合に、レコードRの後方(必ずしも連続していな
い)に格納されているレコードに対するアクセスの確率
が高いと見なす。レコードRの次から、そのトラック
終端までのすべてのレコードをキャッシュメモリ36の
所定のトラックスロットに複写する。これがローディン
グモードである。レコードモードは複写の所要時間およ
びデータパス35の占有時間などを最小にするなどの観
点からアクセスのあった当該レコードRのみを複写す
るモードである。
[0049] As shown in FIG. 3, among the plurality of records stored in any track 22 of the magnetic disk device 2, when there is access to any record R n, behind the record R n ( (It is not necessarily contiguous). The next record R n, copying all records to the track end a predetermined track slot of the cache memory 36. This is the loading mode. Record mode is a mode for copying only the record R p that was in view of the access to minimize such time occupied duration and data path 35 of the copying.

【0050】前述のキャッシュ管理テーブル4の複数の
エントリ41の各々は、次のように構成されている。図
1に示されるように、エントリ41に属するトラックス
ロットに対するアクセスの際に後述の所定の条件に従っ
てインクリメントされるカウンタ41aと、そのトラッ
クスロットにおける現在のキャッシュ動作モードを識別
するモード識別情報41bとが記録されるように、各々
のエントリ41は構成されている。
Each of the plurality of entries 41 of the cache management table 4 is configured as follows. As shown in FIG. 1, when accessing a track slot belonging to the entry 41, a counter 41a that is incremented according to a predetermined condition described later and mode identification information 41b that identifies a current cache operation mode in the track slot are included. Each entry 41 is organized as recorded.

【0051】さらに、本実施例の場合には、磁気ディス
ク21において回転中心から等距離にある一群のトラッ
ク22(トラックスロット)を含む前述のシリンダ23
の各々に対応する複数のエントリ51を有するシリンダ
統計情報テーブル5が設けられている。個々のトラック
スロットにおけるキャッシュ動作モードはこのシリンダ
単位で管理されている。
Further, in the case of the present embodiment, the cylinder 23 including a group of tracks 22 (track slots) equidistant from the rotation center on the magnetic disk 21 is used.
Is provided with a cylinder statistical information table 5 having a plurality of entries 51 corresponding to each of them. The cache operation mode in each track slot is managed on a cylinder basis.

【0052】すなわち、このシリンダ統計情報テーブル
5の各々のエントリ51には、当該エントリ51に対応
するシリンダ23の現在のキャッシュ動作モードを記録
するモード識別情報51aと、当該シリンダ23に対す
る全アクセス回数が記録されるアクセス回数記録部51
bと、前記キャッシュ管理テーブル4におけるカウンタ
41aの値などに基づいて後述の所定の契機に+1され
るローディングモードカウンタ51cと、レコードモー
ドカウンタ51dとが設けられている。
That is, in each entry 51 of the cylinder statistical information table 5, mode identification information 51a for recording the current cache operation mode of the cylinder 23 corresponding to the entry 51 and the total number of accesses to the cylinder 23 are stored. Access frequency recording unit 51 to be recorded
b, a loading mode counter 51c, which is incremented by +1 based on the value of the counter 41a in the cache management table 4, and the like, which will be described later, and a record mode counter 51d.

【0053】そして、本実施例では、アクセス回数記録
部51bの値と、ローディングモードカウンタ51cま
たはレコードモードカウンタ51dとの比の大小に応じ
て、個々のシリンダ23を単位として随時、前述のキャ
ッシュ動作モードを切り替える操作が自動的に行われる
ものである。
In this embodiment, the above-described cache operation may be performed in units of individual cylinders 23 according to the ratio of the value of the access count recording unit 51b to the loading mode counter 51c or the record mode counter 51d. The operation of switching the mode is automatically performed.

【0054】以下、本実施例のキャッシュ制御方式の動
作の一例を図5を用いて説明する。
Hereinafter, an example of the operation of the cache control system of this embodiment will be described with reference to FIG.

【0055】中央処理装置1は、チャネル装置11を介
してディスク制御装置3にシリンダ番号,ヘッド番号
(トラック番号),レコード番号などを指示して磁気デ
ィスク装置2に対するアクセスを要求する。この要求に
対応して、図5の処理が開始する。
The central processing unit 1 requests the disk control unit 3 to access the magnetic disk unit 2 by instructing the cylinder number, head number (track number), record number and the like via the channel unit 11. In response to this request, the processing in FIG. 5 starts.

【0056】ディスク制御装置3は、シリンダ統計情報
テーブル5の該当するシリンダ番号CYL#のアクセス
回数記録部51bを+1する(ステップ60)。次に、
このシリンダのキャッシュ動作モードを判定する(ステ
ップ61)。
The disk controller 3 increments the access number recording unit 51b of the corresponding cylinder number CYL # in the cylinder statistical information table 5 by 1 (step 60). next,
The cache operation mode of this cylinder is determined (step 61).

【0057】ローディングモードの場合を説明する。指
示されたシリンダ番号,トラック番号などにより、キャ
ッシュメモリ36を検索し、目的のレコードを探す(ス
テップ62)。目的のレコードが見つからないとき(ス
テップ63)、次のように処理する。
The case of the loading mode will be described. The cache memory 36 is searched according to the designated cylinder number, track number, etc., and a target record is searched (step 62). When the target record is not found (step 63), the following processing is performed.

【0058】目的のレコードをロードするトラックスロ
ットを解放する(ステップ64)。このトラックスロッ
トの解放に関しては後述する。中央処理装置1がアクセ
スを要求した目的のレコードRに引き続く後続のレコ
ードRm+1,Rm+2を、ロードする(ステップ6
6)。このローディングは磁気ディスク装置2の該当す
るシリンダ番号およびトラック番号のトラック22か
ら、LRU法によって管理される所定のたとえばトラッ
クスロット362にロードすることにより実現する。こ
のローディングと同時または、トラックスロットに格納
した後に、要求されたレコードRをチャネル装置11
に送出する(ステップ67)。キャッシュ管理テーブル
4の該当エントリ41のモード識別情報41bがローデ
ィングモードを示すようにする(ステップ68)。当該
トラックスロットに対応するキャッシュ管理テーブル4
の該当エントリ41のカウンタ41aに初期値1をセッ
トする(ステップ69)。
The track slot for loading the target record is released (step 64). The release of the track slot will be described later. The subsequent records R m + 1 and R m + 2 subsequent to the target record R m requested to be accessed by the central processing unit 1 are loaded (step 6).
6). This loading is realized by loading from the track 22 of the corresponding cylinder number and track number of the magnetic disk device 2 to a predetermined track slot 362 managed by the LRU method, for example. The loading simultaneously with or, after storing the track slot, channel device requested record R m 11
(Step 67). The mode identification information 41b of the corresponding entry 41 in the cache management table 4 indicates the loading mode (step 68). Cache management table 4 corresponding to the track slot
The initial value 1 is set in the counter 41a of the corresponding entry 41 (step 69).

【0059】そして、以降、当該トラックスロット36
2において後続のレコードRm+1,Rm+2にアクセ
スの要求があれば、当該レコードRm+1,Rm+2
キャッシュ内に保持されているので高速にアクセスでき
る(ステップ70)。この場合、ディスク制御装置3
は、キャッシュ管理テーブル4における当該トラックス
ロット362に対応するエントリ41のカウンタ41a
を+1する(ステップ71)。
Thereafter, the track slot 36
2, if there is an access request to the subsequent records R m + 1 and R m + 2 , the records R m + 1 and R m + 2 can be accessed at high speed because they are held in the cache (step 70). In this case, the disk controller 3
Is the counter 41a of the entry 41 corresponding to the track slot 362 in the cache management table 4.
Is incremented by 1 (step 71).

【0060】したがって、現在ローディングモードにあ
るトラックスロット362は、ロードの契機となった先
頭のレコードRで1回、後方のレコードRm+2で1
回の合計2回アクセスされたのでキャッシュ管理テーブ
ル4のカウンタ41aの値は2となる。
[0060] Thus, the track slot 362 in the current loading mode, once at the beginning of the record R m, which was the impetus of the road, behind the record R m + 2 1
The value of the counter 41a of the cache management table 4 becomes 2 since the access has been made twice in total.

【0061】つまり、本カウンタ41aにより対応する
現在ローディングモードにあるトラックスロットが何回
アクセスされたかがわかる。
That is, the number of accesses to the corresponding track slot in the current loading mode can be known from the counter 41a.

【0062】すなわち、1度しかアクセスされない場合
(ロード時のみの場合)、カウンタは初期値1のままで
ある。たとえば同じローディングモードにあるトラック
スロット365のカウンタ41aの値は1であるのでロ
ードの契機となった先頭のR しかアクセスされていな
いことがわかる。
That is, when access is made only once
(Only when loading), the counter remains at the initial value 1.
is there. For example, tracks in the same loading mode
Since the value of the counter 41a of the slot 365 is 1,
Leading R that triggered the code nIs only accessed
I understand that

【0063】いま、現在ローディングモードにあるトラ
ックスロット365は、次に新しいデータがキャッシュ
内にロードされる際に、キャッシュメモリ36から解放
される(トラックスロット365にアクセスがきた場合
を除く)位置にある。すなわち、当該トラックスロット
365に対応するキャッシュ管理テーブル4のエントリ
41のLRU法の順位が最下位にあるとする。
The track slot 365 currently in the loading mode is released from the cache memory 36 when new data is next loaded into the cache (except when the track slot 365 is accessed). is there. That is, it is assumed that the order of the LRU method of the entry 41 of the cache management table 4 corresponding to the track slot 365 is the lowest.

【0064】このとき、本実施例では、ローディングモ
ードにある当該トラックスロット365が解放される
(ステップ64)際に、キャッシュ管理テーブル4にお
いて当該トラックスロット365に対応するエントリ4
1のカウンタ41aが規定の値以下であるもの(本実施
例の場合1)については、シリンダ統計情報テーブル5
において当該トラックスロット365が属するシリンダ
23のエントリ51にあるローディングモードカウンタ
51cを+1する(ステップ65)。
At this time, in this embodiment, when the track slot 365 in the loading mode is released (step 64), the entry 4 corresponding to the track slot 365 in the cache management table 4 is set.
If the counter 41a of No. 1 is equal to or smaller than the prescribed value (in the case of the present embodiment), the cylinder statistical information table 5
In, the loading mode counter 51c in the entry 51 of the cylinder 23 to which the track slot 365 belongs is incremented by 1 (step 65).

【0065】すなわち、シリンダ統計情報テーブル5に
おけるローディングモードカウンタ51cの値は、ロー
ディングモードによるキャッシュメモリ36へのロード
後、ロードの契機となった当該トラックスロットの先頭
レコード以外のレコードには1度もアクセスがこないま
ま開放されたトラックスロットが当該シリンダ23の中
に何本あるかを示すことになる。
That is, the value of the loading mode counter 51c in the cylinder statistical information table 5 is such that, after loading into the cache memory 36 in the loading mode, records other than the head record of the track slot that triggered the loading have never been recorded. This indicates how many track slots in the cylinder 23 have been opened without access.

【0066】そして、ディスク制御装置3は、当該シリ
ンダ23にアクセスがくるたびにローディングモードカ
ウンタ51cの値のアクセス回数記録部51bの値に対
する割合Xを求める(ステップ72)。
[0066] Then, the disk control unit 3 determines the ratio X L with respect to the value of the access count record unit 51b of the value of the loading mode counter 51c each time comes access to the cylinder 23 (step 72).

【0067】そして、この割合Xがある規定の割合
(K)を超えていた場合(本例の場合K=0.8)(ス
テップ73)、磁気ディスク装置2からキャッシュメモ
リ36へのロードに際して、ローディングモードにより
同一トラック内の複数のレコードを複写しても無駄であ
ると判断し、キャッシュ動作モードを、現在のローディ
ングモードからレコードモードに切り替える(ステップ
74)。
[0067] Then, if it exceeds the prescribed percentage of where this ratio X L (K) (in the present example K = 0.8) (step 73), when loaded from the magnetic disk device 2 to the cache memory 36 It is determined that it is useless to copy a plurality of records in the same track in the loading mode, and the cache operation mode is switched from the current loading mode to the record mode (step 74).

【0068】同時に、シリンダ統計情報テーブル5の当
該シリンダ23に対応するエントリ51のアクセス回数
記録部51bおよびローディングモードカウンタ51c
をクリアする(ステップ75)。
At the same time, the access count recording unit 51b and the loading mode counter 51c of the entry 51 corresponding to the cylinder 23 in the cylinder statistical information table 5
Is cleared (step 75).

【0069】たとえば、図1のシリンダ統計情報テーブ
ル5において、シリンダ番号CYL#が248番のエン
トリ51においては、アクセス回数記録部51bおよび
ローディングモードカウンタ51cの値がそれぞれ14
および12であり、 X=12/14≒0.85 となる。Xが規定の0.8を超えているので動作モー
ドの変更が必要であると判断される。
For example, in the cylinder statistical information table 5 of FIG. 1, in the entry 51 having the cylinder number CYL # of 248, the values of the access number recording section 51b and the loading mode counter 51c are 14
And a 12, the X L = 12/14 ≒ 0.85 . Change of the operation mode because X L exceeds 0.8 prescribed is determined to be necessary.

【0070】このため、ディスク制御装置3は、以後、
当該シリンダ番号CYL#が248番のシリンダ23に
属する1群のトラック22からキャッシュメモリ36へ
のロードは、レコードモードが不適と判断されるまでレ
コードモードで行う。
For this reason, the disk control device 3 thereafter
Loading from the group of tracks 22 belonging to the cylinder 23 having the cylinder number CYL # of 248 to the cache memory 36 is performed in the record mode until the record mode is determined to be inappropriate.

【0071】一方、上位の中央処理装置1の側からアク
セス要求のあったシリンダ23が現在レコードモードの
場合(ステップ61)、まず、指示されたシリンダ番
号,トラック番号,レコード番号などにより、キャッシ
ュメモリ36を検索し、目的のレコードを探す(ステッ
プ76)。
On the other hand, if the cylinder 23 for which an access request has been made from the upper central processing unit 1 is currently in the record mode (step 61), first, the cache memory is designated by the designated cylinder number, track number, record number and the like. 36 is searched for a target record (step 76).

【0072】ここで、現在レコードモードにあるトラッ
クスロット367において、当該トラックスロット36
7に対応するトラック22における後続レコードR
p+2に対するアクセスの場合、キャッシュメモリ36
上に目的のレコードRp+2は存在しない(ステップ7
7)ので、磁気ディスク装置2の当該トラック22から
キャッシュメモリ36へロード(ステップ78)しなけ
ればならない。そして、チャネル装置11へそのレコー
ドを出力する(ステップ79)。
Here, in the track slot 367 currently in the record mode, the track slot 36
Subsequent record R on track 22 corresponding to 7
In the case of access to p + 2 , the cache memory 36
There is no target record Rp + 2 above (step 7
7) Therefore, the data must be loaded from the track 22 of the magnetic disk device 2 to the cache memory 36 (step 78). Then, the record is output to the channel device 11 (step 79).

【0073】この際に、本実施例のディスク制御装置3
はシリンダ統計情報テーブル5の当該トラックが属する
シリンダ23に対応するエントリ51のレコードモード
カウンタ51dを+1する(ステップ80)。
At this time, the disk controller 3 of this embodiment
Increments the record mode counter 51d of the entry 51 of the cylinder statistical information table 5 corresponding to the cylinder 23 to which the track belongs (step 80).

【0074】すなわち、任意のシリンダ23に対応する
エントリ51のレコードモードカウンタ51dは、レコ
ードモードによって当該シリンダに属する1群のトラッ
ク23の任意の一つから単一レコードのみをキャッシュ
メモリ36にロードしたが、当該レコードと同一トラッ
ク上にある後続レコードがアクセスされ、レコードモー
ドによるロードでは不充分であった回数を示している。
That is, the record mode counter 51d of the entry 51 corresponding to an arbitrary cylinder 23 loads only a single record from an arbitrary one of a group of tracks 23 belonging to the cylinder into the cache memory 36 in the record mode. Indicates the number of times that a succeeding record on the same track as the record is accessed, and the loading in the record mode is insufficient.

【0075】そして、当該シリンダにアクセスがくるた
びにレコードモードカウンタ51dの値のアクセス回数
記録部51bの値に対する割合Xを求める(ステップ
81)。この割合Xがある規定の値(L)を超えてい
た場合(本例の場合ではL=0.6)(ステップ8
2)、キャッシュ動作モードを現在のレコードモードか
らローディングモードに自動的に切り替える(ステップ
83)。
[0075] Then, a ratio X R for the values of the access count record unit 51b of the value of the record mode counter 51d each time comes access to the cylinder (step 81). If it exceeds the prescribed value is the ratio X R (L) (in the case of the present example L = 0.6) (Step 8
2) The cache operation mode is automatically switched from the current record mode to the loading mode (step 83).

【0076】シリンダ統計情報テーブル5の当該シリン
ダ23に対応するエントリ51のアクセス回数記録部5
1bおよびレコードモードカウンタ51dをクリアする
(ステップ84)。
The access count recording unit 5 of the entry 51 corresponding to the cylinder 23 in the cylinder statistical information table 5
1b and the record mode counter 51d are cleared (step 84).

【0077】たとえば、図1のシリンダ統計情報テーブ
ル5のシリンダ番号CYL#が249番のエントリ51
においては、現在のアクセス回数記録部51bおよびレ
コードモードカウンタ51dの値がそれぞれ13および
8であり、 X=8/13≒0.62 となる。Xが規定の値0.6を越えているのでキャッ
シュ動作モードを変更する必要がある。
For example, the entry 51 whose cylinder number CYL # is 249 in the cylinder statistical information table 5 of FIG.
In the current value of the access count record unit 51b and the record mode counter 51d are respectively 13 and 8, the X R = 8/13 ≒ 0.62 . Since X R exceeds a prescribed value 0.6 is necessary to change the cache operation mode.

【0078】したがって、ディスク制御装置3は、以
後、シリンダ番号CYL#が249番のシリンダ23に
属するトラック23からキャッシュメモリ36へのロー
ドを、ローディングモードが不適と判断されるまでロー
ディングモードで行う。
Therefore, the disk control device 3 thereafter loads data from the track 23 belonging to the cylinder 23 having the cylinder number CYL # of 249 to the cache memory 36 in the loading mode until it is determined that the loading mode is inappropriate.

【0079】なお、レコードモードでキャッシュメモリ
36に目的のレコードがある場合は、そのレコードをチ
ャネル装置へ出力する(ステップ85)。
If there is a target record in the cache memory 36 in the record mode, the record is output to the channel device (step 85).

【0080】このように、本実施例においては、キャッ
シュ管理テーブル4の個々のエントリ41に設けられた
カウンタ41a,モード情報部41b、さらにはシリン
ダ統計情報テーブル5の各々のエントリ51に設けられ
たアクセス回数記録部51b,ローディングモードカウ
ンタ51c,レコードモードカウンタ51dなどに基づ
く統計情報によって把握される、個々のキャッシュ動作
モードの稼働状況に応じて、臨機応変に、ディスク制御
装置3がシリンダ23などを単位として、ローディング
モードとレコードモードとの間でキャッシュ動作モード
を自動的に切り替える学習機能を有している。
As described above, in this embodiment, the counter 41a and the mode information section 41b provided in each entry 41 of the cache management table 4 and the entry 51 of the cylinder statistical information table 5 are provided. The disk control device 3 controls the cylinder 23 and the like according to the operation status of each cache operation mode, which is grasped by statistical information based on the access number recording unit 51b, the loading mode counter 51c, the record mode counter 51d, and the like. The unit has a learning function of automatically switching the cache operation mode between the loading mode and the record mode.

【0081】したがって、中央処理装置1からの磁気デ
ィスク装置2に格納されたデータに対するアクセスパタ
ーンが、種々の事情によって時々刻々と変化としても、
人手の介入を受けることなく、常に、最適なキャッシュ
動作モードを維持することが可能となる。
Therefore, even if the access pattern from the central processing unit 1 to the data stored in the magnetic disk device 2 changes every moment due to various circumstances,
It is possible to always maintain the optimal cache operation mode without human intervention.

【0082】これにより、キャッシュメモリ36を常
時、最大限に有効に活用することができる。
As a result, the cache memory 36 can be always and effectively used.

【0083】また、中央処理装置1と磁気ディスク装置
2およびディスク制御装置3などからなる情報処理シス
テムにおいて、中央処理装置1と磁気ディスク装置2と
の間におけるデータの授受の効率が大幅に向上する。
In an information processing system including the central processing unit 1, the magnetic disk unit 2, the disk control unit 3, etc., the efficiency of data transfer between the central processing unit 1 and the magnetic disk unit 2 is greatly improved. .

【0084】以上本発明によってなされた発明を実施例
に基づき具体的に説明したが、本発明は前記実施例に限
定されるものではなく、その要旨を逸脱しない範囲で種
々変更可能であることはいうまでもない。
The invention made by the present invention has been specifically described based on the embodiments. However, the present invention is not limited to the above-described embodiments, and various changes can be made without departing from the scope of the invention. Needless to say.

【0085】たとえば、上記の実施例では、磁気ディス
ク装置が1つのディスク制御装置によって制御される場
合について説明したが、これに限らず、複数の磁気ディ
スク制御装置から制御されるようにしてもよい。その場
合、統計情報は各ディスク制御装置間で共有される。
For example, in the above embodiment, the case where the magnetic disk device is controlled by one disk controller has been described. However, the present invention is not limited to this, and the magnetic disk device may be controlled by a plurality of magnetic disk controllers. . In that case, the statistical information is shared between the respective disk control devices.

【0086】また、上記の実施例では、磁気ディスク装
置およびディスク制御装置などで構成される磁気ディス
クサブシステムが1つの中央処理装置に接続されている
が、複数中央処理装置に共有されるようにしてもよいこ
とは言うまでもない。
In the above embodiment, the magnetic disk subsystem including the magnetic disk unit and the disk control unit is connected to one central processing unit. Needless to say, this may be done.

【0087】さらに、上記の本実施例ではキャッシュ動
作モードおよび統計情報をシリンダ単位で管理する場合
について説明したが、これに限らず、ボリュームもしく
はデータセット単位で管理してもよい。
Further, in the above-described embodiment, a case has been described in which the cache operation mode and the statistical information are managed in cylinder units. However, the present invention is not limited to this, and may be managed in volume or data set units.

【0088】また、キャッシュ動作モードとしては、前
記実施例中に例示されたものに限らないことは言うまで
もない。
Further, it goes without saying that the cache operation mode is not limited to the one exemplified in the above embodiment.

【0089】本発明になるキャッシュ制御方法によれ
ば、中央処理装置と外部記録装置との間に介在し、外部
記憶装置のデータの一部を記憶するキャッシュメモリを
備えた制御装置において、複数のキャッシュ動作モード
を備え、個々のキャッシュ動作モードの稼働状況に応じ
て前記キャッシュ動作モードを自動的に切り替える学習
機能を具備している。中央処理装置からのアクセス回数
と現在選択しているキャッシュ動作モードが有効もしく
は無効に働いた回数との比などとして得られる統計情報
の値が規定の闘値を超えたか否かを監視することで現在
のキャッシュ動作モードの稼働状況の適否を判断でき
る。必要に応じて他のより適したキャッシュ動作モード
へ自動的に切替えることが可能となる。
According to the cache control method of the present invention, in a control device having a cache memory interposed between a central processing unit and an external recording device and storing a part of data of the external storage device, It has a cache operation mode, and has a learning function of automatically switching the cache operation mode according to the operation status of each cache operation mode. By monitoring whether the value of statistical information obtained as the ratio of the number of accesses from the central processing unit to the number of times the currently selected cache operation mode has been enabled or disabled has exceeded a specified threshold value It is possible to judge whether or not the operation status of the current cache operation mode is appropriate. If necessary, it is possible to automatically switch to another more suitable cache operation mode.

【0090】これにより、たとえ中央処理装置からのア
クセスパターンが時々刻々と変化しても、常時、最適な
キャッシュ動作モードを維持してキャッシュメモリを有
効に活用することができるという効果がある。
As a result, even if the access pattern from the central processing unit changes every moment, there is an effect that the optimum cache operation mode can be always maintained and the cache memory can be effectively used.

【0091】また、本発明の情報処理システムにおいて
は、中央処理装置と、外部記憶装置と、この中央処理装
置と外部記憶装置との間に介在し、前記外部記憶装置の
データの一部を記憶するキャッシュメモリを備えた制御
装置とからなる情報処理システムであって、複数のキャ
ッシュ動作モードを備え、個々のキャッシュ動作モード
の稼働状況に応じて前記キャッシュ動作モードを自動的
に切り替える学習機能を具備している。中央処理装置か
らのアクセス回数と現在選択しているキャッシュ動作モ
ードが有効もしくは無効に働いた回数との比などとして
得られる統計情報の値が規定の闘値を超えたか否かを監
視することで現在のキャッシュ動作モードの稼働状況の
適否を判断できる。必要に応じて他のより適したキャッ
シュ動作モードへ自動的に切替えることができる。
In the information processing system of the present invention, a central processing unit, an external storage device, and a part of the data in the external storage device are interposed between the central processing device and the external storage device. An information processing system, comprising: a control device having a cache memory to perform, comprising a plurality of cache operation modes, and having a learning function of automatically switching the cache operation mode according to the operation status of each cache operation mode. are doing. By monitoring whether the value of statistical information obtained as the ratio of the number of accesses from the central processing unit to the number of times the currently selected cache operation mode has been enabled or disabled has exceeded a specified threshold value It is possible to judge whether or not the operation status of the current cache operation mode is appropriate. If necessary, it can be automatically switched to another more suitable cache operation mode.

【0092】これにより、たとえ中央処理装置からのア
クセスパターンが時々刻々と変化するような場合でも、
常時、最適なキャッシュ動作モードを維持してキャッシ
ュメモリを有効に機能させることが可能となり、キャッ
シュメモリが介在する中央処理装置と外部記憶装置との
間における情報の授受効率を向上させることができると
いう効果がある。
Thus, even if the access pattern from the central processing unit changes every moment,
It is possible to always maintain the optimal cache operation mode and to make the cache memory function effectively, and it is possible to improve the information transfer efficiency between the central processing unit and the external storage device in which the cache memory is interposed. effective.

【0093】次に、前述した実施例と同様に、キャッシ
ュメモリを有するディスク制御装置による、中央処理装
置と外部記憶装置との間の情報の転送効率を向上させる
別の実施例の説明をする。本実施例では、特にヒット率
の向上とローディングオーバーヘッドを軽減する方法に
ついて説明する。
Next, another embodiment for improving the efficiency of information transfer between a central processing unit and an external storage device by a disk control device having a cache memory, as in the above-described embodiment, will be described. In this embodiment, a method for improving the hit ratio and reducing the loading overhead will be described.

【0094】図6は、キャッシュメモリ36の構成を示
すものである。キャッシュメモリ36は、固定長のセグ
メント30に分割されている。磁気ディスク装置2の一
つのトラックを格納するために、一つ以上のある個定数
のセグメント30が必要であるとする。
FIG. 6 shows the structure of the cache memory 36. The cache memory 36 is divided into fixed-length segments 30. In order to store one track of the magnetic disk drive 2, one or more constant segments 30 are required.

【0095】まず、一つのトラックを複数のセグメント
30で格納する場合について説明する。なお、このセグ
メント数をnとする。空きセグメントポインタ38は、
空いているセグメント30の集合の中のポインタを指
す。各セグメント30はポインタを持ち、セグメント3
0が空いているときには、次の空きセグメントを指す。
但し、最終の空きセグメント30のポインタはnull
とする。
First, a case where one track is stored in a plurality of segments 30 will be described. Note that the number of segments is n. The empty segment pointer 38 is
Points to a pointer in the set of empty segments 30. Each segment 30 has a pointer and a segment 3
When 0 is free, it points to the next free segment.
However, the pointer of the last empty segment 30 is null.
And

【0096】図7は、キャッシュ管理テーブル6の構成
を示す。キャッシュ管理テーブル6は、図1に示したも
のと同様であるが、本実施例を説明するために必要な部
分のみを示している。キャッシュ管理テーブル6は、キ
ャッシュ管理ブロック40から構成されている。キャッ
シュ管理ブロック40は、前述のキャッシュメモリ36
内のセグメント30を一つ以上割当てているトラック対
応に割当てる。空きブロックポインタ42は、空いてい
るキャッシュ管理ブロック40の集合の先頭のキャッシ
ュ管理ブロック40へのポインタである。
FIG. 7 shows the structure of the cache management table 6. The cache management table 6 is the same as that shown in FIG. 1, but shows only the parts necessary for explaining the present embodiment. The cache management table 6 includes a cache management block 40. The cache management block 40 includes the cache memory 36 described above.
Is assigned to one or more tracks corresponding to one or more tracks. The empty block pointer 42 is a pointer to the first cache management block 40 of the set of empty cache management blocks 40.

【0097】図8は、上記キャッシュ管理ブロック40
の構成を示すものである。デバイスID58、シリンダ
ID59、トラックID52は、このキャッシュ管理ブ
ロックに対応したディスク装置2上のトラックのディス
ク装置2、シリンダ、トラックに関する識別子である。
セグメント・ポインタ(a)53〜同(n)54は、n
個のセグメント30へのポインタを示している。これら
のポインタのうち、対応するトラック中に、キャッシュ
メモリ36中に格納されている部分を格納しているセグ
メント数だけが有効であり、残りはnull状態とな
る。有効なポインタは、対応するセグメント30へのポ
インタとなる。
FIG. 8 shows the cache management block 40.
It shows the configuration of FIG. The device ID 58, the cylinder ID 59, and the track ID 52 are identifiers relating to the disk device 2, cylinder, and track of the track on the disk device 2 corresponding to the cache management block.
The segment pointers (a) 53 to (n) 54 are n
A pointer to the number of segments 30 is shown. Of these pointers, only the number of segments that store the portion stored in the cache memory 36 in the corresponding track is valid, and the rest are null. A valid pointer becomes a pointer to the corresponding segment 30.

【0098】また、格納開始レコード識別子55は、キ
ャッシュメモリ36内に格納を開始したレコードの識別
子、例えば、このレコードのディスク装置2上のトラッ
クの格納開始位置、格納終了レコード識別子56は、キ
ャッシュメモリ36内の格納を最後に行ったレコードの
識別子を示している。すなわち、キャッシュメモリ36
内には、格納開始レコード識別子55、格納終了レコー
ド識別子56で示される範囲のレコード群が格納される
ことになる。次ポインタ57は、このキャッシュ管理ブ
ロック40が空いているとき、次のキャッシュ管理ブロ
ック40へのポインタとなる。ただし、他に空いている
キャッシュ管理ブロック40が無い場合、null値と
なる。
The storage start record identifier 55 is an identifier of a record whose storage has started in the cache memory 36. For example, the storage start position of a track of this record on the disk device 2 and the storage end record identifier 56 are 36 shows the identifier of the record that was last stored. That is, the cache memory 36
, A record group in the range indicated by the storage start record identifier 55 and the storage end record identifier 56 is stored. The next pointer 57 is a pointer to the next cache management block 40 when the cache management block 40 is empty. However, when there is no other empty cache management block 40, the value becomes null.

【0099】図9に、プロセッサ33の処理フローを図
を示す。図9は、プロセッサ33が、中央処理装置1か
ら入出力要求を受取った場合の処理フロー図である。こ
こでは、本発明の要点の一つに関する処理のみを述べ
る。ステップ90において、入出力対象トラックのキャ
ッシュメモリ36への格納状況をチェックする。次に、
受取った入出力要求の対象となるトラック全体がキャッ
シュメモリ36内に存在しない場合は、中央処理装置1
から受取った位置付け要求(必要なデータを読み出せる
ようにするためのディスク装置2に対する指示)に従っ
て、ディスク装置2に対して位置付け要求を発行する
(ステップ91)。なお、このとき、1トラックを格納
するに充分な個数のセグメント30を確保する。
FIG. 9 shows a processing flow of the processor 33. FIG. 9 is a processing flowchart when the processor 33 receives an input / output request from the central processing unit 1. Here, only processing relating to one of the points of the present invention will be described. In step 90, the storage status of the input / output target track in the cache memory 36 is checked. next,
If the entire target track of the received I / O request does not exist in the cache memory 36, the central processing unit 1
Issue a positioning request to the disk device 2 in accordance with the positioning request (instruction to the disk device 2 so that necessary data can be read out) (step 91). At this time, a sufficient number of segments 30 for storing one track is secured.

【0100】キャッシュメモリ36内に、入出力要求の
対象となるトラックの一部が格納されているが、アクセ
ス対象のレコードが、キャッシュメモリ36内に格納さ
れているレコード群よりトラック後の部分である場合は
次のように処理する。格納終了レコード識別子56より
後方の部分にアクセス対象のレコードが存在する場合に
は、ステップ92に示す如く、格納終了レコード識別子
56に示されたレコードの次のレコードからトラック内
の最終レコードまでを格納するため、ディスク装置2に
対して位置付け要求を発行する。このとき、このトラッ
クの最後のレコードを格納するのに充分なセグメント3
0の数を確保する。
Although a part of a track to be subjected to an input / output request is stored in the cache memory 36, a record to be accessed is a part of the track after the group of records stored in the cache memory 36. If there is, process as follows. If there is a record to be accessed in a portion behind the storage end record identifier 56, as shown in step 92, the data from the record following the record indicated by the storage end record identifier 56 to the last record in the track is stored. Therefore, a positioning request is issued to the disk device 2. At this time, there are enough segments 3 to store the last record of this track.
Reserve the number 0.

【0101】アクセス対象のレコードが、キャッシュメ
モリ36内に存在するレコード群より前の部分である場
合は、次のように処理する。格納終了レコード識別子5
6より前方の部分にアクセス対象のレコードが存在する
場合には、ステップ93に示す如く、格納終了レコード
識別子56に示されたレコードの次のレコードからトラ
ック内の最終レコードまでをロードし、トラックの先頭
のレコードから格納開始レコード識別子55で示される
レコードの前のレコードまでを格納するため、ディスク
装置2に対して位置付け要求を発行する。この場合、こ
のトラックの最終レコードまで格納されている場合に
は、トラックの最初の部分からロードを開始する。ま
た、このとき、上記ロード処理に必要な数だけのセグメ
ント30を確保する。
If the record to be accessed is a part before the record group existing in the cache memory 36, the following processing is performed. Storage end record identifier 5
If there is a record to be accessed in a part ahead of the record No. 6, as shown in step 93, the data from the record following the record indicated by the storage end record identifier 56 to the last record in the track is loaded. In order to store from the first record to the record before the record indicated by the storage start record identifier 55, a positioning request is issued to the disk device 2. In this case, if the last record of this track has been stored, loading is started from the first part of the track. At this time, as many segments 30 as necessary for the load processing are secured.

【0102】次に、ディスク装置2から位置付け完了報
告を受取ったときの、プロセッサ33の処理フローを、
図10〜図12に基づいて説明する。
Next, the processing flow of the processor 33 when receiving the positioning completion report from the disk device 2 will be described.
This will be described with reference to FIGS.

【0103】まず、中央処理装置1からのアクセス対象
のトラック内のレコードが、キャッシュメモリ36内に
存在しない場合について説明する。図10ステップ94
に示す如く、中央処理装置1からの入出力要求に従っ
て、入出力処理を行う。この際、ディスク装置2からレ
コードを読出した場合には、このレコードをキャッシュ
メモリ36内にロードする。ディスク装置2に書込むよ
う、中央処理装置1から受取ったレコードは、ディスク
装置2に書込むと同時に、キャッシュメモリ36にも書
込む。この後、格納開始レコード識別子55,格納終了
レコード識別子56を設定する。この場合、中央処理装
置1からのアクセス対象となるレコード(ディスク装置
2へ書き込むべきレコード)は連続したレコード群とな
る。
First, a case where a record in a track to be accessed from the central processing unit 1 does not exist in the cache memory 36 will be described. FIG. 10 step 94
As shown in (1), an input / output process is performed in accordance with an input / output request from the central processing unit 1. At this time, when a record is read from the disk device 2, the record is loaded into the cache memory 36. The record received from the central processing unit 1 is written to the disk device 2 and also to the cache memory 36 at the same time as writing to the disk device 2. Thereafter, a storage start record identifier 55 and a storage end record identifier 56 are set. In this case, records to be accessed from the central processing unit 1 (records to be written to the disk device 2) are a continuous record group.

【0104】図13には、このときのデータの格納形式
を示す。図示するように最初にアクセス対象となったレ
コードをセグメント30の先頭から格納する。これによ
り、アクセス対象となったレコードが少なければローデ
ィングオーバーヘッドの削減だけでなく、キャッシュメ
モリ36の使用容量も削減できる。
FIG. 13 shows the data storage format at this time. As shown in the figure, the first record to be accessed is stored from the beginning of the segment 30. As a result, if the number of records to be accessed is small, not only the loading overhead but also the used capacity of the cache memory 36 can be reduced.

【0105】図11は、格納終了レコード識別子56に
示されたレコードの次のレコードから、このトラックの
最終レコードまでをキャッシュメモリ36内にロードす
る処理に対する位置付け完了要求を受取った場合を示す
ものである。この場合、ステップ95に示す如く、格納
終了識別子56に示されたレコードの次のレコードか
ら、最終レコードまでをロードする処理を実行する。ま
た、格納終了レコード識別子56をトラックの終点の位
置とする。
FIG. 11 shows a case where a positioning completion request has been received for the process of loading from the record following the record indicated by the storage end record identifier 56 to the last record of this track into the cache memory 36. is there. In this case, as shown in step 95, processing for loading from the record following the record indicated by the storage end identifier 56 to the last record is executed. The storage end record identifier 56 is set as the position of the end point of the track.

【0106】図14に、このときのデータ格納形式を示
す。この後、ステップ96において、中央処理装置1と
論理的に再接続し、中央処理装置1との入出力処理に入
る。このとき、新たにロードしたレコードは、今までロ
ードしていたレコードの後に付加することになる。
FIG. 14 shows the data storage format at this time. Thereafter, in step 96, the CPU is logically reconnected to the central processing unit 1 and the input / output processing with the central processing unit 1 is started. At this time, the newly loaded record is added after the previously loaded record.

【0107】図12は、格納終了レコード識別子56に
示された次のレコードから、このトラックの最終レコー
ドまでをキャッシュメモリ36内にロードし、次に、ト
ラックの先頭のレコードから、格納開始レコード識別子
55に示されたレコードの前のレコードまでをキャッシ
ュ21内にロードする処理を実行するために、ディスク
装置2からの位置付け完了処理を受取った場合の処理で
ある。ステップ95でこの処理を実行する。但し、既
に、トラック最終レコードまでロードされている場合に
は、トラックの先頭のレコードからローディングを開始
する。このとき、格納開始レコード識別子56を、格納
開始レコード識別子55の前のレコードに設定する。
FIG. 12 shows that from the next record indicated by the storage end record identifier 56 to the last record of this track is loaded into the cache memory 36, and then the storage start record identifier is read from the head record of the track. This is a process when the positioning completion process is received from the disk device 2 in order to execute the process of loading the records up to the record indicated by 55 into the cache 21. This processing is executed in step 95. However, if the last record of the track has already been loaded, loading is started from the first record of the track. At this time, the storage start record identifier 56 is set to the record before the storage start record identifier 55.

【0108】図15には、この格納形式を示す。この
後、ステップ96において、中央処理装置1との入出力
処理に入る。このとき、今までキャッシュメモリ36内
に格納されていたレコード群の後に、トラックの最終レ
コードまでのレコード群を、更に、その後にトラックの
先頭からのレコード群を格納することになる。
FIG. 15 shows this storage format. Thereafter, in step 96, input / output processing with the central processing unit 1 is started. At this time, the record group up to the last record of the track is stored after the record group stored in the cache memory 36, and the record group from the head of the track is stored thereafter.

【0109】上記実施例においては、キャッシュメモリ
36内にロードされているレコード群より後方のレコー
ドにアクセス要求があった場合、図11に示した如く、
キャッシュメモリ36内にロードされているレコード群
の次のレコードからロードするようにした例を示した
が、図12に示す如く、キャッシュメモリ36内にロー
ドされているレコード群以外のすべてのレコードを、キ
ャッシュメモリ36内にロードするようにしても良い。
In the above embodiment, when an access request is made to a record after the group of records loaded in the cache memory 36, as shown in FIG.
Although an example has been described in which the record is loaded from the record next to the record group loaded in the cache memory 36, as shown in FIG. 12, all records other than the record group loaded in the cache memory 36 are deleted. , May be loaded into the cache memory 36.

【0110】以上は、トラックを格納するためのセグメ
ント30を複数割当てる場合である。この場合には、ト
ラック全体をキャッシュメモリ36に格納しない場合に
セグメント30をトラックと1対1に割当てたときに比
べて、容量を節約できる。
The above is the case where a plurality of segments 30 for storing tracks are allocated. In this case, when the entire track is not stored in the cache memory 36, the capacity can be saved as compared with the case where the segments 30 are assigned one-to-one with the tracks.

【0111】次に、一つのトラックに対応して、一つの
セグメント30を割当てる場合の実施例を説明する。こ
の場合、図8に示したキャッシュ管理ブロック40の形
式は異なり、図16に示すキャッシュ管理ブロック40
aの形式とする。図8との相異は、セグメントポインタ
150が一つで良いことである。
Next, an embodiment in which one segment 30 is assigned to one track will be described. In this case, the format of the cache management block 40 shown in FIG.
a. The difference from FIG. 8 is that only one segment pointer 150 is required.

【0112】また、セグメント30内の格納形式は、図
13に示した如く、中央処理装置1から最初にアクセス
されたレコードをセグメント30の先頭から格納してい
っても良いが、以下に述べる方式をとっても良い。すな
わち、図17に示す如く、このレコードがトラックの先
頭からの相対位置に従って、格納位置を決める方式であ
る。この場合、トラック内の先頭のレコードを、セグメ
ント30内の先頭に格納することになる。
The storage format in the segment 30 may be such that a record accessed first by the central processing unit 1 may be stored from the beginning of the segment 30, as shown in FIG. You may take. That is, as shown in FIG. 17, the storage position of this record is determined according to the relative position from the beginning of the track. In this case, the first record in the track is stored at the first record in the segment 30.

【0113】プロセッサ33の処理も、基本的には、図
9〜図12の処理フローで示した内容で良い。但し、セ
グメントを割付けるタイミングは、このトラックのレコ
ードがキャッシュメモリ36内に存在しないときにアク
セスがあった場合、すなわち、図9ステップ91に相当
する部分だけで良い。また、図17に示した格納形式を
とった場合、格納開始レコード識別子55に示されるレ
コードより前の位置のレコードにアクセスがあったと
き、トラックの先頭から格納開始レコード識別子55に
示されるレコードの前のレコードまでを格納するように
しても良い。
The processing of the processor 33 may basically be the contents shown in the processing flow of FIGS. However, the timing for allocating the segment may be only when there is an access when the record of this track does not exist in the cache memory 36, that is, only the portion corresponding to step 91 in FIG. In the case of the storage format shown in FIG. 17, when a record at a position before the record indicated by the storage start record identifier 55 is accessed, the record of the record indicated by the storage start record identifier 55 from the beginning of the track is Up to the previous record may be stored.

【0114】また、上述の実施例においては、制御装置
3内のプロセッサ33を1個としているが、これを複数
個設け、中央処理装置からの入出力経路、ディスク装置
2からの入出力経路を複数個設けても良い。また、中央
処理装置1とキャッシュメモリ36との間のデータ転送
処理、ディスク装置2とキャッシュメモリ36との間の
データ転送処理を並行に実行させても良い。本質的に
は、本実施例では制御装置3内にキャッシュメモリ36
を持っていれば良く、これ以外の構成要素は不可欠では
ない。
In the above-described embodiment, the number of processors 33 in the control unit 3 is one. A plurality may be provided. The data transfer process between the central processing unit 1 and the cache memory 36 and the data transfer process between the disk device 2 and the cache memory 36 may be executed in parallel. Essentially, in this embodiment, the cache memory 36
The other components are not indispensable.

【0115】以上述べた如く、本実施例によれば、中央
処理装置からの入出力要求のアクセス対象のトラック内
のレコードの、キャッシュメモリ内における存在状態に
基づいて、キャッシュメモリ内にロードするレコード群
を決定するようにしたので、トラックを構成しているレ
コードが可変長の場合でも、トラック単位の管理方式を
ベースとしてローディングオーバーヘッドを少なくする
ことが可能な、データローディング方法を実現できると
いう顕著な効果を奏するものである。
As described above, according to the present embodiment, the record to be loaded into the cache memory based on the existence state in the cache memory of the record in the access target track of the input / output request from the central processing unit. Since the group is determined, it is remarkable that a data loading method capable of reducing the loading overhead based on the track-by-track management method can be realized even when the records constituting the track are of variable length. It is effective.

【0116】さらに、キャッシュメモリへのローディン
グ・オーバーヘッドの軽減とヒット率の向上を図るため
の別の実施例を示す。
Further, another embodiment for reducing the loading overhead to the cache memory and improving the hit ratio will be described.

【0117】図18は、制御メモリ34の構成を示す。
制御メモリ34は、プロセッサ33の機能を実現するた
めの各モジュールが格納される。ここでは、本実施例に
関係する部分について述べる。アクセス特性チェック部
7は、入出力要求のアクセス特性をチェックし、アクセ
ス・パターンに関する情報を記憶する。ローディング選
択部8は、アクセス特性チェック部が収集した情報にし
たがって、ローディング・パターンを決定する。ローデ
ィング実行部9は、ローディング選択部8の選択したロ
ーディング・パターンに従って、ローディングの実行制
御を行う機能を持つ。
FIG. 18 shows the structure of the control memory 34.
The control memory 34 stores modules for realizing the functions of the processor 33. Here, portions related to the present embodiment will be described. The access characteristic check unit 7 checks the access characteristic of the input / output request and stores information relating to the access pattern. The loading selection unit 8 determines a loading pattern according to the information collected by the access characteristic check unit. The loading execution unit 9 has a function of performing loading execution control according to the loading pattern selected by the loading selection unit 8.

【0118】図19は、キャッシュ管理テーブル4のさ
らに異なる構成である。キャッシュ管理テーブル10
は、本実施例に関係する部分について示す。キャッシュ
管理ブロック40bを、キャッシュメモリ36内のセグ
メント30を1つ以上割り当てているトラック(当該ト
ラックのある部分はキャッシュ内に格納しているという
意味)対応に設ける。各キャッシュ管理ブロック40b
は、前方向ポインタ48、後方向ポインタ47によりM
RU(Most Recently Used)順にチ
ェインされている。MRUポインタ42は、最も最近に
入出力の対象となったトラックのキャッシュ管理ブロッ
ク40bをさす。LRU(Least Recentl
y Used)ポインタ43は、キャッシュメモリ36
の中に格納されているトラックの集合では、最も長い時
間入出力対象となっていないトラックのキャッシュ管理
ブロック40bをさす。従って、ミス(アクセス対象と
なったデータがキャッシュメモリ36に存在しない。)
が発生し、新たにセグメント30を割り当てる必要が生
じ、かつ、空きセグメントがない場合、LRUポインタ
43で示されたキャッシュ管理ブロック40bに対応し
たトラックを格納したセグメント30、および、このキ
ャッシュ管理ブロック40bを解放することになる。ア
クセス時間44は、このキャッシュ管理ブロック40b
が対応しているトラックが最も最近入出力対象となった
時刻を格納する。(従ってMRUポインタ42から、前
方向ポインタ48をたどっていた場合、各キャッシュ管
理ブロック40b内のアクセス時間44は、遅くなって
いくことになる。)トラックを割り当てていなくて、空
いているキャッシュ管理ブロック40bは、空きブロッ
クポインタ45から、先頭のキャッシュ管理ブロック4
0bがポイントされ、各キャッシュ管理ブロック40b
は前方向ポインタ48と後方向ポインタ47によりポイ
ントされる。
FIG. 19 shows a further different structure of the cache management table 4. Cache management table 10
Shows parts related to the present embodiment. The cache management block 40b is provided corresponding to a track to which one or more segments 30 in the cache memory 36 are allocated (meaning that a certain portion of the track is stored in the cache). Each cache management block 40b
Is calculated by the forward pointer 48 and the backward pointer 47.
They are chained in RU (Most Recently Used) order. The MRU pointer 42 points to the cache management block 40b of the track most recently subjected to input / output. LRU (Least Recentl)
y Used) pointer 43 is stored in the cache memory 36.
Indicates the cache management block 40b of the track that has not been the input / output target for the longest time in the set of tracks stored in the list. Therefore, a miss (the data to be accessed does not exist in the cache memory 36).
Occurs, a new segment 30 needs to be allocated, and if there is no empty segment, the segment 30 storing the track corresponding to the cache management block 40b indicated by the LRU pointer 43, and the cache management block 40b Will be released. The access time 44 corresponds to the cache management block 40b.
Stores the time when the track corresponding to is the most recent input / output target. (Accordingly, if the forward pointer 48 is followed from the MRU pointer 42, the access time 44 in each cache management block 40b will be slowed down.) The track is not allocated, and the empty cache management is not performed. The block 40b is based on the free block pointer 45,
0b is pointed to and each cache management block 40b
Is pointed by the forward pointer 48 and the backward pointer 47.

【0119】アクセス特性情報46は、アクセス特性チ
ェック部7が各入出力要求のアクセス特性をキャッシュ
管理単位、すなわち、本実施例においてはトラック単位
に収集した情報を格納する。本実施例には、ディスク装
置2のすべてのトラックに対応してアクセス特性情報4
6を設ける。これらの情報の1部をキャッシュ管理ブロ
ック40bの中に設け必要な記憶容量を削減してもよ
い。
The access characteristic information 46 stores information collected by the access characteristic check unit 7 for each input / output request in cache management units, that is, in this embodiment, in track units. In the present embodiment, the access characteristic information 4
6 is provided. A part of this information may be provided in the cache management block 40b to reduce the required storage capacity.

【0120】図20に、アクセス特性情報46の構成を
示す。本実施例では、受け付けた入出力要求がシーケン
シャル・アクセスがどうかを認識する。シーケンシャル
・アクセスであると認識した場合、この後アクセス対象
となり得る複数のトラックをロードする。以降、これを
単に、複数トラック・ローディングと呼ぶ。
FIG. 20 shows the structure of the access characteristic information 46. In this embodiment, it is determined whether the received input / output request is a sequential access. If it is determined that the access is sequential access, a plurality of tracks that can be accessed thereafter are loaded. Hereinafter, this is simply referred to as multi-track loading.

【0121】シーケンシャル・アクセスでないと認識し
た場合、当該トラックのデータがキャッシュメモリ36
にまったくない状態から、一部、あるいは、全体がキャ
ッシュメモリ36内にローディングされて、当該トラッ
クのデータ全体がキャッシュメモリ36から追い出され
るまでの間に、中央処理装置1が実際にアクセスした部
分を把握して、これに基づき、ローディング方法を選択
する。
When it is recognized that the access is not a sequential access, the data of the track is
The part actually accessed by the central processing unit 1 during a period from when the data is partially or wholly loaded into the cache memory 36 until the entire data of the track is expelled from the cache memory 36 from the state where it is not present at all. Understand and select a loading method based on this.

【0122】まず、シーケンシャル・アクセスの認識の
ために必要な情報について説明する。シーケンシャル・
チェック中フラグ100は、このトラック内のデータが
シーケンシャルにアクセスされているかをチェック中で
あることを示すフラグである。具体的には、このアクセ
ス特性情報に対応するトラックの先頭のレコードがアク
セスされた時、このフラグはオンにする。その後、先頭
レコード以降のアクセスがシーケンシャルに行なわれな
かった場合、および、このトラックの最後のレコードま
でシーケンシャルにアクセスが完了した場合(このトラ
ックがシーケンシャル・アクセスされたということを認
識した時)、このフラグをオフにする。シーケンシャル
識別アドレス101は、次のアクセスがシーケンシャル
に行なわれる場合アクセスされるレコードが格納されて
いるトラックの先頭からの位置を示す。シーケンシャル
認識フラグ102は、このトラックの先頭のレコードま
でシーケンシャルにアクセスされた時オンにする。オフ
にするタイミングは、次にこのトラックに対して、入出
力要求を受け付けた時である。
First, information necessary for sequential access recognition will be described. sequential·
The checking flag 100 is a flag indicating that it is checking whether data in the track is sequentially accessed. Specifically, when the first record of the track corresponding to the access characteristic information is accessed, this flag is turned on. Thereafter, when access from the first record onward is not performed sequentially, or when access to the last record of this track is completed sequentially (when it is recognized that this track has been sequentially accessed), Turn off the flag. The sequential identification address 101 indicates the position from the beginning of the track where the record to be accessed when the next access is performed sequentially is stored. The sequential recognition flag 102 is turned on when the first record of the track is sequentially accessed. The timing of turning off is when the next input / output request is received for this track.

【0123】シーケンシャル以外のアクセスに対して
は、入出力要求を受け付けた時、アクセス対象トラック
のレコードがキャッシュ21内に存在しなかった時点
(以降これをトラック・ミスと呼ぶ。)から、このトラ
ックのデータがキャッシュメモリ36から追い出される
までの期間に、中央処理装置1がアクセス対象とした部
分をローディング対象としたいという考え方に基づき、
ローディング方法を決定するものとする。
For an access other than the sequential access, when an input / output request is accepted, the record of the track to be accessed does not exist in the cache 21 (hereinafter, this is referred to as a track miss), and this track is started. Based on the idea that the part to be accessed by the central processing unit 1 is to be loaded, during the period until the data of
The loading method shall be determined.

【0124】次に、当該トラックの中で中央処理装置が
実際にアクセスした部分を認識するための情報を示す。
1つの考え方は、ある固定長(図21ではPバイト)の
単位を1ビットとして、図21に示すようにトラックを
複数ビットのトラック・ビット・パターン108で表わ
し、あるレコードがアクセスされた時、このレコードが
トラック上で格納されている領域に対応したビットをオ
ンにしておき、(図21中では、レコード1,レコード
mはアクセスされていること、レコード2はアクセスさ
れていないことを表わす。)キャッシュメモリ36に
は、ビットがオンしている領域のみローディングすると
いうものである。しかし、トラック・ミス時、トラック
すべてをローディングしない場合、その後に、このトラ
ックが入出力対象となった時、このトラックの一部のデ
ータはキャッシュメモリ36上に存在するが、アクセス
対象とするレコードはキャッシュメモリ36内に存在し
ない場合がある。この場合は、アクセス対象となったレ
コードをキャッシュメモリ36内に新たにローディング
するという方法をとるものとする。ただし、ディスク装
置2は、回転体であるため、オンになっているビットの
集合にすきまができているような場合は、ローディング
時間そのものは、短くならない。従って、以下、本実施
例では、中央処理装置がアクセスした部分を図22に示
した考え方で認識するケースについて詳細に述べる。
Next, information for recognizing a part of the track which is actually accessed by the central processing unit is shown.
One idea is that a track is represented by a track bit pattern 108 of a plurality of bits as shown in FIG. 21 with a unit of a fixed length (P bytes in FIG. 21) as one bit, and when a certain record is accessed, The bit corresponding to the area where this record is stored on the track is turned on. (In FIG. 21, record 1 and record m are accessed, and record 2 is not accessed. ) In the cache memory 36, only the area where the bit is ON is loaded. However, when a track is missed and all the tracks are not loaded, and when this track is subsequently subjected to input / output, a part of the data of this track exists in the cache memory 36 but the record to be accessed is May not exist in the cache memory 36. In this case, a method of newly loading the accessed record into the cache memory 36 is adopted. However, since the disk device 2 is a rotating body, if there is a gap in a set of ON bits, the loading time itself does not become short. Therefore, in the present embodiment, a case where the part accessed by the central processing unit is recognized based on the concept shown in FIG. 22 will be described below in detail.

【0125】図22では、トラックを、上位アクセス部
110,前方部109,後方部111とわけてる。上位
アクセス部110は、当該トラックに対する入出力要求
を受け付け、トラック,ミスが発生した時、中央処理装
置1がアクセス対象としたレコード群である。前方部1
09は、この上位アクセス部110の前の位置にあるレ
コード群であり、後方部111は後の位置にあるレコー
ド群である。
In FIG. 22, the tracks are divided into a higher-level access section 110, a front section 109, and a rear section 111. The upper access unit 110 is a record group to which the central processing unit 1 has access when an input / output request for the track is received and a track or a mistake occurs. Front part 1
Reference numeral 09 denotes a record group at a position before the upper access unit 110, and a rear part 111 is a record group at a position after the upper access unit 110.

【0126】本実施例では、シーケンシャル・アクセス
以外のアクセスに対して、トラック・ミス時のローディ
ング・パターンとして以下のパターンを持つものとす
る。(これら以外のローディング・パターンを持って
も、本発明は有効である。) (a)トラック・ローディング……トラック全体をロー
ディングする。 (b)上位アクセス+後方部ローディング……上位アク
セス部+後方部をローディングする。 (c)上位アクセス部・ローディング……上位アクセス
部のみローディングする。
In the present embodiment, it is assumed that the following pattern is used as a loading pattern at the time of a track miss for accesses other than the sequential access. (The present invention is effective even if it has a loading pattern other than these.) (A) Track loading: Loading the entire track. (B) Upper access + backward loading ... Loading the upper access unit + backward. (C) Upper Access Unit / Loading ... Only the upper access unit is loaded.

【0127】以上の様なローディング・パターンを用意
した場合にも、(b)上位アクセス部+後方部ローディ
ングを実行し、レコードがキャッシュメモリ36内に存
在する時、当該トラックの前方部109のレコードにア
クセスがあるとミスが発生する。これを、フロント・ミ
スと呼ぶ。(c)上位アクセス部・ローディングを実行
した場合には、後方部111のレコードにアクセスがあ
った時にもミスが生ずる。これをリア・ミスと呼ぶ。フ
ロント・ミスやリア・ミスが発生した時の処理を次に示
す。 (1)フロント・ミス:当該トラックの中でキャッシュ
メモリ36にローディングしていないレコードをすべ
て、キャッシュメモリ36内にローディングする。 (2)リア・ミス:後方部111内のみキャッシュにロ
ードする。
Even when the above-described loading pattern is prepared, (b) the upper access unit + backward loading is executed, and when the record exists in the cache memory 36, the record of the front portion 109 of the track is recorded. A mistake occurs when there is access to. This is called a front miss. (C) When the upper access unit / loading is executed, a mistake occurs even when a record in the rear unit 111 is accessed. This is called a rear miss. The processing when a front mistake or a rear mistake occurs is described below. (1) Front miss: All records in the track that have not been loaded into the cache memory 36 are loaded into the cache memory 36. (2) Rear miss: Only the rear part 111 is loaded into the cache.

【0128】以上の様なローディングを行う場合、トラ
ック・ミス(フロントミス,リアミス)が発生してか
ら、このトラック全体がキャッシュメモリ36から追い
出されるまで、上位アクセス部110,前方部109,
後方部111のうち実際に中央処理装置1がアクセスし
た部分を把握し、記憶する。このアクセスした部分に関
する統計情報を収集し、トラック・ミス時、適切と判断
したローディング方法を選択する。本実施例では、過去
q回のうち最も多かったローディング・パターンを選択
する。
When the above loading is performed, the upper access section 110, the front section 109, and the upper section from the occurrence of a track miss (front miss, rear miss) until the entire track is evicted from the cache memory 36.
The part of the rear part 111 actually accessed by the central processing unit 1 is grasped and stored. The statistical information on the accessed portion is collected, and when a track miss occurs, a loading method determined to be appropriate is selected. In this embodiment, the most frequently used loading pattern in the past q times is selected.

【0129】例えば、後方部111をアクセスしたケー
スが最も多かった場合、(b)上位アクセス部+後方部
ローディングを選択する。
For example, when the rear part 111 is accessed most frequently, (b) the upper access part + the rear part loading is selected.

【0130】以上の様な方法を実現するために取得すべ
き情報として、アクセス特性情報46の中に持つべき情
報を以下説明する。
Information to be obtained in the access characteristic information 46 as information to be acquired to realize the above method will be described below.

【0131】開始・終了アドレス103は、トラック・
ミス時、中央処理装置1がアクセスした上位アクセス部
110のトラック上の開始・終了アドレスを示す。
The start / end address 103 is a track
At the time of a miss, the start / end address on the track of the upper access unit 110 accessed by the central processing unit 1 is shown.

【0132】前方部・アクセス・フラグ104、後方部
・アクセス・フラグ105は、トラック・ミス以後、中
央処理装置1が、前方部109、後方部111をアクセ
スしたかを示す情報である。アクセス部チェック中フラ
グ106は、前方部109、後方部111がアクセスさ
れるかをチェック中であることを示すフラグである。
The front part access flag 104 and the rear part access flag 105 are information indicating whether the central processing unit 1 has accessed the front part 109 and the rear part 111 after a track miss. The access part checking flag 106 is a flag indicating that it is under check whether the front part 109 and the rear part 111 are accessed.

【0133】統計情報107は、トラック・ミスが発生
してからこのトラック全体がキャッシュメモリ36から
追い出される間に、前方部あるいは後方部がアクセスさ
れたかという情報、すなわち、前方部アクセス・フラグ
104、後方部アクセス・フラグ105の情報を過去r
回蓄積したものである。
The statistical information 107 includes information indicating whether the front or rear part has been accessed during the entire track is expelled from the cache memory 36 after the occurrence of a track miss, that is, the front access flag 104, The information of the rear access flag 105 is past r
It is the one that accumulated.

【0134】ただし、記憶容量の節約のために、統計情
報107はトラックよりも、さらに大きい単位、例え
ば、シリンダごとにとってもよい。
However, in order to save storage capacity, the statistical information 107 may be stored in a unit larger than a track, for example, for each cylinder.

【0135】以下、アクセス特性チェック部7、ローデ
ィング選択部8の処理フロー図について述べる。ローデ
ィング実行部9は、ローディング選択部8の指示に従っ
てローディングを行うだけである。
Hereinafter, the processing flow chart of the access characteristic check section 7 and the loading selection section 8 will be described. The loading execution unit 9 only performs loading according to the instruction of the loading selection unit 8.

【0136】まず、アクセス特性チェック部7の処理フ
ローについて述べる。アクセス特性チェック部7には、
シーケンシャル・アクセスの認識とそれ以外のアクセス
特性の認識がある。最初にシーケンシャル・アクセスの
認識に関する部分について述べる。
First, the processing flow of the access characteristic check unit 7 will be described. The access characteristic check unit 7 includes:
There is recognition of sequential access and recognition of other access characteristics. First, the part relating to recognition of sequential access will be described.

【0137】図23は、当該トラックの先頭のレコード
がアクセスされた時の処理である。ステップ120にお
いて、シーケンシャル・チェック中フラグ100をオン
にして、処理を終了する。
FIG. 23 shows the processing when the head record of the track is accessed. In step 120, the sequential check flag 100 is turned on, and the process is terminated.

【0138】図24は、入出力要求に対する処理を受け
付けた時、当該トラックのシーケンシャル・チェック中
フラグ50がオンの場合に実行される処理である。ま
ず、ステップ121では、受け付けた入出力要求がアク
セス対象としたレコードのトラックの先頭からの位置
が、シーケンシャル判別アドレス101と一致するかど
うかをチェックする。一致すれば、レコードがシーケン
シャルにアクセスされていることになるため、特に何の
処理も行なわない。一致しなければ、ステップ122に
おいて、シーケンシャル・チェック中フラグ100をオ
フにする。
FIG. 24 shows a process executed when the sequential check flag 50 of the track is turned on when the process for the input / output request is received. First, in step 121, it is checked whether or not the position of the record to be accessed by the received input / output request from the beginning of the track matches the sequential determination address 101. If they match, the record is being accessed sequentially, so no particular processing is performed. If they do not match, in step 122 the sequential check flag 100 is turned off.

【0139】図25は、入出力要求に対する処理が終了
した時に、当該トラックのシーケンシャル・チェック中
フラグ100がオンの場合実行される処理である。ステ
ップ123では、当該トラックの最終レコードまで、入
出力処理が完了したかどうかをチェックする。完了して
いない場合に、ステップ124において、この入出力要
求で処理が完了したレコードの次のレコードのトラック
の先頭からの相対アドレスを、シーケンシャル判別アド
レス101に記憶する。
FIG. 25 shows a process executed when the sequential check flag 100 of the track is ON when the process for the input / output request is completed. In step 123, it is checked whether the input / output processing has been completed up to the last record of the track. If not completed, in step 124, the relative address from the beginning of the track of the record next to the record processed by this input / output request is stored in the sequential determination address 101.

【0140】完了した場合には、このトラックのレコー
ドがシーケンシャルにアクセスされたことになるため、
ステップ125において、シーケンシャル認識フラグ1
02をオンにし、シーケンシャル・チェック中フラグ1
01をオフにする。
When completed, the records of this track are accessed sequentially, so that
In step 125, the sequential recognition flag 1
02 on, sequential check flag 1
Turn off 01.

【0141】図26は、入出力要求を受け付けた時、当
該トラックのシーケンシャル認識フラグ102がオンの
場合の処理である。この場合、ステップ126におい
て、シーケンシャル認識フラグ102をオフにする。
FIG. 26 shows a process when the sequential recognition flag 102 of the track is turned on when an input / output request is received. In this case, in step 126, the sequential recognition flag 102 is turned off.

【0142】次に、シーケンシャル・アクセスでないと
認識したアクセスに対する処理を示す。
Next, processing for an access recognized as not a sequential access will be described.

【0143】図27は、トラック・ミス時、複数トラッ
ク・ローディング以外のローディングを行った後、実行
される処理である。(複数トラック・ローディングを行
うのは、シーケンシャル・アクセスと認識している場合
である。) ステップ127では、中央処理装置1が当該トラックの
中で実際に入出力要求のアクセス対象となったレコード
群すなわち、図22における上位アクセス部110のト
ラックの先頭からの開始位置,終了位置を開始・終了ア
ドレス103にセットする。さらに、ステップ128で
アクセス部チェック中フラグ106をオンにする。
FIG. 27 shows the processing executed after loading other than the multiple track loading in the case of a track error. (Multi-track loading is performed when sequential access is recognized.) In step 127, the central processing unit 1 sets a record group in the track to which an input / output request is actually accessed. That is, the start position and the end position of the upper access unit 110 from the beginning of the track in FIG. Further, in step 128, the access part checking flag 106 is turned on.

【0144】図28は、アクセス部チェック中フラグ1
06がオンの時に当該トラックに対して入出力要求を受
け取った時の処理である。ステップ129では、受け付
けた入出力要求がアクセス対象とするレコードが図22
に示した、前方部109、上位アクセス部110、後方
部111のどの位置に相当するかを分析する。
FIG. 28 shows an access unit checking flag 1
This is a process when an input / output request is received for the track when 06 is ON. In step 129, the record to be accessed by the received input / output request is
Of the front part 109, the high-order access part 110, and the rear part 111 shown in FIG.

【0145】上位アクセス部110がアクセス対象とな
っている場合、特に何もせず処理を終了する。
If the upper access unit 110 is to be accessed, the process is terminated without doing anything.

【0146】前方部109がアクセス対象となっている
場合で、ステップ130で前方部アクセス・フラグ10
4がオフの場合、これをオンとする(オンになっている
場合の処理はない)。ステップ131において、当該ト
ラック全体がキャッシュメモリ36にローディングされ
ていない場合、ローディングされていない部分をローデ
ィングするよう、ローディング実行部9に対して指示を
行う。
In the case where the front part 109 is to be accessed, in step 130 the front part access flag 10
When 4 is off, it is turned on (there is no processing when it is on). In step 131, if the entire track has not been loaded into the cache memory 36, an instruction is given to the loading execution unit 9 to load the unloaded portion.

【0147】後方部111がアクセス対象となっている
場合、ステップ132で、後方部アクセス・フラグ10
5がオフの場合、これをオンとする(オンになっている
場合の処理はない)。ステップ133において、後方部
111が、キャッシュメモリ36にローディングされて
いない後方部111をローディングするよう、ローディ
ング実行部9に対して指示を行う。
If the rear part 111 is to be accessed, at step 132, the rear part access flag 10
If 5 is off, it is turned on (there is no processing if it is on). In step 133, the rear unit 111 instructs the loading execution unit 9 to load the rear unit 111 that has not been loaded into the cache memory 36.

【0148】図29は、キャッシュメモリ36から当該
トラックを追い出す時、前方・後方部チェック中フラグ
106がオンの時、実行される処理である。
FIG. 29 shows a process executed when the track is removed from the cache memory 36 and the front / rear part checking flag 106 is ON.

【0149】まず、ステップ134で、アクセス部チェ
ック中フラグ106をオフする。次に、ステップ135
において、過去r回分の前方部アクセス・フラグ10
4、後方部アクセス・フラグ105の統計情報のうち、
最も古い情報を除き、現在の前方部アクセス・フラグ1
04、後方部アクセス・フラグ105の内容を記憶す
る。この後、ステップ136において、前方部アクセス
・フラグ104、後方部アクセス・フラグ105をオフ
にする。
First, in step 134, the access unit checking flag 106 is turned off. Next, step 135
, The forward access flag 10 for the past r times
4. Of the statistical information of the rear access flag 105,
Except for the oldest information, the current forward access flag 1
04, the contents of the rear access flag 105 are stored. Thereafter, in step 136, the front access flag 104 and the rear access flag 105 are turned off.

【0150】次に、ローディング選択部9の処理フロー
を図30に示す。図30は、トラック・ミスが発生した
時に、実行される。
Next, a processing flow of the loading selection section 9 is shown in FIG. FIG. 30 is executed when a track miss occurs.

【0151】まず、ステップ137でこの入出力要求が
トラックの先頭のレコードに対するアクセスかどうかを
チェックする。そうでなければ、ステップ140へジャ
ンプする。先頭のレコードに対するアクセスの場合、ス
テップ138において、アクセス対象トラックより前の
2つのトラックのアクセス特性情報46のシーケンシャ
ル認識フラグ102がオンかどうかをチェックする。本
実施例の場合、チェックするのは、2トラックである
が、2トラックでなくとも本発明は有効である。オンで
ない場合には、ステップ140へジャンプする。
First, at step 137, it is checked whether this input / output request is an access to the first record of the track. Otherwise, jump to step 140. In the case of access to the first record, in step 138, it is checked whether the sequential recognition flag 102 of the access characteristic information 46 of the two tracks before the track to be accessed is on. In the case of this embodiment, only two tracks are checked, but the present invention is effective even if the number of tracks is not two. If not on, jump to step 140.

【0152】オンの場合、このアクセスがシーケンシャ
ル・アクセスであると判断し、ステップ139におい
て、ローディング実行部9に対して、複数トラックのロ
ーディングを指示して処理を終了する。
If it is on, it is determined that this access is a sequential access, and in step 139, the loading execution unit 9 is instructed to load a plurality of tracks, and the processing is terminated.

【0153】ステップ140から開始される処理は、シ
ーケンシャル・アクセスでないと判断した場合のローデ
ィング方法を選択する処理である。ステップ140にお
いては、統計情報107に基づき、過去q回のアクセス
・パターンを前方部109も後方部111もアクセスさ
れなかったパターン、後方部111だけアクセスされた
パターン、以上の2つのパターン以外のパターンに3分
類する。この結果、前方部109も後方部111もアク
セスされなかったパターンが最も多かった場合、ステッ
プ141において、上位アクセス部ローディングをロー
ディング実行部に対して指示する。
The process started from step 140 is a process for selecting a loading method when it is determined that the access is not a sequential access. In step 140, based on the statistical information 107, the past q access patterns include patterns in which neither the front part 109 nor the rear part 111 are accessed, patterns in which only the rear part 111 is accessed, and patterns other than the above two patterns. Are classified into 3 categories. As a result, if the number of patterns in which neither the front section 109 nor the rear section 111 has been accessed is the largest, in step 141, the upper access section loading is instructed to the loading execution section.

【0154】後方部111だけアクセスされたパターン
が最も多かった場合、ステップ142において上位アク
セス部+後方部のローディングをローディング実行部9
に対して指示する。
If the number of patterns accessed by the rear part 111 is the largest, the loading of the upper access part + the rear part is performed in step 142 by the loading execution part 9.
Instruct to.

【0155】これ以外のパターンが最も多かった場合、
ステップ143において、トラックローディングをロー
ディング実行部9に対して指示する。
If the number of other patterns is the largest,
In step 143, a track loading is instructed to the loading execution unit 9.

【0156】ここでは、ローディングを選択する場合、
当該トラックの統計情報107のみ参照したが、当該ト
ラック以外の統計情報107を参照してもよい。
Here, when loading is selected,
Although only the statistical information 107 of the track is referred to, the statistical information 107 other than the track may be referred to.

【0157】以上述べてきた実施例では、シーケンシャ
ル・アクセスを認識するため、トラック内のレコードが
連続的にアクセスされているかチェックするために、シ
ーケンシャル識別アドレス101を1つしか持っていな
い。このため、シーケンシャル・リードを行ったレコー
ドをシーケンシャルに更新していくという比較的頻度が
高い処理が発生した場合、シーケンシャル・アクセスで
あるという認識ができなくなる。従って、リード処理と
ライト処理のシーケンシャル・アクセスの認識を行うこ
とにより、この問題を解決する。この場合、アクセス特
性情報46の構成は、図20にかわり図31に示すよう
になる。図20との違いは、図20中のシーケンシャル
・チェック中フラグ100、シーケンシャル識別アドレ
ス101、シーケンシャル認識フラグ102にリード用
とライト用がある点である。どちらの情報を扱うかは、
受け付けた入出力要求がリード要求であるかライト要求
であるかにより決まり、操作のタイミング、方法等は、
以上述べてきた実施例と同様である。
In the embodiment described above, in order to recognize the sequential access, only one sequential identification address 101 is provided to check whether the records in the track are continuously accessed. For this reason, when a relatively frequent process of sequentially updating records that have been sequentially read occurs, it cannot be recognized as sequential access. Therefore, this problem is solved by recognizing sequential access of read processing and write processing. In this case, the configuration of the access characteristic information 46 is as shown in FIG. 31 instead of FIG. The difference from FIG. 20 is that the sequential check flag 100, the sequential identification address 101, and the sequential recognition flag 102 in FIG. Which information is handled depends on
It depends on whether the received I / O request is a read request or a write request, and the operation timing, method, etc.
This is the same as the embodiment described above.

【0158】また、シーケンシャル・アクセスの認識を
行う際、受け付けに入出力要求のアクセス効果となるレ
コードのトラックの先頭からの位置が、シーケンシャル
識別アドレス101とまったく同じであるという条件を
用いていたが、一定の幅はあってもシーケンシャル・ア
クセスであると認識してもよい。
Also, when performing sequential access recognition, the condition that the position from the beginning of the track of the record which is the access effect of the input / output request for reception is exactly the same as the sequential identification address 101 has been used. However, it may be recognized that the access is a sequential access even though it has a certain width.

【0159】シーケンシャル・アクセス以外のアクセス
に対するトラック・ミス発生時のローディング・パター
ンは、述べてきた実施例では、上位アクセス部ローディ
ング(上位アクセス部+後方部)、ローディング,トラ
ック・ローディングの3つのパターンであったがこの3
つのパターンにローディングなしのパターンを付加する
ことが考えられる。これは、トラック・ミス時のローデ
ィング以降、当該トラック全体がキャッシュメモリ36
から追い出されるまでの間に当該トラックに対してアク
セスがない場合に有効である。
In the embodiment described above, the loading pattern when a track miss occurs for an access other than the sequential access includes three patterns of upper access section loading (upper access section + rear section), loading, and track loading. But this 3
It is conceivable to add a pattern without loading to one pattern. This is because, after loading at the time of a track miss, the entire track concerned is
This is effective when there is no access to the track before being ejected from the track.

【0160】この場合、中央処理装置1がトラック・ミ
ス時のローディング以降、アクセス効果とする部分の監
視を前方部109、後方部111だけでなく、上位アク
セス部110へのアクセスも行う必要がある。
In this case, it is necessary for the central processing unit 1 to monitor not only the front section 109 and the rear section 111 but also the upper access section 110 after the loading at the time of the track miss, in order to monitor the portions as the access effects. .

【0161】さらに、ローディングなしのパターンを実
行した場合、以下に述べる認識を行う必要がある。すな
わち、トラック・ミスが発生した時に、このトラック・
ミスの発生は前回のトラック・ミスの発生時に、ローデ
ィングを行わなかったために発生したのか、ローディン
グを行っていたとしても当該トラックに対するアクセス
時間間隔が長くてトラック・ミスが発生しているのかを
区別する必要がある。前者の場合、ローディングの必要
がなかったことになる。しかし、後者の場合、この時の
アクセスが、上位アクセス部110に対するものである
ならば、前回のトラック・ミス時に、上位アクセス部ロ
ーディングを行う必要があったことになる。同様に、こ
の時のアクセスが後方部111に対するものである場合
には(上位アクセス部+後方部)のローディングを実行
する必要がある。前方部109に対するものであるなら
ば、トラック・ローディングを実行する必要があったこ
とになる。従って、これらの区別を行い、前回のトラッ
ク・ミス時に選択すべきだったローディング方法を統計
情報107に記憶し、以降のローディング方法の選択に
反映させる必要がある。このとき、統計情報107に記
憶する内容が、前回のトラック・ミス時にローディング
が必要がなかった場合には上位アクセス部110、前方
部109、後方部111もアクセスされなかったという
ことを統計情報107に記憶することになる。前回のト
ラック・ミス時に何らかのローディングを行う必要があ
った場合には、この時のアクセスが、(a)上位アクセ
ス部110に対するものであれば、上位アクセス部11
0にアクセスがあったこと、(b)後方部111に対す
るものなら後方部111にアクセスがあったこと、及び
(c)前方部109に対するものなら前方部109にア
クセスがあったことを統計情報107に記憶することに
なる。
Further, when a pattern without loading is executed, the following recognition needs to be performed. That is, when a track miss occurs, this track
Whether a miss occurred because the previous track miss occurred because no loading was performed, or whether a track miss occurred due to the long access time interval to the track even if loading was performed There is a need to. In the former case, there is no need for loading. However, in the latter case, if the access at this time is to the upper access unit 110, it means that it was necessary to load the upper access unit at the time of the previous track miss. Similarly, if the access at this time is for the rear part 111, it is necessary to execute the loading of (upper access part + rear part). If it is for the front part 109, it means that track loading had to be performed. Therefore, it is necessary to make these distinctions, store the loading method that should have been selected at the time of the previous track miss in the statistical information 107, and reflect it in the subsequent selection of the loading method. At this time, if the contents stored in the statistical information 107 indicate that no loading was necessary at the time of the previous track miss, the statistical information 107 indicates that the upper access unit 110, the front unit 109, and the rear unit 111 were not accessed. Will be stored. If it is necessary to perform some kind of loading at the time of the previous track miss, if the access at this time is (a) the upper access unit 110, the upper access unit 11
The statistical information 107 indicates that there has been an access to 0, (b) that the rear part 111 has been accessed for the rear part 111, and (c) that the front part 109 has been accessed for the front part 109. Will be stored.

【0162】前回のトラック・ミスの発生時に何らかの
ローディングが必要であったかを判別するために、アク
セス特性情報46aの中に、トラック・ミスが発生した
時の時刻を記憶する。次に、トラック・ミスが発生した
時、LRUポインタ43でポイントされているキャッシ
ュ管理ブロック40b内のアクセス時間44とこの時刻
を比較する。キャッシュメモリ36からの追い出し方法
が、LRU方式の場合、この時刻がアクセス時間よりも
遅い場合には、仮に、前回のトラック・ミス時にローデ
ィングを行っていたとしてもすでにキャッシュメモリ3
6から追い出されていることになる。そうでなければ、
まだ、キャッシュメモリ36内に依存していることにな
り、ローディングが必要であったことになる。
In order to determine whether some kind of loading was necessary at the time of the previous track error, the time at which the track error occurred is stored in the access characteristic information 46a. Next, when a track miss occurs, this time is compared with the access time 44 in the cache management block 40b pointed to by the LRU pointer 43. In the case where the flushing method from the cache memory 36 is the LRU method, if this time is later than the access time, even if the loading was performed at the time of the previous track miss, the cache memory 3
You have been kicked out of 6. Otherwise,
It still depends on the cache memory 36, which means that loading is necessary.

【0163】図32は、ローディングなしのパターンを
設けた場合のアクセス特性情報46bの構成である。同
様に図33は、図31のアクセス特性情報46aにロー
ディングなしのパターンを考慮した場合の構成46cで
ある。
FIG. 32 shows the structure of the access characteristic information 46b when a pattern without loading is provided. Similarly, FIG. 33 shows a configuration 46c when a pattern without loading is considered in the access characteristic information 46a of FIG.

【0164】以下、新たに設けた情報の説明を行う。上
位アクセス・フラグ170は、上位アクセス部110に
対するアクセスをチェックするフラグである。トラック
・ミス発生時刻171はトラック・ミス発生時刻を記憶
するために設ける。上位アクセスフラグ170、トラッ
ク・ミス発生時刻171の使用目的は以上述べたとおり
である。
Hereinafter, newly provided information will be described. The upper access flag 170 is a flag for checking access to the upper access unit 110. The track miss occurrence time 171 is provided to store the track miss occurrence time. The purpose of using the upper access flag 170 and the track miss occurrence time 171 is as described above.

【0165】統計情報A172と統計情報107の相違
は、統計情報107が、前方アクセスフラグ104と後
方アクセスフラグ105の過去の情報であるのに対し、
統計情報A172はこれに、上位アクセスフラグの過去
の情報を付加したものである。統計情報A172の内容
とトラック・ミス時に選択すべきローディング方法の関
係を以下に示す。 (a)上位アクセス部110、前方部109、後方部1
11ともアクセスがないパターンが最も多かった場合…
…ローディングなし。 (b)上位アクセス部110のみアクセスするパターン
が最も多かった場合……上位アクセス部ローディング。 (c)後方部111、あるいは、上位アクセス部110
+後方部111しかアクセスしないパターンが最も多か
った場合……上位アクセス2部+後方部のローディン
グ。 (d)上記3つの場合以外……トラックローディング。
The difference between the statistical information A 172 and the statistical information 107 is that the statistical information 107 is past information of the forward access flag 104 and the backward access flag 105, whereas
The statistical information A172 is obtained by adding past information of the upper access flag to this. The relationship between the contents of the statistical information A172 and the loading method to be selected at the time of a track miss is shown below. (A) Upper access section 110, front section 109, rear section 1
When there are the most patterns with no access to 11 ...
… No loading. (B) The case where the pattern of accessing only the upper access unit 110 is the largest. Loading of the upper access unit. (C) The rear part 111 or the upper access part 110
+ When the pattern that accesses only the rear part 111 is the most frequent ... Upper access two parts + rear part loading. (D) Other than the above three cases: Track loading.

【0166】ローディングなしのパターンを設けた時の
基本的な考え方、新たに設けた情報の使用目的、トラッ
ク・ミス時に選択すべきローディングの決定方法を以上
述べた。処理フローは、ローディングなしのパターンと
設けない場合とそれほどの差違はないため省略する。
The basic concept when a pattern without loading is provided, the purpose of using the newly provided information, and the method of determining the loading to be selected when a track miss occurs have been described above. The processing flow is omitted because there is not much difference from the case where the pattern without loading is not provided.

【0167】以上の実施例では、シーケンシャル,アク
セス以外のアクセスに対するアクセス特性の把握とし
て、上位計算機システムが実際にアクセス対象とした領
域を把握した場合について述べた。他の内容としては、
トラックのヒット率(アクセス対象のレコードがキャッ
シュメモリ36上に存在する割合)がある。この際、ヒ
ット率が一定値以下になった時、このトラックをキャッ
シュメモリ36へのローディング対象としないという制
御が考えられるが、ローディングしないと決定した後、
アクセス特性が変ってローディング対象とした方がよく
なるような場合がある。しかし、キャッシュメモリ36
へのローディング対象となっている場合には、ヒット率
は計測できるが、ローディング対象としない場合には、
ヒット率を計測することは困難である。このため、何ら
かの情報により、ヒット率の近似値を把握する。図34
に、この場合のアクセス特性情報部46cのデータ構
造、図35に処理フローを示す。図34は、図20に対
応した構造である(図31対応した図は省略する)。以
下、シーケンシャル・アクセス以外のレコードについて
述べる。トラック・ミス発生時刻171は、図32のよ
うにトラック・ミス発生時刻171と同様で、トラック
・ミスが発生したが、キャッシュメモリ36上にこのト
ラックをローディングしないと決めた時刻を記録してお
く。ミス関数192、ヒット関数191の使用法は、図
35の処理フローの説明の中で述べる。ただし、図35
の処理フローにおいて、トラックは、キャッシュメモリ
36に対し、ローディングを行わないと決めているた
め、すべての入出力要求はトラック・ミスとなる。ステ
ップ144では、このトラックがアクセス対象となった
時、このトラック・ミス発生時刻171とLRUポイン
タ43で示されたキャッシュ管理ブロック40bのアク
セス時間44を比較する。トラック・ミス発生時刻17
1の方が古い時刻であれば、前回のトラック・ミス時に
ローディングを行ったとしても、ミスになったとして、
ステップ145において、図34のミス関数191を1
増やす。そうでなければ、ステップ146において、ヒ
ット関数192を増やし、トラック・ミス発生時刻18
1を更新しておく。ヒット関数192とミス関数191
の合計値がある値以上になり、この2つの値からヒット
率{ヒット関数1921(ヒット関数191+ミス関数
191)}が一定値以上になると再びキャッシュ21へ
のローディング対象とすることが可能となる。
In the above embodiment, a case has been described in which the upper computer system grasps the area actually accessed by the host computer system as the grasp of the access characteristics for accesses other than sequential and access. As other content,
There is a track hit rate (the rate at which records to be accessed exist in the cache memory 36). At this time, when the hit ratio becomes equal to or less than a certain value, a control may be considered in which this track is not set as a target to be loaded into the cache memory 36.
There are cases where the access characteristics change and it becomes better to load. However, the cache memory 36
The hit rate can be measured if it is targeted for loading, but if it is not targeted for loading,
It is difficult to measure the hit rate. For this reason, the approximate value of the hit ratio is grasped from some information. FIG.
FIG. 35 shows the data structure of the access characteristic information section 46c in this case, and FIG. 35 shows the processing flow. FIG. 34 shows a structure corresponding to FIG. 20 (a figure corresponding to FIG. 31 is omitted). Hereinafter, records other than the sequential access will be described. The track miss occurrence time 171 is the same as the track miss occurrence time 171 as shown in FIG. 32, but a track miss has occurred, but the time at which this track is determined not to be loaded on the cache memory 36 is recorded. . How to use the miss function 192 and the hit function 191 will be described in the description of the processing flow in FIG. However, FIG.
In the processing flow of (1), the track determines that loading is not performed on the cache memory 36, so that all input / output requests result in a track miss. In step 144, when this track is to be accessed, the track miss occurrence time 171 is compared with the access time 44 of the cache management block 40b indicated by the LRU pointer 43. Track miss occurrence time 17
If 1 is an older time, even if loading was performed at the time of the last track mistake,
In step 145, the miss function 191 of FIG.
increase. Otherwise, in step 146, the hit function 192 is increased and the track miss occurrence time 18
1 is updated. Hit function 192 and Miss function 191
Becomes larger than a certain value, and when the hit ratio {hit function 1921 (hit function 191 + miss function 191)} becomes a certain value or more from these two values, it becomes possible to load the data into the cache 21 again. .

【0168】[0168]

【発明の効果】以上述べた如く、本発明によれば、上位
システムからの入出力要求のアクセス対象トラック内の
レコードの、キャッシュ内における存在状態に基づい
て、キャッシュ内にロードするレコード群を決定するよ
うにしたので、トラックを構成しているレコードが可変
長の場合でも、トラック単位の管理方式をベースとして
ローディングオーバーヘッドを少なくすることが可能
な、データローディング方法を実現できるという顕著な
効果を奏することができる。
As described above, according to the present invention, a group of records to be loaded into the cache is determined based on the existence state in the cache of the record in the access target track of the input / output request from the host system. Therefore, even when the records constituting the track are of variable length, there is a remarkable effect that a data loading method can be realized in which the loading overhead can be reduced based on the track-based management method. be able to.

【0169】また、本発明によれば、ディスク・キャッ
シュへのローディング・オーバヘッドの軽減とヒット率
の向上がバランスよく実現できる。
Further, according to the present invention, the reduction of the loading overhead to the disk cache and the improvement of the hit ratio can be realized in a well-balanced manner.

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

【図1】本発明の一実施例であるキャッシュ制御方法の
一例の動作を説明する概念図。
FIG. 1 is a conceptual diagram illustrating the operation of an example of a cache control method according to an embodiment of the present invention.

【図2】キャッシュ制御方法が適用される情報処理シス
テムの一例の構成を示すブロック図。
FIG. 2 is a block diagram showing a configuration of an example of an information processing system to which a cache control method is applied.

【図3】本発明の一実施例であるキャッシュ制御方法に
おけるキャッシュ動作モードを説明する概念図。
FIG. 3 is a conceptual diagram illustrating a cache operation mode in a cache control method according to one embodiment of the present invention.

【図4】外部記憶装置の構成の一例を示す概念図。FIG. 4 is a conceptual diagram showing an example of a configuration of an external storage device.

【図5】本発明の一実施例であるキャッシュ制御方法の
動作を示すフローチャート。
FIG. 5 is a flowchart showing the operation of a cache control method according to one embodiment of the present invention.

【図6】キャッシュメモリの構成例を示す図。FIG. 6 illustrates a configuration example of a cache memory.

【図7】キャッシュ管理テーブルの構成を示す図。FIG. 7 is a diagram showing a configuration of a cache management table.

【図8】キャッシュ管理ブロックの構成を示す図。FIG. 8 is a diagram showing a configuration of a cache management block.

【図9】本発明の一実施例におけるプロセッサの処理フ
ローチャート。
FIG. 9 is a processing flowchart of a processor in one embodiment of the present invention.

【図10】本発明の他の実施例におけるプロセッサの処
理フローチャート。
FIG. 10 is a processing flowchart of a processor according to another embodiment of the present invention.

【図11】本発明の他の実施例におけるプロセッサの処
理フローチャート。
FIG. 11 is a processing flowchart of a processor according to another embodiment of the present invention.

【図12】本発明の他の実施例におけるプロセッサの処
理フローチャート。
FIG. 12 is a processing flowchart of a processor according to another embodiment of the present invention.

【図13】本発明の実施例におけるデータの格納形式を
示す図。
FIG. 13 is a diagram showing a data storage format according to the embodiment of the present invention.

【図14】本発明の実施例におけるデータの格納形式を
示す図。
FIG. 14 is a diagram showing a data storage format in the embodiment of the present invention.

【図15】本発明の実施例におけるデータの格納形式を
示す図。
FIG. 15 is a diagram showing a data storage format according to the embodiment of the present invention.

【図16】キャッシュ管理ブロックの他の実施例を示す
図。
FIG. 16 is a diagram showing another embodiment of the cache management block.

【図17】本発明の実施例におけるデータの格納形式を
示す図。
FIG. 17 is a diagram showing a data storage format in the embodiment of the present invention.

【図18】本発明の主な機能を実行するプログラム構成
例を示す図。
FIG. 18 is a diagram showing a configuration example of a program for executing main functions of the present invention.

【図19】キャッシュ管理テーブルの構成を示す図。FIG. 19 is a diagram showing a configuration of a cache management table.

【図20】アクセス特性情報の構成を示す図。FIG. 20 is a diagram showing a configuration of access characteristic information.

【図21】トラックの中でCPUがアクセスした部分を
認識する方法の一例を示す図。
FIG. 21 is a diagram showing an example of a method of recognizing a part accessed by a CPU in a track.

【図22】トラックの中でCPUがアクセスした部分を
認識する方法の他の例を示す図。
FIG. 22 is a diagram showing another example of a method of recognizing a portion accessed by a CPU in a track.

【図23】トラックの先頭のレコードがアクセスされた
時の処理フロー図。
FIG. 23 is a processing flow diagram when a head record of a track is accessed.

【図24】受け付けた入出力要求がアクセス対象とする
トラックのシーケンシャル・チェック中フラグがオンの
場合実行される処理フロー図。
FIG. 24 is a processing flowchart executed when the sequential check flag of the track to be accessed by the received input / output request is on.

【図25】入出力要求に対する処理が完了した時、当該
トラックのシーケンシャル・チェック中フラグがオンの
場合実行される処理フロー図。
FIG. 25 is a processing flowchart executed when the sequential check flag of the track is ON when the processing for the input / output request is completed.

【図26】入出力要求を受け付けた時、当該トラックの
シーケンシャル認識フラグがオンの時に実行される処理
フロー図。
FIG. 26 is a processing flowchart executed when an input / output request is received and a sequential recognition flag of the track is turned on.

【図27】トラック・ミス時、複数トラック・ローディ
ング以外のローディングを実行した後実行する処理フロ
ー図。
FIG. 27 is a processing flowchart executed after a loading other than the multiple track loading is executed at the time of a track miss.

【図28】アクセス部チェック中フラグがオン時に、当
該トラックに対して入出力要求を受け取った時に実行さ
れる処理フロー図。
FIG. 28 is a processing flowchart executed when an input / output request is received for the track when the access unit checking flag is on.

【図29】キャッシュメモリから当該トラックを追い出
す時、アクセス部チェック中フラグがオンの時、実行さ
れる処理フロー図。
FIG. 29 is a processing flowchart executed when the track is evicted from the cache memory and the access unit checking flag is on.

【図30】ローディング選択部の処理フロー図。FIG. 30 is a processing flowchart of a loading selection unit.

【図31】シーケンシャル・アクセスの認識をリード用
とライト用に独立に行った場合のアクセス特性情報の構
成図。
FIG. 31 is a configuration diagram of access characteristic information when recognition of sequential access is performed independently for read and for write.

【図32】ローディングなしのパターンを用意した時の
アクセス特性情報の構成図。
FIG. 32 is a configuration diagram of access characteristic information when a pattern without loading is prepared.

【図33】シーケンシャル・アクセスの認識をリード用
とライト用に独立に行い、かつ、ローディングなしのパ
ターンを用意した時のアクセス特性情報の構成図。
FIG. 33 is a configuration diagram of access characteristic information when sequential access recognition is performed independently for reading and writing, and a pattern without loading is prepared.

【図34】ヒット率の近似値を把握する場合のアクセス
特性情報の構成図。
FIG. 34 is a configuration diagram of access characteristic information when an approximate value of a hit ratio is grasped.

【図35】ヒット率の近似値を把握する時の処理フロー
図。
FIG. 35 is a processing flowchart when an approximate value of the hit ratio is grasped.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 坪井 俊明 東京都小平市上水本町5丁目22番1号 株 式会社日立超エル・エス・アイ・システム ズ (72)発明者 本間 繁雄 神奈川県小田原市国府津2880番地 株式会 社日立製作所小田原工場内 (72)発明者 中村 勝憲 神奈川県小田原市国府津2880番地 株式会 社日立製作所小田原工場内 (72)発明者 神林 公咲 神奈川県小田原市国府津2880番地 株式会 社日立製作所小田原工場内 (72)発明者 北嶋 弘行 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 (72)発明者 倉野 昭 神奈川県小田原市国府津2880番地 株式会 社日立製作所小田原工場内 (72)発明者 野沢 正史 神奈川県小田原市国府津2880番地 株式会 社日立製作所小田原工場内 Fターム(参考) 5B005 JJ13 MM11 NN12 NN22 5B065 CE14  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Toshiaki Tsuboi 5-22-1, Josuihonmachi, Kodaira-shi, Tokyo Hitachi, Ltd. Hitachi SRL Systems Co., Ltd. (72) Inventor Shigeo Honma Odawara, Kanagawa Prefecture 2880 Kozu, Kochi, Hitachi, Ltd.Odawara Plant, Hitachi, Ltd. (72) Inventor Katsunori Nakamura 2880 Kozu, Kozuhara, Kanagawa, Japan Inside Odawara Plant of Hitachi, Ltd. Hitachi, Ltd. Odawara Plant (72) Inventor Hiroyuki Kitajima 1099, Ozenji, Aso-ku, Kawasaki, Kanagawa Prefecture, Ltd.Hitachi, Ltd.System Development Laboratory Co., Ltd. (72) Inventor Akira Kurano 2880, Kofu, Hitachi, Ltd. (72) Inventor Masafumi Nozawa Odawara City, Kanagawa Prefecture Hutu 2880 address stock company Hitachi Odawara plant in the F-term (reference) 5B005 JJ13 MM11 NN12 NN22 5B065 CE14

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】処理装置と記憶装置とに接続され、キャッ
シュメモリを有する制御装置におけるデータローディン
グ方法であって、 前記処理装置の要求に基づいて前記記憶装置が有する記
憶領域から第1のレコードが読み出される際に、前記第
1のレコードを前記キャッシュメモリに転送し、 前記第1のレコードが前記キャッシュメモリに存在して
いる間に前記処理装置の要求に基づいて前記記憶領域に
格納されている第2のレコードが読み出される場合に、
前記記憶領域に格納されているレコードであって、前記
第1のレコード及び前記第2のレコード以外のレコード
を前記第2のレコードと共に前記キャッシュメモリに転
送することを特徴とするデータローディング方法。
1. A data loading method in a control device connected to a processing device and a storage device and having a cache memory, wherein a first record is stored in a storage area of the storage device based on a request from the processing device. When being read, the first record is transferred to the cache memory, and the first record is stored in the storage area based on a request from the processing device while the first record is present in the cache memory. When the second record is read,
A data loading method, wherein records other than the first record and the second record stored in the storage area are transferred to the cache memory together with the second record.
【請求項2】前記記憶領域に格納されるレコードには各
々番号が振られ、前記第1のレコードに振られた番号
は、前記第2のレコードに振られた番号よりも小さいこ
とを特徴とする請求項1記載のデータローディング方
法。
2. The record stored in the storage area is assigned a number, and the number assigned to the first record is smaller than the number assigned to the second record. 2. The data loading method according to claim 1, wherein:
【請求項3】前記第2のレコードと共に前記キャッシュ
メモリに転送されるレコードは、前記第1のレコードに
振られた番号よりも大きい番号が振られているレコード
であることを特徴とする請求項2記載のデータローディ
ング方法。
3. The record transferred to the cache memory together with the second record is a record assigned a number larger than the number assigned to the first record. 2. The data loading method according to 2.
【請求項4】前記第2のレコードと共に前記キャッシュ
メモリに転送されるレコードには、前記第2のレコード
を除き、前記第1のレコードに振られた番号の次の番号
が振られているレコードから前記記憶領域内で最大の番
号が振られているレコードまでが含まれることを特徴と
する請求項2記載のデータローディング方法。
4. A record transferred to the cache memory together with the second record, except for the second record, a record assigned a number next to the number assigned to the first record. 3. The data loading method according to claim 2, wherein data from the storage area to the record with the largest number in the storage area are included.
【請求項5】前記記憶領域に格納されるレコードには各
々番号が振られ、前記第1のレコードに振られた番号
は、前記第2のレコードに振られた番号よりも大きいこ
とを特徴とする請求項1記載のデータローディング方
法。
5. The record stored in the storage area is assigned a number, and the number assigned to the first record is larger than the number assigned to the second record. 2. The data loading method according to claim 1, wherein:
【請求項6】前記第2のレコードと共に前記キャッシュ
メモリに転送されるレコードは、前記第1のレコードに
振られた番号よりも小さい番号が振られているレコード
であることを特徴とする請求項5記載のデータローディ
ング方法。
6. The record transferred to the cache memory together with the second record is a record assigned a number smaller than the number assigned to the first record. 5. The data loading method according to 5.
【請求項7】前記第2のレコードと共に前記キャッシュ
メモリに転送されるレコードには、前記第2のレコード
を除き、前記記憶領域内で最小の番号が振られているレ
コードから前記第1のレコードに振られた番号の直前の
番号が振られているレコードまでが含まれることを特徴
とする請求項5記載のデータローディング方法。
7. A record transferred to the cache memory together with the second record, except for the second record, from a record having the smallest number in the storage area to the first record. 6. The data loading method according to claim 5, further including a record up to a record assigned a number immediately before the number assigned to the data.
【請求項8】前記記憶領域は1トラックであることを特
徴とする請求項1から請求項7のうちいずれか1つに記
載されたデータローディング方法。
8. The data loading method according to claim 1, wherein the storage area is one track.
【請求項9】処理装置と記憶装置とに接続され、キャッ
シュメモリを有する制御装置におけるデータローディン
グ方法であって、前記処理装置からのアクセスの対象デ
ータが、前記キャッシュメモリに格納されていない場
合、前記記憶装置から前記対象データをロードし、前記
ロードした対象データを前記処理装置に出力し、前記ロ
ードした対象データを前記キャッシュメモリに格納し、
前記対象データを格納した前記キャッシュメモリの管理
単位内に格納されるべき、前記対象データを除くデータ
を前記記憶装置からロードし、前記ロードした、前記対
象データを除くデータを前記キャッシュメモリに格納す
ることを特徴とするデータローディング方法。
9. A data loading method in a control device connected to a processing device and a storage device and having a cache memory, wherein data to be accessed from the processing device is not stored in the cache memory. Loading the target data from the storage device, outputting the loaded target data to the processing device, storing the loaded target data in the cache memory,
Loading the data excluding the target data to be stored in the management unit of the cache memory storing the target data from the storage device, and storing the loaded data excluding the target data in the cache memory. A data loading method, comprising:
JP2001325763A 1988-09-30 2001-10-24 Data loading method and apparatus Expired - Lifetime JP3468762B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001325763A JP3468762B2 (en) 1988-09-30 2001-10-24 Data loading method and apparatus

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP63-244128 1988-09-30
JP24412888 1988-09-30
JP63-284992 1988-11-11
JP28499288 1988-11-11
JP2001325763A JP3468762B2 (en) 1988-09-30 2001-10-24 Data loading method and apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP25194589A Division JP3370661B2 (en) 1988-09-30 1989-09-29 Data loading method and apparatus

Publications (2)

Publication Number Publication Date
JP2002196980A true JP2002196980A (en) 2002-07-12
JP3468762B2 JP3468762B2 (en) 2003-11-17

Family

ID=27333206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001325763A Expired - Lifetime JP3468762B2 (en) 1988-09-30 2001-10-24 Data loading method and apparatus

Country Status (1)

Country Link
JP (1) JP3468762B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8601282B2 (en) 2006-12-04 2013-12-03 Eugrid Inc. Program and device for using second uncorrupted MBR data stored in an external storage
JP2015210718A (en) * 2014-04-28 2015-11-24 富士通株式会社 Storage control device, storage system, and storage control program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8601282B2 (en) 2006-12-04 2013-12-03 Eugrid Inc. Program and device for using second uncorrupted MBR data stored in an external storage
JP2015210718A (en) * 2014-04-28 2015-11-24 富士通株式会社 Storage control device, storage system, and storage control program

Also Published As

Publication number Publication date
JP3468762B2 (en) 2003-11-17

Similar Documents

Publication Publication Date Title
US5253351A (en) Memory controller with a cache memory and control method of cache memory including steps of determining memory access threshold values
EP0080876B1 (en) Cache control method and apparatus
US4489378A (en) Automatic adjustment of the quantity of prefetch data in a disk cache operation
US6381677B1 (en) Method and system for staging data into cache
US4490782A (en) I/O Storage controller cache system with prefetch determined by requested record's position within data block
EP0848321B1 (en) Method of data migration
US20020059476A1 (en) System and method of implementing a buffer memory and hard disk drive write controller
EP0073330A2 (en) Hierarchical storage systems adapted for error handling
JPH06180671A (en) Disk cache controller
JPH1063578A (en) Information recording and reproducing device
JPH05307440A (en) Data storage format conversion system and its conversion method, access controller and data access method
JPH037978B2 (en)
JPH023215B2 (en)
JPH06348597A (en) Cache control method and rotary type storage device
US5694570A (en) Method and system of buffering data written to direct access storage devices in data processing systems
EP0066766B1 (en) I/o controller with a dynamically adjustable cache memory
US5426761A (en) Cache DASD sequential staging and method
US6219750B1 (en) Disk drive having control mechanism to reduce or eliminate redundant write operations and the method thereof
JPH06337816A (en) Cache system for external storage device whose storage medium can be exchanged
JP3468762B2 (en) Data loading method and apparatus
JP3370661B2 (en) Data loading method and apparatus
US6209057B1 (en) Storage device having data buffer
JP3214452B2 (en) Magnetic disk controller
JP3083530B2 (en) Cache memory data management method and cache control device
JPH0677245B2 (en) Cache control method and information processing system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030812

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

Free format text: PAYMENT UNTIL: 20080905

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080905

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090905

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090905

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100905

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100905

Year of fee payment: 7