JPH0795297B2 - File access controller - Google Patents
File access controllerInfo
- Publication number
- JPH0795297B2 JPH0795297B2 JP60224101A JP22410185A JPH0795297B2 JP H0795297 B2 JPH0795297 B2 JP H0795297B2 JP 60224101 A JP60224101 A JP 60224101A JP 22410185 A JP22410185 A JP 22410185A JP H0795297 B2 JPH0795297 B2 JP H0795297B2
- Authority
- JP
- Japan
- Prior art keywords
- page
- page data
- file
- control table
- data
- 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.)
- Expired - Lifetime
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】 〔概要〕 本発明は、情報処理部と仮想用紙のページデータを記憶
するフアイルの間に、ページバツフアとそのページデー
タの更新,参照の状態を示す制御テーブルを具えたフア
イルアクセスシステムで、該制御テーブルの内容が更新
を要するページデータのみとなつた場合、第2の制御テ
ーブルの処理情報を用い、現処理位置から十分離れた複
数の連続するページデータをフアイルへセーブするよう
制御することにより、ページバツフアのデータの入替え
を高速化し、フアイルアクセス回数を減らすようにした
ものである。DETAILED DESCRIPTION OF THE INVENTION [Outline] The present invention provides a file including a page buffer and a control table indicating a state of updating and referencing the page data between an information processing unit and a file storing page data of a virtual sheet. In the access system, when the content of the control table is only the page data that needs to be updated, the processing information of the second control table is used to save a plurality of continuous page data sufficiently far from the current processing position in the file. By performing such control, the data exchange of the page buffer is speeded up and the number of file accesses is reduced.
本発明は仮想用紙のページデータを記憶するフアイルの
アクセス制御装置の改善に関するものである。The present invention relates to an improvement of a file access control device for storing page data of virtual paper.
従来、情報処理部の制御下に、後述の仮想用紙のページ
データを記憶したフアイル,たとえば外部記憶装置との
間にページバツフアを介在させ、その両側の入出力に伴
なうページデータの更新,参照の状態を示すための制御
テーブルが設けられる。フアイルは仮想用紙の複数面を
有し、各面は物理的単位の2KB程度のページN個に分割
されて記憶され、この1個または複数のページによりペ
ージバツフアとフアイルの間で受渡しされる。Conventionally, under the control of an information processing unit, a file storing page data of a virtual sheet, which will be described later, for example, a page buffer is provided between the file and an external storage device, and page data is updated and referred to due to input / output on both sides thereof. A control table is provided to indicate the state of. The file has a plurality of sides of virtual paper, and each side is divided into N pages of a physical unit of about 2 KB and stored, and the one or a plurality of pages transfers between the page buffer and the file.
第3図(a),(b)はこの形式の従来のフアイルアク
セスシステムの1例を示したものである。FIGS. 3A and 3B show an example of a conventional file access system of this type.
同図において、情報処理部1よりフアイル4内の前記仮
想用紙No.と用紙内ページNo.のアドレスに対するリード
(参照)またはライト(更新)の要求が制御バツフア2
を介しページバツフア3に送られる。この要求に従い、
フアイル4内の必要なアドレスをアクセスしてページバ
ツフア3にロードし、逆にページバツフア3に書込まれ
ている更新するページデータをフアイル4の該当アドレ
スにセーブする。制御バツフア2とページバツフア3に
はフアイル4に対し処理する場合に必要な個数のページ
データが一時保持される。制御バツフア2は同図(b)
に各ページ毎の制御バツフア12nが示され、要求するペ
ージデータに対応するリード,ライトアドレスが格納さ
れる外、末尾2ビツトが参照ビツトと更新ビツトを表わ
す。参照ビツトでは“0"は不使用,“1"は参照中であ
り、更新ビツトでは“0"は書込み不要,“1"は書込み必
要を意味する。これらのアドレスに対応するページデー
タが図に例示するようにページバツフア3に一時保持さ
れる。In the figure, a read (reference) or write (update) request from the information processing unit 1 to the addresses of the virtual paper number and the page number within the paper in the file 4 is requested by the control buffer 2.
To the page buffer 3 via. According to this request,
The necessary address in the file 4 is accessed and loaded into the page buffer 3, and conversely, the page data to be updated written in the page buffer 3 is saved in the corresponding address of the file 4. The control buffer 2 and the page buffer 3 temporarily hold the number of page data required for processing the file 4. The control buffer 2 is shown in FIG.
The control buffer 12 n for each page is shown in FIG. 3, and the last two bits represent the reference bit and the update bit in addition to the read and write addresses corresponding to the requested page data. In the reference bit, "0" is not used, "1" is being referred to, and in the update bit, "0" means no writing and "1" means writing. The page data corresponding to these addresses are temporarily held in the page buffer 3 as illustrated in the figure.
第4図は第3図(a)の構成における動作を示す流れ図
である。同図において、 i)ページデータがページバツフア3上にある時はフア
イル4へのセーブまたはフアイル4からのロードは不要
であり、リードの場合は制御テーブルの変更なく、ライ
トの場合は更新ビツトを“1"に変更して処理を終了し、
次のページデータに移る。FIG. 4 is a flow chart showing the operation in the configuration of FIG. In the figure, i) When the page data is on the page buffer 3, it is not necessary to save to or load from the file 4, the control table is not changed for read, and the update bit is set for write. Change it to 1 "and finish the process,
Move to next page data.
ii)ページデータがページバツフア3上になく、更新ビ
ツト“0"の個所がある時はフアイル4から新ページのロ
ードを行なう候補位置となる。以下の手順はi)と同じ
である。ii) If the page data is not on the page buffer 3 and there is an update bit "0", it becomes a candidate position for loading a new page from the file 4. The following procedure is the same as i).
第5図(a)はこの場合の1例を示すもので、*印の個
所が新ページのロード候補位置を示す。FIG. 5 (a) shows an example of this case, where the mark * indicates the position of the new page load candidate.
iii)ページデータがページバツフア3上になく、更新
ビツト“0"の個所がない時はフアイル4に対しセーブを
行なつて、ページバツフア3上の領域を空けた上でロー
ドを行なう。iii) When the page data is not on the page buffer 3 and there is no update bit "0", the file 4 is saved and the area on the page buffer 3 is emptied before loading.
第5図(b)はこの場合の1例を示すもので、同図
(a)の状態から処理を進めると、更新ビツト“0"の個
所のみがロードの対象となり、さらにライトにより更新
ビツト“1"が増加するため、最後は全て更新ビツト“1"
の状態となる。FIG. 5 (b) shows an example of this case. If the process proceeds from the state of FIG. 5 (a), only the update bit "0" will be the target of loading, and the update bit "0" will be written. 1 "increases, so at the end all update bits are" 1 "
It becomes the state of.
上記従来例のiii)で説明した第5図(b)に例示した
ような状態になると、従来の制御テーブルの更新ビツ
ト,参照ビツトによるセーブ/ロードの制御のみでは手
詰りとなる。以後の操作では一般にランダムセーブする
方法が用いられるが、これではフアイルへのアクセス回
数の削減は望めない。このように、制御テーブルの内容
が更新を要するページデータのみとなつた時、ページバ
ツフア3におけるページデータの入り替えを高速にする
とともに、フアイル4へのアクセス回数を減少すること
を考える。If the state illustrated in FIG. 5 (b) described in iii) of the above-mentioned conventional example is reached, the conventional control table update bit and reference bit save / load control will be a chore. In subsequent operations, a random save method is generally used, but this cannot reduce the number of access to the file. As described above, when the contents of the control table are only the page data that needs to be updated, it is considered that the page data in the page buffer 3 is replaced at high speed and the number of accesses to the file 4 is reduced.
このため、処理態様の特徴をみると次のようになる。Therefore, the characteristics of the processing mode are as follows.
次処理ページは現在処理中(参照ビツト“1")のペー
ジの前後の頻度が高い。The next processed page has a high frequency before and after the page currently being processed (reference bit “1”).
1操作が複数ページに亘る場合、それらのページには
連続性,処理方向が存在する。従つて複数ページをまと
めてセーブ/ロードすると効率がよい。When one operation covers a plurality of pages, those pages have continuity and processing direction. Therefore, it is efficient to save / load multiple pages at once.
これらの特徴を利用し、第5図(b)の状態となつた時
には、現在の処理位置に対し、十分離れた位置にある複
数の連続するページデータをまとめてセーブ/ロードす
ればよい筈である。By using these characteristics, when the state shown in FIG. 5 (b) is reached, it should be possible to save / load a plurality of continuous page data at a position sufficiently distant from the current processing position all together. is there.
本発明の目的は、制御テーブルの内容が更新を要するペ
ージデータのみとなつた時、ページバツフアのページデ
ータの入替えを高速にするとともに、フアイルへのアク
セス回数を減小するようにしたフアイルアクセス制御装
置を提供することにある。An object of the present invention is to provide a file access control device which speeds up the replacement of page data in a page buffer and reduces the number of access to the file when the content of the control table is only the page data that needs to be updated. To provide.
前記目的を達成するため、本発明においては、ファイル
内のページデータを一時保持するページバッファと、 該ページバッファ内のページデータの更新、参照状態を
示す情報を格納する制御テーブルと、 該ページバッファ内の個々のページデータの、他のペー
ジデータに対するアドレス関係を示す情報を格納する第
2の制御テーブルと、 前記ページバッファ上のデータを1つずつ参照するとと
もに、該制御テーブルの内容が更新を要するページデー
タのみとなった場合、現在参照中のページデータと最も
離れたアドレス位置にあるページデータを該第2の制御
テーブルより選出し、選出したページデータを前記ファ
イル内へとセーブする情報処理部とを有することを特徴
とするものであり、 さらに、上記現在参照中のページデータと最も離れたア
ドレス位置にあるページデータが連続する複数個である
ことを特徴とするものである。In order to achieve the above object, in the present invention, a page buffer for temporarily holding page data in a file, a control table for storing information indicating update / reference status of page data in the page buffer, and the page buffer A second control table that stores information indicating an address relationship of each page data in another page data with another page data, and the data in the page buffer are referenced one by one, and the contents of the control table are updated. When only the required page data is obtained, information processing for selecting the page data at the address position farthest from the page data currently being referenced from the second control table and saving the selected page data in the file Section, and is further separated from the page data currently being referred to above. It is characterized in that there are a plurality of continuous page data at the specified address position.
上記構成により、従来の制御テーブルが全部更新を要す
ることとなり手詰りとなつた場合を有効に打開するた
め、たとえば現処理中(参照ビツト“1")のページデー
タ位置に対し各ページデータに対応する第2の制御テー
ブル内のアドレスをサーチし、最もアドレスの隔つたも
のを選択し、この位置のページデータと連続する複数ペ
ージデータを取出し、これらをフアイルに送りセーブを
行なう。With the above configuration, all the conventional control tables need to be updated, and in the case of a dead end, it is possible to effectively overcome this problem. For example, the page data position for the current process (reference bit “1”) is handled for each page data. Then, the address in the second control table is searched, the one with the most spaced address is selected, a plurality of page data continuous with the page data at this position is taken out, and these are sent to the file to save.
これにより、これらの旧領域は更新ビツトが“0"に変化
し、新ページデータを受け入れることができる。As a result, the update bit of these old areas changes to "0" and new page data can be received.
第1図(a),(b)は本発明の実施例の構成説明図で
ある。1 (a) and 1 (b) are configuration explanatory views of an embodiment of the present invention.
同図において、第3図(a),(b)の従来例と異なる
点は、同図(b)に示す、制御バツフア11の内容であ
る。In this figure, the difference from the conventional example of FIGS. 3 (a) and 3 (b) is the content of the control buffer 11 shown in FIG. 3 (b).
すなわち、第3図と同じ更新ビツトと参照ビツトを示す
制御テーブル12nの外に、本発明の要部となる第2の制
御テーブル13nを含む。制御テーブル13nは同図(b)に
示すように、たとえば1ワード16ビツトの領域を用意
し、最初の4ビツトにフアイル4が複数の仮想用紙を含
む場合の用紙No.を書込み、次の12ビツトに用紙内ペー
ジNo.を書込むものとする。That is, in addition to the control table 12 n showing the same update bit and reference bit as in FIG. 3, the second control table 13 n which is the main part of the present invention is included. As shown in FIG. 7B, the control table 13 n prepares an area of, for example, 1 word and 16 bits, writes the paper number when the file 4 includes a plurality of virtual papers in the first 4 bits, and The page number in the paper shall be written in 12 bits.
従来例と同じ制御テーブル12nが各ページデータとも前
述の第5図(b)に示すように更新ビツトが全て“1"と
なつた場合には、この第2の制御テーブル13nが各ペー
ジデータにつきサーチされる。そして現処理中(参照ビ
ツト“1")のページデータの位置から最もアドレスの隔
つたものを抽出し、このページデータと連続している複
数のページデータを一括してフアイル4へセーブする。
なお、フアイル4からページバツフア3にページデータ
をロードする場合にも、第2の制御テーブル13nを用い
て制御することができる。すなわち、この場合は現処理
ページデータ位置に対し、次処理ページデータへの方向
の位置にある連続する複数ページデータを該当するペー
ジデータの制御テーブル13nに記載し、これに従つてロ
ードが行なわれる。In the same control table 12 n as in the conventional example, when all the update bits are “1” as shown in FIG. 5 (b) for each page data, the second control table 13 n is set for each page. The data is searched. Then, the data at the most distant address is extracted from the position of the page data currently being processed (reference bit “1”), and a plurality of page data continuous with this page data are collectively saved in the file 4.
Note that when the page data is loaded from the file 4 to the page buffer 3, it can be controlled using the second control table 13 n . That is, in this case, with respect to the current processed page data position, the continuous plural page data located at the position toward the next processed page data is described in the control table 13 n of the corresponding page data, and the loading is performed according to this Be done.
第2図は本発明の実施例の動作例を示す説明図である。FIG. 2 is an explanatory diagram showing an operation example of the embodiment of the present invention.
同図において、制御バツフア11が第5図(a)の状態と
なつた時、フアイル4からのmページが現在参照中であ
るとする。そして、処理例としてビツトマツプの図形で
mページから下方にベクトル(線)を引く場合を考え
る。In the figure, when the control buffer 11 is in the state shown in FIG. 5 (a), it is assumed that page m from the file 4 is currently being referred to. Then, as an example of processing, consider a case where a vector (line) is drawn downward from the m page in a bit map figure.
以下次の手順で進められる。The procedure is as follows.
ページバツフア3上のmページで処理開始し直線を
描画する。Processing is started on page m on page buffer 3 and a straight line is drawn.
m+1ページは、ページバツフア3上にあるので、
m+1ページに移つて、直線描画を継続する。Since page m + 1 is on page buffer 3,
Move to page m + 1 and continue straight line drawing.
ページバツフア3上にm+2ページが存在しないた
め、ロードが必要である。Loading is necessary because there are no m + 2 pages on page buffer 3.
制御テーブル12nが全て更新要の状態であるため、
フアイル4へのセーブが必要であり、第2の制御テーブ
ル13nの内容に従い現処理位置mページから最も離れた
位置にあるi−1,i,i+1ページを一括してセーブす
る。この場合アクセスは1回でよい。Since all the control tables 12 n need to be updated,
It is necessary to save to the file 4, and the i−1, i, i + 1 pages located farthest from the current processing position m page are collectively saved according to the contents of the second control table 13 n . In this case, access is required only once.
下方向処理であるから、m+3以下のページも必要
となる可能性があるため、第2の制御テーブル13nの内
容に従いm+2,m+3,m+4ページを一括してフアイル4
からページバツフア3へロードする。この場合のアクセ
スは1回でよい。Since it is the downward processing, there is a possibility that pages of m + 3 or less may also be required. Therefore, according to the contents of the second control table 13 n , m + 2, m + 3, m + 4 pages are collectively included in the file 4.
To page buffer 3 from. In this case, access is required only once.
m+2ページ以下に対し、直線描画を継続する。 Continue drawing straight lines for m + 2 pages or less.
以上説明したように、本発明によれば、従来の制御テー
ブルの内容が更新を要するページデータのみとなつた場
合、第2の制御テーブルの処理情報を用い、現処理位置
から十分離れた複数の連続するページデータをフアイル
へセーブするよう制御するものである。これにより現処
理位置より十分遠い位置でしかも連続した複数ページデ
ータを一括してフアイルにセーブするから、現処理位置
に影響を与えることなく、ページバツフアにおけるデー
タの入替えを高速化し、フアイルアクセス回数を格段に
減小させることができるものである。As described above, according to the present invention, when the content of the conventional control table is only the page data that needs to be updated, the processing information of the second control table is used and a plurality of data items sufficiently separated from the current processing position are used. It controls to save continuous page data to a file. As a result, multiple continuous page data at a position far from the current processing position are saved to the file all at once.Therefore, the data exchange at the page buffer is speeded up without affecting the current processing position, and the number of file access is significantly increased. It can be reduced to.
第1図は本発明の実施例の構成説明図、第2図は実施例
の動作例を示す説明図、第3図は従来例の構成説明図、
第5図は従来例の動作説明図、第4図は従来例の動作を
示す流れ図であり、図中、1は情報処理部、3はページ
バツフア、4はフアイル、11は制御バツフア、12nは制
御テーブル、13nは第2の制御テーブルを示す。FIG. 1 is an explanatory view of the configuration of an embodiment of the present invention, FIG. 2 is an explanatory view showing an operation example of the embodiment, FIG.
FIG. 5 is an operation explanatory diagram of the conventional example, and FIG. 4 is a flow chart showing the operation of the conventional example. In the figure, 1 is an information processing unit, 3 is a page buffer, 4 is a file, 11 is a control buffer, and 12 n is a control buffer. A control table, 13 n is a second control table.
───────────────────────────────────────────────────── フロントページの続き (56)参考文献 Stuart E.Madnick,J ohn J.Donovan、池田克夫 「コンピュータ・サイエンス研究書シリー ズ オペレーティング・システム」5版 (1983−6−15)日本コンピュータ協会 P.166−188「3.6.2ソフトウェ ア」、特に3.6.2.9の記載、P. 624−625「9.4.3.2ページ置換えア ルゴリズム」、特にポストページに関する 記載 ─────────────────────────────────────────────────── ─── Continuation of the front page (56) References Stuart E. Madnick, John J. et al. Donovan, Katsuo Ikeda "Computer Science Research Book Series Operating System" 5th edition (1983-6-15) P.P. 166-188 "3.6.2 Software", especially 3.6.2.9, P. 624-625 "9.4.3.2 Page replacement algorithm", especially post page
Claims (2)
ページバッファと、 該ページバッファ内のページデータの更新、参照状態を
示す情報を格納する制御テーブルと、 該ページバッファ内の個々のページデータの、他のペー
ジデータに対するアドレス関係を示す情報を格納する第
2の制御テーブルと、 前記ページバッファ上のデータを1つずつ参照するとと
もに、該制御テーブルの内容が更新を要するページデー
タのみとなった場合、現在参照中のページデータと最も
離れたアドレス位置にあるページデータを該第2の制御
テーブルより選出し、選出したページデータを前記ファ
イル内へとセーブする情報処理部とを有することを特徴
とするファイルアクセス制御装置。1. A page buffer for temporarily holding page data in a file, a control table for storing information indicating update / reference status of the page data in the page buffer, and individual page data in the page buffer. , A second control table that stores information indicating an address relationship with other page data, and the data in the page buffer are referenced one by one, and the content of the control table is only the page data that needs to be updated. In this case, it has an information processing unit that selects page data at an address position farthest from the page data currently being referenced from the second control table and saves the selected page data in the file. File access control device.
参照するとともに、前記制御テーブルの内容が更新を要
するページデータのみとなった場合、現在参照中のペー
ジデータと最も離れたアドレス位置にある連続する複数
のページデータをファイル内へとセーブする情報処理部
とを有することを特徴とする特許請求の範囲第(1)項
記載のファイルアクセス制御装置。2. When the data in the page buffer is referred to one by one and the content of the control table is only the page data that needs to be updated, it is at the address position farthest from the page data currently being referred to. The file access control device according to claim (1), further comprising an information processing unit that saves a plurality of continuous page data in a file.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60224101A JPH0795297B2 (en) | 1985-10-08 | 1985-10-08 | File access controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60224101A JPH0795297B2 (en) | 1985-10-08 | 1985-10-08 | File access controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6284352A JPS6284352A (en) | 1987-04-17 |
| JPH0795297B2 true JPH0795297B2 (en) | 1995-10-11 |
Family
ID=16808558
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60224101A Expired - Lifetime JPH0795297B2 (en) | 1985-10-08 | 1985-10-08 | File access controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0795297B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4078010B2 (en) * | 2000-03-03 | 2008-04-23 | 株式会社日立グローバルストレージテクノロジーズ | Magnetic disk apparatus and information recording method |
-
1985
- 1985-10-08 JP JP60224101A patent/JPH0795297B2/en not_active Expired - Lifetime
Non-Patent Citations (1)
| Title |
|---|
| StuartE.Madnick,JohnJ.Donovan、池田克夫「コンピュータ・サイエンス研究書シリーズオペレーティング・システム」5版(1983−6−15)日本コンピュータ協会P.166−188「3.6.2ソフトウェア」、特に3.6.2.9の記載、P.624−625「9.4.3.2ページ置換えアルゴリズム」、特にポストページに関する記載 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6284352A (en) | 1987-04-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2571342B2 (en) | System and method for storing data in cache memory | |
| US6286092B1 (en) | Paged based memory address translation table update method and apparatus | |
| US5353428A (en) | Information processing apparatus in which a cache memory can be operated in both store-in and store-through modes | |
| US5651132A (en) | Disk array control system | |
| JP2714952B2 (en) | Computer system | |
| US6601135B1 (en) | No-integrity logical volume management method and system | |
| JPH1063551A (en) | Information processing device | |
| JPH0795297B2 (en) | File access controller | |
| JPS6154547A (en) | Data processing system with 3-level hierarchical memory | |
| JPS61216016A (en) | Area control system for data base | |
| EP0787326B1 (en) | System and method for processing of memory data and communication system comprising such system | |
| JPH1091527A (en) | Storage device and recording medium | |
| JP2767966B2 (en) | High-speed file access method | |
| JPH09244932A (en) | Disk array device | |
| JPS59116982A (en) | Data transfer system of memory system | |
| JPS62160545A (en) | System for managing unused area of direct access storage device | |
| JPH01121895A (en) | Image retrieval display device | |
| JPH1055308A (en) | Cache memory | |
| JPH0329041A (en) | Decentralized paging control system | |
| JPS58194188A (en) | Accessing mechanism of random file | |
| JP2964504B2 (en) | Document processing device | |
| JPS61156450A (en) | Dynamic buffer control system | |
| JPS60120454A (en) | Controlling system of subchannel | |
| JPS61280167A (en) | Image memory control device | |
| JPH037979B2 (en) |