JPH09160813A - File managing device - Google Patents

File managing device

Info

Publication number
JPH09160813A
JPH09160813A JP7320811A JP32081195A JPH09160813A JP H09160813 A JPH09160813 A JP H09160813A JP 7320811 A JP7320811 A JP 7320811A JP 32081195 A JP32081195 A JP 32081195A JP H09160813 A JPH09160813 A JP H09160813A
Authority
JP
Japan
Prior art keywords
data
area
speed
log
stored
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
JP7320811A
Other languages
Japanese (ja)
Inventor
Koichi Moriyama
光一 森山
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP7320811A priority Critical patent/JPH09160813A/en
Publication of JPH09160813A publication Critical patent/JPH09160813A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To realize a file managing device whereby the through-put is improved, writing is executed at a high speed, the fault tolerance is kept and data can be rearranged so as to be suitable for high-speed data reading. SOLUTION: The optimum storing information 105 of a block is added to the respective blocks 104 which are stored in the respective segments SEG of a data area 100 in a transfer source, the blocks 104 are read every segment unit at the time of transferring data so as to be temporarily stored in queues 107, the block for which high-speed reading is requested, is stored in a high- speed area 101 based on optimum storing information 105 by an optimum arrangement information judging device 106, the block required normal-speed reading is stored in a standard area 102, the block which is not troubled by low-speed reading is stored in a low-speed area 103 and also the rearrangement is executed by using a garbage collection or compaction processing time so that the rearrangement of data suitable for high-speed writing and high-speed reading is realized.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ファイル管理装置
に係り、さらに詳しくは、たとえば、磁気ディスクなど
のデータ記憶媒体にデータの書き込みまたは読み出しを
行うファイル管理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file management device, and more particularly to a file management device for writing or reading data in a data storage medium such as a magnetic disk.

【0002】[0002]

【従来の技術】高速書き込みや耐故障性を向上させるフ
ァイルシステムとしてLFS(Log-Structured File Sys
tem)がある。LFSでは、新しいデータや更新すべきデ
ータをログ(Log)という形式でひたすら書き続け
る。そのため、ディスクのヘッドは連続動作をするの
で、高速書き込みが可能である。また、古いデータもロ
グとして残されるので、耐故障性が向上している。
2. Description of the Related Art LFS (Log-Structured File Sys) is used as a file system for improving high-speed writing and fault tolerance.
tem). In LFS, new data and data to be updated are continuously written in the form of a log. Therefore, since the head of the disk continuously operates, high speed writing is possible. In addition, since old data is also left as a log, fault tolerance is improved.

【0003】図5は従来のLFSにおけるログの構成を
示す図である。図5に示すように、LFSにおいては、
データはログ10aというブロック単位で管理されてい
る。ログ10aにはヘッダ部(Header par
t)11aとデータ部(Data part)12aに
よって構成されている。ヘッダ部11aにはID(識別
子)、Address(そのログの位置)、Size
(データの大きさ)、Version(版)、Date
(日時)などが含まれる。データ部12aには、たとえ
ば、画像、音声などの情報を記録したデータが格納され
る。
FIG. 5 is a diagram showing the structure of a log in a conventional LFS. As shown in FIG. 5, in LFS,
The data is managed in blocks of the log 10a. A header (Header par) is included in the log 10a.
t) 11a and a data part (Data part) 12a. The header portion 11a has an ID (identifier), Address (the position of the log), and Size.
(Data size), Version (Version), Date
(Date and time) is included. The data section 12a stores data in which information such as images and sounds is recorded.

【0004】LFSにおいては、新たに書き込まれるデ
ータだけではなく更新すべきデータもディスクの空き領
域にログ10aの単位で書き続けるので高速書き込みが
可能である。また、古いデータもログ10aの単位で保
存されているので、たとえば、クラッシュした場合、ロ
グ10aを参照することによってデータの復元ができ、
耐故障性が向上する。
In the LFS, not only the data to be newly written but also the data to be updated is continuously written in the free area of the disk in the unit of the log 10a, so that high speed writing is possible. Also, since old data is also saved in units of the log 10a, for example, if a crash occurs, the data can be restored by referring to the log 10a,
Fault tolerance is improved.

【0005】LFSでは、ディスクの領域が足りなくな
った場合、あるいはディスクの空き領域を明示的に増や
したい場合、ガーベッジコレクションまたはコンパクシ
ョンという動作が行われる。ガーベッジコレクションま
たはコンパクションでは、使われていないデータを無効
データとして無視し、使われているデータを有効データ
として、これらの有効データのみを別の領域に転送し
て、有効データのみの領域を生成する。したがって、ガ
ーベッジコレクションまたはコンパクションが終了した
後、元のデータが格納された領域は空き領域として利用
できる。
In LFS, when the disk area becomes insufficient, or when it is desired to explicitly increase the disk free area, an operation called garbage collection or compaction is performed. Garbage collection or compaction ignores unused data as invalid data, transfers used data as valid data, and transfers only valid data to another area to generate a valid data-only area. . Therefore, after the garbage collection or compaction is completed, the area where the original data is stored can be used as a free area.

【0006】図6はLFSにおけるガーベッジコレクシ
ョンまたはコンパクションを行うときのデータ転送の仕
方を示している。図6において、100は元のデータ領
域、たとえば、ディスク上のデータ領域、110は転送
先のディスク上のデータ領域、104aはガーベッジコ
レクションまたはコンパクションが行われるデータブロ
ック、たとえば、ログ単位のデータ、107はメモリ上
の一時的なデータ格納領域をそれぞれ示している。な
お、以下このメモリ上の一時的なデータ格納領域107
をキュー(Queue)という。
FIG. 6 shows how to transfer data when performing garbage collection or compaction in LFS. In FIG. 6, 100 is the original data area, for example, the data area on the disk, 110 is the data area on the transfer destination disk, 104a is the data block on which garbage collection or compaction is performed, for example, data in log units, 107 Indicates a temporary data storage area on the memory. Note that the temporary data storage area 107 on this memory will be described below.
Is called a queue.

【0007】通常ディスクのデータ領域がセグメント
(SEG)と呼ばれた単位に分割され、分割された各セ
グメントSEGが一定のデータ容量を持つ。ディスクに
おいて、空きセグメントSEGの残り個数は、ディスク
全体の空き領域がどのくらいあるかを示す指標となる。
LFSにおいては、各セグメントSEGに通常複数のロ
グが格納されている。
A data area of a normal disk is divided into units called segments (SEG), and each divided segment SEG has a constant data capacity. On the disc, the remaining number of free segments SEG is an index indicating how much free space the entire disc has.
In LFS, usually, a plurality of logs are stored in each segment SEG.

【0008】図6に示すように、ガーベッジコレクショ
ンを行うとき、まず、ガーベッジコレクションの対象と
なる元のデータ領域100からセグメント単位で順次デ
ータが読み出され、キュー107に一時的に格納され
る。そして、キュー107から一時的に格納されたログ
104aが読み出され、転送先の領域110に書き込ま
れる。上述した動作を繰り返し行うことにより、ガーベ
ッジコレクションの対象となるログ104aがすべて元
のデータ領域100から新たなデータ領域110に転送
される。
As shown in FIG. 6, when performing garbage collection, first, data is sequentially read from the original data area 100 to be garbage-collected in units of segments and temporarily stored in the queue 107. Then, the temporarily stored log 104 a is read from the queue 107 and written in the transfer destination area 110. By repeating the above-described operation, all the logs 104a targeted for garbage collection are transferred from the original data area 100 to the new data area 110.

【0009】図7は、従来のLFSにおけるガーベッジ
コレクションおよびコンパクション時のデータ転送を示
す図である。図7において、100ガーベッジコレクシ
ョンを行う前の元のデータ領域、110はガーベッジコ
レクションを行った後の新たなデータ領域、VLDは有
効ログ、DEDは無効ログをそれぞれ示している。
FIG. 7 is a diagram showing data transfer at the time of garbage collection and compaction in the conventional LFS. In FIG. 7, 100 is an original data area before garbage collection, 110 is a new data area after garbage collection, VLD is a valid log, and DED is an invalid log.

【0010】図7に示すように、ガーベッジコレクショ
ンおよびコンパクションが行われる前に、元のデータ領
域100の各セグメントSEGには有効ログと無効ログ
が混在している。図6に示したデータ転送の動作によっ
て、元のデータ領域100に対しガーベッジコレクショ
ンが行われる。このとき、各ログ10aのヘッダ部11
aに記憶された情報に基づき、データの有効性は判定さ
れ、有効ログVLDのみが新たなデータ領域110に転
送され、無効ログDEDが廃棄される。
As shown in FIG. 7, valid logs and invalid logs are mixed in each segment SEG of the original data area 100 before garbage collection and compaction are performed. By the data transfer operation shown in FIG. 6, garbage collection is performed on the original data area 100. At this time, the header part 11 of each log 10a
The validity of the data is determined based on the information stored in a, only the valid log VLD is transferred to the new data area 110, and the invalid log DED is discarded.

【0011】したがって、ガーベッジコレクションおよ
びコンパクションを行った結果、新たなデータ領域11
0においては、図7に示すように、有効ログVLDのみ
がディスクの各セグメントSEGに連続的に書き込ま
れ、無効ログDEDが切り捨てられる。
Therefore, as a result of performing garbage collection and compaction, a new data area 11
At 0, as shown in FIG. 7, only the valid log VLD is continuously written to each segment SEG of the disk, and the invalid log DED is truncated.

【0012】[0012]

【発明が解決しようとする課題】ところで、上述した従
来のLFSでは、次に述べる理由でマルチメディアファ
イルシステムに適していない。まず、複数の異なる目的
の書き込み要求があってもどんどん書き続けるので、書
き込みのスループットは高いが、データを読み出しに適
した配置にするのが難しい(たとえば、連続配置になら
ない)。次いで、一般的にディスクでは外周においてよ
り高速なデータ入出力を行うことができるが、上述した
LFSでは、このようなディスクの特性に応じた配置を
行うことができない。また、多くのマルチメディア向け
ファイルシステムでは、データの読み出しについて高速
化を実現しているものが多かったが、書き込みの高速化
を考慮しているものは少ないという問題がある。
By the way, the above-mentioned conventional LFS is not suitable for the multimedia file system for the following reason. First, since writing is continued steadily even if there are a plurality of write requests for different purposes, writing throughput is high, but it is difficult to arrange the data suitable for reading (for example, it is not a continuous arrangement). Next, generally, in a disc, higher-speed data input / output can be performed in the outer circumference, but in the above-described LFS, the arrangement according to the characteristics of such a disc cannot be performed. Further, many file systems for multimedia have realized high-speed reading of data, but there is a problem that few consider high-speed writing.

【0013】本発明は、かかる事情に鑑みてなされたも
のであり、その目的は、データの最適な配置を行うこと
によりファイル管理装置のスループットを向上でき、従
来のLFSの高速書き込み、高耐故障性を保ちつつ高速
なデータの読み出しに適したデータの再配置を行えるフ
ァイル管理装置を提供することにある。
The present invention has been made in view of such circumstances, and an object thereof is to improve the throughput of a file management device by optimally arranging data, and to achieve high-speed writing and high fault tolerance of a conventional LFS. It is an object of the present invention to provide a file management device capable of rearranging data suitable for high-speed data reading while maintaining the above.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するた
め、本発明では、記憶媒体へのデータの書き込みを制御
するファイル管理装置であって、上記記憶媒体は書き込
みデータの属性に応じて、少なくとも2つ以上の領域に
分割され、かつ、上記書き込みデータには、当該データ
の書き込むべき領域を示す配置情報が付加され、上記配
置情報に示された所定の領域に上記書き込みデータを格
納する書き込み手段を有する。
In order to achieve the above object, the present invention is a file management device for controlling writing of data to a storage medium, wherein the storage medium is at least according to the attribute of the write data. A writing unit that is divided into two or more areas, and the write data is added with arrangement information indicating an area to which the data is to be written, and the write data is stored in a predetermined area indicated by the arrangement information. Have.

【0015】また、本発明では、所定の角速度で回転す
る記憶媒体へのデータの書き込みを制御するファイル管
理装置であって、上記記憶媒体は回転軸からの距離に基
づき、少なくとも2つ以上の領域に分割し、かつ、上記
書き込みデータに、当該書き込みデータの属性に応じた
配置情報が付加され、上記配置情報に示された所定の領
域に、上記書き込みデータを格納する書き込み手段を有
する。
Further, according to the present invention, there is provided a file management device for controlling writing of data to a storage medium rotating at a predetermined angular velocity, wherein the storage medium is at least two or more areas based on a distance from a rotation axis. Further, the writing data is added with arrangement information according to the attribute of the writing data, and the writing data is stored in a predetermined area indicated by the arrangement information.

【0016】また、本発明では、高速に読み出すべき上
記書き込みデータが、上記回転軸から距離的に遠い領域
に格納される。
Further, in the present invention, the write data to be read at high speed is stored in a region far from the rotation axis.

【0017】また、本発明では、上記属性の変化に応じ
て上記書き込みデータの配置情報を書き換える手段を有
する。
Further, the present invention has means for rewriting the arrangement information of the write data according to the change of the attribute.

【0018】さらに、本発明では、ガーベッジコレクシ
ョンまたはコンパクション処理時に、各書き込みデータ
に付加された上記配置情報に基づき、それぞれの書き込
みデータを上記記憶媒体上で再配置する手段を有する。
Further, the present invention has means for rearranging each write data on the above-mentioned storage medium based on the above-mentioned arrangement information added to each write data at the time of garbage collection or compaction processing.

【0019】本発明によれば、記憶媒体が書き込みデー
タの属性に応じて複数の領域に分割され、各書き込みデ
ータにその書き込みデータの一属性、たとえば、必要な
データ転送速度に応じて当該書き込みデータの配置すべ
き領域を示す配置情報が付加される。
According to the present invention, the storage medium is divided into a plurality of areas according to the attribute of the write data, and each write data has one attribute of the write data, for example, the write data according to the required data transfer rate. The arrangement information indicating the area to be arranged is added.

【0020】また、本発明によれば、所定の角速度で回
転する記憶媒体が回転軸からの距離に応じて、たとえば
3つの領域に分割され、各書き込みデータに付加された
配置情報に基づき、より高速なデータ転送が必要なデー
タほど回転軸から距離的に遠い領域に配置される。その
結果、書き込みデータがそれぞれの属性に応じて、配置
すべき領域に配置される。なお、最初のデータ転送時、
すなわち、最初にデータを記録媒体に書き込むとき、各
書き込みデータに付加された配置情報にかかわらず、従
来のLFS同様に連続書き込みを行う。
Further, according to the present invention, the storage medium which rotates at a predetermined angular velocity is divided into, for example, three regions according to the distance from the rotation axis, and based on the arrangement information added to each write data, The data that requires high-speed data transfer is arranged in a region farther from the rotation axis. As a result, the write data is arranged in the area to be arranged according to each attribute. At the time of the first data transfer,
That is, when data is first written to the recording medium, continuous writing is performed like the conventional LFS regardless of the arrangement information added to each write data.

【0021】さらに、本発明によれば、ガーベッジコレ
クションまたはコンパクション処理時に、各書き込みデ
ータの配置情報に基づき、記憶媒体上に書き込みデータ
の再配置が行われる。この再配置は前記のように行わ
れ、ガーベッジコレクションまたはコンパクション処理
時データの配置場所の移動を行う時に、各書き込みデー
タの配置情報に基づき、記憶媒体上書き込みデータの配
置の最適化を行うことができる。これによって、ガーベ
ッジコレクションまたはコンパクション処理時間を利用
して、データの最適な配置を行うことができる。
Furthermore, according to the present invention, the write data is rearranged on the storage medium based on the arrangement information of each write data during the garbage collection or compaction processing. This rearrangement is performed as described above, and when the data arrangement location is moved during garbage collection or compaction processing, the arrangement of the write data on the storage medium can be optimized based on the arrangement information of each write data. it can. This allows for optimal placement of the data using garbage collection or compaction processing time.

【0022】[0022]

【発明の実施の形態】第1実施形態 図1は本発明に係るファイル管理装置のデータ領域の構
成を示す図である。図1において、101は高速用領
域、102は標準用領域、103は低速用領域をそれぞ
れ示している。
BEST MODE FOR CARRYING OUT THE INVENTION First Embodiment FIG. 1 is a diagram showing the structure of a data area of a file management apparatus according to the present invention. In FIG. 1, 101 is a high speed area, 102 is a standard area, and 103 is a low speed area.

【0023】一般的に、ディスクは外周と内周のデータ
の入出力の速度が異なる。外周に行くほどデータの入出
力の速度が高くなる。このため、より高速なデータ転送
が必要な場合にはディスクの外周の領域を利用するとよ
い。これを実現するため、図1に示すように、ディスク
のデータ領域をそれぞれ高速用領域101、標準用領域
102と低速用領域103に分割する。高速なデータ転
送が必要な場合には、高速用領域101を利用し、デー
タ転送の速度が遅くてもよい場合には、低速用領域10
3を利用し、通常な転送速度でよい場合には、標準用領
域102を利用するように、目的に応じてディスクのデ
ータ領域をそれぞれ使い分けることができる。
Generally, a disk has different input / output speeds of data on the outer and inner circumferences. The data input / output speed becomes higher toward the outer circumference. Therefore, when higher speed data transfer is required, it is preferable to use the outer peripheral area of the disk. In order to realize this, as shown in FIG. 1, the data area of the disk is divided into a high speed area 101, a standard area 102 and a low speed area 103, respectively. When high-speed data transfer is required, the high-speed area 101 is used. When the data transfer speed may be low, the low-speed area 10 is used.
3 is used and the normal transfer rate is sufficient, the data area of the disk can be selectively used according to the purpose such that the standard area 102 is used.

【0024】図2は本発明に係るファイル管理装置の第
1の実施形態を示す図であり、本発明に係るファイル管
理装置におけるガーベッジコレクションおよびコンパク
ション時のデータ転送を示す図である。図2において、
100は転送前の元のデータ領域、101は高速用領
域、102は標準用領域、103は低速用領域、104
は転送されるデータブロック、105は各ブロックにお
けるデータの一属性を示す最適配置情報、106は最適
配置情報判定装置、107はメモリ上の一時的な領域キ
ューをそれぞれ示している。
FIG. 2 is a diagram showing a first embodiment of the file management apparatus according to the present invention, and is a diagram showing data transfer at the time of garbage collection and compaction in the file management apparatus according to the present invention. In FIG.
100 is the original data area before transfer, 101 is a high speed area, 102 is a standard area, 103 is a low speed area, 104
Is a data block to be transferred, 105 is optimal placement information indicating one attribute of data in each block, 106 is an optimal placement information determination device, and 107 is a temporary area queue on the memory.

【0025】各ブロック104に付加されている最適配
置情報105は、それぞれのブロック104の一属性、
たとえばブロック104の必要なデータ転送速度に応じ
て、当該ブロック104の配置すべき領域を示すデータ
である。ここでは、この最適配置情報105は、たとえ
ば、2ビットのデータによって構成され、この2ビット
の最適配置情報105が(01)のとき高速用領域10
1を示し、(10)のとき標準用領域102を示し、
(11)のとき低速用領域103をそれぞれ示してい
る。これによって、高速なデータ転送速度が要求された
ブロック104において、付加された2ビットの最適配
置情報105が(01)と設定され、低速なデータ転送
速度でよいブロック104において、付加された2ビッ
トの最適配置情報105が(11)と設定され、通常の
データ転送速度でよいブロック104において、付加さ
れた2ビットの最適配置情報105が(10)と設定さ
れる。
The optimum layout information 105 added to each block 104 is one attribute of each block 104,
For example, it is data indicating an area in which the block 104 is to be arranged according to the required data transfer rate of the block 104. Here, the optimum arrangement information 105 is composed of, for example, 2-bit data. When the 2-bit optimum arrangement information 105 is (01), the high speed area 10
1 and (10) indicates the standard area 102,
In the case of (11), the low speed regions 103 are shown. As a result, the added 2-bit optimum placement information 105 is set to (01) in the block 104 that requires a high data transfer rate, and the added 2 bits in the block 104 that requires a low data transfer rate. The optimum placement information 105 is set to (11), and the added 2-bit optimum placement information 105 is set to (10) in the block 104 which may have a normal data transfer rate.

【0026】最適配置情報判定装置106は各ブロック
104に付加されている最適配置情報105を読み出
し、この最適配置情報105に基づき、それぞれのブロ
ック104を配置すべき領域に配置するように制御を行
う。たとえば、ブロック104に付加された最適配置情
報105が(01)の場合に、当該ブロック104を高
速用領域101に配置するように制御し、ブロック10
4に付加された最適配置情報105が(10)場合に、
当該ブロック104を標準用領域102に配置するよう
に制御し、ブロック104に付加された最適配置情報1
05が(11)の場合に、当該ブロック104を低速用
領域103に配置するように制御する。
The optimum layout information determination device 106 reads the optimum layout information 105 added to each block 104, and controls based on this optimum layout information 105 so that each block 104 is arranged in the area to be arranged. . For example, when the optimal placement information 105 added to the block 104 is (01), the block 104 is controlled to be placed in the high-speed area 101, and the block 10
When the optimum placement information 105 added to 4 is (10),
Optimal placement information 1 added to the block 104 by controlling the block 104 to be placed in the standard area 102
When 05 is (11), the block 104 is controlled to be arranged in the low speed area 103.

【0027】図2に示すように、各ブロック104には
データの最適配置情報105が付加されている。データ
転送時に、元のデータ領域100からデータがセグメン
ト単位で読み出され、キュー107に一時的に格納され
る。そして、キュー107から各ブロック104が読み
出され、最適配置情報判定装置106によって各ブロッ
ク104に格納されている最適配置情報105に基づ
き、当該ブロックがどのデータ領域に転送すべきかが判
定される。上記最適配置情報判定装置106の判定結果
に応じて、ブロック104がそれぞれ高速用領域10
1、標準用領域102あるいは低速用領域103に転送
される。
As shown in FIG. 2, optimal allocation information 105 of data is added to each block 104. At the time of data transfer, data is read from the original data area 100 in units of segments and temporarily stored in the queue 107. Then, each block 104 is read from the queue 107, and the optimal placement information determination device 106 determines to which data area the block should be transferred based on the optimal placement information 105 stored in each block 104. In accordance with the determination result of the optimal placement information determination device 106, the blocks 104 are respectively assigned to the high speed area 10
1, the data is transferred to the standard area 102 or the low speed area 103.

【0028】また、状況に応じて必要なデータ転送速度
が変化した場合に、ブロック104に付加された最適配
置情報105を書き換えることによって、当該ブロック
104が次回のガーベッジコレクションおよびコンパク
ション処理時に他の領域に再配置される。さらに、ブロ
ック104には最適配置情報が付加されていないブロッ
ク104に対しては、システムにとって都合のよい場所
に転送すればよい。たとえば、低速用領域103だけが
多く残っている場合は、この領域に最適配置情報が付加
されていないブロック104を転送すればよい。
Further, when the required data transfer rate changes depending on the situation, the optimum allocation information 105 added to the block 104 is rewritten so that the block 104 can be used for other areas at the next garbage collection and compaction processing. Relocated to. Further, for the block 104 to which the optimum arrangement information is not added, the block 104 may be transferred to a place convenient for the system. For example, when only the low speed area 103 remains, the block 104 to which the optimum arrangement information is not added may be transferred to this area.

【0029】以上説明したように、本実施形態によれ
ば、転送元のデータ領域100の各セグメントSEGに
格納された各ブロック104の中に、当該ブロックの最
適格納情報105を記憶しておき、データ転送時、セグ
メント単位にブロックが読み出され、キュー107に一
時的に格納しておき、最適配置情報判定装置106によ
り、上記最適格納情報105に基づき、高速な読み出し
が要求されたブロックを転送先の高速用領域101に格
納し、通常の速度の読み出しが要求されたブロックを転
送先の標準用領域102に格納し、低速な読み出しでも
よいブロックを転送先の低速用領域103にそれぞれ格
納するので、必要なデータ転送速度に応じたデータの読
み出しが実現できる。
As described above, according to this embodiment, the optimum storage information 105 of the block is stored in each block 104 stored in each segment SEG of the transfer source data area 100. At the time of data transfer, blocks are read in segment units and temporarily stored in the queue 107, and the optimum placement information determination device 106 transfers the blocks requested to be read at high speed based on the optimum storage information 105. The blocks are stored in the high-speed area 101 at the destination, the blocks requested to be read at the normal speed are stored in the standard area 102 at the transfer destination, and the blocks that may be read at low speed are stored in the low-speed area 103 at the transfer destination. Therefore, reading of data according to the required data transfer rate can be realized.

【0030】第2実施形態 図3は、本発明に係るファイル管理装置の第2の実施形
態を示す図であり、ログの構成を示す図である。図3に
おいて、10はログ、11はログのヘッダ部(Head
erpart)、12はログのデータ部(Data p
art)をそれぞれ示している。
Second Embodiment FIG. 3 is a diagram showing a second embodiment of the file management apparatus according to the present invention, and is a diagram showing the structure of a log. In FIG. 3, 10 is a log, 11 is a log header (Head).
erpart), 12 is the data part of the log (Data p)
art) are shown.

【0031】図3に示すように、ログ10のヘッダ部1
1には、従来のID(識別子)、Address(その
ログの位置)、Size(データの大きさ)、Vers
ion(版)、Date(日時)などの情報のほかに、
新たにログ10の属性を示す最適配置情報(New A
ttribute)が付加されている。なお、ログ10
に新たに付加された最適配置情報が、たとえば、ログ1
0の必要な転送速度に応じて、当該ログ10の配置すべ
き領域を示す2ビットのデータによって構成されてい
る。たとえば、高速用領域101に配置すべきログ10
のヘッダ部11においては、2ビットの最適配置情報が
(01)と設定され、標準用領域102に配置すべきロ
グ10のヘッダ部11においては、2ビットの最適配置
情報が(10)と設定され、低速用領域103に配置す
べきログ10のヘッダ部11には、2ビットの最適配置
情報が(11)と設定される。
As shown in FIG. 3, the header portion 1 of the log 10
1 is a conventional ID (identifier), Address (position of the log), Size (data size), Vers.
In addition to information such as ion (version) and Date (date and time),
Optimal placement information (New A that newly indicates the attribute of the log 10)
(tribute) is added. Log 10
The optimum placement information newly added to is, for example, log 1
It is composed of 2-bit data indicating the area where the log 10 is to be arranged according to the required transfer rate of 0. For example, the log 10 that should be placed in the high speed area 101
The 2-bit optimum placement information is set to (01) in the header part 11 of the log 10 and the 2-bit optimum placement information is set to (10) in the header part 11 of the log 10 to be placed in the standard area 102. The 2-bit optimum placement information is set to (11) in the header portion 11 of the log 10 to be placed in the low speed area 103.

【0032】ガーベッジコレクションおよびコンパクシ
ョン処理時、ログの転送が行われるとき、この最適配置
情報に基づき、当該ログ10の新たな配置領域が決定さ
れる。たとえば、ログ10の最適配置情報が(01)の
場合に、当該ログ10が高速用領域101に配置され、
ログ10の最適配置情報が(10)場合に、当該ログ1
0が標準用領域102に配置され、ログ10の最適配置
情報が(11)の場合に、当該ログ10が低速用領域1
03に配置される。
When logs are transferred during garbage collection and compaction processing, a new allocation area for the log 10 is determined based on this optimum allocation information. For example, when the optimum placement information of the log 10 is (01), the log 10 is placed in the high speed area 101,
If the optimal allocation information of the log 10 is (10), the log 1 concerned
When 0 is allocated in the standard area 102 and the optimum allocation information of the log 10 is (11), the log 10 is in the low speed area 1
It is located at 03.

【0033】図4は本発明に係るファイル管理装置にお
けるLFSのガーベッジコレクションおよびコンパクシ
ョンの動作を示す図である。図4において、100はガ
ーベッジコレクションを行う前の元のデータ領域10
0、101は高速用領域、102は標準用領域、103
は低速用領域、VLDは有効ログ、DEDは無効ログ、
FSTは高速配置情報(01)、STDは標準配置情報
(10)、SLWは低速配置情報(11)をそれぞれ示
している。
FIG. 4 is a diagram showing operations of LFS garbage collection and compaction in the file management apparatus according to the present invention. In FIG. 4, 100 is the original data area 10 before garbage collection.
0 and 101 are high-speed areas, 102 is a standard area, and 103
Is for low speed area, VLD is valid log, DED is invalid log,
FST indicates high-speed arrangement information (01), STD indicates standard arrangement information (10), and SLW indicates low-speed arrangement information (11).

【0034】図4に示すように、ガーベッジコレクショ
ンおよびコンパクションが行われる前に、元のデータ領
域100の各セグメントSEGに有効ログVLDと無効
ログDEDが混在して配置されている。
As shown in FIG. 4, the valid log VLD and the invalid log DED are mixedly arranged in each segment SEG of the original data area 100 before the garbage collection and compaction are performed.

【0035】元のデータ領域100に対するガーベッジ
コレクションまたはコンパクションは図2に示したデー
タ転送の動作によって行われる。すなわち、元のデータ
領域100からセグメントSEG単位でログが読み出さ
れ、たとえば、図2に示すキュー107に一時的に格納
される。
Garbage collection or compaction on the original data area 100 is performed by the data transfer operation shown in FIG. That is, the log is read from the original data area 100 in segment SEG units and temporarily stored in the queue 107 shown in FIG. 2, for example.

【0036】そして、キュー107に格納された各ログ
10のヘッダ部11に記憶された、たとえば版(Ver
sion)情報に基づき、当該ログの有効性が判定さ
れ、有効ログVLDのみが選択され、無効ログDEDが
廃棄される。有効ログVLDのみが図2に示す最適配置
情報判定装置106により、各ログ10のヘッダ部11
に付加された最適配置情報に基づき、それぞれ高速用領
域101、標準用領域102または低速用領域103に
配置される。すなわち、高速な転送速度が要求されたロ
グ10が高速用領域101に、低速な転送速度でよいロ
グ10が低速用領域103に、通常の転送速度でよいロ
グ10が標準用領域102にそれぞれ再配置される。
Then, for example, the version (Ver) stored in the header portion 11 of each log 10 stored in the queue 107 is stored.
(Sion) information, the validity of the log is determined, only the valid log VLD is selected, and the invalid log DED is discarded. Only the valid log VLD is processed by the optimum placement information determination device 106 shown in FIG.
Based on the optimum placement information added to the, the high speed area 101, the standard area 102, or the low speed area 103, respectively. That is, the log 10 for which a high transfer rate is requested is re-stored in the high-speed area 101, the log 10 for which the low transfer rate is good is in the low-speed area 103, and the log 10 whose normal transfer rate is good is in the standard area 102. Will be placed.

【0037】また、状況に応じて所定のログ10の必要
な転送速度が変化した場合に、当該ログ10の最適配置
情報を書き換えることによって、当該ログ10が次回の
ガーベッジコレクションおよびコンパクション処理時に
他の領域に再配置される。
Further, when the required transfer rate of the predetermined log 10 changes depending on the situation, the optimum allocation information of the log 10 is rewritten, so that the log 10 can be changed to another one at the next garbage collection and compaction processing. Relocated to the area.

【0038】したがって、ガーベッジコレクションおよ
びコンパクションを行った結果、有効ログVLDのみが
そのログに付加された最適配置情報に基づき、新たな領
域の各セグメントSEGに連続的に書き込まれ、無効ロ
グDEDが廃棄される。これにより、各ログが要求され
たデータ転送速度に応じたデータ領域に再配置され、要
求された速度で読み出し可能となるのみならず、ガーベ
ッジコレクションおよびコンパクションにより、無効な
データが切り捨てられたので、記憶媒体における使用可
能なデータ領域が拡大される。
Therefore, as a result of garbage collection and compaction, only the valid log VLD is continuously written in each segment SEG of the new area based on the optimum allocation information added to the log, and the invalid log DED is discarded. To be done. This not only relocated each log to a data area according to the requested data transfer rate and made it readable at the requested rate, but garbage collection and compaction truncated the invalid data. The usable data area in the storage medium is expanded.

【0039】以上説明したように、本実施形態によれ
ば、LFSにおいては、元のデータ領域100の各セグ
メントSEGに混在して格納された有効ログVLDと無
効ログDEDを一時的にメモリ上に格納しておき、各ロ
グのヘッダ部に格納された情報に基づき、有効ログVL
Dのみを選択し、さらに各ログのヘッダ部に付加された
最適配置情報に基づき、各ログの要求されたデータ転送
速度に応じて、それぞれ高速用領域101、標準用領域
102または低速用領域103に格納し、無効ログDE
Dをすべて廃棄するので、ガーベッジコレクションまた
はコンパクションの結果、それぞれのログが要求された
データ転送速度で読み出し可能になるだけではなく、記
憶媒体における使用可能なデータ領域を拡大することが
できる。
As described above, according to the present embodiment, in the LFS, the valid log VLD and the invalid log DED stored mixedly in each segment SEG of the original data area 100 are temporarily stored in the memory. The valid log VL is stored based on the information stored in the header of each log.
Only D is selected, and based on the optimum allocation information added to the header part of each log, the high speed area 101, the standard area 102, or the low speed area 103 is selected according to the requested data transfer rate of each log. Stored in the invalid log DE
Since all D's are discarded, not only can each log be read at the required data transfer rate as a result of garbage collection or compaction, but also the available data area on the storage medium can be expanded.

【0040】[0040]

【発明の効果】以上説明したように、本発明のファイル
管理装置によれば、ガーベッジコレクションなどの時間
を利用してデータの最適配置を行うことができ、ファイ
ル管理装置におけるデータのスループットを向上でき
る。また、LFSに適用した場合、LFS固有の高速書
き込み、高耐故障性を保ちつつ、高速なデータの読み出
しに適したデータの再配置ができる利点がある。
As described above, according to the file management apparatus of the present invention, data can be optimally arranged by utilizing time such as garbage collection, and the data throughput in the file management apparatus can be improved. . Further, when applied to LFS, there is an advantage that data can be rearranged suitable for high-speed data reading while maintaining high-speed writing and high fault tolerance unique to LFS.

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

【図1】本発明に係るファイル管理装置のデータ領域の
構成を示す図である。
FIG. 1 is a diagram showing a configuration of a data area of a file management device according to the present invention.

【図2】本発明の第1の実施形態を示す図であり、最適
配置情報に基づくデータ転送を示す図である。
FIG. 2 is a diagram showing the first embodiment of the present invention, and is a diagram showing data transfer based on optimum allocation information.

【図3】本発明の第2の実施形態を示す図であり、最適
配置情報を付加したLFSのログの構成を示す図であ
る。
FIG. 3 is a diagram illustrating a second embodiment of the present invention, and is a diagram illustrating a configuration of an LFS log to which optimal placement information is added.

【図4】本発明におけるLFSのガーベッジコレクショ
ンおよびコンパクションを示す図である。
FIG. 4 is a diagram showing LFS garbage collection and compaction in the present invention.

【図5】従来のLFSにおけるログの構成を示す図であ
る。
FIG. 5 is a diagram showing a structure of a log in a conventional LFS.

【図6】従来のLFSにおけるデータ転送を示す図であ
る。
FIG. 6 is a diagram showing data transfer in a conventional LFS.

【図7】従来のLFSにおけるガーベッジコレクション
およびコンパクションを示す図である。
FIG. 7 is a diagram showing garbage collection and compaction in a conventional LFS.

【符号の説明】 10…ログ 11…ログのヘッド部 12…ログのデータ部 100…元のデータ領域 101…高速用領域 102…標準用領域 103…低速用領域 104…ログなどのデータブロック 105…最適配置情報 106…最適配置情報判定装置 107…キュー 110…転送先のデータ領域 VLD…有効ログ DED…無効ログ FST…高速配置情報 STD…標準配置情報 SLW…低速配置情報[Explanation of Codes] 10 ... Log 11 ... Log Head 12 ... Log Data 100 ... Original Data Area 101 ... High Speed Area 102 ... Standard Area 103 ... Low Speed Area 104 ... Log etc. Data Block 105 ... Optimal placement information 106 ... Optimal placement information determination device 107 ... Queue 110 ... Data area of transfer destination VLD ... Valid log DED ... Invalid log FST ... High-speed placement information STD ... Standard placement information SLW ... Low-speed placement information

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 記憶媒体へのデータの書き込みを制御す
るファイル管理装置であって、 上記記憶媒体は書き込みデータの属性に応じて、少なく
とも2つ以上の領域に分割され、かつ、上記書き込みデ
ータには、当該データの書き込むべき領域を示す配置情
報が付加され、 上記配置情報に示された所定の領域に上記書き込みデー
タを格納する書き込み手段を有するファイル管理装置。
1. A file management device for controlling writing of data to a storage medium, wherein the storage medium is divided into at least two or more areas according to an attribute of the write data, and Is a file management device having a writing unit to which layout information indicating an area to which the data is to be written is added and which stores the write data in a predetermined area indicated by the layout information.
【請求項2】 所定の角速度で回転する記憶媒体へのデ
ータの書き込みを制御するファイル管理装置であって、 上記記憶媒体は回転軸からの距離に基づき、少なくとも
2つ以上の領域に分割され、かつ、上記書き込みデータ
に、当該書き込みデータの属性に応じた配置情報が付加
され、 上記配置情報に示された所定の領域に、上記書き込みデ
ータを格納する書き込み手段を有するファイル管理装
置。
2. A file management device for controlling writing of data to a storage medium rotating at a predetermined angular velocity, wherein the storage medium is divided into at least two or more areas based on a distance from a rotation axis, Further, a file management device having write means for adding layout information according to an attribute of the write data to the write data, and storing the write data in a predetermined area indicated by the layout information.
【請求項3】 高速に読み出すべき上記書き込みデータ
が、上記回転軸から距離的に遠い領域に格納される請求
項2に記載のファイル管理装置。
3. The file management device according to claim 2, wherein the write data to be read at high speed is stored in an area far from the rotation axis.
【請求項4】 上記属性の変化に応じて上記書き込みデ
ータの配置情報を書き換える手段を有する請求項2に記
載のファイル管理装置。
4. The file management device according to claim 2, further comprising means for rewriting the arrangement information of the write data in accordance with a change in the attribute.
【請求項5】 ガーベッジコレクションまたはコンパク
ション処理時に、各書き込みデータに付加された上記配
置情報に基づき、それぞれの書き込みデータを上記記憶
媒体上で再配置する手段を有する請求項2に記載のファ
イル管理装置。
5. The file management device according to claim 2, further comprising means for rearranging each write data on the storage medium based on the arrangement information added to each write data at the time of garbage collection or compaction processing. .
JP7320811A 1995-12-08 1995-12-08 File managing device Pending JPH09160813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7320811A JPH09160813A (en) 1995-12-08 1995-12-08 File managing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7320811A JPH09160813A (en) 1995-12-08 1995-12-08 File managing device

Publications (1)

Publication Number Publication Date
JPH09160813A true JPH09160813A (en) 1997-06-20

Family

ID=18125505

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7320811A Pending JPH09160813A (en) 1995-12-08 1995-12-08 File managing device

Country Status (1)

Country Link
JP (1) JPH09160813A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007102452A (en) * 2005-10-04 2007-04-19 Fujitsu Ltd System management program and system management method
US7349623B1 (en) 1999-03-19 2008-03-25 Hitachi, Ltd. Data recording apparatus and system having sustained high transfer rates
JP2011509495A (en) * 2008-01-10 2011-03-24 サムスン エレクトロニクス カンパニー リミテッド Information recording medium, recording / reproducing apparatus, and recording / reproducing method
US8108593B2 (en) 2008-03-01 2012-01-31 Kabushiki Kaisha Toshiba Memory system for flushing and relocating data
JP2014182823A (en) * 2013-03-15 2014-09-29 Seagate Technology Llc Method, data storage system and storage medium utilizing intermediate storage areas based on dynamic granules

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7349623B1 (en) 1999-03-19 2008-03-25 Hitachi, Ltd. Data recording apparatus and system having sustained high transfer rates
US7835617B2 (en) 1999-03-19 2010-11-16 Hitachi, Ltd. Data recording apparatus and system having sustained high transfer rates
US7903930B2 (en) 1999-03-19 2011-03-08 Hitachi, Ltd. Data recording apparatus and system having sustained high transfer rates
JP2007102452A (en) * 2005-10-04 2007-04-19 Fujitsu Ltd System management program and system management method
JP2011509495A (en) * 2008-01-10 2011-03-24 サムスン エレクトロニクス カンパニー リミテッド Information recording medium, recording / reproducing apparatus, and recording / reproducing method
US8291296B2 (en) 2008-01-10 2012-10-16 Samsung Electronics Co., Ltd. Information recording medium, recording/reproducing apparatus and recording/reproducing method
TWI384464B (en) * 2008-01-10 2013-02-01 Samsung Electronics Co Ltd Non-transitory information recording medium, recording/reproducing apparatus and recording/reproducing method
US8108593B2 (en) 2008-03-01 2012-01-31 Kabushiki Kaisha Toshiba Memory system for flushing and relocating data
JP2014182823A (en) * 2013-03-15 2014-09-29 Seagate Technology Llc Method, data storage system and storage medium utilizing intermediate storage areas based on dynamic granules

Similar Documents

Publication Publication Date Title
US5740435A (en) Data management apparatus and method for managing data of variable lengths recorded on a record medium
JP2804115B2 (en) Disk file system
JP3898782B2 (en) Information recording / reproducing device
JP4135747B2 (en) Data processing apparatus and flash memory access method
JP2002520691A (en) Method and apparatus for storing different data structures
JP3583829B2 (en) Control method and control device for external storage subsystem
JPH09160813A (en) File managing device
US6564231B1 (en) Method for managing optical disk library files in accordance with the frequency of playback requests selected simultanenously at a specified time intervals
JP3736305B2 (en) Disk cache system and disk cache control method
JP2003256269A (en) Control method for nonvolatile storage device, and memory device
EP0690369B1 (en) Disk control method and apparatus capable of lowering the data transfer load of the computer
JP4585052B2 (en) Data recording system
JPH08101783A (en) File system
JPH0330034A (en) Optical disk file managing method
JPH1153123A (en) Backup system
US6108289A (en) Optical disc recording apparatus for overwriting information on a previously recorded packet of an optical disc
JP3707890B2 (en) Data output method of external storage device
JPH1186452A (en) Disk storage device
JPH1115706A (en) Divided storage and coupled reading system for data to auxiliary storage
JP2784650B2 (en) Optical disk storage management method
JPH07152651A (en) Method and device for information processing
JP2000339202A (en) Disk controller, control method therefor and disk storage medium
JP2669311B2 (en) Bitmap file access system
JPH08202503A (en) Disk array device
JP2850854B2 (en) Data allocation management method and system