JP3125761B2 - Working set calculation processing apparatus and working set calculation processing method - Google Patents

Working set calculation processing apparatus and working set calculation processing method

Info

Publication number
JP3125761B2
JP3125761B2 JP10233332A JP23333298A JP3125761B2 JP 3125761 B2 JP3125761 B2 JP 3125761B2 JP 10233332 A JP10233332 A JP 10233332A JP 23333298 A JP23333298 A JP 23333298A JP 3125761 B2 JP3125761 B2 JP 3125761B2
Authority
JP
Japan
Prior art keywords
amount
real memory
working set
job
calculated
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 - Fee Related
Application number
JP10233332A
Other languages
Japanese (ja)
Other versions
JP2000066911A (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 JP10233332A priority Critical patent/JP3125761B2/en
Publication of JP2000066911A publication Critical patent/JP2000066911A/en
Application granted granted Critical
Publication of JP3125761B2 publication Critical patent/JP3125761B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、仮想記憶と制御機
能を有する計算機システムにおけるワーキングセット計
算処理装置およびワーキングセット計算処理方法に関す
る。
The present invention relates to a working set calculation processing device and a working set calculation processing method in a computer system having virtual storage and control functions.

【0002】[0002]

【従来の技術】従来のこの種のワーキングセット計算処
理方法の一例が、1997年5月に発行されたユーザ向
け説明書「動的資源管理解説書<DRM>」第6版の第
9頁〜第18頁の「第2章 DRAMにおける制御」お
よび、第28頁〜第30頁の「第5章 利用者による制
御」に記載されている。このワーキングセット計算処理
方法では、ジョブの実メモリの使用状況、および利用者
によるジョブに対する実メモリの割り当て量の指定によ
ってジョブのワーキングセットの計算処理を制御してい
る。
2. Description of the Related Art An example of a conventional working set calculation processing method of this type is described in a user's manual "Dynamic Resource Management Manual <DRM>," published from May 1997, from page 9 to page 9 of the sixth edition. This is described in “Chapter 2 Control in DRAM” on page 18 and in “Chapter 5 Control by User” on pages 28 to 30. In this working set calculation processing method, the processing of calculating the working set of a job is controlled by the use status of the real memory of the job and the user's designation of the amount of real memory allocated to the job.

【0003】また、特開平10−31624号公報に
は、ジョブ起動時またはジョブ起動後の実行中に端末等
からユーザがジョブのメモリプライオリティを設定およ
び/または変更可能とし、この動的に設定および/また
は変更されたジョブのメモリプライオリティに従ってジ
ョブが使用するメモリのワーキングセットをジョブ単位
に制御する「メモリプライオリティ制御方式」が記載さ
れている。
Japanese Patent Application Laid-Open No. Hei 10-31624 discloses that a user can set and / or change the memory priority of a job from a terminal or the like during the start of the job or during execution after the start of the job. A "memory priority control method" is described in which a working set of a memory used by a job is controlled for each job in accordance with the changed memory priority of the job.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術のうちの前者では、実メモリの割り当て量
を指定しており、しかも、この割り当て量は固定的であ
るため、実行中に仮想メモリ空間(以下仮想空間と記
す)の割り当て・解放が行われ、仮想空間量が変化する
ようなジョブの場合は、仮想空間量の変化にともなって
ジョブが必要とする実メモリ量も変化するため、このよ
うなジョブに対して、利用者が適切なワーキングセット
の制御を指定できないという問題点があった。
However, in the former of the above-mentioned prior arts, the allocation amount of the real memory is specified, and since this allocation amount is fixed, the virtual memory is allocated during execution. In the case of a job in which space (hereinafter referred to as virtual space) is allocated / released and the amount of virtual space changes, the amount of real memory required by the job also changes with the change in the amount of virtual space. There is a problem that a user cannot specify appropriate working set control for such a job.

【0005】また、上述の特開平10−31624号公
報記載の「メモリプライオリティ制御方式」では、ユー
ザによるジョブのメモリプライオリティの設定および/
または変更を契機としてワーキングセットをジョブ単位
に制御する技術であり、ジョブ実行中に仮想空間の割り
当て・解放が行われ、仮想空間量が変化した場合に対処
するものではない。
In the "memory priority control method" described in Japanese Patent Application Laid-Open No. Hei 10-31624, a user sets a memory priority of a job and / or
Alternatively, the technique is a technique of controlling a working set on a job basis in response to a change, and does not deal with a case where a virtual space is allocated / released during a job execution and a virtual space amount changes.

【0006】したがって、本発明の目的は、仮想空間量
が変化するジョブに対して利用者がワーキングセットの
制御の指定を適切に行なえるようなワーキングセット計
算処理装置およびワーキングセット計算処理方法を提供
することにある。また、本発明の他の目的は、利用者が
ワーキングセットの制御の指定を動的に変更できるよう
なワーキングセット計算処理装置およびワーキングセッ
ト計算処理方法を提供することにある。
Accordingly, an object of the present invention is to provide a working set calculation processing apparatus and a working set calculation processing method that enable a user to appropriately designate a control of a working set for a job whose virtual space amount changes. Is to do. Another object of the present invention is to provide a working set calculation processing device and a working set calculation processing method that allow a user to dynamically change the designation of control of a working set.

【0007】[0007]

【課題を解決するための手段】そこで、本発明のワーキ
ングセット計算処理装置は、仮想記憶制御機能を有する
計算機システムにおけるワーキングセット計算処理装置
において、ジョブに割り当てられた実メモリの仮想空間
に対する割り当て比率が、利用者によって入力された比
率を超えないようにワーキングセットの計算値を制御す
ることを特徴とする。また、本発明のワーキングセット
計算処理装置は、ジョブに対して仮想空間の割り当て・
解放が行われると当該仮想空間量を計算する仮想空間量
計算手段と、前記ジョブに対して実メモリの割り当て・
解放が行われると当該実メモリの量を計算する実メモリ
量計算手段と、該実メモリ量計算手段が計算した実メモ
リの量から前記ジョブのワーキングセットを計算するワ
ーキングセット計算手段と、利用者が前記割り当て比率
のしきい値をあらかじめ入力するしきい値入力手段と、
前記計算された仮想空間の量と実メモリの量により前記
割り当て比率を計算し、この値が前記しきい値より大き
いときは前記ワーキングセット計算手段に通知する割り
当て比率計算手段とを有し、前記ワーキングセット計算
手段は該通知に応答して、前記計算されたワーキングセ
ットを減少させページアウトを起動することを特徴とす
る。また、本発明のワーキングセット計算処理装置は、
前記しきい値は利用者が動的に変更できることを特徴と
する。さらに、本発明のワーキングセット計算処理方法
は仮想記憶制御機能を有する計算機システムにおけるワ
ーキングセット計算処理方法において、ジョブに割り当
てられる実メモリの仮想空間に対する割り当て比率のし
きい値を利用者が入力する手順と、前記ジョブに対し仮
想空間の割り当て・解放が行われると当該仮想空間の量
を計算する手順と、前記ジョブに対して実メモリの割り
当て・解放が行われると当該実メモリの量を計算する手
順と、該計算された仮想メモリ空間の量と実メモリの量
により前記割り当て比率を計算する手順と、該計算され
た割り当て比率が前記しきい値より大きいときは前記計
算されたワーキングセットを減少させる手順と、当該実
メモリのページアウトを起動する手順とを含むことを特
徴とする。本発明は仮想記憶制御機能を有する計算機シ
ステムにおいて、従来のワーキングセット計算処理方法
に、ジョブに割り当てられた実メモリ量と仮想空間量と
の比率によって、ワーキングセット計算処理を制御する
手段と、利用者が実メモリ量と仮想空間量との比率のし
きい値を入力する手段とを追加し、仮想空間量が変化す
るようなジョブでも利用者が適切なワーキングセット計
算処理の制御の指定を行えるような機能を提供するもの
である。
SUMMARY OF THE INVENTION Accordingly, a working set calculation processing device according to the present invention is a working set calculation processing device in a computer system having a virtual storage control function, the allocation ratio of a real memory allocated to a job to a virtual space. Is characterized in that the calculated value of the working set is controlled so as not to exceed the ratio input by the user. Further, the working set calculation processing device of the present invention assigns a virtual space to a job.
Virtual space amount calculating means for calculating the virtual space amount when the release is performed;
Real memory amount calculating means for calculating the amount of real memory when the release is performed; working set calculating means for calculating a working set of the job from the amount of real memory calculated by the real memory amount calculating means; Threshold input means for inputting in advance the threshold of the allocation ratio,
Calculating the allocation ratio based on the calculated amount of the virtual space and the amount of the real memory, and when the value is larger than the threshold value, the allocation ratio calculation unit that notifies the working set calculation unit, The working set calculating means reduces the calculated working set and activates a page-out in response to the notification. Further, the working set calculation processing device of the present invention includes:
The threshold can be dynamically changed by a user. Further, in the working set calculation processing method of the present invention, in the working set calculation processing method in a computer system having a virtual storage control function, a procedure in which a user inputs a threshold value of an allocation ratio of a real memory allocated to a job to a virtual space. Calculating the amount of virtual space when virtual space is allocated / released to the job, and calculating the amount of real memory when real memory is allocated / released to the job Calculating the allocation ratio according to the calculated amount of virtual memory space and the amount of real memory; and reducing the calculated working set when the calculated allocation ratio is greater than the threshold. And a step of activating a page-out of the real memory. The present invention relates to a computer system having a virtual storage control function, comprising: a means for controlling a working set calculation process according to a ratio of an amount of real memory allocated to a job to an amount of virtual space; Means for the user to input a threshold value of the ratio between the amount of real memory and the amount of virtual space, so that the user can specify appropriate control of the working set calculation processing even in a job in which the amount of virtual space changes. Such a function is provided.

【0008】[0008]

【発明の実施の形態】次に、本発明の実施の形態につい
て説明する。図1を参照すると、本発明のワーキングセ
ット計算処理装置は、実メモリ3が割り当てられた仮想
空間2を有するジョブ1とジョブ1に対して仮想空間の
割り当て・解放を行う仮想空間割り当て・解放手段4
と、ジョブ1に割り当てられた仮想空間量を計算する仮
想空間量計算手段5と、ジョブ1に対して実メモリの割
り当て・解放を行う割り当て・解放手段6と、ジョブ1
に割り当てた実メモリの量を計算する実メモリ量計算手
段7と、実メモリ量計算手段7が計算した実メモリ量の
値からジョブ1のワーキングセットを計算し、また実メ
モリ割り当て比率計算手段9からの通知に応答してジョ
ブ1のワーキングセットの計算値を減少させ、ページア
ウト手段11を起動するワーキングセット計算手段8
と、仮想空間量計算手段5が計算した仮想空間量に対す
る、実メモリ量計算手段7が計算した実メモリ量の割り
当て比率、たとえば百分率を計算し、この値がしきい値
入力手段10によって、利用者があらかじめ入力したし
きい値より大きい場合はワーキングセット計算手段8に
対して、ジョブ1のワーキングセットの計算値を減少さ
せるように通知する実メモリ割り当て比率計算手段9
と、割り当て比率計算手段9に対して、利用者があらか
じめ比率のしきい値を入力するしきい値入力手段10と
ジョブ1の実メモリ3の内容を二次記憶装置12にコピ
ーし、コピーした実メモリ3を実メモリ割り当て・解放
手段6により解放するページアウト手段11と、二次記
憶装置12と、から構成されている。
Next, an embodiment of the present invention will be described. Referring to FIG. 1, a working set calculation processing apparatus according to the present invention includes a job 1 having a virtual space 2 to which a real memory 3 is allocated, and a virtual space allocating / releasing means for allocating / releasing a virtual space to the job 1. 4
Virtual space amount calculating means 5 for calculating the virtual space amount allocated to job 1, allocation / release means 6 for allocating / releasing real memory to job 1, job 1
Real memory amount calculating means 7 for calculating the amount of real memory allocated to the job; calculating the working set of job 1 from the value of the real memory amount calculated by the real memory amount calculating means 7; Working set calculation means 8 for reducing the calculated value of the working set of job 1 in response to the notification from
And an allocation ratio of the real memory amount calculated by the real memory amount calculation unit 7 to the virtual space amount calculated by the virtual space amount calculation unit 5, for example, a percentage, and this value is used by the threshold value input unit 10. If the threshold value is larger than the threshold value previously input by the user, the real memory allocation ratio calculating means 9 notifies the working set calculating means 8 to decrease the calculated value of the working set of the job 1.
Then, the contents of the real memory 3 of the job 1 and the threshold value inputting means 10 for the user to input the threshold value of the ratio in advance to the allocation ratio calculating means 9 are copied to the secondary storage device 12. It comprises a page-out means 11 for releasing the real memory 3 by the real memory allocation / release means 6, and a secondary storage device 12.

【0009】本実施形態の動作の概要は次のとおりであ
る。仮想空間割り当て・解放手段4によってジョブ1の
仮想空間2の仮想空間量が変更されるか、あるいは実メ
モリ割り当て・解放手段6によってジョブの実メモリ3
の実メモリ量が変更されると、仮想空間量計算手段5が
このジョブの仮想空間2の仮想空間量を計算し、実メモ
リ量計算手段7がこのジョブ1の実メモリ3の実メモリ
量を計算する。実メモリ割り当て比率計算手段9はジョ
ブ1の仮想空間2の仮想空間量と実メモリ3の実メモリ
量との比率を計算し、この比率がしきい値入力手段9に
よって、利用者があらかじめ与えられたしきい値より大
きいときは、ワーキングセット計算手段8が計算するジ
ョブ1のワーキングセットを小さくし、またページアウ
ト手段11を起動する。ページアウト手段11は、ジョ
ブ1の実メモリ3の内容を必要があれば二次記憶装置1
2にコピーし、実メモリ割り当て・解放手段6により実
メモリ3を解放することによってジョブ1に割り当てら
れた実メモリ3の量を減少させる。
The outline of the operation of this embodiment is as follows. Either the virtual space allocation / release means 4 changes the virtual space amount of the virtual space 2 of the job 1 or the real memory allocation / release means 6
Is changed, the virtual space amount calculating means 5 calculates the virtual space amount of the virtual space 2 of the job, and the real memory amount calculating means 7 calculates the real memory amount of the real memory 3 of the job 1. calculate. The real memory allocation ratio calculating means 9 calculates the ratio between the virtual space amount of the virtual space 2 of the job 1 and the real memory amount of the real memory 3, and this ratio is given by the user in advance by the threshold value inputting means 9. If it is larger than the threshold value, the working set of the job 1 calculated by the working set calculation means 8 is reduced, and the page-out means 11 is activated. The page-out means 11 stores the contents of the real memory 3 of the job 1 if necessary.
2 and the real memory 3 is released by the real memory allocation / release means 6 to reduce the amount of the real memory 3 allocated to the job 1.

【0010】このようにしてジョブ1の仮想空間量ある
いは実メモリ量が変化すると、仮想空間量に対する実メ
モリ量の比率を計算し、これを利用者があらかじめ与え
たしきい値より小さくなるように制御することによっ
て、仮想空間量が変化するジョブ1について、仮想空間
量に対してあらかじめ与えた比率の実メモリを割り当て
ることができ、利用者が適切なワーキングセット計算処
理の制御の指定を行えることができるのである。
When the amount of virtual space or the amount of real memory of job 1 changes in this way, the ratio of the amount of real memory to the amount of virtual space is calculated, and the ratio is calculated so as to be smaller than a threshold value given in advance by the user. By controlling, for the job 1 in which the virtual space amount changes, a real memory in a ratio given in advance to the virtual space amount can be allocated, and the user can specify appropriate control of the working set calculation process. You can do it.

【0011】次に、図1および図2、図3、図4のフロ
ーチャートを参照して、本実施例の動作を詳細に説明す
る。図1において、ジョブ1を実行中に仮想空間割り当
て・解放手段4がジョブ1の仮想空間2の仮想空間量を
変更することがある。すなわち、仮想空間2に追加的に
新たな仮想空間を割り当てれば仮想空間2が増量し、仮
想空間2の一部を解放すれば仮想空間2が減量する。こ
の場合は図2に示すように、仮想空間割り当て・解放
(S11)に応答して、ジョブ1の仮想空間量の変化を
反映するため、仮想空間量計算手段5は変化後の仮想空
間量を計算する(S12)。仮想空間量が変化すれば、
実メモリ割り当て比率も変化するので、実メモリ割り当
て比率計算手段9は、S12で計算して得た仮想空間量
で実メモリ量計算手段7が保持する実メモリ量を除算し
て、実メモリ割り当て比率を計算する(S13)。
Next, the operation of the present embodiment will be described in detail with reference to the flow charts of FIGS. 1, 2, 3 and 4. In FIG. 1, the virtual space allocation / release unit 4 may change the virtual space amount of the virtual space 2 of the job 1 while the job 1 is being executed. That is, if a new virtual space is additionally allocated to the virtual space 2, the virtual space 2 increases, and if a part of the virtual space 2 is released, the virtual space 2 decreases. In this case, as shown in FIG. 2, in response to the virtual space allocation / release (S11), the virtual space amount calculating means 5 reflects the change in the virtual space amount of the job 1 to reflect the change in the virtual space amount. Calculation is performed (S12). If the amount of virtual space changes,
Since the real memory allocation ratio also changes, the real memory allocation ratio calculating means 9 divides the real memory amount held by the real memory amount calculating means 7 by the virtual space amount calculated in S12 to obtain the real memory allocation ratio. Is calculated (S13).

【0012】また、図1において、ジョブ1を実行中
に、実メモリ割り当て・解放手段6がジョブ1の実メモ
リ3の実メモリ量を変更することがある。すなわち、実
メモリ3に追加的に新たな実メモリを割り当てれば実メ
モリ3が増量し、実メモリ3の一部を解放すれば実メモ
リ3が減量する。この場合は図3に示すように、実メモ
リ割り当て・解放(S21)に応答して、ジョブ1の実
メモリ量の変化を反映するため、実メモリ量計算手段7
は変化後の実メモリ量を計算する(S22)。さらに、
実メモリ量の変化をワーキングセットに反映するため、
ワーキングセット計算手段8はジョブ1のワーキングセ
ットの計算を行う(S23)。実メモリ量が変化すれ
ば、実メモリ割り当て比率も変化するので、実メモリ割
り当て比率計算手段9は、S22で計算して得た実メモ
リ量を仮想空間量計算手段5が保持する仮想空間量で除
算して実メモリ割り当て比率を計算する(S24)。
In FIG. 1, while the job 1 is being executed, the real memory allocation / release means 6 may change the real memory amount of the real memory 3 of the job 1. That is, the real memory 3 increases when a new real memory is additionally allocated to the real memory 3, and the real memory 3 decreases when a part of the real memory 3 is released. In this case, as shown in FIG. 3, in response to the real memory allocation / release (S21), the real memory amount calculating means 7 reflects the change in the real memory amount of the job 1.
Calculates the actual memory amount after the change (S22). further,
In order to reflect the change in the actual memory amount to the working set,
The working set calculation means 8 calculates the working set of job 1 (S23). If the real memory amount changes, the real memory allocation ratio also changes. Therefore, the real memory allocation ratio calculation means 9 calculates the real memory amount obtained in S22 by the virtual space amount held by the virtual space amount calculation means 5. The actual memory allocation ratio is calculated by dividing (S24).

【0013】なお、図1において、ジョブ1の実行中
に、仮想空間2の量と実メモリ3の量が共に変化した場
合には、上述のようにして、変化後の仮想空間量、実メ
モリ量、ワーキングセットの値および実メモリ割り当て
比率がすべて計算されることになる。
In FIG. 1, when both the amount of the virtual space 2 and the amount of the real memory 3 change during the execution of the job 1, as described above, The quantity, working set value and real memory allocation ratio will all be calculated.

【0014】また、S13およびS24における実メモ
リ割り当て比率計算の結果、比率が上がるケースは、仮
想空間2が解放され、かつ実メモリ3に変化がないと
き、仮想空間2に変化がなく、かつ実メモリ3が割り当
てられたとき、仮想空間2が解放され、かつ実メモリ3
が割り当てられたとき、仮想空間2および実メモリ3が
割り当てられたが実メモリ3の割り当て量が相対的に多
いとき、仮想空間2および実メモリ3が解放されたが仮
想空間2の解放量が相対的に多いときである。逆に、割
り当て比率が下るケースは、上述の上がるケースと逆の
ときということになる。
As a result of the calculation of the real memory allocation ratio in S13 and S24, the ratio increases when the virtual space 2 is released and the real memory 3 does not change. When the memory 3 is allocated, the virtual space 2 is released and the real memory 3 is allocated.
Is allocated, the virtual space 2 and the real memory 3 are allocated, but when the allocated amount of the real memory 3 is relatively large, the virtual space 2 and the real memory 3 are released but the released amount of the virtual space 2 becomes This is when it is relatively large. Conversely, the case where the allocation ratio decreases is the opposite of the case where the allocation ratio increases.

【0015】以上のように、実メモリ割り当て比率が計
算されると、図4に示すように、実メモリ割り当て比率
計算(S31)に応答して、割り当て比率計算手段9
は、利用者によってしきい値入力手段10から、あらか
じめ設定されている実メモリ割り当て比率と、S13,
S24において計算された実メモリ割り当て比率とを比
較する(S32)。この結果、計算値がしきい値以下な
ら、そのまま終了する。これは、仮想空間2に割り当て
られた実メモリ3の量が、利用者が設定した量より少な
いため、何の問題もないからである。
As described above, when the real memory allocation ratio is calculated, as shown in FIG. 4, in response to the real memory allocation ratio calculation (S31), the allocation ratio calculating means 9 is executed.
Is the actual memory allocation ratio set in advance by the user from the threshold value input means 10, and S13,
The actual memory allocation ratio calculated in S24 is compared (S32). As a result, if the calculated value is equal to or smaller than the threshold value, the process ends. This is because there is no problem since the amount of the real memory 3 allocated to the virtual space 2 is smaller than the amount set by the user.

【0016】S32における比較の結果、計算値がしき
い値より大きいときは、実メモリ割り当て比率計算手段
9はワーキングセット計算手段8にジョブ1のワーキン
グセットを減少させるように通知する(S33)。この
通知を受けたワーキングセット計算手段8は、S23で
計算したワーキングセットを減少するとともに、ページ
アウト手段11を起動する。ページアウト手段11は、
必要であれば実メモリ3のうちの減少させる実メモリ量
に相当する領域の内容を二次記憶装置12にコピーし
て、ページアウトし(S34)、実メモリ割り当て・解
放手段6は、その領域の実メモリを解放する(S3
5)。
As a result of the comparison in S32, when the calculated value is larger than the threshold value, the actual memory allocation ratio calculating means 9 notifies the working set calculating means 8 to reduce the working set of the job 1 (S33). The working set calculation means 8 having received the notification reduces the working set calculated in S23 and activates the page-out means 11. The page-out means 11
If necessary, the contents of the area of the real memory 3 corresponding to the real memory amount to be reduced are copied to the secondary storage device 12 and paged out (S34). Frees the real memory (S3)
5).

【0017】すると、再び図3のフローに沿って実メモ
リ量が計算され(S22)実メモリ割り当て比率が計算
されて(S24)、図4のS32におけるしきい値との
比較がされる。このようなループは、S32において実
メモリ割り当て比率の計算値がしきい値以下になるまで
繰り返されることになる。
Then, the real memory amount is calculated again in accordance with the flow of FIG. 3 (S22), the real memory allocation ratio is calculated (S24), and compared with the threshold value in S32 of FIG. Such a loop is repeated until the calculated value of the actual memory allocation ratio becomes equal to or less than the threshold value in S32.

【0018】次に、本発明の他の実施形態について図面
を参照して説明する。図5を参照すると、この実施例
は、しきい値変更手段13が付加される点で図1に示し
た実施例となる。
Next, another embodiment of the present invention will be described with reference to the drawings. Referring to FIG. 5, this embodiment is the embodiment shown in FIG. 1 in that a threshold value changing means 13 is added.

【0019】また、図6のステップS42からステップ
S45までの動作はそれぞれ図4のステップS32から
ステップS35と同じであるので、説明は省略する。図
6のステップS41でしきい値変更手段9(図5の1
3)により、利用者が実メモリ割り当て比率のしきい値
を変更すると、実メモリ割り当て比率計算手段を起動し
て実メモリの割り当て比率と変更したしきい値とを比較
する(S42)。また、しきい値変更手段13によるし
きい値変更がない場合には、図4のフローチャートに従
う。
The operations in steps S42 to S45 in FIG. 6 are the same as those in steps S32 to S35 in FIG. In step S41 in FIG. 6, the threshold value changing means 9 (1 in FIG. 5)
According to 3), when the user changes the threshold value of the real memory allocation ratio, the real memory allocation ratio calculation means is activated to compare the real memory allocation ratio with the changed threshold value (S42). When the threshold value is not changed by the threshold value changing unit 13, the process follows the flowchart of FIG.

【0020】本実施形態は、このように、利用者が実メ
モリ割り当て比率のしきい値を動的に変更することがで
きるという、新たな効果を有する。なお、以上に説明し
たワーキングセット計算処理方法をコンピュータに実行
させるためのプログラムを磁気ディスク半導体メモリ等
の記録媒体に記録し、コンピュータに読み込ませて実行
するようにしてもよい。
The present embodiment has a new effect that the user can dynamically change the threshold value of the real memory allocation ratio. A program for causing a computer to execute the above-described working set calculation processing method may be recorded on a recording medium such as a magnetic disk semiconductor memory, and read and executed by a computer.

【0021】[0021]

【発明の効果】発明の効果は、仮想空間量が変化するジ
ョブに対して利用者がワーキングセットの制御の指定を
適切に行えることである。その理由は、利用者は仮想空
間量に対して割り当てる実メモリ量の比率を指定し、ジ
ョブの仮想空間量あるいは実メモリ量に変化が起きたと
き、仮想空間量に対して実メモリ量の比率を計算し、こ
れを利用者があらかじめ与えたしきい値より小さくする
ような制御を行うことによって、仮想空間量の変化にと
もなって一定の比率の実メモリ量を割り当てるように制
御しているからである。
An effect of the present invention is that the user can appropriately specify the control of the working set for a job whose virtual space amount changes. The reason is that the user specifies the ratio of the real memory amount to the virtual space amount, and when the virtual space amount or the real memory amount of the job changes, the ratio of the real memory amount to the virtual space amount Is calculated, and by controlling this to be smaller than the threshold value given in advance by the user, the control is performed so that the real memory amount at a fixed ratio is allocated according to the change in the virtual space amount. It is.

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

【図1】 本発明のワーキングセット計算処理装置の一
実施形態を示すブロック図。
FIG. 1 is a block diagram showing an embodiment of a working set calculation processing device according to the present invention.

【図2】 図1に示した実施例における仮想空間割り当
て・解放に伴う実メモリ割り当て比率計算のフローチャ
ート。
FIG. 2 is a flowchart of a calculation of a real memory allocation ratio associated with virtual space allocation / release in the embodiment shown in FIG. 1;

【図3】 図1に示した実施例における実メモリ割り当
て・解放に伴う実メモリ割り当て比率計算のフローチャ
ート。
FIG. 3 is a flowchart for calculating a real memory allocation ratio associated with real memory allocation / release in the embodiment shown in FIG. 1;

【図4】 図1に示した実施形態における実メモリ割り
当て比率計算に伴う処理のフローチャート。
FIG. 4 is a flowchart of a process involved in calculating an actual memory allocation ratio in the embodiment shown in FIG. 1;

【図5】 本発明のワーキングセット計算処理装置の他
の実施形態を示すブロック図。
FIG. 5 is a block diagram showing another embodiment of the working set calculation processing device of the present invention.

【図6】 図5に示した実施形態における実メモリ割り
当て比率変更に伴う処理のフローチャート。
FIG. 6 is a flowchart of a process associated with a change in an actual memory allocation ratio in the embodiment shown in FIG. 5;

【符号の説明】[Explanation of symbols]

1 ジョブ 2 仮想空間 3 実メモリ 4 仮想空間割り当て・解放手段 5 仮想空間量計算手段 6 実メモリ割り当て・解放手段 7 実メモリ量計算手段 8 ワーキングセット計算手段 9 実メモリ割り当て比率計算手段 10 しきい値入力手段 11 ページアウト手段 12 二次記憶装置 13 しきい値変更手段 Reference Signs List 1 job 2 virtual space 3 real memory 4 virtual space allocation / release means 5 virtual space amount calculation means 6 real memory allocation / release means 7 real memory amount calculation means 8 working set calculation means 9 real memory allocation ratio calculation means 10 threshold Input means 11 Page out means 12 Secondary storage device 13 Threshold value changing means

フロントページの続き (56)参考文献 特開 平8−249234(JP,A) 特開 平1−283630(JP,A) 特開 昭60−39248(JP,A) 特開 昭63−113740(JP,A) 「ACOSソフトウェア ACOS− 4/MVP XE 動的資源管理解説 書<DRM>DDE74−3」、日本電気 株式会社・発行(1990年3月、第3 版)、pp.21〜27 「ACOSソフトウェア ACOS− 4/MVP XE ジョブ管理解説書 DDA71−5」、日本電気株式会社・発 行(1989年4月、第5版)、pp.53〜 56 「ACOSソフトウェア ACOS− 4/MVP XE スーパバイザ解説書 DDA72−3」、日本電気株式会社・ 発行(昭和63年3月、第3版)、62〜67 (58)調査した分野(Int.Cl.7,DB名) G06F 9/46 G06F 12/08 G06F 12/12 G06F 12/02 G06F 9/06 CSDB(日本国特許庁)Continuation of the front page (56) References JP-A-8-249234 (JP, A) JP-A-1-283630 (JP, A) JP-A-60-39248 (JP, A) JP-A-63-113740 (JP) , A) "ACOS Software ACOS-4 / MVP XE Dynamic Resource Management Manual <DRM>DDE74-3", NEC Corporation, issued (March 1990, 3rd edition), pp. 21-27 "ACOS Software ACOS-4 / MVP XE Job Management Manual DDA71-5", NEC Corporation, issued (April 1989, 5th edition), pp. 53-56 "ACOS Software ACOS-4 / MVP XE Supervisor Manual DDA72-3", NEC Corporation, issued (March 1988, 3rd edition), 62-67 (58) Fields surveyed (Int. Cl. 7, DB name) G06F 9/46 G06F 12/08 G06F 12/12 G06F 12/02 G06F 9/06 CSDB ( JPO)

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 仮想記憶制御機能を有する計算機システ
ムにおけるワーキングセット計算処理装置において、ジ
ョブに割り当てられた実メモリの仮想メモリ空間に対す
る割り当て比率が、利用者によって入力された比率を超
えないようにワーキングセットの計算値を制御すること
を特徴とするワーキングセット計算処理装置。
In a working set calculation processing device in a computer system having a virtual storage control function, a work is performed so that an allocation ratio of a real memory allocated to a job to a virtual memory space does not exceed a ratio input by a user. A working set calculation processing device for controlling a calculated value of a set.
【請求項2】 前記制御はページアウトによって実メモ
リを解放することにより行うことを特徴とする請求項1
記載のワーキングセット計算処理装置。
2. The method according to claim 1, wherein the control is performed by releasing a real memory by page-out.
A working set calculation processing device as described.
【請求項3】 ジョブに対して仮想メモリ空間の割り当
て・解放が行われると当該仮想メモリ空間の量を計算す
る仮想空間量計算手段と、前記ジョブに対して実メモリ
の割り当て・解放が行われると当該実メモリの量を計算
する実メモリ量計算手段と、該実メモリ量計算手段が計
算した実メモリの量から前記ジョブのワーキングセット
を計算するワーキングセット計算手段と、利用者が前記
割り当て比率のしきい値をあらかじめ入力するしきい値
入力手段と、前記計算された仮想メモリ空間の量と実メ
モリの量により前記割り当て比率を計算し、この値が前
記しきい値より大きいときは前記ワーキングセット計算
手段に通知する割り当て比率計算手段とを有し、前記ワ
ーキングセット計算手段は該通知に応答して、前記計算
されたワーキングセットを減少させ前記ページアウトを
起動することを特徴とする請求項2記載のワーキングセ
ット計算処理装置。
3. A virtual space amount calculating means for calculating an amount of the virtual memory space when a virtual memory space is allocated / released for a job, and a real memory is allocated / released for the job. A real memory amount calculating means for calculating the amount of the real memory; a working set calculating means for calculating a working set of the job from the amount of the real memory calculated by the real memory amount calculating means; Threshold value input means for previously inputting the threshold value, and the allocation ratio is calculated based on the calculated amount of the virtual memory space and the calculated amount of the real memory. Allocation ratio calculation means for notifying the set calculation means, wherein the working set calculation means responds to the notification to 3. The working set calculation processing device according to claim 2, wherein the page-out is activated by reducing the number of packets.
【請求項4】 前記しきい値は利用者が動的に変更でき
ることを特徴とする請求項1〜請求項3のいずれかに記
載のワーキングセット計算処理装置。
4. The working set calculation processing device according to claim 1, wherein the threshold value can be dynamically changed by a user.
【請求項5】 仮想記憶制御の機能を有する計算機シス
テムにおけるワーキングセット計算処理方法において、
ジョブに割り当てられる実メモリの仮想メモリ空間に対
する割り当て比率のしきい値を利用者が入力する手順
と、前記ジョブに対し仮想メモリ空間の割り当て・解放
が行われると当該仮想メモリ空間の量を計算する手順
と、前記ジョブに対して実メモリの割り当て・解放が行
われると当該実メモリの量を計算する手順と、該計算さ
れた仮想メモリ空間の量と実メモリの量により前記割り
当て比率を計算する手順と、該計算された割り当て比率
が前記しきい値より大きいときは前記計算されたワーキ
ングセットを減少させる手順と、当該実メモリのページ
アウトを起動する手順とを含むことを特徴とするワーキ
ングセット計算処理方法。
5. A working set calculation processing method in a computer system having a virtual storage control function,
A procedure in which a user inputs a threshold value of an allocation ratio of a real memory to a virtual memory space allocated to a job, and calculates an amount of the virtual memory space when the virtual memory space is allocated / released for the job. A procedure for calculating the amount of real memory when the real memory is allocated / released for the job; and calculating the allocation ratio based on the calculated amount of virtual memory space and the amount of real memory. A working set comprising: reducing the calculated working set when the calculated allocation ratio is greater than the threshold; and activating a page-out of the real memory. Calculation processing method.
【請求項6】 仮想記憶制御機能を有する計算機システ
ムにおけるワーキングセット計算処理方法であって、ジ
ョブに割り当てられる実メモリの仮想メモリ空間に対す
る割り当て比率のしきい値を利用者が入力する手順と、
前記ジョブに対し仮想メモリ空間の割り当て・解放が行
われると当該仮想メモリ空間の量を計算する手順と、前
記ジョブに対して実メモリの割り当て・解放が行われる
と当該実メモリの量を計算する手順と、該計算された仮
想メモリ空間の量と実メモリの量により前記割り当て比
率を計算する手順と、該計算された割り当て比率が前記
しきい値より大きいときは前記計算されたワーキングセ
ットを減少させる手順と、当該実メモリのページアウト
を起動する手順とを含む方法をコンピュータに実行させ
るためのプログラムを記録したコンピュータ読み込み可
能な記録媒体。
6. A working set calculation processing method in a computer system having a virtual storage control function, wherein a user inputs a threshold of an allocation ratio of a real memory to a virtual memory space allocated to a job;
A procedure for calculating the amount of the virtual memory space when the virtual memory space is allocated / released for the job, and calculating the amount of the real memory when the real memory is allocated / released for the job. Calculating the allocation ratio according to the calculated amount of virtual memory space and the amount of real memory; and reducing the calculated working set when the calculated allocation ratio is greater than the threshold. A computer-readable recording medium recording a program for causing a computer to execute a method including a step of causing the computer to execute a page-out operation of the real memory.
JP10233332A 1998-08-19 1998-08-19 Working set calculation processing apparatus and working set calculation processing method Expired - Fee Related JP3125761B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10233332A JP3125761B2 (en) 1998-08-19 1998-08-19 Working set calculation processing apparatus and working set calculation processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10233332A JP3125761B2 (en) 1998-08-19 1998-08-19 Working set calculation processing apparatus and working set calculation processing method

Publications (2)

Publication Number Publication Date
JP2000066911A JP2000066911A (en) 2000-03-03
JP3125761B2 true JP3125761B2 (en) 2001-01-22

Family

ID=16953497

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10233332A Expired - Fee Related JP3125761B2 (en) 1998-08-19 1998-08-19 Working set calculation processing apparatus and working set calculation processing method

Country Status (1)

Country Link
JP (1) JP3125761B2 (en)

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
「ACOSソフトウェア ACOS−4/MVP XE 動的資源管理解説書<DRM>DDE74−3」、日本電気株式会社・発行(1990年3月、第3版)、pp.21〜27
「ACOSソフトウェア ACOS−4/MVP XE ジョブ管理解説書 DDA71−5」、日本電気株式会社・発行(1989年4月、第5版)、pp.53〜56
「ACOSソフトウェア ACOS−4/MVP XE スーパバイザ解説書 DDA72−3」、日本電気株式会社・発行(昭和63年3月、第3版)、62〜67

Also Published As

Publication number Publication date
JP2000066911A (en) 2000-03-03

Similar Documents

Publication Publication Date Title
JPH03257644A (en) Main memory control method
JPH0635732A (en) Area assigning method for storage device
JP3125761B2 (en) Working set calculation processing apparatus and working set calculation processing method
JPS62231382A (en) Image processing method and apparatus
JPH06187309A (en) Processor allocation control system
US6085264A (en) Accounting-information outputting device
JP2003140946A (en) Storage device
KR100513285B1 (en) Multiple master page output device and method
JP2997819B2 (en) Drawing equipment
JP3778099B2 (en) Memory management method, computer system, and program
JPH02214927A (en) Method and device for control of multi-window
JPH06266619A (en) Page saving/restoring device
JPH0337748A (en) External storage accessing system utilizing main storage
JP2571298B2 (en) Data management control method
JP3094477B2 (en) Virtual storage management method
JPH04178731A (en) Reuse system for method cache information in object oriented processing system
JP2941809B2 (en) Image processing method and apparatus
JP3022848B2 (en) Multitask task switching method and real-time operating system
JPS63201745A (en) Job processing system utilizing extended storage device
JPH03240836A (en) Logical simulation method for large capacity storage
JPH06236301A (en) Method for writing data in file
JPH04209045A (en) Dynamic memory allocation system
JPH02112057A (en) Data treatment method for on-line system
JPH02226429A (en) Information processor
JPH03100845A (en) Virtual storage control system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001003

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071102

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081102

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081102

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091102

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091102

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101102

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees