JPH1040147A - System controlling virtual file cache - Google Patents

System controlling virtual file cache

Info

Publication number
JPH1040147A
JPH1040147A JP8196174A JP19617496A JPH1040147A JP H1040147 A JPH1040147 A JP H1040147A JP 8196174 A JP8196174 A JP 8196174A JP 19617496 A JP19617496 A JP 19617496A JP H1040147 A JPH1040147 A JP H1040147A
Authority
JP
Japan
Prior art keywords
file
memory page
cache
memory
page
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
JP8196174A
Other languages
Japanese (ja)
Inventor
Satoru Shinada
悟 品田
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 JP8196174A priority Critical patent/JPH1040147A/en
Publication of JPH1040147A publication Critical patent/JPH1040147A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To unnecessitate an exclusive storage area as a cache area by operating the cache of a file piece by using an identifier applied to the file piece. SOLUTION: When a request for file reference is made to a memory page allocating mechanism 18, a cache controlling mechanism 17 checks whether or not the content of a pertinent file is already present in a memory page. When it is already present in the memory page, priority in a page structural body corresponding to it is incremented, and the memory page is provided. When it is not present in the memory page, the memory page with low priority held in the page structural body is selected by a memory page selecting mechanism 16, the content is canceled, the priority is initialized to the minimum value, a virtual identifier corresponding to a new file piece is applied, and this is provided. A side to which the memory page is provided operates actual I/O only when the content is invalid.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、仮想ファイルキャ
ッシュ制御方式に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a virtual file cache control system.

【0002】[0002]

【従来の技術】従来、計算機システムにおけるメモリ管
理機能には、ファイルのアタッチという機構が含まれて
いる。このファイルアタッチ機構は、ファイルシステム
に格納されたファイルに対して参照要求があった場合
に、ファイルシステムから読み出したファイルの内容を
計算機システム内のメモリに書き込んでおき、再びその
ファイルに対して参照要求があった場合に、ファイルシ
ステムに対して実I/Oを行うことなく、そのファイル
を参照することができるようになっている。
2. Description of the Related Art Conventionally, a memory management function in a computer system includes a mechanism for attaching a file. This file attach mechanism writes the contents of a file read from the file system to the memory in the computer system when there is a reference request for a file stored in the file system, and then refers to the file again. When a request is made, the file can be referred to without performing actual I / O to the file system.

【0003】このファイルアタッチ機構は、ファイルが
実際に存在する場所が、分散ファイルシステム上か否
か、あるいはある内容が同一ファイルに属するか否かに
左右されない。また、このアタッチ機構のために、専用
の外部記憶やメモリを必要としないという特徴を持って
いる。
[0003] This file attachment mechanism does not depend on whether the location where the file actually exists is on a distributed file system or whether certain contents belong to the same file. In addition, this attach mechanism has a feature that a dedicated external storage or memory is not required.

【0004】しかしながら、このアタッチ機構は、非常
に単純な機構であるため、実メモリが不足した際、即
ち、メモリを他の用途に使用する場合に、ファイルを破
棄する順番は、メモリページが解放された順に選択され
る。このため、ある一時期に大量のファイルアクセスを
行うと、以前に頻繁にアクセスが行われていたファイル
内容を保持するメモリであっても、破棄されてしまい、
再利用の効果が薄れるという問題がある。
However, since the attach mechanism is a very simple mechanism, when the real memory runs short, that is, when the memory is used for another purpose, the order in which files are discarded is determined by the order in which memory pages are released. Are selected in the order in which they were performed. For this reason, if a large amount of file access is performed at one time, even the memory that holds the file contents that were frequently accessed before will be discarded,
There is a problem that the effect of reuse is weakened.

【0005】このようなアタッチ機構に対して、特定の
場合におけるファイルアクセルの高速化のためのキャッ
シュ制御方式が提案されている。
With respect to such an attach mechanism, a cache control method for speeding up file access in a specific case has been proposed.

【0006】例えば、特開平7−93205号公報に
は、クライアントのキャッシュヒット率を向上させ、フ
ァイルアクセスを高速化する分散ファイルシステムが記
載されている。この分散ファイルシステムでは、ファイ
ルサーバが、ユーザ名とそのユーザが頻繁にアクセスす
るファイル名とを対応付けて記録するアクセス頻度デー
タベースを持ち、クライアントはログイン中のユーザ名
を記録するログインユーザテーブルと、キャッシュ優先
度制御モジュールを持っている。キャッシュ優先度制御
モジュールは、アクセス頻度データベースとログインユ
ーザテーブルの内容に基づいて、キャッシュ領域内の各
ファイルのコピーに優先度を設定する。そして、クライ
アントにログインするユーザごとに使用頻度の高いファ
イルを優先的にキャッシングすることにより、キャッシ
ュのヒット率を向上させ、ファイルアクセスを高速化す
る。
For example, Japanese Patent Application Laid-Open No. 7-93205 describes a distributed file system that improves the client cache hit rate and speeds up file access. In this distributed file system, the file server has an access frequency database that records a user name and a file name frequently accessed by the user in association with each other, and the client has a login user table that records the logged-in user name; Has a cache priority control module. The cache priority control module sets a priority for each file copy in the cache area based on the contents of the access frequency database and the login user table. Then, a file that is frequently used is preferentially cached for each user who logs in to the client, thereby improving the cache hit rate and speeding up file access.

【0007】また、特開平3−177946号公報に
は、バッファキャッシュメモリに優先順位(プライオリ
ティ)を持たせ、キャッシュヒット率を向上させた磁気
ディスクバッファ制御方式が記載されている。この磁気
ディスクバッファ制御方式は、計算機システムのファイ
ルシステムにおいて、磁気ディスクとのブロックデータ
入出力のためにメモリの一部をバッファキャッシュメモ
リに持ち、そのわいら手をアクセス頻度の高いブロック
データに優先させることで、入出力処理に要する時間を
低減する。プライオリティは、磁気ディスクのブロック
番号に対応させて管理し、アクセス頻度の高いディスク
ブロックのプライオリティを上げ、プライオリティの低
いブロックに対応するバッファキャッシュを優先して入
れ換えることにより、ファイルアクセスを高速化する。
Japanese Patent Laid-Open Publication No. Hei 3-177946 describes a magnetic disk buffer control system in which a buffer cache memory has a priority (priority) to improve a cache hit rate. In the magnetic disk buffer control method, in a file system of a computer system, a part of the memory is stored in a buffer cache memory for inputting / outputting block data to / from a magnetic disk, and the bribery takes precedence over frequently accessed block data. By doing so, the time required for input / output processing is reduced. The priority is managed in accordance with the block number of the magnetic disk, the priority of the disk block with high access frequency is increased, and the buffer cache corresponding to the block with low priority is preferentially replaced to speed up the file access.

【0008】[0008]

【発明が解決しようとする課題】第1の問題点は、主々
のファイルシステムにまたがった統一的なキャッシュ制
御ができないことである。
The first problem is that unified cache control over the main file systems cannot be performed.

【0009】その理由は、キャッシュ制御方式がファイ
ルシステムの種類によって制限されるので、ファイルシ
ステムの種類を意識する必要があるためである。
The reason is that the cache control method is limited by the type of the file system, so that it is necessary to be aware of the type of the file system.

【0010】第2の問題点は、キャッシュ領域としてそ
の用途にしか使用できない専用のメモリあるいは二次記
憶を必要とすることである。
A second problem is that a dedicated memory or a secondary storage which can be used only for the purpose as a cache area is required.

【0011】その理由は、キャッシュ制御機構が計算機
システムのメモリ管理機構と独立して存在するためであ
る。
The reason is that the cache control mechanism exists independently of the memory management mechanism of the computer system.

【0012】本発明は、あらゆるファイルシステムを統
一的に扱える仮想ファイルキャッシュ制御方式を提供す
ることを目的とする。
[0012] It is an object of the present invention to provide a virtual file cache control method that can uniformly handle all file systems.

【0013】また、本発明は、キャッシュ制御機構を計
算機システムのメモリ管理機構内に組み込む事で、キャ
ッシュ領域として専用の記憶領域を不要とすることを目
的とする。
Another object of the present invention is to eliminate the need for a dedicated storage area as a cache area by incorporating a cache control mechanism into a memory management mechanism of a computer system.

【0014】[0014]

【課題を解決するための手段】本発明によれば、ファイ
ルシステムに記憶されたファイル(図1の1及び2)を
メモリページ単位に分割してファイル断片(図1の3、
4、及び5)として、該ファイル断片にそれぞれ識別子
を付与し、前記ファイルシステムに接続された計算機シ
ステムからキャッシュ動作を行う場合に、前記識別子を
用いて前記ファイル断片のキャッシュを行うようにした
ことで、前記ファイルの種類によらず、前記キャッシュ
を行えるようにしたことを特徴とするキャッシュ制御方
式が得られる。
According to the present invention, a file (1 and 2 in FIG. 1) stored in a file system is divided into memory pages and a file fragment (3 in FIG. 1).
(4) and (5), when an identifier is assigned to each of the file fragments, and the cache operation is performed from a computer system connected to the file system, the file fragments are cached using the identifier. Thus, a cache control method is provided in which the cache can be performed irrespective of the type of the file.

【0015】本発明では、前記計算機システムが有する
メモリの記憶領域の一部をキャッシュメモリ領域として
使用する。
In the present invention, a part of the storage area of the memory of the computer system is used as a cache memory area.

【0016】また、本発明によれば、前記メモリの記憶
領域のメモリページに対応し、該メモリページに前記フ
ァイル断片が格納されているとき、該ファイル断片に付
与された前記識別子と、該ファイル断片に対するアクセ
ス回数により変化する優先度とを保持する保持手段を有
することを特徴とするキャッシュ制御方式がえられる。
According to the present invention, when the file fragment is stored in the memory page corresponding to a memory page of a storage area of the memory, the identifier given to the file fragment and the file There is provided a cache control method including a holding unit for holding a priority that changes according to the number of times of access to a fragment.

【0017】本発明では、前記優先度に基づいてファイ
ル断片を破棄する。
In the present invention, file fragments are discarded based on the priority.

【0018】さらに、本発明によれば、計算機システム
のメモリ管理機構に存在するアタッチ機構を基に、ファ
イル断片単位に付加される仮想的な識別子を制御の対象
として、キャッシュの優先度情報を付加し、ページの再
割り当ての際に優先度情報に従ってページを選択するこ
とによって、キャッシュ効果を高めるキャッシュ制御方
式が得られる。
Further, according to the present invention, based on an attach mechanism existing in a memory management mechanism of a computer system, cache priority information is added with a virtual identifier added in units of file fragments as a control target. By selecting a page in accordance with the priority information at the time of reassigning the page, a cache control method that enhances the cache effect can be obtained.

【0019】さらにまた、本発明によれば、ファイルあ
るいはファイルシステム毎にキャッシュの優先度属性を
持ち、キャッシュ優先度をコントロールするキャッシュ
制御方式が得られる。
Further, according to the present invention, a cache control method is provided which has a cache priority attribute for each file or file system and controls the cache priority.

【0020】[0020]

【作用】キャッシュ制御部は、仮想記憶技術を用いるこ
とによりファイルの種別を意識することなく、ファイル
システムに格納されたファイルを取り扱う。即ち、キャ
ッシュの管理対象が仮想的な情報であるため、キャッシ
ュ機構はファイルの実態の種別を意識しない。また、各
メモリページに格納されたファイルのアクセス頻度を表
す優先度情報に基づいてキャッシュを行うようにしたこ
とで、ファイルアクセスを高速化することができる。
The cache control unit handles files stored in the file system without being aware of the file type by using the virtual storage technology. That is, since the cache management target is virtual information, the cache mechanism does not recognize the type of the actual state of the file. Also, by performing caching based on priority information indicating the access frequency of the file stored in each memory page, file access can be speeded up.

【0021】[0021]

【発明の実施の形態】以下、図面を参照して本発明の実
施の形態について説明する。本実施の実施の形態による
仮想ファイルキャッシュ方式は、複数の種類の異なるフ
ァイルシステムに接続される計算機システムに採用され
る。
Embodiments of the present invention will be described below with reference to the drawings. The virtual file cache system according to the present embodiment is adopted in a computer system connected to a plurality of different file systems.

【0022】本発明の第1の実施の形態を図面を参照し
て説明する。
A first embodiment of the present invention will be described with reference to the drawings.

【0023】図1は、仮想ファイルキャッシュ方式にお
けるファイル断片とそれを管理する構造体との対応を示
しており、分散ファイルシステム、ローカルマシンの磁
気ディスクや光磁気ディスク、あるいはCD−ROMな
ど、何らかのファイルシステム上に存在するファイル1
と、ファイル1とは異なる種類のファイルシステム上に
存在するファイル2と、ファイル1をキャッシュ単位に
区切った時のファイルの一部であるファイル断片3及び
ファイル断片4と、ファイル2をキャッシュ単位に区切
った時のファイルの一部であるファイル断片5と、計算
機システムのメモリ6と、メモリの一部でファイル断片
3の内容を保持するメモリページ7と、ファイル断片5
の内容を保持するメモリページと、システム中の全メモ
リページに対して一対一に対応して存在し、メモリペー
ジの状態を管理するページ構造体の配列10と、メモリ
ページ7に対応するページ構造体11と、メモリページ
9に対応するページ構造体13とを示している。メモリ
ページ7及び9以外のメモリページは、何らかの用途に
使用されており、現状キャッシュとしては使用できない
状態にあるとする。
FIG. 1 shows the correspondence between a file fragment and a structure for managing the file fragment in the virtual file cache system, and includes a distributed file system, a magnetic disk or a magneto-optical disk of a local machine, or a CD-ROM. File 1 existing on the file system
A file 2 existing on a file system of a different type from the file 1, a file fragment 3 and a file fragment 4 which are part of the file when the file 1 is divided into cache units, and a file 2 in a cache unit. A file fragment 5 which is a part of the file at the time of division, a memory 6 of the computer system, a memory page 7 which holds the contents of the file fragment 3 in a part of the memory, and a file fragment 5
, An array 10 of page structures that exist in one-to-one correspondence with all memory pages in the system and manage the state of memory pages, and a page structure corresponding to memory page 7 2 shows a body 11 and a page structure 13 corresponding to the memory page 9. It is assumed that memory pages other than the memory pages 7 and 9 are used for some purpose, and cannot be used as a cache at present.

【0024】図2は、仮想ファイルキャッシュ方式にお
けるページ構造体11の持つ情報のうち、本発明に関す
る部分であり、従来からメモリ管理機構に備わってい
る、ページ構造体が管理するメモリページがどのファイ
ルの内容を保持しているかを仮想的に表す識別子14
と、そのメモリページをどれだけ優先してキャッシュす
るかを表す優先度15を持つことを示している。他のペ
ージ構造体についても同様に対応するメモリページの情
報を保持している。
FIG. 2 shows a part related to the present invention in the information of the page structure 11 in the virtual file cache system, and the memory page managed by the page structure, which is conventionally provided in the memory management mechanism, Identifier 14 that virtually represents whether the content of
Indicates that the memory page has a priority 15 indicating how much priority is given to caching the memory page. The other page structures also hold information on corresponding memory pages.

【0025】図3は、仮想ファイルキャッシュ方式にお
いて、現在キャッシュとしてファイルの内容を保持して
いるメモリページの中から、内容を破棄するメモリペー
ジを選択するメモリページ選択機構16であり、ページ
構造体内の優先度をチェックし、優先度が最も低いメモ
リページを選択する機構を示している。
FIG. 3 shows a memory page selection mechanism 16 for selecting a memory page whose contents are to be discarded from among memory pages currently holding the contents of a file as a cache in the virtual file cache system. , And a mechanism for selecting the memory page with the lowest priority.

【0026】図4は、仮想ファイルキャッシュ方式のお
いて、仮想的な識別子指定で要求されたファイルの内容
が既にメモリページ内に存在した場合に、該当するメモ
リページを選択し、それと同時に対応するページ構造体
内の優先度を増加させる機能を持ったキャッシュ制御機
構17を示している。該当するメモリページが存在しな
い場合は検索に失敗する。
FIG. 4 shows that, in the virtual file cache system, when the contents of a file requested by specifying a virtual identifier already exist in a memory page, the corresponding memory page is selected, and at the same time, the corresponding memory page is selected. The cache control mechanism 17 having a function of increasing the priority in the page structure is shown. If the corresponding memory page does not exist, the search fails.

【0027】図5は、仮想ファイルキャッシュ方式にお
いて、メモリページ選択機構16とキャッシュ制御機構
を組み合わせたメモリページ割り当て機構18を示して
いる。この機構は仮想的な識別子を指定して特定のファ
イルを参照しようとした場合に、最初にまずキャッシュ
制御機構17を用い該当ページが存在するかどうかチェ
ックする。既に該当する内容がメモリページ内に存在し
た場合はそれを返し、存在していない場合は、次にメモ
リページ選択機構16を用い、内容を破棄するメモリペ
ージを選択し、最終的にそのメモリページを返却する。
この機構の使用者は内容が無効であるメモリページが返
却された場合には実際にファイルからの読み込みを行
い、内容をそのメモリページに格納し、内容が存在する
メモリページが返却された場合はそれをそのまま使用す
る。
FIG. 5 shows a memory page allocation mechanism 18 in which a memory page selection mechanism 16 and a cache control mechanism are combined in the virtual file cache system. In this mechanism, when an attempt is made to refer to a specific file by designating a virtual identifier, first, the cache control mechanism 17 is used to check whether the corresponding page exists. If the corresponding content already exists in the memory page, it is returned. If not, the memory page selecting mechanism 16 is next used to select a memory page whose content is to be discarded, and finally, the memory page is deleted. Is returned.
The user of this mechanism should actually read from the file when the memory page whose contents are invalid is returned, store the contents in that memory page, and return the memory page where the contents exist Use it as is.

【0028】以下、本発明の第1の実施の形態の動作に
ついて図面を参照して説明する。
Hereinafter, the operation of the first embodiment of the present invention will be described with reference to the drawings.

【0029】メモリページ割り当て機構18に対し、フ
ァイル参照の要求が行われた際、まずキャッシュ制御機
構は、該当するファイルの内容が既にメモリページ中に
存在するかどうかチェックする。既にメモリページ中に
存在する場合には、それに対応するページ構造体内の優
先度をインクリメントし、そのメモリページを提供す
る。メモリページ中に存在しない場合は、メモリページ
選択機構16によってページ構造体内に保持されている
優先度が低いメモリページを選択し、内容を破棄、次い
で優先度を最低値に初期化し、新たなファイル断片に対
応した仮想的な識別子を与え、それを提供する。メモリ
ページを提供された側は、その内容が無効な場合にのみ
実I/Oを行えばよい。
When a file reference request is made to the memory page allocating mechanism 18, first, the cache control mechanism checks whether or not the contents of the corresponding file already exist in the memory page. If it already exists in the memory page, the priority in the corresponding page structure is incremented and the memory page is provided. If it does not exist in the memory page, the memory page selection mechanism 16 selects a low-priority memory page held in the page structure, discards the contents, then initializes the priority to the lowest value, and adds a new file. Give a virtual identifier corresponding to the fragment and provide it. The side provided with the memory page need only perform the real I / O when the content is invalid.

【0030】図1において、ファイル断片3及びファイ
ル断片5は、それぞれ既にメモリページ7及び9に存在
しており、キャッシュされた状態にある。ここでそれぞ
れのメモリページを管理するページ構造体11及び13
に保持されている優先度が5及び2だとする。これはフ
ァイル断片3の方がより多く参照されていることを示し
ている。
In FIG. 1, file fragment 3 and file fragment 5 already exist in memory pages 7 and 9, respectively, and are in a cached state. Here, page structures 11 and 13 for managing respective memory pages
Suppose that the priorities held in are stored in 5 and 2. This indicates that file fragment 3 is referenced more.

【0031】ここで、ファイル断片5に対して参照が行
われた場合、メモリページ割り当て機構18は、キャッ
シュ制御機構17を用い、既に存在するメモリページ9
を選択する。同時にキャッシュ制御機構17はメモリペ
ージ9に対応するページ構造体13内の優先度をインク
リメントし、優先度は3に更新される。そしてメモリペ
ージ割り当て機構18は、メモリページ9の内容を有効
として返却する。このメモリページ9派、内容が有効で
あるため、実際にI/Oを行うことなく、ファイル断片
5の内容を参照できる。
Here, when the file fragment 5 is referred to, the memory page allocating mechanism 18 uses the cache control mechanism 17 to store the already existing memory page 9.
Select At the same time, the cache control mechanism 17 increments the priority in the page structure 13 corresponding to the memory page 9, and the priority is updated to 3. Then, the memory page allocation mechanism 18 returns the contents of the memory page 9 as valid. Since the contents of the nine memory pages are valid, the contents of the file fragment 5 can be referred to without actually performing I / O.

【0032】次にファイル断片4に対して参照が行われ
た場合、メモリページ割り当て機構18は、キャッシュ
制御機構を用いてメモリページ内に存在するかどうかチ
ェックするが、ファイル断片4の内容は現在メモリペー
ジ内に存在しないため、これは失敗する。そこでメモリ
ページ割り当て機構18は、次に、メモリページ選択機
構16を用いて内容を破棄するメモリページを選択す
る。現在の各メモリページの優先度はメモリページ7派
5、メモリページ9は3であるため、メモリページ選択
機構16は、メモリページ9を選択する。選択されたメ
モリページ9に対応するページ構造体内の識別子をファ
イル断片4のもに付け替え、優先度は0に初期化する。
そして、メモリページ割り当て機構18は、メモリペー
ジ9を内容が無効として返却する。内容が無効として返
却された場合は、その後実際にI/Oを行ってファイル
断片4の内容をメモリページ9に読み込んで使用する。
ここでI/Oまで完了した状態を図6に示す。
Next, when a reference is made to the file fragment 4, the memory page allocation mechanism 18 checks whether or not the file fragment 4 exists in the memory page by using the cache control mechanism. This fails because it is not in a memory page. Then, the memory page allocating mechanism 18 uses the memory page selecting mechanism 16 to select a memory page whose contents are to be discarded. Since the current priority of each memory page is memory page group 5 and memory page 9 is 3, the memory page selecting mechanism 16 selects the memory page 9. The identifier in the page structure corresponding to the selected memory page 9 is replaced with that of the file fragment 4, and the priority is initialized to 0.
Then, the memory page allocating mechanism 18 returns the memory page 9 as invalid. If the contents are returned as invalid, then the I / O is actually performed to read the contents of the file fragment 4 into the memory page 9 and use it.
FIG. 6 shows a state in which I / O is completed.

【0033】この機構において、各メモリページは仮想
的な識別子により統一的に扱われるため、仮想ファイル
キャッシュ方式は、ファイルの実態がいかなるファイル
システム上に存在するかを意識しない。また、計算機シ
ステムにおける既存のメモリ管理機能を基にしているた
め、この方式の実施に際して新たにキャッシュ専用の記
憶領域を必要としない。
In this mechanism, since each memory page is unified by a virtual identifier, the virtual file cache method does not consider what file system exists on the file system. Further, since this method is based on the existing memory management function in the computer system, a new storage area dedicated to the cache is not required when implementing this method.

【0034】次に、本発明の第2の実施の形態について
図面を参照して説明する。
Next, a second embodiment of the present invention will be described with reference to the drawings.

【0035】図7を参照すると、本発明の第2の実施の
形態は、ファイルあるいはファイルシステム毎に、一度
参照された際にキャッシュ優先度をどれだけ上昇させる
かを表す優先度属性19及び20を付加した点で第1の
実施の形態と異なる。キャッシュ制御機構17は、ペー
ジ構造体内の優先度を増加させる際に、この優先度属性
を参照して増加量を決定する。
Referring to FIG. 7, according to the second embodiment of the present invention, priority attributes 19 and 20 indicating, for each file or file system, how much the cache priority is increased when referenced once. Is different from the first embodiment in that When increasing the priority in the page structure, the cache control mechanism 17 determines the increase amount by referring to the priority attribute.

【0036】以下、本発明の第2の実施の形態の動作に
ついて説明する。
The operation of the second embodiment of the present invention will be described below.

【0037】図7において、ファイル1の優先度属性1
9は1、ファイル2の優先度属性は3とする。また、フ
ァイル断片3、ファイル断片5はそれぞれ既にメモリペ
ージ7及び9に存在しており、キャッシュされた状態に
ある。ここでそれぞれのメモリページを管理するページ
構造体11及び13に保持されている優先度が5及び6
だとする。即ち、ファイル断片3はこれまでに5回、フ
ァイル断片5は2回参照されている。アクセス頻度から
いえば、ファイル断片3の方が多いが、ファイル2の優
先度属性が高いため2回だけアクセスのあったファイル
断片5の方が優先度が高くなっている。そのため、この
状態でメモリページ選択機構16が働くと、メモリペー
ジ7の内容が破棄されることになる。
In FIG. 7, priority attribute 1 of file 1
9 is 1 and the priority attribute of file 2 is 3. The file fragment 3 and the file fragment 5 already exist in the memory pages 7 and 9, respectively, and are in a cached state. Here, the priorities held in the page structures 11 and 13 for managing the respective memory pages are 5 and 6.
Suppose That is, file fragment 3 has been referenced five times and file fragment 5 has been referenced twice. In terms of access frequency, file fragment 3 is more common, but file 2 has a higher priority attribute, and file fragment 5 that has been accessed only twice has higher priority. Therefore, if the memory page selection mechanism 16 operates in this state, the contents of the memory page 7 will be discarded.

【0038】第2の実施の形態は、ファイルあるいはフ
ァイルシステムごとにキャッシュの優先度を設定でき
る。そのため、特に高速性が要求されるファイルが存在
する場合にキャッシュ機構を有効には働かせることがで
きる。
In the second embodiment, the priority of the cache can be set for each file or file system. Therefore, especially when there is a file that requires high speed, the cache mechanism can be effectively operated.

【0039】なお本発明の実施の形態では、2つのファ
イルあるいはファイルシステムが存在する場合について
説明したが、ファイルやファイルシステムの数に制限は
ない。
In the embodiment of the present invention, the case where two files or file systems exist is described, but the number of files and file systems is not limited.

【0040】[0040]

【発明の効果】第1の効果は、ファイルの実態がどのよ
うなファイルシステム上にあるか関係なく、キャッシュ
効果を得ることができることである。
The first effect is that a cache effect can be obtained irrespective of the file system on which the file is actually located.

【0041】その理由は、キャッシュ制御する対象が、
ファイルの断片の内容を抽象化したメモリページである
ためである。
The reason is that the cache control target is
This is because the memory page is an abstraction of the contents of a file fragment.

【0042】第2の効果は、ファイルキャッシュのため
にそれ専用の記憶領域を必要としないことである。
A second effect is that a dedicated storage area is not required for the file cache.

【0043】その理由は、キャッシュ制御機構を、計算
機システムのメモリ管理機構の一部として組み込むため
である。
The reason is that the cache control mechanism is incorporated as a part of the memory management mechanism of the computer system.

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

【図1】本発明のファイルとキャッシュ制御の管理構造
体との対応を示す図である。
FIG. 1 is a diagram showing the correspondence between a file and a cache control management structure according to the present invention.

【図2】図1の管理構造体の内部にある識別子と優先度
の情報を示す図である。
FIG. 2 is a diagram showing information on identifiers and priorities inside a management structure shown in FIG. 1;

【図3】メモリページ選択機構と管理構造体との関連を
示す図である。
FIG. 3 is a diagram showing a relationship between a memory page selection mechanism and a management structure.

【図4】キャッシュ制御機構と管理構造体との関連を示
す図である。
FIG. 4 is a diagram showing a relationship between a cache control mechanism and a management structure.

【図5】キャッシュ制御機構とメモリページ選択機構と
を有するメモリページ割り当て機構を示す図である。
FIG. 5 is a diagram illustrating a memory page allocation mechanism having a cache control mechanism and a memory page selection mechanism.

【図6】本発明の第1の実施の形態を示す図である。FIG. 6 is a diagram showing a first embodiment of the present invention.

【図7】本発明の第2の実施の形態を示す図である。FIG. 7 is a diagram showing a second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1,2 ファイル 3,4,5 ファイル断片 6 メモリ 7,9 メモリページ 10 ページ構造体の配列 11,13 ページ構造体 14 識別子 15 優先度 16 メモリページ選択機構 17 キャッシュ制御機構 18 メモリページ割り当て機構 19,20 優先度属性 1, 2, 3, 4, 5 file fragments 6 memory 7, 9 memory pages 10 array of page structures 11, 13 page structures 14 identifier 15 priority 16 memory page selection mechanism 17 cache control mechanism 18 memory page allocation mechanism 19 , 20 Priority attribute

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ファイルシステムに記憶されたファイル
をメモリページ単位に分割してファイル断片として、該
ファイル断片にそれぞれ識別子を付与し、前記ファイル
システムに接続された計算機システムからキャッシュ動
作を行う場合に、前記識別子を用いて前記ファイル断片
のキャッシュを行うようにしたことで、前記ファイルの
種類によらず、前記キャッシュを行えるようにしたこと
を特徴とする仮想ファイルキャッシュ制御方式。
When a file stored in a file system is divided into memory pages as file fragments, an identifier is assigned to each of the file fragments, and a cache operation is performed from a computer system connected to the file system. A virtual file cache control method, wherein the file fragment is cached using the identifier, so that the cache can be performed regardless of the type of the file.
【請求項2】 前記計算機システムが有するメモリの記
憶領域の一部をキャッシュメモリ領域として使用するよ
うにしたことを特徴とする請求項1の仮想ファイルキャ
ッシュ制御方式。
2. The virtual file cache control method according to claim 1, wherein a part of a storage area of a memory of said computer system is used as a cache memory area.
【請求項3】 前記メモリの記憶領域のメモリページに
対応し、該メモリページに前記ファイル断片が格納され
ているとき、該ファイル断片に付与された前記識別子
と、該ファイル断片に対するアクセス回数により変化す
る優先度とを保持する保持手段を有することを特徴とす
る請求項1または2の仮想ファイルキャッシュ制御方
式。
3. When the file fragment is stored in the memory page corresponding to a memory page in a storage area of the memory, the file fragment changes according to the identifier assigned to the file fragment and the number of accesses to the file fragment. 3. The virtual file cache control system according to claim 1, further comprising a storage unit that stores the priority of the virtual file cache.
【請求項4】 前記優先度に基づいてファイル断片を破
棄するようにしたことを特徴とする請求項3の仮想ファ
イルキャッシュ制御方式。
4. The virtual file cache control method according to claim 3, wherein file fragments are discarded based on the priority.
JP8196174A 1996-07-25 1996-07-25 System controlling virtual file cache Pending JPH1040147A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8196174A JPH1040147A (en) 1996-07-25 1996-07-25 System controlling virtual file cache

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8196174A JPH1040147A (en) 1996-07-25 1996-07-25 System controlling virtual file cache

Publications (1)

Publication Number Publication Date
JPH1040147A true JPH1040147A (en) 1998-02-13

Family

ID=16353436

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8196174A Pending JPH1040147A (en) 1996-07-25 1996-07-25 System controlling virtual file cache

Country Status (1)

Country Link
JP (1) JPH1040147A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100765647B1 (en) * 2006-09-13 2007-10-10 기아자동차주식회사 Apparatus for understeer induction of vehicle
US7797477B2 (en) 2003-04-10 2010-09-14 Hitachi, Ltd. File access method in a storage system, and programs for performing the file access
JP2016162168A (en) * 2015-03-02 2016-09-05 株式会社メガチップス Cache file system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7797477B2 (en) 2003-04-10 2010-09-14 Hitachi, Ltd. File access method in a storage system, and programs for performing the file access
KR100765647B1 (en) * 2006-09-13 2007-10-10 기아자동차주식회사 Apparatus for understeer induction of vehicle
JP2016162168A (en) * 2015-03-02 2016-09-05 株式会社メガチップス Cache file system

Similar Documents

Publication Publication Date Title
US6629201B2 (en) System and method for high-speed substitute cache
US5884303A (en) Parallel searching technique
JPH0816470A (en) Parallel computer
US6934813B1 (en) System and method for caching data based on identity of requestor
US20020178176A1 (en) File prefetch contorol method for computer system
JP2005056077A (en) Database control method
US7032093B1 (en) On-demand allocation of physical storage for virtual volumes using a zero logical disk
JP2781092B2 (en) Exclusive control method between systems
US6434553B1 (en) File prefetch control method for computer system
JPH06332625A (en) Data multiplexing method for file and data processing system
CN117608856A (en) Memory expansion method, system, terminal and storage medium for NVMe (network video Me) acceleration card
JPH11143779A (en) Paging processing system for virtual storage device
JPH0844602A (en) Data managing device
JPH1040147A (en) System controlling virtual file cache
US6904441B2 (en) Method and apparatus for providing file system access to a disk array
JPH08314779A (en) Server system
JP2001022614A (en) Hierarchical storage system
JP2636470B2 (en) Data transfer path selection method
JPH09319658A (en) Memory managing system for variable page size
JP2000047933A (en) Bidirectional memory securing management system
JPH06266619A (en) Page saving/restoring device
JPH06175903A (en) File management system
EP0545822B1 (en) A common file access system and a common file access method in a distributed memory type computer system
JPH0520154A (en) Block managing system
JP2817911B2 (en) Access control method for keyed files

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990916