JPS63231547A - Empty area managing system for memory device - Google Patents

Empty area managing system for memory device

Info

Publication number
JPS63231547A
JPS63231547A JP62064181A JP6418187A JPS63231547A JP S63231547 A JPS63231547 A JP S63231547A JP 62064181 A JP62064181 A JP 62064181A JP 6418187 A JP6418187 A JP 6418187A JP S63231547 A JPS63231547 A JP S63231547A
Authority
JP
Japan
Prior art keywords
empty area
block
free space
data
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.)
Granted
Application number
JP62064181A
Other languages
Japanese (ja)
Other versions
JP2550055B2 (en
Inventor
Toshio Watanabe
敏男 渡辺
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 Dai Ichi Communications Software Ltd
Original Assignee
Fujitsu Dai Ichi Communications Software 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 Dai Ichi Communications Software Ltd filed Critical Fujitsu Dai Ichi Communications Software Ltd
Priority to JP62064181A priority Critical patent/JP2550055B2/en
Publication of JPS63231547A publication Critical patent/JPS63231547A/en
Application granted granted Critical
Publication of JP2550055B2 publication Critical patent/JP2550055B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To reduce the probability in which information is stored in the non- continuous area of an empty area and to shorten the reading time of the information by storing data to be able to identify whether a block corresponding to respective columns of an empty area control table is being used, or is the head block of an empty area, or is the empty area succeeding to the head block. CONSTITUTION:In respective columns of an empty area control table 2, either of three types of data of the data to show that the corresponding block of a memory device is used, the data to show the number of the blocks of a continuous empty area and the data to show that the block is the block except the head block of the empty continuous area is only stored. Consequently, since it is sufficient for these data to be short, it is sufficient for the time necessary to retrieve a continuous empty area to satisfy the number of the request blocks of the data to be stored into a memory device 1 to be short. When the continuous empty area to satisfy the number of the request blocks exists, the data are not stored to the non-continuous block.

Description

【発明の詳細な説明】 〔概 要〕 記憶装置の空領域管理方式であって、記憶装置の所定容
量単位の複数のブロックに一対一対応するコラムを有す
る空領域管理テーブルを備え、各コラムには、対応する
ブロックが使用中か、空領域の先頭ブロックか、又はそ
の先頭ブロックに後続する空領域かを識別できるデータ
を格納したことにより、空領域の不連続領域に情報が格
納される確率を低下させ、それにより、情報の読出し時
間の短縮を図ったもの。
[Detailed Description of the Invention] [Summary] This is a free space management method for a storage device, which includes a free space management table having columns in one-to-one correspondence with a plurality of blocks of a predetermined capacity unit of the storage device, and a free space management table for each column. is the probability that information is stored in a discontinuous area of an empty area by storing data that can identify whether the corresponding block is in use, the first block of an empty area, or the empty area following the first block. This reduces the time required to read information.

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

本発明は記憶装置の空領域管理方式に関し、特に、ハー
ドディスクやフロッピーディスク等の記憶装置の記憶領
域の空領域を連続領域で管理することにより、記憶装置
に対する情報の書込み及び続出し速度を向上させる空領
域管理方式に関する。
The present invention relates to a free space management method for a storage device, and in particular, it improves the speed of writing and reproducing information to a storage device by managing the free space of a storage device such as a hard disk or floppy disk as a continuous area. Regarding empty space management methods.

ディスク装置等の外部記憶装置の読出し時間は連いこと
が要求されるが、そのためには情報を記憶装置の連続領
域に格納しておくことが望ましく、これを実現するため
には記憶装置の空領域を連続領域で管理しておく必要が
ある。
The read time of external storage devices such as disk devices is required to be continuous, but for this purpose it is desirable to store information in a continuous area of the storage device. It is necessary to manage the area as a continuous area.

〔従来の技術〕[Conventional technology]

従来の空領域管理方式を第6図に示す。 A conventional free space management system is shown in FIG.

第6図において、61はディスクであって、その記It
IISjf域をセクタ単位に分割し、使用中のセクタす
なわち有用なデータが格納されているセクタを斜線で示
しである。62は空領域情報管理テーブルである。ディ
スク61の領域はセクタ単位で管理されており、空領域
の開始位置及び終了位置の情報の各々は、シリンダ番号
、トラック番号、及びセクタ番号で表わされている。
In FIG. 6, 61 is a disk, and its description It
The IISjf area is divided into sectors, and sectors in use, that is, sectors in which useful data is stored, are shown with diagonal lines. 62 is an empty area information management table. The area of the disk 61 is managed on a sector-by-sector basis, and information on the start position and end position of the empty area is each represented by a cylinder number, track number, and sector number.

ディスク61の空領域にデータを格納する場合、処理装
置(図示せず)はテーブル62を参照して、必要なセク
タ数だけ空領域を確保する。すなわち、データ格納に必
要なセクタ数の要求があると、空領域情報テーブル62
を参照して、空領域位置の先頭から要求分の容量だけ、
セクタの連続・不連続にかかわらず空領域を新たなデー
タのために提供する。図示の例では、たとえば要求セク
タ数が2であるとき、空領域位置■の全容量である1セ
クタ分と、空領域位置■のセクタ2とに不連続にデータ
が格納されることになる。
When storing data in an empty area of the disk 61, a processing device (not shown) refers to the table 62 and secures empty area for the required number of sectors. That is, when there is a request for the number of sectors required for data storage, the free space information table 62
With reference to the requested capacity from the beginning of the free space position,
Provides empty space for new data regardless of whether sectors are contiguous or discontinuous. In the illustrated example, when the number of required sectors is 2, for example, data is stored discontinuously in one sector, which is the full capacity of empty area position ■, and in sector 2 of empty area position ■.

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

上記の如く、従来方式によれば、要求セクタ数の容量が
連続している空領域が存在するにもかかわらず、データ
が不連続な領域に格納されることがあり、データが不連
続に格納された場合にこれを読み出すのに要する時間が
長くなるという問題がある。
As mentioned above, according to the conventional method, even though there is an empty area with a continuous capacity of the required number of sectors, data may be stored in discontinuous areas, and data may be stored discontinuously. There is a problem in that the time required to read the data increases when the data is read.

また、空領域情報テーブル62の各コラムには前述の如
くシリンダ番号、トラック番号、及びセクタ番号が格納
されているが、たとえば、上記各番号をそれぞれ1バイ
トで表わすと、空領域の開始位置と終了位置を表わすた
めに計6バイトのデータが必要となり、空領域情報テー
ブル62が占める記憶領域が大きいという問題がある。
Furthermore, each column of the free space information table 62 stores the cylinder number, track number, and sector number as described above. For example, if each of the above numbers is expressed in 1 byte, it is the starting position of the free space. There is a problem in that a total of 6 bytes of data is required to represent the end position, and the storage area occupied by the free space information table 62 is large.

更に、空領域情報テーブル62内の各番号を示すデータ
が長いので、ディスク61の空領域にデータを格納する
場合、新たなデータの要求セクタ数と空領域情報テーブ
ル72内のデータ量との差分の演算に要する時間が長く
なり、したがってデータ格納のための処理時間が長くな
るという問題もある。
Furthermore, since the data indicating each number in the free space information table 62 is long, when storing data in the free space of the disk 61, the difference between the number of sectors requested for new data and the amount of data in the free space information table 72 is There is also the problem that the time required for the calculation becomes longer, and therefore the processing time for data storage becomes longer.

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

第1図は本発明の原理ブロック図である。 FIG. 1 is a block diagram of the principle of the present invention.

第1図において、本発明による記憶装置の空領域管理方
式は、記憶装置lの情報格納領域を所定容量単位の複数
のブロックに分割したとき、そのブロックの各々に一対
一に対応するコラムを有する空領域管理テーブル2を具
備している。
In FIG. 1, the free space management method for a storage device according to the present invention has a column that corresponds one-to-one to each block when the information storage area of the storage device l is divided into a plurality of blocks each having a predetermined capacity unit. A free space management table 2 is provided.

空領域管理テーブル2のコラムの各々は、記憶装置の対
応するブロックの使用状態を示すデータを格納するもの
である。
Each column of the free space management table 2 stores data indicating the usage status of the corresponding block of the storage device.

使用状態を示すデータは、対応するブロックが使用中a
か空領域かを識別するものであって、記憶装置の1以上
の連続する空領域に対しては、空領域の先頭のブロック
に対応するコラムに、連続する空領域のブロック数を示
すデータiを格納し、かつ、他の空領域のブロックに対
応するコラムには空領域であることを示すデータbを格
納するようにしである。
The data indicating the usage status indicates that the corresponding block is in use.
For one or more consecutive empty areas of a storage device, data i indicating the number of consecutive empty area blocks is placed in the column corresponding to the first block of the empty area. , and data b indicating that the block is an empty area is stored in columns corresponding to blocks in other empty areas.

本発明の空領域管理方式は更に、記憶装置1の空領域の
検索容量の指示に応じて、検索するブロック数を算出し
、空領域管理テーブル2を参照して算出した検索ブロッ
ク数以上の空領域ブロックをヰ★索すると共に、空領域
に情報を格納後は、空領域管理テーブル2を更新する空
領域検索処理部3と、空領域検索処理部3による検索結
果に応じて記憶装置1の検索された空領域ブロックに情
報を格納し、かつ、使用中のブロックを必要に応じて空
領域に解放する処理を行なう格納解放処理部4と、格納
解放処理部4における格納又は解放の処理に応じて、空
領域管理テーブルを更新する管理テーブル更新処理部5
とを備えている。
The free space management method of the present invention further calculates the number of blocks to be searched in accordance with the instruction of the free space search capacity of the storage device 1, and refers to the free space management table 2 to create a free space that is equal to or greater than the calculated number of search blocks. After searching for an area block and storing information in the empty area, the empty area search processing unit 3 updates the empty area management table 2, and the storage device 1 is updated according to the search result by the empty area search processing unit 3. A storage/release processing unit 4 stores information in the searched free space block and releases blocks in use to free space as necessary, and a storage/release processing unit 4 performs storage or release processing. A management table update processing unit 5 updates the free space management table accordingly.
It is equipped with

〔作 用〕[For production]

空領域管理テーブル2の各コラムには、記憶装置の対応
するブロックが使用中であることを示すデータ、連続す
る空領域のブロック数を示すデータ、及び連続する空領
域の先頭ブロック以外のブロックであることを示すデー
タの3種類のデータのいずれかが格納されているだけで
あり、これらのデータは短かくて済むので、記憶装置1
に格納しようとするデータの要求ブロック数を満たす連
続空領域の検索に要する時間が短かくて済む。
Each column of the free space management table 2 contains data indicating that the corresponding block of the storage device is in use, data indicating the number of consecutive free space blocks, and data indicating that the block other than the first block of the continuous free space is in use. Only one of three types of data indicating a certain thing is stored, and these data only need to be short, so the storage device 1
The time required to search for a continuous empty area that satisfies the required number of blocks for data to be stored in is shortened.

また、要求ブロック数を満たす連続空領域が存在する場
合には、データが不連続のブロックに格納されることは
ない。
Furthermore, if there is a continuous empty area that satisfies the required number of blocks, data will not be stored in discontinuous blocks.

〔実施例〕〔Example〕

第2図は本発明の一実施例による空領域管理方式におい
て、ディスク装置21の状態と空領域管理テーブル22
の状態との対応関係を示す図である。
FIG. 2 shows the state of the disk device 21 and the free space management table 22 in the free space management system according to an embodiment of the present invention.
It is a figure showing the correspondence with the state.

第2図において、ディスク装y122のブロック0は空
領域、ブロック1は使用中、ブロック2〜4は空領域、
ブロック4は使用中、ブロック5〜8は空領域を示して
いる。各ブロックは、たとえば256バイトのセクタに
対応している。空領域管理テーブル22のコラム0,1
,2.・・・はそれぞれ、ディスク装置21のブロック
0.1,2.・・・一対一に対応している。空領域管理
テーブル22において、コラム0にはディスク21のブ
ロック0が空領域の先頭ブロックであり、かつ、連続す
る空領域のブロック数は1であることを示すフラグであ
る1″が格納されている。コラム1には、対応するブロ
ック1が使用中であることを示すフラグ−1が格納され
ている。コラム2には、対応するブロック2が空領域の
先頭プ′凸ツクであり、かつ、連続する空領域のブロッ
ク数が2であることを示すフラグである“2”が格納さ
れている。
In FIG. 2, block 0 of the disk drive y122 is an empty area, block 1 is in use, blocks 2 to 4 are empty areas,
Block 4 is in use and blocks 5-8 are empty areas. Each block corresponds to a 256-byte sector, for example. Columns 0 and 1 of empty space management table 22
,2. ... are blocks 0.1, 2, . . . of the disk device 21, respectively. ...There is a one-on-one correspondence. In the free space management table 22, column 0 stores a flag 1'' indicating that block 0 of the disk 21 is the first block of free space and the number of consecutive blocks of free space is 1. Column 1 stores a flag -1 indicating that the corresponding block 1 is in use. Column 2 stores a flag -1 indicating that the corresponding block 2 is the top block of the empty area and , a flag "2" indicating that the number of consecutive empty area blocks is 2 is stored.

コラム3には、対応するブロック3が、空領域の先頭ブ
ロックではない空領域であることを示すフラグ0”が格
納されている。以下、同様に、コラムに格納されたフラ
グが“−1″のときは対応するブロックが使用中の領域
であり、フラグが1以上の数iのときは対応するブロッ
クが連続空領域であってその連続ブロック数がiである
ことを意味しており、フラグが@0″のときは対応する
ブロックが空領域の先頭ブロックではない空領域である
ことを意味している。
Column 3 stores a flag "0" indicating that the corresponding block 3 is an empty area that is not the first block of an empty area.Similarly, the flags stored in the column are "-1". When , the corresponding block is an area in use, and when the flag is a number i greater than or equal to 1, it means that the corresponding block is a continuous empty area and the number of consecutive blocks is i, and the flag When is @0'', it means that the corresponding block is an empty area that is not the first block of an empty area.

第2図に示した状態から出発して、500バイトの新た
なデータをディスク′21に格納する場合の空領域管理
テーブルの内容の変化を第3図に示し、空領域検索時の
第1図の原理ブロック図に示した装置の動作を第4図の
フローチャートに示す。
Starting from the state shown in FIG. 2, FIG. 3 shows changes in the contents of the free space management table when 500 bytes of new data are stored on disk '21, and FIG. The operation of the apparatus shown in the principle block diagram is shown in the flowchart of FIG.

第1図、第3図及び第4図によって、ディスク21への
データ格納動作及び空領域管理テーブル22の更新動作
を次に説明する。
The operation of storing data on the disk 21 and the operation of updating the free space management table 22 will now be described with reference to FIGS. 1, 3, and 4.

第3図(a)の状態は第2図に示した状態と同一である
。今、格納解放処理部4に対して500バイトのデータ
格納要求があると、格納解放処理部4は空領域検索処理
部3に対して検索バイト数を通知する。空領域検索処理
部3では通知された検索バイト数に基づいて、検索する
ブロック数を算出する。本実施桝では、500バイトの
検索要求であるので、検索するブロック数は、1ブロツ
クが256バイトの場合、2ブロツクとなる(第4図、
ステップ40)。
The state shown in FIG. 3(a) is the same as the state shown in FIG. Now, when there is a request to store 500 bytes of data to the storage release processing unit 4, the storage release processing unit 4 notifies the empty area search processing unit 3 of the number of bytes to be searched. The free space search processing unit 3 calculates the number of blocks to be searched based on the notified number of search bytes. In this implementation, since the search request is 500 bytes, the number of blocks to be searched is 2 blocks if one block is 256 bytes (see Figure 4).
Step 40).

次いで、空領域検索処理部3は、空領域管理テーブル2
2(第1図では2)を参照して、上記算出したブロック
数(=2)以上の空領域ブロックを検索しく第4図、ス
テップ41)、空領域が連続ブロックで存在するかどう
かを測定する(ステップ42)。第3図(a)の状態で
は空領域管理テーブル22のコラム3にフラグ2”が格
納されており、このフラグ2”は算出ブロック数に一致
するので空領域有りと判定される。
Next, the empty area search processing unit 3 uses the empty area management table 2.
2 (2 in Figure 1), search for empty area blocks that are greater than or equal to the number of blocks calculated above (=2) (Figure 4, Step 41), and measure whether or not empty areas exist in continuous blocks. (step 42). In the state shown in FIG. 3(a), a flag 2'' is stored in column 3 of the empty area management table 22, and since this flag 2'' matches the calculated number of blocks, it is determined that there is an empty area.

空領域有りとの判定結果は、その空領域の先頭コラム番
号と共に、空領域検索処理部3から格納解放処理部4に
通知され、処理部4では通知結果に基づいて、ディスク
21 (第1図では記憶装置1)の検索された空領域に
データを格納する。これと同時に又はこの直前又は直後
に、処理部4は管理テーブル更新処理部5に対して、デ
ータを格納したブロックのブロック番号を通知し、管理
テーブル更新処理部5は通知されたブロック番号に対応
するコラムのフラグを−1に更新する(ステップ43)
。ここで、検索したブロックのすべてのエリアにデータ
が格納されない場合でもそのブロックに対応するコラム
のフラグは−1に更新される。たとえば500バイトの
データを格納すると、ブロック3のエリアは6バイト余
るが、コラム3のフラグはこの場合でも−1に更新する
The determination result that there is an empty area is notified from the empty area search processing unit 3 to the storage release processing unit 4 along with the first column number of the empty area. Based on the notification result, the processing unit 4 searches the disk 21 (see Then, data is stored in the searched empty area of the storage device 1). At the same time, immediately before or after this, the processing unit 4 notifies the management table update processing unit 5 of the block number of the block in which the data is stored, and the management table update processing unit 5 responds to the notified block number. Update the flag of the column to -1 (step 43)
. Here, even if data is not stored in all areas of the searched block, the flag of the column corresponding to the block is updated to -1. For example, if 500 bytes of data are stored, the area of block 3 will have 6 bytes left over, but the flag in column 3 will be updated to -1 even in this case.

以上の動作の結果の状態が第3図(b)に示されている
The state resulting from the above operations is shown in FIG. 3(b).

ステップ42にて、要求されたバイト数以上の連続する
空領域が検索できなかったとき始めて、空領域管理テー
ブル22中の不連続な空領域を組み合わせて、空領域を
検索する(ステップ44)。
Only when it is not possible to search for a continuous empty area of the requested number of bytes or more in step 42, an empty area is searched for by combining the discontinuous empty areas in the empty area management table 22 (step 44).

第6図に示した従来方式と異なり、まず最初に必要な連
続する空領域を検索してそこにデータを格納するので、
データが不連続のブロックに格納される確率は極めて小
さくなる。
Unlike the conventional method shown in Figure 6, it first searches for the necessary continuous empty area and stores the data there.
The probability that data will be stored in discontinuous blocks becomes extremely small.

ところで、ディスク21内の使用中のブロックであって
も、その中のデータが不用になると空領域に解放しなけ
ればならない。第5図は、このような領域解放の要求が
あった場合の動作を示すフローチャートである。第1図
及び第5図において、格納解放処理部4に対して、解放
すべきセクタのブロック番号を通知して領域解放要求が
なされると、ステップ51にて、管理テーブル更新処理
部5は、空領域管理テーブルにおいて解放となるブロッ
クのフラグを空領域フラグ−1″に更新する。
Incidentally, even if a block is in use within the disk 21, when the data therein is no longer needed, it must be released into a free area. FIG. 5 is a flowchart showing the operation when such an area release request is made. 1 and 5, when an area release request is made to the storage release processing unit 4 by notifying the block number of the sector to be released, in step 51, the management table update processing unit 5: Update the flag of the block to be released in the free space management table to free space flag -1''.

次いでステップ52にて、解放したブロックの先頭のブ
ロック番号とブロック数が格納解放処理部4から管理テ
ーブル更新処理部5に通知され、更新処理部5はこの通
知に基づいて、空領域管理テーブルの解放したブロック
に対応するコラムの上のコラムが空領域を示している場
合は、解放したブロックとその上の空領域を連続な空領
域とし、対応するコラムのフラグを更新する。
Next, in step 52, the storage release processing unit 4 notifies the management table update processing unit 5 of the first block number and block number of the released block, and the update processing unit 5 updates the free space management table based on this notification. If the column above the column corresponding to the released block indicates an empty area, the released block and the empty area above it are treated as a continuous empty area, and the flag in the corresponding column is updated.

次いでステップ53においても、解放したブロックの下
側のブロックが空領域の場合は、ステップ52にて空領
域としたブロックと上記下側のブロックを連続な空領域
として、対応するコラムのフラグを更新する。
Next, in step 53, if the lower block of the released block is an empty area, the flag of the corresponding column is updated, with the block made empty in step 52 and the lower block as a continuous empty area. do.

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

以上説明したように、本発明によれば、記憶装置の所定
容量単位の複数のブロックに一対一対応するコラムを有
する空領域管理テーブルを備えて、各コラムには、対応
するブロックが使用中か、空領域の先頭ブロックか、又
はその先頭ブロックに後続する空領域かを識別できるデ
ータを格納したことにより、記憶装置にデータを新たに
格納する場合、そのデータの格納に必要な連続空領域が
存在する場合は短時間で連続する空領域にデータを格納
できるという効果が得られ、格納したデータの読出し時
間も、格納領域が連続なので短時間で済み、さらに空領
域管理テーブルに格納されるデータ看はフラグのような
小容量のものでよいので処理時間の短縮及び格納領域の
減少という効果も得られる。
As described above, according to the present invention, a free space management table is provided that has columns in one-to-one correspondence with a plurality of blocks of a predetermined capacity unit of a storage device, and each column includes information indicating whether the corresponding block is in use or not. By storing data that can identify whether it is the first block of an empty area or the empty area following the first block, when new data is stored in the storage device, the continuous empty area necessary to store the data is If it exists, the effect is that data can be stored in a contiguous empty area in a short time, and the time to read the stored data is also short because the storage area is continuous, and furthermore, the data stored in the empty area management table Since the memory may have a small capacity such as a flag, it is possible to shorten the processing time and reduce the storage area.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例による空領域管理方式におけ
るディスクの状態と空領域管理テーブルの状態との対応
関係を示す図、 第3図は新たなデータをディスクに格納する場合の空領
域管理テーブルの内容の変化を示す図、第4図は空領域
検索動作を示すフローチャート第5図は領域解放動作を
示すフローチャート第6図は従来の空領域管理方式の説
明図である。 1・・・記憶装置、 2・・・空領域管理テーブル、 3・・・空領域検索処理部、 4・・・格納解放処理部、 5・・・管理テーブル更新処理部。
Figure 1 is a block diagram of the principle of the present invention. Figure 2 is a diagram showing the correspondence between the disk status and the status of the free area management table in a free area management method according to an embodiment of the present invention. Figure 3 is a new Figure 4 is a flowchart showing the empty area search operation. Figure 5 is a flowchart showing the area release operation. Figure 6 is the conventional empty area search. It is an explanatory diagram of a management method. DESCRIPTION OF SYMBOLS 1... Storage device, 2... Free area management table, 3... Free area search processing section, 4... Storage release processing section, 5... Management table update processing section.

Claims (1)

【特許請求の範囲】 記憶装置(1)の情報格納領域を所定容量単位の複数の
ブロックに分割したとき該ブロックの各々に一対一に対
応するコラムを有する空領域管理テーブル(2)を具備
し、 該空領域管理テーブル(2)のコラムの各々は、該記憶
装置(1)の対応するブロックの使用状態を示すデータ
を格納するものであり、 該使用状態を示すデータは、対応するブロックが使用中
(a)か空領域かを識別するものであって、該記憶装置
(1)の1以上の連続する空領域に対しては、該空領域
の先頭のブロックに対応するコラムに、連続する空領域
のブロック数を示すデータ(i)を格納し、かつ、他の
空領域のブロックに対応するコラムには空領域であるこ
とを示すデータ(b)を格納するようにし、 更に、該記憶装置(1)の空領域の検索容量の指示に応
じて、検索するブロック数を算出し、該空領域管理テー
ブル(2)を参照して該算出した検索ブロック数以上の
空領域ブロックを検索すると共に、空領域に情報を格納
後は該空領域管理テーブル(2)を更新する空領域検索
処理部(3)と、 該空領域検索処理部(3)による、検索結果に応じて該
記憶装置(1)の検索された空領域ブロックに情報を格
納し、かつ、使用中のブロックを必要に応じて空領域に
解放する処理を行なう格納解放処理部(4)と、 該格納解放処理部(4)における格納又は解放の処理に
応じて、該空領域管理テーブル(2)を更新する管理テ
ーブル更新処理部(5)とを具備することを特徴とする
、記憶装置の空領域管理方式。
[Scope of Claims] When the information storage area of the storage device (1) is divided into a plurality of blocks each having a predetermined capacity, an empty space management table (2) is provided which has columns corresponding one-to-one to each of the blocks. , each column of the free space management table (2) stores data indicating the usage status of the corresponding block of the storage device (1), and the data indicating the usage status indicates the usage status of the corresponding block. It identifies whether the area is in use (a) or empty, and for one or more consecutive empty areas of the storage device (1), the column corresponding to the first block of the empty area is data (i) indicating the number of blocks in the empty area to be stored, and data (b) indicating the empty area in columns corresponding to blocks in other empty areas; The number of blocks to be searched is calculated according to the instruction of the search capacity of the free space of the storage device (1), and the free space blocks that are equal to or larger than the calculated number of search blocks are searched by referring to the free space management table (2). At the same time, an empty area search processing unit (3) updates the empty area management table (2) after storing information in the empty area, and the empty area search processing unit (3) updates the storage according to the search result. a storage and release processing unit (4) that stores information in the searched free space block of the device (1) and releases blocks in use to free space as needed; and the storage and release processing unit A free space management method for a storage device, comprising: a management table update processing unit (5) that updates the free space management table (2) in accordance with the storage or release process in (4).
JP62064181A 1987-03-20 1987-03-20 Free space management device for storage device Expired - Lifetime JP2550055B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62064181A JP2550055B2 (en) 1987-03-20 1987-03-20 Free space management device for storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62064181A JP2550055B2 (en) 1987-03-20 1987-03-20 Free space management device for storage device

Publications (2)

Publication Number Publication Date
JPS63231547A true JPS63231547A (en) 1988-09-27
JP2550055B2 JP2550055B2 (en) 1996-10-30

Family

ID=13250629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62064181A Expired - Lifetime JP2550055B2 (en) 1987-03-20 1987-03-20 Free space management device for storage device

Country Status (1)

Country Link
JP (1) JP2550055B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09128287A (en) * 1995-10-31 1997-05-16 Nec Corp Memory block securing and releasing system
JP2003263276A (en) * 2002-03-08 2003-09-19 Toshiba Corp Disk system and disk access method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58164080A (en) * 1982-03-25 1983-09-28 Fujitsu Ltd System for managing and processing area
JPS59756A (en) * 1982-06-28 1984-01-05 Fujitsu Ltd Dasd space managing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58164080A (en) * 1982-03-25 1983-09-28 Fujitsu Ltd System for managing and processing area
JPS59756A (en) * 1982-06-28 1984-01-05 Fujitsu Ltd Dasd space managing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09128287A (en) * 1995-10-31 1997-05-16 Nec Corp Memory block securing and releasing system
JP2003263276A (en) * 2002-03-08 2003-09-19 Toshiba Corp Disk system and disk access method

Also Published As

Publication number Publication date
JP2550055B2 (en) 1996-10-30

Similar Documents

Publication Publication Date Title
US5269019A (en) Non-volatile memory storage and bilevel index structure for fast retrieval of modified records of a disk track
EP0165382B1 (en) Data processing system including a data storage unit and its method of operation
US6842824B2 (en) Cache control program and computer for performing cache processes utilizing cache blocks ranked according to their order of reuse
CN103080896A (en) Reordering access to reduce total seek time on tape media
US5890206A (en) Method of writing sequential data to a disc memory system having a fixed block architecture
US20160011792A1 (en) Media control device and control method
JPS63231547A (en) Empty area managing system for memory device
JPH0330034A (en) Optical disk file managing method
JP3112709B2 (en) Access device for write-once storage medium
JPH0277949A (en) File producing method
JPH06332622A (en) Information processor
JPS63104284A (en) Disk file access system
WO1993021579A1 (en) Method for managing data records in a cached data subsystem with non-volatile memory
JP3121387B2 (en) Magnetic tape control device
JPH06187201A (en) File system
JPH03172946A (en) System and device for data write control
JP3585264B2 (en) Database system and data retrieval method
JPH01255028A (en) Method for making access to external storage device
JPH02213962A (en) Cache memory control system for disk cache
JPS62177642A (en) File management system for postscript filing device
JP2784650B2 (en) Optical disk storage management method
JPS63280356A (en) Buffer management system for virtual disk device
JP2002091707A (en) File information managing method in storage medium library system
JPS63239521A (en) Data processing system for magnetic tape device
JPS6162923A (en) Access system for file

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term