JPS62131350A - Page control system for garbage collector - Google Patents
Page control system for garbage collectorInfo
- Publication number
- JPS62131350A JPS62131350A JP27268385A JP27268385A JPS62131350A JP S62131350 A JPS62131350 A JP S62131350A JP 27268385 A JP27268385 A JP 27268385A JP 27268385 A JP27268385 A JP 27268385A JP S62131350 A JPS62131350 A JP S62131350A
- Authority
- JP
- Japan
- Prior art keywords
- page
- copy
- page table
- garbage collection
- memory space
- 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
Links
Abstract
Description
【発明の詳細な説明】
〔概快〕
本発明はガーベジコレクシwx7を行う情報処理システ
ムにおいて、該ガーベジコレクシ冒ンの実行中と実行後
にアクセスしないページをページアウトし、不要なペー
ジを無効にするベージング制御を行なうことくより、ペ
ージング回数を削減して高速処理を行なうガーベジコレ
クタである。[Detailed Description of the Invention] [Overview] The present invention provides an information processing system that performs garbage collection wx7, and pages that are not accessed during and after the garbage collection is executed, and invalidates unnecessary pages. This is a garbage collector that reduces the number of paging operations and performs high-speed processing without performing paging control.
従来、情報処理システム忙おいては、ベージング制御と
ガーベジコレクタの機能とは有機的な結合がなく、夫々
独立に動作していた。Conventionally, in busy information processing systems, the functions of paging control and garbage collector have not been organically coupled and have operated independently.
通常コピー型ガーベジコレクシ冒/では2間(メモリ)
を2等分して、一方の空間から他方の空間へ適宜有効な
データをプピーしてプログラムを実行する。該ガーベジ
コレクシWノ後には、コピー元の空間は有効でなく、再
びリード(READ)されることがないのにもかかわら
ず、ページアウトしディスク等の外部記憶に格納される
。またガーベジコレクシ!I/中には一方の空間から他
方の空1417へ有効なデータがコピーされるがコピー
先の空間ではコピーされたデータはガーベジコレクシ璽
ンが終了するまでアクセスされることはない。この様に
ガーベジコレクシ習ン中では、コピー先の空間のページ
はコピ〜が終了したならば実記憶上に存在する必要はな
い。このコピー先のページが実記憶上にあること、ワ
により、他のページか7冑ツブアウトされページングの
オーバヘットが多くなる。ガーベジコレクシw/Mtで
は同様にコピー元の空間のページが実記憶上に存在する
ことkより必要なデータを格納したページをロードする
ため忙余分なページングを行なわなければならない。Normal copy type garbage collector attack/2 minutes (memory)
The program is executed by dividing the space into two equal parts, transferring valid data from one space to the other space as appropriate. After the garbage collection W, the copy source space is no longer valid and is not read again (READ), but it is paged out and stored in an external storage such as a disk. Garbage collection again! During I/, valid data is copied from one space to the other space 1417, but the copied data is not accessed in the copy destination space until garbage collection is completed. In this way, during garbage collection training, the page in the copy destination space does not need to exist in real memory once the copying is completed. Since this copy destination page is on real memory, other pages will be deleted, resulting in a large amount of paging overhead. Similarly, in the garbage collection w/Mt, since the page of the copy source space exists on the real memory, extra paging must be performed to load the page storing the necessary data.
またガーベジコレクシ1ンでは、全空間をランダムにア
クセスするので前記オーバヘットは町成りなものになる
という欠点があった。In addition, the garbage collection system has the disadvantage that the overhead is considerable because the entire space is accessed at random.
本発明は前記欠点に!みて創案されたもので、ページン
グ回数を削減して高速処理を可能とすることを目的とす
る。The present invention addresses the above drawbacks! The purpose was to reduce the number of paging operations and enable high-speed processing.
該目的は、コピー型ガーベジコレクタを有するH滓処理
システムにおいて、CPU1でガーベジコレクタ15に
よりガーベジコレクシ、7実行中に、一方の77!間か
ら他方の空間建有効なデータを:l ヒ−’F 該コピ
ーによりコピー先のページカ一杯になったかどうかチェ
ックするページクロスチェ噌り部6と、該ページクロス
チェック部6から該ページが一杯になった旨の信号を受
信したとき該ページをページアウトの対象とするととも
に、該ガーベジコレクシ1ン終了時にコピー元となった
9間を無効化するページテーブル創製手段を設けたこと
を特徴とするガーベジコレクタのページ制御方式により
達成される。The purpose is to perform garbage collection by the garbage collector 15 in the CPU 1 in an H slag processing system having a copy type garbage collector. The page cross-check unit 6 checks whether the destination page is full due to the copy, and the page cross-check unit 6 checks whether the page is full. The present invention is characterized by providing a page table creation means for setting the page as a page out target when receiving a signal indicating that the page has become a page out, and invalidating the page 9 that was the copy source when the garbage collection ends. This is achieved through the garbage collector's page control scheme.
本発明はコピー型ガーベジコレクタのアクセス傾向を考
Jして、適切にページアウト及びページの無効化を行な
う手段を設けてページング回数を削減する方式である。The present invention is a system that takes into account the access tendency of a copy type garbage collector and provides means for appropriately performing page out and page invalidation to reduce the number of paging times.
コピー型ガーベジコレクタはメモリ空間を2等分して使
用していた空間から未使用の空間へ有効なデータをコピ
ーすることにより無効データの回収とVi域の圧縮を行
なうものガーベジコレクシ1ン中では、未使用の空1!
IK有効ナテータをコピーし、コピー後は該コピーされ
たデータはガーベジコレクシW/が終了し、再び使用さ
れるまでアクセスされない。従ってコピー先である未使
用空間のページに有効なデータがコピーされたならば、
該ページをページアウト(外部記憶へ出力)することに
より実記憶を有効に利用することができる。またガーベ
ジコレクシWノ終了後は、使用空間は有効なデータは全
てコピーページアウト回数の削減等によりページング制
御の効率向上を目指す方式である。A copy type garbage collector collects invalid data and compresses the Vi area by dividing the memory space into two and copying valid data from the used space to the unused space. , unused sky 1!
The IK valid natator is copied, and after copying, the copied data is not accessed until garbage collection W/ is completed and it is used again. Therefore, if valid data is copied to the page in the unused space that is the copy destination,
By paging out the page (outputting it to external storage), the real storage can be used effectively. Furthermore, after the garbage collection W is completed, all valid data is copied from the used space.This method aims to improve the efficiency of paging control by reducing the number of pageouts.
以下図面を参照しつつ本発明の詳細な説明する。 The present invention will be described in detail below with reference to the drawings.
第1図は本発明の一実施を示すシステム構成図である。FIG. 1 is a system configuration diagram showing one implementation of the present invention.
図において、lはCPU (中央処理装置)、2はGC
7ラグ、3はメモリ空間レジスタ、4はアドレスレジス
タ、5はデータレジスタ、6はぺ一ジクoスデx9り部
、7はMS C(Main Stor−age Con
trollerλ、8はページテーブル制脚部、9はペ
ージ無効部、lOはページテーブル、11はLRU、1
2はMS (Main Storage+ 、l 3は
チャネル、14はディスク、15はガーベジコレクタで
ある〇
第2図は本発明の一実施例を示すページテーブルの詳細
を示す図である。In the figure, l is CPU (central processing unit), 2 is GC
7 lag, 3 is memory space register, 4 is address register, 5 is data register, 6 is page loader, 7 is MSC (Main Storage Container)
trollerλ, 8 is a page table restraining leg, 9 is a page invalidation part, IO is a page table, 11 is LRU, 1
2 is an MS (Main Storage+), l3 is a channel, 14 is a disk, and 15 is a garbage collector. FIG. 2 is a diagram showing details of a page table showing an embodiment of the present invention.
図において、21はページ番号、22は物理アドレス、
23はページアウト状−である、中央処理装置lはガー
ベジコレクタ15が起動されるとGCフラグ2(ガーベ
ジコレクシ曹/中である時はフラグがオンになっており
該状態をページクロスデエ雫り部6に送信する)をオン
圧しガーベジコレクシ1ンが終了するとMGCフラグ2
をオフにする。また該中央処理装#tはメモリ空間レジ
スタ3に2等分割された各メモリ空間の開始アドレス、
終了アドレスのデータを送信する。更に該中央処理装置
lはアドレスレジスタ4I/cメ% IJアクセスのた
めの論理アドレスを送信し、データレジスタ5とデータ
の送受信を行fcう。該メモlI”1間レジスタ3は中
央処理装置t71からのデータを受信し、2等分割され
たメモリ空間の開始アドレス、終了アドレスを格納する
ととも忙該データなページクロスチェック部6とページ
無効部9に出力する。ページクロスチェック部6はGC
フラグ2を参照してガーベジコレクシ璽ン中(GCフラ
グがオン状態)でありメモリ空間レジスタ3をか照して
メモリアクセスが有効なデータを未使用なメモリ空間ヘ
コビーするときくいページ境界を越えたかどうかをチェ
ックしている。もし越えた場合はページテーブル制御部
8忙越えた旨のチェック信号を送信する。In the figure, 21 is a page number, 22 is a physical address,
23 indicates a page-out condition. When the garbage collector 15 is activated, the central processing unit 1 sets the GC flag 2 (garbage collector/when the garbage collector is in progress, the flag is on, and the page cross-out condition is detected. When garbage collection 1 is completed, the MGC flag 2 is turned on.
Turn off. The central processing unit #t also includes the start address of each memory space divided into two equal parts in the memory space register 3;
Send end address data. Further, the central processing unit 1 transmits a logical address for IJ access to the address register 4I/c, and performs data transmission/reception with the data register 5fc. The memory register 3 receives data from the central processing unit t71, stores the start address and end address of the memory space divided into two parts, and also processes the page cross check unit 6 and page invalidation unit. 9. The page cross check section 6 outputs to GC.
Referring to flag 2, garbage collection is in progress (the GC flag is on), and memory access is performed by referring to memory space register 3. When attempting to retrieve valid data into an unused memory space, a page boundary is crossed. I'm checking what's going on. If the number is exceeded, the page table control unit 8 sends a check signal to the effect that the number has been exceeded.
また、MS C(Main Storage Cont
roller)7はアドレスレジスタ4からの論理アド
レスをページテーブル制1111部8を側副してページ
テーブル10(第2図参照)の物理アドレス22を参照
して所望の物理アドレスをイひるとともに、該物理アド
レスに基づ?jMS 12をアクセスしデータの授受を
したり、チャネル13に指示してディスク14(ユーザ
フチイルとページファイルを(6納している。)にある
ページをMS12にロードした由
り、 lltMs + 2のページをチャネル13経出
1でディスク141′I:格納する。In addition, MSC (Main Storage Cont
The logical address from the address register 4 is used by the page table system 1111 unit 8 to refer to the physical address 22 of the page table 10 (see FIG. 2), and the logical address is input to the desired physical address. Based on physical address? By accessing jMS 12 and sending and receiving data, and by instructing channel 13 to load pages on disk 14 (containing user files and page files (6)) to MS 12, pages of lltMs + 2 is stored on the disk 141'I: on channel 13 exit 1.
ページテーブルl!ll1tIJJ部8はMSC7から
の指示に基づきページテーブル10をアクセスし%該ベ
ージテーブルlOの内容をMSC7&C出力すると同時
KLRU (Leayt Recentyy Used
l l 1の更新を行なう。Page table! The IJJ section 8 accesses the page table 10 based on the instruction from the MSC 7 and outputs the contents of the page table IO to the MSC 7&C.
Update l l 1.
また、ページクロスチェックP6からのチェ呼り信号に
基づき該ページテーブル制机部はコピー先のページをペ
ージアウトするようにページテーブル、LRU 11
(Least Recently Used であり
、ページテーブルに対応している。)の内容ヲ変更し、
MSC7にページアウトするように指示する。更に%該
ページテーブル制御部8はページ無効部9からの指示情
報に基づき、ガーベジコレクシ萱ンで無効データで満さ
れるメモリ空間を無効にするようにページテーブルIO
,!−LRU11の内容を費更する。該ページ無効部は
、GCフラグ2とメモリ空間レジスタ3を参照してガー
ベジコレクン1ン終了時に、コピー元のメモリ空間のア
ドレスを用いて%無効化するページを該ページテーブル
制(資)部8に指示するものである。In addition, based on the check call signal from the page cross check P6, the page table control unit sends the page table LRU 11 so as to page out the copy destination page.
(It is Least Recently Used and corresponds to the page table.) Change the contents,
Instructs MSC7 to page out. Furthermore, the page table control unit 8 controls the page table IO so that the memory space filled with invalid data is invalidated by garbage collection based on the instruction information from the page invalidation unit 9.
,! - Modify the contents of LRU11. The page invalidation unit refers to the GC flag 2 and the memory space register 3, and uses the address of the copy source memory space to determine the page to be invalidated by the page table system when garbage collection 1 is completed. 8.
以上述べた通り、末完明忙よれば、不必要なページの無
効化と、アクセスされないページの二次上と、余分なペ
ージイン、ページアウトが省略できるので処理の高速化
が図れる。As described above, with end-of-life access, processing can be sped up because invalidation of unnecessary pages, secondary copying of pages that are not accessed, and unnecessary page-ins and page-outs can be omitted.
ta1図は本発明の一実施を示すシステム構成図である
。
第2図は本発明の一実施例を示すページテーブルの詳細
を示す図である。
記号の説明、1はCPU (中央処理装置)、2はGC
7ラグ、3はメモリ空間レジスタ、4はアドレスレジス
タ、5はデルタレジスタ、6はページクロスチェ1り部
、7はM S C(Maln 5tor −age C
ontroller)、8はページテーブル制副部、9
はページ無効部、lOはページテーブル、11はLRU
%12はMS (Main Storage+、13は
チャネル、14はディスク、15はガーベジコレクタFigure ta1 is a system configuration diagram showing one implementation of the present invention. FIG. 2 is a diagram showing details of a page table showing an embodiment of the present invention. Explanation of symbols, 1 is CPU (Central Processing Unit), 2 is GC
7 lags, 3 is memory space registers, 4 is address registers, 5 is delta registers, 6 is page crosscheck 1 part, 7 is MSC (Maln 5tor-age C
ontroller), 8 is a page table subsection, 9
is the page invalid part, lO is the page table, and 11 is the LRU
%12 is MS (Main Storage+, 13 is channel, 14 is disk, 15 is garbage collector
Claims (1)
おいて、コピーされたデータによりコピー先のページが
一杯になったかどうかチェックするページクロスチェッ
ク手段と、該ページクロスチェック手段から該ページが
一杯になった旨のチェック信号を受信したとき該ページ
をページアウトの対象とするとともにガーベジコレクシ
ョン終了時にコピー元となった空間を無効化するページ
テーブル制御手段を設けたことを特徴とするガーベジコ
レクタのページ制御方式。In an information processing system equipped with a copy type garbage collector, there is provided a page cross check means for checking whether a copy destination page is full with copied data, and a page cross check means for checking whether the page is full. A page control method for a garbage collector, characterized in that a page table control means is provided for setting a page as a page-out target when a check signal is received and invalidating a copy source space at the end of garbage collection.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27268385A JPS62131350A (en) | 1985-12-04 | 1985-12-04 | Page control system for garbage collector |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP27268385A JPS62131350A (en) | 1985-12-04 | 1985-12-04 | Page control system for garbage collector |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS62131350A true JPS62131350A (en) | 1987-06-13 |
Family
ID=17517339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP27268385A Pending JPS62131350A (en) | 1985-12-04 | 1985-12-04 | Page control system for garbage collector |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS62131350A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9329788B2 (en) * | 2013-07-02 | 2016-05-03 | Hitachi, Ltd. | Computer system and method for allocating and recovering virtual volumes |
-
1985
- 1985-12-04 JP JP27268385A patent/JPS62131350A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9329788B2 (en) * | 2013-07-02 | 2016-05-03 | Hitachi, Ltd. | Computer system and method for allocating and recovering virtual volumes |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5185694A (en) | Data processing system utilizes block move instruction for burst transferring blocks of data entries where width of data blocks varies | |
US6622214B1 (en) | System and method for maintaining memory coherency in a computer system having multiple system buses | |
US6049847A (en) | System and method for maintaining memory coherency in a computer system having multiple system buses | |
CA1124888A (en) | Integrated multilevel storage hierarchy for a data processing system with improved channel to memory write capability | |
JPS58212694A (en) | Memory system | |
JPH0997214A (en) | Information-processing system inclusive of address conversion for auxiliary processor | |
JPH04242848A (en) | System for controlling cache memory by running mode | |
JPH0748190B2 (en) | Microprocessor with cache memory | |
CA1143850A (en) | Method and apparatus to execute data transfer between computing devices | |
US5954812A (en) | Apparatus for caching system management memory in a computer having a system management mode employing address translation | |
EP0428149A2 (en) | Cache controller | |
JPH04336641A (en) | Data cache and method for use in processing system | |
JPS62131350A (en) | Page control system for garbage collector | |
US5895486A (en) | Method and system for selectively invalidating cache lines during multiple word store operations for memory coherence | |
JPH0830568A (en) | Cache control system for distributed memory type parallel computer | |
JPH0715667B2 (en) | Data processing device | |
JPH0630074B2 (en) | Processor | |
JPH08305634A (en) | Information processing method and device therefor | |
JP2923273B2 (en) | Data processing system | |
JPH0724043B2 (en) | Data processing device | |
JPH057740B2 (en) | ||
JPH01309153A (en) | Information processor | |
JPH0521256B2 (en) | ||
JPS63173146A (en) | Cache memory control system | |
JPH04133145A (en) | Invalidation processor and invalidation control method for cache memory |