JPH09244958A - Paging method and system therefor - Google Patents

Paging method and system therefor

Info

Publication number
JPH09244958A
JPH09244958A JP8053044A JP5304496A JPH09244958A JP H09244958 A JPH09244958 A JP H09244958A JP 8053044 A JP8053044 A JP 8053044A JP 5304496 A JP5304496 A JP 5304496A JP H09244958 A JPH09244958 A JP H09244958A
Authority
JP
Japan
Prior art keywords
page
storage unit
access
paging
pages
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
JP8053044A
Other languages
Japanese (ja)
Inventor
Hiroshi Takita
寛 滝田
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 JP8053044A priority Critical patent/JPH09244958A/en
Publication of JPH09244958A publication Critical patent/JPH09244958A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve the efficiency of paging by deciding a page in use to perform page-out based on the regular pattern of the order of the page to be used when a page fault is generated. SOLUTION: When the execution of a program is started, the number of the page to be accessed is registered in an access page history storage part 5 and registered in an LRU(least recently used) management storage part 4 as a priority order '1'. Thereafter, a similar processing 15 performed every time the page to be accessed is switched, and when the accessed page is accessed again after several pages, a history during the time is extracted from the access page history storage part 5 and registered in an access page pattern storage part 6 as pattern data. When the page fault is generated, the pattern data for the page to be accessed are read and a paging processing is performed with the page not present in the pattern as a page-out object.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、仮想記憶システム
に関し、特にペ−ジング制御の方法とその方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a virtual memory system, and more particularly to a paging control method and system.

【0002】[0002]

【従来の技術】従来のぺ一ジング方式では、ページフォ
ルトの回数を少なくするためぺ−ジアウトするぺ−ジの
選択方式として、主にLRU法(Least Rece
ntly Used法)を採用していた。このLRU法
では、主記憶の中で一定期間使用されていないぺ一ジは
近い将来も使用されないという仮定の基に、そのぺ−ジ
を選んでぺ一ジアウトを行っていた。
2. Description of the Related Art In the conventional paging system, the LRU method (Least Receive) is mainly used as a page selection method for page-out in order to reduce the number of page faults.
The ntly Used method) was adopted. In this LRU method, a page that has not been used in the main memory for a certain period of time is selected and the page out is performed based on the assumption that the page will not be used in the near future.

【0003】また、公知の技術として、昭59−548
0の「グループ・ページ管理処理方式」は、任意の連続
した複数のぺ−ジをグループ化してぺ一ジ群をまとめて
ぺ−ジイン・ページアウト処理を行うことにより、ペー
ジングの効率化、高速化を図っている。昭62−131
353の「ページング制御方式」は、LRUの参照ビッ
トを複数設けてぺ一ジアクセスの状況を制御することに
よってぺ一ジングの効率向上を図っている。平1−24
165の「プライオリティを指定したぺ一ジング方式」
は、各ページの属性に利用者が指定出来るプライオリテ
ィを設け、そのプライオリティに従ってぺ一ジイン・ペ
ージアウト処理を行うことにより、きめ細かなぺ一ジン
グ制御を可能としている。平2−238535の「ペー
ジ数可変型オンデマンドページング方式」は、一定時間
内のぺ−ジアクセスデータの履歴を基にぺ一ジイン・ペ
ージアウトのぺ一ジ数を動的に決定することによってぺ
−ジングの効率化を図っているものである。
Further, as a publicly known technique, there is Sho 59-548.
The "group page management processing method" of 0 makes the page-in / page-out processing by grouping a plurality of continuous arbitrary pages and grouping the page groups to improve the paging efficiency and speed. It is trying to make it. 62-131
The “paging control method” 353 aims at improving the efficiency of paging by providing a plurality of LRU reference bits to control the state of page access. 1-24
165 “Paging method with priority specified”
Provides a priority that can be specified by the user for each page attribute, and performs page-in / page-out processing according to the priority to enable fine page control. The "page number variable type on-demand paging method" of flat 2-238535 is based on dynamically determining the number of page-in / page-out pages based on the history of page access data within a fixed time. It is intended to improve the efficiency of paging.

【0004】[0004]

【発明が解決しようとする課題】前述した従来のLRU
法では、ページアウトするぺ一ジを一定期間使用されて
いないぺ一ジと決めているために一定期間未使用のぺ一
ジを当然使用するようなプログラムではぺ一ジフォルト
が頻繁に起こってしまい、実行速度が遅くなるという問
題点があった。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
According to the law, the page-out page is determined to be a page that has not been used for a certain period of time, so a page fault frequently occurs in a program that naturally uses an unused page for a certain period of time. However, there was a problem that the execution speed became slow.

【0005】また、前記公知の技術例において、昭59
−5480の「グループ・ページ管理処理方式」は、グ
ループ化の方法によりLRU法と同様上記の問題が起こ
る。昭62−131353の「ページング制御方式」と
平2−238535の「ページ数可変型オンデマンドペ
ージング方式」は、従来のLRU法の改善方式でありや
はり同様上記の問題が残る。平1−24165の「プラ
イオリティを指定したぺ一ジング方式」は、ページアウ
ト対象を利用者に委任している点で本発明とは異なり、
また同様に上記の問題が起こる可能性がある。
Further, in the above-mentioned publicly known technical example, in the case of Sho 59
The "group / page management processing method" of -5480 causes the above problems depending on the grouping method as in the LRU method. The "paging control method" of Sho 62-131353 and the "on-demand paging method of variable number of pages" of Hei 2-238535 are improved methods of the conventional LRU method, and the above problems still remain. The “paging method with priority specified” of Hira 1-24165 differs from the present invention in that the page-out target is delegated to the user.
Similarly, the above problem may occur.

【0006】本発明の目的は、ページフォルト時に、従
来のLRU法では一定期間未使用であるがすぐ必要とな
るぺ一ジをぺ−ジアウト対象としていた欠点を除去し、
ページフォルトの発生回数が少なく、ページングの効率
化がはかれるぺ−ジング方法とその方式を提供すること
である。
An object of the present invention is to eliminate the drawback of page-out targeting a page which is not used for a certain period of time but is immediately required in the conventional LRU method at the time of page fault.
It is an object of the present invention to provide a paging method and its method that can reduce the number of page faults and improve the efficiency of paging.

【0007】[0007]

【課題を解決するための手段】前述した問題点を解決す
るため、本発明のぺ−ジング方法は、ページング方式を
利用した仮想記憶システムにおけるページング方法にお
いて、1つのプログラムを実行した時にアクセスするペ
一ジの順番を記憶するステップと、前記記憶されている
ページの規則的なパターンをパターンデータとして記憶
するステップと、ページフォルトが発生した時に、ペ−
ジインするペ一ジに対する前記パターンデータを基にペ
−ジアウト対象のペ一ジを選択するステップを有する。
In order to solve the above-mentioned problems, a paging method of the present invention is a paging method in a virtual memory system using a paging method, and a paging method to access when one program is executed. A step of storing a sequence of pages, a step of storing a regular pattern of the stored page as pattern data, and a page fault when a page fault occurs.
There is a step of selecting a page to be paged out based on the pattern data for the page to be paged in.

【0008】また、本発明のぺ−ジング方法は、ページ
ング処理を行うページング情報処理部と、プログラムを
実行する際にアクセスできるぺ一ジ分のプログラムを記
憶する実行ページ記憶部と、全ての未実行ページを記憶
する未実行ページ記憶部と、LRU管理記憶部を有する
ページング方式を利用した仮想記憶システムにおけるペ
ージング方法において、1つのプログラムを実行した時
にアクセスするペ一ジの順番をアクセスページ履歴デー
タとして記憶するステップと、前記アクセスページ履歴
データ内の規則的なパターンをアクセスページパターン
データとして記憶するステップと、ページフォルトが発
生した時に、ペ−ジインするペ一ジに対する前記アクセ
スページパターンデータを基にペ−ジアウト対象のペ一
ジを選択するステップを有する。
Further, the paging method of the present invention includes a paging information processing section for performing a paging process, an execution page storage section for storing a program for a page that can be accessed when executing a program, and all unexecuted pages. In the paging method in the virtual storage system using the paging method having the unexecuted page storage unit that stores the executed page and the LRU management storage unit, the order of pages to be accessed when one program is executed is the access page history data. And a step of storing a regular pattern in the access page history data as access page pattern data, based on the access page pattern data for a page to be paged in when a page fault occurs. To select the page to be paged out. With a flop.

【0009】更に、前記アクセスページ履歴内の規則的
なパターンをアクセスページパターンデータとして記憶
するステップは、プログラムを実行した時にアクセスす
るぺ一ジが切り替わると、その実行したぺ一ジの番号を
アクセスページ履歴データとして登録するステップと、
LRU管理記憶部における優先順位1に対応するぺ一ジ
番号として前記アクセスページ履歴データのぺ一ジ番号
を登録し、既にLRU管理記憶部に登録されている全て
のぺ−ジの優先順位を1ずつ下げて、優先順位の一番低
いぺ−ジの記録を削除するステップと、実行したぺ一ジ
に対してそれより以前にそのぺ−ジが実行されている所
までの履歴データを前記アクセスページ履歴データより
読み出すステップと、読み込んだ履歴の長さが予め設定
されたページ数以上の場合は、前記ページ数−1の履歴
をパターンデータとして登録するステップと、ページ数
が前記ページ数未満の場合は、そのぺ一ジ数が1以上な
らば、そのままパターンデータとして登録するステップ
と、ページ数が0の場合は、パターンデータとして登録
しないステップを有する。
Further, in the step of storing the regular pattern in the access page history as access page pattern data, when the page to be accessed is changed when the program is executed, the number of the executed page is accessed. Step to register as page history data,
The page number of the access page history data is registered as the page number corresponding to the priority 1 in the LRU management storage unit, and the priority of all pages already registered in the LRU management storage unit is set to 1. Step by step to delete the record of the page with the lowest priority, and the history data up to the place where the page was executed before that page is accessed. Reading from the page history data, and if the length of the read history is equal to or more than the preset number of pages, registering the history of the number of pages-1 as pattern data, and the number of pages is less than the number of pages. If the number of pages is 1 or more, register the pattern data as it is, and if the number of pages is 0, do not register the pattern data. To.

【0010】更にまた、前記ページフォルトが発生した
時に、ペ−ジインするペ一ジに対する前記規則的なパタ
ーンを基にペ−ジアウト対象のペ一ジを選ぶステップ
は、未実行ページ記憶部からページイン処理される際
に、実行ページ記憶部2に空き領域が無い場合には、該
当のぺ一ジに対するパターンデータが有り、また、実行
ページ記憶部内にパターンデータに含まないぺ−ジがあ
る場合には、そのぺ一ジをぺ−ジアウト対象とし、ペー
ジアウト処理を行うステップと、該当のぺージに対する
パターンデータが無い場合には、LRU管理記憶部の優
先順位が最も低いぺ一ジをぺ一ジアウト対象として、ペ
ージアウト処理を行うステップと、実行ページ記憶部内
にパターンデータに含まないぺ一ジが無い場合には、L
RU管理記憶部の優先順位が最も低いぺ一ジをぺ一ジア
ウト対象として、ページアウト処理を行うステップを有
する。
Further, when the page fault occurs, the step of selecting the page to be paged out based on the regular pattern for the page to be paged in is the step of selecting a page from the unexecuted page storage section. When there is no free area in the execution page storage unit 2 during the in process, there is pattern data for the corresponding page, and there is a page not included in the pattern data in the execution page storage unit. Page is targeted for page-out, the page-out processing step is performed, and if there is no pattern data for the page, the page with the lowest priority in the LRU management storage section is displayed. If there is no page that is not included in the pattern data in the execution page storage unit as one page-out target, and if there is no page in the execution page storage unit, L
There is a step of performing a page-out process with a page having the lowest priority in the RU management storage unit as a page-out target.

【0011】また、本発明のぺ−ジング方式は、ページ
ング処理を行うページング情報処理部と、プログラムを
実行する際にアクセスできるぺ一ジ分のプログラムを記
憶する実行ページ記憶部と、全ての未実行ページを記憶
する未実行ページ記憶部と、LRU管理記憶部を有する
ページング方式を利用した仮想記憶システムにおけるペ
ージング方式において、1つのプログラムを実行した時
にアクセスするペ一ジの順番をアクセスページ履歴デー
タとして記憶する手段と、前記アクセスページ履歴デー
タ内の規則的なパターンをアクセスページパターンデー
タとして記憶する手段と、ページフォルトが発生した時
に、ペ−ジインするペ一ジに対する前記アクセスページ
パターンデータを基にペ−ジアウト対象のペ一ジを選ぶ
手段を有する。
Further, the paging system of the present invention includes a paging information processing section for performing a paging process, an execution page storage section for storing a page of a program that can be accessed when executing a program, and all unexecuted pages. In the paging system in the virtual storage system using the paging system having the unexecuted page storage unit for storing the executed page and the LRU management storage unit, the order of pages accessed when one program is executed is the access page history data. And a means for storing a regular pattern in the access page history data as access page pattern data, based on the access page pattern data for the page to be paged in when a page fault occurs. Has a means for selecting a page to be paged out.

【0012】[0012]

【発明の実施の形態】次に本発明について図面を参照し
て説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0013】図1は本発明の一実施例を示すブロック図
である。本発明のぺ一ジング方式は、ページング処理の
制御を行うぺ一ジング情報処理部1と、プログラムを実
行する際にアクセスできるぺ一ジ分のプログラムを記憶
する実行ページ記憶部2と、実行するプログラムの全て
のぺ一ジを記憶する未実行ページ記憶部3と、実行ペー
ジ記憶部2にないぺ−ジを使用しようとした(ページフ
ォルトが起こった)時に一定期間使用されていないぺ−
ジを実行ページ記憶部2から退避させるぺ−ジアウト処
理を行うLRU(Least Recently Us
ed)法を実現するためにぺ一ジアウト対象のぺ一ジを
実行ページ記憶部2に記憶できるぺ一ジ数分優先順位を
付けて管理するLRU管理記憶部4と、アクセスするぺ
−ジの履歴を記憶するアクセスページ履歴記憶部5と、
アクセスするぺ一ジのパターンを記憶するアクセスペー
ジパターン記憶部6を有する。
FIG. 1 is a block diagram showing one embodiment of the present invention. The paging system of the present invention is executed by a paging information processing unit 1 for controlling paging processing, an execution page storage unit 2 for storing a page of a program that can be accessed when executing the program. An unexecuted page storage unit 3 that stores all pages of a program and a page that is not used for a certain period when an attempt is made to use a page that is not in the executed page storage unit 2 (a page fault has occurred).
LRU (Least Recent Us) for performing a page-out process of saving the page from the execution page storage unit 2.
ed) method, a page to be paged out can be stored in the execution page memory 2 by prioritizing the number of pages and managed by the LRU management memory 4 and the page to be accessed. An access page history storage unit 5 for storing history,
It has an access page pattern storage unit 6 for storing a page pattern to be accessed.

【0014】次に、図1と図2および図3を参照して、
本実施例の動作について説明する。ここで実行ページ記
憶部2に記憶できるぺ−ジ数を3と仮定する。
Next, referring to FIGS. 1, 2 and 3,
The operation of the present embodiment will be described. Here, it is assumed that the number of pages that can be stored in the execution page storage unit 2 is three.

【0015】図2は、ページ切替時の割り込み処理を示
す流れ図である。実行ページ記憶部2に記憶できるぺ−
ジが複数の場合の仮想記憶システムにおいて、プログラ
ムを実行した時にアクセスするぺ一ジが切り替わると、
その実行したぺ一ジの番号をアクセスページ履歴記憶部
5に登録し(A1)、LRU管理記憶部4における優先
順位1に対応するぺ一ジ番号部にそのぺ一ジ番号を登録
する(A2)。その際、既にLRU管理記憶部4に登録
している全てのぺ−ジの優先順位を1ずつ下げて、優先
順位の一番低いぺ−ジの記録は削除する。次に、実行し
たぺ一ジに対してそれより以前にそのぺ−ジが実行され
ている所までの履歴をアクセスページ履歴記憶部より読
み出す(A3)。
FIG. 2 is a flow chart showing an interrupt process when switching pages. Pages that can be stored in the execution page storage unit 2
In a virtual memory system with multiple pages, when the page to be accessed changes when the program is executed,
The number of the executed page is registered in the access page history storage section 5 (A1), and the page number is registered in the page number section corresponding to the priority level 1 in the LRU management storage section 4 (A2). ). At that time, the priority of all pages already registered in the LRU management storage unit 4 is lowered by one, and the record of the page having the lowest priority is deleted. Next, the history of the executed page up to the point where the page was executed is read from the access page history storage unit (A3).

【0016】読み込んだ履歴の長さ(ページ数)が実行
ページ記憶部2で最大記憶できる3ページ以上の場合
(A4)は、その最大ページ数−1=2の履歴をパター
ンデータとしてアクセスページパターン記憶部6に登録
する(A6)。ページ数が最大ページ数3未満の場合
(A4)は、そのぺ一ジ数が1以上ならば(A5)、そ
のままパターンデータとしてアクセスページパターン記
憶部6に登録する(A7)。ページ数が0の(すなわち
履歴が無い)場合(A5)は、アクセスページパターン
記憶部6に登録しない。
When the length (number of pages) of the read history is 3 pages or more that can be stored in the execution page storage unit 2 at the maximum (A4), the history of the maximum number of pages-1 = 2 is used as pattern data to access the page pattern. Register in the storage unit 6 (A6). When the number of pages is less than the maximum number of pages 3 (A4), if the number of pages is 1 or more (A5), it is registered as it is in the access page pattern storage unit 6 as pattern data (A7). If the number of pages is 0 (that is, there is no history) (A5), it is not registered in the access page pattern storage unit 6.

【0017】図3は、ページフォルト時の割り込み処理
を示す流れ図である。実行ページ記憶部2に無いぺ一ジ
をアクセスしようとする(ページフォルトが起こった)
場合、そのぺ一ジを未実行ページ記憶部3からロードす
る(ページイン)処理が必要であるが、実行ページ記憶
部2に空き領域が無い場合(Bl)、該当のぺ一ジに対
するパターンデータがアクセスページパターン記憶部6
に有り(B2)、また、実行ページ記憶部2内にパター
ンデータに含まないぺ−ジがある場合(B3)、そのぺ
一ジをぺ−ジアウト対象とし(B4)、ページアウト処
理を行う(B6)。該当のぺージに対するパターンデー
タがアクセスページパターン記憶部6に無い場合(B
2)、または実行ページ記憶部2内にパターンデータに
含まないぺ一ジが無い場合(B3)は、LRU管理記憶
部4の優先順位が最も低いぺ一ジをぺ一ジアウト対象と
し(B5)、ページアウト処理を行う(B6)。
FIG. 3 is a flow chart showing the interrupt processing at the time of page fault. Attempt to access a page that is not in the execution page storage unit 2 (a page fault has occurred)
In this case, the page needs to be loaded (page-in) from the unexecuted page storage unit 3, but if there is no free area in the executed page storage unit 2 (Bl), the pattern data for the page is stored. Is the access page pattern storage unit 6
If there is a page not included in the pattern data in the execution page storage unit 2 (B3), the page is targeted for page out (B4), and the page out process is performed ( B6). When the pattern data for the corresponding page does not exist in the access page pattern storage unit 6 (B
2) or if there is no page not included in the pattern data in the execution page storage unit 2 (B3), the page with the lowest priority in the LRU management storage unit 4 is targeted for page out (B5). , Page-out processing is performed (B6).

【0018】[0018]

【発明の効果】以上説明したように、本発明によれば、
実行されたプログラムのアクセスページ履歴のパターン
データを記憶し、ページフォルト時にページイン対象の
ページを含むパターンデータからページアウトすべきペ
ージを選択し、ページアウト処理するので、従来のLR
U法では一定期間未使用であるがすぐ必要となるぺ一ジ
をぺ−ジアウト対象としていた欠点が除去され、ページ
フォルトの発生回数が減少し、ページングの効率化がは
かれるという効果を有する。
As described above, according to the present invention,
The pattern data of the access page history of the executed program is stored, and the page to be paged out is selected from the pattern data including the page to be paged in at the time of a page fault, and the page out process is performed.
The U method has the effects of eliminating the drawback that the page-out target is a page that has not been used for a certain period of time but is needed immediately, the number of page faults is reduced, and the efficiency of paging is improved.

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

【図1】本発明の構成の一実施例を示すブロック図であ
る。
FIG. 1 is a block diagram showing an embodiment of the configuration of the present invention.

【図2】本発明の一実施例におけるページ切替時の割り
込み処理を示す流れ図である。
FIG. 2 is a flowchart showing an interrupt process at the time of page switching according to an embodiment of the present invention.

【図3】本発明の一実施例におけるページフォルト時の
割り込み処理を示す流れ図である。
FIG. 3 is a flowchart showing interrupt processing at the time of a page fault in one embodiment of the present invention.

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

1 ページング情報処理部 2 実行ページ記憶部 3 未実行ページ記憶部 4 LRU管理記憶部、 5 アクセスページ履歴記憶部 6 アクセスページパターン記憶部 1 paging information processing unit 2 executed page storage unit 3 unexecuted page storage unit 4 LRU management storage unit 5 access page history storage unit 6 access page pattern storage unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ページング方式を利用した仮想記憶シス
テムにおけるページング方法において、 1つのプログラムを実行した時にアクセスするペ一ジの
順番を記憶するステップと、 前記記憶されているページの規則的なパターンをパター
ンデータとして記憶するステップと、 ページフォルトが発生した時に、ペ−ジインするペ一ジ
に対する前記パターンデータを基にペ−ジアウト対象の
ペ一ジを選択するステップを有することを特徴とするペ
一ジング方法。
1. A paging method in a virtual storage system using a paging method, wherein a step of storing the order of pages to be accessed when one program is executed, and a regular pattern of the stored pages are stored. And a step of storing as pattern data and a step of selecting a page to be paged out based on the pattern data for a page to be paged in when a page fault occurs. Zing method.
【請求項2】 ページング処理を行うページング情報処
理部と、プログラムを実行する際にアクセスできるぺ一
ジ分のプログラムを記憶する実行ページ記憶部と、全て
の未実行ページを記憶する未実行ページ記憶部と、LR
U管理記憶部を有するページング方式を利用した仮想記
憶システムにおけるページング方法において、 1つのプログラムを実行した時にアクセスするペ一ジの
順番をアクセスページ履歴データとして記憶するステッ
プと、 前記アクセスページ履歴データ内の規則的なパターンを
アクセスページパターンデータとして記憶するステップ
と、 ページフォルトが発生した時に、ペ−ジインするペ一ジ
に対する前記アクセスページパターンデータを基にペ−
ジアウト対象のペ一ジを選択するステップを有すること
を特徴とするペ一ジング方法。
2. A paging information processing section for performing a paging process, an execution page storage section for storing a program for a page that can be accessed when executing a program, and an unexecuted page storage for storing all unexecuted pages. Department and LR
In a paging method in a virtual storage system using a paging method having a U management storage unit, a step of storing the order of pages accessed when one program is executed as access page history data; Storing a regular pattern of the access page pattern data as access page pattern data, and a page based on the access page pattern data for the page to be paged in when a page fault occurs.
A paging method comprising the step of selecting a page to be subject to a page out.
【請求項3】 前記アクセスページ履歴内の規則的なパ
ターンをアクセスページパターンデータとして記憶する
ステップが、 プログラムを実行した時にアクセスするぺ一ジが切り替
わると、その実行したぺ一ジの番号をアクセスページ履
歴データとして登録するステップと、 LRU管理記憶部における優先順位1に対応するぺ一ジ
番号として前記アクセスページ履歴データのぺ一ジ番号
を登録し、既にLRU管理記憶部に登録されている全て
のぺ−ジの優先順位を1ずつ下げて、優先順位の一番低
いぺ−ジの記録を削除するステップと、 実行したぺ一ジに対してそれより以前にそのぺ−ジが実
行されている所までの履歴データを前記アクセスページ
履歴データより読み出すステップと、 読み込んだ履歴の長さが予め設定されたページ数以上の
場合は、前記ページ数−1の履歴をパターンデータとし
て登録するステップと、 ページ数が前記ページ数未満の場合は、そのぺ一ジ数が
1以上ならば、そのままパターンデータとして登録する
ステップと、 ページ数が0の場合は、パターンデータとして登録しな
いステップを有する請求項2記載のページング方法。
3. The step of storing the regular pattern in the access page history as access page pattern data, when the page to be accessed is changed when the program is executed, the number of the executed page is accessed. Registering as page history data, and registering the page number of the access page history data as a page number corresponding to priority 1 in the LRU management storage unit, and all already registered in the LRU management storage unit. Lowering the priority of each page by 1 and deleting the record of the page with the lowest priority, and the page that was executed before that page was executed. The history data up to the specified location is read from the access page history data, and the length of the history read is greater than or equal to a preset number of pages. In the case, the step of registering the history of the page number -1 as pattern data; and in the case of the page number being less than the page number, if the page number is 1 or more, the step of registering the pattern data as it is, The paging method according to claim 2, further comprising a step of not registering as pattern data when the number of pages is 0.
【請求項4】 前記ページフォルトが発生した時に、ペ
−ジインするペ一ジに対する前記規則的なパターンを基
にペ−ジアウト対象のペ一ジを選ぶステップが、 未実行ページ記憶部からページイン処理される際に、実
行ページ記憶部2に空き領域が無い場合には、該当のぺ
一ジに対するパターンデータが有り、また、実行ページ
記憶部内にパターンデータに含まないぺ−ジがある場合
には、そのぺ一ジをぺ−ジアウト対象とし、ページアウ
ト処理を行うステップと、 該当のぺージに対するパターンデータが無い場合には、
LRU管理記憶部の優先順位が最も低いぺ一ジをぺ一ジ
アウト対象として、ページアウト処理を行うステップ
と、 実行ページ記憶部内にパターンデータに含まないぺ一ジ
が無い場合には、LRU管理記憶部の優先順位が最も低
いぺ一ジをぺ一ジアウト対象として、ページアウト処理
を行うステップを有する請求項2記載のページング方
法。
4. When the page fault occurs, the step of selecting a page to be paged out based on the regular pattern for the page to be paged in is a page-in from the unexecuted page storage section. If there is no free area in the execution page storage unit 2 during processing, there is pattern data for the corresponding page, and if there is a page not included in the pattern data in the execution page storage unit. Is the page-out target for the page, and the step to perform the page-out process. If there is no pattern data for the page,
If the page with the lowest priority in the LRU management storage unit is targeted for page-out processing, and if there is no page not included in the pattern data in the execution page storage unit, the LRU management storage unit 3. The paging method according to claim 2, further comprising a step of performing a page-out process with a page having the lowest priority order of pages as a page-out target.
【請求項5】 ページング処理を行うページング情報処
理部と、予め設定されたページ数を記憶する実行ページ
記憶部と、全ての未実行ページを記憶する未実行ページ
記憶部と、LRU管理記憶部を有するページング方式を
利用した仮想記憶システムにおけるページング方式にお
いて、 1つのプログラムを実行した時にアクセスするペ一ジの
順番をアクセスページ履歴データとして記憶する手段
と、 前記アクセスページ履歴データ内の規則的なパターンを
アクセスページパターンデータとして記憶する手段と、 ページフォルトが発生した時に、ペ−ジインするペ一ジ
に対する前記アクセスページパターンデータを基にペ−
ジアウト対象のペ一ジを選ぶ手段を有することを特徴と
するペ一ジング方式。
5. A paging information processing unit for performing paging processing, an execution page storage unit for storing a preset number of pages, an unexecution page storage unit for storing all unexecuted pages, and an LRU management storage unit. In a paging method in a virtual memory system using the paging method, a means for storing the order of pages accessed when one program is executed as access page history data, and a regular pattern in the access page history data Means for storing as access page pattern data, and a page based on the access page pattern data for the page to be paged in when a page fault occurs.
A paging method characterized by having means for selecting a page to be targeted for jiout.
【請求項6】 ページング処理を行うページング情報処
理部と、プログラムを実行する際にアクセスできるぺ一
ジ分のプログラムを記憶する実行ページ記憶部と、全て
の未実行ページを記憶する未実行ページ記憶部と、LR
U管理記憶部を有するページング方式を利用した仮想記
憶システムにおけるページング方式において、 1つのプログラムを実行した時にアクセスするペ一ジの
順番を履歴データとして記憶するアクセスページ履歴記
憶部と、 前記アクセスページ履歴データ内の規則的なパターンを
アクセスページパターンデータとして記憶するアクセス
ページパターン記憶部と、 ページフォルトが発生した時に、ペ−ジインするペ一ジ
に対する前記アクセスページパターン記憶部からペ−ジ
アウト対象のペ一ジを選ぶことを特徴とするペ一ジング
方式。
6. A paging information processing section for performing a paging process, an execution page storage section for storing a page of a program that can be accessed when executing a program, and an unexecuted page storage for storing all unexecuted pages. Department and LR
In a paging system in a virtual storage system using a paging system having a U management storage unit, an access page history storage unit that stores, as history data, an order of pages to be accessed when one program is executed; An access page pattern storage unit that stores a regular pattern in the data as access page pattern data, and a page to be paged out from the access page pattern storage unit for a page to be paged in when a page fault occurs. A paging method characterized by selecting one page.
JP8053044A 1996-03-11 1996-03-11 Paging method and system therefor Pending JPH09244958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8053044A JPH09244958A (en) 1996-03-11 1996-03-11 Paging method and system therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8053044A JPH09244958A (en) 1996-03-11 1996-03-11 Paging method and system therefor

Publications (1)

Publication Number Publication Date
JPH09244958A true JPH09244958A (en) 1997-09-19

Family

ID=12931891

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8053044A Pending JPH09244958A (en) 1996-03-11 1996-03-11 Paging method and system therefor

Country Status (1)

Country Link
JP (1) JPH09244958A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010186381A (en) * 2009-02-13 2010-08-26 Nec Corp Memory management device, memory management method and program
US8347305B2 (en) 2008-03-12 2013-01-01 Canon Kabushiki Kaisha Allocation of storage units for execution of application programs

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8347305B2 (en) 2008-03-12 2013-01-01 Canon Kabushiki Kaisha Allocation of storage units for execution of application programs
JP2010186381A (en) * 2009-02-13 2010-08-26 Nec Corp Memory management device, memory management method and program

Similar Documents

Publication Publication Date Title
US6629201B2 (en) System and method for high-speed substitute cache
JP4429780B2 (en) Storage control device, control method, and control program.
EP0471434B1 (en) Method and apparatus for controlling a multi-segment cache memory
JPH0689221A (en) Method and apparatus for controlling memory in computer system
CN112506823B (en) FPGA data reading and writing method, device, equipment and readable storage medium
JPH07271674A (en) Method for optimization of cache
JPH04242848A (en) System for controlling cache memory by running mode
JP2655755B2 (en) Buffer memory management method and computer system for implementing the method
EP0411788A2 (en) External sorting using virtual storage
JPH09244958A (en) Paging method and system therefor
EP1573553B1 (en) Selectively changeable line width memory
JPH09223049A (en) Disk array system
JPH09319658A (en) Memory managing system for variable page size
JP2002251322A (en) System for controlling storage device
JPH0644139A (en) Disk cache system and its page rewrite control method
JP2636745B2 (en) Paging processing method and method
JPH0812643B2 (en) Page save / restore device
JP3772003B2 (en) Memory management system and data management method
JPH0520195A (en) Cache memory controller
JP2854667B2 (en) Disk cache control method
JPH07230358A (en) Multiplexed volume device
JPH08115263A (en) Memory unit
JP2002132548A (en) Storage device and method
JPH02253358A (en) Cache memory
JPH0754482B2 (en) Computer system