JPS6034142B2 - Working set management method - Google Patents

Working set management method

Info

Publication number
JPS6034142B2
JPS6034142B2 JP56055885A JP5588581A JPS6034142B2 JP S6034142 B2 JPS6034142 B2 JP S6034142B2 JP 56055885 A JP56055885 A JP 56055885A JP 5588581 A JP5588581 A JP 5588581A JP S6034142 B2 JPS6034142 B2 JP S6034142B2
Authority
JP
Japan
Prior art keywords
working set
frame
review
page
cycle
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
Application number
JP56055885A
Other languages
Japanese (ja)
Other versions
JPS57169987A (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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP56055885A priority Critical patent/JPS6034142B2/en
Publication of JPS57169987A publication Critical patent/JPS57169987A/en
Publication of JPS6034142B2 publication Critical patent/JPS6034142B2/en
Expired legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 本発明は、マルチプログラミングで動作する仮想記憶方
式の情報処理システムにおけるワーキングセットの管理
方式の改良に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an improvement in a working set management method in a virtual memory type information processing system that operates with multiprogramming.

マルチプログラミングで動作する仮想記憶方式の情報処
理システムにおいては、主記憶上の各プログラムに対し
て、いかに主記憶ページを割当てるかが問題となる。各
プログラムに割当てるべき主記憶ページ数を決定するた
めの方式として、あるプログラムで、一定時間内(これ
は、ウィンドサイズと呼ばれる)に参照したページは、
そのプログラムのために確保しておく、といういわゆる
ワーキングセット方式が知られている。
In a virtual memory type information processing system that operates with multiprogramming, the problem is how to allocate main memory pages to each program on the main memory. As a method for determining the number of main memory pages to be allocated to each program, the number of pages referenced by a certain program within a certain period of time (this is called the window size) is
A so-called working set method is known in which a set is reserved for the program.

(以下WS方式とよぶ)。WS方式を正確に実現しよう
とすると、主記憶上のページが参照されるたびに、その
参照された時刻を最後に参照された時刻として記録して
おくとともに主記憶上のページで、前記ウィンドサイズ
以前の時刻が言己録されているページを探し、これをワ
ーキングセットから外し、空きページとして登録すると
いう処理を行う必要があり、厳密なWS管理は、管理オ
ーバヘッドの点で非現実的であり、実際には、次のよう
にして実現される。即ち、主記憶上の各ページに対する
アクセスの行われ方を管理するために、各ページに対応
した使用ビットおよび使用カウンタが用意される。使用
ビットは、対応するページに対して、主記憶アクセスが
行われた時点でセットされる。一定のWS見直し契機毎
に、WS見直し管理が起動され、主記憶上の全ページに
ついて、前記使用ビットを調べ、これがオンの場合、即
ち、対応するページに対して参照があった場合には、使
用カウンタがリセットされる。使用ビットがオフの場合
には、即ち、対応するページに対してアクセスが行われ
なかった場合には、使用カウント値がカウントアップさ
れる。使用カウント値が、ある値nよりも大きくなった
場合には即ちn周期の間参照されず、ウィンドサイズか
ら外れた場合には、このページは、これまで接続されて
いたワーキングセット枠から外し、不要ページとして、
空きべ−ージプールに登録される。プログラムの実行中
に、ページフオルトが発生した場合には、空きページプ
ールからページがとられ、これがプログラムに与えられ
ることになる。
(hereinafter referred to as the WS method). In order to accurately implement the WS method, each time a page in main memory is referenced, the referenced time is recorded as the last referenced time, and the window size is It is necessary to search for a page with a previous time recorded, remove it from the working set, and register it as a free page, making strict WS management impractical in terms of management overhead. , is actually realized as follows. That is, in order to manage how each page on the main memory is accessed, usage bits and usage counters corresponding to each page are prepared. The used bit is set when the corresponding page is accessed to the main memory. WS review management is started every time a certain WS review is triggered, checks the used bit for all pages on the main memory, and if this bit is on, that is, if there is a reference to the corresponding page, Usage counters are reset. When the usage bit is off, that is, when the corresponding page is not accessed, the usage count value is incremented. If the usage count value becomes larger than a certain value n, that is, if it is not referenced for n cycles and falls outside the window size, this page is removed from the working set frame to which it has been connected. As an unnecessary page,
Registered in the free page pool. If a page fault occurs during program execution, a page is taken from the free page pool and given to the program.

即ちプログラムに対応するワーキングセット枠に接続さ
れる。この方式により、各プログラムに割当てられるペ
ージ数はそのプログラムの動作状況により、必要に応じ
て、縮少、拡大されるので固定的にプログラムにページ
を与える場合に比べて、主記憶を有効に使うことが可能
である。
That is, it is connected to the working set frame corresponding to the program. With this method, the number of pages allocated to each program is reduced or expanded as necessary depending on the operating status of that program, so main memory is used more effectively than when pages are fixedly assigned to a program. Is possible.

ここで、WS見直しの周期を短か〈とることにより、本
来のワ−キングセット管理に近づきウィンドサイズから
外れたページを直ちに識別でき空きページのプールに返
却できるため、主記憶の使用効率が向上することになる
By shortening the WS review cycle, it approaches the original working set management, and pages that have fallen outside the window size can be immediately identified and returned to the free page pool, improving main memory usage efficiency. I will do it.

一方、WS見直しの周期を短くすると、見直しの処理の
オーバヘッドが増大し、このため、情報処理装置のスル
ープットが低下することになり、ワーキングセット見直
しの周期を適切に設定することが重要な問題となる。ま
たプログラムにより、短かし、周期でワーキングセット
の見直しを行った方がよいものと、長い周期で行っても
主記憶の使用効率が低下しないものがあり、このような
プログラムに対しては長い見直し周期を設定することに
より、主記憶の使用効率を低下させることなく、ワーキ
ングセット見直しのオーバヘッドを減少することができ
る。一方、ワーキングセットのウインドサイズについて
も、各プログラムにより、必ずしも同一でなく、各プロ
グラムに適したウィンドサイズを指定しうるようになっ
ていることが、主記憶の有効利用、情報処理装置のスル
ープットの向上という点から効果が大きい。従来は、各
プログラム毎に、−ワーキングセットの見直しの周期を
制御する手段がなく、またウィンドサイズを制御する手
段としては、使用カウントの最大値を設定する方法が知
られているがこの方法においては、ウィンドサイズを大
きくするとプログラムの不要部分がワーキングセットか
ら外れるまでに行われる。
On the other hand, if the WS review cycle is shortened, the overhead of the review process will increase, which will reduce the throughput of the information processing equipment, so it is an important issue to appropriately set the working set review cycle. Become. Also, depending on the program, it is better to review the working set at short intervals, and there are some programs where it is better to review the working set at short intervals, and there are other programs where it is better to review the working set at long intervals without reducing the main memory usage efficiency. By setting the review period, it is possible to reduce the overhead of reviewing the working set without reducing the usage efficiency of the main memory. On the other hand, the working set window size is not necessarily the same for each program, but it is possible to specify a window size suitable for each program, which improves the effective use of main memory and the throughput of information processing equipment. The effect is significant in terms of improvement. Conventionally, there was no means to control the cycle of reviewing the working set for each program, and a known method for controlling the window size was to set the maximum value of the usage count, but this method This is done until the unnecessary parts of the program are removed from the working set when the window size is increased.

ワーキングセット見直しの回数が多くなり、このための
オーバヘッドが大きくなり、ウィンドサイズを制御する
効果が減じられるという欠点があった。本発明は、各ワ
ーキングセット枠毎に、ワーキングセット見直しの周期
、およびワーキングセット見直しの更新中を指定できる
ようにし、この指定に従って、ワーキングセット見直し
を行うことを可能にしたものであり、本発明により、各
ワ−キングセット枠毎に、適切な、ウィンドサイズを指
定できるとともに、適切な、ワーキングセット見直しの
周期も設定できる。
This method has the disadvantage that the number of times the working set is reviewed increases, the overhead for this increases, and the effect of controlling the window size is reduced. The present invention makes it possible to specify the working set review period and the updating of the working set review for each working set frame, and to perform the working set review according to this designation. Accordingly, an appropriate window size can be specified for each working set frame, and an appropriate working set review cycle can also be set.

これにより、ワーキングセット見直しのオーバヘッドを
小さくでき、かつ、主記憶の使用効率を高くできること
になる。従って、本発明の第1の目的は、主記憶の使用
効率の高いワーキングセット管理方式を実現することに
あり、第2の目的は、ワーキングセット管理方式におけ
る管理オーバヘッドを減少させることにある。
As a result, the overhead of reviewing the working set can be reduced, and the main memory usage efficiency can be increased. Therefore, the first object of the present invention is to realize a working set management method that uses main memory with high efficiency, and the second object is to reduce the management overhead in the working set management method.

次に、本発明の」実施例を説明するがこれに先立ち従来
行われているワーキングセット管理方式の実現例の概要
を第1図により説明する。
Next, an embodiment of the present invention will be described. Prior to this, an outline of an implementation example of a conventional working set management method will be explained with reference to FIG.

ワーキングセット(以下WSと略す)管理の実現のため
に次の各テーブルが用意される。
The following tables are prepared to realize working set (hereinafter abbreviated as WS) management.

WS枠制御ブロツクー(以下、WSCBと略す)は、各
WS管理の単位であるWS枠に属するべ−ジを管理する
ためのテーブルで、各WS枠毎に、ここでは各プログラ
ムを単位として、WSが管理されるとしているので、各
プログラム毎にェントリiをもち、ェントリiにはその
WS枠に属する。
The WS frame control block (hereinafter abbreviated as WSCB) is a table for managing pages belonging to a WS frame, which is a unit of each WS management. Since it is assumed that the program is managed, each program has an entry i, and entry i belongs to that WS frame.

ページ数PNi、そのWS枠に許されるページ数の最大
値MXi、最づ・値MNi、そのWS枠に属するページ
リストへのポインタPTRiが用意される。プール枠制
御ブロック2(以下プールCBと略す)は、どのWS枠
にも属さない、未使用べ−ジを管理するためのテーブル
で、未使用ページ数PPNおよび未使用ページリストへ
のポィン夕PPTRをもつ。
The number of pages PNi, the maximum number of pages allowed for the WS frame MXi, the first value MNi, and a pointer PTRi to the page list belonging to the WS frame are prepared. Pool frame control block 2 (hereinafter abbreviated as pool CB) is a table for managing unused pages that do not belong to any WS frame, and contains the number of unused pages PPN and the pointer PPTR to the unused page list. have.

メモリマップ3は、主記憶上の実ページを管理するため
のテーブルで各ページ毎にェントリをもて〕。
The memory map 3 is a table for managing real pages on the main memory and has an entry for each page.

各ェントリには、ポインタ部と使用状況情報部があり、
ポィンタ部により、実ページは、いずれかのWS枠、あ
るいはプール枠に属するページリストを構成している。
Each entry has a pointer section and a usage information section.
According to the pointer section, real pages constitute a page list belonging to any WS frame or pool frame.

使用状況情報としては、使用ビットUBおよび使用カウ
ントUCが用意される。使用ビットUBは、ページへの
参照があった時点で例えば“1”にセットされ、使用カ
ウントUCは、後に示すようにWS見直しに更新される
As the usage information, usage bits UB and usage counts UC are prepared. The usage bit UB is set to "1", for example, when a page is referenced, and the usage count UC is updated when the WS is reviewed as shown later.

また、WSから外すべき周期閥値(ウィンドサイズ)を
保持する閥値しジスタ4が用意される。また前記閥値レ
ジスタ4の値と使用カウントUCの値とを比較するため
の比較回路が設けられる。一定時間毎に起動されるWS
見直しタイマ割込みにより、各WS枠について、次の動
作が行われる。
Further, a threshold value register 4 is prepared that holds the periodic threshold value (window size) to be removed from the WS. Further, a comparison circuit is provided for comparing the value of the limit value register 4 and the value of the usage count UC. WS that starts at regular intervals
The review timer interrupt causes the following operation to be performed for each WS frame.

即ち、WSCBIのポインタPTRiにより、メモリマ
ップ3を順次たどりながら対応するメモリマップのヱン
トリを読出し参照ビットをチェックし、これが“1”の
場合、即ち、参照があった場合には、参照ビットを“0
”クリアするとともに、使用カウントをクリアする。参
照ビットが“0”の場合には、使用カウントをカウント
アップする。この更新の結果と、閥値しジスタ4の値n
を比較回路5により比較し、使用カウントの値がnにな
った場合にはこのページはワーキングセットから外れた
ものとして、このWS枠のべ−ジリストから外され、プ
ール枠につながれる。(但し、既にそのWS枠のページ
数がMNi以下の場合には、プールへの返却は行われな
い。)このような操作を行うことによりWS見直しのn
周期の間参照されなかったページは、そのWS枠から外
され、プール枠に返却されることになる。
That is, by sequentially tracing the memory map 3 using the pointer PTRi of WSCBI, the entry of the corresponding memory map is read out and the reference bit is checked. If this is "1", that is, if there is a reference, the reference bit is set to " 0
"At the same time, clear the usage count. If the reference bit is "0", count up the usage count. The result of this update and the value n of register 4
are compared by the comparison circuit 5, and if the value of the use count reaches n, this page is considered to be out of the working set, removed from the page list of this WS frame, and connected to the pool frame. (However, if the number of pages in that WS frame is already less than MNi, it will not be returned to the pool.) By performing this operation, the number of pages in the WS frame will be
Pages that are not referenced during the period will be removed from their WS frame and returned to the pool frame.

ページフオルトに際しては、まずプール枠からページを
とりあえずこのページフオルトを発生したプログラムの
WS枠に割当て、要求されたページのパッキングストア
からの転送を起動するとともに、このWS枠のページ数
のチェックを行う。
In the event of a page fault, first allocate a page from the pool frame to the WS frame of the program that generated this page fault, start transferring the requested page from the packing store, and check the number of pages in this WS frame. I do.

割当ての結果、最大値MXiよりも大になった場合には
、そのWS枠に使用カウントがnのページがあれば、こ
れをプール枠に返却する。ない場合にはこのWS枠の各
ページについて、順次、使用ビットをチェック、クリア
しながら使用カウントを更新し、この更新の結果、使用
カウントがn、ページが発生するまで、この処理を行い
、使用カウントがnになったページをプールに返却する
。割当ての結果、WS枠のページ数が最小値より大で、
最大値以下の場合には、このWS枠に、使用カウントか
nのべ−ジがあるかどうかをチェックし、ある場合には
、これをWS枠から外し、プール枠に返却する。使用カ
ウントがnのページがない場合には、プールのページ数
に不足がある場合則ち、現在のプールのページ数が不足
閥値よりも小の場合にのみ、プールへの返却を行う。W
S枠のページ数PNiが最小値MNi以下の場合にはプ
ールへの返却は行わない。なおプール枠からWS枠への
ページの割当ては次のように行われる。
If the allocation results in a value greater than the maximum value MXi, if there is a page with a usage count of n in that WS frame, it is returned to the pool frame. If not, update the usage count while sequentially checking and clearing the usage bit for each page in this WS frame. As a result of this update, this process is performed until the usage count becomes n, and the page is used. Return pages whose count reaches n to the pool. As a result of allocation, the number of pages in the WS frame is greater than the minimum value,
If it is less than the maximum value, it is checked whether this WS frame has a usage count of n pages, and if there is, it is removed from the WS frame and returned to the pool frame. If there is no page with a usage count of n, the page is returned to the pool only if there is a shortage in the number of pages in the pool, that is, if the current number of pages in the pool is smaller than the shortage threshold value. W
If the number of pages PNi in the S frame is less than or equal to the minimum value MNi, the pages are not returned to the pool. Note that page allocation from the pool frame to the WS frame is performed as follows.

まずプール枠制御ブロックのページ数PPNを1減少さ
せるとともにポィンタ割平PTRの値すなわち、その時
のページの先頭のページ番号をセーブするとともにPP
TR(値iをもっとする)で指定されるメモリマップ3
のェントリiのポインタ部PTRiの値すなわち、前記
先頭のページの次に接続されているページの番号をプ−
ル枠制御ブロックのポィン外こセットする。
First, the page number PPN of the pool frame control block is decreased by 1, and the value of the pointer ratio PTR, that is, the page number of the beginning of the page at that time, is saved, and PP
Memory map 3 specified by TR (increase value i)
The value of the pointer part PTRi of entry i, that is, the number of the page connected next to the first page is pooled.
Set the outside point of the frame control block.

すなわち、これを新たな先頭ページとする。これにより
プール枠からの取外しの処理が完了する。次にメモリマ
ップの先にセーブしたポィン夕に対応するェントリiの
ポインタPTRiにページを接続すべきWS枠に対応す
るWSCBの第iェントリのポィンタPTRiの値をセ
ットする。この後同ポィンタPTRiに先にセーブした
値jをセットするとともに現ページ数PNを1だけ増大
させる。これにより先にプール枠から取外されたページ
がWS枠に接続されたことになる。WS枠からのプール
枠へのページの返却も同時に行われる。
In other words, this is set as the new first page. This completes the removal process from the pool frame. Next, the value of the pointer PTRi of the i-th entry of the WSCB corresponding to the WS frame to which the page is to be connected is set to the pointer PTRi of the entry i corresponding to the pointer saved earlier in the memory map. Thereafter, the previously saved value j is set to the pointer PTRi, and the current page number PN is increased by one. This means that the page that was previously removed from the pool frame is connected to the WS frame. Pages are returned from the WS frame to the pool frame at the same time.

次に、本発明の一実施例の構成を説明する。Next, the configuration of an embodiment of the present invention will be described.

第2図は本発明を具体化した、一実施例の構成を示すブ
ロック図である。本実施例においては、WSCBIには
、第1図で示したフィールド‘こ加えて、各フィールド
の有効性を示すための有効ビットV、および対応するW
S枠の、WS見直し周期を保持するフィールドP、前回
のWS見直し契機からの経過周期を保持するフィールド
である見直し周期カウンタPC、ワーキングセット見直
し時における、使用カウントの更新中を保持するフィー
ルドUWをもつ。WSCBIのフィールドPCの値は、
カウントアップ回路9に綾線され、その出力は、WSC
BIのフィールドPCに印加されるとともに、比較回路
7の一方の入力にも印加される。
FIG. 2 is a block diagram showing the configuration of an embodiment embodying the present invention. In this embodiment, WSCBI includes, in addition to the fields shown in FIG. 1, a valid bit V for indicating the validity of each field, and a corresponding W
In the S frame, there is a field P that holds the WS review cycle, a review cycle counter PC that is a field that holds the elapsed cycle since the previous WS review trigger, and a field UW that holds the status of updating the usage count when reviewing the working set. Motsu. The value of field PC in WSCBI is
A twill line is sent to the count up circuit 9, and its output is WSC
It is applied to field PC of BI and also to one input of comparator circuit 7.

この比較回路7の他方の入力には、WSCBIのフィー
ルドPの値が印加されるようになっている。また、メモ
リマップ3のフィールドUCの値は、加算回路8の一方
の入力に印加され、他方の入力にはWSCBIのフィー
ルドUWの値が印加され、この加算回路8の出力はメモ
リマップ3のUCフィールド‘こ戻されるとともに、比
較回路5の一方の入力に接続されている。
The value of field P of WSCBI is applied to the other input of this comparison circuit 7. Further, the value of field UC of memory map 3 is applied to one input of adder circuit 8, the value of field UW of WSCBI is applied to the other input, and the output of this adder circuit 8 is applied to UC of memory map 3. The field is returned and connected to one input of the comparison circuit 5.

この比較回路5の他方の入力には、関値しジスタ4の使
用カウントUCに対する閥値が印加されている。次に、
本実施例における動作を説明する。
The other input of the comparison circuit 5 is applied with a threshold value for the usage count UC of the register 4. next,
The operation in this embodiment will be explained.

なお、本実施例においては、WS枠は、プログラム、即
ち、タスク対応に用意され各プログラム毎にジョブ制御
御文によりワーキングセット見直しの周期Pおよび使用
カウントの更新中UWを指定できるものとする。
In this embodiment, a WS frame is prepared for each program, that is, a task, and the working set review cycle P and usage count update UW can be specified for each program by a job control statement.

プログラムの開始に際しては、このプログラムにタスク
制御ブロックiが与えられた時点で、WSCBiも割当
てられ、WSCBiの有効ビットViをオンにするとと
もに、ジョブ制御文で指定された見直し周期Pおよび、
使用カウント更新中UWが、WSCBiの対応するフィ
ールドにセットされるとともに、見直し周期カウンタU
Cjがクリアされる。
At the start of a program, when a task control block i is given to this program, WSCBi is also allocated, the valid bit Vi of WSCBi is turned on, and the review period P specified in the job control statement and
The usage count updating UW is set in the corresponding field of WSCBi, and the review period counter U
Cj is cleared.

以後プログラムのロード、ページフオルト時のページの
ロード等は、タスク制御ブロックで指定されたWS枠i
に対して行われることになる。
From now on, program loading, page loading at the time of page fault, etc. will be performed using the WS frame i specified in the task control block.
will be carried out against.

一定周期毎に起動されるWS見直いこ際してはWS枠選
択制御部(図示してない)は、現在使用中の良Pち、有
効ビットViがオンのWS枠を順次選択し、選択された
WS枠iに対応するWSCBjの見直し周期カウンタP
Ciの値をカウントアップ回路9によりカウントアップ
するとともにこの結果とPiの値を比較回路7により比
較する。比較回路7が一致を検出したとき則ち対応する
WS枠が見直し周期にあるとき、このPCjの値をクリ
アするとともに、このWS枠に対して、WS見直しを起
動する。比較回路7が一致を検出しない場合、即ち対応
るWS枠が見直し周期にないWS枠についてはS見直し
を行わず、次のWS枠について、見直し周期にあるかど
うかのチェックを行う。
When reviewing the WS, which is activated at regular intervals, the WS frame selection control unit (not shown) sequentially selects the currently used WS frames whose valid bits Vi are on, and selects them. WSCBj review period counter P corresponding to the WS frame i
A count-up circuit 9 counts up the value of Ci, and a comparison circuit 7 compares this result with the value of Pi. When the comparison circuit 7 detects a match, that is, when the corresponding WS frame is in the review period, it clears the value of PCj and starts WS review for this WS frame. If the comparison circuit 7 does not detect a match, that is, for a WS frame whose corresponding WS frame is not in the review cycle, the S review is not performed, and it is checked whether the next WS frame is in the review cycle.

全WS(M個)について、以上の処理を行った後WS、
択制御部は、次のWS見直しの契機をセットするために
イソタバルタイマをセットし、処理を終了する。この様
子をを第3図に示す。WS見直し制御部は指定されたW
S枠についてPTRj、および、メモリマップの各ェン
トリのポィンタPTRjにより、そのWS枠に属するペ
ージを順次サーチしながら各ページについて次の処理を
行う。
After performing the above processing for all WSs (M pieces), the WS,
The selection control unit sets an isotaval timer to trigger the next WS review, and ends the process. This situation is shown in Figure 3. The WS review control unit uses the specified W
Using PTRj for the S frame and the pointer PTRj of each entry in the memory map, the following processing is performed for each page while sequentially searching for pages belonging to the WS frame.

即ち、対応する使用ビットUBjを議出し、これがオン
の場合には、これをクリアするとともに使用カウントU
Cjの値をクリアする。
That is, the corresponding usage bit UBj is set, and if it is on, it is cleared and the usage count U is set.
Clear the value of Cj.

使用ビットUCjがオフの場合には、使用カウントUC
jの値を議出し、これにWSCBjのUC更新中UWi
を加算回路8により加えるとともに、この結果と闇値レ
ジスタ4の使用カウント閥値とを比較回路5により比較
する。結果が閥値よりも大か等しい場合、即ち、Piと
UWjの積で指定される見直し周期の間、対応するペー
ジに対してアクセスが行われなかった場合には、このペ
ージは、WSから外れたものとして、対応するWS枠か
ら外され、プール枠に戻される。
If the usage bit UCj is off, the usage count UC
UWi during UC update of WSCBj.
is added by the adder circuit 8, and this result is compared with the use count limit value of the dark value register 4 by the comparator circuit 5. If the result is greater than or equal to the threshold value, that is, if the corresponding page has not been accessed during the review period specified by the product of Pi and UWj, this page is removed from the WS. As such, it is removed from the corresponding WS slot and returned to the pool slot.

以上説明した、WS見直し制御部の動作を第3図に示す
FIG. 3 shows the operation of the WS review control unit explained above.

以上本発明の一実施例を説明したが前記説明においては
、WS枠選択制御部、WS見直し制御部についてはその
動作のみについて述べ、具体的構成については、説明が
繁雑になり、本発明の主旨とも直接関係がないので省略
してあるが、ファームウェア、ソフトウェア、ハードウ
ェアのいずれかを用いて実現可能であることは明らかで
あるつoまた、本実施例においては、WS枠は各プログ
ラム毎に用意するとしているが必ずしもこのようにする
必要はなく複数プログラムに対して一個のWS枠を割当
てるように構成してもよいであるつoまた具体的なべー
ジの使用状況の管理の方法等については、いくつかの実
現方法が考え得るであろう。
One embodiment of the present invention has been described above, but in the above description, only the operations of the WS frame selection control unit and the WS review control unit will be described, and the explanation of the specific configuration will be complicated, and the gist of the present invention will not be explained. Although it is omitted because it is not directly related to the above, it is clear that it can be realized using firmware, software, or hardware. Also, in this embodiment, the WS frame is set for each program. Although it is said that it will be prepared, it is not necessary to do it this way and it is also possible to configure it so that one WS frame is allocated to multiple programs.Also, regarding the specific method of managing page usage status, etc. There are several possible ways to implement this.

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

第1図は、従来のWS管理方式の一美現例を示すブロッ
ク図、第2図は、本発明を具体化した一実施例の構成を
示すブロック図、第3図は、本発明の一実施例における
見直しWS枠選択制御部の処理のフロゥチャートを示す
。 第4図は本発明の−実施例におけるWS見直し制御部の
処理のフロウチヤートを示す。1は、WS枠制御ブロッ
ク、2は、プール枠制御ブロック、3は、メモリマップ
、4は、闇値レジスタ、5は、比較回路、6は、カウン
トアップ回路、7は、カウントアップ回路、8は、加等
回路を示す。 髪1図 髪3図 凝2図 髪4図
FIG. 1 is a block diagram showing an example of a conventional WS management method, FIG. 2 is a block diagram showing the configuration of an embodiment embodying the present invention, and FIG. 3 is a block diagram showing an embodiment of the present invention. A flowchart of processing of the review WS frame selection control unit in the embodiment is shown. FIG. 4 shows a flowchart of the processing of the WS review control unit in the embodiment of the present invention. 1 is a WS frame control block, 2 is a pool frame control block, 3 is a memory map, 4 is a dark value register, 5 is a comparison circuit, 6 is a count up circuit, 7 is a count up circuit, 8 indicates an additive circuit. Hair 1 figure Hair 3 figure Hair 2 figure Hair 4 figure

Claims (1)

【特許請求の範囲】[Claims] 1 マルチプログラムで動作する仮想記憶方式の情報処
理システムにおいて、ワーキングセツトを管理する単位
であるワーキングセツト枠に対して、各ワーキングセツ
ト枠で行うべきワーキングセツトの見直しの周期、前回
のワーキングセツト見直しからの経過周期を保持する手
段と、および、当該ワーキングセツト枠に対するワーキ
ングセツト見直しに際して更新すべき使用状況を示す使
用カウントの更新巾を保持する手段と、一定時間毎に起
動されるワーキングセツト見直し契機にて各ワーキング
セツト枠を順次選択し、選択されたワーキングセツト枠
における、前記経過周期を更新し、更新された経過周期
と前記見直し周期とを比較することによりワーキングセ
ツト見直し周期にあるワーキングセツト枠に対してのみ
、ワーキングセツト見直しを起動する手段と、および、
前記手段により、起動されたワーキングセツト見直しに
際しては、前記、指定された更新巾に応じて、前記使用
カウントを更新する手段とをもつことによりワーキング
セツト管理における、見直し周期およびウインドサイズ
を制御しうることを特徴とするワーキングセツト管理方
式。
1. In a virtual memory type information processing system that operates with multiple programs, the working set frame is the unit for managing working sets, and the frequency of working set reviews that should be performed in each working set frame since the previous working set review. means for retaining the elapsed cycle of the working set; and means for retaining the update range of the usage count indicating the usage status to be updated when reviewing the working set for the working set frame; to select each working set frame in turn, update the elapsed cycle in the selected working set frame, and compare the updated elapsed cycle with the review cycle to update the working set frame in the working set review cycle. a means for initiating a working set review only for those cases; and
When reviewing the activated working set by the means, the review cycle and window size in working set management can be controlled by having means for updating the usage count according to the specified update width. A working set management method characterized by:
JP56055885A 1981-04-14 1981-04-14 Working set management method Expired JPS6034142B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP56055885A JPS6034142B2 (en) 1981-04-14 1981-04-14 Working set management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP56055885A JPS6034142B2 (en) 1981-04-14 1981-04-14 Working set management method

Publications (2)

Publication Number Publication Date
JPS57169987A JPS57169987A (en) 1982-10-19
JPS6034142B2 true JPS6034142B2 (en) 1985-08-07

Family

ID=13011550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP56055885A Expired JPS6034142B2 (en) 1981-04-14 1981-04-14 Working set management method

Country Status (1)

Country Link
JP (1) JPS6034142B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033369A (en) * 2011-08-02 2013-02-14 Lenovo Singapore Pte Ltd Method to enlarge available memory amount of main memory, and computer

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59207479A (en) * 1983-05-11 1984-11-24 Hitachi Ltd Main memory control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033369A (en) * 2011-08-02 2013-02-14 Lenovo Singapore Pte Ltd Method to enlarge available memory amount of main memory, and computer

Also Published As

Publication number Publication date
JPS57169987A (en) 1982-10-19

Similar Documents

Publication Publication Date Title
US7010555B2 (en) System and method for compacting a computer system heap
US5930807A (en) Apparatus and method for fast filtering read and write barrier operations in garbage collection system
US7490117B2 (en) Dynamic performance monitoring-based approach to memory management
JP2003507814A (en) Garbage collector based on the train algorithm using a fixed-size membered set
CN106294206B (en) Cache data processing method and device
US8250121B2 (en) Zero-copy maturing of large objects in generational heap with copying collection
US7321908B2 (en) Mostly concurrent garbage collection
JPS6034142B2 (en) Working set management method
CN111666150B (en) Storage space allocation method and device, terminal and computer readable storage medium
CN108628678B (en) Method, device and equipment for determining memory parameters
JPS6034141B2 (en) Working set management method
JPS6034143B2 (en) Working set management method
CN115328656A (en) Dynamic memory intelligent expansion method, device, equipment and storage medium
JPH0119183B2 (en)
CN115934276A (en) Memory management method and device and electronic equipment
JPS6336538B2 (en)
DE3855200T2 (en) CACHE / DISK STORAGE SYSTEM WITH COMMAND SELECTION BASED ON DISK ACCESS TIME
JPH0261057B2 (en)
CN111679909A (en) Data processing method and device and terminal equipment
CN108008981B (en) Method and device for initializing program in system on chip (SoC)
JPH0830562A (en) Multiprocessor system
CN117472721B (en) Event statistics method and device
CN115033378B (en) Management method for volatile memory
KR100257923B1 (en) Communication control system and information processing system
JPH0495145A (en) Cache memory device and computer system