JPH022175B2 - - Google Patents

Info

Publication number
JPH022175B2
JPH022175B2 JP59108024A JP10802484A JPH022175B2 JP H022175 B2 JPH022175 B2 JP H022175B2 JP 59108024 A JP59108024 A JP 59108024A JP 10802484 A JP10802484 A JP 10802484A JP H022175 B2 JPH022175 B2 JP H022175B2
Authority
JP
Japan
Prior art keywords
segment
page table
page
main memory
area
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 - Lifetime
Application number
JP59108024A
Other languages
Japanese (ja)
Other versions
JPS615359A (en
Inventor
Yoshihiko Murakawa
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59108024A priority Critical patent/JPS615359A/en
Publication of JPS615359A publication Critical patent/JPS615359A/en
Publication of JPH022175B2 publication Critical patent/JPH022175B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は仮想記憶方式におけるページテーブル
作成制御方式に係り、特に仮想記憶領域の空間を
創成するときにページテーブル用の仮想記憶領域
をリザーブしておき、実際に使用するときに主メ
モリ上の実ページを割付けるようにしたページテ
ーブル作成制御方式に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a page table creation control method in a virtual memory system, and in particular, a method for reserving a virtual storage area for a page table when creating a space for a virtual storage area. This invention relates to a page table creation control method that allocates real pages in main memory when actually used.

(従来の技術〕 データ処理装置ではメモリ空間を拡大するため
仮想記憶方式が使用されている。仮想記憶方式で
は、第3図に示す如く、仮想空間1を一定の大き
さのセグメントSG0,SG1…SGNに、それぞ
れのセグメントを一定の大きさのページPG0,
PG1…PGmに区分けし、実際に使用すべきデー
タの存在するページを主メモリ2上に格納し、こ
れにもとづきデータ処理を実行している。
(Prior Art) A data processing device uses a virtual memory method to expand memory space. In the virtual memory method, as shown in FIG. 3, the virtual space 1 is divided into segments SG0, SG1, etc. of a certain size. In SGN, each segment is a page of a certain size PG0,
The pages are divided into PG1...PGm, pages containing data to be actually used are stored in the main memory 2, and data processing is executed based on these pages.

したがつてデータ処理に必要なデータが主メモ
リ2のどこに格納されているのか格納先アドレス
を得るため、第4図に示す如く、セグメントテー
ブルSGTとページテーブルPGTを設け、セグメ
ントテーブルSGTには当該セグメントのページ
テーブルPGTの先頭アドレスを記入し、ページ
テーブルPGTにはそのセグメントの各ページの
格納先アドレスが記入されている。この場合、セ
グメントテーブルSGTはただ1つしか存在しな
いが、ページテーブルPGTは各セグメント毎に
作成される。したがつて、従来では主メモリ2上
にセグメント内のページを転送する際にページテ
ーブルPGTを作成し、セグメントテーブルのそ
のセグメントに有効ビツトを記入する。例えば、
第3図に示す如く、セグメント3内のページPG
3―xとセグメントN―1内のページPG(N−
1)−yが主メモリ2上に格納されるとき、セグ
メント3のページテーブルPGT3およびセグメ
ントN−1のページテーブルPGT−(N−1)を
これらの空き部分に作成し、各セグメントのペー
ジアドレスを格納している。そしてデータ処理の
進行に応じてそのページ単位に無効ビツトを記入
していた。
Therefore, in order to obtain the storage address of where in the main memory 2 the data necessary for data processing is stored, a segment table SGT and a page table PGT are provided as shown in FIG. Enter the start address of the segment's page table PGT, and the storage address of each page of the segment is entered in the page table PGT. In this case, only one segment table SGT exists, but a page table PGT is created for each segment. Therefore, conventionally, when a page in a segment is transferred to the main memory 2, a page table PGT is created and a valid bit is written in that segment in the segment table. for example,
As shown in Figure 3, page PG in segment 3
3-x and page PG (N-
1) When -y is stored in main memory 2, page table PGT3 of segment 3 and page table PGT-(N-1) of segment N-1 are created in these empty parts, and the page address of each segment is is stored. Then, invalid bits were written on a page-by-page basis as data processing progressed.

このような場合において新らしくセグメント2
内のページPG2−zに存在するデータを必要と
する場合、まずセグメント2に対するページテー
ブルPGT−2を作成することが必要である。こ
のとき、すでにページテーブルが作成ずみのセグ
メント内にこのページテーブルPGT−2を作成
可能な空き部分があれば問題ないが、このような
空き領域が存在しない場合には、このページテー
ブルPGT−2を作成するために必要な仮想空間
領域のセグメントに対するページテーブルを作成
することが必要となる。例えばセグメントnにこ
のページテーブルPGT−2を割当て、このため
にこのセグメントnのページテーブル用の領域の
割当ても必要となる。
In such cases, new segment 2
If data existing in page PG2-z in segment 2 is needed, it is first necessary to create page table PGT-2 for segment 2. At this time, there is no problem if there is a free space in which this page table PGT-2 can be created within the segment where the page table has already been created, but if such a free space does not exist, this page table PGT-2 It is necessary to create a page table for the segment of the virtual space area required to create the virtual space area. For example, this page table PGT-2 is allocated to segment n, and for this purpose it is also necessary to allocate an area for the page table of this segment n.

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

本発明が解決しようとする問題点は、前記の如
く、仮想記憶領域の主メモリ上に対する割付け処
理を行うときに必要なページテーブルを作成する
ために更に別の割付け処理を必要とするというリ
カージヨンとなり、処理を複雑にするということ
である。また、ある領域のページテーブルのアド
レスを求めるには、セグメントテーブルSGT中
のページテーブルの主メモリ上のアドレスを仮想
記憶上のアドレスに変換することが必要になると
いうことである。
The problem to be solved by the present invention, as described above, is the recursion that when performing allocation processing of a virtual storage area on main memory, another allocation processing is required to create a necessary page table. , which complicates the processing. Furthermore, in order to obtain the address of a page table in a certain area, it is necessary to convert the address in the main memory of the page table in the segment table SGT to an address in virtual memory.

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

前記の問題点を解決するため、本発明のページ
テーブル作成制御方式では、仮想空間を複数のセ
グメントに分割し各セグメントをページに分割す
るとともに、各セグメントに対するページテーブ
ルが主メモリ上に存在する位置を示すセグメント
テーブルと、各セグメント内のページ部分が主メ
モリ上に存在する位置を示すページテーブルを具
備する仮想記憶管理方式において、セグメントが
切換えられたことを検出するセグメント検出部
と、ページテーブルを作成するページテーブル作
成制御部を設けるとともに仮想空間上に各セグメ
ントのページテーブル領域をあらかじめ確保して
おき、セグメントが変つたときそれに対応するセ
グメントテーブルにすでに確保ずみの仮想空間上
のページテーブルに主メモリ上の領域を対応づけ
て、その主メモリ上のアドレスを記入するように
構成したことを特徴とする。
In order to solve the above problems, the page table creation control method of the present invention divides the virtual space into a plurality of segments, divides each segment into pages, and determines the location of the page table for each segment in main memory. In a virtual memory management method that includes a segment table that indicates the page portion of each segment and a page table that indicates the location of the page portion in each segment in main memory, a segment detection unit that detects that a segment has been switched and a page table that indicates the location of the page portion in each segment in the main memory. In addition to providing a page table creation control unit to create a page table, a page table area for each segment is reserved in advance in the virtual space, and when a segment changes, the page table area in the virtual space that has already been reserved is used as the main page table in the corresponding segment table. It is characterized by being configured so that areas on memory are associated with each other and addresses on the main memory are entered.

〔作用〕[Effect]

本発明によれば、仮想記憶領域の空間創成時に
各セグメントに対するページテーブルとして使用
されるすべての仮想空間領域を連続してリザーブ
しておくので、セグメントを主メモリに割当てる
ときそのセグメントに対応するページテーブルが
なければ仮想空間上の領域は既に前記連続リザー
ブにより獲得ずみのため、リザーブ領域をかんた
んに求めることができるのみならず、その求めた
領域に実ページを割付けることによりページテー
ブルとして使用することができる。したがつて従
来のようにリカージヨンになることはない。
According to the present invention, all virtual space areas used as page tables for each segment are continuously reserved when creating a virtual storage area, so when a segment is allocated to main memory, the pages corresponding to the segment are If there is no table, the area in the virtual space has already been acquired through the continuous reservation described above, so not only can the reserved area be easily determined, but it can also be used as a page table by allocating a real page to the determined area. be able to. Therefore, it does not become a recursion as in the past.

〔実施例〕〔Example〕

本発明の一実施例を第1図および第2図により
説明する。
An embodiment of the present invention will be described with reference to FIGS. 1 and 2.

第1図は本発明の一実施例構成図、第2図はペ
ージテーブル用にリザーブしたリザーブ領域説明
図である。
FIG. 1 is a configuration diagram of an embodiment of the present invention, and FIG. 2 is an explanatory diagram of a reserved area reserved for a page table.

まず、本発明の特徴的なページテーブル用にリ
ザーブしたリザーブ領域について第2図により説
明する。
First, the reserved area reserved for the page table, which is a characteristic feature of the present invention, will be explained with reference to FIG.

本発明では仮想記憶領域の空間を創成するとき
に、各セグメントのページテーブルとして使用さ
れるすべての仮想記憶領域を連続して事前にリザ
ーブしておく。例えば仮想記憶領域の空間のサイ
ズをXMBとし、1セグメントの大きさを1MBと
し、これに対するページテーブルとしてlバイト
(ハードとソフト使用の領域をあわせて)の領域
が必要の場合、全ページテーブルのリザーブ領域
は(X*l)バイト必要である。したがつてその
ページテーブルのリザーブ領域を各セグメント順
に割付けたとき、第2図に示す如きものとなる。
それ故、アドレスnの領域のページテーブルの低
アドレスPは、リザーブ領域の低アドレスをAと
すると、 P=A+(n/1MB)*l ……(1) で求めることができる。
In the present invention, when creating a virtual storage area space, all virtual storage areas used as page tables for each segment are continuously reserved in advance. For example, if the size of the virtual storage space is XMB, and the size of one segment is 1MB, and the page table for this requires 1 byte (hardware and software used area together), the entire page table The reserve area requires (X*l) bytes. Therefore, when the reserved area of the page table is allocated to each segment in order, the result will be as shown in FIG.
Therefore, the low address P of the page table in the area of address n can be obtained as follows, where A is the low address of the reserved area: P=A+(n/1MB)*l (1).

本発明の構成を第1図について説明する。 The configuration of the present invention will be explained with reference to FIG.

第1図において10はCPU、20は主メモリ、
30は外部記憶装置である。
In Figure 1, 10 is the CPU, 20 is the main memory,
30 is an external storage device.

CPU10には、ジヨブの遂行によりセグメン
トが切換つたことを検出するセグメント切換検出
部11、ページテーブルを作成するための各種制
御を行うページテーブル作成制御部12、主メモ
リ20内のページテーブルの位置および仮想記憶
領域内のページテーブルリザーブ位置(第2図の
A)が保持されるテーブル領域アドレス保持部1
3等が設けられている。
The CPU 10 includes a segment switching detection unit 11 that detects segment switching due to execution of a job, a page table creation control unit 12 that performs various controls for creating a page table, and a page table creation control unit 12 that performs various controls for creating a page table in the main memory 20. Table area address holding unit 1 that holds the page table reserve position (A in FIG. 2) in the virtual storage area
3rd class is provided.

主メモリ20には、ジヨブの遂行に必要なプロ
グラムが格納されるプログラム領域21やセグメ
ントテーブルやページテーブルが作成されている
テーブル領域22および、セグメントテーブルの
位置や、ページテーブルのサイズl等を保持する
テーブル23等が設けられている。
The main memory 20 stores a program area 21 in which programs necessary to execute a job are stored, a table area 22 in which segment tables and page tables are created, the position of the segment table, the size l of the page table, etc. A table 23 and the like are provided.

外部記憶装置30にはジヨブの遂行に必要な各
種プログラムやデータの外に、第2図に示すペー
ジテーブルのリザーブ領域が設けられる。
The external storage device 30 is provided with a reserved area for a page table shown in FIG. 2, in addition to various programs and data necessary to execute a job.

次に、本発明の動作について説明する。 Next, the operation of the present invention will be explained.

CPU10は主メモリ20に格納されているプ
ログラムにもとづきジヨブを遂行する。そしてジ
ヨブの遂行により他のセグメントにあるデータが
必要となつたとき、セグメント切換検出部11は
これを検出し、そのセグメントのページテーブル
が主メモリ20上に存在するか否かをページテー
ブル作成制御部12が検知する。
CPU 10 executes jobs based on programs stored in main memory 20. When data in another segment becomes necessary due to execution of a job, the segment switching detection unit 11 detects this and controls page table creation to determine whether a page table for that segment exists in the main memory 20. section 12 detects.

もし、そのセグメントのページテーブルが主メ
モリ20上に存在すれば必要とするデータを主メ
モリ20または外部記憶装置30からよみ出し、
データ処理を続行する。
If the page table for that segment exists on the main memory 20, the necessary data is read from the main memory 20 or the external storage device 30,
Continue data processing.

しかしそのセグメントのページテーブルが主メ
モリ20上に存在しない場合には、ページテーブ
ル作成制御部12は、前記必要とするデータのア
ドレスnにもとづき、前記(1)式の演算を行つてそ
のセグメント位置に応じたページテーブルのリザ
ーブ先を算出し、主メモリ20上にそのセグメン
トの新ページテーブルを作成するとともにセグメ
ントテーブルの当該セグメント項に前記新ページ
テーブルの先頭アドレスを記入する。このように
してリザーブ領域に実ページを割付けてページテ
ーブルを作成後、必要とするデータを外部記憶装
置30より読み出して、これにもとづきジヨブを
続行することになる。
However, if the page table for that segment does not exist on the main memory 20, the page table creation control unit 12 calculates the above equation (1) based on the address n of the required data to locate the segment. The page table reservation destination is calculated according to the page table, a new page table for that segment is created on the main memory 20, and the start address of the new page table is written in the segment entry of the segment table. After allocating real pages to the reserved area and creating a page table in this way, the necessary data is read from the external storage device 30 and the job is continued based on this.

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

本発明によればあらかじめ各セグメント毎のペ
ージテーブル領域を仮想記憶領域内にセグメント
順に連続的にリザーブしておくので、新らしくペ
ージテーブルを作成する場合にも仮想記憶領域内
にはその領域がリザーブされているので、従来の
ようなリカージヨンを避けることができる。しか
もそのリザーブ位置がセグメント順に連続して存
在するので、ページテーブルのアドレスも簡単に
求めることができ、これまたステツプ数を削減す
ることができる。
According to the present invention, the page table area for each segment is continuously reserved in advance in the virtual storage area in the order of the segments, so even when creating a new page table, that area is reserved in the virtual storage area. This allows the conventional recursion to be avoided. Furthermore, since the reserved positions exist consecutively in segment order, the address of the page table can be easily determined, and the number of steps can also be reduced.

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

第1図は本発明の一実施例構成図、第2図はペ
ージテーブル用にリザーブしたリザーブ領域説明
図、第3図は仮想空間と主メモリとの関係説明
図、第4図はセグメントテーブルとページテーブ
ルの関係説明図である。 図中、10はCPU、20は主メモリ、30は
外部記憶装置である。
Fig. 1 is a configuration diagram of an embodiment of the present invention, Fig. 2 is an explanatory diagram of a reserved area reserved for a page table, Fig. 3 is an explanatory diagram of the relationship between virtual space and main memory, and Fig. 4 is an illustration of a segment table. FIG. 3 is a relationship explanatory diagram of page tables. In the figure, 10 is a CPU, 20 is a main memory, and 30 is an external storage device.

Claims (1)

【特許請求の範囲】[Claims] 1 仮想空間を複数のセグメントに分割し各セグ
メントをページに分割するとともに、各セグメン
トに対するページテーブルが主メモリ上に存在す
る位置を示すセグメントテーブルと、各セグメン
ト内のページ部分が主メモリ上に存在する位置を
示すページテーブルを具備する仮想記憶管理方式
において、セグメントが切換えられたことを検出
するセグメント検出部と、ページテーブルを作成
するページテーブル作成制御部を設けるとともに
仮想空間上に各セグメントのページテーブル領域
をあらかじめ確保しておき、セグメントが変つた
ときそれに対応するセグメントテーブルにすでに
確保ずみの仮想空間上のページテーブルに主メモ
リ上の領域を対応づけて、その主メモリ上のアド
レスを記入するように構成したことを特徴とする
ページテーブル作成制御方式。
1 The virtual space is divided into multiple segments, each segment is divided into pages, and a segment table indicating the location in main memory where the page table for each segment exists, and the page part within each segment exists in main memory. In a virtual memory management system that includes a page table that indicates the location of a segment, a segment detection unit that detects when a segment has been switched and a page table creation control unit that creates a page table are provided. Allocate a table area in advance, and when a segment changes, associate the area in main memory with the page table in the virtual space that has already been allocated in the corresponding segment table, and write the address in main memory. A page table creation control method characterized by being configured as follows.
JP59108024A 1984-05-28 1984-05-28 Control system for production of page table Granted JPS615359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59108024A JPS615359A (en) 1984-05-28 1984-05-28 Control system for production of page table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59108024A JPS615359A (en) 1984-05-28 1984-05-28 Control system for production of page table

Publications (2)

Publication Number Publication Date
JPS615359A JPS615359A (en) 1986-01-11
JPH022175B2 true JPH022175B2 (en) 1990-01-17

Family

ID=14474032

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59108024A Granted JPS615359A (en) 1984-05-28 1984-05-28 Control system for production of page table

Country Status (1)

Country Link
JP (1) JPS615359A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0440299U (en) * 1990-08-02 1992-04-06

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0440299U (en) * 1990-08-02 1992-04-06

Also Published As

Publication number Publication date
JPS615359A (en) 1986-01-11

Similar Documents

Publication Publication Date Title
JPH0635732A (en) Area assigning method for storage device
JPS62100851A (en) Area control method for virtual memory device
JPS6367685B2 (en)
JPH022175B2 (en)
US5918243A (en) Computer mechanism for reducing DASD arm contention during parallel processing
JPS58164080A (en) System for managing and processing area
KR100315500B1 (en) Memory allocating method
US5761738A (en) Computer system which stores management or control information in different address space but same offset as corresponding data
JP2969776B2 (en) Data identification method
JPH04344549A (en) Page allocation method in computer system
JP2572032B2 (en) Area reservation method on direct access storage device
JPH026094B2 (en)
JPH02115958A (en) Data transfer control system
JPS6364146A (en) Logical space control system
JP2535584B2 (en) Real memory fixed processing computer
JPS6330946A (en) Paging system for multitask
JPH06141359A (en) Private automatic exchange
JPS6134632A (en) Instruction control system of virtual computer
JPH02257232A (en) Interruption processing program managing method
JPS63145553A (en) Memory control system with control mode
JPS60169945A (en) Stack control system
JPH0743664B2 (en) Shared storage area allocation processing method
JPH04275646A (en) File defining structure pool managing system
JPS62284443A (en) Blank area retrieving and controlling system
JPH0119183B2 (en)