JPH0652512B2 - Main memory page replay system - Google Patents

Main memory page replay system

Info

Publication number
JPH0652512B2
JPH0652512B2 JP62067139A JP6713987A JPH0652512B2 JP H0652512 B2 JPH0652512 B2 JP H0652512B2 JP 62067139 A JP62067139 A JP 62067139A JP 6713987 A JP6713987 A JP 6713987A JP H0652512 B2 JPH0652512 B2 JP H0652512B2
Authority
JP
Japan
Prior art keywords
page
main memory
task
allocated
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.)
Expired - Lifetime
Application number
JP62067139A
Other languages
Japanese (ja)
Other versions
JPS63233451A (en
Inventor
和秀 津村
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 JP62067139A priority Critical patent/JPH0652512B2/en
Publication of JPS63233451A publication Critical patent/JPS63233451A/en
Publication of JPH0652512B2 publication Critical patent/JPH0652512B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は仮想記憶計算機システムの主記憶管理方式に関
し、特に、1つのタスクに対する主記憶ページ割当て限
度枠を設定できる仮想記憶計算機システムに於ける主記
憶ページリプレース方式に関する。
The present invention relates to a main memory management system of a virtual memory computer system, and more particularly to a virtual memory computer system capable of setting a main memory page allocation limit frame for one task. Main memory page replacement method

〔従来の技術〕[Conventional technology]

仮想記憶計算機システムに於いては、従来より、大規模
な仮想記憶域を必要とするタスクがシステムの主記憶資
源を独占使用することを防ぐため、1つのタスクに対す
る主記憶ページ割当て限度枠を設定することが提案され
ている。ところで、或るタスクに主記憶ページ割当て限
度枠を設定した場合、上記タスクは一旦限度枠の飽和状
態に達した後は常にその状態を動作することになるた
め、ページ不在割込みが発生する毎に上記タスクに割当
て済みの主記憶ページの内から解放可能な主記憶ページ
を選択し、これをリプレースする必要がある。また、こ
の時、選択した主記憶ページが更新済みであれば二次記
憶装置へのページアンロードも行なう必要がある。
In a virtual memory computer system, conventionally, a main memory page allocation limit frame for one task is set to prevent a task requiring a large-scale virtual memory area from monopolizing the main memory resource of the system. It is suggested to do so. By the way, when the main memory page allocation limit frame is set for a certain task, the above task always operates in that state once the saturation state of the limit frame is once reached, so that every time a page fault interrupt occurs. It is necessary to select a releasable main memory page from the main memory pages assigned to the above task and replace it. At this time, if the selected main memory page has been updated, page unloading to the secondary memory device also needs to be performed.

上述したように、タスクに対する主記憶ページ割当て限
度枠を設定した場合、ページ不在割込みが発生する毎
に、リプレース対象ページのサーチ及び必要ならば二次
記憶装置へのページアンロードを行なわなければなら
ず、オーバーヘッドが大きくなる問題がある。
As described above, when the main memory page allocation limit frame for a task is set, a page to be replaced must be searched and page unloading to the secondary memory device must be performed whenever a page fault interrupt occurs. However, there is a problem that the overhead becomes large.

このような問題点を解決するため、タスクに対する主記
憶ページの割当てが限度枠に達した時点で、上記タスク
に割当て済みの主記憶ページの内から解放可能な主記憶
ページを一定数(例えば、限度枠に比例した数)選択
し、選択した主記憶ページをまとめて二次記憶装置に返
却する方式が提案されている(例えば特願昭61−106506
号参照)。
In order to solve such a problem, when the allocation of main memory pages to a task reaches the limit frame, a fixed number of main memory pages that can be released from the main memory pages allocated to the task (for example, A method has been proposed in which selected main memory pages are collectively returned to the secondary storage device (for example, Japanese Patent Application No. 61-106506).
No.).

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述したように、複数の主記憶ページをまとめて二次記
憶装置に返却することにより、ページ不在割込みが発生
する毎にリプレース対象ページのサーチ等を行なう必要
がなくなり、オーバーヘッドを減少させることはできる
が、複数ページをまとめて返却するので、返却したペー
ジが不幸にして再度参照される可能性が大きくなり、二
次記憶装置から主記憶装置へ再ロードしなければならな
い回数が多くなる問題がある。
As described above, by collectively returning a plurality of main memory pages to the secondary memory device, it is not necessary to search for a replacement target page each time a page fault interrupt occurs, and the overhead can be reduced. However, since multiple pages are returned in a batch, the returned pages are unfortunately likely to be referenced again, and there is a problem that the number of times that the secondary storage device must be reloaded to the main storage device increases. .

本発明は前述の如き問題点を解決したものであり、その
目的は二次記憶装置から主記憶装置への再ロードの回数
を増加させることなく、オーバーヘッドを減少できるよ
うにすることにある。
The present invention solves the above-mentioned problems, and an object of the present invention is to reduce the overhead without increasing the number of reloads from the secondary storage device to the main storage device.

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

本発明は前述の如き問題点を解決するため、 ページング機構を有し、1つのタスクに対する主記憶ペ
ージ割当て限度枠を設定できる仮想記憶システムに於い
て、 或るタスクに対する主記憶ページの割当てが前記限度枠
に達し、且つページリプレースの優先候補の主記憶ペー
ジが所定数以下になった場合、前記タスクに割当て済み
の主記憶ページの中から一部の主記憶ページを選択し、
選択した主記憶ページを、更新済みの主記憶ページにつ
いてはその内容を二次記憶装置上に反映させた後、ペー
ジリプレースの優先候補にする。
In order to solve the above-mentioned problems, the present invention provides a virtual memory system having a paging mechanism and capable of setting a main memory page allocation limit frame for one task. When the limit frame is reached and the number of main memory pages of priority candidates for page replacement is less than or equal to a predetermined number, some main memory pages are selected from the main memory pages assigned to the task,
Regarding the selected main storage page, the content of the updated main storage page is reflected on the secondary storage device, and then it is made a priority candidate for page replacement.

〔作 用〕[Work]

一部の主記憶ページがまとめてページリプレースの優先
候補にされるだけで、返却は行なわれない。
Some main memory pages are collectively set as priority candidates for page replacement, and are not returned.

〔実施例〕〔Example〕

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

第1図を参照すると、本発明方式が適用される仮想記憶
システムの実施例は、複数の主記憶ページ5から構成さ
れる主記憶装置1と、二次記憶装置2と、大規模な仮想
記憶域を必要とするタスク3と、ページング制御部4
と、主記憶ページ表6と、ページ表7とを含んでいる。
Referring to FIG. 1, an embodiment of a virtual storage system to which the method of the present invention is applied is a main storage device 1 composed of a plurality of main storage pages 5, a secondary storage device 2, and a large-scale virtual storage device. Task 3 that requires bandwidth and paging controller 4
And a main memory page table 6 and a page table 7.

主記憶装置1は複数の主記憶ページ5に物理的に分割さ
れている。主記憶ページ5には未使用の主記憶ページと
タスクに割当て済みの主記憶ページとがある。
The main storage device 1 is physically divided into a plurality of main storage pages 5. The main memory page 5 includes an unused main memory page and a main memory page assigned to a task.

ページング制御部4はページ割当て手段41と、限度枠設
定部42と、主記憶ページ選択手段43と、割当て済みペー
ジ表44と、割当て済みページ管理手段45と、レジスタ46
と、割当て済みページチェーンポインタ47とを備えてい
る。
The paging control unit 4 includes a page allocation unit 41, a limit frame setting unit 42, a main memory page selection unit 43, an allocated page table 44, an allocated page management unit 45, and a register 46.
And an assigned page chain pointer 47.

ページ割当て手段41はページ不在割込みが加えられるこ
とにより、タスク3に未使用の主記憶ページを割当て
る。限度枠設定部42はタスク3への主記憶ページの割当
て限度枠を設定する。割当て済みページ表44には、第2
図に示すように、タスク3に割当て済みの主記憶ページ
の主記憶ページ番号対応に、参照ビット,更新ビット,
複数のLRUビット及びポインタ情報が登録される。
The page allocating means 41 allocates an unused main memory page to the task 3 by adding a page absence interrupt. The limit frame setting unit 42 sets an allocation limit frame of the main memory page for task 3. In the allocated page table 44, the second
As shown in the figure, the reference bit, the update bit,
A plurality of LRU bits and pointer information are registered.

割当て済みページ管理手段45はタスク3に主記憶ページ
が割当てられると、その主記憶ページ番号を割当て済み
ページ表44に登録し、登録した主記憶ページ番号対応の
ポインタ情報として割当て済みページチェーンポインタ
47の内容を登録し、前回登録した主記憶ページ番号対応
のポインタ情報を今回登録した主記憶ページ番号を指し
示す内容に変更する。従って、タスク3に割当て済みの
主記憶ページは第3図に示すような割当て済みページチ
ェーン8によって管理されることになる。なお、割当て
済みページチェーンポインタ47は割当て済みページチェ
ーン8の先頭を指し示すものである。また、割当て済み
ページ管理手段45は、タスク3に割当て済みの主記憶ペ
ージが参照,更新されると割当て済みページ表44の対応
する参照ビット,更新ビットを“1”とし、タスク3に
割当て済みの主記憶ページの内容が二次記憶装置2に反
映されることにより、対応する更新ビットを“0”とす
る。更に、割当て済みページ管理手段45は定期的に更新
ビットをLRUビットに反映させ、その後更新ビットを
“0”とする。
When the main memory page is allocated to task 3, the allocated page management means 45 registers the main memory page number in the allocated page table 44, and allocates the page chain pointer as pointer information corresponding to the registered main memory page number.
The content of 47 is registered, and the pointer information corresponding to the main memory page number registered last time is changed to the content indicating the main memory page number registered this time. Therefore, the main memory page allocated to the task 3 is managed by the allocated page chain 8 as shown in FIG. The allocated page chain pointer 47 points to the beginning of the allocated page chain 8. Further, the allocated page management means 45 sets the corresponding reference bit and update bit of the allocated page table 44 to “1” when the main memory page allocated to the task 3 is referred to and updated, and is allocated to the task 3. The corresponding update bit is set to “0” by reflecting the content of the main storage page of No. 2 in the secondary storage device 2. Further, the allocated page management means 45 periodically reflects the update bit in the LRU bit, and thereafter sets the update bit to "0".

主記憶ページ選択手段43はタスク3に割当て済みの主記
憶ページの中から最近参照されていない主記憶ページを
一定数選択し(例えば、限度枠に比例した数)、選択し
た主記憶ページを、更新済みの主記憶ページについては
その内容を二次記憶装置2に反映させた後、ページリプ
レースの優先候補にする。レジスタ46には、ページリプ
レースの優先候補となっている主記憶ページの残存数が
セットされる。
The main memory page selection means 43 selects a certain number of main memory pages that have not been referenced recently from the main memory pages assigned to task 3 (for example, the number proportional to the limit frame), and selects the selected main memory page as The content of the updated main storage page is reflected in the secondary storage device 2 and then set as a priority candidate for page replacement. In the register 46, the number of remaining main memory pages that are priority candidates for page replacement is set.

主記憶ページ表6には、第4図に示すように、主記憶装
置1を主記憶ページに分割した場合の主記憶ページにつ
けられる主記憶ページ番号対応に、該当する主記憶ペー
ジに格納されているページがどのタスクの何ページ目の
ものなのかを示すタスク識別子と、該当する主記憶ペー
ジに有効なページが格納されているか否かを示す状態ビ
ット(本実施例に於いては“1”=有効,“0”=無効
とする)とが登録される。
As shown in FIG. 4, the main memory page table 6 stores the main memory page corresponding to the main memory page number assigned to the main memory page when the main memory device 1 is divided into main memory pages. A task identifier indicating which page of which task the existing page belongs to, and a status bit indicating whether or not a valid page is stored in the corresponding main memory page (“1” in this embodiment). = Valid, “0” = invalid) are registered.

ページ表7には第5図に示すように、タスク3の仮想記
憶域をページに分割した場合のページに付けられるペー
ジ番号対応に、あるページが格納されている主記憶ペー
ジの主記憶装置1上の始点アドレスを示す主記憶ページ
アドレスと、ページが主記憶装置1上に存在するか否か
を示す存在ビット(本実施例に於いては“1”=存在、
“0”=不在とする)とが登録される。
In the page table 7, as shown in FIG. 5, the main storage device 1 of the main storage page in which a certain page is stored corresponding to the page number assigned to the page when the virtual storage area of task 3 is divided into pages. A main memory page address indicating the upper start address and a presence bit indicating whether or not the page exists in the main memory device 1 (in this embodiment, "1" = presence,
"0" = absent) is registered.

次に本発明の実施例の動作を説明する。Next, the operation of the embodiment of the present invention will be described.

タスク3の実行中に於いては、タスク3の実行部分を含
むページ主記憶装置1上に存在するか否かが、ページ表
7の存在ビットに基づいて調べられ、存在しない場合は
ページ割当て手段41にページ不在割込みが加えられる。
During the execution of the task 3, whether or not it exists in the page main memory 1 including the execution part of the task 3 is checked based on the existence bit of the page table 7, and if it does not exist, the page allocation means. A page fault interrupt is added to 41.

ページ割当て手段41はタスク3の実行が開始された後、
限度枠設定部42で設定されたページ数の主記憶ページを
タスク3に一旦割当てるまでは、ページ不在割込みが加
えられる毎に主記憶ページ表6を調べ、状態ビットが
“0”となっている未使用の主記憶ページをタスク3に
割当て、その後、対応する存在ビット及び状態ビットを
“1”にする処理を繰返し行なう。また、割当て済みペ
ージ管理手段45はページ割当て手段41がタスク3に主記
憶ページを割当て毎にその主記憶ページの主記憶ページ
番号を割当て済みページ表44に登録すると共にポインタ
情報を変更し、タスク3に新たに割当てた主記憶ページ
を割当て済みページチェーン8の最後部につなぐ。
The page allocating means 41, after the execution of task 3 is started,
Until the number of pages of main memory set by the limit frame setting unit 42 is once assigned to the task 3, the main memory page table 6 is checked every time a page fault interrupt is added, and the status bit is "0". An unused main memory page is assigned to task 3, and then the process of setting the corresponding existing bit and status bit to "1" is repeated. In addition, the allocated page management means 45 registers the main memory page number of the main memory page in the allocated page table 44 every time the page allocation means 41 allocates the main memory page to the task 3, and changes the pointer information. The main memory page newly allocated to 3 is connected to the last part of the allocated page chain 8.

そして、限度枠設定部42で設定されたページ数の主記憶
ページをタスク3に一旦割当てた後は、ページ割当て手
段41はページ不在割込みが加えられる毎にページ不在割
込み通知を主記憶ページ選択手段43に加える。主記憶ペ
ージ選択手段43は上記通知を受けると、レジスタ46の内
容に基づいてページリプレースの優先候補となっている
主記憶ページのページ数が所定数(0を含む)以下にな
っているか否かを調べる。
Then, after once allocating the main memory pages of the number of pages set by the limit frame setting unit 42 to the task 3, the page allocating means 41 issues a page fault interrupt notification to the main memory page selecting means every time a page fault interrupt is added. Add to 43. Upon receiving the above notification, the main memory page selection means 43 determines whether or not the number of main memory pages that are priority candidates for page replacement is less than or equal to a predetermined number (including 0) based on the contents of the register 46. Find out.

ページリプレースの優先候補となっている主記憶ページ
のページ数が上記所定数以下になっている場合は、以後
続いて発生するページ不在割込みに備えて、タスク3へ
の割当て済みが主記憶ページの中から一定数の主記憶ペ
ージをページリプレースの優先候補にする。本実施例に
於ける主記憶ページをページリプレースの優先候補にす
る方法は次の通りである。即ち、主記憶ページ選択手段
43は、先ず割当て済みページ表44を参照し、LRUビッ
トに基づいて、タスク3に割当てられている主記憶ペー
ジの内から最近参照されていない一定数の主記憶ページ
を選択する。この際、選択した主記憶ページのページ数
が上記一定数に達していない時は、“最近参照されてい
ない”という条件を緩和(LRUの更新)して再度選択
を行ない、上記一定数の主記憶ページを確保する。
If the number of main memory pages that are priority candidates for page replacement is less than or equal to the predetermined number, the allocated memory area for task 3 is the main memory page in preparation for a page fault interrupt that occurs subsequently. Make a fixed number of main memory pages from among the priority candidates for page replacement. The method of making the main storage page in this embodiment a priority candidate for page replacement is as follows. That is, main memory page selection means
43 first refers to the allocated page table 44 and selects a fixed number of main memory pages that have not been referenced recently from the main memory pages allocated to task 3 based on the LRU bit. At this time, when the number of selected main memory pages does not reach the above-mentioned fixed number, the condition "not recently referenced" is relaxed (LRU is updated) and the selection is performed again, and the above-mentioned fixed number of main memory pages is selected. Reserve a memory page.

次いで、主記憶ページ選択手段43は選択した主記憶ペー
ジの内、更新済みの主記憶ページについてはその内容
(ページイメージ)を二次記憶装置2上に反映させた
後、対応する更新ビットを“0”とする。この際、更新
済みの主記憶ページが複数ページあり、二次記憶装置2
上の連続する二次記憶域を確保できる時は、上記複数の
主記憶ページのページイメージを一括して二次記憶装置
2に反映させる。更新されていない主記憶ページについ
ては、二次記憶装置2上に同一のページイメージが存在
するので、ページイメージを二次記憶装置2に反映させ
る必要はない。
Next, the main memory page selection means 43 reflects the content (page image) of the updated main memory page among the selected main memory pages on the secondary memory device 2, and then sets the corresponding update bit to " 0 ". At this time, there are a plurality of updated main storage pages, and the secondary storage device 2
When the above continuous secondary storage area can be secured, the page images of the plurality of main storage pages are collectively reflected in the secondary storage device 2. With respect to the main storage page that has not been updated, the same page image exists in the secondary storage device 2, so it is not necessary to reflect the page image in the secondary storage device 2.

次いで、主記憶ページ選択手段43は、割当て済みページ
チェーンポインタ47及び割当て済みページ表44のポイン
タ情報を変更することにより、第6図に示すように、選
択した主記憶ページを割当て済みページチェーン8の先
頭部につなぎ直し、ページリプレース時の優先候補とし
て位置づける。これらの主記憶ページはLRUのチェッ
クも二次記憶装置へのページアンロードも必要とせず、
直ちにリプレース可能な状態である。第6図は主記憶ペ
ージ番号P1〜Pnの主記憶ページがページリプレース
の優先候補になっていることを示している。また、この
時、主記憶ページ選択手段43はレジスタ46にページリプ
レースの優先候補となっている主記憶ページのページ数
をセットする。上述した処理を行なうことにより、一定
数の主記憶ページがページリプレースの優先候補とされ
る。
Next, the main memory page selecting means 43 changes the pointer information of the allocated page chain pointer 47 and the allocated page table 44 to change the selected main memory page to the allocated page chain 8 as shown in FIG. It is reconnected to the head of the page and positioned as a priority candidate when replacing the page. These main memory pages do not require LRU checking or page unloading to secondary storage,
It is ready for immediate replacement. FIG. 6 shows that the main memory pages with main memory page numbers P1 to Pn are priority candidates for page replacement. At this time, the main memory page selection means 43 sets the number of main memory pages that are priority candidates for page replacement in the register 46. By performing the above-described processing, a fixed number of main memory pages are set as priority candidates for page replacement.

次いで、主記憶ページ選択手段43は割当て済みページチ
ェーン8の先頭につながれている主記憶ページのページ
番号、即ち割当て済みページチェーンポインタ47が指し
示している主記憶ページのページ番号をページ割当て手
段41に加える。これにより、ページ割当て手段41はタス
ク3に主記憶ページ選択手段43から加えられたページ番
号対応の主記憶ページを割当てる。また、この際、主記
憶ページ選択手段43はページリプレース優先候補の残存
数がセットされているレジスタ46の内容を−1すると共
に、割当て済みページチェーンポインタ47の内容を変更
することにより、割当て済みページチェーン8の先頭を
変更する。例えば、割当て済みページチェーン8の先頭
が第6図に示すようにP1になっていたとすると、第7
図に示すように割当て済みページチェーン8の先頭をP
2に変更するものである。
Then, the main memory page selecting means 43 sets the page number of the main memory page linked to the head of the allocated page chain 8, that is, the page number of the main memory page pointed to by the allocated page chain pointer 47 to the page allocating means 41. Add. As a result, the page allocating means 41 allocates the main memory page corresponding to the page number added from the main memory page selecting means 43 to the task 3. At this time, the main memory page selection means 43 decrements the content of the register 46 in which the remaining number of page replacement priority candidates is set by -1 and changes the content of the allocated page chain pointer 47, thereby allocating Change the beginning of the page chain 8. For example, if the head of the allocated page chain 8 is P1 as shown in FIG.
As shown in the figure, P is assigned to the head of the allocated page chain 8.
It is changed to 2.

また、主記憶ページ選択手段43はページ割当て手段41か
らページ不在割込み通知が加えられた時、ページリプレ
ース優先候補の主記憶ページのページ数が前記所定数以
上ある場合は、直ちに割当て済みページチェーンポイン
タ47が指し示している主記憶ページのページ番号をペー
ジ割当て手段41に加え、その後前述したと同様にページ
リプレースの優先候補の残存数がセットされているレジ
スタの内容を−1すると共に、割当て済みページチェー
ンポインタ47の内容を更新する。従って、ページリプレ
ースの優先候補が前記所定数以上存在する間は、ページ
不在割込みは高速に処理されることになる。
The main memory page selecting means 43, when the page absence interrupt notification is added from the page allocating means 41, if the number of main memory pages of the page replacement priority candidate is equal to or more than the predetermined number, the allocated page chain pointer is immediately assigned. The page number of the main memory page pointed to by 47 is added to the page allocating means 41, and thereafter, in the same manner as described above, the remaining number of priority candidates for page replacement is decremented by 1 and the allocated page is allocated. The content of the chain pointer 47 is updated. Therefore, the page-absence interrupt is processed at high speed while there are more than the predetermined number of page replacement priority candidates.

また、ページリプレースの優先候補とされた主記憶ペー
ジが参照された場合は、主記憶ページをページリプレー
スの優先候補とする処理に於いてはページ表7の存在ビ
ットを更新する処理は行なっていないので、ページ不在
割込みが発生することなく、直ちにページの参照が行な
われる。この際、割当て済みページ管理手段45は割当て
済みページ表44の参照ビットを“1”に変更する処理、
ポインタ情報を変更することにより参照された主記憶ペ
ージをページリプレース優先候補から外す処理及びリプ
レースの優先候補の残存数がセットされているレジスタ
46の内容を−1する処理を行なう。
Further, when the main memory page which is the priority candidate for page replacement is referred to, the process of updating the existence bit of the page table 7 is not performed in the process of setting the main memory page as the priority candidate for page replacement. Therefore, the page is referred immediately without the occurrence of the page fault interrupt. At this time, the allocated page management means 45 changes the reference bit of the allocated page table 44 to “1”,
A process for removing the main memory page referenced by changing the pointer information from the page replacement priority candidates, and a register in which the number of remaining replacement priority candidates is set.
The contents of 46 are decremented by 1.

尚、上述した実施例に於いては、ページリプレースの優
先候補を割当て済みページチェーンの先頭部分につなぐ
ようにしたが、優先候補の主記憶ページだけをつないだ
専用のページチェーンを設定することも可能である。
In the above-mentioned embodiment, the priority candidate for page replacement is connected to the head part of the allocated page chain, but it is also possible to set a dedicated page chain connecting only the main memory pages of priority candidates. It is possible.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明は、仮想記憶システムに於
いて、主記憶ページ割当て限度枠の飽和状態で動作する
タスクに割当て済みの主記憶ページの内の一部を、ペー
ジリプレースの優先候補の主記憶ページのページ数が所
定数以下になった時点に於いて、まとめてページリプレ
ースの優先候補にするようにしたものであり、ページ不
在割込みが発生する毎にリプレース対象ページのサーチ
等を行なう必要がなくなるので、オーバーヘッドを削減
できる効果があり、また、ページリプレースの優先候補
とした主記憶ページを参照可能な状態にしたものである
から、優先候補とした主記憶ページが再度参照されても
再ロードを行なう必要がない効果もある。
As described above, according to the present invention, in the virtual memory system, a part of the main memory pages allocated to the task operating in the saturated state of the main memory page allocation limit frame is set as a priority candidate for page replacement. When the number of main memory pages becomes less than a predetermined number, they are collectively set as priority candidates for page replacement, and a replacement target page is searched every time a page fault interrupt occurs. Since it is not necessary, there is an effect that overhead can be reduced. Further, since the main memory page that is the priority candidate for page replacement is made available for reference, even if the main memory page that is the priority candidate is referenced again. There is also the effect that there is no need to reload.

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

第1図は本発明の実施例のブロック図、 第2図は割当て済みページ表44の構成例を示す図、 第3図は割当て済みページチェーンの構成例を示す図、 第4図は主記憶ページ表6の構成例を示す図、 第5図はページ表7の構成例を示す図、 第6図は割当て済みページチェーンの構成例を示す図及
び、 第7図は割当て済みページチェーンの構成例を示す図で
ある。 図に於いて、1……主記憶装置、2……二次記憶装置、
3……タスク、4……ページング制御部、5……主記憶
ページ、6……主記憶ページ表、7……ページ表、8…
…割当て済みページチェーン、41……ページ割当て手
段、42……限度枠設定部、43……主記憶ページ選択手
段、44……割当て済みページ表、45……割当て済みペー
ジ管理手段、46……レジスタ、47……割当て済みページ
チェーンポインタ。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram showing a configuration example of an allocated page table 44, FIG. 3 is a diagram showing a configuration example of an allocated page chain, and FIG. 4 is a main memory. FIG. 5 is a diagram showing a configuration example of page table 6, FIG. 5 is a diagram showing a configuration example of page table 7, FIG. 6 is a diagram showing a configuration example of an assigned page chain, and FIG. 7 is a configuration of assigned page chain. It is a figure which shows an example. In the figure, 1 ... main storage device, 2 ... secondary storage device,
3 ... Task, 4 ... Paging controller, 5 ... Main memory page, 6 ... Main memory page table, 7 ... Page table, 8 ...
... Allocated page chain, 41 ... Page allocation means, 42 ... Limit frame setting section, 43 ... Main memory page selection means, 44 ... Allocated page table, 45 ... Allocated page management means, 46 ... Register, 47 ... Allocated page chain pointer.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】ページング機能を有し、1つのタスクに対
する主記憶ページ割当て限度枠を設定できる仮想記憶シ
ステムに於いて、 或るタスクに対する主記憶ページの割当てが前記限度枠
に達し、且つページリプレースの優先候補の主記憶ペー
ジが所定数以下になった場合、前記タスクに割当て済み
の主記憶ページの中から一部の主記憶ページを選択し、
選択した主記憶ページを、更新済みの主記憶ページにつ
いてはその内容を二次記憶装置上に反映させた後、ペー
ジリプレースの優先候補にすることを特徴とする主記憶
ページリプレース方式。
1. In a virtual memory system having a paging function and capable of setting a main memory page allocation limit frame for one task, allocation of a main memory page for a task reaches said limit frame, and page replacement is performed. When the number of priority candidate main memory pages is less than or equal to a predetermined number, some main memory pages are selected from the main memory pages assigned to the task,
A main memory page replacement method characterized in that the selected main memory page is used as a priority candidate for page replacement after the content of the updated main memory page is reflected on the secondary memory device.
JP62067139A 1987-03-20 1987-03-20 Main memory page replay system Expired - Lifetime JPH0652512B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62067139A JPH0652512B2 (en) 1987-03-20 1987-03-20 Main memory page replay system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62067139A JPH0652512B2 (en) 1987-03-20 1987-03-20 Main memory page replay system

Publications (2)

Publication Number Publication Date
JPS63233451A JPS63233451A (en) 1988-09-29
JPH0652512B2 true JPH0652512B2 (en) 1994-07-06

Family

ID=13336268

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62067139A Expired - Lifetime JPH0652512B2 (en) 1987-03-20 1987-03-20 Main memory page replay system

Country Status (1)

Country Link
JP (1) JPH0652512B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5493663A (en) * 1992-04-22 1996-02-20 International Business Machines Corporation Method and apparatus for predetermining pages for swapping from physical memory in accordance with the number of accesses

Also Published As

Publication number Publication date
JPS63233451A (en) 1988-09-29

Similar Documents

Publication Publication Date Title
US6591355B2 (en) Distributed shared memory system with variable granularity
US5274789A (en) Multiprocessor system having distributed shared resources and dynamic and selective global data replication
KR920005853B1 (en) Apparatus for controlling input/output operation in virtual memory/visual computer type data processing system
EP0431467B1 (en) Multiprocessor system having distributed shared resources and dynamic global data replication
USRE36462E (en) Method to control paging subsystem processing in virtual memory data processing system during execution of critical code sections
FI78993C (en) OEVERVAKARE AV DRIFTSYSTEM.
US3647348A (en) Hardware-oriented paging control system
EP0260862A2 (en) Move-out queue buffer
JPH08129457A (en) Method and apparatus for expansion,reduction and redistribution of external storage structure
WO1997039407A9 (en) Mechanism for managing allocation of virtual memory buffers to virtual processes on a least recently used basis
EP1010080A4 (en) Mechanism for managing allocation of virtual memory buffers to virtual processes on a least recently used basis
JPH11505653A (en) Operating system for use with protection domains in a single address space
JPS5834857B2 (en) Priority determination mechanism in memory hierarchy
EP0362880B1 (en) Process for partially swapping real storage areas used by a program between a real storage and an auxiliary storage
US4984150A (en) Virtual memory control management system
JPH0652512B2 (en) Main memory page replay system
FI90805B (en) A method and apparatus for replacing a side frame in a data processing system
KR100294314B1 (en) Data processing system and method and communication system with such system
JP2975253B2 (en) Multiplexed volume device
JP2005148875A (en) Dynamic resource assignment change method for logical partition
JP3013742B2 (en) Cache memory management method
JPH05158783A (en) Memory block control system
JP2000047933A (en) Bidirectional memory securing management system
JPH0329041A (en) Decentralized paging control system
JPH0324697B2 (en)