JPH03230240A - Efficiency enhancing system for disk cache - Google Patents

Efficiency enhancing system for disk cache

Info

Publication number
JPH03230240A
JPH03230240A JP2026713A JP2671390A JPH03230240A JP H03230240 A JPH03230240 A JP H03230240A JP 2026713 A JP2026713 A JP 2026713A JP 2671390 A JP2671390 A JP 2671390A JP H03230240 A JPH03230240 A JP H03230240A
Authority
JP
Japan
Prior art keywords
disk
queue
page
disk cache
unused
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
JP2026713A
Other languages
Japanese (ja)
Inventor
Takahiro Sone
曽根 隆浩
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2026713A priority Critical patent/JPH03230240A/en
Publication of JPH03230240A publication Critical patent/JPH03230240A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To realize a disk cache with high efficiency by the small number of cache buffers by also using even unused pages as the disk cache. CONSTITUTION:An unused page queue 11 is provided to exert queue control onto the unused pages, and an unused page registering means 12 is provided to register the page storing a certain disk block to the unused page queue together with information to specify the page block. Then, an unused page retrieving means 13 is provided to retrieve the page storing the data of the designated disk block from the unused page queue, and a disk cache queue 14 is provided to exert the queue control upon the disk cache to store the data of the disk block. Further, a disk cache control means 15 to control the disk cache queue, and a disk 16 are provided. Therefore, the unused pages can be used as the disk cache. Thus, the disk cache with high efficiency is realized by the small number of cache buffers.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ディスクキャッシュの効率化方式に関し、特
にメモリ上にディスクのキャッシュバッファを持つコン
ピュータシステムにおけるディスクキャッシュの効率化
の方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for increasing the efficiency of a disk cache, and particularly to a method for increasing the efficiency of a disk cache in a computer system having a disk cache buffer in memory.

〔従来の技術〕[Conventional technology]

従来、ディスクキャッシュは、システムジェネレーショ
ン時に決められた数のキャッシュバッファの範囲でキャ
ッシュを行っていた。
Conventionally, disk cache has performed caching within the range of the number of cache buffers determined at the time of system generation.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述の従来の方法では、用意するキャッシュバッファの
数が多過ぎると、使用できるメモリ量が少なくなり、キ
ャッシュバッファの数が少な過ぎるとキャッシュの効果
が低下するという欠点がある。
The conventional method described above has the drawback that if too many cache buffers are prepared, the amount of memory that can be used decreases, and if the number of cache buffers is too small, the effectiveness of the cache is reduced.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のディスクキャッシュの効率化方式は、−次記憶
装置(以下「メモリ」という)の管理単位であるページ
の大きさとメモリ上に設定された二次記憶装置(以下「
ディスク」という)の入出力キャッシュバッファ(以下
「ディスクキャッシュ」という)の単位の大きさとが一
致しているディスクキャッシュキューと、ディスクキャ
ッシュの登録・削除・検索をするディスクキャッシュ制
御手段と、未使用のページをキューイングして管理する
ためぬ未使用ページキューと、ディスクキャッシュに使
用されたページを、格納されているディスクブロックを
特定する情報と共に未使用ページキューに登録する未使
用ページ登録手段と、指定されたディスクブロックが格
納されたページを未使用ページキューから探す未使用ペ
ージ検索手段とを備えて構成される。
The disk cache efficiency method of the present invention is based on the size of a page, which is a management unit of a secondary storage device (hereinafter referred to as ``memory''), and the size of a secondary storage device (hereinafter referred to as ``memory'') set on the memory.
A disk cache queue whose unit size matches the unit size of the input/output cache buffer (hereinafter referred to as "disk cache") of the "disk"), a disk cache control means for registering, deleting, and searching the disk cache, and unused an unused page queue for queuing and managing pages; and an unused page registration means for registering pages used for disk cache in the unused page queue along with information identifying stored disk blocks. , an unused page search means for searching an unused page queue for a page in which a designated disk block is stored.

〔実施例〕〔Example〕

次に、本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.

第1図は本発明の一実施例の構成を示すブロック図、第
2図(a)および(b)は本実施例における未使用ペー
ジキューとディスクキャッシュキューとの構成を示すブ
ロック図、第3図は本実施例における未使用ページキュ
ーとディスクキャッシュキューとの制御フローの図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIGS. 2(a) and (b) are block diagrams showing the configuration of an unused page queue and a disk cache queue in this embodiment, and FIG. The figure is a diagram showing the control flow of the unused page queue and disk cache queue in this embodiment.

第1図において、11は未使用のページをキュー管理す
るための未使用ページキュー、12はあるディスクブロ
ックのデータが格納されたページをそのディスクブロッ
クを特定する情報と共に未使用ページキューに登録する
未使用ページ登録手段、13は指定されたディスクブロ
ックのデータが格納されたページを未使用ページキュー
から検索する未使用ページ検索手段、14はディスクブ
ロックのデータを格納するディスクキャッシュをキュー
管理するためのディスクキャッシュキュ、15はディス
クキャッシュキューの管理をするディスクキャッシュ制
御手段、16はディスクをそれぞれ表わす。
In FIG. 1, 11 is an unused page queue for queue management of unused pages, and 12 is a page storing data of a certain disk block, which is registered in the unused page queue along with information identifying that disk block. unused page registration means; 13, unused page search means for searching an unused page queue for a page in which data of a specified disk block is stored; and 14, for queue management of a disk cache that stores data of a disk block. 15 represents a disk cache control means for managing the disk cache queue, and 16 represents a disk.

第2図(a)および(1つ)において、第2図(a)は
未使用ページキューを示したもので、21は未使用ペー
ジキューの先頭ポインター21a〜212は未使用ペー
ジキューにつながれた未使用ページ管理テーブルである
。第2図(b)はディスクキャッシュキューを示したち
のて、22(まディスクキャッシュキューの先頭ポイン
ター 22 a〜22zはディスクキャッシュキューに
つながれたディスクキャッシュ管理テーブルである。
In Fig. 2(a) and (1), Fig. 2(a) shows an unused page queue, and 21 is the head pointer of the unused page queue, and 21a to 212 are connected to the unused page queue. This is an unused page management table. FIG. 2(b) shows a disk cache queue, and 22 (head pointers 22a to 22z of the disk cache queue) are disk cache management tables connected to the disk cache queue.

第1図〜第3図を用いて、未使用ページキューとディス
クキャッシュキューの管理を中心に幾つかのケースに分
けて説明する。
The management of unused page queues and disk cache queues will be explained in several cases with reference to FIGS. 1 to 3.

「ケース1」 ディスクキャッシュ制御手段15に対し、あるディスク
ブロックの要求があった場合で、ディスクキャッシュ制
御手段15は要求されたディスクブロックがディスクキ
ャッシュキュー14の中に存在するかどうか検索し該当
するディスクキャッシュが存在する場合はくステップ3
1)、該当ディスクプロ・・ツクをディスクキャッシュ
キューから外しくステツプ32)、該当ディスクプロ・
ツク有りの情報と共に、そのディスクキャッシュを返却
する(ステップ39)。
"Case 1" When a request is made to the disk cache control means 15 for a certain disk block, the disk cache control means 15 searches whether the requested disk block exists in the disk cache queue 14 and determines whether the requested disk block exists or not. If disk cache exists, remove Step 3
1) Remove the corresponding disk pro... from the disk cache queue.Step 32) Remove the corresponding disk pro...
The disk cache is returned together with the information indicating that it has been checked (step 39).

「ケース2」 ケース1のステップ31において、該当するディスクブ
ロックがディスクキャッシュキュー14の中に存在しな
い場合であって(ステップ31)、未使用ページ検索手
段13により要求されたディスクブロックが格納された
ページが未使用ページキュー11に存在するかどうか検
索しくステップ33)、該当するページが存在する場合
は、ディスクキャッシュキュー14の末尾のディスクキ
ャッシュ22zをキューから外しくステ・ンブ35)、
ディスクキャッシュとして使用しているページをディス
クキャッシュから外し、未使用ページ登録手段12によ
り未使用ページキューの先頭21aにつなぐ(ステップ
36)。
"Case 2" In step 31 of case 1, the corresponding disk block does not exist in the disk cache queue 14 (step 31), and the disk block requested by the unused page search means 13 is stored. Search whether the page exists in the unused page queue 11 (step 33), and if the page exists, remove the disk cache 22z at the end of the disk cache queue 14 from the queue (step 35),
The page used as a disk cache is removed from the disk cache, and the unused page registration means 12 connects it to the head 21a of the unused page queue (step 36).

ステップ35において無効な場合は、ディスクキャッシ
ュとして使用しているページをディスクキャッシュから
外し、未使用ページ登録手段12により未使用ページキ
ューの末尾21zにつなぐ(ステップ37)。そしてい
ずれの場合もステツ133で得たページを未使用ページ
キューから外し、ステップ34で得たディスクキャッシ
ュにつなぎ(ステップ38)、該当ディスクブロック有
りの情報と共に、そのディスクキャッシュを返却する(
ステップ39)。
If the page is invalid in step 35, the page used as the disk cache is removed from the disk cache, and the unused page registration means 12 connects it to the end 21z of the unused page queue (step 37). In either case, the page obtained in step 133 is removed from the unused page queue, connected to the disk cache obtained in step 34 (step 38), and the disk cache is returned together with the information that the corresponding disk block exists (
Step 39).

「ケース3J ケース2のステップ33において、該当するページが未
使用ページキュー11に存在しない場合であって、ディ
スクキャッシュキュー14の末尾のディスクキャッシュ
22zをキューがら外しくステップ40)、外したディ
スクキャラキュが有効かどうか調べ、有効な場合はくス
テップ41)、ディスクキャッシュとして使用している
ページをディスクキャッシュがら外し、未使用ページ登
録手段12により未使用ページキューの先頭21aにつ
なぎ(ステップ42)、未使用ページキューの末尾のペ
ージ21zをはずし、ステップ40で得たディスクキャ
ッシュにっなぐ(ステップ43)。 また、ステップ4
1において有効であった場合でも無効であった場合でも
、該当ディスクブロックなしの情報と共に、ステップ4
0で得たディスクキャッシュを返却する(ステップ44
)。
"Case 3J In step 33 of case 2, the corresponding page does not exist in the unused page queue 11, and if the disk cache 22z at the end of the disk cache queue 14 is removed from the queue (step 40), the removed disk character Check whether the queue is valid, and if so, remove the page (step 41), which is used as a disk cache, and remove the page used as a disk cache from the disk cache, and connect it to the head 21a of the unused page queue by the unused page registration means 12 (step 42). , removes the last page 21z from the unused page queue and stores it in the disk cache obtained in step 40 (step 43).
Regardless of whether it was valid or invalid in step 1, the information in step 4 that there is no corresponding disk block is displayed.
Return the disk cache obtained in step 0 (step 44)
).

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

以上詳細に説明したように本発明は、未使用ページをも
ディスクキャッシュとして使用することにより少ない数
のキャッシュバッファで効率の高いディスクキャッシュ
を実現できるという効果がある。
As described in detail above, the present invention has the effect of realizing a highly efficient disk cache with a small number of cache buffers by using unused pages as a disk cache.

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

第1図は本発明の一実施例の構成を示すブロック図、第
2図(a)および(b)はそれぞれ実施例における未使
用ページキューおよびディスクキャッシュキューの構成
を示すブロック図、第3図は本実施例における未使用ペ
ージキューおよびディスクキャッシュキューの制御フロ
ーを示す流れ図である。 11・・・未使用ページキュー、12・・・未使用ペー
ジ登録手段、13・・・未使用ページ検索手段、14・
ディスクキャッシュキュー、15・・・ディスクキャ・
ソシュ制御手段、16・・ディスク、21・・・未使用
ページキューの先頭ポインター、21a〜21Z・・・
未使用ページ管理テーブル、22・・・ディスクキャ・
ソシュキューの先頭ポインター、22 a〜22z・・
・ディスクキャッシュ管理テーブル。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIGS. 2(a) and (b) are block diagrams showing the configurations of an unused page queue and a disk cache queue, respectively, in the embodiment, and FIG. is a flowchart showing the control flow of an unused page queue and a disk cache queue in this embodiment. 11... Unused page queue, 12... Unused page registration means, 13... Unused page search means, 14.
Disk cache queue, 15...Disk cache queue
Soshu control means, 16...disk, 21...head pointer of unused page queue, 21a to 21Z...
Unused page management table, 22...Disk cache
Soshu cue head pointer, 22 a to 22 z...
- Disk cache management table.

Claims (1)

【特許請求の範囲】[Claims] 一次記憶装置(以下「メモリ」という)の管理単位であ
るページの大きさとメモリ上に設定された二次記憶装置
(以下「ディスク」という)の入出力キャッシュバッフ
ァ(以下「ディスクキャッシュ」という)の単位の大き
さとが一致しているディスクキャッシュキューと、ディ
スクキャッシュの登録・削除・検索をするディスクキャ
ッシュ制御手段と、未使用のページをキューイングして
管理するための未使用ページキューと、ディスクキャッ
シュに使用されたページを、格納されているディスクブ
ロックを特定する情報と共に未使用ページキューに登録
する未使用ページ登録手段と、指定されたディスクブロ
ックが格納されたページを未使用ページキューから探す
未使用ページ検索手段とを備えて成ることを特徴とする
ディスクキャッシュの効率化方式。
The size of the page, which is the management unit of the primary storage device (hereinafter referred to as ``memory''), and the input/output cache buffer (hereinafter referred to as ``disk cache'') of the secondary storage device (hereinafter referred to as ``disk'') set on the memory. A disk cache queue whose unit size matches, a disk cache control means for registering, deleting, and searching disk caches, an unused page queue for queuing and managing unused pages, and a disk cache queue that matches the unit size. An unused page registration means that registers pages used for caching in an unused page queue along with information that identifies the disk block in which they are stored, and searches the unused page queue for a page in which a specified disk block is stored. A method for improving the efficiency of a disk cache, comprising: means for searching for unused pages.
JP2026713A 1990-02-05 1990-02-05 Efficiency enhancing system for disk cache Pending JPH03230240A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2026713A JPH03230240A (en) 1990-02-05 1990-02-05 Efficiency enhancing system for disk cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2026713A JPH03230240A (en) 1990-02-05 1990-02-05 Efficiency enhancing system for disk cache

Publications (1)

Publication Number Publication Date
JPH03230240A true JPH03230240A (en) 1991-10-14

Family

ID=12201000

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2026713A Pending JPH03230240A (en) 1990-02-05 1990-02-05 Efficiency enhancing system for disk cache

Country Status (1)

Country Link
JP (1) JPH03230240A (en)

Similar Documents

Publication Publication Date Title
US6581142B1 (en) Computer program product and method for partial paging and eviction of microprocessor instructions in an embedded computer
US20100161902A1 (en) Method, system, and program for an adaptor to read and write to system memory
JPH03230240A (en) Efficiency enhancing system for disk cache
JPS6258351A (en) Optical disk cache system
JP3180336B2 (en) Data access method using multilayer buffer
JP2912657B2 (en) File access processor
JPS6237754A (en) Virtual extension storage system
JPH086829A (en) Simultaneous all search method of database
JP3157673B2 (en) Virtual storage system
JPH064394A (en) Memory managing system
JP2530020B2 (en) Search method
JP2630103B2 (en) File space reservation method
JP2856091B2 (en) Data output system
JP3013993B2 (en) Vector processing method
JPH05100926A (en) Input/output managing system
JPH06175903A (en) File management system
JPS62197843A (en) File access system
JPH05334362A (en) Processor controlling message
JPH043251A (en) Method and processor for retrieving document
JPS63291145A (en) Method for managing file
JPS6150349B2 (en)
JPH0436847A (en) Method for selecting data transfer path
JPH06348572A (en) Multi-mechanism disk system
JPH05274196A (en) Secondary storage managing method by multiple file
JPH0715668B2 (en) Road processing method