JPS58194188A - Accessing mechanism of random file - Google Patents

Accessing mechanism of random file

Info

Publication number
JPS58194188A
JPS58194188A JP57076391A JP7639182A JPS58194188A JP S58194188 A JPS58194188 A JP S58194188A JP 57076391 A JP57076391 A JP 57076391A JP 7639182 A JP7639182 A JP 7639182A JP S58194188 A JPS58194188 A JP S58194188A
Authority
JP
Japan
Prior art keywords
page
file
random file
access information
access
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
JP57076391A
Other languages
Japanese (ja)
Inventor
Hiroshi Nakanishi
仲西 弘
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP57076391A priority Critical patent/JPS58194188A/en
Publication of JPS58194188A publication Critical patent/JPS58194188A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To decrease the time of execution of a program, by collecting and storing access information to a random file, and reducing the number of accessing to the random file with an optimum access pattern decided on the basis of the access information at accessing. CONSTITUTION:If the content of an accessed page does not exist in a page memory 2, the information of FAIT5 is received from an observer 6, the content of a page having the lowest probability of use in future among pages existing in the page memory 2 is returned to the random file, the content of a record number is transferred from the random file to the area from which the content is returned and also to a buffer. Since the access information is fed back to a file control program 7 via the observer 6, the accessing is done according to the access pattern in matching with the program. The observer 6 is operated independently without any relation to the file control program 7, collects the access information successively and processes the information and stores it in the FAIT5. The access information stored in the FAIT5 is stored just after the use of file and loaded to the FAIT5 at the start of use.

Description

【発明の詳細な説明】 発明の属する分野 この発明は、電子計算機システムにおけるランダムファ
イルのアクセス機構に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention This invention relates to a random file access mechanism in a computer system.

従来技術の構成 オ1図は従来のランダムファイルのアクセス機構を示す
説明図であり、図において(1)は主記憶、(2)はペ
ージメモリ、(3)はページメモ1月2)を管理するた
めの管理テーブル、(41はランダムファイルである。
Figure 1 is an explanatory diagram showing the conventional random file access mechanism. In the figure, (1) is the main memory, (2) is the page memory, and (3) is the page memory management system. A management table for (41 is a random file).

ランダムファイル(4:全ページという概念で分割し、
主記憶はlt/c数ページないし数十ページを記憶させ
ておくことができるエリアをページメモ1月21として
割り付け、このページメモリ(2)全管理するための管
理テーブル(3)ヲ持たせる。管理テーブル131は、
ページメモリ(2)に記憶されているページのページ番
号、ページメモリアドレス、前回アクセスしたページ、
次回アクセスするページの情報を持っている。
Random file (4: Divide based on the concept of all pages,
The main memory is allocated an area capable of storing lt/c several pages to several tens of pages as a page memo 21, and has a management table (3) for managing all of this page memory (2). The management table 131 is
The page number of the page stored in page memory (2), the page memory address, the last accessed page,
Contains information about the next page you will access.

従来技術の動作 ランダムファイル(4;にレコード番号という形でアク
セスがかけられると、レコード番号からページ番号を算
出し、管理テーブル(41を探索する。ページメモリ1
2)に必要なページが存在する場合は、ページメモリ(
2)からレコード番号の内容をバッファに転送する。ペ
ージメモリ(2)に存在しない場合は、書込みを行って
いないエリアを探索し、書込みを行っていないページメ
モリ(2)のエリヤにランダムファイル(4)からレコ
ード番号の内容を転送して、バッファに転送する。書込
みを行っていないx IIアの探索はアクセスしたペー
ジのアクセスの古い順に行う。もし、ページメモリ鬼2
:に書込みを行っていないページが存在しなかったら、
最も古くアクセスしたページの内容をランダムファイル
にもどし、その結果生じたページメモリ(2)の空白の
エリアにランダムファイル(41からレコード番号の内
容を転送する。
Operation of the prior art When a random file (4) is accessed in the form of a record number, a page number is calculated from the record number and the management table (41 is searched.
2) If the required page exists, the page memory (
2) Transfer the contents of the record number to the buffer. If it does not exist in the page memory (2), it searches for an area that has not been written to, transfers the contents of the record number from the random file (4) to the area of the page memory (2) that has not been written, and then buffers it. Transfer to. The search for xIIa that has not been written to is performed in the order of the oldest accessed pages. If page memory demon 2
: If there is no page that has not written to
The contents of the oldest accessed page are returned to the random file, and the contents of the record number are transferred from the random file (41) to the resulting blank area of the page memory (2).

従来技術の欠点 従来のう・ンダムファイルのアクセス機構は以上のよう
に構成されているので、主記憶(IIのベージ畝モリ(
2)に存在しないページがアクセスされると、最も古く
アクセスしたページの内容をランダムファイル(41に
もどしたあとに、新なページの内容がロードされるので
、ユーザプログラムによっては逆にランダムファイルか
ら転送する回数が増加するという欠点があった。
Disadvantages of the prior art Since the conventional undam file access mechanism is configured as described above, the main memory (II's page memory (
2) When a page that does not exist is accessed, the content of the oldest accessed page is returned to the random file (41) and then the new page content is loaded. The disadvantage is that the number of transfers increases.

本発明の目的 この発明は上記のような従来のものの欠点を除去するた
めになされたもので、ランダムファイルへのアクセス情
報を収集し記憶しておき、アクセス時に上記アクセス情
報にもとづいて決定された鍛適なアクセスパターンによ
り、ランダムファイルに対するアクセス回数を最小にす
ることができるランダムファイルのアクセス機構を提供
することを目的としている。
Purpose of the present invention This invention was made in order to eliminate the drawbacks of the conventional ones as described above.Access information to a random file is collected and stored, and the access information is determined based on the access information at the time of access. The purpose of this invention is to provide a random file access mechanism that can minimize the number of accesses to a random file using a well-defined access pattern.

本発明の構成 以下、この発明の一実施例を図について説明する。第2
図はこの発明の一実施例を示す説明図であり、図におい
てtl+ 、 121 、 +31 、141扛オ1図
の同一 ゛符号と同一または相当する部分を示し、(5
)は収集したアクセス情V&を格納しておくファイルア
クセス情報テーブル(以下FAITと略記する)、16
+はアクセス情報を収集してFAIT151に格納した
り、ファイル制御プログラム(7)に対して必要な情報
を提供するオブザーバ、(7)はファイル制御プログラ
ムである。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will now be described with reference to the drawings. Second
The figure is an explanatory diagram showing one embodiment of the present invention.
) is a file access information table (hereinafter abbreviated as FAIT) that stores the collected access information V&, 16
+ is an observer that collects access information and stores it in the FAIT 151 and provides necessary information to the file control program (7), and (7) is the file control program.

本発明の動作 ランダムファイル141にレコード番号という形でアク
セスがかけられると、レコード番号からページ番号を算
出し、管理テーブル+41 を探索する。ページメモリ
(2)に必要なページが存在する場合は従来どおりであ
る。
When the random file 141 of the present invention is accessed in the form of a record number, a page number is calculated from the record number and the management table +41 is searched. If the necessary page exists in the page memory (2), it is the same as before.

アクセスされたページの内容がページメモリ(21に存
在しない場合#′i、オブザーバ16)よプFAIT1
51の情報をもらい、ページメモリ(2)に存在するペ
ージのうち今後最も使う確率の低いページの内容をラン
ダムファイルにもどし、そのあとのエリアにランダムフ
ァイルからレコード番号の内容を転送して、バッファに
転送する。
If the contents of the accessed page do not exist in the page memory (21, #'i, observer 16) FAIT1
51 information, return the contents of the page that has the lowest probability of being used in the future among the pages existing in page memory (2) to the random file, transfer the contents of the record number from the random file to the subsequent area, and transfer the contents of the record number to the buffer. Transfer to.

アクセス情報がオブザーバ(6)を介してファイル制御
プログラム(7)にフィードバックされるので、プログ
ラムに即したアクセスパターンによりアクセスされる。
Since the access information is fed back to the file control program (7) via the observer (6), access is performed according to an access pattern suitable for the program.

オブザーバ(61は、ファイル制御プログラム(7)ト
関連なく、独立に動作して、システムのオーバーヘッド
に影響を与えないようになっており、アクセス情報を絶
えず収集して、加工しFAITt51に格納する。この
FAITI51に格納されているアクセス情報は、ファ
イルの使用後に先頭に格納されていて、使用開始時にF
AIT15+にロードされる。
The observer (61) operates independently without being related to the file control program (7) so as not to affect the system overhead, and constantly collects access information, processes it, and stores it in the FAITt51. The access information stored in this FAITI51 is stored at the beginning after the file is used, and is stored in the FAITI51 at the beginning of use.
Loaded into AIT15+.

発明の他の実施例 上記実施例では大容量ファイルへのアクセスの場合につ
いて説明したが、主記憶へのアクセスの場合に適用して
も同様の効果を奏する。この場合主記憶1211にキャ
シュメモリで、ファイル制御プログラム(71゛を主記
憶制御プログラムで、ランダムファイル(4;を主記憶
で置き換えればよい。
Other Embodiments of the Invention In the above embodiments, the case of accessing a large-capacity file has been described, but the same effect can be obtained even if it is applied to the case of accessing the main memory. In this case, it is sufficient to replace the main memory 1211 with a cache memory, the file control program (71) with the main memory control program, and the random file (4; with the main memory).

本発明の効果 以上のように、この発明によればユーザプログラムに即
したアクセスパターンによりランダムファイルに対する
アクセス回数を減らすことがてきるので、プログラムの
実行時間を短くすることができ、システム全体のオーバ
ーヘッドを減らしてシステムスループットが向上する効
果がある。
Effects of the Present Invention As described above, according to the present invention, the number of accesses to random files can be reduced by using an access pattern that matches the user program, so the execution time of the program can be shortened, and the overhead of the entire system can be reduced. This has the effect of reducing system throughput and improving system throughput.

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

第1図は従来のランダムファイルのアクセス機構を示す
説明図、第2図はこの発明の一実施例を示す説明図であ
る。 図において(1)は主記憶、(2)はページメモリ、(
31は管理テーブル、(41はランダムファイル、(5
)はファイルアクセス情報テーブル、;6)はオブザー
バ、(7)はファイル制御プログラムである。 なお各図中同一符号は同一または相当する部分を示すも
のとする。 代理人 葛 野 信 −
FIG. 1 is an explanatory diagram showing a conventional random file access mechanism, and FIG. 2 is an explanatory diagram showing an embodiment of the present invention. In the figure, (1) is main memory, (2) is page memory, (
31 is a management table, (41 is a random file, (5
) is a file access information table, ;6) is an observer, and (7) is a file control program. Note that the same reference numerals in each figure indicate the same or corresponding parts. Agent Shin Kuzuno −

Claims (1)

【特許請求の範囲】[Claims] ページといり概念で分割したランダムファイルの各ペー
ジのうち数ページないし数十ページの内容全詐己憶させ
ておくことができる主記憶のエリアと、このエリアを管
理するための上記主記憶に持たせた上記エリアに記憶さ
れているページのページ番号とページメモリアドレスお
よび前回アクセスしたページと次回アクセスするページ
の情報を内容とする管理テーブルと、上記ランダムファ
イルへのアクセス情報を収集し記憶しておきアクセス時
に上記アクセス情報によって最適のアクセスパターンを
決定する手段とを備えたランダムファイルのアクセス゛
機構。
An area of the main memory that can store the entire contents of several to several dozen pages of each page of a random file divided according to the page concept, and an area of the main memory that is used to manage this area. A management table containing the page number and page memory address of the page stored in the above area, the last accessed page and the next accessed page, and the access information to the above random file are collected and stored. A random file access mechanism comprising means for determining an optimal access pattern based on the above access information at the time of frequent access.
JP57076391A 1982-05-07 1982-05-07 Accessing mechanism of random file Pending JPS58194188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57076391A JPS58194188A (en) 1982-05-07 1982-05-07 Accessing mechanism of random file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57076391A JPS58194188A (en) 1982-05-07 1982-05-07 Accessing mechanism of random file

Publications (1)

Publication Number Publication Date
JPS58194188A true JPS58194188A (en) 1983-11-12

Family

ID=13604016

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57076391A Pending JPS58194188A (en) 1982-05-07 1982-05-07 Accessing mechanism of random file

Country Status (1)

Country Link
JP (1) JPS58194188A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62194555A (en) * 1986-02-21 1987-08-27 Nec Corp Work file virtualizing system for compiler
JPS647137A (en) * 1987-06-29 1989-01-11 Nec Corp Migration recall system for file
JPH01197854A (en) * 1988-02-02 1989-08-09 Nec Corp Migration recall system for file

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62194555A (en) * 1986-02-21 1987-08-27 Nec Corp Work file virtualizing system for compiler
JPS647137A (en) * 1987-06-29 1989-01-11 Nec Corp Migration recall system for file
JPH01197854A (en) * 1988-02-02 1989-08-09 Nec Corp Migration recall system for file

Similar Documents

Publication Publication Date Title
EP0439920B1 (en) System and method for memory management in a microcomputer
JPS58194188A (en) Accessing mechanism of random file
JPS63172343A (en) Instruction prefetching system
JP3875358B2 (en) Storage device, storage method, and recording medium
JPS6012658B2 (en) stack memory device
JPS634356A (en) Sharing processing system for disk cache sequential mode
KR920005296B1 (en) Information processing device
JPH09231053A (en) Parallel sort device
JPS62160545A (en) System for managing unused area of direct access storage device
JP2002032251A (en) Data processing system
JP2833814B2 (en) I / O buffer allocation method
JP2583403B2 (en) Backing store management method
JPH0795297B2 (en) File access controller
JPH026094B2 (en)
JPS60142757A (en) Address converting device
JPH09231012A (en) Volume copy system between direct access type external storage devices
JPH0329041A (en) Decentralized paging control system
JPH0511331B2 (en)
JPH04291642A (en) Cache control system
JPH04266140A (en) Address conversion buffer device
JPH07295881A (en) Cache device
JPS6162124A (en) Data transfer system
JPH07200407A (en) Virtual storage system
JPH0421223B2 (en)
JPS6124734B2 (en)