JPS61235957A - Data control system - Google Patents

Data control system

Info

Publication number
JPS61235957A
JPS61235957A JP60077319A JP7731985A JPS61235957A JP S61235957 A JPS61235957 A JP S61235957A JP 60077319 A JP60077319 A JP 60077319A JP 7731985 A JP7731985 A JP 7731985A JP S61235957 A JPS61235957 A JP S61235957A
Authority
JP
Japan
Prior art keywords
data
page
program
data page
read
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
JP60077319A
Other languages
Japanese (ja)
Inventor
Hiromasu Aoyama
青山 博牟
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 JP60077319A priority Critical patent/JPS61235957A/en
Publication of JPS61235957A publication Critical patent/JPS61235957A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the pre-processing time for data input/output by storing read information to a buffer pool of a data page while being rewritten statistically at each execution of a program, using it and forecasting the next data page to read the page to the buffer tool. CONSTITUTION:A data page utilizing frequency Ci is stored in a statistical information area 21 to a data Di. That is, the number of times of a corresponding data page read and used in the buffer pool so far at present is used, the number of times is counted by a statistical information collection program 9 at each occasion and revised and stored in a corresponding area 21a as the newest count data. A next page forecast program 8 compares number of times of a statistical information area 21a of each data page 20, forecasts the statistical data page corresponding to the largest number of times as the data requested next by the user program 6 and the result is read to the buffer pool 10.

Description

【発明の詳細な説明】 1盃豆1 本発明はデータ制御方式に関し、特に二次記憶装置上に
あるデータを必要に応じて主記憶装置のバッファプール
へ読込むためのデータ制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data control method, and more particularly to a data control method for reading data on a secondary storage device into a buffer pool of a main storage device as needed.

従来技術 従来、かかるデータページの制御方式は、プログラムが
要求する目的のデータページが現実に必要となってから
この必要なデータページのバッファプールへの読込みを
行ったり、また不用ページを二次記憶装置上へ出力する
ようになっている。
Conventional technology Conventionally, such data page control methods read the necessary data page into the buffer pool after the target data page requested by the program is actually needed, or store unnecessary pages in secondary storage. It is designed to output to the device.

この場合のバッファコントロール方式はFIFO(Fi
rst 1nfirst out) 、 L I F 
O(Last in firstout)またはそのプ
ログラム固有の方法により行っている。
The buffer control method in this case is FIFO (Fi
rst 1nfirst out), L I F
This is done using O (Last in first out) or a method specific to the program.

上述した従来のページ入出力制御方式では、ユーザでは
定型業務であっても常にシステムの制御方式は、FIF
O,LIFO又はそのプログラム固有の方式が実行され
、その業務に適した場合は効率的にページ制御ができる
が、適さない場合は効率的にページ制御はできない。ま
た、目的のページが必要になった時点から、次に読込ま
れるページの入力作業を始めざるを得ないため、予め次
に必要なページを読んでおくといった処理はできない。
In the conventional page input/output control method described above, the system control method is always FIF even if the user is doing routine work.
O, LIFO or a method specific to that program is executed, and if it is suitable for the business, page control can be performed efficiently, but if it is not suitable, page control cannot be performed efficiently. Furthermore, since the user has to start inputting the next page to be read from the moment the desired page is needed, it is not possible to read the next required page in advance.

及里五旦1 本発明の目的は、実行プログラムが次に要求するであろ
うデータページの予測を統計的に行うようにして、デー
タの入出力のための前処理時間を減少させるようにした
データ制御方式を提供することである。
An object of the present invention is to statistically predict the next data page that an execution program will request, thereby reducing the preprocessing time for data input/output. The purpose is to provide a data control method.

■1目と1虞 本発明によるデータ制御方式は、二次記憶装置上のデー
タを必要に応じて主記憶装置のバッファ・プールへ読込
むためのデータ制御方式であって、その特徴とするとこ
ろはデータの各データページに夫々対応した読込み統計
情報領域を付加し、この情報領域に夫々対応するデータ
ページの前記バッファプールへの読込み態様を示す情報
をプログラムが実行される毎に統計的に書換えつつ格納
するようにし、この情報を用いて次にプログラムが要求
するであろうデータページを予測してこの予測データペ
ージを前記バッファプールへ読込むようにしたことにあ
る。
■1 and 1 The data control method according to the present invention is a data control method for reading data on a secondary storage device into a buffer pool of a main storage device as needed. A read statistics information area corresponding to each data page is added to the data page, and information indicating the manner in which the corresponding data page is read into the buffer pool is stored in this information area while being statistically rewritten each time the program is executed. This information is used to predict the next data page that the program will request, and this predicted data page is read into the buffer pool.

当該バッファプールへの読込み態様を示す統計的な情報
としては、例えばその情報領域に対応するデータページ
がバッファプールへ読込まれて使用される使用頻度情報
や、その情報領域に対応するデータページから別のデー
タページへ移る推移確率情報等である。
Statistical information indicating the manner of reading into the buffer pool includes, for example, usage frequency information on how often the data page corresponding to the information area is read into the buffer pool, and information on how often the data page corresponding to the information area is used. This includes transition probability information that moves to the data page.

1豊1 以下、図面を用いて本発明の実施例につき説明する。1 Yutaka 1 Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の実施例のブロック図であり、主記憶装
置1にはバッファプール10が設けられており、このバ
ッファプール10には二次記憶装置2内に格納されてい
るデータベースの各データ20がページ入力プログラム
3の制御の下に読込まれる。バッファプール10から二
次記憶装置2への出力制御はページ出力プログラム4に
より行われる。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a main storage device 1 is provided with a buffer pool 10, and this buffer pool 10 contains each database stored in a secondary storage device 2. Data 20 is read under the control of page input program 3. Output control from the buffer pool 10 to the secondary storage device 2 is performed by a page output program 4.

データページの各データページ20には、夫々このデー
タページに対応して統計情報エリア21が付加されてお
り、例えば、そのページの使用頻度、時系列単位使用頻
度、一度使用されて再びそのページが使用される頻度な
いしは確率、更には現在使用されているページの次に使
用されるページへの推移確率等の情報が格納されるよう
になっている。
Each data page 20 of the data pages has a statistical information area 21 added thereto corresponding to the data page, and includes, for example, the frequency of use of that page, the frequency of use in chronological order, and whether the page is used again after being used once. Information such as the frequency or probability of use and the probability of transition from the currently used page to the next page to be used are stored.

ユーザプログラム6はデータベース内の必要とされるデ
ータを指定して主記憶装置1のバッファプール10へ読
込む。また、統計情報収集プログラム9は、各データペ
ージ20に対応した統計情報エリア21へ、プログラム
実行のたびに上記の各情報の少なくとも1つを更新する
作用を有する。
The user program 6 specifies the required data in the database and reads it into the buffer pool 10 of the main storage device 1. Furthermore, the statistical information collection program 9 has the function of updating at least one of the above pieces of information in the statistical information area 21 corresponding to each data page 20 every time the program is executed.

次ページ予測プログラム8は、データページ20の対応
情報エリア21内の統計情報を参照して、ユーザプログ
ラム6とは平行しつつ当該ユーザプログラム6が次に要
求するであろうデータページを予測し、二次記憶装置2
から当該データをバッファプール10へ読込む指示をな
す機能を有する。
The next page prediction program 8 refers to the statistical information in the corresponding information area 21 of the data page 20 and predicts the data page that the user program 6 will request next, in parallel with the user program 6. Secondary storage device 2
It has a function of instructing to read the data from the buffer pool 10 into the buffer pool 10.

失敗ページ取消ブOグラム7は、次ページ予測プログラ
ム8により予測された次ページが実際にユーザプログラ
ム6により要求されなかった場合を検出して対応する統
計情報21内の情報の更新をなすものである。これ等ユ
ーザプログラム6゜統計情報収集プログラム92次ペー
ジ予測ブOグラム8及び失敗ページ取消プログラム7は
、入出力バッファプール管理プログラム5の管理の下に
制御されるようになっている。
The failed page cancellation program 7 detects when the next page predicted by the next page prediction program 8 is not actually requested by the user program 6, and updates the corresponding information in the statistical information 21. be. These user programs 6, statistical information collection program 92, next page prediction program 8, and failed page cancellation program 7 are controlled under the management of the input/output buffer pool management program 5.

かかる構成において、大まかな流れを示すと以下の如く
なる。ユーザプログラム6から要求されたレコード入力
要求により入出力バッファプール管理プログラム5は二
次記憶装置上2にあるデータベースの目的のページを見
つけ、その後ページ入力プログラム3にその旨を伝えて
、主記憶装置1上にページを入力する。そして、ページ
入力プログラムによってページ入力が知らされた人出カ
バッファプール管理プログラム5は、ユーザプログラム
6にレコードが読まれたことを知らせる。
In this configuration, the general flow is as follows. In response to a record input request requested by the user program 6, the input/output buffer pool management program 5 finds the target page of the database in the secondary storage device 2, then notifies the page input program 3 to that effect, and transfers it to the main storage device. 1 Enter the page above. Then, the attendance buffer pool management program 5, which has been notified of the page input by the page input program, notifies the user program 6 that the record has been read.

ユーザプログラム6はレコードを処理した後、次のレコ
ードを人出カバッファプール管理プログラム5にレコー
ドを要求する。そしてこれをユーザの要求がなくなるま
でくりかえす。
After processing the record, the user program 6 requests the attendance buffer pool management program 5 for the next record. This process is repeated until there are no more user requests.

この一連の過程において、本発明においては、データベ
ースのページ20の中に設けられた統計情報エリア21
に統計情報収集プログラム9を用いて統計情報を蓄積し
、次ページ予測プログラム8がこの情報を基に次に処理
するであろうページを予測するのである。
In this series of processes, in the present invention, the statistical information area 21 provided in the page 20 of the database
The statistical information collection program 9 is used to accumulate statistical information, and the next page prediction program 8 predicts the next page to be processed based on this information.

第2図は統計情報エリアの格納情報の例を説明する図で
あり、データQiに対する統計情報エリア21には、そ
のデータページの使用頻度Ciが格納されるようになっ
ている。すなわち、対応データページが現在までにバッ
ファプール10へ読込まれて使用された回数であり、統
計情報収集プログラム9においてこの使用回数がその都
度カウントされて最新のカウントデータとして対応する
エリア21aへ更新格納されるものである。
FIG. 2 is a diagram illustrating an example of information stored in the statistical information area, and the statistical information area 21 for data Qi stores the usage frequency Ci of that data page. In other words, it is the number of times the corresponding data page has been read into the buffer pool 10 and used, and this number of uses is counted each time in the statistical information collection program 9 and updated and stored in the corresponding area 21a as the latest count data. It is something that will be done.

次ページ予測プログラム8は各データページ20の統計
情報エリア21aの使用回数を夫々比較して最も大なる
使用回数に対応するデータページを、ユーザプログラム
6が次に要求するであろうデータとして予測し、これを
バッファプール10へ読込むのである。
The next page prediction program 8 compares the number of uses of the statistical information area 21a of each data page 20 and predicts the data page corresponding to the largest number of uses as the data that the user program 6 will request next. , this is read into the buffer pool 10.

この使用回数データとしては、現在までの総使用回数を
統計したちの以外に、例えば、現在からある一定時間前
までの間の最新の使用回数を常にカウントしつつ更新し
ていくごときデータ(時系列単位使用頻度データ)であ
っても良く、この場合には総使用回数データの場合より
も予測の正確さはより大となると考えられる。
In addition to statistics on the total number of uses to date, this data on the number of uses can include, for example, data that constantly counts and updates the latest number of uses between now and a certain period of time ago. It is also possible to use series unit usage frequency data), and in this case, prediction accuracy is considered to be higher than in the case of total usage frequency data.

第3図は統計情報エリアの格納情報の他の例を説明する
図であり、データDiに対するエリア21は、このデー
タページの次に使用されるテデータページを格納するエ
リア21bと、当該衣に使用されるデータページへの推
移確率を格納するエリア2ICとからなる。そして、本
例では各エリア21b及び2ICは夫々2個の情報を格
納し得るようになっており、推移確率の高い上位2つの
情報が格納される。
FIG. 3 is a diagram illustrating another example of the information stored in the statistical information area, in which the area 21 for data Di is divided into an area 21b for storing the data page to be used next to this data page, and an area 21b for storing the data page to be used next to this data page. It consists of an area 2IC that stores the transition probability to the data page to be used. In this example, each area 21b and 2IC can store two pieces of information, and the two pieces of information with the highest transition probabilities are stored.

例えば、データD1に対しては、データD2への推移確
率が80%と最大となっており、データD5への推移確
率がその次に大きく20%となっていることが示されて
いる。よって、データD1がバッファブールへ読込まれ
ると、次ページ予測プログラム8はこのデータD1の統
計情報エリア21b、21Gを参照して次にユーザプロ
グラム6が要求するのであろうデータページとしてD2
を予測し、これをバッファプール上へ読込むのである。
For example, it is shown that for data D1, the probability of transition to data D2 is the highest at 80%, and the probability of transition to data D5 is the next largest at 20%. Therefore, when the data D1 is read into the buffer boolean, the next page prediction program 8 refers to the statistical information areas 21b and 21G of this data D1 and selects D2 as the next data page that the user program 6 will request.
is predicted and read into the buffer pool.

この場合、各データページ毎の統計情報エリア21に、
2個のデータページの推移確率を格納するようにして上
位確率のもの2つのデータを格納したが、それ以上のデ
ータを格納してもよい。
In this case, in the statistical information area 21 for each data page,
Although the transition probabilities of two data pages are stored, and two data with higher probabilities are stored, more data may be stored.

上記使用照度や次ページ推移確率等の情報以外に、一度
使用されて再びそのページが使用される頻度ないしは確
率等の情報を用いても良いものである。また、上記各情
報をすべて用いてこれらをすべて加味して次ページ予測
をなすようにしても良く、こうすれば予測結果の失敗は
減少することになる。
In addition to the above-mentioned information such as the illuminance used and the next page transition probability, information such as the frequency or probability that a page that has been used once will be used again may be used. Further, the next page prediction may be made by using all of the above information and taking all of them into account. In this way, failures in the prediction result will be reduced.

1豆立盈1 以上説明したように、ユーザごとに多様化するデータベ
ースのデータ処理の分野でいくつかの定型業務プログラ
ムを持っているとき、本発明による統計情報による入出
力制御方式を用いることによって以下の効果が得られる
。すなわち、プログラムがよく使われれば使われるほど
次にほしい入力ページの予想が当たるようになり、入出
カプログラムがユーザプログラムと並列に動作するため
、入出力のための前処理時間をゼロにすることができる
。また、的確に不用ページが見つかるため、主記憶と二
次記憶の入出力回数が減ることによりさらに実行スピー
ドが速くなる。
1.1 As explained above, when you have several routine business programs in the field of data processing of databases that are diversified for each user, by using the input/output control method using statistical information according to the present invention. The following effects can be obtained. In other words, the more frequently the program is used, the more accurate the prediction of the next desired input page becomes, and since the input/output program operates in parallel with the user program, the preprocessing time for input/output can be reduced to zero. I can do it. In addition, since unnecessary pages are accurately found, the number of inputs and outputs to and from main memory and secondary memory is reduced, further increasing execution speed.

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

第1図は本発明の実施例のブロック図、第2図及び第3
図は本発明の実施例の動作を説明するためのデータペー
ジの統計情報エリアの例を示す図である。 主要部分の符号の説明 1・・・・・・主記憶装置 2・・・・・・二次記憶装置
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 and FIG.
The figure is a diagram showing an example of a statistical information area of a data page for explaining the operation of the embodiment of the present invention. Explanation of symbols of main parts 1...Main storage device 2...Secondary storage device

Claims (3)

【特許請求の範囲】[Claims] (1)二次記憶装置上のデータを必要に応じて主記憶装
置のバッファプールへ読込むためのデータ制御方式であ
つて、前記データの各データページに夫々対応した読込
み統計情報領域を付加し、この情報領域に夫々対応する
データページの前記バッファプールへの読込み態様を示
す情報をプログラムが実行される毎に統計的に書換えつ
つ格納するようにし、この情報を用いて次にプログラム
が要求するであろうデータページを予測してこの予測デ
ータページを前記バッファプールへ読込むようにしたこ
とを特徴とするデータ制御方式。
(1) A data control method for reading data on a secondary storage device into a buffer pool of a main storage device as necessary, which adds a reading statistical information area corresponding to each data page of the data, and Information indicating how the data pages corresponding to each information area are read into the buffer pool is stored while being statistically rewritten each time the program is executed, and this information is used to store the data pages requested by the next program. A data control system characterized in that a data page is predicted to be a blank data page and the predicted data page is read into the buffer pool.
(2)前記情報は、その情報領域に対応するデータペー
ジが前記バッファプールへ読込まれて使用される使用頻
度情報であることを特徴とする特許請求の範囲第1項の
データ制御方式。
(2) The data control method according to claim 1, wherein the information is usage frequency information on how the data page corresponding to the information area is read into the buffer pool and used.
(3)前記情報は、その情報領域に対応するデータペー
ジから別のデータページへ移る推移確率情報であること
を特徴とする特許請求の範囲第1項のデータ制御方式。
(3) The data control method according to claim 1, wherein the information is transition probability information for moving from a data page corresponding to the information area to another data page.
JP60077319A 1985-04-11 1985-04-11 Data control system Pending JPS61235957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60077319A JPS61235957A (en) 1985-04-11 1985-04-11 Data control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60077319A JPS61235957A (en) 1985-04-11 1985-04-11 Data control system

Publications (1)

Publication Number Publication Date
JPS61235957A true JPS61235957A (en) 1986-10-21

Family

ID=13630613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60077319A Pending JPS61235957A (en) 1985-04-11 1985-04-11 Data control system

Country Status (1)

Country Link
JP (1) JPS61235957A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63204448A (en) * 1987-02-13 1988-08-24 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Data processing system
JPS641047A (en) * 1987-02-13 1989-01-05 Internatl Business Mach Corp <Ibm> Data processing system
JPH01128145A (en) * 1987-11-13 1989-05-19 Nippon Telegr & Teleph Corp <Ntt> Access system for magnetic disk
JPH03164840A (en) * 1989-08-29 1991-07-16 Microsoft Corp Method and system for optimizing data caching in disk-base computer system
JPH05189286A (en) * 1992-01-09 1993-07-30 Hitachi Ltd System and method for controlling disk cache
JPH0895857A (en) * 1994-09-29 1996-04-12 Shikoku Nippon Denki Software Kk Input/output cache
JP2011086207A (en) * 2009-10-16 2011-04-28 Canon Inc Apparatus and method for processing information and computer program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63204448A (en) * 1987-02-13 1988-08-24 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン Data processing system
JPS641047A (en) * 1987-02-13 1989-01-05 Internatl Business Mach Corp <Ibm> Data processing system
JPH01128145A (en) * 1987-11-13 1989-05-19 Nippon Telegr & Teleph Corp <Ntt> Access system for magnetic disk
JPH03164840A (en) * 1989-08-29 1991-07-16 Microsoft Corp Method and system for optimizing data caching in disk-base computer system
JPH05189286A (en) * 1992-01-09 1993-07-30 Hitachi Ltd System and method for controlling disk cache
JPH0895857A (en) * 1994-09-29 1996-04-12 Shikoku Nippon Denki Software Kk Input/output cache
JP2011086207A (en) * 2009-10-16 2011-04-28 Canon Inc Apparatus and method for processing information and computer program

Similar Documents

Publication Publication Date Title
US8224845B2 (en) Transaction prediction modeling method
US4727487A (en) Resource allocation method in a computer system
Hong et al. A performance analysis of minimum laxity and earliest deadline scheduling in a real-time system
CN105069134B (en) A kind of automatic collection method of Oracle statistical informations
JPH03130842A (en) Simultaneous execution controller for data base system
WO2017183065A1 (en) Device and method for tuning relational database
CN113010289A (en) Task scheduling method, device and system
JPS61235957A (en) Data control system
JP2009087190A (en) Stream data analysis speed-up device, method and program
WO2023015787A1 (en) High throughput cloud computing resource recovery system
JPS6027949A (en) Automatic job class scheduling system
Slimani et al. Hardware Fuzzy Scheduler for Real-Time Independent Tasks
JP2716019B2 (en) Job class determination method
CN111459910A (en) Program optimization method and device, computer equipment and storage medium
CN117390465B (en) Workload prediction method
KR20040024236A (en) Device and method for administrating data-core-network using multi-thread
US11550775B2 (en) Time-to-run column for database management systems
JPS6165333A (en) Evaluation system for system structure
CN110209746B (en) Data processing method and device for data warehouse
JP3073889B2 (en) Data transfer method
Chang et al. A bottleneck-based due-date assignment methodology
JPH08286951A (en) Information processor and trace information storage method
CN117875522A (en) Method, device, storage medium and equipment for predicting event number
JP2606359B2 (en) File management device
JPH10326307A (en) Schedule management method and management system