JPH026094B2 - - Google Patents

Info

Publication number
JPH026094B2
JPH026094B2 JP58188673A JP18867383A JPH026094B2 JP H026094 B2 JPH026094 B2 JP H026094B2 JP 58188673 A JP58188673 A JP 58188673A JP 18867383 A JP18867383 A JP 18867383A JP H026094 B2 JPH026094 B2 JP H026094B2
Authority
JP
Japan
Prior art keywords
page
storage device
external
slot group
dasd
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 - Lifetime
Application number
JP58188673A
Other languages
Japanese (ja)
Other versions
JPS6079448A (en
Inventor
Takashi Nakamura
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP58188673A priority Critical patent/JPS6079448A/en
Publication of JPS6079448A publication Critical patent/JPS6079448A/en
Publication of JPH026094B2 publication Critical patent/JPH026094B2/ja
Granted 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
    • G06F12/12Replacement control

Landscapes

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

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、仮想記憶システムにおけるページ制
御方式に関し、特に実記憶装置からページアウト
されたページを外部記憶装置へ割当てる際の割当
て制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a page control method in a virtual storage system, and more particularly to an allocation control method for allocating pages paged out from a real storage device to an external storage device.

〔技術の背景〕[Technology background]

現在、多くのデータ処理装置において、仮想記
憶システムが採用されている。仮想記憶システム
では、仮想記憶空間がページ管理され、一定数以
下のページが内部ページとして実記憶装置上に設
定され、残りのページが外部ページとして磁気デ
イスク装置などの外部の直接アクセス記憶装置
(以後、外部記憶装置という)上に設定されてい
る。このようなシステムでは、アクセス時間を短
縮するため、実記憶装置上には、処理対象ページ
あるいは使用される可能性の高いページが置かれ
る必要がある。
Currently, many data processing devices employ virtual storage systems. In a virtual storage system, the virtual storage space is page-managed, and a certain number of pages or less are set as internal pages on the real storage device, and the remaining pages are set as external pages on an external direct access storage device such as a magnetic disk device (hereinafter referred to as external storage device). In such a system, in order to shorten access time, pages to be processed or pages that are likely to be used need to be placed on the real storage device.

通常、第1図に示すように、実記憶装置1上に
利用可能なスペースがなくなると、外部記憶装置
に転送(ページアウトという)してよい利用可能
性の少ないページを、ページ置換え機構2によつ
て選択しておき、外部記憶装置3から実記憶装置
1上へ新しいページ4の転送(ページインとい
う)が必要になつたとき、先に選択して置いたペ
ージ5を、外部記憶装置3へページアウトする方
法がとられている。そしてページアウトされた1
個または複数個のページに対しては、外部記憶管
理機構6によつて外部記憶装置3の適当なスロツ
トグループが割当てられ、そこへそれらのページ
が格納される。なおスロツトは、外部記憶装置上
でページが連続格納できる領域をいい、ページと
同じ大きさをもつ。通常1トラツクに複数個のス
ロツトが収納される。またスロツトグループは、
シリンダごとに複数個のスロツトにより構成さ
れ、通常、1トラツク乃至数トラツクの大きさに
相当している。
Normally, as shown in FIG. 1, when there is no more available space on the real storage device 1, pages with low usability that can be transferred to an external storage device (referred to as page-out) are transferred to the page replacement mechanism 2. When it is necessary to transfer a new page 4 from the external storage device 3 to the real storage device 1 (referred to as page-in), the previously selected page 5 is transferred to the external storage device 3. A method is used to page out to. and paged out 1
An appropriate slot group of the external storage device 3 is assigned to one or more pages by the external storage management mechanism 6, and the pages are stored therein. Note that a slot is an area on an external storage device in which pages can be stored consecutively, and has the same size as a page. Usually, multiple slots are stored in one track. In addition, the slot group
Each cylinder is comprised of a plurality of slots, typically corresponding to the size of one to several tracks.

外部記憶管理機構は、上記したように、シリン
ダごとのスロツトグループによつて管理してい
る。
As mentioned above, the external storage management mechanism manages slot groups for each cylinder.

第2図は、従来の外部ページに対するスロツト
グループ割当て制御方式の制御フローを示したも
のであり、第3図は外部記憶管理デーブルを示
す。
FIG. 2 shows a control flow of a conventional slot group allocation control method for external pages, and FIG. 3 shows an external storage management table.

まず、ページアウト要求のあるページ数に応じ
て、外部記憶管理デーブルにより要求数を満たす
空きスロツト数をもつスロツトグループを選択す
る。
First, depending on the number of pages for which a page-out request is made, a slot group having the number of empty slots that satisfies the number of requests is selected from the external storage management table.

第3図において、斜線を付した部分が割当て済
のスロツトを示し、残りが割当て可能なスロツト
を示す。これらの割当て可能なスロツトを含むス
ロツトグループの中から、要求数を満すスロツト
グループのうち最少の空きスロツトをもつ1つの
スロツトグループを選択する。選択ができた場合
には、割当ては終了する。他方、選択できなかつ
た場合には、割当て可能なスロツトをもつとも多
く含むスロツトグループを選択する。このスロツ
トグループが要求数を満たせだ割当てを終了し、
要求数を満たさなければ、次に割当て可能なスロ
ツト数を多く含むスロツトグループをさらに選択
し、これらの2つのスロツトグループを合せて要
求数を満たすか否かを判定し、要求数を満たした
とき割当てを終了する。しかし、なお要求数を満
たさなければ、さらに次のスロツトグループを選
択し、前の2つと合わせて要求数を満たすか否か
を判定する。以下、同様な処理を割当てができる
まで繰り返す。
In FIG. 3, the shaded portions indicate allocated slots, and the remaining portions indicate slots that can be allocated. Among the slot groups containing these allocatable slots, one slot group having the least empty slots is selected among the slot groups that satisfy the requested number. If the selection is successful, the allocation ends. On the other hand, if no selection is possible, a slot group containing the most allocatable slots is selected. Once this slot group meets the requested number, the allocation will be terminated.
If the requested number is not met, the next slot group that has the largest number of allocatable slots is selected, and it is determined whether or not these two slot groups together satisfy the requested number. end the assignment when However, if the required number is still not satisfied, the next slot group is selected and it is determined whether or not the required number is satisfied when combined with the previous two slot groups. Thereafter, similar processing is repeated until the allocation is completed.

このようなページアウトされたページ、すなわ
ち外部ページに対する従来のスロツトグループの
割当て方式は、外部記憶装置の現シリンダ位置
(ヘツド位置)を意識していないため、特にペー
ジフアイル専用の外部記憶装置(主ページ装置)
の場合には、大きなヘツド移動を伴うスロツトグ
ループを割当ててしまう可能性があり、そのた
め、ページング入出力のレスポンスが悪くなる欠
点があつた。
The conventional slot group assignment method for such paged-out pages, that is, external pages, does not take into account the current cylinder position (head position) of the external storage device. main page device)
In this case, there is a possibility of allocating a slot group that involves a large head movement, which has the drawback of worsening paging input/output response.

〔発明の目的および構成〕[Object and structure of the invention]

本発明の目的は、ページング入出口のレスポン
スを改善することにあり、そのため、外部記憶装
置における直前のアクセスのときのヘツド位置に
できるだけ接近したスロツトグループを次に割当
てることにより、ヘツド移動量を減少させる手段
を提供するものである。
The purpose of the present invention is to improve the response of paging input/exit, and for this purpose, the amount of head movement is reduced by allocating the next slot group as close as possible to the head position at the time of the previous access in the external storage device. This provides a means to reduce the

そして、それにより本発明の構成は、実記憶装
置と、外部記憶装置と、該実記憶装置および外部
記憶装置間のページインおよびページアウトを管
理するページング制御手段とを有する仮想記憶シ
ステムにおいて、上記ページング制御手段は、実
記憶装置からページアウトされた外部ページに外
部記憶装置のスロツトグループを割当てる際、直
前にアクセスしたスロツトグループにもつとも近
いスロツトグループから選択を行なうことを特徴
とするものである。
Accordingly, the configuration of the present invention provides the above-mentioned virtual storage system having a real storage device, an external storage device, and a paging control means for managing page-in and page-out between the real storage device and the external storage device. The paging control means is characterized in that when allocating a slot group of the external storage device to an external page paged out from the real storage device, the paging control means selects a slot group that is closest to the slot group accessed immediately before. It is.

〔発明の実施例〕[Embodiments of the invention]

以下に、本発明の詳細を実施例にしたがつて説
明する。
The details of the present invention will be explained below with reference to Examples.

第4図は、本発明の1実施例システムの構成図
である。図中、7は外部記憶管理機構、8はペー
ジフアイル専用DASD(DASDは直接アクセス記
憶装置を表わす、以下同じ)、9は補助DASD、
10は割当て要求ページ数記憶部、11はページ
フアイル専用DASD管理テーブル、12は補助
DASD管理テーブル、13は外部ページ割当て処
理部、14はページフアイル専用DASDヘツド位
置記憶部、15は選択スロツトグループ記憶部を
示す。
FIG. 4 is a configuration diagram of a system according to an embodiment of the present invention. In the figure, 7 is an external storage management mechanism, 8 is a page file dedicated DASD (DASD stands for direct access storage device, the same applies hereinafter), 9 is an auxiliary DASD,
10 is an allocation request page number storage unit, 11 is a DASD management table dedicated to page files, and 12 is an auxiliary unit.
13 is an external page allocation processing section; 14 is a page file dedicated DASD head position storage section; and 15 is a selected slot group storage section.

補助DASD9は、ページフアイル専用DASD8
が外部ページを収容しきれなくなつたときに補助
として使用されるDASDである。
Auxiliary DASD9 is DASD8 dedicated to page files.
This is a DASD that is used as a backup when the external page can no longer be accommodated.

割当て要求ページ数記憶部10にはページアウ
トされるページ数が設定される。
The number of pages to be paged out is set in the allocation requested page number storage unit 10.

ページフアイル専用DASD管理テーブル11お
よび補助DASD管理テーブル12は、それぞれの
DASD上の外部ページの管理テーブルであり、第
3図に示す外部記憶管理テーブルと同じものであ
る。
The page file dedicated DASD management table 11 and the auxiliary DASD management table 12 are
This is a management table for external pages on DASD, and is the same as the external storage management table shown in FIG.

外部ページ割当て処理部13は、各管理テーブ
ルにあるスロツトグループ情報およびDASD上の
ヘツド位置を考慮して、要求されたページ数の外
部ページに割当てるスロツトグループを決定す
る。
The external page allocation processing unit 13 determines slot groups to be allocated to the requested number of external pages, taking into consideration the slot group information in each management table and the head position on the DASD.

ページフアイル専用DASDヘツド位置記憶部1
4には、ページフアイル専用DASD上の1つ前に
割当てたスロツトグループのシリンダ番号、すな
わちヘツド位置が設定される。したがつて、次の
割当てが行なわれたとき、更新あるいは削除(補
助DASDから割当てられたとき)される。
Page file dedicated DASD head position storage section 1
4 is set to the cylinder number of the slot group assigned immediately before on the page file dedicated DASD, that is, the head position. Therefore, it will be updated or deleted (as allocated from the auxiliary DASD) when the next allocation is made.

選択スロツトグループ記憶部15には、割当て
処理において選択された1個または複数個のスロ
ツトグループの位置(番号)が格納される。
The selected slot group storage section 15 stores the positions (numbers) of one or more slot groups selected in the allocation process.

第5図は、外部ページ割当て処理部13の制御
フローを示したものである。以下、このフローに
したがつて本実施例の動作を説明する。
FIG. 5 shows the control flow of the external page allocation processing section 13. The operation of this embodiment will be explained below according to this flow.

まず、ページフアイル専用DASDヘツド位置記
憶部14の内容を調べ、1つ前のアクセスがペー
ジフアイル専用DASDであつた場合には、ページ
フアイル専用DASD管理テーブル11により、そ
のアクセス位置(ヘツド位置)にもつとも近いス
ロツトグループで、ページアウト要求数以上の空
きグループをもつものを割当てる。ページアウト
要求数以上の空きスロツトをもつスロツトグルー
プがなかつた場合には、1つ前のアクセス位置に
もつとも近いスロツトグループで空きスロツトを
もつものを割当て、それがページアウト要求数を
満たさなければ、さらに次々と、近い順に空きス
ロツトをもつスロツトグループを割当てていく。
割当てられたスロツトグループの位置は、選択ス
ロツトグループ記憶部15に順次書き込まれる。
First, the contents of the page file-dedicated DASD head position storage section 14 are checked, and if the previous access was to the page file-dedicated DASD, the page file-dedicated DASD management table 11 is used to determine the access position (head position). Assign the closest slot group that has more free groups than the number of page-out requests. If there is no slot group with free slots equal to or greater than the number of page-out requests, the closest slot group to the previous access position with free slots must be allocated and it must satisfy the number of page-out requests. For example, slot groups with vacant slots are allocated one after another in order of closestness.
The positions of the assigned slot groups are sequentially written into the selected slot group storage section 15.

他方、はじめに1つ前のアクセスがページフア
イル専用フアイルでなかつた場合には、補助
DASD管理テーブル12により、ページアウト要
求数以上の空きスロツトをもつスロツトグループ
を検出し、それが複数あれば、そのうち最少の空
きスロツト数をもつものを割当て、またページア
ウト要求数以上の空きスロツトをもつスロツトグ
ループがなかつた場合には、最多の空きスロツト
をもつスロツトグループを割当て、次々と選択し
たスロツトグループにもつとも近いスロツトグル
ープを割当てていき、ページアウト要求数が満た
されたとき割当て処理を終了する。
On the other hand, if the previous access was not to a page file exclusive file, the auxiliary
Using the DASD management table 12, a slot group with free slots equal to or greater than the number of page-out requests is detected, and if there are multiple slot groups, the slot group with the least number of free slots is assigned, and the slot group with the number of free slots equal to or greater than the number of page-out requests is allocated. If there is no slot group with the number of free slots, the slot group with the largest number of free slots is assigned, and the slot groups closest to the selected slot group are assigned one after another until the number of page-out requests is satisfied. When the allocation process ends.

このように、ページフアイル専用DASD上で
は、常にヘツド移動量が最小となるように割当て
が行なわれ、補助DASD上では、最初の選択を除
いて、同様にヘツド移動量が最小となるように割
当てが行なわれる。
In this way, on the page file dedicated DASD, allocation is always made so that the amount of head movement is minimized, and on the auxiliary DASD, allocation is similarly made so that the amount of head movement is minimized, except for the first selection. will be carried out.

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

以上のように、本発明によれば、外部記憶装置
における外部ページの配置が、ヘツド移動にとも
なうアクセス時間を最小にするように決定される
ため、ページング入出力のレスポンスが改善され
ることができ、特にページフアイル専用DASDが
用いられているシステムでは大きな効果を生じ
る。
As described above, according to the present invention, the arrangement of external pages in the external storage device is determined in such a way as to minimize the access time associated with head movement, so that the response of paging input/output can be improved. This is especially effective in systems where a DASD dedicated to page files is used.

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

第1図は仮想記憶システムにおけるページング
制御の一般的な説明図、第2図は従来の外部ペー
ジ割当て制御方式の制御フロー図、第3図は外部
記憶管理テーブルの説明図、第4図は本発明の1
実施例の構成図、第5図はその制御フロー図であ
る。 図中、7は外部記憶管理機構、8はページフア
イル専用DASD、9は補助DASD、10は割当て
要求ページ数記憶部、11はページフアイル専用
DASD管理テーブル、12は補助DASD管理テー
ブルを表わす。
Fig. 1 is a general explanatory diagram of paging control in a virtual storage system, Fig. 2 is a control flow diagram of a conventional external page allocation control method, Fig. 3 is an explanatory diagram of an external storage management table, and Fig. 4 is an explanatory diagram of a conventional external page allocation control method. invention 1
The configuration diagram of the embodiment and FIG. 5 are its control flow diagrams. In the figure, 7 is an external storage management mechanism, 8 is a DASD dedicated to page files, 9 is an auxiliary DASD, 10 is an allocation request page number storage unit, and 11 is dedicated to page files.
DASD management table 12 represents an auxiliary DASD management table.

Claims (1)

【特許請求の範囲】[Claims] 1 実記憶装置と、外部記憶装置と、該実記憶装
置および外部記憶装置間のページインおよびペー
ジアウトを管理するページング制御手段とを有す
る仮想記憶システムにおいて、上記ページング制
御手段は、実記憶装置からページアウトされた外
部ページに外部記憶装置のスロツトグループを割
当てる際、直前にアクセスしたスロツトグループ
にもつとも近いスロツトグループから選択を行な
うことを特徴とする外部ページ割当て制御方式。
1. In a virtual storage system having a real storage device, an external storage device, and a paging control means for managing page-in and page-out between the real storage device and the external storage device, the paging control means An external page allocation control method characterized in that when allocating a slot group of an external storage device to a paged out external page, selection is made from the slot group closest to the slot group accessed immediately before.
JP58188673A 1983-10-07 1983-10-07 Control system for external page allocation Granted JPS6079448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58188673A JPS6079448A (en) 1983-10-07 1983-10-07 Control system for external page allocation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58188673A JPS6079448A (en) 1983-10-07 1983-10-07 Control system for external page allocation

Publications (2)

Publication Number Publication Date
JPS6079448A JPS6079448A (en) 1985-05-07
JPH026094B2 true JPH026094B2 (en) 1990-02-07

Family

ID=16227844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58188673A Granted JPS6079448A (en) 1983-10-07 1983-10-07 Control system for external page allocation

Country Status (1)

Country Link
JP (1) JPS6079448A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH071485B2 (en) * 1986-02-04 1995-01-11 シャープ株式会社 Virtual memory method
JPH0795257B2 (en) * 1987-12-18 1995-10-11 日本電気株式会社 Segment I / O method
US5417058A (en) * 1992-09-30 1995-05-23 Toyota Jidosha Kabushiki Kaisha Device for detecting deterioration of a catalytic converter for an engine

Also Published As

Publication number Publication date
JPS6079448A (en) 1985-05-07

Similar Documents

Publication Publication Date Title
US6021462A (en) Methods and apparatus for system memory efficient disk access to a raid system using stripe control information
EP0150705B1 (en) Data storage hierarchy and its method of operation
US6631443B1 (en) Disk storage system having capability for performing parallel read operation
US5454103A (en) Method and apparatus for file storage allocation for secondary storage using large and small file blocks
US5053945A (en) System and method for performing a multi-file transfer operation
EP0249091A2 (en) Parity spreading to enhance storage access
GB2265734A (en) Free memory cell management system
US5136692A (en) Memory disk buffer manager
US5696921A (en) System and method for allocating a write request on the same cylinder as a most recent read request on a rotating memory
KR0175983B1 (en) Data processing system having demand based write through cache with enforced ordering
GB2063532A (en) Data storage system for a computer
EP0351109A2 (en) Reducing resources in a high reliability data storage subsystem
JPH026094B2 (en)
US5918243A (en) Computer mechanism for reducing DASD arm contention during parallel processing
JPH06110759A (en) File system
JPH06266619A (en) Page saving/restoring device
JPH0237443A (en) Main storage management system for electronic computer system
JP2833814B2 (en) I / O buffer allocation method
JP2994917B2 (en) Storage system
JP3542894B2 (en) File system
JPS6043756A (en) Memory control system
JPH04155546A (en) Multivolume file processing method
JPH04273548A (en) Disk controller
JPH06348572A (en) Multi-mechanism disk system
JPH03127137A (en) File area allocating system