Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0555902B2 - - Google Patents
[go: Go Back, main page]

JPH0555902B2 - - Google Patents

Info

Publication number
JPH0555902B2
JPH0555902B2 JP62002233A JP223387A JPH0555902B2 JP H0555902 B2 JPH0555902 B2 JP H0555902B2 JP 62002233 A JP62002233 A JP 62002233A JP 223387 A JP223387 A JP 223387A JP H0555902 B2 JPH0555902 B2 JP H0555902B2
Authority
JP
Japan
Prior art keywords
swapping
page
channel program
unit
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.)
Expired - Fee Related
Application number
JP62002233A
Other languages
Japanese (ja)
Other versions
JPS63168753A (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
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 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)

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 on a record-by-record basis, 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, a page table update means, and a slot map update means. and a channel program execution means for executing 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 a number of records equal to the number of pages in the main memory that the job is using; The slot map update 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, upon receiving the above notification, the channel program creation means transfers the contents of the main memory corresponding to each page descriptor of the page table to the address on the swapping secondary storage of each record notified by the slot map update means for each page. Create a channel program to execute the program 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 secondary storage for swapping of each record, and the page table changing means informs the page table changing means of the address on the secondary storage for swapping of the notified record. Change to address.

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

しかしながら従来のスワツピング方式ではレコ
ード単位でスワツピング用二次記憶の使用状況を
保持し更新しているので、例えばスワツピング用
二次記憶に連続する30個の空きレコードがあつた
とき、あるジョブのスワツプアウトのために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, when there are 30 consecutive empty records in the swapping secondary storage, the swapout of a certain job is Therefore, when 29 records are used, one isolated empty record may occur. As swapping is repeated, the addresses of free records on the swapping secondary storage become discontinuous,
Therefore, since the addresses of free records reserved for swap-out are also discontinuous, there is a drawback that the seek time and rotational wait time of the magnetic disk increase when a channel program is executed, and the swapping performance deteriorates. 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]

本発明の高速スワツピング方式は、ページが存
在する場所を保持するページ記述子のテーブルで
あるページテーブルと、ページ単位でレコード化
されたスワツピング用二次記憶と、複数の連続し
たトラツクを1単位として前記スワツピング用二
次記憶の使用状況を保持するユニツトマツプと、
前記ページ記述子の内容を前記スワツピング用二
次記憶のユニツトの先頭のアドレスとするように
前記ページテーブルの内容を更新するページテー
ブル更新手段と、スワツピング要求が指示するペ
ージ数を満たす最小のユニツト数を確保するよう
に前記ユニツトマツプの内容を更新するユニツト
マツプ更新手段と、前記ページテーブル更新手段
と前記ユニツトマツプ更新手段とを使つて前記主
記憶と前記スワツピング用二次記憶との間のチヤ
ネルプログラムを作成するチヤネルプログラム作
成手段と、前記チヤネルプログラムを実行するチ
ヤネルプログラム実行手段とを有する。
The high-speed swapping method of the present invention consists of a page table which is a table of page descriptors that holds the locations where pages exist, a secondary memory for swapping where records are recorded in units of pages, and a plurality of consecutive tracks as one unit. a unit map that maintains the usage status of the swapping secondary storage;
page table updating means for updating the contents of the page table so that the contents of the page descriptor become the first address of the unit of the swapping secondary storage; and a minimum number of units satisfying the number of pages specified by the swapping request. A channel program between the main memory and the swapping secondary memory is created using unit map updating means for updating the contents of the unit map so as to ensure the following: the page table updating means and the unit map updating means; It has a channel program creation means 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と、ページ単位でレコ
ード化されたスワツピング用二次記憶30と、ユ
ニツト単位でスワツピング用二次記憶30の使用
状況を保持するユニツトマツプ40と、ページテ
ーブル20の内容を更新するページテーブル更新
手段50と、ユニツトマツプ40の内容を更新す
るユニツトマツプ更新手段60と、ページテーブ
ル更新手段50とユニツトマツプ更新手段60と
を用いて主記憶10とスワツピング用二次記憶3
0との間のチヤネルプログラムを作成するチヤネ
ルプログラム作成手段70と、前記チヤネルプロ
グラムを実行するチヤネルプログラム実行手段8
0とから構成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, the high-speed swapping method consists of a main memory 10 that is divided into pages, a page table 20 that is a table of page descriptors 21 that holds the locations where pages exist, and a swapping memory that is made into records for each page. a unit map 40 that maintains the usage status of the secondary storage 30 for swapping on a unit-by-unit basis, a page table update means 50 that updates the contents of the page table 20, and a unit map update means 60 that updates the contents of the unit map 40. The page table update means 50 and the unit map update means 60 are used to update the main memory 10 and the swapping secondary memory 3.
a channel program creating means 70 for creating a channel program between
It consists of 0.

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

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

このとき第2図に示すようにジヨブAのスワツ
プアウト要求が入力された場合、チヤネルプログ
ラム作成手段70は“(ユニツト数)×(ユニツト
毎のページ数)>(ジヨブAが使用中の主記憶にあ
るページ数)”を満たす最小のユニツト数を計算
し、ユニツトマツプ更新手段60に前記ユニツト
数を確保するよう要求する。そしてユニツトマツ
プ更新手段60はユニツトマツプ40を参照して
空きユニツトを確保し、各ユニツトの先頭レコー
ドのスワツピング用二次記憶30上のアドレスを
チヤネルプログラム作成手段70に通知する。
At this time, if a swap-out request for job A is input as shown in FIG. The minimum number of units that satisfies "a certain number of pages" is calculated, and the unit map updating means 60 is requested to secure the number of units. The unit map updating means 60 then refers to the unit map 40 to secure empty units, 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 converts the contents of the main memory 10 corresponding to each page descriptor 21 of the page table 20 into a swapping file for the first record of each unit notified by the unit map update means 60. Create a channel program to transfer to the next storage address. At this time, as shown in FIG. 3a, the addresses on the swapping secondary storage 30 are consecutive for records in the same unit, so
Seeking and waiting for rotation are unnecessary. In addition, Fig. 3b
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 swap the contents of each page on the main memory 10. 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 means 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……ページテーブル、2
1……ページ記述子、30……スワツピング用二
次記憶、40……ユニツトマツプ、50……ペー
ジテーブル更新手段、60……ユニツトマツプ更
新手段、70……チヤネルプログラム作成手段、
80……チヤネルプログラム実行手段。
FIG. 1 is a configuration diagram showing one embodiment of the present invention, and FIG.
The figure is an explanatory diagram showing the case where a swapping request for job A is input (before processing). Figure 3 is an explanatory diagram showing a channel program that is created and executed when a swapping request for job A is input.
The figure is an explanatory diagram showing a case where a swapping request for job A is input (after processing). 10...Main memory, 20...Page table, 2
1...Page descriptor, 30...Secondary storage for swapping, 40...Unit map, 50...Page table update means, 60...Unit map update means, 70...Channel program creation means,
80...Channel program execution means.

Claims (1)

【特許請求の範囲】 1 ページングによる仮想記憶方式を実装する情
報処理システムにおいて、 ページが存在する場所を保持するページ記述子
のテーブルであるページテーブルと、 ページ単位でレコード化されたスワツピング用
二次記憶と、 複数の連続したトラツクを1単位として前記ス
ワツピング用二次記憶の使用状況を保持するユニ
ツトマツプと、 前記ページ記述子の内容を前記スワツピング用
二次記憶のユニツトの先頭のアドレスとするよう
に前記ページテーブルの内容を更新するページテ
ーブル更新手段と、 スワツピング要求が指示するページ数を満たす
最小のユニツト数を確保するように前記ユニツト
マツプの内容を更新するユニツトマツプ更新手段
と、 前記ページテーブル更新手段と前記ユニツトマ
ツプ更新手段とを使つて前記主記憶と前記スワツ
ピング用二次記憶との間のチヤネルプログラムを
作成するチヤネルプログラム作成手段と、 前記チヤネルプログラムを実行するチヤネルプ
ログラム実行手段とを有することを特徴とする高
速スワツピング方式。
[Claims] 1. In an information processing system that implements a virtual storage method using paging, there is a page table which is a table of page descriptors that holds the location where a page exists, and a secondary swapping table that is a record for each page. a unit map for retaining the usage status of the swapping secondary storage with a plurality of continuous tracks as one unit; and a unit map configured to set the contents of the page descriptor as the start address of the unit of the swapping secondary storage. page table updating means for updating the contents of the page table; unit map updating means for updating the contents of the unit map so as to ensure a minimum number of units satisfying the number of pages specified by the swapping request; and the page table updating means. The apparatus is characterized by comprising a channel program creating means for creating a channel program between the main memory and the swapping secondary memory using the unit map updating means, and a channel program executing means for executing the channel program. High-speed swapping method.
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 JPS63168753A (en) 1988-07-12
JPH0555902B2 true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8832411B2 (en) * 2011-12-14 2014-09-09 Microsoft Corporation Working set swapping using a sequentially ordered swap file

Also Published As

Publication number Publication date
JPS63168753A (en) 1988-07-12

Similar Documents

Publication Publication Date Title
JP2582520B2 (en) Data transfer method between memory and auxiliary storage device
JP2586219B2 (en) High-speed media priority release exclusion method
JPS59167761A (en) computer system
KR890017640A (en) File system
JPH0555902B2 (en)
JPH01134642A (en) Controlling and processing system for data base
US5404549A (en) Method for efficient access of data stored in a nexus table using queue tag indexes in a table portion
JPH06110766A (en) Directory storage method of split storage file system and computer system
JPS62163154A (en) Virtual logic volume system
JPH07319839A (en) Distributed shared memory management method and network computer system
JPS58201158A (en) Data storage processing system
JPS61221842A (en) Computer system
JPH04350741A (en) Access speed increasing method for indexed sequential file
JPH04242843A (en) Subfile management system
JPS5818747A (en) File controlling system
JPS62108346A (en) Inter-process communication system
JPS62287349A (en) Space allocation control method for mass memory device by logical sector bit map
JPH04349524A (en) Data managing device
JPH0432419B2 (en)
JPH02203480A (en) Magnetic disk controller
JPH01197854A (en) Migration recall system for file
JPH0333949A (en) File memory device
JPS59172186A (en) Cache memory control system
JPS6053326B2 (en) Double data recording method for input/output control equipment
JPS63216121A (en) Auxiliary storage file access system

Legal Events

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