JPS62274420A - Automatic allocating system for data set - Google Patents

Automatic allocating system for data set

Info

Publication number
JPS62274420A
JPS62274420A JP61117303A JP11730386A JPS62274420A JP S62274420 A JPS62274420 A JP S62274420A JP 61117303 A JP61117303 A JP 61117303A JP 11730386 A JP11730386 A JP 11730386A JP S62274420 A JPS62274420 A JP S62274420A
Authority
JP
Japan
Prior art keywords
data set
space
dummy data
amount
space amount
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
JP61117303A
Other languages
Japanese (ja)
Inventor
Tetsuo Yamakawa
哲夫 山川
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP61117303A priority Critical patent/JPS62274420A/en
Publication of JPS62274420A publication Critical patent/JPS62274420A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To effectively use the space of a direct access volume by suppressing the generation of an extent whose use becomes difficult due to a fact that the space amount is small, to the minimum. CONSTITUTION:With regard to a selected volume, from a data set management table 3, a dummy data set name, a space amount and the number of extents are obtained as the information of a dummy data set which is allocated in said table, and when the space amount is less than the requested space amount, the allocation is shifted to the next dummy data set, and if they are equal, it is an optimum dummy data set and deleted, and a data set is allocated to its dead space. When the space amount of the dummy data set is larger than the requested space amount, the difference of its space amount is derived, compared with the case of other dummy data set, and a smaller one is selected. It is processed with respect to all dummy data sets in the volume.

Description

【発明の詳細な説明】 3、発明の詳細な説明 〔産業上の利用分野〕 この発明は、コンピュータの運営・管理に有効なメモリ
の割当方法に係り、特にプログラムによる自動割当方法
に関するものである。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Field of Industrial Application] This invention relates to a memory allocation method effective for operating and managing a computer, and particularly relates to an automatic allocation method using a program. .

〔従来の技術〕[Conventional technology]

従来の方法は、特開昭60−89258号公報に記載の
ように、複数のユーザのデータセットが直接アクセスボ
リューム上に片寄らずに配置される。となっていた、し
かし、直接アクセスボリュームのスペースを有効に使用
するという点については配慮されていなかった。
In the conventional method, as described in Japanese Unexamined Patent Publication No. 60-89258, data sets of a plurality of users are arranged evenly on a direct access volume. However, no consideration was given to the effective use of space in direct access volumes.

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

上記従来技術は、直接アクセスボリュームのスペースを
有効に使用するという点について配慮がされておらず、
データセットの割当て、データセットの削除を繰返す間
に発生する、スペースが小さい為に使用困鷺なエクステ
ントに対しての処理がなされていないという問題があっ
た。
The above conventional technology does not take into consideration the effective use of the space of the direct access volume.
There has been a problem in that the extents that are difficult to use due to the small space that occur during repeated data set allocation and data set deletion are not processed.

従って、本発明の目的は、直接アクセスボリューム中に
発生する使用困廻なエクステントの発生を最少限に押え
ることのできる自動割当方法を提供することにある。
Therefore, an object of the present invention is to provide an automatic allocation method that can minimize the occurrence of unusable extents in a direct access volume.

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

上記目的は、直接アクセスボリュームの空スペースに割
当てられているダミーデータセットの中で1個または、
複数個で、割当てようとするデータセットのスペースと
等しくなるもの、あるいは。
The above purpose is to create one or more dummy data sets allocated to the free space of the direct access volume.
One or more, equal to the space of the data set you are allocating, or.

必要なスペース以上で最も近いものを削除し、その空ス
ペースにデータセットを割当てることより、達成される
This is achieved by deleting the closest one with more space than needed and allocating the dataset to the empty space.

〔作用〕[Effect]

1個あるいは複数個のダミーデータセットの組合せによ
り、必要とするスペース量と等しい量のスペースを捜す
ことができれば、捜したダミーデータセットのスペース
量と、必要とするスペース量との差によって生じるスペ
ース量の小さい、使用困難なエクステントの発生、を防
ぐことができる。
If it is possible to search for an amount of space equal to the amount of space required by combining one or more dummy data sets, the space created by the difference between the amount of space of the searched dummy data set and the amount of space required. It is possible to prevent the occurrence of extents that are small and difficult to use.

必要とするスペース量と等しいスペースをもつダミーデ
ータセットの組合せが無い時にも、その差が最も小さい
組合せであれば、使用困難なエクステントの発生を最小
限に押えることができる。
Even when there is no combination of dummy data sets that have the same space as the required space, as long as the combination has the smallest difference, the occurrence of unusable extents can be minimized.

〔実施例〕〔Example〕

以下に、本発明の詳細を実施例にしたがって説明する。 The details of the present invention will be explained below based on examples.

第1図は、本発明の実施例システムの構成図である。処
理装置1において、2はボリューム管理テーブルであり
、管理すべき直接アクセスボリュームの情報として、ボ
リューム名およびその空スペースをもつ、ここでいう空
スペースとは、各ボリューム中に存在するダミーデータ
セットのスペース量の総和である。3はデータセット管
理テーブルであり、各ボリューム中に割当てられている
ダミーデータセットの情報として、ダミーデータセット
名、割当てられているボリューム名、そのダミーデータ
セットを構成するエクステントの数およびスペース量を
もつ。これらのテーブル中の情報は常時、実際の状態と
同じものとなっている。
FIG. 1 is a configuration diagram of a system according to an embodiment of the present invention. In the processing device 1, 2 is a volume management table, which contains the volume name and its empty space as information on direct access volumes to be managed.The empty space here refers to the space of the dummy data set that exists in each volume. It is the sum of the quantities. 3 is a data set management table, which contains information on the dummy data set allocated in each volume, including the dummy data set name, the allocated volume name, the number of extents and the amount of space constituting the dummy data set. Motsu. The information in these tables is always the same as the actual state.

7はTSS端末であり、データセットの割当の要求を入
力する。4から6は直接アクセスボリュームであり、例
として3個表示しである。
7 is a TSS terminal, which inputs a request for data set allocation. Volumes 4 to 6 are direct access volumes, and three are displayed as an example.

データセットの自動割当ての機能については、第2図に
フロー図で示されている。以下フローにしたがって説明
する。
The function of automatic data set allocation is illustrated in a flow diagram in FIG. The process will be explained below according to the flow.

7のTSS端末機から、データセットの割当ての要求が
あると、管理するボリュームの中で、空スペースが要求
されるスペース以上のものをボリューム管理テーブル2
から選び、その全てのボリュームについて、以下の処理
をする。
When there is a request to allocate a data set from the TSS terminal 7, allocate the empty space in the managed volume that is greater than or equal to the requested space in the volume management table 2.
, and perform the following processing on all volumes.

選ばれたボリュームについて、データセット管理テーブ
ル3より、その中に割当てられているダミーデータセッ
トの情報として、ダミーデータセット名、スペース量お
よびエクステント数を得、スペース量が要求するスペー
ス量と比べ要求するスペース量未満の場合には、次のダ
ミーデータセットに移り、等しければ、最適なダミーデ
ータセットと決定して削除し、その空スペースにデータ
セットを割当てる。ダミーデータ、セットのスペース量
が要求されるスペース量より大きい場合には、そのスペ
ース量の差を求め、他のダミーデータセットの場合と比
較し、小さい方を選択する。これをボリューム内の全て
のダミーデータセットに対し処理する。ダミーデータセ
ット1個ずつに対して前述の処理が終了すると、データ
セット管理テーブルより、ダミーデータセット2個を組
合せ、その総エクステントの数が、システムによる上限
値を越えていないものに関して、前述のダミーデータセ
ット1個の場合と同様な処理を行う。ダミーデータセッ
トの組合せについて処理が終了し、なおかつ、最適なダ
ミーデータセットあるいはその組合せが決定していない
場合には、ダミーデータセット1個の場合に求められて
いる。要求されるスペース量にも最も近いものと、ダミ
ーデータセット2個の組合せの場合に求められている要
求されるスペース量に最も近いものとを比較し、より、
要求されるスペース量に近い方を選択し、最適なダミー
データセットとして決定する。
For the selected volume, obtain the dummy data set name, space amount, and number of extents as information on the dummy data set allocated therein from the data set management table 3, and compare the space amount with the required space amount. If the amount of space is less than the amount of space, move on to the next dummy data set, and if they are equal, the dummy data set is determined to be the optimal dummy data set and deleted, and the data set is allocated to the empty space. If the space amount of the dummy data set is larger than the required space amount, the difference in space amount is calculated, compared with other dummy data sets, and the smaller one is selected. This is processed for all dummy data sets in the volume. When the above-mentioned processing is completed for each dummy data set, the data set management table shows that the two dummy data sets are combined and the total number of extents does not exceed the upper limit set by the system. The same processing as in the case of one dummy data set is performed. If the processing has been completed for a combination of dummy data sets, and the optimal dummy data set or combination thereof has not been determined, only one dummy data set is required. Compare the one that is closest to the required amount of space and the one that is closest to the required amount of space that is required in the case of the combination of two dummy data sets, and then
Select the one closest to the amount of space required and determine it as the optimal dummy data set.

決定されダミーデータセットを削除し、その空スペース
に要求されるデータセットを割当てる。
Deleting the determined dummy data set and allocating the required data set to the empty space.

一方、ボリューム管理テーブルにおいては、その空スペ
ース、データセット管理テーブルにおいては、ダミーデ
ータセット名、エクステント数およびスペースのデータ
を、前述の処理に合わせて変更する。
On the other hand, in the volume management table, the empty space is changed, and in the data set management table, the dummy data set name, number of extents, and space data are changed in accordance with the above-described processing.

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

本発明によれば、スペース量が小さい為に使用困難とな
るエクステントの発生を最小限に押えることができるの
で、直接アクセスボリュームのスペースを有効に使用で
きるという効果がある。
According to the present invention, the occurrence of extents that are difficult to use due to the small amount of space can be minimized, so that the space of the direct access volume can be used effectively.

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

第1図は本発明の一実施例のシステムの構成図、第2図
はデータセットの自動割当システムのフロー図である。
FIG. 1 is a configuration diagram of a system according to an embodiment of the present invention, and FIG. 2 is a flow diagram of an automatic data set allocation system.

Claims (1)

【特許請求の範囲】[Claims] 1、全ての空スペースに、ダミーのデータセットを割り
当てている複数の直線アクセスボリュームと、これらの
直線アクセスボリューム中に含まれるダミーにデータセ
ットのスペースおよびエクステント数をデータとしても
つテーブルおよび直接アクセスボリューム全ての名前を
データとしてもつテーブルよりなる、データセット割当
システムにおいて、割当てるべきデータセットのスペー
ス以上で最も近く、かつエクステントの数が割当て可能
範囲なダミーのデータセットの組合わせを選択し、それ
を削除し、空いたスペースに要求されるデータセットを
割当てるプログラムを設けたことを特徴とするデータセ
ットの自動割当方式。
1. Multiple linear access volumes to which dummy datasets are assigned to all empty spaces, and all tables and direct access volumes that have data set space and number of extents in the dummy data contained in these linear access volumes. In a dataset allocation system consisting of a table with the name of as data, select the combination of dummy datasets that is the closest to the space of the dataset to be allocated, and whose number of extents is within the allocatable range, and delete it. and a program for allocating the required data set to the vacant space.
JP61117303A 1986-05-23 1986-05-23 Automatic allocating system for data set Pending JPS62274420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61117303A JPS62274420A (en) 1986-05-23 1986-05-23 Automatic allocating system for data set

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61117303A JPS62274420A (en) 1986-05-23 1986-05-23 Automatic allocating system for data set

Publications (1)

Publication Number Publication Date
JPS62274420A true JPS62274420A (en) 1987-11-28

Family

ID=14708412

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61117303A Pending JPS62274420A (en) 1986-05-23 1986-05-23 Automatic allocating system for data set

Country Status (1)

Country Link
JP (1) JPS62274420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9619472B2 (en) 2010-06-11 2017-04-11 International Business Machines Corporation Updating class assignments for data sets during a recall operation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9619472B2 (en) 2010-06-11 2017-04-11 International Business Machines Corporation Updating class assignments for data sets during a recall operation

Similar Documents

Publication Publication Date Title
EP1147469B1 (en) Method and apparatus for concurrent dbms table operations
JP5967672B2 (en) Database management system, computer, database management method
US20130263117A1 (en) Allocating resources to virtual machines via a weighted cost ratio
CN107608773A (en) task concurrent processing method, device and computing device
JPH04165541A (en) File rearranging method
CN109716321B (en) N-way hash connection
JPH04213129A (en) Memory control system and memory control method
JPS59146355A (en) Reorganizing method of data set in direct access storage device
JPH06259478A (en) Data rearrangement system for distributed data base
CN111414422B (en) Data distribution method, device, equipment and storage medium
CN110019229B (en) Database configuration system
JPS62274420A (en) Automatic allocating system for data set
JPH02156348A (en) Overflow area control method for plural hash tables
JPS6364146A (en) Logical space control system
JPS62241047A (en) Shared control method for input/output buffer by data base control system
JPS62160545A (en) System for managing unused area of direct access storage device
JPS6089258A (en) Space assignment controlling system of direct access volume
JPH03113626A (en) System and device for controlling buffer
CN114706832A (en) Data redistribution method, device, equipment and storage medium
JPH02304615A (en) Allocating system for parallel disk control buffer
JPS63239540A (en) Data management system in memory medium
JPS63192126A (en) Processing system for space control of data set
JPS62145441A (en) Updating processing system for key-sequenced data set
JPH02299037A (en) File allocation processing system
JPH06161836A (en) Area managing system for storage medium