JPS63168753A - High-speed swapping system - Google Patents

High-speed swapping system

Info

Publication number
JPS63168753A
JPS63168753A JP62002233A JP223387A JPS63168753A JP S63168753 A JPS63168753 A JP S63168753A JP 62002233 A JP62002233 A JP 62002233A JP 223387 A JP223387 A JP 223387A JP S63168753 A JPS63168753 A JP S63168753A
Authority
JP
Japan
Prior art keywords
swapping
unit
channel program
secondary storage
page table
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.)
Granted
Application number
JP62002233A
Other languages
Japanese (ja)
Other versions
JPH0555902B2 (en
Inventor
Koichi Yanagihara
柳原 幸一
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 JP62002233A priority Critical patent/JPS63168753A/en
Publication of JPS63168753A publication Critical patent/JPS63168753A/en
Publication of JPH0555902B2 publication Critical patent/JPH0555902B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To attain high-speed swapping by providing a means for generating a channel program between a main storage and a secondary storage for swapping while using a page table updating means and a unit map updating means to decreased the seek time and the rotation waiting time of a magnetic disk. CONSTITUTION:When a swap-out request of a job A is inputted, a channel program generating means 7 calculates a minimum unit number and a unit map updating means 60 informs an address on the swapping secondary storage 30 for a head record of each unit to a channel program generating means 70. When the notice is received, the program generating means 70 generates a channel program transferring the content of the main storage 10 corresponding to each page descriptor 21 of the page table 20 to an address on the secondary storage for swapping of a head record of each unit information from the unit amp updating means 60 at each unit. Thus, the seek time and rotation waiting time of a magnetic disk are decreased.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はページングによる仮想記憶方式を実装する情報
処理システムにおける高速スワツピング方式に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a high-speed swapping method in an information processing system implementing a virtual storage method using paging.

〔従来の技術〕[Conventional technology]

従来、ページングによる仮想記憶方式を実装する情報処
理システムにおけるスワツピング方式は、ページが存在
する場所を保持するページ記述子のテーブルであるペー
ジテーブルと、ページ単位でレコード化されたスワツピ
ング用二次記憶と、レコード単位でスワツピング用二次
記憶の使用状況を保持するスロットマツプと、ページテ
ープルの内容を更新するページテーブル更新手段と、ス
ロットマツプの内容を更新するスロットマツプ更新手段
と、ページテーブル更新手段とスロットマツプ更新手段
とを使って主記憶とスワツピング用二次記憶との間のチ
ャネルプログラムを作成するチャネルプログラム作成手
段と、チャネルプログラムを実行するチャネルプログラ
ム実行手段を有して構成されている。
Traditionally, the swapping method in information processing systems that implement a virtual memory method using paging consists of a page table, which is a table of page descriptors that holds the locations where pages exist, and a secondary memory for swapping that records each page. , a slot map that maintains the usage status of secondary storage for swapping in record units, a page table update means that updates the contents of a page table, a slot map update means that updates the contents of the slot map, and a page table update means. The channel program creating means creates a channel program between the main memory and the swapping secondary memory using the slot map updating means, and the channel program executing means runs the channel program.

このようなスワツピング方式においてジョブのスワップ
アウト要求が入力された場合、チャネルプログラム作成
手段は、スロットマツプ更新手段に対してジョブが使用
中の主記憶にあるページ数に等しいレコード数を確保す
るよう要求し、スロットマツプ更新手段はスロットマツ
プを参照して空きレコードを確保し各レコードのスワツ
ピング用二次記憶上のアドレスをチャネルプログラム作
成手段に通知する。
When a job swap-out request is input in such a swapping method, the channel program creation means requests the slot map update means to secure the number of records equal to the number of pages in the main memory that the job is using. The slot map updating means refers to the slot map, secures empty records, and notifies the channel program creation means of the address of each record in the swapping secondary storage.

さらにチャネルプログラム作成手段は上記の通知を受は
取るとページテーブルの各ページ記述子に対応する主記
憶の内容をページ毎にスロットマツプ更新手段より通知
された各レコードのスワツピング用二次記憶上のアドレ
スに転送するチャネルプログラムを作成し、その実行を
チャネルプログラム実行手段に要求する。そしてチャネ
ルプログラム実行手段は上記のチャネルプログラムを実
行して主記憶上の各ページの内容をスワツピング用二次
記憶に転送する。
Furthermore, when the channel program creation means receives the above notification, the contents of the main memory corresponding to each page descriptor of the page table are transferred to the secondary storage for swapping of each record notified by the slot map updating means for each page. Create a channel program to be transferred to the address and request the channel program execution means to execute it. Then, the channel program execution means executes the above channel program and transfers the contents of each page on the main memory to the swapping secondary memory.

最後にチャネルプログラム作成手段はページテーブル変
更手段に各レコードのスワツピング用二次記憶上のアド
レスを通知し、ページテーブル変更手段はページ記述子
の内容を通知されたレコードのスワツピング用二次記憶
上のアドレスに変更する。
Finally, the channel program creation means notifies the page table changing means of the address on the swapping secondary storage of each record, and the page table changing means informs the page table changing means of the address of the swapping secondary storage of the record that has been notified of the contents of the page descriptor. Change to address.

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

しかしながら従来のスワツピング方式ではレコード単位
でスワツピング用二次記憶の使用状況を保持し更新して
いるので、例えばスワツピング用二次記憶に連続する3
0個の空きレコードがあったとき、あるジョブのスワッ
プアウトのために29レコードを使用した場合に1個の
孤立した空きレコードが発生するようなことが起る。そ
してスワツピングを繰り返すに従ってスワツピング用二
次記憶上の空きレコードのアドレスが不連続になり、し
たがってスワップアウトのために確保する空きレコード
のアドレスも不連続になるので、チャネルプログラムの
実行時に磁気ディスクのシーク時間や回転待ち時間が増
加してスワツピングの性能が低下するという欠点がある
。 本発明の目的はこのようなスワツピングエリアの不
連続を回避するようにして上記の欠点を改善した高速ス
ワツピング方式を提供することにある。
However, in the conventional swapping method, the usage status of the swapping secondary storage is maintained and updated on a record-by-record basis, so for example, 3 consecutive swapping secondary storage
When there are 0 free records, if 29 records are used to swap out a certain job, one isolated free record may occur. As swapping is repeated, the addresses of free records on the secondary storage for swapping become discontinuous, and therefore the addresses of free records reserved for swapping also become discontinuous. This method has the disadvantage that swapping performance is degraded due to an increase in time and rotational waiting time. SUMMARY OF THE INVENTION An object of the present invention is to provide a high-speed swapping method that avoids such discontinuity in swapping areas and improves the above-mentioned drawbacks.

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

本発明のスワツピング方式は、ページングによる仮想記
憶方式を実装する情報処理システムにおいて、ページが
存在する場所を保持するページ記述子のテーブルである
ページテーブルと、ページ単位でレコード化されたスワ
ツピング用二次記憶と、ユニット単位で前記スワツピン
グ用二次記憶の使用状況を保持するユニットマツプと、
前記ページテーブルの内容を更新するページテーブル更
新手段と、前記ユニットマツプの内容を更新するユニッ
トマツプ更新手段と、前記ページテーブル更新手段と前
記ユニットマツプ更新手段とを使って前記主記憶と前記
スワツピング用二次記憶との間のチャネルプログラムを
作成するチャネルプログラム作成手段と、前記チャネル
プログラムを実行するチャネルプログラム実行手段とか
ら構成される。
The swapping method of the present invention is implemented in an information processing system that implements a virtual memory method using paging. a unit map that maintains the usage status of the swapping secondary storage on a unit-by-unit basis;
page table updating means for updating the contents of the page table; unit map updating means for updating the contents of the unit map; and using the page table updating means and the unit map updating means, the main memory and the swapping It is comprised of a channel program creation means for creating a channel program to and from secondary storage, and a channel program execution means for executing the channel program.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示す構成図である。同図に
おいて高速スワツピング方式は、ページ単位に分割され
た主記憶10と、ページが存在する場所を保持するペー
ジ記述子21のテーブルであるページテーブル20と、
ページ単位でレコード化されたスワツピング用二次記憶
3oと、ユニット単位でスワツピング用二次記憶30の
使用状況を保持するユニットマツプ4oと、ページテー
ブル20の内容を更新するページテーブル更新手段50
と、ユニットマツプ40の内容を更新するユニットマツ
プ更新手段60と、ページテーブル更新手段50とユニ
ットマツプ更新手段60とを用いて主記憶10とスワツ
ピング用二次記憶30との間のチャネルプログラムを作
成するチャネルプログラム作成手段70と、前記チャネ
ルプログラムを実行するチャネルプログラム実行手段8
0とから構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, the high-speed swapping method includes a main memory 10 divided into pages, a page table 20 that is a table of page descriptors 21 that holds the locations where pages exist,
A swapping secondary storage 3o that is recorded in units of pages, a unit map 4o that holds the usage status of the swapping secondary storage 30 in units of units, and a page table update means 50 that updates the contents of the page table 20.
A channel program between the main memory 10 and the swapping secondary memory 30 is created using a unit map update means 60 for updating the contents of the unit map 40, a page table update means 50, and a unit map update means 60. channel program creation means 70 for executing the channel program; and channel program execution means 8 for executing the channel program.
It consists of 0.

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

スワツピング用二次記憶30は1トラツクが4レコード
であり、ユニットマツプ40は2トラツクく8レコード
)を1ユニツトとしてスワツピング用二次記憶30の使
用状況を保持しているとする。
It is assumed that one track of the swapping secondary storage 30 has four records, and the unit map 40 holds the usage status of the swapping secondary storage 30 with two tracks (eight records) as one unit.

このとき第2図に示すようにジョブAのスワップアウト
要求が入力された場合、チャネルプログラム作成手段7
0は゛(ユニット数)×(ユニット毎のページ数)〉(
ジョブAが使用中の主記憶にあるページ数)”を満たす
最小のユニット数を計算し、ユニットマツプ更新手段6
0に前記ユニット数を確保するよう要求する。そしてユ
ニットマツプ更新手段60はユニットマツプ40を参照
して空きユニットを確保し、各ユニットの先頭レコード
のスワツピング用二次記憶30上のアドレスをチャネル
プログラム作成手段70に通知する。
At this time, if a swap-out request for job A is input as shown in FIG.
0 is ゛(number of units) x (number of pages per unit)〉(
The unit map updating means 6
0 to secure the above number of units. Then, the unit map updating means 60 refers to the unit map 40, secures a vacant unit, and notifies the channel program creating means 70 of the address on the swapping secondary storage 30 of the first record of each unit.

チャネルプログラム作成手段70は前記通知を受は取る
と、ページテーブル20の各ページ記述子21に対応す
る主記憶10の内容をユニット毎にユニットマツプ更新
手段60より通知された各ユニットの先頭レコードのス
ワツピング用二次記憶上のアドレスに転送するチャネル
プログラムを作成する。このとき第3図(a>に示すよ
うに、同一ユニット内のレコードに関してはスワツピン
グ用二次記憶30上のアドレスが連続しているので、シ
ークや回転待ちは不必要である。なお第3図(b)は従
来のスワツピング方式のプログラム構成例を示す。
Upon receiving the notification, the channel program creation means 70 updates the contents of the main memory 10 corresponding to each page descriptor 21 of the page table 20 for each unit of the first record of each unit notified by the unit map updating means 60. Create a channel program to transfer to an address on the swapping secondary storage. At this time, as shown in FIG. 3 (a), the addresses on the swapping secondary storage 30 are consecutive for records in the same unit, so there is no need to seek or wait for rotation. (b) shows an example of the program configuration of the conventional swapping method.

次にチャネルプログラム作成手段70はチャネルプログ
ラム実行手段80に対して前記チャネルプログラムの実
行を要求し、チャネルプログラム実行手段80は前記チ
ャネルプログラムを実行して主記憶10上の各ページの
内容をスワツピング用二次記憶30に転送する。
Next, the channel program creation means 70 requests the channel program execution means 80 to execute the channel program, and the channel program execution means 80 executes the channel program to save the contents of each page on the main memory 10 for swapping. Transfer to secondary storage 30.

最後にチャネルプログラム作成手段70は、ページテー
ブル変更手段50に各ユニットの先頭レコードのスワツ
ピング用二次記憶上のアドレスを通知する。ページテー
ブル変更手段50は、ページ記述子21の内容を、それ
が転送されたレコードがユニットの先頭であれば通知さ
れたユニットの先頭レコードのスワツピング用二次記憶
上のアドレスに、先頭でなければ前記アドレスに連続す
るアドレスに変更する。
Finally, the channel program creating means 70 notifies the page table changing means 50 of the address on the swapping secondary storage of the first record of each unit. The page table changing unit 50 transfers the contents of the page descriptor 21 to the address on the swapping secondary storage of the notified first record of the unit if the transferred record is the first record of the unit; Change the address to a contiguous address.

チャネルプログラム実行後の状態を第4図に示す。FIG. 4 shows the state after the channel program is executed.

このようにして磁気ディスクのシーク時間や回転待ち時
間が削減されるので、高速なスワツピングが可能となる
In this way, the seek time and rotational waiting time of the magnetic disk are reduced, making high-speed swapping possible.

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

以上、本発明の高速スワツピング方式によれば磁気ディ
スクのシーク時間や回転待ち時間が削減されるので、高
速なスワツピング動作を実現できるという効果がある。
As described above, according to the high-speed swapping method of the present invention, the seek time and rotation waiting time of the magnetic disk are reduced, so that a high-speed swapping operation can be realized.

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

第1図は本発明の一実施例を示す構成図、第2図はジョ
ブAのスワツピング要求が入力された場合(処理前)を
示す説明図、第3図はジョブAのスワツピング要求が入
力された場合に作成され実行されるチャネルプログラム
を示す説明図、第4図はジョブAのスワツピング要求が
入力された場合(処理後)を示す説明図である。 10・・・主記憶、20・・・ページテーブル、21・
・・ページ記述子、30・・・スワツピング用二次記憶
、40・・・ユニットマツプ、50・・・ページテーブ
ル更新手段、60・・・ユニットマツプ更新手段、70
・・・チャネルプログラム作成手段、80・・・チャネ
ルプログラム実行手段。 $ / 図 井 2 図 ((Ll                     
   (ム)稟4 凹
FIG. 1 is a configuration diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram showing a case where a swapping request for job A is input (before processing), and FIG. 3 is an explanatory diagram showing a case where a swapping request for job A is input. FIG. 4 is an explanatory diagram showing a channel program created and executed when a swapping request for job A is input (after processing). 10... Main memory, 20... Page table, 21.
...Page descriptor, 30... Secondary storage for swapping, 40... Unit map, 50... Page table updating means, 60... Unit map updating means, 70
. . . channel program creation means, 80 . . . channel program execution means. $ / Figure 2 Figure ((Ll
(mu) 稟4 concave

Claims (1)

【特許請求の範囲】 ページングによる仮想記憶方式を実装する情報処理シス
テムにおいて、 ページが存在する場所を保持するページ記述子のテーブ
ルであるページテーブルと、 ページ単位でレコード化されたスワッピング用二次記憶
と、 複数の連続したトラックを1単位として前記スワッピン
グ用二次記憶の使用状況を保持するユニットマップと、 前記ページテーブルの内容を更新するページテーブル更
新手段と、 前記ユニットマップの内容を更新するユニットマップ更
新手段と、 前記ページテーブル更新手段と前記ユニットマップ更新
手段とを使って前記主記憶と前記スワッピング用二次記
憶との間のチャネルプログラムを作成するチャネルプロ
グラム作成手段と、 前記チャネルプログラムを実行するチャネルプログラム
実行手段とを有することを特徴とする高速スワッピング
方式。
[Claims] In an information processing system that implements a virtual storage system using paging, there is provided a page table that is a table of page descriptors that holds the locations where pages exist, and a secondary storage for swapping that is recorded in units of pages. a unit map that holds the usage status of the swapping secondary storage with a plurality of consecutive tracks as one unit; a page table update unit that updates the contents of the page table; and a unit that updates the contents of the unit map. map updating means; channel program creating means for creating a channel program between the main memory and the swapping secondary storage using the page table updating means and the unit map updating means; and executing the channel program. and channel program execution means.
JP62002233A 1987-01-07 1987-01-07 High-speed swapping system Granted JPS63168753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62002233A JPS63168753A (en) 1987-01-07 1987-01-07 High-speed swapping system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62002233A JPS63168753A (en) 1987-01-07 1987-01-07 High-speed swapping system

Publications (2)

Publication Number Publication Date
JPS63168753A true JPS63168753A (en) 1988-07-12
JPH0555902B2 JPH0555902B2 (en) 1993-08-18

Family

ID=11523637

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62002233A Granted JPS63168753A (en) 1987-01-07 1987-01-07 High-speed swapping system

Country Status (1)

Country Link
JP (1) JPS63168753A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015506041A (en) * 2011-12-14 2015-02-26 マイクロソフト コーポレーション Working set swap using sequential swap file

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015506041A (en) * 2011-12-14 2015-02-26 マイクロソフト コーポレーション Working set swap using sequential swap file

Also Published As

Publication number Publication date
JPH0555902B2 (en) 1993-08-18

Similar Documents

Publication Publication Date Title
JP2586219B2 (en) High-speed media priority release exclusion method
JPS63168753A (en) High-speed swapping system
JPS62182822A (en) Automatic operation system
JPS61216016A (en) Area control system for data base
JPS58201158A (en) Data storage processing system
JPH0337748A (en) External storage accessing system utilizing main storage
JPS59119386A (en) Buffer area controlling system
JPH0221610B2 (en)
JPS63155338A (en) Control system for record of program executing history
JPH02203480A (en) Magnetic disk controller
JPS6155752A (en) Control of expanded memory device
KR890016452A (en) Information Transfer Method of Virtual Computer System
JPS62108346A (en) Inter-process communication system
JPH05334012A (en) Large capacity disk controller
JPH05113888A (en) Microprocessor unit
JPH04242843A (en) Subfile management system
JPH0362237A (en) Data processing system for data base control system
JPS6269321A (en) Process switching system
JPH04215120A (en) File system
JPH0793199A (en) Storage system
JPH08106363A (en) Multi-disk device
JPH03116355A (en) Message queue control system
JPH05151089A (en) System for data guarantee in memory space
JPH04349524A (en) Data managing device
JPS61264456A (en) Virtual storage system for garbage collection

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees