JPS63233451A - Main memory replacing system - Google Patents

Main memory replacing system

Info

Publication number
JPS63233451A
JPS63233451A JP62067139A JP6713987A JPS63233451A JP S63233451 A JPS63233451 A JP S63233451A JP 62067139 A JP62067139 A JP 62067139A JP 6713987 A JP6713987 A JP 6713987A JP S63233451 A JPS63233451 A JP S63233451A
Authority
JP
Japan
Prior art keywords
page
main memory
allocated
task
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.)
Granted
Application number
JP62067139A
Other languages
Japanese (ja)
Other versions
JPH0652512B2 (en
Inventor
Kazuhide Tsumura
津村 和秀
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

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To eliminate the need of the search or the like of a page to be replaced at every generation of a page absence interruption by collectively using partial main memory pages as page replacing priority candidates. CONSTITUTION:When a page absence interruption is applied, a page assigning means 41 in a page control part 4 assigns an unused main memory page to a task 3. On the other hand, a main memory page selecting means 43 selects main memory pages which are not recently referred by a fixed number and the selected main memory pages are used as page replacing priority candidates. Thereby, the page replacing priority candidates can be collectively obtained, so that it is unnecessary to execute the search or the like of pages to be replaced at every generation of a page absence interruption and the number of times is reloading is not increased.

Description

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

〔従来の技術〕[Conventional technology]

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

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

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

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

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

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

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

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

〔作 用〕[For production]

一部の主記憶ページがまとめてページリプレースの優先
候補にされるだけで、返却は行なわれない。
Some main memory pages are only prioritized as 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 includes a main storage device 1 consisting of a plurality of main memory pages 5, a secondary storage device 2, and a large-scale virtual storage device. It includes a task 3 that requires space, a paging control unit 4, a main memory page table 6, and a page table 7.

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

ページング制御部4はページ割当て手段41と、限度枠
設定部42と、主記憶ページ選択手段43と、割当て済
みページ表44と、割当て済みページ管理手段45と、
レジスタ46と、割当て済みページチェーンポインタ4
7とを備えている。
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,
register 46 and allocated page chain pointer 4
7.

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

割当て済みページ管理手段45はタスク3に主記憶ペー
ジが割当てられると、その主記憶ページ番号を割当て済
みページ表44に登録し、登録した主記憶ページ番号対
応のポインタ情報として割当て済みページチェーンポイ
ンタ47の内容を登録し、前回登録した主記憶ページ番
号対応のポインタ情報を今回登録した主記憶ページ番号
を指し示す内容に変更する。従って、タスク3に割当て
済みの主記憶ページは第3図に示すような割当て済みペ
ージチェーン8によって管理されることになる。
When a main memory page is assigned to task 3, the assigned page management means 45 registers the main memory page number in the assigned page table 44, and uses the assigned page chain pointer 47 as pointer information corresponding to the registered main memory page number. and changes the pointer information corresponding to the main memory page number registered last time to the content pointing to the main memory page number registered this time. Therefore, the main memory pages already assigned to task 3 are managed by the assigned page chain 8 as shown in FIG.

なお、割当て済みページチェーンポインタ47は割当て
済みページチェーン8の先頭を指し示すものである。ま
た、割当て済みページ管理手段45は、タスク3に割当
て済みの主記憶ページが参照、更新されると割当て済み
ページ表44の対応する参照ビット、更新ビットを“1
”とし、タスク3に割当て済みの主記憶ページの内容が
二次記憶装置2に反映されることにより、対応する更新
ビットを“0”とする。更に、割当て済みページ管理手
段45は定期的に更新ビットをLRUビットに反映させ
、その後更新ビットを“0゛とする。
Note that the allocated page chain pointer 47 points to the beginning of the allocated page chain 8. Further, when the main memory page allocated to task 3 is referenced or updated, the allocated page management means 45 sets the corresponding reference bit and update bit in the allocated page table 44 to "1".
”, and by reflecting the contents of the main memory page allocated to the task 3 in the secondary storage device 2, the corresponding update bit is set to “0”.Furthermore, the allocated page management means 45 periodically The updated bit is reflected in the LRU bit, and then the updated bit is set to "0".

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

主記憶ページ表6には、第4図に示すように、主記憶装
置1を主記憶ページに分割した場合の主記憶ページにつ
けられる主記憶ページ番号対応に、該当する主記憶ペー
ジに格納されているページがどのタスクの何ページ目の
ものなのかを示すタスク識別子と、該当する主記憶ペー
ジに有効なページが格納されているか否かを示す状態ビ
ット(本実施例に於いては1”−有効、“0“=無効と
する)とが登録される。
As shown in FIG. 4, the main memory page table 6 shows the information stored in the corresponding 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 current page belongs to, and a status bit (1''- in this example) indicating whether a valid page is stored in the corresponding main memory page. valid, "0" = invalid) is registered.

ページ表7には第5図に示すように、タスク3の仮想記
憶域をページに分割した場合のページに付けられるペー
ジ番号対応に、あるページが格納されている主記憶ペー
ジの主記憶袋W、1上の始点アドレスを示す主記憶ペー
ジアドレスと、ページが主記憶装置1上に存在するか否
かを示す存在ビット(本実施例に於いては“1”=存在
、“0゛=不在とする)とが登録される。
As shown in FIG. 5, page table 7 shows the main memory bag W of the main memory 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 starting point address on the main memory device 1, and an existence bit indicating whether the page exists on the main memory device 1 (in this embodiment, "1" = present, "0" = absent). ) is registered.

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

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

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

そして、限度枠設定部42で設定されたページ数の主記
憶ページをタスク3に一旦割当てた後は、ページ割当て
手段41はページ不在割込みが加えられる毎にページ不
在割込み通知を主記憶ページ選択手段43に加える。主
記憶ページ選択手段43は上記通知を受けると、レジス
タ46の内容に基づいてページリプレースの優先候補と
なりでいる主記憶ページのページ数が所定数(0を含む
)以下になっているか否かを調べる。
Once the main memory pages of the number of pages set by the limit frame setting unit 42 are allocated to the task 3, the page allocation means 41 sends a page absence interrupt notification to the main memory page selection means every time a page absence interrupt is added. Add to 43. Upon receiving the above notification, the main memory page selection means 43 determines whether 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. investigate.

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

次いで、主記憶ページ選択手段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 storage device 2, and then sets the corresponding update bit as "0'.At this time, if there are multiple main memory pages that have been updated and a continuous secondary storage area on the secondary storage device 2 can be secured, the page images of the multiple main memory pages are batched. secondary storage device 2
be reflected in. For main memory pages that have not been updated, since the same page image exists on the secondary storage device 2, there is no need to reflect the page image on the secondary storage device 2.

次いで、主記憶ページ選択手段43は、割当て済みペー
ジチェーンポインタ47及び割当て済みページ表44の
ポインタ情報を変更することにより、第6図に示すよう
に、選択した主記憶ページを割当て済みページチェーン
8の先頭部につなぎ直し、ページリプレース時の優先候
補として位置づける。
Next, the main memory page selection means 43 changes the pointer information of the allocated page chain pointer 47 and the allocated page table 44, so that the selected main memory page is placed in the allocated page chain 8 as shown in FIG. It is reconnected to the beginning of the page and positioned as a priority candidate when replacing the page.

これらの主記憶ページはLRUのチェックも二次記憶装
置へのページアンロードも必要とせず、直ちにリプレー
ス可能な状態である。第6図は主記憶ページ番号P1〜
PnO主記憶ページがページリプレースの優先候補にな
っていることを示している。また、この時、主記憶ペー
ジ選択手段43はレジスタ46にページリプレースの優
先候補となっている主記憶ページのページ数をセントす
る。上述した処理を行なうことにより、一定数の主記憶
ページがページリプレースの優先候補とされる。
These main memory pages do not require LRU checking or page unloading to the secondary storage device, and can be immediately replaced. Figure 6 shows main memory page numbers P1~
This indicates that the PnO main memory page is a priority candidate for page replacement. Also, at this time, the main memory page selection means 43 stores in the register 46 the number of main memory pages that are priority candidates for page replacement. By performing the above-described processing, a certain number of main memory pages are made priority candidates for page replacement.

次いで、主記憶ページ選択手段43は割当て済みページ
チェーン8の先頭につながれている主記憶ページのペー
ジ番号、即ち割当て済みページチェーンポインタ47が
指し示している主記憶ページのページ番号をページ割当
て手段41に加える。これにより、ページ割当て手段4
1はタスク3に主記憶ページ選択手段43から加えられ
たーージ番号対応の主記憶ページを割当てる。また、こ
の際、主記憶ページ選択手段43はページリプレース優
先候補の残存数がセットされているレジスタ46の内容
を−1すると共に、割当て済みページチェーンポインタ
47の内容を変更することにより、割当て済みページチ
ェーン8の先頭を変更する。例えば、割当て済みページ
チェーン8の先頭が第6図に示すようにPlになってい
たとすると、第7図に示すように割当て済みページチェ
ーン8の先頭をP2に変更するものである。
Next, the main memory page selection means 43 sends the page number of the main memory page connected 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 allocation means 41. Add. As a result, page allocation means 4
1 allocates to task 3 the main memory page corresponding to the page number added from the main memory page selection means 43. In addition, at this time, the main memory page selection means 43 decrements the contents of the register 46 in which the remaining number of page replacement priority candidates is set, and changes the contents of the allocated page chain pointer 47 to indicate that the allocated pages have already been allocated. Change the beginning of page chain 8. For example, if the beginning of the allocated page chain 8 is Pl as shown in FIG. 6, the beginning of the allocated page chain 8 is changed to P2 as shown in FIG.

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

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

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

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

以上説明したように、本発明は、仮想記憶システムに於
いて、主記憶ページ割当て限度枠の飽和状態で動作する
タスクに割当て済みの主記憶ページの内の一部を、ペー
ジリプレースの優先候補の主記憶ページのページ数が所
定数以下になった時点に於いて、まとめてページリプレ
ースの優先候補にするようにしたものであり、ページ不
在割込みが発生する毎にリプレース対象ページのサーチ
等を行なう必要がなくなるので、オーバーヘッドを削減
できる効果があり、また、ページリプレースの優先候補
とした主記憶ページを参照可能な状態にしたものである
から、優先候補とした主記憶ページが再度参照されても
再ロードを行なう必要がない効果もある。
As described above, in a virtual memory system, the present invention provides for assigning some of the main memory pages that have already been allocated to tasks operating in a state where the main memory page allocation limit is saturated as priority candidates for page replacement. When the number of main memory pages falls below a predetermined number, all pages are prioritized as candidates for page replacement, and a search for a page to be replaced is performed every time a page failure interrupt occurs. Since it is no longer necessary, it has the effect of reducing overhead. Also, since the main memory page that was the priority candidate for page replacement can be referenced, even if the main memory page that was the priority candidate is referenced again. Some effects do not require reloading.

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

第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 an example of the configuration of the allocated page table 44, FIG. 3 is a diagram showing an example of the configuration of the allocated page chain, and FIG. 4 is the main memory FIG. 5 is a diagram showing a configuration example of page table 6, FIG. 6 is a diagram showing a configuration example of an allocated page chain, and FIG. 7 is a diagram showing a configuration example of an allocated 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 control unit, 5...
... Main memory page, 6... Main memory page table, 7...
Page table, 8... Assigned page chain, 41.
...Page allocation means, 42...Limit frame setting section, 43
. . . Main memory page selection means, 44 . . . Assigned page table, 45 . . . Assigned page management means, 46.
...Register, 47...Allocated page chain pointer.

Claims (1)

【特許請求の範囲】 ページング機構を有し、1つのタスクに対する主記憶ペ
ージ割当て限度枠を設定できる仮想記憶システムに於い
て、 或るタスクに対する主記憶ページの割当てが前記限度枠
に達し、且つページリプレースの優先候補の主記憶ペー
ジが所定数以下になった場合、前記タスクに割当て済み
の主記憶ページの中から一部の主記憶ページを選択し、
選択した主記憶ページを、更新済みの主記憶ページにつ
いてはその内容を二次記憶装置上に反映させた後、ペー
ジリプレースの優先候補にすることを特徴とする主記憶
ページリプレース方式。
[Scope of Claims] In a virtual storage system that has a paging mechanism and can set a main memory page allocation limit for one task, when the main memory page allocation for a certain task reaches the limit and the page If the number of main memory pages that are priority candidates for replacement is less than a predetermined number, select some main memory pages from among the main memory pages that have been allocated to the task,
A main memory page replacement method characterized in that a selected main memory page is made a priority candidate for page replacement after the contents of the updated main memory page are reflected on a secondary storage 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 true JPS63233451A (en) 1988-09-29
JPH0652512B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0689221A (en) * 1992-04-22 1994-03-29 Internatl Business Mach Corp <Ibm> Method and apparatus for controlling memory in computer system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0689221A (en) * 1992-04-22 1994-03-29 Internatl Business Mach Corp <Ibm> Method and apparatus for controlling memory in computer system

Also Published As

Publication number Publication date
JPH0652512B2 (en) 1994-07-06

Similar Documents

Publication Publication Date Title
US6591355B2 (en) Distributed shared memory system with variable granularity
US6948172B1 (en) Preemptive multi-tasking with cooperative groups of tasks
EP0150195B1 (en) Demand paging scheme for a multi-atb shared memory processing system
USRE36462E (en) Method to control paging subsystem processing in virtual memory data processing system during execution of critical code sections
US5606685A (en) Computer workstation having demand-paged virtual memory and enhanced prefaulting
EP0239181B1 (en) Interrupt requests serializing in a virtual memory data processing system
EP1010080A1 (en) Mechanism for managing allocation of virtual memory buffers to virtual processes on a least recently used basis
GB2386715A (en) Method for the use of a stack in a Java accelerator device
EP0362880B1 (en) Process for partially swapping real storage areas used by a program between a real storage and an auxiliary storage
EP0730237A1 (en) Multi-processor system with virtually addressable communication registers and controlling method thereof
JPH06202951A (en) Cash memory system
JPS63233451A (en) Main memory replacing system
JP4200882B2 (en) Changing the dynamic allocation of logical partitions
JPH08180025A (en) Scheduling device
KR100294314B1 (en) Data processing system and method and communication system with such system
JPH0329041A (en) Decentralized paging control system
JP3424644B2 (en) Method of communication between processors
JP2742245B2 (en) Parallel computer
JPS6031664A (en) Access system of cache preceding
JPH08506676A (en) Computer workstation with demand paged virtual memory
JPH08263377A (en) Cache memory management system
JPS61187052A (en) Batch paging method of virtual storage system
JPS62263551A (en) Main memory page replacing system
JPH09212426A (en) Storage device managing method for virtual computer system
JPH05233456A (en) Page absent interruption control method for virtual storage system