[go: up one dir, main page]

JPH04148350A - Cell management method in storage devices - Google Patents

Cell management method in storage devices

Info

Publication number
JPH04148350A
JPH04148350A JP2273089A JP27308990A JPH04148350A JP H04148350 A JPH04148350 A JP H04148350A JP 2273089 A JP2273089 A JP 2273089A JP 27308990 A JP27308990 A JP 27308990A JP H04148350 A JPH04148350 A JP H04148350A
Authority
JP
Japan
Prior art keywords
cell
tree structure
pointer information
cells
valid
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.)
Granted
Application number
JP2273089A
Other languages
Japanese (ja)
Other versions
JP2735684B2 (en
Inventor
Katsuhiko Kanetani
金谷 克彦
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP2273089A priority Critical patent/JP2735684B2/en
Publication of JPH04148350A publication Critical patent/JPH04148350A/en
Application granted granted Critical
Publication of JP2735684B2 publication Critical patent/JP2735684B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To quicken both a data access processing and a reconstructing processing of the tree structure in a garbage collection by separating inter-cell pointers into 2 series, into pointer for managing area assignment and for constructing the tree structure. CONSTITUTION:Pointer information 1a for managing the assignment of a storage area 2, and pointer information 1b for constructing the tree structure is duplexed for each cell. The garbage collection processing divides the area of valid cell and an invalid cell by using the pointer information 1a for managing the assignment of the storage area 2, and then retrieves the pointer information 1a for constructing the tree structure in order to reconstruct the tree structure. Thus, the cell of the tree structure which easily performs access of the data having the tree structure can be obtained, and the processing time of the garbage collection can be shortened.

Description

【発明の詳細な説明】 〔概 要] 計算機の記憶装置における領域のセル管理方式木構造を
もつデータのアクセスを容易にする木構造のセルをもつ
とともにガーベジコレクシジンの処理時間を短縮できる
セル管理方式を提供することを目的とし。
[Detailed Description of the Invention] [Summary] A cell management method for an area in a computer storage device A cell management system that has tree-structured cells that facilitate access to tree-structured data and that can shorten garbage collection processing time. The purpose is to provide a method.

各セルに @ll側割当て管理用ポインタ情報と木構造
構築用ポインタ情報とを多重に設け、木構造をもつ複数
のセルを要求元に割り当てる際1割り当てた複数のセル
がチェインにリンクされるよう各セルの領域割り当て管
理用ポインタ情報を設定するとともに、木構造上でのセ
ル間のリンク関係を木構造構築用ポインタ情報に設定し
、記憶領域上に分散して存在する空きの無効セルを集約
する処理を行う際、まず割り当て済の有効セルについて
領域割り当て管理用ポインタ情報に基づくチェインにし
たがって各有効セルを別の記憶領域に複写し1次に元の
記憶領域上の有効セル内の木構造構築用ポインタ情報と
同じポインタ情報をもつ複写先の記憶領域の有効セルを
検索し、その木構造構築用ポインタ情報を更新するよう
に構成した。
Pointer information for @ll side allocation management and pointer information for constructing a tree structure are provided in each cell multiple times, so that when multiple cells with a tree structure are assigned to a request source, the multiple cells that are assigned once are linked to a chain. In addition to setting pointer information for area allocation management for each cell, link relationships between cells on the tree structure are set in the pointer information for building the tree structure, and empty invalid cells that are scattered across the storage area are aggregated. When carrying out processing, first, each valid cell that has been allocated is copied to another storage area according to a chain based on pointer information for area allocation management, and then the tree structure within the valid cell in the original storage area is copied. The system is configured to search for valid cells in the copy destination storage area that have the same pointer information as the pointer information for construction, and update the pointer information for tree structure construction.

〔産業上の利用分野〕[Industrial application field]

本発明は、計算機の記憶装置における領域のセル管理方
式に関し、特に木構造によるセル管理とガーベジコレク
ションの処理方式に関するものである。
The present invention relates to a cell management method for an area in a computer storage device, and particularly to a cell management method using a tree structure and a garbage collection processing method.

〔従来の技術] 多重プログラミング処理においては、プログラムから領
域獲得要求があった場合、セル分割された記憶領域から
空きの無効セルを連続領域で割り当て、処理終了したプ
ログラムからセルを返却されると再び無効セルとして管
理し、再使用可能にする。
[Prior Art] In multiple programming processing, when a program makes a request to acquire an area, empty invalid cells are allocated as a contiguous area from the divided storage area, and when the cells are returned from the program that has finished processing, the process is performed again. Manage it as an invalid cell and make it reusable.

第7図はセル構造を示し、管理用チェイン領域とデータ
領域とをもつ、管理用チェイン領域には。
FIG. 7 shows a cell structure, and the management chain area has a management chain area and a data area.

R(右)チェインとL(左)チェインの2つのポインタ
が設定される。無効セルの群と9割り当て済みの有効セ
ルの群とは、それぞれポインタでリンクしてチェインに
つながれている。
Two pointers are set: an R (right) chain and an L (left) chain. The group of invalid cells and the group of 9 allocated valid cells are linked by pointers and connected in a chain.

ところで計算機の運用が進むにつれ、記憶領域上に無効
セルがばらばらに存在するようになる。
However, as the operation of a computer progresses, invalid cells become scattered in the storage area.

各プログラムから要求される領域の大きさはまちまちで
あることから、新たに要求された領域を連続した無効セ
ルのみで割り当てることが次第に不可能となり、不連続
位置にある無効セルを必要数だけチェインにつないだも
のを割り当てるようになる。
Since the size of the area requested by each program varies, it becomes gradually impossible to allocate the newly requested area with only consecutive invalid cells, and it becomes impossible to allocate the newly requested area only with consecutive invalid cells, so it becomes impossible to allocate the newly requested area with only consecutive invalid cells, and it becomes impossible to allocate the newly requested area with only consecutive invalid cells. It will start assigning things connected to .

第8図に領域割り当ての例を示す。図示のようにプログ
ラムA、 Bそれぞれに割り当てられた有効セルの領域
は、不連続位置にある複数のセルのチェインで構成され
ている。
FIG. 8 shows an example of area allocation. As shown in the figure, the valid cell areas assigned to each of programs A and B are composed of chains of a plurality of cells located at discontinuous positions.

しかしこのような不連続のセルからなる領域は。However, a region consisting of such discontinuous cells.

連続データをアクセスする場合にセル間のリンクをたど
って行う必要があるためアクセスに時間がかかり、計算
機の処理速度を低下させるという問題が生じる。
When accessing continuous data, it is necessary to follow links between cells, which results in a time-consuming access and a problem of slowing down computer processing speed.

そこである段階でばらばらに存在する無効セルを1箇所
に集約する処理が行われている。この処理はガーベジコ
レクションと呼ばれている。この場合1割り当て済みの
有効セルの配置換えを行う処理が行われる。第9図は第
8図の記憶装置の状態でガーベジコレクシッン処理を行
った結果の状態を示す。
Therefore, at a certain stage, a process is performed to consolidate the invalid cells that are scattered in one place. This process is called garbage collection. In this case, processing is performed to rearrange one valid cell that has been allocated. FIG. 9 shows the state as a result of performing garbage collection processing on the state of the storage device shown in FIG.

図示のように、無効セルと有効セルとはそれぞれで連続
領域となるように配置換えされている。
As shown in the figure, the invalid cells and valid cells are rearranged so that they form continuous areas.

配置換えされたセルは、アドレスが変わるため。This is because relocated cells have different addresses.

ポインタのつけ替えが行われる。The pointer is replaced.

〔発明が解決しようとする課題] ところで上述した従来のセル管理方式では、セルのチェ
インは一次元的にリンクされている。しかしデータには
二次元的な木構造をもつものがあり、従来のセル管理方
式では一つのデータ配列方向については効率的にアクセ
スを行うことができるが、他のデータ配列方向について
はセルのチェイン上でとびとびのセル間でアクセスを行
うことが必要となり、アクセス効率は著しく低下するこ
とになる。木構造をもつデータに対応して効率的なアク
セスを可能にするためには、チェインを2重化すればよ
いが、その場合ガーベジコレクションにおけるポインタ
のつけ替え処理が複雑になり。
[Problems to be Solved by the Invention] In the conventional cell management system described above, chains of cells are linked one-dimensionally. However, some data has a two-dimensional tree structure, and while conventional cell management methods can efficiently access one data array direction, cell chains cannot be accessed in other data array directions. In this case, it is necessary to perform access between discrete cells, and the access efficiency is significantly reduced. In order to enable efficient access to data that has a tree structure, it is possible to duplicate the chain, but in this case, the process of replacing pointers during garbage collection becomes complicated.

処理時間が長くなるという問題があった。There was a problem that the processing time became long.

本発明は、木構造をもつデータのアクセスを容易にする
木構造のセルをもつとともにガーベジコレクションの処
理時間を短縮できるセル管理方式を提供することを目的
としている。
SUMMARY OF THE INVENTION An object of the present invention is to provide a cell management system that has tree-structured cells that facilitate access to tree-structured data and that can shorten garbage collection processing time.

〔R題を解決するための手段] 本発明は、各セルに記憶領域割り当て管理用のポインタ
情報と木構造構築用のポインタ情報とを2重化してもた
せ、ガーベジコレクシジン処理は記憶領域割り当て管理
用のポインタ情報を用いて有効セルと無効セルの領域を
仕分け、その後で木構造構築用のポインタ情報を検索し
て木構造を再構築するものである。
[Means for Solving the R Problem] The present invention provides each cell with dual pointer information for storage area allocation management and pointer information for tree structure construction, and garbage collection processing is performed for storage area allocation management. The system uses pointer information to classify valid and invalid cell areas, and then searches for pointer information for tree structure construction to reconstruct the tree structure.

第1図は本発明の原理説明図である。FIG. 1 is a diagram explaining the principle of the present invention.

1は2本発明によるセル構造であり、そのうち1aは、
従来のセル管理方式のものと同様な有効セルのチェイン
を形成するための領域割り当て管理用ポインタ情報、l
bはセル間の木構造を記述するための木構造構築用ポイ
ンタ情報、lcはデータ格納に用いるデータ部である。
1 is a cell structure according to the present invention, of which 1a is:
Pointer information for area allocation management to form a chain of valid cells similar to that of the conventional cell management method, l
b is pointer information for constructing a tree structure for describing a tree structure between cells, and lc is a data section used for data storage.

2は セル分割された記憶領域である。図中の数字はセ
ル番号を示し、そのうちO付の数字は領域割り当てされ
た有効セルの番号を例示し、セル間の矢印は各セルの領
域割り当て管理用ポインタ情報1aによって設定される
チェインのリンクを例示している。
2 is a storage area divided into cells. The numbers in the figure indicate cell numbers, the numbers with O indicate the numbers of valid cells to which areas have been allocated, and the arrows between cells are links of chains set by the area allocation management pointer information 1a of each cell. is exemplified.

3は、セルの木構造の例であり、記憶領域2に例示され
ている有効セルに対応させて示しである。
3 is an example of a tree structure of cells, and is shown corresponding to valid cells illustrated in storage area 2. FIG.

各セル間のリンクは、各セルの木構造構築用ポインタ情
報によって階層的に設定される。
Links between cells are hierarchically set using pointer information for constructing a tree structure of each cell.

4は、ガーベジコレクションにおける有効セル複写処理
であり、記憶領域2上で、領域割り当て管理用ポインタ
情報1aでつくられるチェインをたどって有効セルを読
み出し、別領域に順に詰めて複写する。このとき領域割
り当て管理用ポインタ情報1aを新しいセル位置に対応
するよう更新する。
4 is a valid cell copying process in garbage collection, in which valid cells are read out by following the chain created by the area allocation management pointer information 1a on the storage area 2, and are sequentially filled in another area and copied. At this time, the area allocation management pointer information 1a is updated to correspond to the new cell position.

5は、有効セル複写処理4を行った結果の状態の記憶領
域である。各記憶領域2の有効セル■。
Reference numeral 5 indicates a storage area for the state as a result of performing the effective cell copying process 4. Valid cell ■ of each storage area 2.

■、■、■、■、0は1上方に詰めて配置換えされ、■
′1■′、■′、■′、■′、@′ で示されている。
■, ■, ■, ■, 0 are rearranged by 1 above, ■
Indicated by '1■', ■', ■', ■', @'.

矢印は更新された領域割り当て管理用ポインタ情報によ
るリンクを示す。
Arrows indicate links based on updated area allocation management pointer information.

6は ガーヘジコレクシゴンにおける木構造構築用ポイ
ンタ情報更新処理であり、記憶領域5に配置換えされた
各有効セルについて、複写元の有効セルの木構造構築用
ポインタ情報を用いて木構造のリンクにしたがい複写先
の有効セルを検索し対応するリンク関係にある複写先有
効セルの木構造構築用ポインタ情報を複写先の新しい位
置に対応するようにつけ替える更新処理を行う。
6 is a tree structure construction pointer information update process in the Garheji collection, and for each valid cell relocated to the storage area 5, the tree structure is linked using the tree structure construction pointer information of the valid cell of the copy source. Accordingly, a valid cell at the copy destination is searched for, and an update process is performed to replace the tree structure construction pointer information of the valid cell at the copy destination in the corresponding link relationship so as to correspond to the new position of the copy destination.

7は、配置換えされた各有効セルについて更新された木
構造構築用ポインタ情報1bが表す更新後の木構造であ
る。
7 is the updated tree structure represented by the tree structure construction pointer information 1b updated for each rearranged valid cell.

〔作 用] 第1図に示された木構造の例により9本発明方式による
ガーベジコレクシジン処理の動作を説明する。
[Operation] The operation of the garbage collector processing according to the method of the present invention will be explained using the example of the tree structure shown in FIG.

(1)有効セル複写処理4により記憶領域2から記憶領
域5に有効セルを複写した後起点Aの有効セル■の木構
造構築用ポインタ情報と同じポインタ情報をもつ有効セ
ルを、記憶領域5の有効セルの中から検索する。
(1) After copying the valid cell from the storage area 2 to the storage area 5 by the valid cell copying process 4, copy the valid cell having the same pointer information as the tree structure construction pointer information of the valid cell ■ of the starting point A to the storage area 5. Search among valid cells.

(2)検索結果の有効セル■′のアドレスに対して起点
Bのポインタを設定する。
(2) Set the pointer of the starting point B to the address of the valid cell ■' in the search result.

(3)記憶領域2でA点の有効セル■の木構造構築用ポ
インタ情報に含まれる上下方向(縦方向)のポインタに
より下方にリンクされた0点の有効セル■を参照し、そ
の木構造構築用ポインタ情報と同じポインタ情報をもつ
セルを記憶領域5で検索する。
(3) In storage area 2, refer to the valid cell ■ at point 0 linked downward by the vertical direction (vertical direction) pointer included in the pointer information for tree structure construction of the valid cell ■ at point A, and create the tree structure. The storage area 5 is searched for a cell having the same pointer information as the construction pointer information.

(4)検索結果のD点の有効セル■′ と有効セル■′
との上下方向の木構造構築用ポインタ情報をそれぞれの
新しいアドレスに対応するように更新する。
(4) Valid cell ■′ and valid cell ■′ at point D in search results
The pointer information for constructing a tree structure in the vertical direction is updated to correspond to each new address.

以上の方法を用い、上下方向と横方向の木構造構築用ポ
インタ情報に基づいて、記憶領域2の有効セルと記憶領
域5の有効セルとの間の木構造上の対応を順次求め、そ
れぞれの木構造構築用ポインタ情報を更新し、記憶領域
5の有効セル間に木構造を再構築する。
Using the above method, the correspondence in the tree structure between the valid cells in storage area 2 and the valid cells in storage area 5 is sequentially determined based on the pointer information for constructing the tree structure in the vertical and horizontal directions, and each The tree structure construction pointer information is updated, and the tree structure is rebuilt between valid cells in the storage area 5.

〔実施例〕〔Example〕

第2図は、第1図におけるセル構造1の実施例である。 FIG. 2 shows an example of the cell structure 1 in FIG.

図示されたセル構造1は全体で6つのポインタをもつ。The illustrated cell structure 1 has a total of six pointers.

そのうち2つは領域割り当て管理用ポインタ情報1aに
含まれる右チェインと左チェインのポインタであり、残
りの4つは、木構造構築用ポインタ情報に含まれる下ポ
インタ、上ポインタ、右チェイン、左チェインの各ポイ
ンタである。
Two of them are the right chain and left chain pointers included in the area allocation management pointer information 1a, and the remaining four are the bottom pointer, top pointer, right chain, and left chain pointers included in the tree structure construction pointer information. are each pointer.

これらのポインタの機能は、第3図と第4図により具体
的に説明される。
The functions of these pointers are explained in detail with reference to FIGS. 3 and 4.

第3図は木構造の例であり、セル1ないしセル5からな
る3階層の木構造を示す、第4図は、第3図の木構造の
例に基づく各セル内のポインタ情報の内容を示す、第3
図に示されている各セルの構造は、第2図に示されてい
るセル構造と対応している。
Figure 3 is an example of a tree structure, showing a three-level tree structure consisting of cells 1 to 5. Figure 4 shows the content of pointer information in each cell based on the example of the tree structure in Figure 3. show, third
The structure of each cell shown in the figure corresponds to the cell structure shown in FIG.

第3図において、セル1からセル5までのセルは、領域
割り当て管理のために番号順に領域割り当て管理用ポイ
ンタ情報1aの右チェインと左チェインの2つのポイン
タによって、第4図に示すようにループ状にかつ双方向
にリンクされている。
In FIG. 3, the cells from cell 1 to cell 5 are looped in numerical order for area allocation management using the right chain and left chain pointers of area allocation management pointer information 1a, as shown in FIG. linked in both directions.

また最上位の階層Oの起点のセルのアドレスとセル数は
、セル管理プログラム(図示省略)によって管理される
制御情報のセル管理ブロック中に登録されている。この
場合起点のセルのアドレスはセルlのアドレスであり、
セル数は05゛ である。
Further, the address of the starting cell of the highest layer O and the number of cells are registered in a cell management block of control information managed by a cell management program (not shown). In this case, the address of the starting cell is the address of cell l,
The number of cells is 05゛.

第3図の木構造において、2つの階層間であるセル1と
セル2の間およびセル2とセル4の間は。
In the tree structure of FIG. 3, the two hierarchies are between cell 1 and cell 2 and between cell 2 and cell 4.

第2図の木構造構築用ポインタ情報lb中の下ポインタ
と上ポインタによって上下の双方向にリンクされ、また
同一階層内のセル2とセル3の問およびセル4とセル5
の間は、それぞれ第2図の木構造構築用ポインタ情報l
b中の右チェインと左チェインの2つのポインタによっ
て双方向にリンクされる。しかし階層間でも、セル1と
セル3の間およびセル2とセル5の間には直接的なリン
クは設けられない。
The lower pointer and upper pointer in the tree structure construction pointer information lb in Figure 2 are linked in both directions, and between cells 2 and 3 and between cells 4 and 5 in the same hierarchy.
In between, the pointer information for constructing the tree structure shown in Figure 2 is shown.
It is bidirectionally linked by the two pointers in b, the right chain and the left chain. However, even between the layers, there are no direct links between cells 1 and 3 and between cells 2 and 5.

このようにして、第4図に示されるようなセル内のポイ
ンタ情報が設定される。
In this way, pointer information within the cell as shown in FIG. 4 is set.

次に本発明実施例によるガーヘジコレクシジン処理のフ
ローを第5図および第6図により説明す第5図はガーベ
ジコレクシッン処理の全体フローであり、第6図(A)
はその中の有効セル複写処理の詳細フロー、第6図(B
)は上下ポインタ再構築処理の詳細フロー、第6図(C
)は横チェイン再構築処理の詳細フローである。
Next, the flow of garbage collection processing according to an embodiment of the present invention will be explained with reference to FIGS. 5 and 6. FIG. 5 shows the overall flow of garbage collection processing, and FIG. 6 (A)
Figure 6 (B) shows the detailed flow of the effective cell copying process therein.
) is the detailed flow of the up/down pointer reconstruction process, and Figure 6 (C
) is a detailed flow of horizontal chain reconstruction processing.

第5図の全体フローにおいて、まず■で記憶領域中の全
有効セルを別の記憶領域に複写する。
In the overall flowchart of FIG. 5, all valid cells in a storage area are first copied to another storage area in step (3).

次に■で階層0に注目し、■で下の階層の要素の有無を
調べ、下に要素が有れば@で上下ポインタ再構築処理を
実行し、■でさらに下要素をポイントし、■で横チェイ
ンのベースポイントをセットシ、■で階層数を+1して
■に戻る。■でセットするベースポイントは横チェイン
がループ状双方向リンクのため横チェインをすべてたど
ったかどうかの判断に使用される。また各階層に1つづ
つ存在する。
Next, use ■ to focus on layer 0, use ■ to check whether there is an element in the lower layer, and if there is an element below, use @ to perform up/down pointer reconstruction processing, use ■ to point to an element further down, and use Press to set the base point of the horizontal chain, press ■ to increase the number of layers by 1, and return to ■. The base point set in ■ is used to judge whether all the horizontal chains have been traced because the horizontal chains are loop-like bidirectional links. There is also one in each layer.

他方、■でさらに下の要素が無い場合には、■で横の要
素の有無を調べ、横に要素があれば横チェインのポイン
タ値かので設定されたベースポイントと一致するかどう
かを調べ、−敗しなければ■の横チェイン再構築処理を
実行し、さらに0で横要素をポイントして@に戻る。
On the other hand, if there is no element further down in ■, check if there is a horizontal element in ■, and if there is an element next to it, check whether it matches the set base point because it is a horizontal chain pointer value, - If not defeated, perform the horizontal chain reconstruction process (■), point to the horizontal element with 0, and return to @.

他方、■で横に要素が無い場合および■で横チェインの
ポインタ値とベースポイントとが一致しかつ■で階層が
0階層で無ければ上要素をポイントし、■で階層値を−
1して■に戻る。そして■で階層値が0になったとき処
理を終了する。
On the other hand, if there is no horizontal element in ■, and if the pointer value of the horizontal chain matches the base point in ■, and the hierarchy is not 0 in ■, point to the upper element, and change the hierarchy value to − in ■.
1 and return to ■. Then, when the hierarchy value becomes 0 in ■, the process ends.

次に、第6図(A)の有効セルの複写処理の詳細フロー
を説明する。
Next, a detailed flow of the valid cell copying process shown in FIG. 6(A) will be explained.

まず■−1で有効セル管理ブロックの起点アドレスによ
り最初の有効セルをポイントする0次に■−2でカウン
タCNTに有効セル数を設定し。
First, in step 2-1, point to the first valid cell using the starting address of the effective cell management block.0 Next, in step 2-2, the number of effective cells is set in the counter CNT.

■−3でCNT=Oか否かを調べ、CNTがO以外の値
のとき■−4で別領域に有効セルを複写し。
(2) Check whether CNT=O or not in -3, and if CNT is a value other than O, (2) Copy the valid cell to another area in -4.

■−5で有効セルのポインタを進め、CNT4−1する
。■−3に戻り、CNT−0のとき終了する。
(2) Advance the valid cell pointer at -5 and perform CNT4-1. - Return to -3 and end when CNT-0.

次に、第6図(B)の上下ポインタ再構築処理の詳細フ
ローを説明する。
Next, a detailed flow of the up/down pointer reconstruction process shown in FIG. 6(B) will be explained.

@−1で複写先のwI域の起点セルをポイントし。Use @-1 to point to the starting cell of the wI area of the copy destination.

■−2ないし■−4で対象セルと同じ上下ポインタおよ
び横チェインのポインタをもつセルを検索し、該当セル
が見出されたとき、そのセルと対象セルとの間で上下ポ
インタを設定し、終了する。
In ■-2 to ■-4, search for a cell that has the same up/down pointer and horizontal chain pointer as the target cell, and when the relevant cell is found, set the up/down pointer between that cell and the target cell, finish.

次に第6図(C)の横チェイン再構築処理について説明
する。
Next, the horizontal chain reconstruction process shown in FIG. 6(C) will be explained.

■−1で複写先領域の起点セルをポイントし。- Point to the starting cell of the copy destination area with -1.

■−2および■−3で対象セルと同じ横チェインのポイ
ンタをもつセルを検索し、該当セルが見出されたときそ
のセルと対象との間に横チェインのポインタを設定する
In (2)-2 and (2)-3, a cell having the same horizontal chain pointer as the target cell is searched for, and when the relevant cell is found, a horizontal chain pointer is set between that cell and the target.

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

本発明によれば、セル間のポインタが領域割り当て管理
用と木構造構築用とに分離して2系列化されているため
、領域管理が容易であるとともに。
According to the present invention, since the pointers between cells are divided into two series, one for area allocation management and one for tree structure construction, area management is easy.

データアクセス処理とガーベジコレクションにおける木
構造の再構築処理とを迅速化することができる。
It is possible to speed up data access processing and tree structure reconstruction processing in garbage collection.

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

第1図は本発明の原理説明図、第2図は本発明実施例に
よるセル構造の説明図、第3図は本発明実施例による木
構造の例の説明図、第4図は本発明実施例によるセル構
成例の説明図、第5図は本発明実施例の処理の全体フロ
ー図、第6図は本発明実施例の処理の詳細フロー図、第
7図は従来の方式によるセル構造の説明図、第8図は従
来方式によるセル割り当ての例の説明図、第9図は従来
方式によるガーベジコレクシラン処理結果の説明図であ
る。 第1図中。 I:セル構造。 2:記憶領域 3:木構造の例。 4:有効セル複写処理。 5:複写先の記憶領域 6:木構造構築用ポインタ情報更新処理。 7:更新後の木構造。 本失明実施例によるセル構成例 晃 4 図 年 硲 昧 歎
FIG. 1 is an explanatory diagram of the principle of the present invention, FIG. 2 is an explanatory diagram of a cell structure according to an embodiment of the present invention, FIG. 3 is an explanatory diagram of an example of a tree structure according to an embodiment of the present invention, and FIG. 4 is an explanatory diagram of an example of a tree structure according to an embodiment of the present invention. FIG. 5 is an overall flowchart of the process according to the embodiment of the present invention, FIG. 6 is a detailed flowchart of the process according to the embodiment of the present invention, and FIG. 7 is a diagram of the cell structure according to the conventional method. FIG. 8 is an explanatory diagram of an example of cell allocation according to the conventional method, and FIG. 9 is an explanatory diagram of the garbage collection processing result according to the conventional method. In Figure 1. I: Cell structure. 2: Storage area 3: Example of tree structure. 4: Valid cell copy processing. 5: Copy destination storage area 6: Tree structure construction pointer information update process. 7: Tree structure after update. Example of cell configuration according to this blindness example.

Claims (1)

【特許請求の範囲】 記憶領域が複数のセルに分割され、領域割り当てをセル
単位に行う記憶装置において、 各セルに、領域割り当て管理用ポインタ情報と木構造構
築用ポインタ情報とを多重に設け、木構造をもつ複数の
セルを要求元に割り当てる際、割り当てた複数のセルが
チェインにリンクされるよう各セルの領域割り当て管理
用ポインタ情報を設定するとともに、木構造上でのセル
間のリンク関係を木構造構築用ポインタ情報に設定し、 記憶領域上に分散して存在する空きの無効セルを集約す
る処理を行う際、まず割り当て済の有効セルについて領
域割り当て管理用ポインタ情報に基づくチェインにした
がって各有効セルを別の記憶領域に複写し、次に元の記
憶領域上の有効セルを木構造構築用ポインタ情報にした
がって順次たどり、対象有効セル内の木構造構築用ポイ
ンタ情報と同じポインタ情報をもつ複写先の記憶領域の
有効セルを検索し、該当する有効セルが見出されたとき
その木構造構築用ポインタ情報を更新する処理を木構造
の全てのリンクについて繰り返すことを特徴とする記憶
装置におけるセル管理方式。
[Scope of Claims] In a storage device in which a storage area is divided into a plurality of cells and area allocation is performed on a cell-by-cell basis, each cell is provided with pointer information for area allocation management and pointer information for constructing a tree structure multiplexed, When allocating multiple cells with a tree structure to a request source, the area allocation management pointer information for each cell is set so that the multiple allocated cells are linked to a chain, and the link relationship between cells on the tree structure is set. is set in the pointer information for tree structure construction, and when performing the process of aggregating empty invalid cells that are scattered in the storage area, first, the allocated valid cells are set according to the chain based on the pointer information for area allocation management. Copy each valid cell to another storage area, then trace the valid cells in the original storage area sequentially according to the tree structure construction pointer information, and use the same pointer information as the tree structure construction pointer information in the target valid cell. A storage device characterized in that a process of searching for a valid cell in a storage area of a copy destination, and updating pointer information for constructing a tree structure when a corresponding valid cell is found, is repeated for all links in the tree structure. Cell management method in.
JP2273089A 1990-10-11 1990-10-11 Cell management method for storage device Expired - Lifetime JP2735684B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2273089A JP2735684B2 (en) 1990-10-11 1990-10-11 Cell management method for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2273089A JP2735684B2 (en) 1990-10-11 1990-10-11 Cell management method for storage device

Publications (2)

Publication Number Publication Date
JPH04148350A true JPH04148350A (en) 1992-05-21
JP2735684B2 JP2735684B2 (en) 1998-04-02

Family

ID=17522990

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2273089A Expired - Lifetime JP2735684B2 (en) 1990-10-11 1990-10-11 Cell management method for storage device

Country Status (1)

Country Link
JP (1) JP2735684B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006085300A (en) * 2004-09-14 2006-03-30 Kansai Tlo Kk Data processing method, data processing apparatus, and computer program
US7257601B2 (en) 2003-02-27 2007-08-14 Sony Corporation Recording apparatus, file management method, program for file management method, recording medium having program for file management method recorded thereon

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59119458A (en) * 1982-12-27 1984-07-10 Fujitsu Ltd Method of garbage collection

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59119458A (en) * 1982-12-27 1984-07-10 Fujitsu Ltd Method of garbage collection

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7257601B2 (en) 2003-02-27 2007-08-14 Sony Corporation Recording apparatus, file management method, program for file management method, recording medium having program for file management method recorded thereon
JP2006085300A (en) * 2004-09-14 2006-03-30 Kansai Tlo Kk Data processing method, data processing apparatus, and computer program

Also Published As

Publication number Publication date
JP2735684B2 (en) 1998-04-02

Similar Documents

Publication Publication Date Title
Kraska et al. Sagedb: A learned database system
CA2150745C (en) Method and apparatus for implementing partial declustering in a parallel database system
US7617265B2 (en) Indexing method of database management system
CN106055563B (en) A kind of parallel spatial querying method and its system based on grid dividing
US6772163B1 (en) Reduced memory row hash match scan join for a partitioned database system
US5884320A (en) Method and system for performing proximity joins on high-dimensional data points in parallel
US5852826A (en) Parallel merge sort method and apparatus
US5561786A (en) Computer method and system for allocating and freeing memory utilizing segmenting and free block lists
Batory et al. A unifying model of physical databases
US20140358977A1 (en) Management of Intermediate Data Spills during the Shuffle Phase of a Map-Reduce Job
Bender et al. Exponential structures for efficient cache-oblivious algorithms
Nashat et al. A comprehensive taxonomy of fragmentation and allocation techniques in distributed database design
EP0801773A1 (en) Storage plane organization and storage systems based thereon
US6845375B1 (en) Multi-level partitioned database system
CN104871153B (en) Method and system for distributed massively parallel processing database
Jindal et al. A comparison of knives for bread slicing
Lovelace et al. VSAM demystified
Halfpap et al. Workload-driven fragment allocation for partially replicated databases using linear programming
Olma et al. BLOCK: Efficient execution of spatial range queries in main-memory
Roumelis et al. Bulk-loading and bulk-insertion algorithms for xBR+-trees in solid state drives
Lwin et al. Non-redundant dynamic fragment allocation with horizontal partition in Distributed Database System
DE102021123844A1 (en) WORKLOAD-DRIVEN DATABASE REORGANIZATION
JPH04148350A (en) Cell management method in storage devices
Wang et al. Sparkarray: An array-based scientific data management system built on apache spark
Halfpap et al. A comparison of allocation algorithms for partially replicated databases