JPS63280354A - Buffer management system - Google Patents

Buffer management system

Info

Publication number
JPS63280354A
JPS63280354A JP62114596A JP11459687A JPS63280354A JP S63280354 A JPS63280354 A JP S63280354A JP 62114596 A JP62114596 A JP 62114596A JP 11459687 A JP11459687 A JP 11459687A JP S63280354 A JPS63280354 A JP S63280354A
Authority
JP
Japan
Prior art keywords
buffer
normal
extended
page
buffer management
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
JP62114596A
Other languages
Japanese (ja)
Inventor
Yoshifumi Takamoto
良史 高本
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP62114596A priority Critical patent/JPS63280354A/en
Publication of JPS63280354A publication Critical patent/JPS63280354A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To reduce the number of times of disk input/output by providing management parts which manage a normal buffer in a normal address space and an extended buffer in an extended address space and taking out data from the extended buffer in case of absence of objective data in the normal buffer. CONSTITUTION:Normal and extended buffers 5 and 8 are provided in normal and extended address spaces 1 and 2 respectively, and normal and extended buffer management parts 4 and 6 are provided in the space 1. A normal buffer management table 9 is used by the management part 4 to check whether a requested page exists in the buffer 5 or not; and if it does not exist there, an extended buffer management table 7 is used by the management part 6 to take out data from the buffer 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データベース管理システムの高速化に好適な
バッファ管理方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a buffer management method suitable for increasing the speed of a database management system.

〔従来の技術〕[Conventional technology]

従来のバッファ管理方式は、公開特許公報昭57−16
9983号に記載のように、1つのバッファを管理する
方式である。この場合のバッファ管理部の動作は、デー
タの要求が発生するとバッファ内をサーチし要求したデ
ータが存在すると要求元に対しバッファ内データのアド
レスを返す、要求データが存在しない時は外部記憶装置
であるディスク・ファイルからデータを取り出す。
The conventional buffer management method is disclosed in Japanese Patent Publication No. 57-16
As described in No. 9983, this method manages one buffer. The operation of the buffer management unit in this case is that when a data request occurs, it searches the buffer, and if the requested data exists, it returns the address of the data in the buffer to the request source, and if the requested data does not exist, it searches the buffer and returns it to the external storage device. Retrieve data from a disk file.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来技術は、拡張アドレス空間といった、異なるア
ドレス空間をバッファとして使用する手段を持っていな
い。通常アドレス空間は小容量のうえ、バッファドとデ
ータベース管理システムは同一の通常アドレス空nrJ
に置かれるためバッファ領域は小容量しか確保すること
ができない。拡張アドレス空間が操作できるバッファ管
理に作り直すことは、従来のバッファ管理部が、データ
要求元にバッファ内データのアドレスを渡す方式である
ため、バッファ管理部だけでなく、データ要求元もアド
レス幅の拡張をしなければならず、多くのプログラム変
更が必要となる問題がある。したがって、データベース
管理システムといった大容量のデータを扱ったり、多数
ユーザが共通のバッファを使用するシステムではバッフ
ァにあふれを生じるため、必然とディスク入出力が多発
してしまう。
The above conventional technology does not have a means to use a different address space, such as an extended address space, as a buffer. The normal address space is small, and buffered and database management systems use the same normal address space nrJ.
Because the buffer area is placed in Redesigning the buffer management so that it can manipulate extended address space is a method in which the conventional buffer management section passes the address of the data in the buffer to the data request source, so not only the buffer management section but also the data request source can handle the address width. There are problems that require expansion and many program changes. Therefore, in a system such as a database management system that handles large amounts of data or in which a large number of users use a common buffer, the buffer overflows, which inevitably results in frequent disk input/output.

本発明の目的は、従来プログラムは少しの変更でバッフ
ァのあふれによるディスク入出力回数を削減することに
ある。
An object of the present invention is to reduce the number of disk input/outputs caused by buffer overflow by making slight changes to conventional programs.

〔問題点を解決するための手段〕[Means for solving problems]

上記目的は1通常アドレス空間中に設けられた通常バッ
ファを操作・管理する通常バッファ管理部と拡張アドレ
ス空間中に設けられた拡張バッファを操作・管理する拡
張バッファ管理部を有し、通常バッファ内に目的とする
データが存在しない場合、拡張バッファ内からデータを
取り出すことにより達成できる。
The above purpose is to have a normal buffer management section that operates and manages the normal buffer provided in the normal address space and an extended buffer management section that operates and manages the extended buffer provided in the extended address space. If the desired data does not exist, this can be achieved by fetching the data from the extended buffer.

〔作用〕[Effect]

通常バッファ内に目的とするデータが存在しない時、通
常バッファ管理部は拡張バッファ管理部に対しデータを
要求する。拡張バッファ管理部は拡張バッファ内にデー
タが存在するかどうかサーチし、存在すれば要求元であ
る通常バッファ管理部が指定した通常バッファ内にデー
タを転記する。
When target data does not exist in the normal buffer, the normal buffer management section requests data from the extended buffer management section. The extended buffer management section searches whether data exists in the extended buffer, and if so, transfers the data to the normal buffer specified by the normal buffer management section that is the request source.

拡張アドレス空間は通常アドレス空間に比べ広く拡張バ
ッファは広く確保することができる。したがって目的デ
ータが存在する確率は高くなり、ディスク入出力回数が
削減する。また、従来プログラムの変更も、拡張バッフ
ァ管理部を呼び出すだけで良いため少なくて済む。
The extended address space is wider than the normal address space, and the extended buffer can be secured widely. Therefore, the probability that the target data exists is increased, and the number of disk input/outputs is reduced. Further, changes to the conventional program can be reduced because it is only necessary to call the extended buffer management section.

〔実施例〕〔Example〕

以下、図に従って本発明の一実施例を説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の全体構成を示したものである。FIG. 1 shows the overall configuration of the present invention.

1は通常アドレス空間、2は拡張アドレス空間である。1 is a normal address space, and 2 is an extended address space.

3,4,5.9はデータベース管理システムの一部であ
り、3はページ操作部、4は通常バッファ管理部、5は
通常バッファである。ページとは、データベース管理シ
ステムが扱うデータ単位であり13.14がそれに当る
。ページ操作は通常バッファ管理部に対し、ページ要求
を行なう19゜ 通常バッファ管理の動作を第1図と第2図を使って説明
する。201は要求ページが通常バッファ内に存在する
かどうかを通常バッファ管理テーブル9を使用して調べ
る。202は調べた結果ページが存在するかどうかを判
定し、存在すればページの先頭アドレスを要求元に返す
214゜無ければ203に進む。203は通常バッファ
内に要求ページを取り入れるための領域があるかどうか
判定し有れば209に、無ければ204に処理を移す。
3, 4, 5.9 are parts of the database management system, 3 is a page operation section, 4 is a normal buffer management section, and 5 is a normal buffer. A page is a data unit handled by a database management system, and 13.14 corresponds to it. Page operation requests a page to the normal buffer management unit. 19. The operation of normal buffer management will be explained using FIGS. 1 and 2. Step 201 uses the normal buffer management table 9 to check whether the requested page exists in the normal buffer. Step 202 determines whether the page exists as a result of the search, and if so, returns the top address of the page to the request source.Step 214: If not, the process proceeds to step 203. Step 203 determines whether there is an area in the normal buffer to take in the requested page, and if there is, the process moves to 209; if not, the process moves to 204.

204は取り入れるための領域を確保するために、追い
出しページを決定する。2o5は追い出しページがバッ
ファ内で更新されているかどうか判定し、更新されてい
ればディスク9に書き込まなくではならないため206
に処理を移す、そうでなければ208に処理を移す。2
06は追い出しページのディスク書き込みを行なう21
゜207は拡張バッファ管理部6を呼び出し拡張バッフ
ァ8の更新12を行なう。この更新は、ディスク内のペ
ージと拡張バッファ8内のページにデータの矛盾を生じ
させないためである。拡張バッファ更新部12の説明は
、後の拡張バッファ管理部の説明の時に行なう、208
は通常バッファ管理テーブル9から追い出しページを削
除する16.200は、拡張バッファ8内に要求ページ
が存在するかどうかを拡張バッファ管理部6に呼び出し
て調べる。10が拡張バッファ内ページ・サーチ部であ
り、後の拡張バッファ管理部の説明時に詳しく説明する
。210は拡張バッファ内に要求ページが存在したかど
うかの判定をし、存在してあれば213、存在していな
ければ211に移る。
Step 204 determines an expulsion page in order to secure an area for import. 2o5 determines whether the evicted page has been updated in the buffer, and if it has been updated, it must be written to disk 9, so 206
Otherwise, the process moves to 208. 2
06 writes the eviction page to disk 21
207 calls the extension buffer management unit 6 and updates the extension buffer 8 (12). This update is performed to prevent data inconsistency between pages in the disk and pages in the expansion buffer 8. The extended buffer update unit 12 will be explained at 208 when the extended buffer management unit is explained later.
16. 200 deletes the evicted page from the normal buffer management table 9. 200 calls the extended buffer management unit 6 to check whether the requested page exists in the extended buffer 8. Reference numeral 10 denotes an extended buffer page search section, which will be explained in detail later when explaining the extended buffer management section. At 210, it is determined whether or not the requested page exists in the expansion buffer. If so, the process moves to 213; otherwise, the process moves to 211.

211は要求ページをディスクから取り出し、通常バッ
ファの空き領域にセットする。212は拡張バッファに
もページを登録するため、拡張バソファ管理部を呼び出
する。11が拡張バッファ・ページ登録部であり、詳し
い動作は後に説明する。213は新しく取り入れたペー
ジを通常バッファ管理部テーブルに登録する。その後、
バッファ内のページ先頭アドレスを要求元に返す1以上
が通常バッファ管理部と通常バッファの説明である0通
常バッファ管理部は、前の説明でもあったように、拡張
バッファ管理部6を呼び出す20゜拡張バッファ管理部
の動作の詳細を次に説明する。
211 takes out the requested page from the disk and sets it in a free area of the normal buffer. Step 212 calls the extended bath management unit in order to register the page in the extended buffer as well. Reference numeral 11 denotes an extended buffer page registration unit, the detailed operation of which will be explained later. Step 213 registers the newly introduced page in the normal buffer management table. after that,
Returns the first address of the page in the buffer to the request source 1 or more is the normal buffer management section and the description of the normal buffer 0 The normal buffer management section calls the extended buffer management section 6 as described above 20° The details of the operation of the extended buffer management section will be explained next.

拡張バッファ管理部は前述のように、拡張バッファ内ペ
ージ・サーチ部10と拡張バッファ・ページ登録部11
と拡張バッファ更新部12の機能を有している。第3図
は拡張バッファ更新部の動作を示したものである。30
1は、拡張アドレス空間をアドレッシングできるモード
に変更する。
As mentioned above, the extended buffer management section includes the extended buffer page search section 10 and the extended buffer page registration section 11.
It has the functions of the extended buffer update section 12. FIG. 3 shows the operation of the extended buffer update section. 30
1 changes the mode to one in which extended address space can be addressed.

302は、更新の対象ページを、拡張バッファ管理テー
ブル7を利用して(18)サーチしページの位置を求め
る。303は実際にページ更新を行なう、304は、ア
ドレス・モードを元の通常アドレス・モードに戻す、そ
の後、通常バッファ管理部へ処理が戻る。
Step 302 searches for the page to be updated using the extended buffer management table 7 (18) and determines the location of the page. Step 303 actually updates the page, Step 304 returns the address mode to the original normal address mode, and then the processing returns to the normal buffer management section.

第4図は拡張バッファ内ページ・サーチ部の動作を示し
たものである。401は301と同様である。
FIG. 4 shows the operation of the extended buffer page search section. 401 is similar to 301.

402は拡張バッファ管理テーブルを利用して、拡張バ
ッファ内に要求ページが存在するかどうか調べる。40
3は調べた結果、ページが存在するかどうかを判定し、
無ければ405へ処理が移り通常バッファ管理へ、該当
するページが無いことを報告する。要求ページが有れば
404へ移る。
Step 402 uses the extended buffer management table to check whether the requested page exists in the extended buffer. 40
3 determines whether the page exists as a result of the investigation,
If there is not, the process moves to 405 and reports that there is no corresponding page to the normal buffer management. If there is a requested page, the process moves to 404.

404は該当ページを通常バッファ内へ転記する17、
このページ転記は、通常バッファ管理部の動作にはなく
、拡張バッファ管理部の特徴である。
404 transfers the corresponding page into the normal buffer 17;
This page transcription is not part of the normal buffer management unit's operation, but is a feature of the extended buffer management unit.

406は304と同様である。その後1通常バッファ管
理部へ処理が戻る。
406 is similar to 304. Thereafter, the process returns to the 1 normal buffer management section.

第5図は拡張バッファ・ページ登録部の動作を示したも
のである。501は301と同様である。
FIG. 5 shows the operation of the extended buffer page registration section. 501 is similar to 301.

502は拡張バッファ内に新しくページを格納する領域
が有るかどうか判定し、有れば505へ移り、無ければ
503へ処理が移る。503は204と同じである。5
04は追い出しが決定したページを拡張バッファ管理テ
ーブルから削除する。ここで通常バッファ管理部と異な
る点は、追い出しが決定したページは、拡張バッファ更
新部によってディスク内ページと必ず同値であるため、
ディスクへの書き込みが不用となる点である。505は
、211により通常バッファに書き込まれたページを拡
張バッファへ転記する。506は、拡張バッファに新し
く書き込まれたページを拡張バッファ管理テーブルに登
録する。507は304と同じ、その後、通常バッファ
管理部へ処理を戻す。
At 502, it is determined whether there is an area in the expansion buffer to store a new page. If there is, the process moves to 505; if there is no area, the process moves to 503. 503 is the same as 204. 5
04 deletes the page determined to be evicted from the extended buffer management table. The difference here from the normal buffer management section is that the page that has been decided to be evicted is always the same value as an in-disk page by the extended buffer update section.
The point is that writing to the disk is unnecessary. 505 transfers the page written to the normal buffer by 211 to the extended buffer. Step 506 registers the newly written page in the extended buffer in the extended buffer management table. 507 is the same as 304, and then the process returns to the normal buffer management section.

以上が拡張バッファ管理部の詳細説明である。これらの
動作によりページ操作3は要求したページを取得できる
(15)。
The above is a detailed explanation of the extended buffer management section. Through these operations, the page operation 3 can obtain the requested page (15).

本実施例では1通常バッファ管理部の変更が少なく、拡
張アドレス空間をバッファとして使用できる。また、デ
ータベース管理システムから見た信頼性においても、デ
ィスクと拡張バッファの整合性は保たれており、従来と
変わることはない。
In this embodiment, there are few changes to the normal buffer management section, and the extended address space can be used as a buffer. Furthermore, in terms of reliability from the perspective of the database management system, consistency between the disk and the expansion buffer is maintained, and there is no change from the conventional system.

なお1本実施例は、ディスクからのページ入力回数は従
来方式と比べて削減しているが、ディスクへのページ出
力は削減していない、出力回数の削減には、通常バッフ
ァにあふれが生じた時、ディスクには出力しないで拡張
バッファのみ更新を行なうようにし、拡張バッファにあ
ふれが生じ、かつあふれたページが更新されているとき
のみディスクに出力する方式等がある。
Note that in this embodiment, the number of page inputs from the disk is reduced compared to the conventional method, but the number of page outputs to the disk is not reduced. There are methods such as updating only the extended buffer without outputting to the disk, and outputting to the disk only when the extended buffer overflows and the overflowing page is being updated.

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

本発明によれば、通常バッファとさらに大きな拡張バッ
ファにより、要求データがバッファ内に存在する確率は
高くなり、ディスク・ファイルへの入出力回数は大幅に
削減できるためバッファ管理方式の高速化に効果がある
。さらに、従来プログラムは拡張バッファ管理部を呼び
出すように変更だけで良いため、簡単にバッファの拡張
ができる。
According to the present invention, by using a normal buffer and a larger extended buffer, the probability that the requested data exists in the buffer is increased, and the number of I/Os to the disk file can be significantly reduced, which is effective in speeding up the buffer management method. There is. Furthermore, since the conventional program only needs to be changed to call the expansion buffer management section, the buffer can be expanded easily.

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

第1図は一実施例の全体図、第2図は通常バッファ管理
部のフローチャート、第3図は拡張バッファ更新部フロ
ーチャート、第4図は拡張バツフア内ページ・サーチ・
フローチャート、第5図は拡張バッファ・ページ登録部
フローチャートである。 4・・・通常バッファ管理部、5・・・通常バッファ、
6\〜−2・ ′:tJ 2図 遁3図 Y−14−図 第 5図
FIG. 1 is an overall diagram of an embodiment, FIG. 2 is a flowchart of the normal buffer management section, FIG. 3 is a flowchart of the extended buffer update section, and FIG. 4 is a flowchart of the extended buffer page search.
Flowchart FIG. 5 is a flowchart of the extended buffer page registration section. 4... Normal buffer management section, 5... Normal buffer,
6\〜-2・′:tJ Figure 2 Release 3 Figure Y-14-Figure 5

Claims (1)

【特許請求の範囲】 1、通常アドレス空間と拡張アドレス空間を持つ計算機
システム上で稼動するデータベース管理システムのバッ
ファ管理方式において、 前記通常アドレス空間中に設けられた通常バッファを操
作・管理する通常バッファ管理部と前記拡張アドレス空
間中に設けられた拡張バッファを操作・管理する拡張バ
ッファ管理部を有し、 前記通常バッファ内に目的とするデータが存在しない場
合、前記拡張バッファ中から前記データを取り出すこと
を特徴とするバッファ管理方式。 2、前記拡張バッファ管理部は、前記拡張バッファ内の
前記データを前記通常バッファへ転記することを特徴と
する特許請求の範囲第1項記載のバッファ管理方式。
[Claims] 1. In a buffer management method of a database management system running on a computer system having a normal address space and an extended address space, a normal buffer that operates and manages a normal buffer provided in the normal address space. a management unit and an expansion buffer management unit that operates and manages an expansion buffer provided in the expansion address space, and extracts the data from the expansion buffer when the target data does not exist in the normal buffer. A buffer management method characterized by: 2. The buffer management method according to claim 1, wherein the extended buffer management unit transfers the data in the extended buffer to the normal buffer.
JP62114596A 1987-05-13 1987-05-13 Buffer management system Pending JPS63280354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62114596A JPS63280354A (en) 1987-05-13 1987-05-13 Buffer management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62114596A JPS63280354A (en) 1987-05-13 1987-05-13 Buffer management system

Publications (1)

Publication Number Publication Date
JPS63280354A true JPS63280354A (en) 1988-11-17

Family

ID=14641818

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62114596A Pending JPS63280354A (en) 1987-05-13 1987-05-13 Buffer management system

Country Status (1)

Country Link
JP (1) JPS63280354A (en)

Similar Documents

Publication Publication Date Title
US6990560B2 (en) Task synchronization mechanism and method
JPH0962570A (en) Method and device for managing database
CN109690522B (en) Data updating method and device based on B+ tree index and storage device
JP2781092B2 (en) Exclusive control method between systems
JPH07104810B2 (en) Shared file access control method
US10552371B1 (en) Data storage system with transparent presentation of file attributes during file system migration
JPH04284548A (en) Data base exclusive controlling system
JPS63280354A (en) Buffer management system
US20040158550A1 (en) System and method for cooperate database acceleration
US11989169B2 (en) Autonomous refactoring system for database
JPS62131349A (en) Data base processing system
JPH02257228A (en) File control system for data base system
JP2912657B2 (en) File access processor
JP2740238B2 (en) File exclusive control unit
JP2835364B2 (en) Data processing system
CN116257519A (en) Data reading and writing method and device, computer equipment and storage medium
JPH03122736A (en) Data processor
JPH0474232A (en) Multi-task computer
JPH03154139A (en) Cache memory
JPH0556544B2 (en)
JPS63285631A (en) Updating and processing system for index file
JPS63104134A (en) Index retrieving system
JPH05165756A (en) Channel controller with macro processing function
JPH087712B2 (en) Cache memory device
JPH01162955A (en) Buffer control system