JPS62154149A - Control system for data area allocation of area shared file - Google Patents

Control system for data area allocation of area shared file

Info

Publication number
JPS62154149A
JPS62154149A JP60294627A JP29462785A JPS62154149A JP S62154149 A JPS62154149 A JP S62154149A JP 60294627 A JP60294627 A JP 60294627A JP 29462785 A JP29462785 A JP 29462785A JP S62154149 A JPS62154149 A JP S62154149A
Authority
JP
Japan
Prior art keywords
logical track
track
empty
area
logic
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
JP60294627A
Other languages
Japanese (ja)
Inventor
Kazuhiko Yagyu
柳生 和彦
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 JP60294627A priority Critical patent/JPS62154149A/en
Publication of JPS62154149A publication Critical patent/JPS62154149A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To reduce the overhead for security and release of a data area that is caused by the production and deletion of a member, by using an idle logic track control table, a logic track allocating means and a logic track releasing means. CONSTITUTION:When a member is produced, a logic track allocating means 7 is called out to secure a data storing area. The means 7 checks whether an idle logic track is registered or not to an idle logic track control table 9. Then the idle logic track of registered is allocated. While the idle logic track is registered to the table 9 if not idle logic track is registered to the table 9. When the member is deleted, a logic track releasing means 8 is called out. The means 8 traces a chain set between blocks and at the same time sends all logic tracks occupied by the member back to the table 9. When the table 9 is filled, those logic tracks are sent back directly to a bit map 3 for using states of direct logic tracks.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はデータの格納領域の確保および解放処理に関し
、特に領域共用ファイルの作成および削除におけるデー
タ領域割当て制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a process for securing and releasing a data storage area, and particularly to a data area allocation control method for creating and deleting a shared area file.

〔従来の技術〕[Conventional technology]

従来、この種の領域共用ファイルのデータ領域割当て制
御方式は、次のようになっていた。
Conventionally, the data area allocation control method for this type of area-shared file was as follows.

(11ファイル内のデータ領域を連続した定数個のブロ
ックからなる論理トラックに分割し、論理トラックを割
当ておよび解放の単位とする。
(11 The data area in the file is divided into logical tracks consisting of a constant number of consecutive blocks, and the logical track is used as the unit of allocation and release.

(2)  ファイル内の論理トラックを論理トラック使
用状況ビットマツプ(以下、LTAMと略記する)によ
って管理する。
(2) Logical tracks within a file are managed using a logical track usage status bitmap (hereinafter abbreviated as LTAM).

(3)  メンバ作成時には、空論理トラックを必要と
する毎にLTAMの参照および更新によって空論理トラ
ックを確保しメンバに割り当てる。
(3) When creating a member, whenever an empty logical track is required, an empty logical track is secured by referencing and updating the LTAM and allocated to the member.

(4)  メンバ削除時には、メンバの占有していた論
理トラックをLTAMに返却することにより再利用可能
とする。
(4) When a member is deleted, the logical track occupied by the member is returned to the LTAM so that it can be reused.

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

上述した従来の傾城共用ファイルのデータ領域割当て制
御方式では、論理トラックを大きくすることによってメ
ンバの作成および削除に伴うデータ領域の確保および解
放のオーバヘッドを軽減しているが、論理トラック内の
未使用のデータブロックは他のメンバでは使用できない
ため、データ領域の使用効率の面から論理トラックの大
きさを単に大きくすることはできないという欠点がある
In the conventional data area allocation control method for shared files, the overhead of securing and releasing data areas associated with member creation and deletion is reduced by increasing the size of the logical track. Since the data blocks cannot be used by other members, there is a drawback that the size of the logical track cannot be simply increased in terms of data area usage efficiency.

例えば、個々のメンバのデータ量が多かったり少なかっ
たりといったばらつきがあるファイルは、ファイルスペ
ースの面から論理トラックの大きさを大きくできないこ
とがある。
For example, if there is a variation in the amount of data of individual members, such as large or small amounts of data, it may not be possible to increase the size of the logical track in terms of file space.

また、メンバの作成時に論理トラックを割り当てるたび
にLTAMを参照および更新するため、論理トラックの
大きさを小さくした場合にはメンバの作成に伴うデータ
領域の確保のオーバヘッドが大きいという欠点がある。
Furthermore, since the LTAM is referenced and updated every time a logical track is allocated when creating a member, there is a drawback that when the size of the logical track is made small, the overhead of securing the data area associated with member creation is large.

本発明の目的は、上述の点に鑑み、データ領域の使用効
率を低下させずにメンバの作成および削除に伴うデータ
領域の確保および解放のオーバヘッドを軽減する領域共
用ファイルのデータ領域割当て制御方式を提供すること
にある。
In view of the above-mentioned points, an object of the present invention is to provide a data area allocation control method for a shared area file that reduces the overhead of securing and releasing data areas associated with member creation and deletion without reducing data area usage efficiency. It is about providing.

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

本発明の領域共用ファイルのデータ領域割当て制御方式
は、データ領域が複数個の独立したデータ群であるメン
バで共用される領域共用ファイルにおいて、前記領域共
用ファイル内のデータ領域を連続した定数個のブロック
からなる論理トラックに分割しこの論理トラックを前記
メンバに対するデータ領域の割当ておよび解放の単位と
して前記論理トラックの使用状況を管理するための論理
トラック使用状況ビットマツプと、この論理トラック使
用状況ピントマツプの一部をメモリテーブル化した空論
理トラック管理テーブルと、前記メンバの作成時に前記
空論理トラック管理テーブルおよび前記論理トラック使
用状況ピットマツプをもとに空論理トラックを当該メン
バに割り当てる論理トラック割当て手段と、前記メンバ
の削除時に前記空論理トラック管理テーブルおよび前記
論理トラック使用状況胃ソトマップをもとに当該メンバ
の占有する論理トラックを解放する論理トラック解放手
段とを有する。
The data area allocation control method for a shared area file of the present invention is such that, in an area shared file whose data area is shared by members each consisting of a plurality of independent data groups, the data area in the area shared file is divided into a constant number of consecutive data areas. A logical track usage status bitmap for dividing the logical track into logical tracks consisting of blocks and managing the usage status of the logical track as a unit for allocating and releasing data areas for the members, and a logical track usage status pinto map. an empty logical track management table in which a section is converted into a memory table; a logical track allocation means for allocating an empty logical track to the member based on the empty logical track management table and the logical track usage status pit map when creating the member; and logical track release means for releasing the logical track occupied by the member based on the empty logical track management table and the logical track usage status map when deleting the member.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例を示す構成図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

本実施例の領域共用ファイルのデータ領域割当て制御方
式は、領域共用ファイル1、ディレクトリ部2、LTA
M3、データ領域4、論理トラック5、データブロック
6、論理トラック割当て手段7、論理トラック解放手段
8および空論理トラック管理テーブル9を含んで構成さ
れている。
The data area allocation control method for the area shared file in this embodiment is as follows: area shared file 1, directory part 2, LTA
M3, a data area 4, a logical track 5, a data block 6, a logical track allocating means 7, a logical track releasing means 8, and an empty logical track management table 9.

領域共用ファイル1内のデータ領域4は、複数個の独立
したデータ群(メンバ)で共用され、連続した定数個(
本7≦施例では4個)のブロック6からなる論理トラッ
ク5に分割されている。この論理トラック5が、メンバ
に対するデータ領域4の割当ておよび解放の単位となる
The data area 4 in the area shared file 1 is shared by multiple independent data groups (members), and consists of a constant number of consecutive data groups (members).
It is divided into logical tracks 5 each consisting of blocks 6 (7≦4 in this example). This logical track 5 becomes the unit for allocating and releasing the data area 4 to the members.

個々のメンバに関するメンバ情報はディレクトリ部2に
格納されている。ディレクトリ部2に格納されるメンバ
情報としては、メンバ名、開始ブロックアドレスおよび
終了ブロックアドレスがある0個々のメンバのデータブ
ロック6の連続性は、開始ブロックアドレスのブロック
から終了ブロックアドレスのブロックまでのチェーンに
よって保持される。第1図の例では、ディレクトリ部2
にメンバMが登録されており、メンバMの開始ブロック
アドレスはBl、終了ブロックアドレスはB14となっ
ている。
Member information regarding individual members is stored in the directory section 2. The member information stored in the directory section 2 includes the member name, starting block address, and ending block address.The continuity of the data blocks 6 of each member is from the block with the starting block address to the block with the ending block address. held by a chain. In the example shown in Figure 1, directory section 2
Member M is registered in , and the starting block address of member M is B1, and the ending block address is B14.

LTAM3は、ファイル1内の論理トラック5の使用状
況を管理する。LTAM3の各ビットを各論理トラック
5と1対lに対応させ、対応する論理トラック5が使用
中である場合にビット値0で、使用中でない場合にビッ
ト値1で表現する。
The LTAM 3 manages the usage status of the logical track 5 within the file 1. Each bit of the LTAM 3 is associated with each logical track 5 on a one-to-l basis, and when the corresponding logical track 5 is in use, it is expressed as a bit value 0, and when it is not in use, it is expressed as a bit value 1.

第1図の例では、例えば論理トラックLT1は使用中で
あり、論理トラックLT2は使用中でない。
In the example of FIG. 1, for example, logical track LT1 is in use, and logical track LT2 is not in use.

空論理トラック管理テーブル9は、LTAM3で管理す
る空論理トラックの一部をメモリテーブル化するための
ものである。空論理トラック管理テーブル9は、メンバ
の作成および削除時に論理トラック割当て手段7および
論理トラック解放手段8によって参照お−び更新される
。第1図の例では、論理トラックLT6、LT7、I、
Tl01・・・が空論理トラックとして登録されている
The empty logical track management table 9 is for converting a part of the empty logical tracks managed by the LTAM 3 into a memory table. The empty logical track management table 9 is referenced and updated by the logical track allocating means 7 and the logical track releasing means 8 when creating and deleting members. In the example of FIG. 1, logical tracks LT6, LT7, I,
Tl01... is registered as an empty logical track.

次に、このように構成された本実施例の領域共用ファイ
ルのデータ頭載割当て制御方式の動作について説明する
Next, the operation of the data head assignment control method for the area shared file of this embodiment configured as described above will be explained.

第2図ta)および(b)は、メンバ作成時におけるデ
ータ領域割当て処理を説明するための図である。
FIGS. 2(a) and 2(b) are diagrams for explaining data area allocation processing at the time of member creation.

第2図ta+はメンバ作成開始時の状態を示し、第2図
(blばメンバ作成後0状態を示している。
FIG. 2 ta+ shows the state at the start of member creation, and FIG. 2 (bl) shows the 0 state after member creation.

メンバの作成時には、データの格納領域を確保するため
に論理トラック割当て手段7が呼び出される。論理トラ
ック割当て手段7は、空論理トラック管理テーブル9に
空論理トラックが登録されているかどうかを検索する。
When creating a member, the logical track allocation means 7 is called to secure a data storage area. The logical track allocation means 7 searches the empty logical track management table 9 to see if an empty logical track is registered.

空論理トラック管理テーブル9に空論理トラックが登録
されていない場合には、空論理トラック管理テーブル9
に空論理トラックを次の手順で登録する。まず、LTA
M3を参照し空論理トラックを示すビットを検索し、該
当するビットに対応する論理トラック番号を空論理トラ
ック管理テーブル9に登録するとともに、LTAMU上
の検索したピントを使用中を示すビット値に更新する。
If no empty logical track is registered in the empty logical track management table 9, the empty logical track management table 9
Register an empty logical track in the following steps. First, LTA
M3 is referred to, a bit indicating an empty logical track is searched, and the logical track number corresponding to the corresponding bit is registered in the empty logical track management table 9, and the searched focus on the LTAMU is updated to a bit value indicating in use. do.

この手順を空論理トラック管理テーブル9が満たされる
まで操り返し登録を完了する。
This procedure is repeated until the empty logical track management table 9 is filled to complete the registration.

空論理トラック管理テーブル9上に空論理トラックの登
録が完了したときあるいはすでに空論理トラックが登録
されていたときには、論理トラック割当て手段7はメン
バ作成のために1個の空論理トラックを割り当てる0作
成メンバが1個の空論理トラックに格納し切れない場合
には、繰り返し空論理トラック割当て手段7が呼び出さ
れ、作成メンバの格納が完了するまで空論理トラックが
順次割り当てられる。
When the registration of an empty logical track on the empty logical track management table 9 is completed or when an empty logical track has already been registered, the logical track allocation means 7 performs 0 creation to allocate one empty logical track for member creation. If the members cannot be stored in one empty logical track, the empty logical track allocating means 7 is repeatedly called, and empty logical tracks are sequentially allocated until the storage of the created members is completed.

例えばメンバMを作成する場合には、メンバMのデータ
領域として空論理トラック管理テーブル9から論理トラ
ックLTI、LT3およびLTA(第2図(a)参照)
を順次割り当てるとともに、空論理トラック管理テーブ
ル9を更新する(第2図(bl参照)、メンバMの作成
にともない、ディレクトリ部2にメンバMのメンバ情報
を登録して(第2図(bl参照)、ディレクトリ部2を
更新する。
For example, when creating member M, logical tracks LTI, LT3, and LTA are selected from the empty logical track management table 9 as the data area of member M (see Figure 2 (a)).
are sequentially allocated, and the empty logical track management table 9 is updated (see Figure 2 (bl)). Along with the creation of member M, the member information of member M is registered in the directory section 2 (see Figure 2 (bl)). ), the directory section 2 is updated.

第3図talおよび(b)は、メンバ削除時におけるデ
ータ領域の解放処理を説明するための図である。
FIGS. 3 and 3(b) are diagrams for explaining the data area release process when deleting a member.

第3図falはメンバ削除以前の状態を示し、第3図(
blはメンバ削除後の状態を示している。
Figure 3 fal shows the state before member deletion, and Figure 3 (
bl indicates the state after member deletion.

メンバの削除時には、論理トラック解放手段8が呼び出
される。論理トラック解放手段8は、ブロック間のチェ
ーンをたどりながらメンバの占有していた全ての論理ト
ラックを空論理トラック管理テーブル9に返却する。空
論理トラック管理テーブル9が満杯になり返却できない
場合には、直接しTAM3に論理トラックを返却する。
When deleting a member, the logical track release means 8 is called. The logical track release means 8 returns all the logical tracks occupied by the members to the empty logical track management table 9 while tracing the chain between blocks. If the empty logical track management table 9 is full and cannot be returned, the logical track is directly returned to the TAM 3.

例えばメンバNを削除する場合には、メンバNの占有し
ていた論理トラックLT2.LT6.LT20.−、 
LT98. LT99 (第3図(al参照)を解放し
、空論理トラック管理テーブル9に空論理トラックLT
2.LT6およびLT20を返却する(第3図山)参照
)。空論理トラック管理テーブル9が満杯になり返却で
きなかった竺論理トラックL798、LT99等を直接
LTAM3に返却しLTA。
For example, when deleting member N, logical track LT2. LT6. LT20. -,
LT98. Release the LT99 (see Figure 3 (al)) and add the empty logical track LT to the empty logical track management table 9.
2. Return LT6 and LT20 (see Figure 3). The empty logical tracks L798, LT99, etc. that cannot be returned because the empty logical track management table 9 is full are directly returned to the LTAM 3 for LTA.

M3が更新される(第3図(bl参照)。メンバNの削
除にともない、ディレクトリ部2からメンバNについて
のメンバ情報を削除して(第3図(bl参照)、ディレ
クトリ部2を更新する。
M3 is updated (see Fig. 3 (bl)). Along with the deletion of member N, the member information about member N is deleted from the directory section 2 (see Fig. 3 (bl)), and the directory section 2 is updated. .

複数のメンバの作成および削除に備え、空論理トラック
管理テーブル9を引き継ぐ。領域共用ファイル1に対す
る全ての処理終了時に、空論理トラック管理テーブル9
に登録されている全ての空論理トラックをLTAM3に
返却する。
The empty logical track management table 9 is taken over in preparation for creation and deletion of multiple members. At the end of all processing for area shared file 1, empty logical track management table 9
All empty logical tracks registered in the LTAM3 are returned to the LTAM3.

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

以上説明したように、本発明は空論理トラック管理テー
ブルと論理トラック割当て手段および論理トラック解放
手段とを使用することにより、フアイルスペースの使用
効率を低下させずにメンバの作成および削除に伴うデー
タ領域の確保および解放のオーバヘッドを軽減する効果
がある。
As explained above, the present invention uses an empty logical track management table, a logical track allocation means, and a logical track release means, so that the data area that is generated when creating and deleting members can be saved without reducing file space usage efficiency. This has the effect of reducing the overhead of securing and releasing.

特に、個々のメンバのデータ量にばらつきがあり論理ト
ラックの大きさを大きくできない場合に、メンへの作成
および削除に伴うデータ領域の確保および解放のオーバ
ヘッドの軽減効果が大きい。
Particularly, when the size of the logical track cannot be increased due to variations in the data amount of individual members, the effect of reducing the overhead of securing and releasing data areas associated with creation and deletion in members is significant.

また、複数メンバの一括作成および削除を行う場合、空
論理トラック管理テーブルに論理トラックがスタッキン
グされるために1度のLTAM更新で幾つものメンバ処
理が可能となり、データ領域の確保および解放のオーバ
ヘッドの軽減効果が大きい。
Additionally, when creating and deleting multiple members at once, the logical tracks are stacked in the empty logical track management table, making it possible to process multiple members in one LTAM update, reducing the overhead of securing and releasing data areas. Great mitigation effect.

【図面の簡単な説明】 第1図は本発明の一実施例の構成を示す図、第2図(a
lおよび(L、lはメンバ作成時のデータ領域割当て処
理の説明図、 第3図+alおよび(′b)はメンバ削除時のデータ領
域解放処理の説明図である。 図において、 1・・・領域共用ファイル、 2・・・ディレクトリ部、 3・・・論理トラック使用状況ビフトマノプ(LTAM
)、 4・・・データ領域、 5・・・論理トラック、 6・・・データブロック、 7・・・論理トラック割当て手段、 8・・・論理トラック解放手段、 9・・・空論理トラック管理テーブルである。
[BRIEF DESCRIPTION OF THE DRAWINGS] FIG. 1 is a diagram showing the configuration of an embodiment of the present invention, and FIG.
l and (L, l are explanatory diagrams of data area allocation processing when creating a member, and Figure 3+al and ('b) are explanatory diagrams of data area release processing when deleting a member. In the figure, 1... Area shared file, 2... Directory part, 3... Logical track usage status Biftmanop (LTAM)
), 4... Data area, 5... Logical track, 6... Data block, 7... Logical track allocation means, 8... Logical track release means, 9... Empty logical track management table It is.

Claims (1)

【特許請求の範囲】 データ領域が複数個の独立したデータ群であるメンバで
共用される領域共用ファイルにおいて、前記領域共用フ
ァイル内のデータ領域を連続した定数個のブロックから
なる論理トラックに分割しこの論理トラックを前記メン
バに対するデータ領域の割当ておよび解放の単位として
前記論理トラックの使用状況を管理するための論理トラ
ック使用状況ビットマップと、 この論理トラック使用状況ビットマップの一部をメモリ
テーブル化した空論理トラック管理テーブルと、 前記メンバの作成時に前記空論理トラック管理テーブル
および前記論理トラック使用状況ビットマップをもとに
空論理トラックを当該メンバに割り当てる論理トラック
割当て手段と、 前記メンバの削除時に前記空論理トラック管理テーブル
および前記論理トラック使用状況ビットマップをもとに
当該メンバの占有する論理トラックを解放する論理トラ
ック解放手段と、 を含むことを特徴とする領域共用ファイルのデータ領域
割当て制御方式。
[Scope of Claims] In an area shared file whose data area is shared by members each consisting of a plurality of independent data groups, the data area in the area shared file is divided into logical tracks each consisting of a constant number of consecutive blocks. A logical track usage status bitmap for managing the usage status of the logical track using this logical track as a unit for allocating and releasing data areas for the member, and a part of this logical track usage status bitmap is converted into a memory table. an empty logical track management table; a logical track allocation means that allocates an empty logical track to the member based on the empty logical track management table and the logical track usage status bitmap when creating the member; A data area allocation control method for a shared area file, comprising: logical track release means for releasing a logical track occupied by the member based on an empty logical track management table and the logical track usage status bitmap.
JP60294627A 1985-12-27 1985-12-27 Control system for data area allocation of area shared file Pending JPS62154149A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60294627A JPS62154149A (en) 1985-12-27 1985-12-27 Control system for data area allocation of area shared file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60294627A JPS62154149A (en) 1985-12-27 1985-12-27 Control system for data area allocation of area shared file

Publications (1)

Publication Number Publication Date
JPS62154149A true JPS62154149A (en) 1987-07-09

Family

ID=17810202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60294627A Pending JPS62154149A (en) 1985-12-27 1985-12-27 Control system for data area allocation of area shared file

Country Status (1)

Country Link
JP (1) JPS62154149A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08249223A (en) * 1995-03-13 1996-09-27 Nec Corp Data area management system for area-sharing file

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57153334A (en) * 1981-03-18 1982-09-21 Nec Corp File readout and write-in control system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57153334A (en) * 1981-03-18 1982-09-21 Nec Corp File readout and write-in control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08249223A (en) * 1995-03-13 1996-09-27 Nec Corp Data area management system for area-sharing file

Similar Documents

Publication Publication Date Title
JP2734391B2 (en) File management device for nonvolatile memory
CN106201355A (en) Data processing method and device and storage system
EP0694831A2 (en) Computer system having storage unit provided with data compression function andmethod of management of storage area thereof
JPS62154149A (en) Control system for data area allocation of area shared file
JP2743857B2 (en) Data area management system for area shared files
GB2328531A (en) Storing a long record in a set of shorter keyed records
JPH06110759A (en) File system
JPH02193231A (en) File space free area management system
JPH0218637A (en) Memory control method
JPH02156348A (en) Overflow area control method for plural hash tables
JPS63173270A (en) Data set area managing system for draw type storage device
JPH04350738A (en) Disk space management system
JP2000148550A (en) Area management method and free area management method for file
JPH04155546A (en) Multivolume file processing method
JPS63247848A (en) Data input/output system
JPH09223058A (en) System for managing file space for bit map setting index part and data part as independent files
JPH01220023A (en) Centralized control system for secondary storage device
JPH08249225A (en) Memory management device
JPH0336640A (en) Control system for record storing space
JPS60129852A (en) File managing method
JPH05257802A (en) Assignment system for secondary storage record for paging
JPH06348572A (en) Multi-mechanism disk system
JPH0581101A (en) Method for assigning storage of key
JPS62293448A (en) Space managing system for file
JPS6084647A (en) Structure memory controller