JPH03147157A - Information processor - Google Patents

Information processor

Info

Publication number
JPH03147157A
JPH03147157A JP1286283A JP28628389A JPH03147157A JP H03147157 A JPH03147157 A JP H03147157A JP 1286283 A JP1286283 A JP 1286283A JP 28628389 A JP28628389 A JP 28628389A JP H03147157 A JPH03147157 A JP H03147157A
Authority
JP
Japan
Prior art keywords
page
circuit
trigger
outputs
interrupt
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
JP1286283A
Other languages
Japanese (ja)
Inventor
Kenji Kushima
久島 憲司
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 Engineering Ltd
Original Assignee
NEC Engineering 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 NEC Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP1286283A priority Critical patent/JPH03147157A/en
Publication of JPH03147157A publication Critical patent/JPH03147157A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To suppress the number of times for generating the interruption of a page fault at a minimum by pulling a page, which is most frequently accessed, onto a main storage by using an interruption generating circuit using a timer circuit. CONSTITUTION:A comparator circuit 4 stores the page ID of the page, for which the number of times for access is smallest out of the pages existent in a main storage 1, into an area 20 and stores the page ID of the page, for which the number of times for access is largest, into an area 21. The comparator circuit 4 compares the number of times for access of the areas 20 and 21 further and in the case of (the contents of 20) < (the contents of 21), a trigger request is outputted to a trigger generating circuit 6. Then, the trigger generating circuit 6 outputs a count instruction to a timer circuit 8. When there is no new trigger request during the count of the timer and specified time is counted, the timer circuit 8 outputs an interruption request to a controller 11. Thus, the number of times for generating the interruption of the page fault are suppressed at a minimum.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に関し、特に仮想記憶方式におけ
る主記憶装置の有効活用方法を図った情報処理装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an information processing device, and more particularly to an information processing device designed to effectively utilize a main storage device in a virtual storage system.

〔従来の技術〕[Conventional technology]

従来、この種の仮想記憶方式を採用する情報処理装置で
は、中央処理装置(以下CPUと称する)が論理アドレ
ス空間をアクセスする際、その論理アドレスが主記憶上
に存在しなかった場合、ページフォールト割込みが発生
し、主記憶上のページで最もアクセス頻度の少ないペー
ジを1記憶装置に追いやり、目的とするページを外部記
憶装置から主記憶装置にとり込む方式となっていた。
Conventionally, in information processing devices that employ this type of virtual storage method, when a central processing unit (hereinafter referred to as CPU) accesses a logical address space, a page fault occurs if the logical address does not exist in main memory. When an interrupt occurs, the least frequently accessed page on the main memory is pushed to one storage device, and the desired page is imported from the external storage device into the main storage device.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の技術は、タスクの切り変り目など主記憶
上にないページアクセス要求が発生した場合、ページフ
ォールト割込みにより主記憶上のページで最もアクセス
頻度の少ないページが追い出されるが、そのページは次
に発生するページフォールト割込みが発生するまでの間
、主記憶上に存在しているにもかかわらず、まったくの
遊び領域となり、ページフォールト割込みが発生しては
じめて外部記憶装置に追い出されるため、主記憶装置の
有効活用が図られていないという欠点があった。
In the conventional technology described above, when a page access request that is not in main memory occurs, such as when a task changes, the least frequently accessed page in main memory is evicted by a page fault interrupt, but that page is moved to the next page. Although it exists in main memory until the page fault interrupt that occurs in The drawback was that the equipment was not utilized effectively.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の情報処理装置は、主記憶装置におけるページの
管理情報内のページアクセス回数を比較演算し、最も多
くアクセスされるページを選択するための比較回路と、 前記比較回路からの出力を受け、出力からハードウェア
のトリガーを発生させるトリガー発生回路と、 前記トリガー発生回路からのトリガーを受け、あらかじ
め定められた設定回数をカウントし、そのカウント終了
時ストローブ信号を出力し、又カウント途中に前記トリ
ガー発生回路からのトリガーが発生した場合、再び初期
設定値からカウントな開始するタイマ回路とを有してい
る。
The information processing device of the present invention includes a comparison circuit for comparing and calculating the number of page accesses in management information of pages in a main storage device and selecting the most frequently accessed page; and receiving an output from the comparison circuit; A trigger generation circuit that generates a hardware trigger from the output, and a trigger generation circuit that receives the trigger from the trigger generation circuit, counts a predetermined number of times, outputs a strobe signal at the end of the count, and outputs a strobe signal during the count. It has a timer circuit that starts counting again from the initial setting value when a trigger from the generation circuit occurs.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は、本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

第1図において、lは主記憶装置、2はページアクセス
管理テーブル、3はデータバス、4は最も少ないページ
のアクセス回数を比較演算する為の比較回路、5は比較
回路4で最もアクセス回数の少ないページが何かを出力
するための信号、6は比較回路4からの出力を受け、ハ
ードウニアトリカ(ハルス)を出力するトリガ発生回路
、7はトリガ発生回路6から出力パルスを出す出力信号
In FIG. 1, l is the main memory, 2 is a page access management table, 3 is a data bus, 4 is a comparison circuit for comparing and calculating the number of accesses for the least number of pages, and 5 is the comparison circuit 4 for calculating the number of accesses for the least number of pages. 6 is a trigger generation circuit which receives the output from the comparator circuit 4 and outputs a hardware trigger (Hars); 7 is an output signal which outputs an output pulse from the trigger generation circuit 6;

8は前記トリガー出力パルスを受けである一定時間経過
後に、次段の割込みコントローラに対して割込み要求を
行う為のタイマ回路、9は外部記憶装置、10はタイマ
回路8から後述の割込みコントローラーに対しての割込
み要求信号、11はタイマ回路80割込み要求の他にそ
の他のIlo等からの割込み要求に対して調停等を行い
、CPUに対して割込み要求を出力する割込みコントロ
ーラー 12はタイマ回路8以外の他の工/○からの割
込み要求信号、工3は10及び12からの多数の割込み
要求に対してそのうちの1本をCPUへ伝える為の割込
みコントローラからの出力信号、14はCPUをそれぞ
れ表わす。
8 is a timer circuit for making an interrupt request to the next-stage interrupt controller after receiving the trigger output pulse for a certain period of time, 9 is an external storage device, and 10 is a timer circuit for sending an interrupt request from the timer circuit 8 to the interrupt controller described later. 11 is an interrupt controller that arbitrates for interrupt requests from other Ilo etc. in addition to the timer circuit 80 interrupt requests, and outputs interrupt requests to the CPU; 12 is an interrupt controller for signals other than the timer circuit 8; Interrupt request signals from other machines/○, machine 3 represent output signals from the interrupt controller for transmitting one of the many interrupt requests from 10 and 12 to the CPU, and 14 represent the CPU.

第2図は、第1図のページ管理テーブルの詳細を表して
おり、15は主記憶をある一定領域に区切った時にその
各々の領域をページと称し、そのページを各4につけた
ページID、16はそれぞれのページに対して何回アク
セスがあったかを示すアクセスカウントエリア、17は
15.16以外の制御ビットを表わす。
FIG. 2 shows the details of the page management table shown in FIG. 1. When the main memory is divided into certain areas, each area is called a page, and the page ID 15 is attached to each 4. 16 is an access count area indicating how many times each page has been accessed, and 17 is a control bit other than 15.16.

第3図は、実際に論理アドレスにアクセスが発生したと
きにページ管理テーブルが更新されていく様子を表わし
ており、第3図(a)から第3図(b)へ、そして第3
図(c)の状態へと更新されてい<(n=10のとき)
Figure 3 shows how the page management table is updated when an access actually occurs to a logical address, from Figure 3(a) to Figure 3(b), and then to Figure 3(b).
Updated to the state shown in figure (c)<(when n=10)
.

第3図において、18.19ともに主記憶装置上にある
ページテーブルであるが、18は主記憶上にページを持
つものに説明上■〜■があることを表し、19は外部記
憶装置上にページを持つものに説明上■〜0があること
を表しており、20は18の■〜■の中の主記憶に存在
するページの中で最もアクセス回数が少ないページID
を管理するエリアを表わしており、21は■〜0の中の
外部記憶装置中に存在するページの中で最もアクセス回
数が多いページIDを管理するエリアを表しており、2
2〜24.25〜27は更新の様子を表しているが、こ
hらは後述の″動作”で説明する。
In Fig. 3, both 18 and 19 are page tables located on the main memory, but 18 represents those with pages on the main memory that have ■ to ■ for explanation purposes, and 19 represents those that have pages on the external storage. For the purpose of explanation, it means that those with pages have ■ ~ 0, and 20 is the page ID that has been accessed the least number of times among the pages existing in the main memory among the 18 ■ ~ ■.
21 represents the area for managing the page ID that has been accessed the most among the pages existing in the external storage device from ■ to 0, and 2
2 to 24 and 25 to 27 represent the updating process, which will be explained in "Operation" below.

次に、動作について説明する。CPU14が主記憶装置
l又は外部記憶装置9をアクセスする際、第1図の比較
回路4でまず主記憶装置l中に存在するページの中でも
っともアクセス回数の少ないページのページIDを第3
図の20のエリアに格納し、又、主記憶中に存在しない
ページの中でもっともアクセス回数の多いページのペー
ジIDを第3図の21に格納する。
Next, the operation will be explained. When the CPU 14 accesses the main memory device 1 or the external memory device 9, the comparison circuit 4 in FIG.
It is stored in area 20 in the figure, and the page ID of the page that has been accessed the most among pages not present in the main memory is stored in area 21 in FIG.

比較回路4は、さらに、20及び21の7クセス回数を
比較し、もし、(20の内容) < (21の内容)で
あった場合には、トリガ発生回路6に対してトリガ要求
を出力する。そして、トリガ発生回路6はタイマ回路8
に対してカウント指示を出力する。また、タイマカウン
ト中に新たなトリガ要求がなく、規定時間をカウントす
ると、タイマ回路8は割込みコントローラ11に対して
割込み要求を出力する。そして、割込みコントローラ1
1はCPU14に対してページ更新の割込み要求を出力
し、CPU14は、そこから割込み処理を実行する。
Comparison circuit 4 further compares the number of 7 accesses of 20 and 21, and if (contents of 20) < (contents of 21), outputs a trigger request to trigger generation circuit 6. . The trigger generation circuit 6 is a timer circuit 8.
Outputs count instructions for. Furthermore, when there is no new trigger request during timer counting and the specified time has been counted, the timer circuit 8 outputs an interrupt request to the interrupt controller 11. And interrupt controller 1
1 outputs a page update interrupt request to the CPU 14, and the CPU 14 executes interrupt processing from there.

第3図は割込み発生後のページの更新される様子を表し
ており、割込みが発生するということは(20の内容)
<(21の内容)であるので、まず、21の■がアクセ
ス回数が最大であり、■のアクセス回数が最小であるの
で、それぞれの内容がスワップされる。このとき、■の
内容は、1回アクセスされたため、アクセス回数を26
回(25十1)となる(22〜24の流れ参照)。又同
時に20.21の内容もこのとき更新され、それぞれ■
、0となる(第3図(b))。
Figure 3 shows how the page is updated after an interrupt occurs, and the occurrence of an interrupt means (contents of 20)
Since <(contents of 21), first, since the number of accesses of 21 is the maximum, and the number of accesses of 21 is the minimum, the contents of each are swapped. At this time, the content of ■ has been accessed once, so the number of accesses has been increased to 26.
(251 times) (see steps 22 to 24). At the same time, the contents of 20.21 were also updated at this time, and each
, becomes 0 (Fig. 3(b)).

同様な考え方で、第3図(b)で、■と0がスワップさ
れる(スワップ後の状態は第3図(C))。
Using the same idea, ■ and 0 are swapped in FIG. 3(b) (the state after the swap is shown in FIG. 3(C)).

この状態では(20の内容)>(21の内容)である為
、これ以上は、外部記憶のページに対するアクセスが発
生して、(20の内容) < (21の内容)となるま
では割込みは発生しない。
In this state, (contents of 20) > (contents of 21), so no further interruptions will be made until an access to the external memory page occurs and (contents of 20) < (contents of 21). Does not occur.

尚、上述の割込み処理はCPUのデータバスが空いてい
る時間を利用し、本割込み処理の時間を軽減するものと
する。
It is assumed that the above-mentioned interrupt processing utilizes the time when the data bus of the CPU is idle to reduce the time required for the main interrupt processing.

このように、最もひんばんにアクセスされるページを、
タイマ回路を使用した割込み発生回路を用い、タスクの
切り変り目等で次タスクで必要となるページをバスの空
き時間等を利用し、主記憶装置上に引き込んでくること
でページフォールトの割込み発生数を最小限におさえ、
システムのスルーフットを向上させることができる。
In this way, the most frequently accessed pages can be
Using an interrupt generation circuit that uses a timer circuit, the number of page fault interrupts generated can be reduced by using bus idle time to retrieve pages needed for the next task at the time of a task change, etc., into the main memory. to a minimum,
The through-foot of the system can be improved.

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

以上説明した様に本発明は、最もひんばんにアクセスさ
れるページを、タイマ回路を使用した割込み発生回路を
用い、タスクの切り変り目等で次タスクで必要となるペ
ージをバスの空き時間等を利用し、主記憶装置上に引き
込んでくることで、ページフォールトの割込み発生数を
最小限におさえ、システムのスループットを向上させる
という効果がある。
As explained above, the present invention uses an interrupt generation circuit using a timer circuit to select pages that are accessed most frequently, and to select pages that will be needed for the next task at the time of a task change, etc. by checking the available bus time, etc. By using the data and pulling it into the main memory, the number of page fault interrupts can be minimized and system throughput can be improved.

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

第1図は本発明の一実施例のブロック図、第2図はペー
ジアクセス管理テーブルの詳細図、第3図はページが更
新される様子を示した図である。 1・・・・・・主記憶装置、2・・・・・・ページアク
セス管理テーブル、3・・・・・・データバス、4・・
・・・・比較回路、5・・・・・・比較回路からの出力
信号、6・・・・・・トリガ発生回路、7・・・・・・
トリガ発生回路からの出力信号、8・・・・・・タイマ
回路、9・・・・・・外部記憶装置、10・・・・・割
込み要求信号、11・・・・・・割込みコントローラー
 12・・・・・・割込み要求信号、13・・・・・・
割込みコントローラからの出力信号、14・・・・・・
CPU、15・・・・・・ページID、16・・・・・
・アクセスカウントエリア、17・・・・・・その他の
制御ビット、18゜19・・・・・・ページ管理テーブ
ル具体図、20・・・・・・ページIDでアクセスが最
小のものを表すエリア、21・・・・・・ページIDで
アクセスが最大のものを表わすエリア、22〜24.2
5〜27・・・・・・更新の為の矢印。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a detailed diagram of a page access management table, and FIG. 3 is a diagram showing how a page is updated. 1...Main storage device, 2...Page access management table, 3...Data bus, 4...
... Comparison circuit, 5 ... Output signal from the comparison circuit, 6 ... Trigger generation circuit, 7 ...
Output signal from trigger generation circuit, 8... Timer circuit, 9... External storage device, 10... Interrupt request signal, 11... Interrupt controller 12. ...Interrupt request signal, 13...
Output signal from interrupt controller, 14...
CPU, 15...Page ID, 16...
・Access count area, 17...Other control bits, 18゜19...Specific diagram of page management table, 20...Area representing the least accessed page ID , 21... Area representing the most accessed page ID, 22 to 24.2
5-27...Arrow for updating.

Claims (1)

【特許請求の範囲】 主記憶装置におけるページの管理情報内のページアクセ
ス回数を比較演算し、最も多くアクセスされるページを
選択するための比較回路と、前記比較回路からの出力を
受け、出力からハードウェアのトリガーを発生させるト
リガー発生回路と、 前記トリガー発生回路からのトリガーを受け、あらかじ
め定められた設定回数をカウントし、そのカウント終了
時ストローブ信号を出力し、又カウント途中に前記トリ
ガー発生回路からのトリガーが発生した場合、再び初期
設定値からカウントを開始するタイマ回路とを有するこ
とを特徴とする情報処理装置。
[Scope of Claims] A comparison circuit for comparing and calculating the number of page accesses in management information of pages in a main storage device and selecting the most frequently accessed page; and a comparison circuit for receiving an output from the comparison circuit; A trigger generation circuit that generates a hardware trigger; and a trigger generation circuit that receives the trigger from the trigger generation circuit, counts a predetermined number of times, outputs a strobe signal when the count ends, and outputs a strobe signal during the count. 1. An information processing device comprising: a timer circuit that restarts counting from an initial setting value when a trigger occurs.
JP1286283A 1989-11-02 1989-11-02 Information processor Pending JPH03147157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1286283A JPH03147157A (en) 1989-11-02 1989-11-02 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1286283A JPH03147157A (en) 1989-11-02 1989-11-02 Information processor

Publications (1)

Publication Number Publication Date
JPH03147157A true JPH03147157A (en) 1991-06-24

Family

ID=17702365

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1286283A Pending JPH03147157A (en) 1989-11-02 1989-11-02 Information processor

Country Status (1)

Country Link
JP (1) JPH03147157A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004133934A (en) * 2002-10-04 2004-04-30 Microsoft Corp Method and mechanism for proactive memory control
US8909861B2 (en) 2004-10-21 2014-12-09 Microsoft Corporation Using external memory devices to improve system performance
US8914557B2 (en) 2005-12-16 2014-12-16 Microsoft Corporation Optimizing write and wear performance for a memory
US8955418B2 (en) 2013-03-08 2015-02-17 Black & Decker Inc. Threaded fastener driving tool
US9032151B2 (en) 2008-09-15 2015-05-12 Microsoft Technology Licensing, Llc Method and system for ensuring reliability of cache data and metadata subsequent to a reboot
US9361183B2 (en) 2008-09-19 2016-06-07 Microsoft Technology Licensing, Llc Aggregation of write traffic to a data store

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4724362B2 (en) * 2002-10-04 2011-07-13 マイクロソフト コーポレーション Proactive memory management methods and mechanisms
JP2004133934A (en) * 2002-10-04 2004-04-30 Microsoft Corp Method and mechanism for proactive memory control
US9317209B2 (en) 2004-10-21 2016-04-19 Microsoft Technology Licensing, Llc Using external memory devices to improve system performance
US8909861B2 (en) 2004-10-21 2014-12-09 Microsoft Corporation Using external memory devices to improve system performance
US9690496B2 (en) 2004-10-21 2017-06-27 Microsoft Technology Licensing, Llc Using external memory devices to improve system performance
US8914557B2 (en) 2005-12-16 2014-12-16 Microsoft Corporation Optimizing write and wear performance for a memory
US9529716B2 (en) 2005-12-16 2016-12-27 Microsoft Technology Licensing, Llc Optimizing write and wear performance for a memory
US11334484B2 (en) 2005-12-16 2022-05-17 Microsoft Technology Licensing, Llc Optimizing write and wear performance for a memory
US9032151B2 (en) 2008-09-15 2015-05-12 Microsoft Technology Licensing, Llc Method and system for ensuring reliability of cache data and metadata subsequent to a reboot
US10387313B2 (en) 2008-09-15 2019-08-20 Microsoft Technology Licensing, Llc Method and system for ensuring reliability of cache data and metadata subsequent to a reboot
US9361183B2 (en) 2008-09-19 2016-06-07 Microsoft Technology Licensing, Llc Aggregation of write traffic to a data store
US9448890B2 (en) 2008-09-19 2016-09-20 Microsoft Technology Licensing, Llc Aggregation of write traffic to a data store
US10509730B2 (en) 2008-09-19 2019-12-17 Microsoft Technology Licensing, Llc Aggregation of write traffic to a data store
US8955418B2 (en) 2013-03-08 2015-02-17 Black & Decker Inc. Threaded fastener driving tool

Similar Documents

Publication Publication Date Title
US5542076A (en) Method and apparatus for adaptive interrupt servicing in data processing system
AU637543B2 (en) Receiving buffer control system
US5287471A (en) Data transfer controller using direct memory access method
JPS6235949A (en) Memory device
US7426728B2 (en) Reducing latency, when accessing task priority levels
EP0454605A2 (en) Bus request device in a direct memory access (DMA) system
JP3444154B2 (en) Memory access control circuit
US5813042A (en) Methods and systems for control of memory
JPH03147157A (en) Information processor
US6976110B2 (en) Method and apparatus for reducing interrupt latency by dynamic buffer sizing
JP3446653B2 (en) Data transfer device
JPH0556543B2 (en)
JPH0551933B2 (en)
EP0410382A2 (en) Data transfer controller using direct memory access method
US11681527B2 (en) Electronic device and multiplexing method of spatial
US12099456B2 (en) Command processing circuitry maintaining a linked list defining entries for one or more command queues and executing synchronization commands at the queue head of the one or more command queues in list order based on completion criteria of the synchronization command at the head of a given command queue
US20050044328A1 (en) Methods and apparatus for maintaining coherency in a multi-processor system
JPS6242247A (en) Cache memory control system
US20240241845A1 (en) Command processing circuitry maintaining a linked list defining entries for one or more command queues and executing synchronization commands at the queue head of the one or more command queues in list order based on completion criteria of the synchronization command at the head of a given command queue
WO2023125248A1 (en) Memory bandwidth control method and apparatus, and electronic device and storage medium
JPH06161891A (en) Computer system and cache control method for cache control means
JP2679440B2 (en) Information processing device
JPH09146839A (en) Cache memory controller
JP2024030316A (en) Processing apparatus, processing program, and processing method
JPH02307123A (en) Computer