JPS5933689A - Data transfer system - Google Patents

Data transfer system

Info

Publication number
JPS5933689A
JPS5933689A JP57143220A JP14322082A JPS5933689A JP S5933689 A JPS5933689 A JP S5933689A JP 57143220 A JP57143220 A JP 57143220A JP 14322082 A JP14322082 A JP 14322082A JP S5933689 A JPS5933689 A JP S5933689A
Authority
JP
Japan
Prior art keywords
data
auxiliary
cache
storage device
main
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP57143220A
Other languages
Japanese (ja)
Inventor
Akira Yamamoto
彰 山本
Toru Nishigaki
西垣 通
Akira Kurano
倉野 昭
Kenichi Kageura
影浦 憲一
Takashi Sumiyoshi
住吉 孝史
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP57143220A priority Critical patent/JPS5933689A/en
Publication of JPS5933689A publication Critical patent/JPS5933689A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To reduce the input/output overhead for transfer of data, by referring to a storage region where the presence or absence is stored for alteration of data of a main storage device to control the transfer of information from the main storage device to an auxiliary storage device. CONSTITUTION:In the contents of an auxiliary storage cache 14 includes the contents of a main storage device 11, a CPU10 refers to a main storage data alteration information storing device 12. Then only an address is transferred via an auxiliary storage control circuit 13 if the data of the device 11 has no alteration. While both the address and data are transferred via the CPU10 to the cache 14 like a case where the cache 14 includes no data of the CPU10 if the data has an alteration. The data is written to an auxiliary storage device 17 from the chache 14 in the same way by referring to an information storage device 16 which stores the presence or absence of data of the CPU10. The input/output overhead is reduced for transfer of data, and the processing speed is increased with above-mentioned minimum necessary information transfer system.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は主記憶装置及び補助記憶装置6のほかに補助記
憶装置用キャッシュを有する計算機システムにおいて、
少ない入出力オーバーヘッドで上記キャッシュに参照頻
度の高いデータを保持するためのデータ転送方式に関す
る。
Detailed Description of the Invention [Field of Application of the Invention] The present invention relates to a computer system having an auxiliary storage cache in addition to a main storage device and an auxiliary storage device 6.
The present invention relates to a data transfer method for retaining frequently referenced data in the cache with little input/output overhead.

〔従来技術〕[Prior art]

従来のご1豹機システムのメモリ階層は、主記憶用キャ
ッシュ、主記憶装置、補助記憶装置より構成きれ、これ
らの管理はすべて中央処理装置(CPU)で管理されて
いた。このため参照頻度の小さくなったデータを主記憶
装置から、補助記憶装置に移す時には、主記憶装置kに
保持されている間に更新がなければ、入出力処理を軽減
するために、そのデータ自体は出力処理の対象とはせず
、そのデータの格納されている主6ピ憶装置のブロック
を空きブロックとするだけの処理が行われていた。すな
わち、補助記憶装置にはもともと主記憶装置の格納デー
タと同一のものが格納されているのであるから移したい
データを主記憶装置M′4から読み出し、これを補助記
憶装置に書き込んでも、そのデータの格納きれている主
記憶装置のブロックを空きブロックとする処理のみを行
っても結果的には同じとなるからである。
The memory hierarchy of the conventional Leopard machine system consists of a main memory cache, a main memory device, and an auxiliary memory device, all of which are managed by a central processing unit (CPU). Therefore, when moving data that has become less frequently referenced from the main memory to the auxiliary memory, if there is no update while it is being held in the main memory, the data itself must be moved to reduce input/output processing. is not subjected to output processing, and only the block in the main 6-pin storage device in which the data is stored is made free. In other words, since the auxiliary storage device originally stores the same data as the main storage device, even if you read the data you want to transfer from the main storage device M'4 and write it to the auxiliary storage device, the data will not be transferred. This is because the result will be the same even if only the process of making the blocks of the main storage device which have been completely stored empty blocks is performed.

しかし、最近、メモリ階層の中に、補助記憶装置用キャ
ッシュが加わシ、この管理を補助記t@1t制御装置が
行う方式が一般的になりつつある。この場合には主記憶
装置f−5から補助記憶装置6用キャッシュに追い出さ
れるデータは、通常、主記憶装置に置かれているデータ
の次に参照類IWの商いデータである。しかるに従来の
ように、+、記憶装置に保持されている間に変更がなか
った14合に、そのデータケ上記キャツ/ユに転送しな
いと、補助記1慧装置用ギャツシュに参照頻度の高いデ
ータを保持することができなくなることがある。一方、
上記1慧装置べから追い出されるべきデータが生ずる毎
に、そのデータをすべて補助記憶装置用キャッシュに転
送したのでは転送するデータ量が増えオーバ・ヘッドが
大きくなるという問題が生ずる。
However, recently, a cache for an auxiliary storage device has been added to the memory hierarchy, and a system in which an auxiliary storage device cache is managed by an auxiliary memory t@lt control device is becoming common. In this case, the data evicted from the main storage device f-5 to the cache for the auxiliary storage device 6 is normally the quotient data of the reference type IW next to the data stored in the main storage device. However, as in the past, if the data is not transferred to the above-mentioned cat/yu in the 14th time when it has not been changed while it is stored in the storage device, data that is frequently referenced will be stored in the Gatsch for the device. It may become impossible to hold it. on the other hand,
If all of the data were transferred to the auxiliary storage cache every time data to be evicted from the storage device is generated, the problem would arise that the amount of data to be transferred would increase and the overhead would increase.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、従来のメモリ階層に補助記憶装置用キ
ャッシュが加わった計算機システムにおいて、少ない人
出力オーバ・ヘッドで、参照頻度の高いデータを補助記
憶装置用キャッシュに保持することにより、入出力処理
の高速化をはかることにある。
An object of the present invention is to maintain frequently referenced data in the auxiliary storage cache with little human output overhead in a computer system in which an auxiliary storage cache is added to the conventional memory hierarchy. The purpose is to speed up processing.

〔発明の概要〕[Summary of the invention]

従来のメモリ階層に補助記憶装置用キャッシュが加わっ
だ計算機システムにおいては、補助記憶装置用キャッシ
ュに参照頻度の高いデータを置き、かつ、人出力オーバ
・ヘッドを41戊くする必要がある。
In a computer system in which an auxiliary storage cache is added to the conventional memory hierarchy, it is necessary to place frequently referenced data in the auxiliary storage cache and to reduce human output overhead by 41 times.

補助記憶装置用キャッシュを有する記憶方式には、上記
キャッシュが主配憶装置の格納情報と同じものを全て含
む方式と含まない方式がある。上記fM装置の内容を含
む場合には、主記憶中で変更されなかったデータを出力
する必要はないが、そのデータブロックを空きにするた
けたと、補助記憶制御装置はそのデータがまた主記憶に
存在するものとして取り扱うだめ、ずっと補助記憶装置
用キャッシュに置かれた捷1になる。すなわち、補助記
憶制御装置は、上記データが依然として参照頻度の高い
ものとして扱うため、実際にはそれが低くなっても補助
記憶装置に上記データを追い出す機会を失い、キャッシ
ュに置かれた捷まになる。
Storage systems having an auxiliary storage cache include those in which the cache contains all of the same information as the main storage, and those in which it does not. If the contents of the fM device described above are included, there is no need to output the data that has not been changed in main memory, but if the data block is freed up, the auxiliary storage control device will automatically transfer the data back to main memory. If you do not treat it as existing, it will remain in the auxiliary storage cache forever. In other words, the auxiliary storage control device treats the above data as still being referenced frequently, so even if the reference frequency actually becomes low, the auxiliary storage control device loses the opportunity to flush out the above data to the auxiliary storage device, and the data stored in the cache is Become.

従って、この場合には、上記林?装(べ内のチータブロ
ックを空きにするだけでなく、そのデータが主記憶装置
に存在しないこと全補助舵・1.は1lill旬11装
置に知らせる必要がある。本発明では、この場合には、
出力の対象となるデータのアドレスとそのデータが史Y
j[されなかったことを示す器側]怪報のみを補助舵1
意用キャッシュに送ることにより、出力データ量を減ら
している。
Therefore, in this case, Lin? In addition to emptying the cheetah block in the vehicle, it is also necessary to notify the auxiliary rudder that the data does not exist in the main memory.In this invention, in this case, ,
The address of the data to be output and that data are history Y
j [Indicator side indicating that it was not done] Auxiliary rudder 1 only for misfortune
The amount of output data is reduced by sending it to the prepared cache.

一方、補助記憶装置用キャッシュが、主記憶装置の内容
を含まない時には、主記憶中で変更がなかったデータも
出力の対象としなけれはならない。
On the other hand, when the auxiliary storage cache does not include the contents of the main storage, data that has not been changed in the main storage must also be output.

ただ、単に出力したのでは、さらにそのデータの参照頻
度が下がって補助記憶装置に出力する時に次のような問
題がある。ス[41常、補助記憶装置はすべてのデータ
を含むため、主cIt中でデータの変更がなければ、補
助記憶装置に出力する必要がなく、変更があったときの
み補助記憶装置の内容を変更すればよい。しかし上記の
ように単に主記憶装置のデータを上記キャッシュに送出
したのでは、その変更があったかどうかの識別ができな
い。従って、本発明では主nL2憶装置から、補助記憶
用キャッシュにデータを出力する時、そのデータが主W
12憶装置に真き込まれた時点のものと変更があったか
どうかを下す情報を付けた出力処理を行うようにしてい
る。これにより、補助記憶装置にデータを−p4き出す
際、町き出す必要があるか否かを、補助記憶制御装置が
判断できる。
However, if the data is simply output, the reference frequency of the data will further decrease, and the following problem will occur when outputting to the auxiliary storage device. [41 Since the auxiliary storage device always contains all the data, if there is no data change in the main cIt, there is no need to output it to the auxiliary storage device, and the contents of the auxiliary storage device are changed only when there is a change. do it. However, if the data in the main storage device is simply sent to the cache as described above, it is not possible to identify whether or not the data has been changed. Therefore, in the present invention, when data is output from the main nL2 storage device to the auxiliary storage cache, the data is
Output processing is performed with information indicating whether there have been any changes to the information at the time it was written into the 12 storage device. This allows the auxiliary storage control device to determine whether or not it is necessary to leave the city when exporting data to the auxiliary storage device.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を実施例により説明する。 The present invention will be explained below using examples.

第l[メ1は、本発明の全体構成を下すもので、中央処
理装置10、上記憶装@11、主記憶データ変更情報格
納装vi12、補助記憶装置l装置13、補助記憶用キ
ャッシュ14、補助記憶キャッシュデータ変可情報格納
装置15、上記1、(f在中付1報格納装置16、補助
舵1.シ装置17よシ成る。本発明では、主記憶装置1
1、補助記憶用ギャツ/ユ14、補助舵tφ、装置17
がメモリ階層をff’i成する。メモリ階層では、通常
、上位にあるもの(この場合は主記憶装置が最も一ヒ位
になり、補助記憶装置が下位になる。)が、容量が小さ
く、アクセスフ*此は速い。従って、参照頻度の高いデ
ータはど上位の記憶装置に置かれる。1だ、各レベル間
で容置の差が充分ある場合には、下位のメモリの内容は
、上位のメモリの格納情報をそのまま含む方式が取られ
る。本発明では、補助舵・1話装置17は芥帽:が充分
太きいとしてすべてのデータを含むとする。
The 1st part shows the overall configuration of the present invention, and includes a central processing unit 10, an upper storage device @11, a main memory data change information storage device vi12, an auxiliary storage device 13, an auxiliary storage cache 14, The auxiliary memory cache data variable information storage device 15, the above-mentioned information storage device 16, and the auxiliary rudder 1.shi device 17.In the present invention, the main storage device 1
1, Auxiliary memory gear/yu 14, Auxiliary rudder tφ, Device 17
forms the memory hierarchy ff'i. In a memory hierarchy, the higher level (in this case, the main memory is at the highest level, and the auxiliary memory is at the lower level) usually has a smaller capacity and is faster to access. Therefore, data that is frequently referenced is placed in a higher-level storage device. 1. If there is a sufficient difference in capacity between each level, a method is adopted in which the contents of the lower memory contain the information stored in the upper memory as is. In the present invention, it is assumed that the auxiliary rudder/one-talk device 17 includes all data assuming that the cap is sufficiently thick.

補助記憶用キャッシュ14は主記憶装置11の内容を全
て含む方式と含−まない方式それぞれについて考える。
A system in which the auxiliary storage cache 14 includes all the contents of the main storage device 11 and a system in which it does not include the entire contents will be considered.

この場合、参照ノイ11川が高いとは、中央処理装置1
0の参照頻度が商いということを意味するわけであるが
、参照頻度の、坊いデータを選択する方式としては、例
えばLRU方式(Leastl(、ecently [
Jsed )が採られる。LRU方式とは、前回に中央
処理装置610から参照ぴれた時期がdI。
In this case, if the reference noise 11 is high, it means that the central processing unit 1
This means that the reference frequency of 0 is the quotient, but as a method for selecting data with low reference frequency, for example, the LRU method (Least (, every [
Jsed) is adopted. In the LRU method, the time when the last reference was received from the central processing unit 610 is dI.

ければ近いほど、次に参照芒れる確率が商いとするもの
である。本発明はL 11. U方式に限定きれるもの
では7jいが、ここでVJ: 喫、明の1史宜よ、11
.1(、U方式を用いた場合について述べる。丁、1?
、U方式に従って、参照(ifft率の商い順にデータ
を並べたスタックをL R[1スタツクと呼ぶ。L )
(、Uスタックで上位にある程、前回、中央処理装置1
0に参照でれた時期がM近である。本発明の対象とする
メモリ階層におけるL H,Uスタックと各7セリに置
かれるべきデータを第2図と第3図に7Jeす。画しj
において、Aは主パピ憶装置11に格納された内容、B
は補助舵tit j14キャッシュ14に格納てれた内
容、Cは補助舵1、い、装置17に格納された内容を7
1zす。
The closer it is, the more likely it will be the next reference point. The present invention is based on L11. Although it cannot be limited to the U method, here is VJ: 1st history of the Ming Dynasty, 11
.. 1 (, I will describe the case using the U method. Ding, 1?
, according to the U method, a stack in which data is arranged in order of reference (ifft rate quotient is called L R [1 stack. L )
(,The higher up the U stack is, the more central processing unit 1
The time when 0 was referenced is near M. The data to be placed in the LH and U stacks and each 7 cell in the memory hierarchy to which the present invention is applied are shown in FIGS. 2 and 3. Drawing j
In, A is the content stored in the main papi storage device 11, B
is the content stored in the auxiliary rudder tit j14 cache 14, C is the content stored in the auxiliary rudder 1, i is the content stored in the device 17,
1z.

第2図d2、補助記憶用キャッジ71!/1.4が上記
1−は装置11の内容を含んだ場合であり、第3図が舎
外ないJ’JA合である。捷だ、それぞれの図に、主m
l憶から補助記憶用キャッシュにデータを移す処理をA
→I3で示し、補助N[:憶用キャッシュからイ111
ル、11(ピ1、核装置17にデータを移す処理をB→
Cでri14 l、だ。
Figure 2 d2, auxiliary memory cage 71! /1.4 is the case where the above 1- includes the contents of the device 11, and FIG. 3 is the case where J'JA is not outside the building. In each figure, the Lord m
The process of moving data from primary memory to auxiliary memory cache is A.
→ Indicated by I3, auxiliary N[: I111 from memory cache
11 (Pi 1, process to transfer data to nuclear device 17 B→
It's ri14 l in C.

この図から明らかなように、主記憶装置11から追い出
されたデータは、(師在主晋山意装置11にあるデータ
の次に参照塀1度の高いデータであるだめ、必らず、補
助記憶用キャッシュ14に保持しなければならない。
As is clear from this figure, the data evicted from the main storage device 11 must be stored in the auxiliary storage device 11 because it is the data with the next highest reference level after the data in the master storage device 11. It must be held in the storage cache 14.

主記憶データ変更情報格納装置12には、主記憶装置1
1にあるデータに変更があったかどうかを示す情報が格
納される。例えば、変更があれば1でなければOである
。神助記↑1株キャッシュデータ変更情報格納装首15
には、重任、神助記憶キャッシュ14にあるデータが主
記憶にある間に、変更されたかどうかを示す情報が格納
される。主記憶在中情報格納装置16は1.+B在、補
助記憶用キャッシュ14にあるデータが、主FIL”f
Nに存在しているかどうかを示す惰゛報を格納する。従
って、補助記憶キャッシュ14の内容が主記憶装置11
の内容を含まない方式の場合には、この装置16は必要
ない。
The main memory data change information storage device 12 includes the main memory 1
Information indicating whether the data in 1 has been changed is stored. For example, if there is a change, it will be O if it is not 1. Kamisukeki ↑ 1 share cache data change information storage head 15
Stores information indicating whether or not the data in the Kamisuke storage cache 14 has been modified while it is in the main memory. The main memory existing information storage device 16 is 1. +B exists, and the data in the auxiliary storage cache 14 is stored in the main FIL”f
Stores information indicating whether it exists in N. Therefore, the contents of the auxiliary memory cache 14 are stored in the main memory 11.
In the case of a method that does not include the contents of , this device 16 is not necessary.

中央処理装置10は、中央処理装置が参照する頻度がル
゛も尚いデータの集合を主4己憶装置11に置くように
管理を行う。すなわち、イ111助記憶i1制御装置1
3に対して必要なデータの入力要求を行い、要らなくな
ったデータを出力する管理を行う。補助記憶制御装置1
3は、主記憶装置11に置かれでいるデータの次に中央
処理装置10の参照頻度が高いデータの集合を、補助記
憶用キャッシュ14に置くように管理する。そして、中
央処理装置10の要求に1rtい入出力処理を行う。
The central processing unit 10 performs management so that a set of data that is referenced by the central processing unit less frequently is stored in the main storage device 11. That is, i111 auxiliary storage i1 control device 1
3 to input necessary data, and manage to output data that is no longer needed. Auxiliary storage control device 1
3 manages a set of data that is most frequently referenced by the central processing unit 10 next to the data stored in the main storage device 11 so as to be stored in the auxiliary storage cache 14. Then, the first input/output processing is performed in response to a request from the central processing unit 10.

次に、本発明の動作を第4図(5)及びal)を参照し
て説明する。
Next, the operation of the present invention will be explained with reference to FIG. 4 (5) and al).

第41ネ1(A)の(a)はそ11助記憶由キヤツシユ
14が上記1′を装置11の格納情報を全て含む場合に
おける中央処理装+110の処理フローを示し、同図の
(1))は補助記憶器(f’l装置13の処理フローを
示す。また第4図(I3)の(a)は補助記憶用キャッ
シュ14が主記憶装置11の内容を含まない高台におり
る中火処理装置10の処理フローを示し、同図の(h)
は補助記憶制御装置13の処理フローを71<す。捷す
、補助記憶用キャッシュ14の内容が、生能1ff、装
置6゜11の内容を含む場合の出力処理について述べる
(a) of the 41st page 1(A) shows the processing flow of the central processing unit + 110 when the cache 14 from the auxiliary storage 11 includes all of the information stored in the device 11, and (1) of the same figure ) shows the processing flow of the auxiliary storage device (f'l device 13). FIG. The processing flow of the processing device 10 is shown in (h) of the figure.
71 shows the processing flow of the auxiliary storage control device 13. The output processing when the contents of the auxiliary storage cache 14 to be deleted include the contents of the device 6°11 with a capacity of 1ff will be described.

ステップ41で示したように、中央処理装置】0は、参
照頻度の低くなったデータの出力処理に当って、主記憶
データ変更情報格納装置15の内容に従って出力処理を
決定する。この格納装j61の情報は、実際に中央処理
装置がそのデータを変更した時に、同時に更新する。主
記憶中で変更のあったデータは、ステップ42で示した
ように、通常の出力処理を何う。一方、変更のなかった
データに関しては、ステップ43で不しだように、アド
レスだけを知らせる出力処理を行う。補助記憶制御装置
13は、通常の出力処理に対して次のように対処する。
As shown in step 41, the central processing unit 0 determines the output process according to the contents of the main memory data change information storage device 15 when outputting data whose reference frequency has become low. The information in this storage device j61 is updated at the same time when the central processing unit actually changes the data. Data that has been changed in main memory undergoes normal output processing, as shown in step 42. On the other hand, for data that has not been changed, output processing is performed to notify only the address, as in step 43. The auxiliary storage control device 13 handles normal output processing as follows.

中央処理装置10からデータとアドレスを受は取った時
、この場合、このデータは主記憶で変更されたのである
から、ステップ44で示したように、補助記憶キャッシ
ュデータ変更情報格納装置15の内容を更新し、主記憶
中で変更があったことを記憶し、それまで補助記憶用」
キャッシュ14に格納されていたデータの内容も史YJ
1する。そして、ステップ45で示したように、主記憶
装置在中情報格納装置16の内容を変更して、そのデー
タがもう主記憶にないということを記憶する。一方、ア
ドレスだけを受は取った場合には、データの変更がなか
ったのであるから、主記憶装置在中情報格納装置16を
更新して、そのデータがも9主記憶にないことを記憶す
るたけでよい。
When the data and address are received from the central processing unit 10, in this case, since this data has been changed in the main memory, the contents of the auxiliary memory cache data change information storage device 15 are changed as shown in step 44. , and remembers that there was a change in main memory, and then stores it in auxiliary memory until then.
The contents of the data stored in cache 14 are also historical.
Do 1. Then, as shown in step 45, the contents of the main memory existing information storage device 16 are changed to store that the data is no longer in the main memory. On the other hand, if only the address is received, the data has not changed, so the main memory current information storage device 16 is updated to remember that the data is not in the main memory. Take is fine.

補助記憶キャッシュ14の内容が、主記憶装置11の内
容を含まない場合について述べる。この場合は、キャツ
ノユ14内に出力の対象となるデータが存在しないので
、主記憶中で変更あるなしにかかわらず出力しなければ
ならない。中央処」里装)itloは、主記憶データ変
更情報格納装置12に従って、ステップ46.47に示
したように、出力データに変更の有無を示す1b制御情
報を付加して、出力を行う。補助配憶装置13は、ステ
ップ48で示しだように、受は取ったデータを補助記憶
用キャッシュ14の空き領域に格納する。きらに、ステ
ップ49で示しだように、主記憶中で変更があったかど
つかを制御情報に基づき、補助記憶ギヤッシュデータ変
更情報格納装置15に記憶する。
A case will be described in which the contents of the auxiliary storage cache 14 do not include the contents of the main storage device 11. In this case, since there is no data to be output in the katsunoyu 14, the data must be output regardless of whether or not it has been changed in the main memory. In accordance with the main memory data change information storage device 12, the central processing unit ``itlo'' adds 1b control information indicating whether or not there is a change to the output data and outputs the data, as shown in steps 46 and 47. The auxiliary storage device 13 stores the received data in the free area of the auxiliary storage cache 14, as shown in step 48. Then, as shown in step 49, whether or not there has been a change in the main memory is stored in the auxiliary storage geared data change information storage device 15 based on the control information.

補助記憶用キャッシュ14から、補助記憶装置17への
出力処理は、補助記憶用キャッシュ14の空き領域が一
定値以下になった時へで、補助記憶制御装置13が、キ
ャッシュ14内で参照頻度の低いデータを選んで出力処
理を行う。この処理を第5図に示す。第5図(A)は、
補助記憶用キャッシュ14が主記憶装置11の格納情報
をすべて含む場合における処理を示し、同図0−1)は
、補助記憶用キャッシュ14が上記快装的11の内科を
含まない場合における処理を示す。
Output processing from the auxiliary storage cache 14 to the auxiliary storage device 17 is performed when the free space of the auxiliary storage cache 14 becomes less than a certain value, and the auxiliary storage control device 13 determines the reference frequency within the cache 14. Select low data and perform output processing. This process is shown in FIG. Figure 5 (A) is
0-1) shows the process when the auxiliary memory cache 14 includes all the information stored in the main memory 11, and FIG. show.

まず、第5図囚の場合について述べる。この場合、キャ
ッシュ14の中に主配憶装置11に含まれるデータが存
在するため、これらを追い出さないようにしなければな
らない。在中情報格納装置16によシ、主記憶に含まれ
ていないデータを見い出し、その中から参照頻度の低く
なっているデータを喪き出すべき数(n個)たけ選択す
る。補助記憶装置17には、これらのデータはすべて含
まれているために実際に賓き出す必要があるのは、これ
らのうち主記憶で変更をれたものだけである。
First, let us discuss the case of the prisoner in Figure 5. In this case, since data included in the main storage device 11 exists in the cache 14, it is necessary to prevent the data from being evicted. Data that is not included in the main memory is found in the existing information storage device 16, and the number (n) of data to be deleted is selected from among them with low reference frequency. Since all of these data are included in the auxiliary storage device 17, only the data that has been changed in the main memory needs to be retrieved.

この判別を、変更情報格納装置15を用いて行う。This determination is performed using the change information storage device 15.

このようにして、実際に補助記憶装置17に書き出すべ
きデータを選択した後、桐き出し処理を行う。
In this way, after selecting the data to be actually written to the auxiliary storage device 17, the paulownia extraction process is performed.

次に、第5図03)について述べる。この」局舎には、
補助記憶装置用キャッシュ13の内容は、主記憶装置1
1の内容は含まないため、どのデータを真。
Next, FIG. 5 03) will be described. In this station building,
The contents of the auxiliary storage cache 13 are stored in the main storage 1.
Since the contents of 1 are not included, which data is true?

き出しても支障はない。従って、単に参照頻度の低くな
ったデータを必要な数たけ選択すればよいことになる。
There is no problem in taking it out. Therefore, it is sufficient to simply select as many pieces of data that are referenced less frequently as necessary.

以下の処理は、■の場合と捷ったく同様である。The following processing is exactly the same as in case (2).

通常、入出力処理は、中央処理装置10からの入出力コ
マンドを補助記憶制御装置13が受は取って遂行きれる
。以上述べてきた出力方式は、新たに入出力コマンドを
設けることにより実現できる。補助記憶装置13をディ
スクとしだ時には次のようになる。なお、この時、補助
記憶用キャッシュ14をディスク・キャッシュとする。
Normally, input/output processing can be accomplished by the auxiliary storage control device 13 receiving input/output commands from the central processing unit 10. The output method described above can be realized by providing new input/output commands. When the auxiliary storage device 13 is used as a disk, the process is as follows. Note that at this time, the auxiliary storage cache 14 is assumed to be a disk cache.

ディスクの出力処理は次の4つの処理から成り、それぞ
れの処理に対応した入出力コマンドが存在する。
Disk output processing consists of the following four processes, and there are input/output commands corresponding to each process.

4つの処理とは、シーク処理、セット・セクタ処理、サ
ーチ処理、データ伝送処理である。まず、ディスク・キ
ャッシュのデータが主記憶装置11のデータと重複して
いる場合について述べる。
The four processes are seek processing, set sector processing, search processing, and data transmission processing. First, a case where data in the disk cache overlaps with data in the main storage device 11 will be described.

この場合の出力方式は、データのアドレスのみを送り、
実際に、データを転送しない方式であった。ディスクの
出力処理の中では、シーク処理。
In this case, the output method is to send only the data address,
In fact, it was a method that did not transfer data. Seek processing is part of disk output processing.

セット・セクタ処理、サーチ処理が、データのアドレス
を示す役割を果たす。従って、この場合には、新たにデ
ータ伝送コマンドの中に、そのコマンドをディスク制御
装置が受は取っても、まったくデータ転送は行わないと
いうコマンドを設ければよいことになる。ディスク制御
装置は、丁でに終了しているシーク〜ブーチ処理で、ど
のデータが主記憶から出力されたかを知っており、デー
タ伝送をしないというコマンドを受けとることにより、
そのデータが主記憶中で変更されなかったことを知るこ
とができるのである。
Set sector processing and search processing serve to indicate the address of data. Therefore, in this case, it is sufficient to add a new command to the data transfer command that indicates that even if the disk control device receives the command, no data transfer is performed at all. The disk controller knows which data has been output from the main memory during the seek-boot process that has just finished, and by receiving the command not to transmit data,
It is possible to know that the data has not been changed in main memory.

次に、ディスク・キャッシュ内のデータが主記憶内のデ
ータと重複しない場合について述べる。
Next, a case will be described in which the data in the disk cache does not overlap with the data in the main memory.

この場合に示L7た出力方式は、データの転送と同時に
、主記憶中でデータの変更があったかどうかを示す制御
情報も送るというものであった。これは、次のようにし
て実現できる。データ変更がない場合は、従来とまった
く同じ出力方式で行うとする。そして、データ転送コマ
ンドの中に、出力処理に入れということを指示すると同
時に、これから出力するデータは主記憶の中で変更され
ていないということも意味するコマンドを設ければよい
。制御装置は、このコマンドを受は取ると、主記憶から
のデータをディスク・キャッシュに受は取る処理に入る
が、同時に、データが主記憶中で変更されていないとい
うことも知ることができろため、後に、ディスク・キャ
ツンユのデータをディスクに書き出す際に、主記憶中で
&Eのなかったデータは実際に書き出し処理を行わずに
済ますことができる。
In this case, the output method shown in L7 is to send control information indicating whether or not data has been changed in the main memory at the same time as data is transferred. This can be achieved as follows. If there is no data change, the same output method as before will be used. Then, a command may be provided in the data transfer command that not only instructs to start output processing but also indicates that the data to be output from now on has not been changed in the main memory. When the controller receives this command, it begins the process of receiving data from main memory into the disk cache, but at the same time it knows that the data has not been modified in main memory. Therefore, when writing the data on the disk to the disk later, the data in the main memory without &E can be saved without actually being written.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、従来のメモリ階層に補助記憶用キャッ
シュが加わった計p機システムにおいて、少ない入出力
オーバ・ヘッドでキャッシュ内に参照頻度の高いデータ
を保持することができる。補助記憶用キャッシュが主記
憶の内容を含む場合には、アドレスだけを送信してデー
タを送信しないような出力方式を設けることにより、主
記憶中で変可のなかったデータの転送をする必要がなく
なる。このようなデータが全体のX%であれは、X%分
だけデータ転送中を減少きせることかできる。
According to the present invention, in a computer system in which an auxiliary storage cache is added to a conventional memory hierarchy, frequently referenced data can be held in the cache with little input/output overhead. If the auxiliary memory cache contains the contents of the main memory, it is possible to eliminate the need to transfer data that was unchanged in the main memory by providing an output method that sends only the address and no data. It disappears. If such data is X% of the total, it is possible to reduce the time during data transfer by X%.

補助記憶用キャッシュが主記憶の内容を含せない場合に
は、変更の有無を示す制御情報を側力[lシ2てデータ
を出力することにより、補助記憶用キャッシュから補助
記憶装置へ出力するデータの量を、X%(やはり、g史
されないデータの刊が全14・のX%とする。)減少さ
せることができる。
If the auxiliary memory cache does not contain the contents of the main memory, the control information indicating whether or not there has been a change is output from the auxiliary memory cache to the auxiliary memory by outputting the data. The amount of data can be reduced by X% (again, assuming that the number of publications of unhistorical data is X% of the total 14.).

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

第1図は、本発明の全体の5購成図、第2図は、上記↑
はの内容を補助記憶用キャッシュが含んた時の記憶装置
に対し配置すべきチー、夕を示す図、第3図は上記内容
を含才ない時のML憶装置に対して配置すべきデータを
示す図、第4図囚、a3)及び第5図(イ)、 C[3
)は、本発明方式の出力処理の流れ図である・    
                 (:1.”’代理
人 弁理士 薄田利幸τ)、、fl−、、。 Z  1  図 第 5 (A) (B)
Figure 1 is the overall 5 purchase diagram of the present invention, Figure 2 is the above ↑
Figure 3 shows the data that should be placed in the storage device when the auxiliary storage cache contains the contents, and Figure 3 shows the data that should be placed in the ML storage device when the auxiliary storage cache does not contain the above contents. Figures shown in Figure 4, A3) and Figure 5 (A), C [3
) is a flowchart of the output processing of the method of the present invention.
(:1.”'Representative Patent Attorney Toshiyuki Usuda),,fl-,,.Z 1 Figure 5 (A) (B)

Claims (1)

【特許請求の範囲】 1、主起′rJt!、装置と、この主記憶装置の内容を
含む情報又は含まない情報?格納する補助記憶用キャッ
シュと、この補助症1怠用キャッシュの内容を含む情報
を格納する補助記憶装置と、上記主記憶装置に参照頻度
の筒いデータが格納されるように管理する中央処理装置
と、上記主記憶装置に格納されたデータの次に参照頻度
の高いデータが上記補助記憶装置に格納されるように管
理する補助記憶制御装置とを備えた計親機システムにお
いて、主記憶装置に格納されているデータに変更があっ
たか否かを示す情報を格納する第1の記憶領域を有し、
上記中央処理装置は、上記第1の記憶領域の格納情報を
参照して上記主記憶装置から上記補助記憶制御装置に転
送するデータを制御することを特徴とするデータ転送方
式。 2、第1項の方式において、主記憶装置に格納されてい
るデータに変更がなかったときは、転送すべきデータの
アドレスを送り、変更があったときはデータとアドレス
の両方ケ送ることを特徴とするデータ転送方式。 3、第2項の方式において、現在、補助記憶用キャッシ
ュにあるデータが主記憶装置に格納されでいる間に変動
されたものか否かを示す情報を格納する第2の記憶’l
1tT域を有し、補助記憶制御装置はアドレスとラータ
の両方を受けとったときに、補助記憶用キャッシュのデ
ータを更新すると共に、上記第2記憶領域の情報も更新
することを%徴とするデータ転送方式。 4、第2項の方式において、現在、補助記憶用キャッシ
ュにあるデータが主記憶装置にもあるか否かを示す情報
を格納する第3の記憶領域を有し、補助記憶制御装置は
、データとアドレスの両方又はアドレスを受けとったと
き上記第3の記憶領域の更新を行うことを特徴とするデ
ータ転送方式。 5、第1項の方式において、主記憶装置に格納されてい
る間に変更があったか否かを示す制御情報をデータに付
加して転送することを特徴とするデータ転送方式。 6、第5狛の方式において、現「L、 rn+助記′億
用キャッシュにあるデータが、主で、「)重装(篩に格
納されている間に変更をれだものか舎かを示す情報を格
納する第2の記憶9賊を治し、補助記憶制御装置(d1
受けとつ7’r−データをと山勘1111憶キャッシュ
に格納すると共に、伺/III 1till 11吋1
11報に、応じて第2の記憶領域の情報を史1〕;する
ことを特徴とするデータ転送方式〇 7、第3項又は第6項の方式において、第2の記憶飴域
の+ft報がデータの変更があったことを示しているど
きは補助H1i憶用キャッシュから補助nr、: i=
装置に実際にデータを出力し、乏゛ψがないときはキャ
ッシュの当該データ領域を空き%4域とすることを特徴
とするデータ転送方式。
[Claims] 1. Main origin 'rJt! , the device and the information that this main memory contains or does not contain? an auxiliary storage cache for storing information, an auxiliary storage device for storing information including the contents of the auxiliary syndrome 1 neglect cache, and a central processing unit for managing the reference frequency data so that it is stored in the main storage device. and an auxiliary storage control device that manages data such that the next most frequently referenced data after the data stored in the main storage device is stored in the auxiliary storage device. a first storage area for storing information indicating whether or not there has been a change in the stored data;
The data transfer method is characterized in that the central processing unit controls data to be transferred from the main storage device to the auxiliary storage control device by referring to information stored in the first storage area. 2. In the method described in item 1, when there is no change in the data stored in the main memory, the address of the data to be transferred is sent, and when there is a change, both the data and address are sent. Characteristic data transfer method. 3. In the method of item 2, the second memory stores information indicating whether or not the data currently in the auxiliary memory cache has been changed while being stored in the main memory.
1tT area, and the auxiliary storage control device updates the data in the auxiliary storage cache and also updates the information in the second storage area when it receives both the address and the data. Transfer method. 4. In the method of item 2, the auxiliary storage control device has a third storage area that stores information indicating whether or not the data currently in the auxiliary storage cache is also in the main storage; A data transfer method characterized in that the third storage area is updated when both the address and the address are received. 5. A data transfer method according to item 1, characterized in that control information indicating whether or not there has been a change while being stored in the main storage device is added to the data before the data is transferred. 6. In the method of the fifth koma, the data currently in the cache for ``L, rn + auxiliary notes'' is the main one, and the data is not changed while stored in the sieve. The second memory that stores the information shown is cured and the auxiliary memory control device (d1
At the same time as receiving the data and storing it in the 1111 million cache,
In the method of item 7, item 3 or item 6, the +ft information of the second storage area is indicates that there has been a data change, the auxiliary nr from the auxiliary H1i storage cache: i=
A data transfer method characterized in that when data is actually output to a device and there is no shortage, the data area of the cache is set to a free area of %4.
JP57143220A 1982-08-20 1982-08-20 Data transfer system Pending JPS5933689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57143220A JPS5933689A (en) 1982-08-20 1982-08-20 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57143220A JPS5933689A (en) 1982-08-20 1982-08-20 Data transfer system

Publications (1)

Publication Number Publication Date
JPS5933689A true JPS5933689A (en) 1984-02-23

Family

ID=15333681

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57143220A Pending JPS5933689A (en) 1982-08-20 1982-08-20 Data transfer system

Country Status (1)

Country Link
JP (1) JPS5933689A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5187778A (en) * 1989-09-13 1993-02-16 Hitachi, Ltd. Buffered disk unit and method of transferring data therein
JPH0594688U (en) * 1992-12-14 1993-12-24 ミドリ安全工業株式会社 freezer
US5706570A (en) * 1995-05-12 1998-01-13 Yazaki Corporation Terminal crimping device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5187778A (en) * 1989-09-13 1993-02-16 Hitachi, Ltd. Buffered disk unit and method of transferring data therein
JPH0594688U (en) * 1992-12-14 1993-12-24 ミドリ安全工業株式会社 freezer
US5706570A (en) * 1995-05-12 1998-01-13 Yazaki Corporation Terminal crimping device

Similar Documents

Publication Publication Date Title
JP2558033B2 (en) How to replace data in data cache memory
US6757794B2 (en) Buffering data in a hierarchical data storage environment
CN102498476B (en) Caching data between a database server and a storage system
US5257352A (en) Input/output control method and system
US8589438B2 (en) System for accessing shared data using multiple application servers
JPH07254204A (en) Optical disk apparatus
JP2000112814A (en) Method and device for allocating memory
JPH0877073A (en) Collective optical disk device
US4419725A (en) Cache/disk subsystem with tagalong copy
JPS5933689A (en) Data transfer system
JPH039494B2 (en)
US11593276B2 (en) Data caching methods of cache systems
JPH044617B2 (en)
JPS5848289A (en) Buffer memory controlling system
EP0656588B1 (en) Storage device
JP2854667B2 (en) Disk cache control method
EP0631236A1 (en) A bus-master computer system and method
JP2854668B2 (en) Disk cache control method
JPH05225062A (en) Disk cache device
JP2003241901A (en) Method and device for disk sharing control
JPH064226A (en) External storage device
JPH08115263A (en) Memory unit
CN116860439A (en) Memory management method and device, electronic equipment and storage medium
JP2988048B2 (en) Dictionary information resident access device
JP3468531B2 (en) Database management device and record storage method thereof