JPH0451341A - Buffer number managing system - Google Patents

Buffer number managing system

Info

Publication number
JPH0451341A
JPH0451341A JP2161628A JP16162890A JPH0451341A JP H0451341 A JPH0451341 A JP H0451341A JP 2161628 A JP2161628 A JP 2161628A JP 16162890 A JP16162890 A JP 16162890A JP H0451341 A JPH0451341 A JP H0451341A
Authority
JP
Japan
Prior art keywords
buffer
page
buffers
hit
pages
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
JP2161628A
Other languages
Japanese (ja)
Inventor
Yoshio Kariya
刈谷 善雄
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 JP2161628A priority Critical patent/JPH0451341A/en
Publication of JPH0451341A publication Critical patent/JPH0451341A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To inform the optimum number of buffers to a user by setting (n-m)(n>=m) buffers without having real areas on a main memory device other than (m) real buffers on the main memory device. CONSTITUTION:A buffer managing means 14 performs buffer control at every issuance of a request to use a page and also, checks whether or not requested page identifiers L1-Ln exist in a buffer page table (BT) 12, and adds one on a hit counter(BC) Cn with a number in accordance with a position where the request page identifiers L1-Ln exist when they exist, and on a BCCn+1 when no request page identifiers exist on a hit number table(HT) 13, respectively. The BT 12 and the HT 13 are comprised of (m) real buffers and (n-m)(n>=m) virtual buffers. A hit rate informing means 15 finds the buffer hit rates of the number of requests to use the BCC1-Ci and that of request to use BCC1-Cn+1 from the HT 13, and informs the optimum number of buffers to the user.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はバッファ数管理方式に関し、特に補助記憶装置
のページの入出力に用いる主記憶装置のバッファ数を管
理する情報処理システムのバッファ数管理方式に関する
。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a buffer number management method, and particularly to buffer number management in an information processing system that manages the number of buffers in a main memory device used for input/output of pages in an auxiliary storage device. Regarding the method.

〔従来の技術〕[Conventional technology]

従来のバッファ数管理方式は、補助記憶装置のページの
入出力に用いる主記憶装置の最適なバッファ数を求める
ために、何度かバッファ数を変えて対象の処理を実行し
てみるか、あるいは、補助記憶装置に格納される各ファ
イルごとに物理構造を考えることにより、各ファイルに
対するページの入出力の出方を予測するかして、最適で
あると思われるバッファ数を定めていた。
In conventional buffer number management methods, in order to find the optimal number of buffers in the main memory used for input/output of pages in the auxiliary storage, the target process is executed with the number of buffers changed several times, or The optimal number of buffers was determined by considering the physical structure of each file stored in the auxiliary storage device and predicting the page input/output for each file.

〔発明が解決しようとする課題〕   ゛上述した従来
のバッファ数管理方式は、何度もバッファ数を変えて対
象の処理を実行してみないと最適なバッファ数が得なれ
なかったり、ファイルの構造を知らないと最適なバッフ
ァ数が予測できなかったりして、主記憶装置の最適なバ
ッファ数を得るために大変手間がかかるという欠点を有
している。
[Problems to be solved by the invention] ゛The conventional buffer number management method described above may not be able to obtain the optimal number of buffers unless the target process is executed by changing the number of buffers many times, or If the structure is not known, the optimum number of buffers cannot be predicted, and it has the disadvantage that it takes a lot of effort to obtain the optimum number of buffers for the main memory.

本発明の目的は、主記憶装置上のm個の実バッファの他
に、主記憶装置上に実領域を持たないn−m個(ただし
、n≧mとする)の仮想バッファを設定することにより
、対象の処理の1回の実行で、1個からn個までのバッ
ファ数に対するバッファヒツト率を得て、使用者に最適
なバッファ数を定めるための情報として通知することが
できるバッファ数管理方式を提供することにある。
The purpose of the present invention is to set n-m virtual buffers (where n≧m) that do not have a real area on the main memory in addition to m real buffers on the main memory. With this method, the buffer hit rate for the number of buffers from 1 to n can be obtained in one execution of the target process, and the buffer hit rate can be notified to the user as information for determining the optimal number of buffers. The goal is to provide a method.

〔課題を解決するための手段〕[Means to solve the problem]

第1の発明のバッファ数管理方式は、使用要求により補
助記憶装置から読出した主記憶装置のバッファにない新
たなページを、最も古い時点で使用したページを有する
前記主記憶装置のバッファ上に書換えて記憶させるバッ
ファ制御を行う情報処理システムにあって、前記補助記
憶装置のページの入出力に用いる前記主記憶装置のバッ
ファ数を管理するバッファ数管理方式において、(A)
前記主記憶装置上で動作状態にあるm個の実バッファ) (B)前記実バッファのそれぞれで動作中のm個のペー
ジの識別子と、前記実バッファに加えて前記実バッファ
より使用の優先順位が低いn−m個(ただし、n≧mと
する)の仮想バッファがあるとして、前記仮想バー・ソ
ファで動作中に仮定されるn−m個のページの識別子と
に対して、最も新しい時点で使用したページから順に番
号を与えて保有するバッファページテーブル、 (C)前記バッファページテーブルの各々の番号に対応
するページに対する使用要求数を持つn個のヒツトカウ
ンタと、前記実バッファおよび前記仮想バッファの何れ
にもないページに対する使用要求数を持つn+1番目の
ヒツトカウンタとを保有するヒツト数テーブル、 (D)ページに対する使用要求があるごとにバ・ソファ
制御を行うとともに、要求されたページの識別子が前記
バッファページテーブルに存在するかどうかを調べて、
前記ヒツト数テーブル上で、存在するときには、要求さ
れたページの識別子がある位置に対応する番号のヒツト
カウンタに、存在しないときには、n+1番目のヒツト
カウンタに、それぞれ1を加えるバッファ管理手段、 (E)あるバッファ数i(ただし、n≧iとする)につ
いて、前記ヒツト数テーブルの内容を用いて、1番目か
らi番目までのヒツトカウンタにあるi個の使用要求数
を加えた値と、1番目からn+1番目までのヒツトカウ
ンタにあるn+1個の使用要求数を加えた値との比率を
求めて、使用者が最適なバッファ数を定めるための情報
として通知するヒツト率通知手段、 を備えて構成されている。
The buffer number management method of the first invention rewrites a new page that is not in the buffer of the main memory read from the auxiliary memory in response to a usage request onto the buffer of the main memory that has the page that was used at the oldest point in time. In an information processing system that performs buffer control for storing pages in the auxiliary storage device, in a buffer number management method that manages the number of buffers in the main storage device used for inputting and outputting pages in the auxiliary storage device, (A)
m real buffers in operation on the main memory) (B) identifiers of m pages in operation in each of the real buffers and priority of use over the real buffers in addition to the real buffers; Assuming that there are n-m virtual buffers with a low value (where n≧m), the most recent point in time with respect to n-m page identifiers assumed during operation on the virtual bar/sofa. (C) n hit counters each having the number of usage requests for pages corresponding to each number in the buffer page table; (D) A hit count table that has an n+1 hit counter that has the number of usage requests for pages that are not in any of the buffers; Check whether the identifier exists in the buffer page table;
buffer management means that adds 1 to a hit counter corresponding to a position where the requested page identifier exists on the hit count table; when the requested page identifier does not exist, adds 1 to the (n+1)th hit counter; ) For a certain number of buffers i (where n≧i), using the contents of the hit count table, calculate the value obtained by adding the i number of usage requests in the first to i-th hit counters, and 1. Hit rate notification means for calculating the ratio of the number of usage requests added to the number of n+1 usage requests in the number of hit counters from the number n+1 to the number n+1, and notifying the user as information for determining the optimal number of buffers. It is configured.

また、第2の発明のバッファ数管理方式は、使用要求に
より補助記憶装置から読出した主記憶装置のバッファに
ない新たなページを、最も古い時点で使用したページを
有する前記主記憶装置のバッファ上に書換えて記憶させ
るバッファ制御を行う情報処理システムにあって、前記
補助記憶装置のページの入出力に用いる前記主記憶装置
のバッファ数を管理するバッファ数管理方式において、 (A)バッファページテーブルに、前記主記憶装置上で
動作状態にあるm個の実バッファのそれぞれで動作中の
m個のページの識別子と、前記実バッファに加えて前記
実バッファより使用の優先順位が低いn−m個(ただし
、n≧mとする)の仮想バッファがあるとして、前記仮
想バッファで動作中に仮定されるn−m個のページの識
別子とに対して、最も新しい時点で使用したページから
順に番号を与えて保有し、 (B)ヒツト数テーブルに、前記バッファページテーブ
ルの各々の番号に対応するページに対する使用要求数を
持つn個のヒツトカウンタと、前記実バッファおよび前
記仮想バッファの何れにもないページに対する使用要求
数を持つn+1番目のヒツトカウンタとを保有し、 (C)ページに対する使用要求があるごとに、要求され
たページの識別子が前記バッファページテーブルに存在
するかどうかを調べて、前記ヒツト数テーブル上で、存
在するときには、要求されたページの識別子がある位置
に対応する番号のヒツトカウンタに、存在しないときに
は、n+1番目のヒツトカウンタに、それぞれ1を加え
、 (D)あるバッファ数i (ただし、n≧iとする)に
ついて、前記ヒツト数テーブルの内容を用いて、1番目
からi番目までのヒツトカウンタにあるi個の使用要求
数を加えた値と、1番目からn+1番目までのヒツトカ
ウンタにあるn+1個の使用要求数を加えた値との比率
を求めることにより、使用者が最適なバッファ数を定め
るための情報として通知する、 ことにより構成されている。
In addition, the buffer number management method of the second invention stores a new page read from the auxiliary storage device in response to a usage request and which is not in the buffer of the main storage device, onto the buffer of the main storage device that has the page that was used at the oldest point in time. In an information processing system that performs buffer control for rewriting and storing pages in the auxiliary storage device, in a buffer number management method that manages the number of buffers in the main storage device used for inputting and outputting pages in the auxiliary storage device, (A) , identifiers of m active pages in each of the m real buffers active on the main memory, and n−m pages whose use priority is lower than that of the real buffer in addition to the real buffer. Assuming that there is a virtual buffer (where n≧m), numbers are assigned in order from the most recently used page for the n-m page identifiers assumed during operation in the virtual buffer. (B) in the hit count table, n hit counters having the number of usage requests for pages corresponding to each number in the buffer page table, and in neither the real buffer nor the virtual buffer; (C) each time there is a request to use a page, it is checked whether the identifier of the requested page exists in the buffer page table; If the requested page identifier exists on the hit count table, add 1 to the hit counter with the number corresponding to the position where the requested page identifier is located, and if it does not exist, add 1 to the n+1th hit counter, respectively, For i (where n≧i), using the contents of the hit count table, add the i number of usage requests in the 1st to ith hit counters, and the 1st to n+1th hit counters. By determining the ratio between the number of usage requests and the number of usage requests (n+1) in the hit counter up to that point, the user is notified as information for determining the optimal number of buffers.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して説明する
。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図は、本発明のバッファ数管理方式の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the buffer number management method of the present invention.

本実施例の情報処理システムは、使用要求により補助記
憶装置から読出した主記憶装置のバッファにない新たな
ページを、最も古い時点で使用したページを有する主記
憶装置のバッファ上に書換えて記憶させるバッファ制御
を行っている。
The information processing system of this embodiment rewrites and stores a new page that is not in the buffer of the main storage device read from the auxiliary storage device in response to a usage request on the buffer of the main storage device that has the page that was used at the oldest point in time. Performs buffer control.

そして、第1図に示すように、バッファ領域11は、主
記憶装置上で動作状態にあるm個の実バッファB I 
+ ・・・・・・BI、、を有している゛。
As shown in FIG. 1, the buffer area 11 consists of m real buffers B
+・・・・・・BI, ゛.

また、バッファページテーブル12は、実バッファBl
+・・・・・・B、のそれぞれで動作中のm個のページ
の識別子Lt+L2t ・・・・・・L、、、と、実バ
ッファBI+・・・・・・B、より使用の優先順位が低
いn−m個(ただし、n≧mとする)の仮想バッファが
あるとして、その仮想バッファで動作中に仮定されるn
−m個のページの識別子LyH+I!・・・・・・L、
、とに対して、最も新しい時点で使用したページから順
に番号を与えて、n個のページの識別子L’l+L2+
 ・・・・・・L、、を保有している。
In addition, the buffer page table 12 includes the real buffer Bl
Identifiers of m pages operating in each of +...B, Lt+L2t...L,..., and real buffer BI+...B, priority of use Assuming that there are n-m virtual buffers (n≧m) with low
−m page identifiers LyH+I!・・・・・・L、
, are given numbers in order from the most recently used page, and the identifiers of n pages L'l+L2+
・・・・・・L, , is held.

一方、ヒツト数テーブル13は、バッファページテーブ
ル12の各々の番号1,2.・・・・・・nに対応する
ページに対する使用要求数Ct + C2+・・・・・
・Cnを持つn個のヒツトカウンタと、m個の実バッフ
ァおよびn−m個の仮想バッファの何れにもないページ
に対する使用要求数0□1を持つn+1番目のヒツトカ
ウンタとを保有している。
On the other hand, the hit number table 13 includes numbers 1, 2, . ...Number of usage requests for the page corresponding to n Ct + C2+ ...
・It has n hit counters with Cn and an n+1 hit counter with the number of usage requests for pages that are not in any of the m real buffers and nm virtual buffers, 0□1. .

そこで、バッファ管理手段14は、ページに対する使用
要求があるごとにバッファ制御を行うとともに、要求さ
れたページの識別子がバッファページテーブル12に存
在するかどうかを調べて、ヒツト数テーブル13上で、
存在するときには、要求されたページの識別子がある位
置に対応する番号のヒツトカウンタに、存在しないとき
には、n+1番目のヒツトカウンタに、それぞれ1を加
えている。
Therefore, the buffer management means 14 performs buffer control every time there is a request for use of a page, checks whether the identifier of the requested page exists in the buffer page table 12, and writes it on the hit number table 13.
When the requested page identifier exists, 1 is added to the hit counter corresponding to the position where the requested page identifier exists, and when it does not exist, 1 is added to the n+1th hit counter.

第2図は、本実施例のバッファ管理手段14の動作の一
例を示す流れ図である。
FIG. 2 is a flowchart showing an example of the operation of the buffer management means 14 of this embodiment.

第2図のバッファ管理手段14は、まず、ステップS1
で、要求されたページの識別子がバッファページテーブ
ル12に存在するかど、うかを検索している。
The buffer management means 14 in FIG. 2 first begins in step S1.
Then, a search is made to see if the identifier of the requested page exists in the buffer page table 12.

そして、ステップS2で、要求されたページの識別子が
バッファページテーブル12に存在するときには、要求
されたページの識別子がある位置に対応する番号のヒツ
ト数テーブル13上のヒツトカウンタに1を加え、要求
されたページの識別子がバッファページテーブル12に
存在しないときには、ヒツト数テーブル13上のn+1
番目のヒツトカウンタに1を加えて、ヒツト数テーブル
13を更新している。
Then, in step S2, if the requested page identifier exists in the buffer page table 12, 1 is added to the hit counter on the hit count table 13 corresponding to the position of the requested page identifier, and If the identifier of the page that has been updated does not exist in the buffer page table 12, n+1 on the hit count table 13
The hit number table 13 is updated by adding 1 to the th hit counter.

また、ステップS3で、要求されたページの識別子があ
る位置の前の位置までのバッファページテーブル12の
記憶内容を一つずつ後にずらせて、要求されたページの
識別子をバッファページテーブル12の先頭に記憶して
いる。
In addition, in step S3, the stored contents of the buffer page table 12 up to the position before the position where the requested page identifier is located are shifted backward one by one, and the requested page identifier is placed at the beginning of the buffer page table 12. I remember.

次に、ステップS4で、要求されたページがバッファ領
域11にある実バッファであるかどうかを判断している
。
Next, in step S4, it is determined whether the requested page is a real buffer in the buffer area 11.

実バッファである(YES)場合には、ステップS7へ
移行し、実バッファでない(NO)場合には、ステップ
S5で、最も古い時点で使用したページを含む実バッフ
ァを検索している。
If it is a real buffer (YES), the process moves to step S7, and if it is not a real buffer (NO), a real buffer containing the oldest used page is searched for in step S5.

そして、ステップS6で、その最も古い時点で使用した
ページを含む実バッファに対応するバッファページテー
ブル12の位置に更新フラグがあるか否かを調べ、更新
フラグがあれば、その最も古い時点で使用したページを
補助記憶装置に出力してから、要求されたページを入力
している。
Then, in step S6, it is checked whether there is an update flag at the position of the buffer page table 12 corresponding to the real buffer containing the page used at the oldest point, and if there is an update flag, the page is used at the oldest point. The requested page is input after the requested page is output to the auxiliary storage device.

次に、ステップS7で、更新要求であるか入力要求であ
るかを判断している。
Next, in step S7, it is determined whether the request is an update request or an input request.

そして、更新要求である場合にだけ、ステップS8で、
要求されたページの識別子を持つバッファページテーブ
ル12の先頭位置に更新フラグのセットを行っている。
Then, only if it is an update request, in step S8,
An update flag is set at the top position of the buffer page table 12 that has the identifier of the requested page.

さらに、ヒツト率通知手段15は、あるバッファ数i(
ただし、n≧iとする)について、ヒツト数テーブル1
3の内容を用いて、1番目から1番目までのヒツトカウ
ンタにあるi個の使用要求数を加えた値Ct +C2+
・・・・・・+CIと、1番目からn+1番目までのヒ
ツトカウンタにあるn+1個の使用要求数を加えた値C
t +C2+・・・・・・十〇 n+1との比率をバッ
ファヒツト率HIとして、 を求めて、使用者が最適なバッファ数を定めるための情
報として通知している。
Furthermore, the hit rate notification means 15 sends a certain number of buffers i(
However, for n≧i), hit count table 1
Using the contents of 3, the value Ct +C2+ is the sum of the number of i usage requests in the hit counters from 1st to 1st.
......+CI and the number of n+1 usage requests in the 1st to n+1st hit counters C
t+C2+...10 The ratio with n+1 is defined as the buffer hit rate HI, and the following is calculated and notified as information for the user to determine the optimal number of buffers.

このために、使用者は、補助記憶装置のページの入出力
に用いる主記憶装置のバッファ数を容易に定めることが
できる。
Therefore, the user can easily determine the number of buffers in the main memory used for inputting and outputting pages in the auxiliary memory.

次に、本実施例で、mが3でnが6の場合について、バ
ッファページテーブルとヒツト数テーブルとに対する状
態変化の一例を説明する。
Next, an example of state changes for the buffer page table and the hit count table will be described in the case where m is 3 and n is 6 in this embodiment.

第3図は、mが3でnが6の本実施例で、識別子の12
のページが使用要求される直前のバッファページテーブ
ルとヒツト数テーブルとの状態の一例を示すブロック図
である。また、第4図は、mが3でnが6の本実施例で
、識別子の12ノヘージが使用要求された直後のバッフ
ァページテーブルとヒツト数テーブルとの状態の−例を
示すブロック図である。
Figure 3 shows this example where m is 3 and n is 6, and the identifier 12
FIG. 3 is a block diagram showing an example of the state of a buffer page table and a hit count table immediately before a page is requested to be used. Further, FIG. 4 is a block diagram showing an example of the state of the buffer page table and the number of hits table immediately after the usage of 12 identifiers is requested in this embodiment where m is 3 and n is 6. .

第8図に示すように、バッファページテーブル12が、
ページの識別子り、=I L L2=8゜L3=4.L
4 =6.L!、=12.LB =13を持ち、ヒツト
数テーブル13が、ヒツトカウンタにある使用要求数を
Cs =1.C2=2− Ca =3、C4二2.C,
、=7.C3=7.C7=9を持っていた状態で、識別
子の12のページが使用要求されている。
As shown in FIG. 8, the buffer page table 12 is
Page identifier =I L L2=8°L3=4. L
4 = 6. L! ,=12. LB = 13, and the hit count table 13 sets the number of usage requests in the hit counter to Cs = 1. C2=2- Ca=3, C422. C,
,=7. C3=7. With C7=9, 12 pages of identifiers are requested.

そこで、第4図に示すように、識別子の12のページが
最も新しい時点で使用したページになるのでその識別子
が先頭の位置に来て、バッファページテーブル12は、
ページの識別子Ls=12、L2=I L L3=8.
L4=4.L、=6、L8=13にそれぞれ変化すると
ともに、バツアページテーブル12の5番目にあった識
別子のページに対する使用要求であったので、ヒット数
テーブル13は、5番目のヒツトカウンタにある使用要
求数05に1を加えて、C15=8に変化している。
Therefore, as shown in FIG. 4, the page with the identifier 12 is the most recently used page, so that identifier is at the top position, and the buffer page table 12 is as follows:
Page identifier Ls=12, L2=IL L3=8.
L4=4. L, = 6, L8 = 13, and since the request was for the page with the identifier located at the fifth position in the battle page table 12, the hit number table 13 shows the usage request at the fifth hit counter. By adding 1 to the number of requests 05, the number changes to C15=8.

なお、第4図の状態では、バッファ数が5の場合のバッ
ファヒツト率H5は、 となり、50%である。
In the state shown in FIG. 4, the buffer hit rate H5 when the number of buffers is 5 is as follows, which is 50%.

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

以上説明したように、本発明のバッフ、ア数管理方式は
、主記憶装置上のm個の実バッファの他に、主記憶装置
上に実領域を持たないn−m個(ただし、n≧mとする
)の仮想バッファを設定することにより、対象の処理の
1回の実行で、1個からn個までのバッファ数に対する
バッファヒツト率を得て、使用者に最適なバッファ数を
定めるための情報として通知することができるという効
果を存している。
As explained above, in addition to m real buffers on the main memory, the buffer and account management system of the present invention has n-m real buffers that do not have real areas on the main memory (where n≧ In order to determine the optimal number of buffers for the user by setting virtual buffers (m), the buffer hit rate for the number of buffers from 1 to n is obtained in one execution of the target process. This has the effect that it can be notified as information.

この結果、本発明のバッファ数管理方式は、使用者が最
適なバッファ数を決定する手助けとなリ、使用者が容易
に最適なバッファ数で能率良く対象の処理を行うことが
できるという効果を有している。
As a result, the buffer number management method of the present invention helps the user determine the optimal number of buffers, and has the effect that the user can easily and efficiently process the target with the optimal number of buffers. have.

〜C□、C□、・・・・・・使用要求数、L 11 L
2 +〜L、・・・・・・識別子。
~C□,C□,...Number of usage requests, L 11 L
2 +~L,...Identifier.

Claims (1)

【特許請求の範囲】 1、使用要求により補助記憶装置から読出した主記憶装
置のバッファにない新たなページを、最も古い時点で使
用したページを有する前記主記憶装置のバッファ上に書
換えて記憶させるバッファ制御を行う情報処理システム
にあって、前記補助記憶装置のページの入出力に用いる
前記主記憶装置のバッファ数を管理するバッファ数管理
方式において、 (A)前記主記憶装置上で動作状態にあるm個の実バッ
ファ、 (B)前記実バッファのそれぞれで動作中のm個のペー
ジの識別子と、前記実バッファに加えて前記実バッファ
より使用の優先順位が低いn−m個(ただし、n≧mと
する)の仮想バッファがあるとして、前記仮想バッファ
で動作中に仮定されるn−m個のページの識別子とに対
して、最も新しい時点で使用した ページから順に番号を与えて保有するバッ ファページテーブル、 (C)前記バッファページテーブルの各々の番号に対応
するページに対する使用要求数を持つn個のヒットカウ
ンタと、前記実バッファおよび前記仮想バッファの何れ
にもないページに対する使用要求数を持つn+1番目の ヒットカウンタとを保有するヒット数テーブル、 (D)ページに対する使用要求があるごとにバッファ制
御を行うとともに、要求された ページの識別子が前記バッファページテーブルに存在す
るかどうかを調べて、前記ヒット数テーブル上で、存在
するときには、要求されたページの識別子がある位置に
対応する番号のヒットカウンタに、存在しないときに は、n+1番目のヒットカウンタに、それぞれ1を加え
るバッファ管理手段、 (E)あるバッファ数i(ただし、n≧1とする)につ
いて、前記ヒット数テーブルの内容を用いて、1番目か
らi番目までのヒットカウンタにあるi個の使用要求数
を加えた値 と、1番目からn+1番目までのヒットカウンタにある
n+1個の使用要求数を加えた値との比率を求めて、使
用者が最適なバッファ数を定めるための情報として通知
するヒット率通知手段、 を備えることを特徴とするバッファ数管理方式。 2、使用要求により補助記憶装置から読出した主記憶装
置のバッファにない新たなページを、最も古い時点で使
用したページを有する前記主記憶装置のバッファ上に書
換えて記憶させるバッファ制御を行う情報処理システム
にあって、前記補助記憶装置のページの入出力に用いる
前記主記憶装置のバッファ数を管理するバッファ数管理
方式において、 (A)バッファページテーブルに、前記主記憶装置上で
動作状態にあるm個の実バッファのそれぞれで動作中の
m個のページの識別子 と、前記実バッファに加えて前記実バッファより使用の
優先順位が低いn−m個(ただ し、n≧mとする)の仮想バッファがあるとして、前記
仮想バッファで動作中に仮定されるn−m個のページの
識別子とに対して、最も新しい時点で使用したページか
ら順に番号を与えて保有し、 (B)ヒット数テーブルに、前記バッファページテーブ
ルの各々の番号に対応するページに対する使用要求数を
持つn個のヒットカウンタと、前記実バッファおよび前
記仮想バッ ファの何れにもないページに対する使用要求数を持つn
+1番目のヒットカウンタとを保有し、 (C)ページに対する使用要求があるごとに、要求され
たページの識別子が前記バッファ ページテーブルに存在するかどうかを調べ て、前記ヒット数テーブル上で、存在するときには、要
求されたページの識別子がある位置に対応する番号のヒ
ットカウンタに、存在しないときには、n+1番目のヒ
ットカウンタに、それぞれ1を加え、 (D)あるバッファ数i(ただし、n≧iとする)につ
いて、前記ヒット数テーブルの内容を用いて、1番目か
らi番目までのヒットカウンタにあるi個の使用要求数
を加えた値 と、1番目からn+1番目までのヒットカウンタにある
n+1個の使用要求数を加えた値との比率を求めること
により、使用者が最適なバッファ数を定めるための情報
として通知する、 ことを特徴とするバッファ数管理方式。
[Claims] 1. A new page read from the auxiliary storage in response to a usage request and not in the buffer of the main storage is rewritten and stored on the buffer of the main storage that has the page used at the oldest time. In an information processing system that performs buffer control, in a buffer number management method that manages the number of buffers in the main storage device used for input/output of pages in the auxiliary storage device, (A) a buffer that is in an operating state on the main storage device; m real buffers; (B) the identifiers of the m pages operating in each of the real buffers, and the identifiers of the m pages in operation in each of the real buffers; Assuming that there is a virtual buffer (n≧m), numbers are assigned in order from the most recently used page to the identifiers of n-m pages assumed during operation in the virtual buffer. (C) n hit counters having the number of use requests for pages corresponding to each number in the buffer page table, and the number of use requests for pages that are not in either the real buffer or the virtual buffer; (D) Performs buffer control each time there is a request to use a page, and checks whether the identifier of the requested page exists in the buffer page table. buffer management means that adds 1 to a hit counter corresponding to a position where the requested page identifier exists on the hit number table, and to an (n+1)th hit counter when the requested page identifier does not exist; (E) For a certain number of buffers i (where n≧1), using the contents of the hit count table, calculate the value obtained by adding the i number of usage requests in the first to i-th hit counters. , a hit rate notification means for determining the ratio between the number of usage requests of n+1 in the first to n+1 hit counters and notifying the user as information for determining the optimal number of buffers; A buffer number management method characterized by comprising: 2. Information processing that performs buffer control to rewrite and store a new page read from the auxiliary storage device in response to a use request and not in the buffer of the main storage device on the buffer of the main storage device that has the page that was used at the oldest point in time. In the system, in a buffer number management method for managing the number of buffers in the main memory used for input/output of pages in the auxiliary storage, (A) a buffer page table indicates that the number of buffers in the main memory is in an operating state; Identifiers of m pages operating in each of m real buffers, and in addition to the real buffers, n-m virtual pages whose usage priority is lower than that of the real buffers (where n≧m) Assuming that there is a buffer, the identifiers of nm pages assumed during operation in the virtual buffer are assigned numbers in order from the page used most recently, and (B) hit number table. , n hit counters having the number of use requests for pages corresponding to each number in the buffer page table, and n hit counters having the number of use requests for pages that are not in either the real buffer or the virtual buffer.
(C) Every time there is a request for use of a page, it is checked whether the requested page identifier exists in the buffer page table, and if the identifier of the requested page exists on the hit count table, When the requested page identifier does not exist, add 1 to the hit counter number corresponding to the position where the requested page identifier exists, and add 1 to the n+1th hit counter when the requested page identifier does not exist. ), using the contents of the hit count table, add the i number of usage requests in the 1st to i-th hit counters, and n+1 in the 1st to n+1th hit counters. A method for managing the number of buffers characterized in that information for determining the optimum number of buffers is notified to the user by determining the ratio between the number of usage requests and the sum of the number of usage requests.
JP2161628A 1990-06-20 1990-06-20 Buffer number managing system Pending JPH0451341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2161628A JPH0451341A (en) 1990-06-20 1990-06-20 Buffer number managing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2161628A JPH0451341A (en) 1990-06-20 1990-06-20 Buffer number managing system

Publications (1)

Publication Number Publication Date
JPH0451341A true JPH0451341A (en) 1992-02-19

Family

ID=15738800

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2161628A Pending JPH0451341A (en) 1990-06-20 1990-06-20 Buffer number managing system

Country Status (1)

Country Link
JP (1) JPH0451341A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5730178A (en) * 1980-07-29 1982-02-18 Fujitsu Ltd Generation system for data for adjustment of number of page storage areas of page buffer memory

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5730178A (en) * 1980-07-29 1982-02-18 Fujitsu Ltd Generation system for data for adjustment of number of page storage areas of page buffer memory

Similar Documents

Publication Publication Date Title
JP4687729B2 (en) Cache memory, vector processing apparatus, and vector data alignment method
US6658549B2 (en) Method and system allowing a single entity to manage memory comprising compressed and uncompressed data
JPH0415839A (en) Distributed data base control device
JPS6136667B2 (en)
US7877523B2 (en) Apparatus, computer program product, and system for completing a plurality of chained list DMA commands that include a fenced list DMA command element
JP2001056783A (en) Program unit memory attribute management method
US6553469B2 (en) Memory record update filtering
US8122194B2 (en) Transaction manager and cache for processing agent
US8977814B1 (en) Information lifecycle management for binding content
US6804754B1 (en) Space management in compressed main memory
JP3522140B2 (en) HIT / MISS counter for each way and counting method thereof
JP2001290704A (en) Multi-process control device and multi-process control method
JPH03147157A (en) Information processor
JPH04101273A (en) Map retrieving method
JP3488184B2 (en) Data history control processor
JPH02189658A (en) Cache memory
JP4131579B2 (en) Data management system and data management method
JP2708012B2 (en) Update buffer management device
JPH0784886A (en) Cache memory control method and cache memory control device
JPH03196345A (en) Data input/output system
JPH0682334B2 (en) Management processing device for management table
JPH04195563A (en) Controller for memory system
JPH05100926A (en) Input/output managing system
JP3579876B2 (en) Drawing history management device
JP2583403B2 (en) Backing store management method