JPH03201045A - Data control system - Google Patents
Data control systemInfo
- Publication number
- JPH03201045A JPH03201045A JP1338171A JP33817189A JPH03201045A JP H03201045 A JPH03201045 A JP H03201045A JP 1338171 A JP1338171 A JP 1338171A JP 33817189 A JP33817189 A JP 33817189A JP H03201045 A JPH03201045 A JP H03201045A
- Authority
- JP
- Japan
- Prior art keywords
- data
- block
- usage information
- area
- blocks
- 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
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、可変長データの管理方式に係り、特に、階層
構造の可変長データを管理するために用いて好適なデー
タ管理方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a management method for variable length data, and particularly to a data management method suitable for use in managing hierarchically structured variable length data.
[従来の技術]
記憶装置の記憶領域内に、複数の可変長データを記憶し
、これらのデータを動的に管理するとこが、従来一般に
行われている。しかし、データを動的に管理するしよう
とする場合、記憶域にフラグメンテーション(断片化)
を生じ、これにより、記憶域に無駄を生じるという問題
がある。[Prior Art] Conventionally, it has been common practice to store a plurality of variable length data in a storage area of a storage device and dynamically manage these data. However, when trying to manage data dynamically, storage fragmentation can occur.
This causes a problem in that storage space is wasted.
このような問題点を解消する従来技術として、例えば、
ソフトウェア講座21「データ構造とプログラミング(
宮地利雄著)」、(株)昭晃堂 (P。As a conventional technique to solve such problems, for example,
Software Course 21 “Data Structures and Programming (
Written by Toshio Miyaji), Shokodo Co., Ltd. (P.
147〜155)等に記載された技術が知られている。147-155) and the like are known.
この従来技術は、記憶領域の空きリストを用意し、この
空きリストを用いて記憶領域に格納されるデータの管理
を行うものである。This conventional technique prepares a free list of storage areas and uses this free list to manage data stored in the storage areas.
[発明が解決しようとする課題]
前記従来技術は、記憶領域の空きリストにより記憶領域
の管理を行うものであるが、データの移動により、連続
した空き領域を確保するという点について配慮されてお
らず、大きな連続した空き領域を確保することができな
いという問題点を有している。[Problems to be Solved by the Invention] The above-mentioned conventional technology manages storage areas using a storage area free list, but does not take into consideration securing continuous free space by moving data. First, there is a problem in that it is not possible to secure a large continuous free area.
本発明の目的は、前記従来技術の問題点を解決し、他の
データに影響を及ぼさずにデータの移動を行って、記憶
装置内に連続した空き領域を確保し、記憶域のフラグメ
ンテーションによる記憶領域の無駄を最小にし、かつ、
空き領域の検索、複数データの管理のためのオーバーヘ
ッドを少なくすることのできるデータ管理方式を提供す
ることにある。An object of the present invention is to solve the problems of the prior art described above, to move data without affecting other data, to secure a continuous free space in a storage device, and to prevent storage by fragmentation of the storage area. minimize wasted area, and
An object of the present invention is to provide a data management method that can reduce overhead for searching for free space and managing multiple data.
[課題を解決するための手段]
本発明によれば前記目的は、データセットをブロック化
し、ブロックの使用情報を得るために、データセットの
ブロック使用情報データと、使用ブロックの領域使用情
報データと、データの移動によるポインタの更新を避け
るためのデータ制御情報とを備え、データの書き込み、
変更時、ブロック内のデータを移動させて空き領域を確
保し、その空き領域に新データを書き込むようにするこ
とにより、また、使用ブロックの領域使用情報データを
、論理的な単位でまとめて管理するようにすることによ
り達成される。[Means for Solving the Problems] According to the present invention, the object is to divide a dataset into blocks and obtain block usage information by combining block usage information data of the dataset and area usage information data of the used blocks. , and data control information to avoid updating pointers due to data movement, write data,
At the time of modification, the data in the block is moved to secure free space, and new data is written to that free space. Also, space usage information data for used blocks can be managed collectively in logical units. This is achieved by doing so.
[作 用コ
データセットをブロック化し、その物理ブロック内にデ
ータを格納して、その使用情報を論理的な単位で管理す
ることにより、論理的な単位にデータを追加する場合、
論理的な単位の物理ブロックの全てに対してアクセスす
ることなく、論理的な単位の物理ブロック内部の使用情
報を得ることができるので、物理ブロックに対するアク
セス回数を最小に押さえることができ、空き領域の検索
、複数データの管理のためのオーバーヘッドを少なくす
ることができる。[Operation] When adding data to a logical unit by creating a block of a data set, storing data in the physical block, and managing its usage information in a logical unit,
Since it is possible to obtain usage information inside a physical block of a logical unit without accessing all of the physical blocks of a logical unit, the number of accesses to the physical block can be kept to a minimum, and free space can be The overhead for searching and managing multiple data can be reduced.
[実施例]
以下、本発明によるデータ管理方式の一実施例を図面に
より詳細に説明する。[Embodiment] Hereinafter, an embodiment of the data management system according to the present invention will be described in detail with reference to the drawings.
第1図は階層構造の可変長データを磁気ディスクに記録
する本発明の一実施例によるデータセットの内部構造を
説明する図、第2図はデータを追加する場合の処理動作
を説明するフローチャート、第3図は階層構造のデータ
を説明する図である。FIG. 1 is a diagram illustrating the internal structure of a data set according to an embodiment of the present invention for recording hierarchically structured variable-length data on a magnetic disk, and FIG. 2 is a flowchart illustrating processing operations when adding data. FIG. 3 is a diagram illustrating hierarchically structured data.
第1図において、1はデータセット、2はデータブロッ
ク、3はデータセットのブロック使用情報格納ブロック
、4は可変長データ、5はブロック内領域使用情報、6
はデータ制御情報である。In FIG. 1, 1 is a dataset, 2 is a data block, 3 is a data set block usage information storage block, 4 is variable length data, 5 is area usage information in the block, 6
is data control information.
第1図において、データブロック2は、磁気ディスク上
のデータセット1を固定長の長さで均一に分割した1つ
の断片であり、その中の1つが、データセット1中の各
データブロック2が使用されているか否かを示す情報を
格納するブロック使用情報格納ブロック3として使用さ
れる。In FIG. 1, data block 2 is one fragment obtained by uniformly dividing data set 1 on the magnetic disk with a fixed length, and one of the fragments is such that each data block 2 in data set 1 It is used as a block usage information storage block 3 that stores information indicating whether or not the block is being used.
各データブロック2は、そのブロック内に、複数の可変
長データ4を格納すると共に、階層構造の1つのノード
を構成しているデータ4が記録されているデータブロッ
ク2の領域使用情報5及び当該データブロック2内に記
録されているデータ4の位置情報であるデータ制御情報
6を格納している。Each data block 2 stores therein a plurality of variable length data 4, and also includes area usage information 5 of the data block 2 in which data 4 constituting one node of the hierarchical structure is recorded, and the corresponding Data control information 6, which is position information of data 4 recorded in data block 2, is stored.
データセット1の各データブロック2内に格納される階
層構造のデータは、第3図にデータの階層構造7として
示すように、トリー状に接続されたノードに対応して備
えられるデータであり、各ノードに対応するデータは、
1つのノード8としてその詳細を示すように、さらに、
トリー状の階層構造を持っている。そして、このような
ノード内のデータが格納されるデータブロックの領域使
用情報5が、各ノード対応に、第1図で説明したように
備えられている。The hierarchically structured data stored in each data block 2 of the data set 1 is data provided corresponding to nodes connected in a tree shape, as shown as a data hierarchical structure 7 in FIG. The data corresponding to each node is
Further, as shown in detail as one node 8,
It has a tree-like hierarchical structure. Area usage information 5 of data blocks in which such data within a node is stored is provided for each node as explained in FIG. 1.
次に、前述したような構成のデータセットlのデータブ
ロック2に、データを追加する場合の本発明の一実施例
による制御方法を、第2図に示すフローにより説明する
。Next, a control method according to an embodiment of the present invention when data is added to data block 2 of data set 1 having the above-described configuration will be explained with reference to the flow shown in FIG.
(1)データの追加処理が開始され、そのデータの追加
が、階層構造7のノード8に対して行われる場合、まず
、データを追加するノード8に対応して備えられる。ノ
ード単位の使用データブロックの領域使用情報5を参照
し、ノードを構成しているデータブロック2内に空きの
あるデータブロック2があるか否か判定する(ステップ
100〜102)。(1) When the data addition process is started and the data is added to the node 8 of the hierarchical structure 7, first, it is prepared corresponding to the node 8 to which the data is added. Referring to the area usage information 5 of the used data blocks for each node, it is determined whether there is any free data block 2 among the data blocks 2 configuring the node (steps 100 to 102).
(2)ステップ102の判定で、空きのあるデータブロ
ック2がある場合、当該データブロック2内に記録され
ている複数のデータ4のデータ間にある空きを詰め、デ
ータブロック内のデータ4を集めて、連続した空き領域
を確保し、これらのデータ4の移動に伴い、データ4の
位置情報であるデータ制御情報6を更新する(ステップ
103.104)。(2) If it is determined in step 102 that there is an empty data block 2, fill in the empty spaces between the plural data 4 recorded in the data block 2, and collect the data 4 in the data block. Then, a continuous free area is secured, and as the data 4 is moved, the data control information 6, which is the position information of the data 4, is updated (steps 103 and 104).
(3)また、ステップ102の判定で、空きのあるデー
タブロックがない場合、データセットのブロック使用情
報3を参照して、未使用データブロックを確保する(ス
テップ105.106)。(3) Furthermore, if it is determined in step 102 that there is no free data block, an unused data block is secured by referring to the block usage information 3 of the data set (steps 105 and 106).
(4)ステップ104あるいはステップ106の終了後
、確保された空き領域あるいは未使用データブロックに
、追加すべきデータを記録する(ステップ107)。(4) After step 104 or step 106 is completed, data to be added is recorded in the reserved free area or unused data block (step 107).
(5)その後、ノード単位の使用ブロックの領域使用情
報5の更新を行うと共に、データ制御情報6の更新を行
って処理を終了する(ステップ108゜109)。(5) Thereafter, the area usage information 5 of the usage block for each node is updated, and the data control information 6 is updated, and the process ends (steps 108 and 109).
前述した本発明の一実施例の動作例は、データセットに
データの追加を行う場合のものであったが、データの削
除を行う場合は、ノード単位の使用ブロックの領域使用
情報5の更新を行うだけでよい。The operation example of the embodiment of the present invention described above was for adding data to a data set, but when deleting data, it is necessary to update the area usage information 5 of the used block for each node. Just do it.
また、前述した本発明の一実施例において、使用ブロッ
クの領域使用情報5を、各データブロックに持たせず、
ノード単位にまとめて持たせるようにしたのは、空き領
域を検索する場合に、磁気ディスク等の記録媒体に対す
るアクセス回数を減少するためである。Furthermore, in the embodiment of the present invention described above, the area usage information 5 of the used block is not provided in each data block,
The reason why the information is provided in units of nodes is to reduce the number of accesses to a recording medium such as a magnetic disk when searching for a free area.
前述した本発明の実施例によれば、データの追加により
、データブロック内で他のデータの記録位置が変わった
場合にも、他のデータブロックに影響を及ぼすことがな
く、また、データセットの領域の分割化により生じる、
フラグメンテーションによる記憶領域の無駄を無くすこ
とができる。According to the embodiment of the present invention described above, even if the recording position of other data within a data block changes due to the addition of data, it does not affect other data blocks, and the data set is caused by segmentation of the area,
It is possible to eliminate wasted storage space due to fragmentation.
前述した本発明の一実施例は、階層構造を有する可変長
データの管理に本発明を適用したものであったが、本発
明は、普通の可変長データの管理にも適用することがで
きる。In the embodiment of the present invention described above, the present invention was applied to the management of variable length data having a hierarchical structure, but the present invention can also be applied to the management of ordinary variable length data.
[発明の効果]
以上説明したように本発明によれば、記憶域のフラグメ
ンテーションによる記憶領域の無駄を最小にし、かつ、
空き領域の検索、複数データの管理のため、使用データ
ブロックの全てについて調べることなく、空き領域に関
する情報を得ることができ、処理のオーバーヘッドを少
なくすることのでき、システムの性能の向上を図ること
ができる。[Effects of the Invention] As explained above, according to the present invention, waste of storage area due to storage area fragmentation can be minimized, and
To search for free space and manage multiple data, information about free space can be obtained without checking all used data blocks, reducing processing overhead and improving system performance. I can do it.
第1図は階層構造の可変長データを磁気ディスクに記録
する本発明の一実施例によるデータセットの内部構造を
説明する図、第2図はデータを追加する場合の処理動作
を説明するフローチャート、第3図は階層構造のデータ
を説明する図である。
1・・・・・・データセット、2・・・・・・データブ
ロック、3・・・・・・データセットのブロック使用情
報格納ブロック、4・・・・・・可変長データ、5・・
・・・・ブロック内領域使用情報、6・・・・・・デー
タ制御情報。
第1図
第2図
第3図
−一一−−+1FIG. 1 is a diagram illustrating the internal structure of a data set according to an embodiment of the present invention for recording hierarchically structured variable-length data on a magnetic disk, and FIG. 2 is a flowchart illustrating processing operations when adding data. FIG. 3 is a diagram illustrating hierarchically structured data. 1...Data set, 2...Data block, 3...Data set block usage information storage block, 4...Variable length data, 5...
. . . Intra-block area usage information, 6 . . . Data control information. Figure 1 Figure 2 Figure 3 -11--+1
Claims (1)
憶し、これらのデータを動的に管理するデータ管理方式
において、データセットを複数のデータブロックに分割
して用い、該データブロックに対するデータの書き込み
、変更が行われるとき、データブロックの使用情報デー
タと、使用データブロックの領域使用情報データと、デ
ータブロック内のデータ位置を示すデータ制御情報とを
用いて、データブロック内のデータを移動させ、連続し
た空き領域をデータブロック内に確保し、その空き領域
に新データを書き込むことを特徴とするデータ管理方式
。1. In a data management method that stores multiple pieces of variable length data in the storage area of a storage device and dynamically manages these data, a data set is divided into multiple data blocks and used to When writing or changing data, the data in the data block is written using the usage information data of the data block, the area usage information data of the used data block, and the data control information indicating the data position within the data block. A data management method characterized by moving data blocks, securing continuous free space within a data block, and writing new data into that free space.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1338171A JPH03201045A (en) | 1989-12-28 | 1989-12-28 | Data control system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1338171A JPH03201045A (en) | 1989-12-28 | 1989-12-28 | Data control system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03201045A true JPH03201045A (en) | 1991-09-02 |
Family
ID=18315585
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1338171A Pending JPH03201045A (en) | 1989-12-28 | 1989-12-28 | Data control system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03201045A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1125001A (en) * | 1997-06-30 | 1999-01-29 | Nec Corp | Non-volatile memory overwrite processor |
| US7162693B2 (en) | 2000-10-02 | 2007-01-09 | Fujitsu Limited | Process for managing data in which existing data item is moved to neighbor page before insertion or after deletion of another data item |
-
1989
- 1989-12-28 JP JP1338171A patent/JPH03201045A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH1125001A (en) * | 1997-06-30 | 1999-01-29 | Nec Corp | Non-volatile memory overwrite processor |
| US7162693B2 (en) | 2000-10-02 | 2007-01-09 | Fujitsu Limited | Process for managing data in which existing data item is moved to neighbor page before insertion or after deletion of another data item |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA1303747C (en) | Method of rapidly opening disk files identified by path names | |
| US9201943B2 (en) | Systems for performing an external (disk-based) sort of a large data file which take advantage of “presorted” data already present in the input | |
| WO2023186108A1 (en) | Method and apparatus for recording cold/hot state of memory | |
| JP4612269B2 (en) | Virtual volume management method | |
| JP2586219B2 (en) | High-speed media priority release exclusion method | |
| Mishra | A survey of LSM-Tree based Indexes, Data Systems and KV-stores | |
| JPH03201045A (en) | Data control system | |
| JPH0277949A (en) | File producing method | |
| JPH06110766A (en) | Directory storage method of split storage file system and computer system | |
| JP2000285022A (en) | Disk controller | |
| JPH0198020A (en) | Index management system | |
| JPH06187201A (en) | File system | |
| JPH08202595A (en) | File system | |
| JPS62287359A (en) | Control system for simultaneous file access in loosely coupled multi-processor system | |
| JPH0652019A (en) | File management device | |
| JPH0282332A (en) | Input/output buffer system for indexing indexed file | |
| JP2721034B2 (en) | Clustering control system | |
| JPH01255028A (en) | How to access external storage devices | |
| JP2679761B2 (en) | Data management system | |
| JP2718679B2 (en) | Data transfer control device | |
| JP4131579B2 (en) | Data management system and data management method | |
| JPS62281038A (en) | Data base constituting method | |
| JPH0581091A (en) | Data processor | |
| JPH04336340A (en) | Disk cache access control system | |
| CN121301412A (en) | Cache pool management methods, devices, processors, and storage media |