JPH0652059A - Automatic swap area addition/deletion system - Google Patents

Automatic swap area addition/deletion system

Info

Publication number
JPH0652059A
JPH0652059A JP4218727A JP21872792A JPH0652059A JP H0652059 A JPH0652059 A JP H0652059A JP 4218727 A JP4218727 A JP 4218727A JP 21872792 A JP21872792 A JP 21872792A JP H0652059 A JPH0652059 A JP H0652059A
Authority
JP
Japan
Prior art keywords
swap area
swap
area
unused
deletion
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
JP4218727A
Other languages
Japanese (ja)
Inventor
Akira Nishizuka
晃 西塚
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 JP4218727A priority Critical patent/JPH0652059A/en
Publication of JPH0652059A publication Critical patent/JPH0652059A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To enable a continuous operation to be performed by automatically adding a swap area when it is in short supply in a computer of virtual memory system provided with the swap area. CONSTITUTION:A swap area acquiring means 4 and a swap area releasing means 5 monitor the quantity of unused swap area of a system by using an unused swap area quantity monitoring means 6, and call an automatic snap area addition/deletion means 7 at need by performing threshold value control, and add by generating a swap file newly when the swap area is in short supply, and delete an added swap area when an excessive swap area exists. Thereby, an operation can be continued without generating a problem even when burden is applied temporarily to a system in which a system manager is absent.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は二次記憶装置にスワップ
領域を持つ仮想記憶方式の計算機システムのスワップ領
域管理方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a swap area management method for a virtual memory type computer system having a swap area in a secondary storage device.

【0002】[0002]

【従来の技術】従来、スワップ領域の大きさはシステム
初期化時に決定されるか、あるいはシステム管理者がコ
マンドを入力することによりスワップ領域として二次記
憶内のファイルを追加/削除してスワップ領域の大きさ
を変更していた。なお、スワップ領域とは、仮想記憶方
式の計算機システムにおいて仮想的に使用するメモリ量
が物理的なメモリ量より大きくなったときに、一時的に
物理メモリの内容をコピーしておく二次記憶装置上の領
域であり、スワップ領域に内容をコピーした物理メモリ
領域は他の用途に使用可能となるものである。
2. Description of the Related Art Conventionally, the size of a swap area is determined at system initialization, or a system administrator inputs a command to add / delete a file in secondary storage as a swap area to create a swap area. Had changed the size of. The swap area is a secondary storage device that temporarily copies the contents of the physical memory when the amount of memory that is virtually used in the virtual storage system becomes larger than the physical memory amount. The physical memory area, which is the upper area and whose contents are copied to the swap area, can be used for other purposes.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のスワッ
プ領域管理方式では、システム管理者のいないシステム
において負荷が高くなってスワップ領域が足りなくなっ
たとき、新たなジョブを実行できなくなるという欠点が
ある。また、負荷が非常に短い時間に集中して、その他
の時間はあまりスワップ領域を使用しないようなシステ
ムにおいて、ジョブ実行不可という事態を発生させない
ようにするには、システムの負荷の最も高いときに必要
とするスワップ領域量を最初から確保しなければなら
ず、平常時の二次記憶装置の利用効率が悪くなるという
欠点がある。
The above-mentioned conventional swap area management method has a drawback that a new job cannot be executed when the load becomes high and the swap area becomes insufficient in a system without a system administrator. . In a system where the load is concentrated in a very short time and the swap area is not used so much at other times, in order to prevent a situation in which jobs cannot be executed, it is necessary to There is a drawback that the required swap area amount must be secured from the beginning, and the efficiency of use of the secondary storage device in normal times deteriorates.

【0004】本発明は上述の問題点に鑑みて、未使用ス
ワップ領域が少なくなった時にはスワップ領域の追加
を、領域が大きくなった時には不要なスワップ領域を自
動的に削除して二次記憶装置の空き領域を有効に利用で
きるスワップ領域自動追加/削除方式を提供することを
目的としている。
In view of the above-mentioned problems, the present invention adds a swap area when the unused swap area becomes small, and automatically deletes an unnecessary swap area when the area becomes large so that a secondary storage device can be obtained. It is an object of the present invention to provide a swap area automatic addition / deletion method that can effectively use the free area of the.

【0005】[0005]

【課題を解決するための手段】本発明のスワップ領域自
動追加/削除方式は、二次記憶装置にスワップ領域をも
つ仮想記憶方式の計算機システムにおいて、スワップ領
域の残り領域が少なくなったときに、スワップ領域獲得
手段と未使用スワップ領域量監視手段と、スワップ領域
自動追加/削除手段を用いて新たにスワップ領域をシス
テムに自動的に追加することを特徴としている。
According to the swap area automatic addition / deletion method of the present invention, in a virtual storage system computer system having a swap area in a secondary storage device, when the remaining swap area becomes small, A feature is that a new swap area is automatically added to the system by using a swap area acquisition means, an unused swap area amount monitoring means, and a swap area automatic addition / deletion means.

【0006】また、残りスワップ領域が十分大きくなっ
たときに、スワップ領域解放手段と、未使用スワップ領
域量監視手段と、スワップ領域自動追加/削除手段を用
いて追加済みのスワップ領域を自動的にシステムから削
除することを特徴としている。
When the remaining swap area becomes sufficiently large, the swap area released means, the unused swap area amount monitoring means, and the swap area automatic addition / deletion means are used to automatically add the swap area already added. It is characterized by being deleted from the system.

【0007】[0007]

【作用】上記構成によれば、スワップ領域獲得手段およ
びスワップ領域解放手段は、未使用スワップ領域量監視
手段を用いてシステムの未使用スワップ領域量をチェッ
クし、スワップ領域自動追加/削除手段を用いて、スワ
ップ領域の残り領域が少なくなった時はスワップ領域を
自動的に追加し、残りスワップ領域が十分大きくなった
時には、追加済みのスワップ領域を自動的に削除するの
で、システムの二次記憶装置の空き領域を有効に使用す
ることができる。
According to the above construction, the swap area acquisition means and the swap area release means use the unused swap area amount monitoring means to check the unused swap area amount of the system, and use the swap area automatic addition / deletion means. When the remaining swap area becomes small, the swap area is automatically added, and when the remaining swap area is sufficiently large, the added swap area is automatically deleted. The free area of the device can be effectively used.

【0008】[0008]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0009】図1は本発明の構成を表す図である。FIG. 1 is a diagram showing the configuration of the present invention.

【0010】図1において、スワップ領域使用処理1
(1)とスワップ領域使用処理2(2)とスワップ領域
使用処理3(3)は、スワップ領域を使用するジョブを
表している。各ジョブはスワップ領域獲得手段4を使用
してスワップ領域を獲得し、使用する。そして、スワッ
プ領域解放手段5を使用して使用済みのスワップ領域を
解放する。スワップ領域獲得手段4とスワップ領域解放
手段5は未使用スワップ領域量監視手段6を用いて未使
用スワップ領域量をチェックし、必要があればスワップ
領域自動追加/削除手段7を用いてスワップ領域の追加
/削除を行う。なお、ここではスワップ領域を外部から
指定して追加/削除する機能が既にあることを前提とし
ている。また、スワップ領域は二次記憶装置上のある大
きさを占める領域であり、スワップ領域の構造や形態は
問わない。従って、スワップ領域は二次記憶装置上の連
続な領域を占めていてもよいし、論理的にまとめられた
ファイルと呼ばれる単位であってもよい。
In FIG. 1, swap area use processing 1
(1), swap area use processing 2 (2) and swap area use processing 3 (3) represent jobs that use the swap area. Each job uses the swap area acquisition means 4 to acquire and use the swap area. Then, the swap area releasing means 5 is used to release the used swap area. The swap area acquisition means 4 and the swap area release means 5 use the unused swap area amount monitoring means 6 to check the unused swap area amount, and if necessary, use the swap area automatic addition / deletion means 7 to check the swap area. Add / delete. Note that it is assumed here that there is already a function of externally designating a swap area and adding / deleting it. Also, the swap area is an area that occupies a certain size on the secondary storage device, and the structure or form of the swap area does not matter. Therefore, the swap area may occupy a continuous area on the secondary storage device, or may be a unit called a logically organized file.

【0011】つぎに動作について説明する。Next, the operation will be described.

【0012】図2は未使用スワップ領域量監視手段の処
理の流れを示すフローチャートである。図2を参照する
と未使用スワップ領域量監視手段6は、まず未使用スワ
ップ領域量を格納しているデータ域を更新し(S−2
1)、獲得か解放かによって処理を分ける(S−2
2)。獲得の場合、未使用スワップ領域量があらかじめ
設定したしきい値未満の場合(S−23)、スワップ領
域自動追加/削除手段7を呼び出す(S−25)。な
お、しきい値はあらかじめ設定しておく方式でもよい
し、状況に応じて自動的に調節する方式でもよく、ここ
では特に規定しない。解放の場合、未使用スワップ領域
量がしきい値の2倍未満から2倍以上に変化した場合の
み(S−24)、スワップ領域自動追加/削除手段7を
呼び出す(S−25)。ここでは、単純化するためにし
きい値の2倍を判断の基準としたが、別の基準を用いて
も本発明の範囲からは逸脱しない。このように、未使用
スワップ領域量監視手段6により、未使用スワップ領域
量が少なくなったときと、十分に多くなったときにスワ
ップ領域自動追加/削除手段7を呼び出すことが可能と
なっている。
FIG. 2 is a flow chart showing the flow of processing of the unused swap area amount monitoring means. Referring to FIG. 2, the unused swap area amount monitoring means 6 first updates the data area storing the unused swap area amount (S-2
1), the process is divided according to whether it is acquired or released (S-2
2). In the case of acquisition, if the amount of unused swap area is less than the preset threshold value (S-23), the swap area automatic addition / deletion means 7 is called (S-25). The threshold may be set in advance or may be automatically adjusted according to the situation, and is not specified here. In the case of release, the swap area automatic addition / deletion means 7 is called (S-25) only when the unused swap area amount changes from less than twice the threshold value to more than twice the threshold value (S-24). Here, for the sake of simplification, the criterion of the determination is twice the threshold value, but the use of another criterion does not depart from the scope of the present invention. In this way, the unused swap area amount monitoring means 6 makes it possible to call the swap area automatic addition / deletion means 7 when the unused swap area amount becomes small and when it becomes sufficiently large. .

【0013】図3はスワップ領域自動追加/削除手段の
処理の流れを示すフローチャートである。図3を参照す
ると、スワップ領域自動追加/削除手段7は、まず未使
用スワップ領域量がしきい値未満かどうかを調べる(S
−31)。しきい値未満の場合、まず二次記憶装置上に
スワップ領域として追加するためのスワップファイルを
作成する(S−32)。次に作成したスワップファイル
をスワップ領域として追加登録する(S−33)。そし
て、最初の条件判断(S−31)に戻り、未使用スワッ
プ領域量がしきい値以上になるまで繰り返す。最初の条
件判断(S−31)で、未使用スワップ領域量がしきい
値以上の場合、未使用スワップ領域量がしきい値の2倍
以上かどうかをチェックする(S−34)。未使用スワ
ップ領域量がしきい値の2倍以上の場合、これまでに追
加したスワップ領域を解放し(S−35)、対応する二
次記憶装置上のスワップファイルを削除する(S−3
6)。そして、最初の条件判断(S−31)に戻る。な
お、スワップ領域自動追加/削除手段7においても、条
件判断の基準をどのように決定しようとも、本発明の範
囲を逸脱するものではない。
FIG. 3 is a flowchart showing the processing flow of the swap area automatic addition / deletion means. Referring to FIG. 3, the swap area automatic adding / deleting means 7 first checks whether or not the amount of unused swap area is less than a threshold value (S).
-31). If it is less than the threshold value, first, a swap file to be added as a swap area is created on the secondary storage device (S-32). Next, the created swap file is additionally registered as a swap area (S-33). Then, the process returns to the first condition judgment (S-31) and is repeated until the unused swap area amount becomes equal to or more than the threshold value. If the amount of unused swap area is equal to or larger than the threshold value in the first condition judgment (S-31), it is checked whether the amount of unused swap area is equal to or larger than twice the threshold value (S-34). When the amount of unused swap area is more than twice the threshold value, the swap area added so far is released (S-35) and the swap file on the corresponding secondary storage device is deleted (S-3).
6). Then, the process returns to the first condition judgment (S-31). Note that the automatic swap area adding / deleting means 7 does not depart from the scope of the present invention no matter how the criteria for condition determination are determined.

【0014】[0014]

【発明の効果】以上説明したように本発明は、未使用ス
ワップ領域が少なくなったときにスワップ領域を追加す
ることによって、システム管理者のいないシステムにお
いてシステムの正常な動作を可能な限り保証する効果
と、未使用スワップ領域が大きくなって不要となった追
加済スワップ領域を自動的に削除することにより、二次
記憶装置の空き領域を有効に使用できる効果がある。
As described above, the present invention guarantees the normal operation of the system as much as possible in a system without a system administrator by adding a swap area when the unused swap area becomes small. The effect and the effect that the free area of the secondary storage device can be effectively used by automatically deleting the added swap area that has become unnecessary because the unused swap area becomes large.

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

【図1】本発明の実施例のスワップ領域自動追加/削除
方式の構成を表す図である。
FIG. 1 is a diagram showing a configuration of a swap area automatic addition / deletion method according to an embodiment of the present invention.

【図2】図1に示す未使用スワップ領域量監視手段の処
理の流れを示すフローチャートである。
FIG. 2 is a flowchart showing a processing flow of an unused swap area amount monitoring means shown in FIG.

【図3】図1に示すスワップ領域自動追加/削除手段の
処理の流れを示すフローチャートである。
FIG. 3 is a flowchart showing a processing flow of a swap area automatic addition / deletion means shown in FIG.

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

1 スワップ領域使用処理1 2 スワップ領域使用処理2 3 スワップ領域使用処理3 4 スワップ領域獲得手段 5 スワップ領域解放手段 6 未使用スワップ領域量監視手段 7 スワップ領域自動追加/削除手段 8 制御部 1 Swap Area Use Processing 1 2 Swap Area Use Processing 2 3 Swap Area Use Processing 3 4 Swap Area Acquisition Means 5 Swap Area Release Means 6 Unused Swap Area Amount Monitoring Means 7 Swap Area Automatic Addition / Deletion Means 8 Control Unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 二次記憶装置にスワップ領域をもつ仮想
記憶方式の計算機システムにおいて、前記スワップ領域
の残り領域が少なくなったときに、スワップ領域獲得手
段と、未使用スワップ領域量監視手段と、スワップ領域
自動追加/削除手段を用いて新たにスワップ領域をシス
テムに自動的に追加することを特徴とするスワップ領域
自動追加方式。
1. A virtual memory type computer system having a swap area in a secondary storage device, wherein when a remaining area of the swap area becomes small, a swap area acquisition means and an unused swap area amount monitoring means, A swap area automatic addition method characterized in that a new swap area is automatically added to the system by using a swap area automatic addition / deletion means.
【請求項2】 請求項1に記載のシステムにおいて、残
りスワップ領域が十分大きくなったときに、スワップ領
域解放手段と、未使用スワップ領域量監視手段と、スワ
ップ領域自動追加/削除手段を用いて追加済みのスワッ
プ領域を自動的にシステムから削除することを特徴とす
るスワップ領域自動削除方式。
2. The system according to claim 1, wherein when the remaining swap area becomes sufficiently large, a swap area releasing means, an unused swap area amount monitoring means, and a swap area automatic adding / deleting means are used. Automatic swap area deletion method, which automatically deletes the added swap area from the system.
JP4218727A 1992-07-27 1992-07-27 Automatic swap area addition/deletion system Pending JPH0652059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4218727A JPH0652059A (en) 1992-07-27 1992-07-27 Automatic swap area addition/deletion system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4218727A JPH0652059A (en) 1992-07-27 1992-07-27 Automatic swap area addition/deletion system

Publications (1)

Publication Number Publication Date
JPH0652059A true JPH0652059A (en) 1994-02-25

Family

ID=16724493

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4218727A Pending JPH0652059A (en) 1992-07-27 1992-07-27 Automatic swap area addition/deletion system

Country Status (1)

Country Link
JP (1) JPH0652059A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719633A (en) * 2022-09-20 2023-09-08 荣耀终端有限公司 Method for managing memory exchange partition and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719633A (en) * 2022-09-20 2023-09-08 荣耀终端有限公司 Method for managing memory exchange partition and electronic equipment

Similar Documents

Publication Publication Date Title
US6526441B2 (en) Input/output device information management system for multi-computer system
KR970022782A (en) Systems and methods for managing distributed object resources
JPH07121424A (en) System and method for management of object
JPH0652059A (en) Automatic swap area addition/deletion system
JPH052517A (en) Data base journal control system
JPS593624A (en) Print output control system
JP3123498B2 (en) Program restart device and its program recording medium
JP2574537B2 (en) Process management equipment
JPH06168184A (en) Automatic sw area setting system
JPH08153036A (en) Memory management device
JPH064371A (en) File management system
JP3094477B2 (en) Virtual storage management method
JPH04284549A (en) Data backup system
JPH04134567A (en) Document filing device
JPH01177653A (en) Dynamic management system for link pack area
JPH0619754A (en) Management system for memory data
JPH04229327A (en) Stack control system
JPH0563824B2 (en)
JPH056302A (en) Memory management system
JPH0713852A (en) Area management device
JPH05210548A (en) Program dynamic storing system
Miller et al. CMS Nucleus Extensions In a DCSS
JPS62257538A (en) Pool semaphore managing device
JPH0212339A (en) Table controller
JPH06230981A (en) Check point and restart controller