JPS6344258A - Managing method for auxiliary memory space in virtual memory control - Google Patents

Managing method for auxiliary memory space in virtual memory control

Info

Publication number
JPS6344258A
JPS6344258A JP61187316A JP18731686A JPS6344258A JP S6344258 A JPS6344258 A JP S6344258A JP 61187316 A JP61187316 A JP 61187316A JP 18731686 A JP18731686 A JP 18731686A JP S6344258 A JPS6344258 A JP S6344258A
Authority
JP
Japan
Prior art keywords
page
auxiliary storage
memory space
storage space
auxiliary memory
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
JP61187316A
Other languages
Japanese (ja)
Inventor
Tamaki Yamada
山田 環
Masatoshi Nakajima
正敏 中島
Wataru Ishida
亘 石田
Yoshihiro Nakayama
中山 義廣
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries Ltd
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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP61187316A priority Critical patent/JPS6344258A/en
Publication of JPS6344258A publication Critical patent/JPS6344258A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To increase processing speed in a computer of virtual memory control system, by using an auxiliary memory space copy managing table provided corresponding to an auxiliary memory space map. CONSTITUTION:The auxiliary memory space copy managing table E corresponds to all of the pages of the auxiliary memory space map C, and the page having the content of zero in the table E shows the nounse of the page of a corresponding auxiliary memory space. The page having the number of the content other than zero shows that the table of respective corresponding auxiliary memory space is referred at present by the program of the number. The content of each page of the auxiliary memory space copy managing table E is set at 1 when the page of corresponding auxiliary memory space can be obtained, and one is added at every copying of the page, and one is subtracted at every page-in, or every deletion of the page, and when a result shows 0, the page of the auxiliary memory space is designated as a vacant page.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、コンピュータの仮想メモリー制御が可能な
オペレーティングシステムにおける補助記憶空間の管理
方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for managing auxiliary storage space in an operating system capable of controlling virtual memory of a computer.

〔従来の技術〕[Conventional technology]

従来の上記のような補助記憶空間の管理方法においては
、仮想メモリー制御の下で動作するユーザープログラム
が、自分自身の動作状態及び環境をそっくりコピーし、
その後コピー元(親)のプログラムもコピー先(子供)
のプログラムもそれぞれ独立して動作するという機能(
一般にフォーク(fork)と呼ばれる)が働く。
In the conventional auxiliary storage space management method as described above, a user program running under virtual memory control copies its own operating state and environment exactly;
After that, the copy source (parent) program also becomes the copy destination (child).
The program also runs independently (
(commonly called a fork) works.

このようなフォーク機能を働かせる場合、主記憶空間に
ベージインされている環境は当然であるが、補助記憶空
間にページアウトされている環境についてもコピーして
おく必要があるため、機能遂行に要する時間が補助記憶
装置間の入力/出力時間に大きく左右される上、同一環
境の情報を補助記憶空間内に多重に割付けて持たなけれ
ばならないという欠点があった。特に、親プログラムの
ページアウトされている割合が高ければ高い程、JR能
遂行のための所要時間が長くなり、それだけプログラム
の処理速度が多大の影響を受けるという問題があった。
When using such a fork function, it is natural to copy the environment that has been paged in to the main memory space, but it is also necessary to copy the environment that has been paged out to the auxiliary memory space, which reduces the time required to perform the function. This method has disadvantages in that it is greatly affected by the input/output time between auxiliary storage devices, and information of the same environment must be allocated and stored multiple times in the auxiliary storage space. In particular, there is a problem in that the higher the percentage of parent programs that are paged out, the longer the time required to perform the JR functions, and the greater the effect on the processing speed of the program.

たとえば、第3図に示すような仮想メモリー制i■にお
けるページ管理システムにおいて、プログラム[(親〕
゛ログラム)が自身をコピーした後、親、コピープログ
ラム(子供プログラム)共それぞれ独立して走行すると
いう機能(以下、フォークシステムコールとする)の要
求が発せられると、自身のページ管理テーブル■を参照
して、ページインされているページとページアウトされ
ているページの各々について主記憶空間(マツプ■)と
補助記憶空間(マツプ◎)の空きページを獲得し、プロ
グラム■、すなわち子供プログラム用のページ管理テー
ブル■を作成する。その後、主記憶空間の情報について
、たとえばM+ 、Mzで示す情報2ペ一ジ分を、プロ
グラム■用に獲得したページ寛7、隘9にそれぞれコピ
ーする。
For example, in a page management system using a virtual memory system as shown in Figure 3, a program [(parent)
After a program (program) copies itself, when a request is issued for a function (hereinafter referred to as a fork system call) that allows both the parent and copy program (child program) to run independently, it copies its own page management table. By referring to it, it acquires free pages in the main memory space (Map■) and auxiliary memory space (Matsup◎) for each page being paged in and paged out. Create a page management table ■. Thereafter, regarding the information in the main memory space, for example, two pages of information indicated by M+ and Mz are copied to pages 7 and 9, respectively, which were acquired for the program (2).

一方、補助記憶空間(マツプ◎)にページアウトされて
いる情報についても、主記憶空間(マツプ■)同様に獲
得したページにコピーするが、この際、たとえば■1〜
■、で示す情報について一旦主記憶に入力した後目的の
補助記憶への出力しなければならないため、所要時間が
大幅に長くなってしまう。
On the other hand, the information paged out in the auxiliary storage space (Map ◎) is also copied to the acquired page in the same way as the main memory space (Map ■), but at this time, for example,
Since the information indicated by (2) must be first input into the main memory and then output to the intended auxiliary memory, the required time becomes significantly longer.

なお、図中符号INはページイン状態を示す、その後の
数字は主記憶空間に割付けられた絶対ページ番号を示す
、また、符号OUTはページアウト状態を示し、その後
の数字は補助記憶空間に割付けられた絶対ページ番号を
示す。
In addition, the code IN in the figure indicates the page-in state, the number after it indicates the absolute page number allocated to the main memory space, and the code OUT indicates the page-out state, and the number after it indicates the page number allocated to the auxiliary storage space. indicates the absolute page number assigned.

このように従来の仮想メモリー■制御におけるページ管
理システムは、動作中のユーザープログラム毎に、ペー
ジインされているページに対応する主記憶空間の割付は
情報及びページアウトされているページに対応する補助
記憶空間の割付は情報の他、主記憶、補助記憶雨空間の
ページ未使用情報から成り立っており、管理プログラム
から見れば、単に使用されているか否かしか判断するこ
とができず、その結果同一環境の情報をコピーしなけれ
ばならないという問題があった。
In this way, the conventional page management system for virtual memory control allocates main memory space for pages that are being paged in for each user program that is running, and uses auxiliary information for pages that are being paged out. Storage space allocation consists of information as well as page unused information in the main memory and auxiliary memory space, and from the management program's perspective, it is only possible to determine whether or not it is being used, and as a result, the same There was a problem that environment information had to be copied.

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

上記の問題点を解決するためになされたこの発明は、仮
想メモリー制御における補助記憶空間の管理方法におい
て、補助記憶空間マツプに対応して設けられた補助記憶
空間コピー管理テーブルを用いることを特徴とする。
The present invention, which was made to solve the above problems, is characterized in that, in a method for managing auxiliary storage space in virtual memory control, an auxiliary storage space copy management table provided corresponding to an auxiliary storage space map is used. do.

〔作用〕[Effect]

第3図の仮想メモリー制御Hにおけるテーブル管理シス
テムにおいて、補助記憶空間(マツプ◎)のV1〜V、
で示す情報は、プログラム■またはプログラム■がさら
に走行し、主記憶上で必要となった時(仮想記憶システ
ムにおけるページホールト現象が発生した時)、ページ
インされて始めて使われるものであるから、その間変更
されることもなく、従ってわざわざ多重に持っておく必
要はない。
In the table management system for virtual memory control H in FIG. 3, V1 to V of the auxiliary storage space (map ◎),
This is because the information indicated by is paged in and used only when the program ■ or program ■ continues to run and is needed in the main memory (when a page hold phenomenon occurs in the virtual memory system). , and will not be changed during that time, so there is no need to take the trouble of having multiple copies.

この発明の仮想メモリー制御における補助記憶空間の管
理方法は上記のような考えにもとすくもので、その原理
を第1図により説明すると、補助記憶空間コピー管理テ
ーブル■は、補助記憶空間マツプ◎の全ページ(0〜m
)に対応しており、このテーブル■の内容がOのページ
は、それぞれ対応する補助記憶空間のページの未使用を
示す。
The method of managing auxiliary storage space in virtual memory control of this invention is based on the above idea, and its principle is explained with reference to FIG. 1. The auxiliary storage space copy management table All pages (0~m
), and the pages whose contents are O in this table (■) indicate that the pages in the corresponding auxiliary storage space are unused.

内容が0以外の数のページは、それぞれ対応する補助記
憶空間のテーブルが現在その数のプログラムによって参
照されていることを示す、従って、この補助記憶空間管
理テーブルの各ページの内容を、■対応する補助記憶空
間のページを獲得した時1に設定する;■対応する補助
記憶空間のページがコピーされる毎に1を加える;■当
該ページをページインする毎、あるいはプログラムが終
了し、当該ページを抹消する毎に1を減じ、その結果0
になったら、その補助記憶空間のページを空きページと
する、という規則によって処理するようにしておくこと
により、無駄な入出力時間を排除することができ、かつ
ページの使用率の増加を抑えることができる。
A number of pages with content other than 0 indicates that the corresponding auxiliary storage space table is currently referenced by that number of programs. Therefore, the contents of each page of this auxiliary storage space management table are Set to 1 when a page in the auxiliary storage space to be used is acquired; ■ Add 1 each time a page in the corresponding auxiliary storage space is copied; ■ Each time the page is paged in, or when the program ends, the page is set to 1. Each time you delete , 1 is subtracted, resulting in 0
By making the page in the auxiliary storage space a free page when the page becomes empty, you can eliminate wasted input/output time and suppress the increase in page usage rate. Can be done.

〔実施例〕〔Example〕

以下、この発明の仮想メモリー制御における補助記憶空
間の管理方法の一実施例について第2図を参照しつつ説
明する。
An embodiment of the auxiliary storage space management method in virtual memory control of the present invention will be described below with reference to FIG.

図示実施例においては、プログラム■のページ管理テー
ブル■から明らかなように、5ページからなるプログラ
ム■が存在し、現在ll&lL2および磁5の2ページ
がページインされ、磁2、隘3および!l!l16の3
ページがページアウトされている。
In the illustrated embodiment, as is clear from the page management table ■ of the program ■, there is a program ■ consisting of five pages, and two pages ll&lL2 and magnetic 5 are currently paged in, magnetic 2, 龙3 and ! l! l16 no 3
The page is paged out.

今、プログラムIがフォークシステムコールを発し、自
身をコピーするとしたら、プログラム■、すなわち子供
プログラム用のページ管理テーブル■を作成するが、そ
の際、まず主記憶空きエリア管理テーブル[F]より空
きの主記憶空間を獲得し、プログラム■のページ管理テ
ーブルにそのページ番号を設定すると共に、ベージ隘2
および阻5に存在する親プログラム(プログラム■)の
情Il!M、およびM!を上記の如く獲得したページ患
7および魚9にそれぞれコピーする。この操作は主記憶
空間上だけのものであり、従来のシステムにおける補助
記憶空間のコピーに較べると圧倒的に速いため、特に考
慮する必要はない。
Now, if program I issues a fork system call and copies itself, it will create a page management table ■ for program ■, that is, a child program. Acquires the main memory space, sets the page number in the page management table of the program
And information about the parent program (program ■) that exists in 5! M, and M! are copied to pages 7 and 9 obtained as above, respectively. This operation is performed only on the main memory space and is much faster than copying the auxiliary memory space in conventional systems, so there is no need to take this into account.

次に、OUTで示すページアウト状態のページについて
は、親プログラムのページ管理テーブル■より子供プロ
グラムのページ管理テーブル◎へ補助記憶空間のページ
番号(患2、階3、(6)をそのまま設定すると共に、
これらの各ページに対応した補助記憶空間コピー管理テ
ーブル0のページの内容にそれぞれ1を加算する。
Next, for the page in the page-out state indicated by OUT, set the page number of the auxiliary storage space (patient 2, floor 3, (6) as is) from the parent program's page management table ■ to the child program's page management table ◎. With,
1 is added to the page contents of the auxiliary storage space copy management table 0 corresponding to each of these pages.

以上の操作によりフォークシステムコールのコピー処理
は終了する。上記のように、このページ管理システムに
おいては、従来のシステムに較べて、補助記憶装置に対
する入出力処理がないため、コンピュータの処理速度を
著しく高めることができると共に、補助記憶空間の使用
率を大幅に低減することができる。
The above operations complete the fork system call copy processing. As mentioned above, compared to conventional systems, this page management system does not require input/output processing to the auxiliary storage device, so it is possible to significantly increase computer processing speed and significantly reduce the usage rate of auxiliary storage space. can be reduced to

さらに、プログラムのその後の動作に応してページイン
が発生したならば、補助記憶空間の当該ページより人力
すると共に、補助記憶空間コピー管理テーブル■の当該
ページの内容を1だけ減算する。もし、この時点でその
ページの内容が0になったならば、補助記憶空間の当該
ページを始めて補助記憶空きエリア管理テーブルに戻す
Furthermore, if a page-in occurs in response to the subsequent operation of the program, the relevant page in the auxiliary storage space is manually input, and the content of the relevant page in the auxiliary storage space copy management table (2) is subtracted by 1. If the content of the page becomes 0 at this point, the page in the auxiliary storage space is returned to the auxiliary storage free area management table.

その後、ページアウト処理によりページアウトが発生し
、補助記憶空間へ出力しなければならない場合、もしそ
のページの内容が更新されておらず、かつ、以前にペー
ジインした際のページ番号に対応したコピー管理テーブ
ル0のページの内容が0以外で残っていれば、その内容
に1を加えると共に、使用していた主記憶空間側のペー
ジを主記憶空きエリア管理テーブル■に戻す。こうする
ことによってページ出力の時間を短縮することができる
。また、上記ページの内容が更新されたものであれば、
補助記憶空きエリア管理テーブル◎により補助記憶空間
に新たにページを獲得し、そのページへ出力する。その
際、補助記憶空間コピー管理テーブルの該当ページの内
容は1に設定される。
After that, if a page-out occurs due to page-out processing and must be output to auxiliary storage space, if the content of that page has not been updated and the page number corresponding to the previous page-in is copied. If the content of the page in management table 0 is other than 0 and remains, 1 is added to the content and the page in the main memory space that was being used is returned to the main memory free area management table (2). By doing this, the time for page output can be shortened. Also, if the content of the above page has been updated,
Acquire a new page in the auxiliary storage space using the auxiliary storage free area management table ◎ and output to that page. At this time, the contents of the corresponding page of the auxiliary storage space copy management table are set to 1.

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

この発明の補助記憶空間の管理方法によれば、仮想メモ
リー制御方式のコンピュータの処理速度を著しく改善す
ることができ、かつ補助記憶容量が小さくて済む。
According to the auxiliary storage space management method of the present invention, the processing speed of a virtual memory control computer can be significantly improved, and the auxiliary storage capacity can be reduced.

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

第1図はこの発明の仮想メモリー制?1Nにおける補助
記憶空間の管理方法の原理を説明するための模式図、第
2図はこの発明の一実施例を説明するための模式図、第
3図は従来のページ管理システムの一例を説明するため
の模式図である。 ■・・・・・・主記憶空間マツプ、■・・・・・・プロ
グラム1ページ管理テーブル、■・・・・・・補助記憶
空間マツプ、■・・・・・・プログラム■コピー管理テ
ーブル、[F]・・・・・・補助記憶空間コピー管理テ
ーブル。
Figure 1 shows the virtual memory system of this invention? FIG. 2 is a schematic diagram for explaining the principle of the auxiliary storage space management method in 1N, FIG. 2 is a schematic diagram for explaining an embodiment of the present invention, and FIG. 3 is an example of a conventional page management system. FIG. ■・・・Main memory space map, ■・・・Program 1 page management table, ■・・・Auxiliary storage space map, ■・・・Program ■Copy management table, [F]... Auxiliary storage space copy management table.

Claims (2)

【特許請求の範囲】[Claims] (1)補助記憶空間マップに対応して設けられた補助記
憶空間コピー管理テーブルを用いることを特徴とする仮
想メモリー制御における補助記憶空間の管理方法。
(1) A method for managing auxiliary storage space in virtual memory control, characterized by using an auxiliary storage space copy management table provided corresponding to an auxiliary storage space map.
(2)前記補助記憶空間コピー管理テーブルを、プログ
ラム自身をコピーさせ、以後そのコピーを独立のプログ
ラムとして実行させるという処理要求があったとき構成
し、これによって補助記憶空間に存在するプログラムを
コピーすることなく実行可能としたことを特徴とする特
許請求の範囲第1項記載の仮想メモリー制御における補
助記憶空間の管理方法。
(2) The auxiliary storage space copy management table is configured when there is a processing request to copy the program itself and subsequently execute the copy as an independent program, thereby copying the program existing in the auxiliary storage space. 2. A method for managing auxiliary storage space in virtual memory control according to claim 1, wherein the method is capable of executing the auxiliary storage space in virtual memory control.
JP61187316A 1986-08-08 1986-08-08 Managing method for auxiliary memory space in virtual memory control Pending JPS6344258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61187316A JPS6344258A (en) 1986-08-08 1986-08-08 Managing method for auxiliary memory space in virtual memory control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61187316A JPS6344258A (en) 1986-08-08 1986-08-08 Managing method for auxiliary memory space in virtual memory control

Publications (1)

Publication Number Publication Date
JPS6344258A true JPS6344258A (en) 1988-02-25

Family

ID=16203869

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61187316A Pending JPS6344258A (en) 1986-08-08 1986-08-08 Managing method for auxiliary memory space in virtual memory control

Country Status (1)

Country Link
JP (1) JPS6344258A (en)

Similar Documents

Publication Publication Date Title
EP0205945B1 (en) Process transparent multi storage mode data transfer and buffer control
US5317728A (en) Storage management of a first file system using a second file system containing surrogate files and catalog management information
US4812981A (en) Memory management system improving the efficiency of fork operations
EP0474395A2 (en) Data storage hierarchy with shared storage level
EP0294499B1 (en) Control scheme for segmented buffers based on a shared reference count
JPS6344258A (en) Managing method for auxiliary memory space in virtual memory control
JPS603229B2 (en) Information processing method
JPH06110759A (en) File system
JPH02156348A (en) Overflow area control method for plural hash tables
JPS6327936A (en) File management method
JPH0337748A (en) External storage accessing system utilizing main storage
JPH04350738A (en) Disk space management system
JPS6353650A (en) Computer
JPH02299037A (en) File allocation processing system
JPH0378843A (en) Program control system using extension memory
JPH02193231A (en) File space free area management system
JPS62241050A (en) Memory management system for computer system
Miller et al. CMS Nucleus Extensions In a DCSS
JPH01161452A (en) System for managing block sharing type file block
JPS60140448A (en) Storage hierarchy control system
JPH05151089A (en) System for data guarantee in memory space
JPS61264456A (en) Virtual storage system for garbage collection
JPS63149741A (en) Descriptor table control system
JPS60198661A (en) Input and output control system
JPH0388041A (en) Task switching system