JPH0212348A - Page swapping device - Google Patents

Page swapping device

Info

Publication number
JPH0212348A
JPH0212348A JP63163153A JP16315388A JPH0212348A JP H0212348 A JPH0212348 A JP H0212348A JP 63163153 A JP63163153 A JP 63163153A JP 16315388 A JP16315388 A JP 16315388A JP H0212348 A JPH0212348 A JP H0212348A
Authority
JP
Japan
Prior art keywords
swap
real memory
page
page table
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
JP63163153A
Other languages
Japanese (ja)
Inventor
Kenji Ikehara
池原 憲二
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 JP63163153A priority Critical patent/JPH0212348A/en
Publication of JPH0212348A publication Critical patent/JPH0212348A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To decrease the input/output frequency to a secondary medium and to optimize the system performance by performing the page swap-out/swap-in actions for a real memory in consideration of the dynamic characteristics of each program which runs on a system. CONSTITUTION:A page table change control means 1 is prepared together with a real memory swap-in value deciding means 2, a real memory swap-in means 3, a real memory swap-out value deciding means 4, and a real memory swap-out means 5. When the swap-out/swap-in actions of a virtual computer are carried out, the swap-out value is decided based on the size of a program group under running and the size of a real memory. Then the contents of a swapped-out real memory are swapped in. Thus the input/output frequency is decreased to a secondary medium and the system performance can be optimized.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、仮想計算機に利用する。特に、実メモリが過
負荷状態に陥った場合のページスワップ制御手段に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention is applied to a virtual computer. In particular, the present invention relates to page swap control means when real memory is overloaded.

〔概要〕〔overview〕

本発明は、仮想計算機のスワップアウトおよびスワップ
インを実行する手段において、走行中のプログラム群の
大きさおよび実メモリの大きさに基づきスワップアウト
量を定め、スワップアウトされた実メモリの内容をスワ
ップインすることにより、 二次媒体に対する入出力回数を削減し、システム性能の
最適化を図ることができるようにしだものである。
The present invention provides a means for executing swap-out and swap-in of a virtual machine, which determines the swap-out amount based on the size of a running program group and the size of real memory, and swaps out the contents of the swapped-out real memory. By doing so, it is possible to reduce the number of inputs and outputs to the secondary medium and optimize system performance.

〔従来の技術〕[Conventional technology]

従来のページスワップ制御手段では、計算機上で走行す
るプログラム群の大きさや実メモリの大きさなどを個々
に考慮することができず、実メモリをスワップインした
りスワップアウトするときにその量が一意的に決まって
いた。
Conventional page swap control means cannot take into account the size of a group of programs running on a computer or the size of real memory, etc., and when swapping in or out real memory, the amount is unique. It was decided.

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

従来例では、このように、計算機上で走行するプログラ
ム群の動的な特性を考慮することができず、システム性
能が最適化されない欠点があった。
In the conventional example, the dynamic characteristics of a program group running on a computer cannot be taken into account, and system performance cannot be optimized.

本発明はこのような欠点を除去するもので、計算機上で
走行する各プログラムの動的特性を考慮した実メモリの
ページスワップアウト$よびページスワップインを行う
ページスワップ装置を提供することを目的とする。
The present invention aims to eliminate such drawbacks, and aims to provide a page swap device that performs page swap out and page swap in of real memory in consideration of the dynamic characteristics of each program running on a computer. do.

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

本発明は、実メモリおよび仮想メモリを有する計算機に
結合され、この実メモリのページとこの仮想メモリのペ
ージとを対応づけるページテーブルを備えたページスワ
ップ装置において、上記計算機のひとつのプログラムに
ミッシングページフォルトが発生したときに上記ページ
テーブルのエントリごとにこの発生状態を登録するペー
ジテーブル変更制御手段と、ミッシングページフォルト
の発生が登録されたエントリ数を求め、このエントリ数
をページスワップ量とする実メモリスワップ量決定手段
と、他のプログラムからこのページスワップ量に相当の
ページ数をスワップアウトする実メモリスワップアウト
手段と、上記実メモリスワップアウト手段でスワップア
ウトされた他のプログラムのページ数をスワップインす
る手段とを備えたことを特徴とする。
The present invention provides a page swapping device that is connected to a computer having real memory and virtual memory and that includes a page table that associates pages of the real memory with pages of the virtual memory, in which a missing page is sent to a program in one of the computers. A page table change control means that registers the occurrence status for each entry in the page table when a fault occurs, and an implementation that calculates the number of entries in which the occurrence of a missing page fault is registered and uses this number of entries as the page swap amount. A memory swap amount determining means, a real memory swap out means for swapping out a number of pages equivalent to this page swap amount from other programs, and a swapping of the number of pages of other programs swapped out by the above real memory swap out means. The invention is characterized by comprising a means for inputting.

〔作用〕[Effect]

計算機稼働中に実メモリが過負荷状態に陥った場合にそ
の過負荷に遭遇したプログラムに実メモリを与えるため
に、他のプログラムが使用していた実メモリの内容を二
次記憶媒体上にスワップアウトする際にそのスワップア
ウト量を決定し、二次媒体上に実メモリを書き出す。ま
た、過負荷に遭遇したプログラムの二次媒体上にスワッ
プアウトされていた実メモリを二次媒体上からスワップ
インするときのスワップイン量を決定し、二次媒体上か
ら実メモリの内容をスワップインする。
If real memory becomes overloaded while the computer is running, the contents of real memory used by other programs are swapped onto a secondary storage medium in order to provide real memory to the program that encountered the overload. When swapping out the memory, determine the swap-out amount and write out the real memory on the secondary medium. It also determines the swap-in amount when swapping in the real memory that was swapped out to the secondary medium of the program that encountered an overload from the secondary medium, and swaps the contents of real memory from the secondary medium. In.

一方、ページテーブルは、実メモリ過負荷によってミッ
シングページフォルトが発生したときにミッシングペー
ジフォルトがページテーブル上の連続空間上で発生した
ものか否かを判断し、その結果によって制御される。
On the other hand, the page table is controlled by determining whether or not the missing page fault occurs in a continuous space on the page table when a missing page fault occurs due to real memory overload.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面に基づき説明する。 Hereinafter, one embodiment of the present invention will be described based on the drawings.

この実施例は、第1図に示すように、ページテーブル変
更制御手段1と、実メモリスワップイン量決定手段2と
、実メモリスワップイン手段3と、実メモリスワップア
ウト量決定手段4と実メモリスワップアウト手段5とか
ら構成される。ここで、ページテーブル変更制御手段1
は、第2図に示すようにカレントページテーブルポイン
タ領域11と各プログラムに対応するページテーブル領
域12とからなる。
As shown in FIG. 1, this embodiment includes a page table change control means 1, a real memory swap-in amount determining means 2, a real memory swap-in means 3, a real memory swap-out amount determining means 4, and a real memory It consists of a swap-out means 5. Here, page table change control means 1
As shown in FIG. 2, it consists of a current page table pointer area 11 and a page table area 12 corresponding to each program.

すなわち、この実施例は、実メモリおよび仮想メモリを
有する計算機に結合され、この実メモリのページとこの
仮想メモリのページとを対応づけるページテーブル領@
12と、上記計算機のひとつのプログラムにミッシング
ページフォルトが発生したときにページテーブル領域1
2のエントリごとにこの発生状態を登録するページテー
ブル変更制御手段1と、ミッシングページフォルトの発
生が登録されたエン) U数を求め、このエン) U数
をページスワップ量とする実メモリスワップ量決定手段
4と、他のプログラムからこのページスワップ量に相当
のページ数をスワップアウトする実メモリスワップアウ
ト手段5と、実メモリスワップアウト手Mk5でスワッ
プアウトされた他のプログラムのページ数をスワップイ
ンする手段である実メモリスワップイン量決定手段2お
よび実メモリスワップイン手段3とを備える。
That is, this embodiment is connected to a computer having real memory and virtual memory, and has a page table area that associates pages of this real memory with pages of this virtual memory.
12, when a missing page fault occurs in one of the programs of the above computer, the page table area 1
The page table change control means 1 registers the occurrence status for each entry in page 2, and the number of en) U in which the occurrence of the missing page fault is registered is calculated, and the actual memory swap amount is calculated using the number of en) U as the page swap amount. A determining means 4, a real memory swap out means 5 for swapping out the number of pages equivalent to this page swap amount from other programs, and a real memory swap out means 5 for swapping in the number of pages of other programs swapped out by the real memory swap out means Mk5. A real memory swap-in amount determining means 2 and a real memory swap-in means 3 are provided.

次に、この実施例の仮想記憶制御におけるスワップ動作
を説明する。
Next, a swap operation in virtual memory control of this embodiment will be explained.

プログラム走行中に実メモリが過負荷になってミッシン
グページフォルトが発生すると、制御はページテーブル
変更制御手段1にわたり、そのミッシングページフォル
トがページテーブル上で連続か否かをチエツクし、連続
である場合にはその旨をページテーブル上に記す。ひき
つづき、制御が実メモリスワップアウト量決定手段4に
移り、ページテーブル上で連続的にミッシングページフ
ォルトが発生しているページ数を求めてそれを具体的な
ページスワップ量とし、実メモリスワップアウト手段5
でシステム内の他のプログラムが使用していた実メモリ
をその量の分だけ二次媒体上に出力する。次に、実メモ
リスワップイン量決定手段2によってページテーブル領
域12上で連続的にミッシングページフォルトが発生し
ているページ数を求めて具体的な実メモリスワップイン
量とし、実メモリスワップイン手段で該当するプログラ
ムの実メモリをスワップインする。
When the real memory is overloaded and a missing page fault occurs while the program is running, control passes to the page table change control means 1, and checks whether the missing page faults are continuous on the page table. This is noted on the page table. Subsequently, the control is transferred to the real memory swap-out amount determining means 4, which determines the number of pages in which missing page faults occur continuously on the page table, sets it as a specific page swap amount, and real memory swap-out means 4. 5
The real memory used by other programs in the system is output to the secondary medium by that amount. Next, the real memory swap-in amount determining means 2 determines the number of pages in which missing page faults occur continuously on the page table area 12 and determines the actual real memory swap-in amount. Swap in real memory for the applicable program.

第2図に、ページテーブル領域12上で連続するページ
を求める手段を示す。ミッシングページフォルトが発生
すると、ページテーブル変更制御手段1はカレントペー
ジテーブルポインタがそのミッシングページフォルトが
発生したページテーブル領域12のエントリの直前のエ
ントリを示しているか否かをチエツクし、直前を示して
いる場合にはその直前のページテーブルエントリ上に次
のページが連続的にミツジグページフォルトによってス
ワップインしたことを示す連続ビットをオン状態にし、
カレントページテーブル領域11のカレントページテー
ブルポインタの値を今回ミッシングページフォルトが発
生したエントリを示すようにする。例えば、第2図でペ
ージテーブルエントリ「4」がミッシングページフォル
トが発生したエントリとすると、ページテーブルエント
リ「3」の連続ビットがオン状態になる。ミッシングペ
ージフォルト発生時にカレントページテーブルポインタ
が直前のページテーブルエントリを示していない場合は
なにも行わない。
FIG. 2 shows a means for finding consecutive pages on the page table area 12. When a missing page fault occurs, the page table change control means 1 checks whether the current page table pointer points to the entry immediately before the entry in the page table area 12 where the missing page fault occurred, and indicates the previous entry. If so, turn on the consecutive bit on the previous page table entry indicating that the next page was continuously swapped in due to a Mitsujig page fault, and
The value of the current page table pointer in the current page table area 11 is set to indicate the entry in which the missing page fault has occurred this time. For example, in FIG. 2, if page table entry "4" is the entry in which the missing page fault has occurred, the consecutive bits of page table entry "3" are turned on. If the current page table pointer does not point to the immediately previous page table entry when a missing page fault occurs, nothing is done.

ページテーブル変更制御手段1でこのように制御するこ
とにより、実メモリスワップイン量決定手段2と実メモ
リスワップアウト量決定手段4とは各々ミッシングペー
ジフォルト発生時にページテーブル上の該エントリをカ
ウントして連続ビットがオフになっているところまで連
続するエントリを次々とチエツクし、そのエントリ数を
カウントシ、そのカウント値を実メモリのスワップアウ
ト量またはスワップイン量にする。
By controlling in this way by the page table change control means 1, the real memory swap-in amount determining means 2 and the real memory swap-out amount determining means 4 each count the entries on the page table when a missing page fault occurs. Consecutive entries are checked one after another until the consecutive bit is turned off, the number of entries is counted, and the count value is used as the swap-out amount or swap-in amount of real memory.

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

本発明は、以上説明したように、システム上で走行する
各プログラムの動的特性を考慮した実メモリのページス
ワップアウトおよびページスワップインを行うので、二
次媒体に対する入出力回数を削減し、システム性能を最
適化することができる効果がある。
As explained above, the present invention performs page swap-out and page swap-in of real memory taking into account the dynamic characteristics of each program running on the system, thereby reducing the number of inputs and outputs to the secondary medium and This has the effect of optimizing performance.

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

第1図は本発明実施例の構成を示すブロック構成図。 第2図は第1図に示すページテーブル変更制御手段の動
作を示す説明図。 1・・・ページテーブル変更制御手段、2・・・実メモ
リスワップイン量決定手段、3・・・実メモリスワップ
イン手段、4・・・実メモリスワップアウト量決定手段
、5・・・実メモリスワップアウト手段、11・・・カ
レントページテーブル領域、12・・・ページテーブル
領域。
FIG. 1 is a block configuration diagram showing the configuration of an embodiment of the present invention. FIG. 2 is an explanatory diagram showing the operation of the page table change control means shown in FIG. 1. DESCRIPTION OF SYMBOLS 1... Page table change control means, 2... Real memory swap-in amount determining means, 3... Real memory swap-in means, 4... Real memory swap-out amount determining means, 5... Real memory Swap-out means, 11... Current page table area, 12... Page table area.

Claims (1)

【特許請求の範囲】 1、実メモリおよび仮想メモリを有する計算機に結合さ
れ、この実メモリのページとこの仮想メモリのページと
を対応づけるページテーブルを備えたページスワップ装
置において、 上記計算機のひとつのプログラムにミッシングページフ
ォルトが発生したときに上記ページテーブルのエントリ
ごとにこの発生状態を登録するページテーブル変更制御
手段(1)と、 ミンシングページフォルトの発生が登録されたエントリ
数を求め、このエントリ数をページスワップ量とする実
メモリスワップ量決定手段(4)と、 他のプログラムからこのページスワップ量に相当のペー
ジ数をスワップアウトする実メモリスワップアウト手段
(5)と、 上記実メモリスワップアウト手段でスワップアウトされ
た他のプログラムのページ数をスワップインする手段(
2、3)と を備えたことを特徴とするページスワップ装置。
[Scope of Claims] 1. A page swap device coupled to a computer having real memory and virtual memory and equipped with a page table that associates pages of this real memory with pages of this virtual memory, A page table change control means (1) that registers the occurrence state for each entry in the page table when a missing page fault occurs in a program, and calculates the number of entries in which the occurrence of a missing page fault is registered, a real memory swap amount determining means (4) that takes a number as a page swap amount; a real memory swap out means (5) that swaps out a number of pages equivalent to this page swap amount from another program; means to swap in the number of pages of other programs that were swapped out by means (
2, 3) A page swap device comprising:
JP63163153A 1988-06-29 1988-06-29 Page swapping device Pending JPH0212348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63163153A JPH0212348A (en) 1988-06-29 1988-06-29 Page swapping device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63163153A JPH0212348A (en) 1988-06-29 1988-06-29 Page swapping device

Publications (1)

Publication Number Publication Date
JPH0212348A true JPH0212348A (en) 1990-01-17

Family

ID=15768232

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63163153A Pending JPH0212348A (en) 1988-06-29 1988-06-29 Page swapping device

Country Status (1)

Country Link
JP (1) JPH0212348A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008081892A (en) * 2006-09-27 2008-04-10 Daio Paper Corp Sanitary tissue paper

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008081892A (en) * 2006-09-27 2008-04-10 Daio Paper Corp Sanitary tissue paper

Similar Documents

Publication Publication Date Title
JP2523653B2 (en) Virtual computer system
JPH0212348A (en) Page swapping device
JPS5850383B2 (en) information processing equipment
JPH0347536B2 (en)
JPS63828B2 (en)
JPS63180171A (en) Information processor
JPH10507548A (en) Data processing systems and methods and communication systems with such systems
JPS5814253A (en) Interruption system for central processor
JPH0443444A (en) Address generation system for storage
JPH0333954A (en) Information processor
JPS6222149A (en) Process changeover system
JPS61151745A (en) Interruption processing system
JPS62256039A (en) Microprogram controller
JPS6069751A (en) Control system for memory diversion of register for arithmetic
JPH04229327A (en) Stack control system
JPH07129524A (en) High speed switching device of duplex system
JPS61109145A (en) Calculation system for memory address
JPH0816478A (en) Vector data processor
JPS6279546A (en) System for converting and controlling dynamic address
JPH02294866A (en) Storage control system
JPS5919286A (en) Address converter
JPS6231456A (en) Swapping system for virtual memory
JPH0298744A (en) Interruption processing system
JPS62166444A (en) Program debugging device
JPS6265134A (en) Interruption processing system