JPS603224B2 - Data creation method for adjusting the number of page storage areas in page buffer memory - Google Patents
Data creation method for adjusting the number of page storage areas in page buffer memoryInfo
- Publication number
- JPS603224B2 JPS603224B2 JP55104691A JP10469180A JPS603224B2 JP S603224 B2 JPS603224 B2 JP S603224B2 JP 55104691 A JP55104691 A JP 55104691A JP 10469180 A JP10469180 A JP 10469180A JP S603224 B2 JPS603224 B2 JP S603224B2
- Authority
- JP
- Japan
- Prior art keywords
- page
- stack
- buffer memory
- access
- page number
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/10—Address translation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Description
【発明の詳細な説明】
本発明は、複数のページを格納できるページ・バッファ
・メモリの大きさを調整する際に有効とするデータを簡
単に入手できるようにしたページ・バッファ・メモリに
おけるページ格納域数調整用データ作成方式に関するも
のである。DETAILED DESCRIPTION OF THE INVENTION The present invention provides a method for storing pages in a page buffer memory that makes it possible to easily obtain data that is effective when adjusting the size of a page buffer memory that can store multiple pages. This relates to a data creation method for adjusting the number of areas.
直接アクセス装置に対するランダム・アクセスを行う入
出力管理プログラムでは主記憶上に複数のページを格納
できるページ・バッファ領域を持ち、ページの退出しを
適当なアルゴリズム、例えばLRU(LeastRec
entlyUsed)法で行っている。An input/output management program that performs random access to a direct access device has a page buffer area that can store multiple pages in main memory, and uses an appropriate algorithm to remove pages, such as LRU (Least Rec).
entryUsed) method.
このような場合、いったんバッファの個数を定めると、
実際の連用環境において、果してどのページの格納城の
個数が妥当なものであるか杏かが判断できず、ページ格
納城数の調整が困難であつた。本発明は、上記の考察に
基づくものであって、ページ・バッファ・メモリのペー
ジ数をn個増加すれば、アクセスすべきページかページ
・バッファ・メモリに存在する確率が幾%高まるかとい
うことを判断するためのデータを合理的かつ簡単に入手
できるようにしたページ・バッファ・メモリにおけるペ
ージ格納城数調整用データ作成方式を提供することを目
的としている。In such a case, once the number of buffers is determined,
In an actual continuous use environment, it is difficult to determine which page has a proper number of storage sites, and it is difficult to adjust the number of page storage sites. The present invention is based on the above-mentioned consideration, and it is determined by what percentage that if the number of pages in the page buffer memory is increased by n, the probability that the page to be accessed exists in the page buffer memory is increased. The purpose of this invention is to provide a data creation method for adjusting the number of pages stored in a page buffer memory, which makes it possible to reasonably and easily obtain data for determining the number of pages stored in a page buffer memory.
そしてそのため、本発明のページ・バッファ・メモリに
おけるページ格納城数調整用データ作成方式は、アクセ
ス依頼元から要求されたページが存在しない場合には、
他のメモリ装置との間でページの出入れを行うようにな
ったページ・バツフア・メモリにおいて、ページ番号ス
タツク、アクセス回数記録部、並びに上記ページ番号ス
タックとアクセス回数記録部とを制御する仮想バッファ
制御手段を設け、該仮想バッファ制御手段は、上記ペー
ジ・バッファ・メモリにおいてページ置換が行われる度
に(ィ) アクセスしたいページの番号が上記ページ番
号スタックに存在するか杏かを調べる処理と、(ロ)
アクセスしたいページの番号がページ番号スタツクに存
在する場合には、当該ページの番号をページ番号スタッ
クより取除き、ページ番号スタックを1だけプッシュ・
ダウンすると共に、アクセス回数記録部の内容を十1す
る処理と、(ハ) アクセスしたいページの番号が上記
ページ番号スタックに存在しない場合には、ページ番号
スタックの最終ページ番号を取除き、べ−ジ番号スタッ
クをプッシュ・ダウンする処理と、(ニ) 上記ページ
番号スタックの最上段に上記ページ・バッファ・メモリ
から迫出したページの番号をセットする処理とを行うよ
う構成されていることを特徴とするものである。Therefore, in the data creation method for adjusting the number of pages stored in the page buffer memory of the present invention, if the page requested by the access request source does not exist,
A virtual buffer that controls a page number stack, an access count recording section, and the page number stack and access count recording section in a page buffer memory where pages are transferred in and out of other memory devices. A control means is provided, and the virtual buffer control means performs a process of (a) checking whether the number of the page to be accessed exists in the page number stack each time page replacement is performed in the page buffer memory; (B)
If the number of the page you want to access exists in the page number stack, remove the page number from the page number stack and push the page number stack by 1.
(c) If the number of the page you want to access does not exist in the page number stack, remove the last page number from the page number stack, and and (d) processing to set the number of the page pushed out from the page buffer memory at the top of the page number stack. That is.
第1図は本発明の1実施例のブロック図、第2図はペー
ジ番号スタックとりード・テーブルとライト・テーブル
を示す図、第3図は本発明の動作を説明する図である。FIG. 1 is a block diagram of one embodiment of the present invention, FIG. 2 is a diagram showing a page number stack, a read table and a write table, and FIG. 3 is a diagram explaining the operation of the present invention.
第1図において、1はページ・バッファ・メモリ、2は
ページ・バッファ制御装置、3は入出力制御装置、4は
外部記憶装置、5はアクセス・ページ・レジスタ、6は
迫出しページ・レジスタ、7は仮想バッファ制御装置、
8はページ番号スタツク、9はリード・テーフル、10
はライト・テーブル、11はべ−ジ・アクセス要求元を
それぞれ示している。ページ・バッファ・メモリ1は、
複数のページ格納域を有しており、またページ格納城に
は変更ビット・フィールドが付加されている。変更ビッ
トは、そのページ格納域のデータが書替えられているか
否かを示すものであり、「1」の変更ビットはそのデー
タが書替えられていることを示す。ページ・バッファ・
メモリ1は、主メモリ上の1つの領域であると考えても
良く、或はキャッシュ・メモリであると考えても良く、
或は主メモリそのものと考えても良い。ページ・アクセ
ス要求元がページをアクセスする場合、ページ・アドレ
スがアクセス・ページ・レジスタにセットされる。ペー
ジ・バッファ制御装置2はアクセス・ページ・レジスタ
5の内容を用いてページ・バッファ・メモリ1を検索す
る。該当するページがページ・バッファ・メモリ1の中
に存在せず且つ空きのページ格納城が存在しない場合に
は、造出すべきページのページ番号および変更ビットが
迫出しページ・レジスタ6にセットされる。造出しペー
ジの変更ビットが「1」のときには、入出力制御装置2
のページ書き出し機能部3−1が造出しページを外部記
憶装置4に書込む。また、アクセスすべきページかペー
ジ・バッファ・メモリ3に存在しなかったので、入出力
制御装置2のページ読み込み機能部3一0が該当するペ
ージを外部記憶装置4から読み込み、読み込みページを
迫出しページが格納されてたページ格納城に格納される
。上述のような動作を行うシステムは従来より公知のも
のであるが、本発明はこの種のシステムに点線で示すよ
うな機構を付加したことを特徴とするものである。In FIG. 1, 1 is a page buffer memory, 2 is a page buffer control device, 3 is an input/output control device, 4 is an external storage device, 5 is an access page register, 6 is an extended page register, 7 is a virtual buffer control device;
8 is the page number stack, 9 is the lead table, 10
11 indicates a write table, and 11 indicates a page access request source. Page buffer memory 1 is
It has multiple page storage areas, and a change bit field is added to the page storage area. The change bit indicates whether or not the data in the page storage area has been rewritten, and a change bit of "1" indicates that the data has been rewritten. page buffer
Memory 1 may be considered to be an area on main memory, or may be considered to be a cache memory,
Alternatively, it may be considered as the main memory itself. When a page access requester accesses a page, the page address is set in the access page register. The page buffer controller 2 uses the contents of the access page register 5 to search the page buffer memory 1. If the corresponding page does not exist in the page buffer memory 1 and there is no free page storage, the page number and change bit of the page to be created are set in the ejection page register 6. . When the creation page change bit is “1”, the input/output control device 2
The page writing function unit 3-1 writes the created page to the external storage device 4. Also, since the page to be accessed did not exist in the page buffer memory 3, the page reading function section 310 of the input/output control device 2 reads the corresponding page from the external storage device 4 and extracts the read page. The page will be stored in the page storage castle where the page was stored. A system that performs the above-mentioned operation is conventionally known, but the present invention is characterized by adding a mechanism shown by dotted lines to this type of system.
点線の部分は、仮りにページ・バッファ・メモリのペー
ジ格納城がn個多いとすると、ページ造出し‘こ基づく
外部記憶装置4からのページ読み込み回数および外部記
憶装置4へのページ書き出し回数がどの程度減少するか
を計算するものである。ページ番号スタツクは#1ェン
トリないし#nェントリを有しており、各ヱトリには迫
出しページの番号が記入される。リード・テーブル8お
よびライト・テーブル10も#1エントリないし#nェ
ントリを有している。仮想バッファ制御装置7は、ペー
ジ番号スタック8の制御やりード・テーブル9に対する
書き込み処理、ライト・テーブル101こ対する書き込
み処理を行うものである。さきに述べたように、ページ
・アクセス依頼元11の要求したページかページ・バッ
ファ・メモリ1に存在しない場合には、該当ページが外
部記憶装置4から読み込まれ、この読み込みデータが空
きの格納城もしくは造出しページのページ格納域に格納
される。The dotted line indicates that if there are n more pages stored in the page buffer memory, the number of times pages are read from the external storage device 4 and the number of pages written to the external storage device 4 based on page creation is calculated. This is to calculate how much it will decrease. The page number stack has entries #1 to #n, and the number of the extrusion page is written in each entry. Read table 8 and write table 10 also have #1 to #n entries. The virtual buffer control device 7 controls the page number stack 8 and performs write processing to the read table 9 and write processing to the write table 101. As mentioned earlier, if the page requested by the page access request source 11 does not exist in the page buffer memory 1, the page is read from the external storage device 4, and this read data is stored in the free storage space. Alternatively, it is stored in the page storage area of the created page.
このようなページ入れ替えが起る度に次のような処理を
行う。先ず、アクセスしたいページがページ番号スタッ
ク8に登録されているか否かを調べる。第3図イのよう
に、アクセスしたいページがページ番号スタツク8の#
iェントリに登録されている場合には、リード・テーブ
ル9の#iヱントリの内容を十1し、この際、迫出しペ
ージの変更ビットが「1」であるとすると、ライト・テ
ーブル10の#iェントリの内容も十1される。アクセ
スしたいページの番号がページ番号スタツク8に登録さ
れている場合には、第3図イの処理を行った後、アクセ
スしたいページの番号をページ番号スタック8より取除
き、第3図口に示すようにページ番号スタック8の内容
を1だけプッシュ・ダウンする。アクセスしたいページ
の番号がページ番号スタック8に登録されていない場合
には、第3図ハに示すように、ページ番号スタック8の
#nェントリのデータを無効とし、プッシュ・ダウンす
る。上記の第3図イと口の処理又は第3図′、の処理が
終了したあと、迫出しページの番号をページ番号スタツ
ク8の技上段のェント川こ書込む。ページ・バッファ・
メモリのページ格納城数を調整するための情報は次のよ
にして得られる。Every time such page replacement occurs, the following processing is performed. First, it is checked whether the page to be accessed is registered in the page number stack 8. As shown in Figure 3 A, the page you want to access is ## in the page number stack 8.
If the #i entry in the read table 9 is registered in The contents of the i entry are also incremented. If the number of the page you want to access is registered in the page number stack 8, after performing the process shown in Figure 3 A, remove the number of the page you want to access from the page number stack 8, as shown in Figure 3. The contents of the page number stack 8 are pushed down by 1 as shown in FIG. If the number of the page to be accessed is not registered in the page number stack 8, as shown in FIG. 3C, the data in the #n entry of the page number stack 8 is invalidated and pushed down. After the above-mentioned processing of FIG. 3A and FIG. 3A or FIG. page buffer
Information for adjusting the number of pages stored in memory can be obtained as follows.
もし、m個(1≧n)のページ格納城か余分に存在すれ
ば、外部記憶装置4からのりード回数は、次式で与えら
れる回数だけ減少するはずである。減少回数=i≧.(
#iヱントリの読出し回数)ライトに関する減少回数も
同様して求められる。このようにして求めたりードの減
少回数又はライトの減少回数を全体のリード回数又はラ
イト回数と比較すれば、m個ページ格納域を増やすこと
の妥当性が判断できる。本発明は、例えば、VS(VM
uaIStoねge)機能をもつOSのページング・ス
ーパバイザに適用できるものである。If m (1≧n) extra page storages exist, the number of reads from the external storage device 4 should decrease by the number given by the following equation. Number of decreases = i≧. (
#i The number of times the entry is read (number of times the entry is read) and the number of times the write is decreased is similarly determined. The validity of increasing the page storage area by m can be determined by comparing the number of decreases in the number of reads or the number of decreases in writes obtained in this way with the total number of reads or writes. The present invention provides, for example, VS (VM
This can be applied to the paging supervisor of an OS that has the uaIStonege) function.
この場合、ページング・アルゴリズムにとっては、ペー
ジ・バッファは実記憶そのものであり、実記憶と直接ア
クセス菱直上のページ・データ・セットとの間でページ
の出入れを行う。本発明を用いると、次のような運用が
行われる。○’ページ格納城数調整用情報を取りたい場
合、IPL時にその旨を指定する。In this case, for the paging algorithm, the page buffer is real memory itself, and pages are moved in and out between real memory and the page data set directly above the direct access diamond. When the present invention is used, the following operations are performed. ○'If you want to obtain information for adjusting the number of pages stored, specify so at the time of IPL.
‘21 ページング・スーババイザは、上記のように、
m個ページ格納城を増加すると、リード回数又はライト
回数がどれだけ減少するかをシミュレーションし、所定
のタイミングでシミュレーション結果をシステム・ログ
・ファイルに書き出す。'21 The paging supervisor, as mentioned above,
It simulates how much the number of reads or writes decreases when the number of pages stored is increased by m, and the simulation results are written to a system log file at a predetermined timing.
‘31 システム管理者はログを解析し、実際の連用環
境の下で実装されているメモリ量が妥当なのか否かを判
断する。'31 The system administrator analyzes the logs and determines whether the amount of memory installed is appropriate under the actual continuous use environment.
スラッシングが多発するようなときにも、本発明を用い
ると、実装メモリ容量を増すことで、スラッシングが減
少できるか否かが判断できる。Even when thrashing occurs frequently, by using the present invention, it can be determined whether thrashing can be reduced by increasing the mounted memory capacity.
以上の説明から明らかなように、本発明によれば、ペー
ジ・バッファ・メモリのページ格納減数を最適に調整す
るためのデータを簡単かつ合理的に作成することが出釆
る。・図面の簡単な説明
第1図は本発明の1実施例のブロック図、第2図はペー
ジ番号スタツクとりード・テーブルとライト・テーブル
を示す図、第3図本発明の動作を説明する図である。As is clear from the above description, according to the present invention, it is possible to easily and rationally create data for optimally adjusting the number of pages stored in the page buffer memory.・Brief explanation of the drawings Figure 1 is a block diagram of one embodiment of the present invention, Figure 2 is a diagram showing a page number stack read table and write table, Figure 3 explains the operation of the present invention. It is a diagram.
1…ページ・バツフア・メモリ、2…ページ・バッファ
制御装置、3・・・入出力制御製層、4・・・外部記憶
装置、5…アクセス・ページ・レジスタ、6・・・迫出
しページ・レジスタ、7・・・仮想バッファ制御装置、
8・・・ページ番号スタック、9・・・リード・テーブ
ル、10…ライト・テーフル、11…ページ・アクセス
要求元。DESCRIPTION OF SYMBOLS 1... Page buffer memory, 2... Page buffer control device, 3... Input/output control layer, 4... External storage device, 5... Access page register, 6... Extrusion page register. Register, 7...virtual buffer control device,
8...Page number stack, 9...Read table, 10...Write table, 11...Page access request source.
オー図 オ2図O diagram Figure 2
Claims (1)
場合には、他のメモリ装置との間でページの出し入れを
行うページ・バツフア・メモリにおいて、ページ番号ス
タツク、アクセス回数記録部、並びに上記ページ番号ス
タツクとアクセス回数記録部とを制御する仮想バツフア
制御手段を設け、該仮想バツフア制御手段は、上記ペー
ジ・バツフア・メモリにおいてページ置換が行われる度
に(イ) アクセスしたいページの番号が上記ページ番
号スタツクに存在するか否かを調べる処理と、(ロ)
アクセスしたいページの番号がページ番号スタツクに存
在する場合には、当該ページの番号をページ番号スタツ
クより取除き、ページ番号スタツクを1だけプツシユ・
ダウンすると共に、アクセス回数記録部の内容を+1す
る処理と、(ハ) アクセスしたいページの番号が上記
ページ番号スタツクに存在しない場合には、ページ番号
スタツクの最終ページ番号を取除き、ページ番号スタツ
クをプツシユ・ダウンする処理と、上記ページ番号スタ
ツクの最上段に上記ページ・バツフア・メモリから追出
したページの番号をセツトする処理とを行うように構成
されていることを特徴とするページ・バツフア・メモリ
におけるページ格納域数調整用データ作成方式。1. If the page requested by the access request source does not exist, the page number stack, access count recording section, and the above page number stack are stored in the page buffer memory that transfers pages to and from other memory devices. and an access count recording unit, and the virtual buffer control means performs the following operations, each time a page is replaced in the page buffer memory: (b)
If the number of the page you want to access exists in the page number stack, remove the page number from the page number stack and push the page number stack by 1.
(c) If the number of the page you want to access does not exist in the page number stack, remove the last page number from the page number stack and add 1 to the access count record section. and a process of setting the number of the page evicted from the page buffer memory at the top of the page number stack. - Data creation method for adjusting the number of page storage areas in memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55104691A JPS603224B2 (en) | 1980-07-29 | 1980-07-29 | Data creation method for adjusting the number of page storage areas in page buffer memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP55104691A JPS603224B2 (en) | 1980-07-29 | 1980-07-29 | Data creation method for adjusting the number of page storage areas in page buffer memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS5730178A JPS5730178A (en) | 1982-02-18 |
| JPS603224B2 true JPS603224B2 (en) | 1985-01-26 |
Family
ID=14387488
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP55104691A Expired JPS603224B2 (en) | 1980-07-29 | 1980-07-29 | Data creation method for adjusting the number of page storage areas in page buffer memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS603224B2 (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4834170A (en) * | 1986-11-21 | 1989-05-30 | Diesel Kiki Co., Ltd. | Air conditioner for automobiles |
| JPH0451341A (en) * | 1990-06-20 | 1992-02-19 | Nec Corp | Buffer number managing system |
| JPH0497458A (en) * | 1990-08-16 | 1992-03-30 | Nec Corp | Cache memory use information counting system |
-
1980
- 1980-07-29 JP JP55104691A patent/JPS603224B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS5730178A (en) | 1982-02-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6205521B1 (en) | Inclusion map for accelerated cache flush | |
| KR100373313B1 (en) | A method and system for managing a cache memory | |
| US10126964B2 (en) | Hardware based map acceleration using forward and reverse cache tables | |
| EP0077453B1 (en) | Storage subsystems with arrangements for limiting data occupancy in caches thereof | |
| US20100088459A1 (en) | Improved Hybrid Drive | |
| US9003099B2 (en) | Disc device provided with primary and secondary caches | |
| US10430346B2 (en) | DDR storage adapter | |
| JP2009020881A (en) | Processing system that implements memory organization with variable page size | |
| US20170228191A1 (en) | Systems and methods for suppressing latency in non-volatile solid state devices | |
| US20260023689A1 (en) | Systems, methods, and apparatus for accessing data in versions of memory pages | |
| KR101026634B1 (en) | How to store data in hybrid flash memory | |
| CN114746848B (en) | Cache Architecture for Storage Devices | |
| JPS603224B2 (en) | Data creation method for adjusting the number of page storage areas in page buffer memory | |
| US12105968B2 (en) | Systems, methods, and devices for page relocation for garbage collection | |
| JPH01303547A (en) | Control system for information memory | |
| KR102065033B1 (en) | Method for storing and recovering of high speed data on memory and memory for performing the same | |
| JPH0460730A (en) | Cache control system | |
| JP3183661B2 (en) | Disk controller | |
| JP2502406B2 (en) | Storage control system and data processing device | |
| JP2636470B2 (en) | Data transfer path selection method | |
| JPH0644139A (en) | Disk cache system and its page replacement control method | |
| JPH0784886A (en) | Cache memory control method and cache memory control device | |
| US11188238B2 (en) | Information processing apparatus, memory control method, and computer program product | |
| CN117609105A (en) | Methods and apparatus for accessing data in a version of a memory page | |
| JPH04273549A (en) | Write-back system for cache memory |