JPH03229336A - Disk cache system - Google Patents

Disk cache system

Info

Publication number
JPH03229336A
JPH03229336A JP2023948A JP2394890A JPH03229336A JP H03229336 A JPH03229336 A JP H03229336A JP 2023948 A JP2023948 A JP 2023948A JP 2394890 A JP2394890 A JP 2394890A JP H03229336 A JPH03229336 A JP H03229336A
Authority
JP
Japan
Prior art keywords
disk cache
disk
cache memory
access history
memory
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
JP2023948A
Other languages
Japanese (ja)
Inventor
Yoshiro Hirai
平井 義郎
Ichiro Nakano
中野 伊智郎
Kenichi Ariga
有家 賢一
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2023948A priority Critical patent/JPH03229336A/en
Publication of JPH03229336A publication Critical patent/JPH03229336A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To efficiently use a disk cache memory by providing an access history holding part, and redividing the inside of the disk cache memory at every channel in accordance with the contents of the access holding part. CONSTITUTION:An access history holding part 20a holds how many times a disk device 21 in charge of by itself is accessed, and whenever the disk device 21 is accessed, its value is updated one by one. In such a state, by referring to an access history display part 20a at an arbitrary time, the access history information of this disk cache memory 5 is recognized, and based on a result of recognition, a divided using area of the disk cache memory 5 is changed. Accordingly, to a channel whose using frequency is always the highest, the memory area of a large capacity is allocated, and to a channel whose use frequency is low, a memory area of a small capacity is allocated. In such a manner, the disk cache memory 5 can be efficiently used.

Description

【発明の詳細な説明】 [概要] 複数のCPUてディスクキャッシュメモリを使用する場
合におけるディスクキャッシュシステムに関し、 ディスクキャッシュメモリを効率よく使用できるように
することを目的とし、 複数のディスクキャッシュ制御チャネルと、これらディ
スクキャッシュ制御チャネルによってデータの書込みと
読出しが制御される複数のディスク装置と、ディスクキ
ャッシュ制御チャネルの数に応じてその領域が分割使用
されるディスクキャッシュメモリとで構成されるディス
クキャッシュシステムにおいて、各ディスクキャッシュ
制御チャネル内に当該ディスク装置が何回アクセスされ
たかの履歴を格納するアクセス履歴保持部を設け、任意
の時期にアクセス履歴保持部を参照してこのディスクキ
ャッシュメモリのアクセス履歴情報を認識し、認識した
結果に基づいてディスクキャッシュメモリの分割使用領
域を変更するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a disk cache system when disk cache memory is used by multiple CPUs, the purpose of this invention is to use multiple disk cache control channels and to efficiently use the disk cache memory. In a disk cache system consisting of a plurality of disk devices whose data writing and reading are controlled by these disk cache control channels, and a disk cache memory whose area is divided and used according to the number of disk cache control channels. , an access history storage unit is provided in each disk cache control channel to store a history of how many times the relevant disk device has been accessed, and the access history storage unit is referred to at any time to recognize access history information of this disk cache memory. The system is configured to change the divided usage area of the disk cache memory based on the recognized result.

[産業上の利用分野] 本発明は複数のCPUてディスクキャッシュメモリを使
用する場合におけるディスクキャッシュシステムに関し
、更に詳しくはディスクキャッシュメモリの容量を適当
に分割して複数のディスクキャッシュ制御チャネルに割
当てて使用するディスクキャッシュシステムに関する。
[Industrial Application Field] The present invention relates to a disk cache system when a disk cache memory is used by multiple CPUs, and more specifically, the present invention relates to a disk cache system in which a disk cache memory is used by multiple CPUs, and more specifically, the present invention relates to a disk cache system in which the capacity of the disk cache memory is appropriately divided and allocated to multiple disk cache control channels. Concerning the disk cache system to be used.

[従来の技術] ディスクキャッシュシステムは、コンピュータシステム
の処理性能を向上させる手段として有効である。第3図
は従来のディスクキャッシュシステムの構成概念図であ
る。CPUIはディスクキャッシュ制御チャネル2を介
してディスク装置3からデータを読出す。読出されたデ
ータは、主記憶装置4に入ると同時にディスクキャッシ
ュメモI75にも入って記憶される。
[Prior Art] A disk cache system is effective as a means for improving the processing performance of a computer system. FIG. 3 is a conceptual diagram of a conventional disk cache system. The CPUI reads data from the disk device 3 via the disk cache control channel 2. The read data is stored in the main storage device 4 and also in the disk cache memory I75.

その後、CPUIがディスク装置3の同しアドレスのデ
ータをリードした場合、ディスクキャッシュ制御チャネ
ル2はディスクキャッシュメモリ5に同一データか格納
されていることをCPUIに知らせる。CPU]はディ
スクキャッシュメモリ5からデータを読出して処理を行
う。このように、ディスクキャノンニジステムを用いれ
ば、頻繁に使用するデータについてはディスクキャッシ
ュメモリ5から読出すことができるので、処理速度の向
上か図れる。
Thereafter, when the CPU reads data at the same address in the disk device 3, the disk cache control channel 2 notifies the CPU that the same data is stored in the disk cache memory 5. CPU] reads data from the disk cache memory 5 and processes it. In this way, by using the disk cannon system, frequently used data can be read from the disk cache memory 5, thereby improving processing speed.

一方、ディスクキャッシュ制御チャネルを複数装備して
、ディスクキャッシュシステムを構築すれば、更に性能
向上が期待できる。第4図は、ディスクキャッシュ制御
チャネルを複数接続したディスクキャッシュシステムの
構成ブロック図である。第3図と同一のらのは、同一の
符号を付して示す。図に示すシステムは、CPUl0.
ディスクキャッシュ制御チャネル11及びディスク装置
12が複数(n個)設けられている。
On the other hand, if a disk cache system is constructed by equipping multiple disk cache control channels, further performance improvement can be expected. FIG. 4 is a configuration block diagram of a disk cache system in which a plurality of disk cache control channels are connected. Components that are the same as those in FIG. 3 are designated by the same reference numerals. The system shown in the figure has CPU10.
A plurality (n) of disk cache control channels 11 and disk devices 12 are provided.

これに合わせて、ディスクキャッシュメモリ5は各チャ
ネル毎に81〜Bnのブロックに分割され、例えば#1
のシステムは、ディスクキャンシュメモリ5のブロック
B1をディスクキャッシュメモリとして用いるようにし
ている。メモリブロック81〜Bnは各チャネルの使用
頻度に合わせて予め固定された容量の領域に分割されて
いる。
In accordance with this, the disk cache memory 5 is divided into blocks of 81 to Bn for each channel, for example, #1
The system uses block B1 of the disk cache memory 5 as a disk cache memory. Memory blocks 81 to Bn are divided into areas of predetermined capacity according to the frequency of use of each channel.

そして、各チャネルのディスクキャッシュ制御チャネル
は1つのディスクキャッシュメモリ5を共用で使用する
ことができる。
The disk cache control channels of each channel can share one disk cache memory 5.

[発明が解決しようとする課題] しがしながら、−旦ディスクキャッシュメモリ5を分割
し、各ディスクキャッシュ制御チャネル11に割当てる
と、それぞれのディスクキャッシュ制御チャネル11が
使用できるディスクキャッシュメモリの容量は固定化さ
れているので、コンピュータシステム上で実行されるジ
ョブの条件等に変更が生した場合、各ディスクキャッシ
ュメモリの使用頻度に偏りか発生し、必ずしもそれぞれ
のディスクキャッシュ制御チャネル11か最も効果的に
動作できるようなメモリの配分にならなくなる。この結
果、メモリの使用効率が悪くなってしまう。
[Problems to be Solved by the Invention] However, once the disk cache memory 5 is divided and allocated to each disk cache control channel 11, the capacity of the disk cache memory that can be used by each disk cache control channel 11 is Since it is fixed, if the conditions of jobs executed on the computer system change, the frequency of use of each disk cache memory may become uneven, and it is not necessarily the case that each disk cache control channel 11 is the most effective. The memory allocation will not be such that it can operate normally. As a result, memory usage efficiency deteriorates.

本発明はこのような課題に鑑みてなされたものであって
、ディスクキャッシュメモリを効率よく使用できるよう
にすることができるディスクキャッシュシステムを提供
することを目的としている。
The present invention has been made in view of such problems, and an object of the present invention is to provide a disk cache system that can efficiently use disk cache memory.

[課題を解決するための手段] 第1図は本発明の原理ブロック図である。第3図と同一
のものは、同一の符号を付して示す。図において、20
は複数のディスクキャッシュ制御チャネル、21はこれ
らディスクキャッシュ制御チャネル20によってデータ
の書込みと読出しが制御される複数のディスク装置、5
はディスクキャッシュ制御チャネル20の数に応じてそ
の領域が分割使用されるディスクキャッシュメモリであ
る。20aは当該ディスク装置21が何回アクセスされ
たかの履歴を格納するアクセス履歴保持部で、各ディス
クキャッシュ制御チャネル20内に設けられている。
[Means for Solving the Problems] FIG. 1 is a block diagram of the principle of the present invention. Components that are the same as those in FIG. 3 are designated by the same reference numerals. In the figure, 20
5 is a plurality of disk cache control channels; 21 is a plurality of disk devices whose data writing and reading are controlled by these disk cache control channels 20;
is a disk cache memory whose area is divided and used according to the number of disk cache control channels 20. Reference numeral 20a denotes an access history holding unit that stores a history of how many times the disk device 21 has been accessed, and is provided in each disk cache control channel 20.

[作用1 アクセス履歴保持部20aは、自己か担当するディスク
装置21か何回アクセスされかを保持している。つまり
、アクセス履歴保持部20aはディスク装置21かアク
セスされる度にその値を1ずつ更新する。そして、任意
の時期にアクセス履歴保持部20aを参照してこのディ
スクキャッシュメモリ5のアクセス履歴情報を認識し、
認識した結果に基づいてディスクキャッシュメモリ5の
分割使用領域を変更するようにする。これにより、常に
最も使用頻度の高いチャネルには容量の大きいメモリ領
域か割当てられ、使用頻度の低いチャネルには容量の小
さいメモリ領域が割当てられる。
[Operation 1] The access history holding unit 20a holds information on how many times the access history holding unit 20a has been accessed by itself or by the disk device 21 in charge. In other words, the access history holding unit 20a updates its value by 1 each time the disk device 21 is accessed. Then, at any time, the access history holding unit 20a is referred to and the access history information of this disk cache memory 5 is recognized.
The divided usage area of the disk cache memory 5 is changed based on the recognized result. As a result, a large capacity memory area is always allocated to the most frequently used channel, and a small capacity memory area is allocated to the least frequently used channel.

このようにして、ディスクキャッシュメモリ5を効率よ
く使用することができる。
In this way, the disk cache memory 5 can be used efficiently.

[実施例] 以下、図面を参照して本発明の実施例を詳細に説明する
[Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings.

第2図は本発明の一実施例を示す構成ブロック図である
。第1図、第4図と同一のものは、同一の符号を付して
示す。図において、4は主記憶装置、5はディスクキャ
ッシュメモリ、10は各チャネル毎に設けられたCPU
、20は各チャネル毎に設けられたディスクキャッシュ
制御チャネル、20aは各ディスクキャッシュ制御チャ
ネル20内に設けられたディスク装置のアクセス回数を
保持するアクセス履歴保持メモリ、21は各チャネル毎
にディスクキャッシュ制御チャネル20と接続されたデ
ィスク装置である。このように構成されたシステムの動
作を説明すれば、以下のとおりである。
FIG. 2 is a block diagram showing an embodiment of the present invention. Components that are the same as those in FIGS. 1 and 4 are designated by the same reference numerals. In the figure, 4 is a main storage device, 5 is a disk cache memory, and 10 is a CPU provided for each channel.
, 20 is a disk cache control channel provided for each channel, 20a is an access history holding memory provided in each disk cache control channel 20 and holds the number of accesses of the disk device, and 21 is a disk cache control channel for each channel. This is a disk device connected to channel 20. The operation of the system configured as described above will be explained as follows.

図に示す実施例は、システム立ち上げ時にディスクキャ
ッシュメモリ5を分割する例を示している。システム立
ち上げ時には、キャシュメモリ分割情報はアクセス履歴
保持部20aからそれぞれのディスク装置に格納されい
る(情報が揮発しないため)。システムが立ち上げられ
た場合には、CPUl0のいずれかがディスク装置21
からその情報を読取り、ディスク装置21の使用頻度に
応じてディスクキャッシュメモリ5をB1〜Bnのブロ
ックに分割する。この場合において、使用頻度の高いチ
ャネルに対してはメモリ容量を大きくし、使用頻度の低
いチャネルに対してはメモリ容量を小さくして割当てる
The embodiment shown in the figure shows an example in which the disk cache memory 5 is divided at the time of system startup. When the system is started up, the cache memory division information is stored in each disk device from the access history holding section 20a (because the information does not volatilize). When the system is started, one of CPU10 is connected to disk device 21.
The information is read from , and the disk cache memory 5 is divided into blocks B1 to Bn according to the frequency of use of the disk device 21. In this case, a large memory capacity is allocated to channels that are used frequently, and a small memory capacity is allocated to channels that are used less frequently.

若し、ディスク装置21に分割情報が格納されていない
場合には、とりあえずディスクキャッシュ制御チャネル
20の数でメモリ容量を割って、均等に分割する。
If division information is not stored in the disk device 21, the memory capacity is divided by the number of disk cache control channels 20 to divide the memory evenly.

システムの立ち上げが終了して、システムが動作開始す
ると、各ディスクキャッシュ制御チャネル20は、CP
U10からのディスクアクセスを受信する度に、ディス
クキャッシュ動作を実行する。また、その都度、アクセ
ス履歴保持部20aにアクセス履歴(ディスクアクセス
要求回数、リードヒツト率、ライトヒツト率、キャッシ
ュメモリ使用サイス、追い出し回数等)を書込む。
When the system startup is completed and the system starts operating, each disk cache control channel 20
Each time a disk access from U10 is received, a disk cache operation is performed. In addition, each time, the access history (number of disk access requests, read hit rate, write hit rate, cache memory usage size, number of evictions, etc.) is written in the access history holding unit 20a.

そして、システムの動作終了時に、ソフトウェアからの
アクセス履歴読取り指令により、ソフトウェアに対して
この履歴を通知する。ソフトウェアは、各ディスクキャ
ッシュ制御チャネル20がら現在までのディスクキャッ
シュメモリ5のアクセス履歴を受信し、そのデータを比
較して、次にシステムを立ち上げる時のディスクキャッ
シュメモリ分割情報を作成し、ディスク装置21のいず
れかに格納しておく。
Then, at the end of the system operation, this history is notified to the software in response to an access history read command from the software. The software receives the access history of the disk cache memory 5 up to the present from each disk cache control channel 20, compares the data, creates disk cache memory partition information for the next system startup, and Store it in one of 21.

以上の実施例では、このディスクキャッシュメモリ5の
容量の変更は、ソフトウェアがディスクキャッシュメモ
リ分割情報を作成することにより、行っていた。このデ
ィスクキャッシュメモリ5の分割は、システム動作中に
任意の時点でソフトウェアから発行されるディスクキャ
ッシュメモリの再分割要求を契機にして実行してもよい
。この指令をソフトウェアから受理すると、一端ディス
クキャッシュ動作の無効化を行った後、各ディスクキャ
ッシュ制御チャネル20がソフトウェアから指定された
ディスクキャッシュメモリを使用できる容量に基づいて
再度分割を行う。その後、ディスクキャッシュ動作を有
効とする。
In the embodiments described above, the capacity of the disk cache memory 5 is changed by software creating disk cache memory division information. This division of the disk cache memory 5 may be executed in response to a disk cache memory re-division request issued by software at any time during system operation. When this command is received from the software, the disk cache operation is temporarily invalidated, and then each disk cache control channel 20 divides the disk cache memory again based on the usable capacity specified by the software. After that, enable disk cache operation.

上述の実施例では、ディスクキャッシュメモリ5を主記
憶装置4とは別個に設けた場合を示したが、本発明はこ
れに限るものではなく、ディスクキャッシュメモリ5を
主記憶装置4内に設けてもよい。この場合、メモリマツ
プの特定領域をディスクキャッシュメモリ領域として指
定しなければならない。
Although the above-mentioned embodiment shows the case where the disk cache memory 5 is provided separately from the main storage device 4, the present invention is not limited to this, and the disk cache memory 5 may be provided within the main storage device 4. Good too. In this case, a specific area of the memory map must be designated as a disk cache memory area.

[発明の効果] 以上、詳細に説明したように、本発明によればディスク
キャッシュ制御チャネル内にディスク装置アクセスの履
歴を格納するアクセス履歴保持部を設け、このアクセス
保持部の内容によってディスクキャッシュメモリ内を各
チャネル毎に再分割することにより、ディスクキャッシ
ュメモリを効率よく使用できるようにすることができる
[Effects of the Invention] As described above in detail, according to the present invention, an access history holding section for storing the history of disk device accesses is provided in the disk cache control channel, and the disk cache memory is stored according to the contents of this access holding section. By re-dividing the data for each channel, the disk cache memory can be used efficiently.

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

第1図は本発明の原理プロ・lり図、 第2図は本発明の一実施例を示す構成ブロック図、 第3図は従来のディスクキャッシュシステムの構成プロ
、り図、 第4図はディスクキャッンユシステムの構成ブロック図
である。 第1図において、 5はディスクキャッシュメモリ、 20はディスクキャッシュ制御チャネル、20aはアク
セス履歴保持部、 21はディスク装置である。
Fig. 1 is a diagram showing the principle of the present invention, Fig. 2 is a block diagram showing the configuration of an embodiment of the present invention, Fig. 3 is a diagram showing the configuration of a conventional disk cache system, and Fig. 4 is a diagram showing the configuration of a conventional disk cache system. FIG. 1 is a block diagram illustrating the configuration of a disk capture system. In FIG. 1, 5 is a disk cache memory, 20 is a disk cache control channel, 20a is an access history holding unit, and 21 is a disk device.

Claims (1)

【特許請求の範囲】 複数のディスクキャッシュ制御チャネル(20)と、 これらディスクキャッシュ制御チャネル(20)によっ
てデータの書込みと読出しが制御される複数のディスク
装置(21)と、 ディスクキャッシュ制御チャネル(20)の数に応じて
その領域が分割使用されるディスクキャッシュメモリ(
5)とで構成されるディスクキャッシュシステムにおい
て、 各ディスクキャッシュ制御チャネル(20)内に当該デ
ィスク装置(21)が何回アクセスされたかの履歴を格
納するアクセス履歴保持部(20a)を設け、 任意の時期にアクセス履歴保持部(20a)を参照して
このディスクキャッシュメモリ(5)のアクセス履歴情
報を認識し、 認識した結果に基づいてディスクキャッシュメモリ(5
)の分割使用領域を変更するように構成したことを特徴
とするディスクキャッシュシステム。
[Claims] A plurality of disk cache control channels (20), a plurality of disk devices (21) whose data writing and reading are controlled by these disk cache control channels (20), and a disk cache control channel (20). ), the area of which is divided according to the number of disk cache memory (
5), an access history storage unit (20a) is provided in each disk cache control channel (20) to store a history of how many times the disk device (21) has been accessed, and an arbitrary At the same time, the access history storage unit (20a) is referred to to recognize the access history information of this disk cache memory (5), and based on the recognized result, the access history information of the disk cache memory (5) is recognized.
) A disk cache system characterized in that it is configured to change the divided usage area of the disk.
JP2023948A 1990-02-02 1990-02-02 Disk cache system Pending JPH03229336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2023948A JPH03229336A (en) 1990-02-02 1990-02-02 Disk cache system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2023948A JPH03229336A (en) 1990-02-02 1990-02-02 Disk cache system

Publications (1)

Publication Number Publication Date
JPH03229336A true JPH03229336A (en) 1991-10-11

Family

ID=12124773

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2023948A Pending JPH03229336A (en) 1990-02-02 1990-02-02 Disk cache system

Country Status (1)

Country Link
JP (1) JPH03229336A (en)

Similar Documents

Publication Publication Date Title
JP2784440B2 (en) Data page transfer control method
US6948033B2 (en) Control method of the cache hierarchy
EP0130349A2 (en) A method for the replacement of blocks of information and its use in a data processing system
US20120173803A1 (en) Methods and apparatus to share a thread to reclaim memory space in a non-volatile memory file system
GB2265734A (en) Free memory cell management system
US6507902B1 (en) Dynamic RAM disk
US5293622A (en) Computer system with input/output cache
JPH0816886B2 (en) Fast writing method
JP4612269B2 (en) Virtual volume management method
JP2001216195A (en) Fractional binary dimension cache
JPH05150913A (en) Silicon disk with flash memory as storage medium
JPH03229336A (en) Disk cache system
JPH01303547A (en) Control system for information memory
JP4354583B2 (en) Access method and recording medium recording access processing program
JPH0421222B2 (en)
JPH0812643B2 (en) Page save / restore device
JPH0784886A (en) Method and unit for cache memory control
US7840757B2 (en) Method and apparatus for providing high speed memory for a processing unit
JP3542894B2 (en) File system
JPH0652056A (en) Cache memory system
JPS6134643A (en) Buffer control system
JPH01276348A (en) Secondary cache memory system
JPH0358149A (en) Storage device
JPH02226447A (en) Computer system and memory access therefor
JPH0455959A (en) Storage