JP2008009506A - Information processor and its file access method - Google Patents
Information processor and its file access method Download PDFInfo
- Publication number
- JP2008009506A JP2008009506A JP2006176558A JP2006176558A JP2008009506A JP 2008009506 A JP2008009506 A JP 2008009506A JP 2006176558 A JP2006176558 A JP 2006176558A JP 2006176558 A JP2006176558 A JP 2006176558A JP 2008009506 A JP2008009506 A JP 2008009506A
- Authority
- JP
- Japan
- Prior art keywords
- file
- recording
- management information
- data
- recorded
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
本発明は情報処理装置及びそのファイルアクセス方法に関し、特にファイルの実データを管理情報とともに記録手段に記録しておき、この管理情報に基づいて記録手段に記録されるファイルに対するアクセス処理を行う情報処理装置及びそのファイルアクセス方法に関する。 The present invention relates to an information processing apparatus and a file access method thereof, and in particular, information processing that records actual data of a file together with management information in a recording unit and performs an access process on the file recorded in the recording unit based on the management information. The present invention relates to an apparatus and a file access method thereof.
近年、内蔵したHDD(Hard Disk Drive)に、動画ストリームなどのAV(Audio Visual)データファイルを記録し、再生することのできる機能を有する情報処理装置が普及している。たとえば、汎用のパーソナルコンピュータや、AVデータの記録と再生専用のハイブリッドレコーダなどに、AVデータの記録・再生のためのファイルシステムが組み込まれている。 In recent years, information processing apparatuses having a function capable of recording and reproducing AV (Audio Visual) data files such as video streams in a built-in HDD (Hard Disk Drive) have become widespread. For example, a file system for recording / reproducing AV data is incorporated in a general-purpose personal computer or a hybrid recorder dedicated to recording and reproducing AV data.
このような装置では、HDDへのファイル記録やHDDに記録されたファイルの再生は、必ずファイルシステムを介して行われる。たとえば、FAT(File Allocation Tables)ファイルシステムでは、HDDに記録されているFAT管理テーブルによってファイルの実データが書き込まれている位置を管理している。したがって、HDDに記録されるデータファイルにアクセスする際には、FAT管理テーブルを参照する必要があり、FAT管理テーブル参照時に発生するシーク動作が、HDDのアクセス速度の向上を阻む要因の1つとなっていた。 In such an apparatus, the file recording to the HDD and the reproduction of the file recorded on the HDD are always performed via the file system. For example, in a FAT (File Allocation Tables) file system, a location where actual data of a file is written is managed by a FAT management table recorded in the HDD. Therefore, when accessing a data file recorded in the HDD, it is necessary to refer to the FAT management table, and the seek operation that occurs when referring to the FAT management table is one of the factors that hinder the improvement of the access speed of the HDD. It was.
そこで、システムの初期化処理時に、FAT管理テーブルをHDDから読み出して高速読み書きが可能なバッファメモリに格納しておき、以降のファイルアクセス処理では、バッファメモリ上のFAT管理テーブルを使用することにより、ファイルアクセス速度の向上を図る情報記録再生装置が提案されている(たとえば、特許文献1参照)。
ところで、一般的な高信頼性ファイルシステムを介したHDDへのファイルの記録及び再生も、必ずメタデータやジャーナルログなどの管理情報が参照される。管理情報は、ファイルシステムの管理ブロック上に離散的にマッピングされるため、HDD上においても、物理的なレイアウトは不連続に散在する。したがって、HDD上のデータファイルを読み出す場合には、いったん、別の領域に記録される管理情報にアクセスしなければならず、データファイルへのアクセスに前後して、高い確率で大きなシーク動作が発生する。記録の場合にも、別の領域にマッピングされるデータファイルと、管理情報を書き込まなければならないため、同様にシーク動作が発生する。HDDのパフォーマンスは、シーク動作が伴うほど低下するので、ファイル管理情報とデータファイルをアクセスするために恒常的に発生するシーク動作は、HDDのスループット向上の阻害要因となっている。 By the way, management information such as metadata and journal logs is always referred to for recording and reproduction of files to and from the HDD via a general highly reliable file system. Since the management information is discretely mapped onto the management block of the file system, the physical layout is scattered discontinuously even on the HDD. Therefore, when reading a data file on the HDD, the management information recorded in another area must be accessed once, and a large seek operation occurs with high probability before and after the access to the data file. To do. Also in the case of recording, since a data file mapped to another area and management information must be written, a seek operation occurs similarly. Since the performance of the HDD decreases as the seek operation is accompanied, the seek operation that occurs constantly to access the file management information and the data file is an impediment to improving the throughput of the HDD.
また、装置を起動する際には、ファイルシステムを起動するシーケンスが実行される。このとき、起動に必要な管理情報はHDDから読み出さなければならないため、HDDが起動時、アクセスレディになるまでファイルシステムの起動を待たざるを得ない。HDDは機械部品であるので、アクセスレディになるまでの時間は、一般的な半導体デバイスに比べて、数倍から数十倍遅い。たとえば、装置が起動されてからファイルシステムが立ち上がるまでに、数秒から数十秒要する場合がある。このように、ファイルシステムの起動時間がボトルネックとなり、装置の起動時間を短縮することが難しいという問題点もある。なお、特許文献1の情報記録再生装置は、起動時にFAT管理テーブルをHDDから読み出すので、ファイルシステムの高速起動は難しいという問題点が同様にある。また、耐久性の低いHDDが故障した場合、FAT管理テーブルも併せて破壊されてしまうという問題点もある。 Further, when starting the apparatus, a sequence for starting the file system is executed. At this time, since the management information necessary for activation must be read from the HDD, the activation of the file system must be waited until the HDD becomes access ready when the HDD is activated. Since the HDD is a mechanical component, the time until access ready is several to several tens of times slower than that of a general semiconductor device. For example, it may take several seconds to several tens of seconds from when the device is started until the file system is started up. As described above, the startup time of the file system becomes a bottleneck, and it is difficult to shorten the startup time of the apparatus. Note that the information recording / reproducing apparatus of Patent Document 1 reads the FAT management table from the HDD at the time of activation, and thus has a problem that it is difficult to activate the file system at high speed. In addition, when a HDD with low durability breaks down, the FAT management table is also destroyed.
本発明はこのような点に鑑みてなされたものであり、ファイルアクセスの高速化と、高速起動を可能にするファイルシステムを搭載した情報処理装置及びそのファイルアクセス方法を提供することを目的とする。 The present invention has been made in view of these points, and an object thereof is to provide an information processing apparatus equipped with a file system that enables high-speed startup and high-speed file access, and a file access method thereof. .
本発明では上記課題を解決するために、データ記録手段と、管理情報記録手段と、再生制御手段と、記録制御手段とを具備し、管理情報に基づいてデータ記録手段に記録されるファイルの実データへのアクセス処理を行う情報処理装置が提供される。データ記録手段には、ファイルの実データが記録される。管理情報記録手段は、データ記録手段とは別個に設けられ、データ記録手段に記録されたファイルの実データに関する管理情報を記録する。再生制御手段は、データ記録手段に記録されているファイルの再生要求信号が入力されると、再生要求ファイルに対応する管理情報を管理情報記録手段から読み出し、読み出した管理情報に基づき、データ記録手段に記録される再生要求ファイルの実データを読み出す。記録制御手段は、データ記録手段にファイルを記録する記録要求信号が入力されると、記録要求ファイルを記録可能な空き領域をデータ記録手段から検出し、検出された空き領域の指示情報と記録要求ファイルに関するファイル情報を含む管理情報を生成して管理情報記録手段に記録し、記録要求ファイルの実データを空き領域に記録する。 In order to solve the above-mentioned problems, the present invention comprises a data recording means, a management information recording means, a reproduction control means, and a recording control means, and the execution of a file recorded in the data recording means based on the management information. An information processing apparatus that performs access processing to data is provided. The actual data of the file is recorded in the data recording means. The management information recording means is provided separately from the data recording means, and records management information regarding the actual data of the file recorded in the data recording means. When the reproduction request signal of the file recorded in the data recording means is input, the reproduction control means reads management information corresponding to the reproduction requested file from the management information recording means, and based on the read management information, the data recording means Read the actual data of the playback request file recorded in. When a recording request signal for recording a file is input to the data recording unit, the recording control unit detects a free area in which the recording request file can be recorded from the data recording unit, and indicates the detected free area indication information and the recording request Management information including file information related to the file is generated and recorded in the management information recording means, and the actual data of the recording request file is recorded in the empty area.
このような情報処理装置によれば、ファイルの実データは、データ記録手段に記録され、このファイルの実データに関する管理情報は、データ記録手段とは別個に設けられた管理情報記録手段にそれぞれ記録される。ファイルの再生要求信号が入力されると、再生制御手段は、再生要求ファイルの管理情報を管理情報記録手段から読み出し、読み出した管理情報に基づいて、データ記録手段から再生要求ファイルの実データを読み出す。一方、記録制御手段は、ファイルの記録要求信号が入力されると、記録要求ファイルを記録可能な空き領域をデータ記録手段から移す。検出された空き領域の指示情報と記録要求ファイルに関するファイル情報を含む管理情報を生成して管理情報記録手段に記録し、記録要求ファイルの実データを空き領域に記録する。 According to such an information processing apparatus, the actual data of the file is recorded in the data recording means, and the management information related to the actual data of the file is recorded in the management information recording means provided separately from the data recording means, respectively. Is done. When a file playback request signal is input, the playback control means reads management information of the playback request file from the management information recording means, and reads actual data of the playback request file from the data recording means based on the read management information. . On the other hand, when a recording request signal for a file is input, the recording control means moves a free area where the recording request file can be recorded from the data recording means. Management information including the detected free area instruction information and file information related to the recording request file is generated and recorded in the management information recording means, and the actual data of the recording request file is recorded in the free area.
本発明では、情報処理装置内に所定のファイルを記録する場合に、従来は同一の記録手段に記録されていたファイルの実データとその管理情報とを別々に動作可能な記録手段に記録する。たとえば、ファイルの実データを記録する記録手段が、シーク動作が必要なHDDなどで構成されていた場合、管理情報を別の記録手段で管理することにより、シーク動作を減らし、ファイルの記録・再生のスループットを向上させることができる。 In the present invention, when a predetermined file is recorded in the information processing apparatus, the actual data of the file that has been recorded in the same recording means and its management information are recorded in the recording means that can operate separately. For example, if the recording means for recording the actual data of the file is composed of an HDD or the like that requires a seek operation, management information is managed by another recording means to reduce the seek operation and record / reproduce the file. Throughput can be improved.
以下、本発明の実施の形態を図面を参照して説明する。まず、実施の形態に適用される発明の概念について説明し、その後、実施の形態の具体的な内容を説明する。
図1は、実施の形態に適用される発明の概念図である。
Hereinafter, embodiments of the present invention will be described with reference to the drawings. First, the concept of the invention applied to the embodiment will be described, and then the specific contents of the embodiment will be described.
FIG. 1 is a conceptual diagram of the invention applied to the embodiment.
本発明に係るファイルシステムが適用される情報処理装置は、ファイルの再生を制御する再生制御手段1a、ファイルの記録を制御する記録制御手段1b、データ記録手段1dへのアクセス処理を行うデータ記録手段インタフェース1c、ファイルの実データを記録するデータ記録手段1d、管理情報記録手段1fへのアクセス処理を行う管理情報記録手段インタフェース1e、管理情報を記録する管理情報記録手段1f、及び情報処理装置起動時の初期化処理を行う初期化手段1gを具備する。
An information processing apparatus to which the file system according to the present invention is applied includes a reproduction control means 1a for controlling reproduction of a file, a recording control means 1b for controlling file recording, and a data recording means for performing access processing to the data recording means 1d.
再生制御手段1aは、図示しないアプリケーションなどからファイル再生要求信号が入力されると、再生要求されたファイルの読み出しを制御する。再生制御手段1aは、まず、再生要求ファイルが格納される領域などが設定される再生要求ファイルの管理情報を、管理情報記録手段インタフェース1eを介して管理情報記録手段1fから読み出す。そして、データ記録手段インタフェース1cを介し、読み出した管理情報によって特定されるデータ記録手段1dの記録領域から、再生要求ファイルの実データを読み出す。読み出されたデータは、要求元へ送る。
When a file reproduction request signal is input from an application (not shown) or the like, the
記録制御手段1bは、図示しないアプリケーションなどからファイル記録要求信号と、記録ファイルの実データが入力されると、記録要求されたファイルの書き込みを制御する。記録制御手段1bは、まず、データ記録手段インタフェース1cを介してデータ記録手段1dの空き状況をチェックし、記録要求ファイルの実データが記録できる空き領域を検出する。そして、以降の処理でこのデータが読み出しできるように、検出された空き領域を指示する指示情報と、記録ファイルに関するファイル情報を含む管理情報を生成し、管理情報記録手段インタフェース1eを介して管理情報記録手段1fへ書き込む。そして、データ記録手段インタフェース1cを介し、取得したファイル実データを検出された空き領域に書き込む。要求元へは、正常終了などの処理状況を返す。
When a file recording request signal and actual data of a recording file are input from an application (not shown) or the like, the
データ記録手段インタフェース1cは、データ記録手段1dへのファイルの実データの書き込みと読み出しを制御する。
データ記録手段1dは、ファイルの実データを記録する。データ記録手段1dは、大量のデータを低コストで記録できるHDDに代表される補助記憶装置で構成される。アクセス時にシーク動作を伴うことが特徴であり、ほかに、光ディスク装置、光磁気ディスク装置などがある。
The data
The
管理情報記録手段インタフェース1eは、管理情報記録手段1fへの管理情報の書き込みと読み出しを制御する。
管理情報記録手段1fは、管理情報を記録する。管理情報は、ファイルの実データと比較してデータサイズが格段に小さいので、データ記録手段1dより高速アクセスが可能なレイテンシーが小さい素子で構成される。たとえば、シーク動作を必要としない不揮発性メモリで構成される。
The management information recording
The management
初期化手段1gは、情報処理装置の起動時、管理情報記録手段1fに記録される管理情報を読み出し、管理情報に基づいてファイルアクセスに関する初期情報を設定する。これにより、初期化時には、管理情報記録手段1fからだけ読み出しを行えばよいので、アクセスレディになるまでの時間を考慮する必要がなくなる。
The
このような構成の情報処理装置の動作及びファイルアクセス方法について説明する。なお、以下の説明では、データ記録手段1dはHDD、管理情報記録手段1fは不揮発性メモリで構成されるとする。
An operation of the information processing apparatus having such a configuration and a file access method will be described. In the following description, it is assumed that the
ファイル再生要求信号が入力されると、再生制御手段1aは、管理情報記録手段インタフェース1eを介して管理情報記録手段1fから、再生要求ファイルの管理情報を読み出す。そして、読み出した管理情報に基づき、データ記録手段インタフェース1cを介してデータ記録手段1dから再生要求ファイルの実データを読み出す。これにより、従来、管理情報の検索のため行われていたHDDヘッドのシーク動作を省くことが可能となり、HDDへのユーザデータアクセス性能を向上させることができる。
When the file reproduction request signal is input, the
また、ファイル記録要求信号がファイル実データとともに入力されると、記録制御手段1bは、データ記録手段1dの空き領域を検出し、その管理情報を生成して管理情報記録手段インタフェース1eを介して管理情報記録手段1fへ登録する。そして、検出されたデータ記録手段1dの空き領域にファイル実データを記録する。記録時も再生時と同様に、管理情報の書き込みのために行われていたシーク動作を省くことが可能となり、スループットを向上させることができる。
When the file recording request signal is input together with the actual file data, the
さらに、情報処理装置の起動時には、ファイルシステムを起動する必要がある。初期化手段1gは、情報処理装置が初期化されると起動され、管理情報記録手段インタフェース1eを介して管理情報記録手段1fに記録されるファイルの管理情報を読み出し、読み出した管理情報をメインメモリに展開する。このように、初期化手段1gの読み出し元は、高速アクセスが可能な不揮発性メモリになる。したがって、HDDへアクセスしていた従来と比較し、読み出しレイテンシーを激減させることができる。また、機械的な機構を備え、アクセスレディになるまでに時間のかかるHDDに比べ、起動後すぐに読み出しを行うことが可能であり、ファイルシステムの高速起動を実現することができる。
Furthermore, it is necessary to start the file system when starting the information processing apparatus. The
以下、実施の形態を、AVストリームを記録・再生する情報処理装置に適用した場合を例に図面を参照して詳細に説明する。実施の形態では、管理情報として、少なくともAVストリームのファイル名や属性情報、実データの記録位置などを紐付けしたメタデータと、メタデータ設定に関するジャーナルログとを有し、AVストリームの記録・再生を管理するとする。 Hereinafter, the embodiment will be described in detail with reference to the drawings, taking as an example a case where the embodiment is applied to an information processing apparatus for recording / reproducing an AV stream. In the embodiment, the management information includes metadata associated with at least the file name and attribute information of the AV stream, the actual data recording position, and the like, and a journal log relating to metadata setting, and recording / reproducing of the AV stream. Suppose you manage.
図2は、本発明の実施の形態のファイルシステムが適用される情報処理装置のハードウェア構成図である。
本発明の実施の形態の情報処理装置100は、CPU(Central Processing Unit)101によって装置全体が制御されている。CPU101には、バス105を介してメインメモリ102、不揮発性メモリコントローラ103、及びHDDコントローラ104が接続されるシステムユニットが、不揮発性メモリインタフェース(以下、I/Fとする)106を介して不揮発性メモリ130と接続し、HDDI/F107を介してHDD140と接続する。
FIG. 2 is a hardware configuration diagram of an information processing apparatus to which the file system according to the embodiment of this invention is applied.
In the
CPU101は、後述するアプリケーションから発せられるファイルアクセス要求に基づいて、メインメモリ102、不揮発性メモリコントローラ103、及びHDDコントローラ104を制御し、HDD140にファイルの実データを記録し、かつ記録された実データを再生する。
The
メインメモリ102は、RAM(Random Access Memory)で構成され、CPU101に実行させるOS(Operating System)のプログラムやアプリケーションプログラムの少なくとも一部が一時的に格納される。また、メインメモリ102には、不揮発性メモリ130に記録されるファイルの管理情報の一部を含むCPU101による処理に必要な各種データが格納される。
The
不揮発性メモリコントローラ103は、不揮発性メモリI/F106を介して不揮発性メモリ130に接続し、CPU101からの命令に従って、不揮発性メモリ130に記録された管理情報の読み出しと書き込みを制御する。不揮発性メモリ130には、AVストリームファイルに関するファイルシステムの管理情報(メタデータやジャーナルログ)が平衡木構造で記録されている。AVストリームの再生時の基本動作として、このファイルシステムの管理情報のうち、一部がメインメモリ102上に展開され、要求に応じて、不揮発性メモリ130上に続きをアクセスする。
The
HDDコントローラ104は、HDDI/F107を介してHDD140に接続し、CPU101からの命令に従って、HDD140に記録されるファイルの実データの読み出しと書き込みを制御する。HDD140には、OSやアプリケーションのプログラムなどのほか、AVストリームの実データ(ユーザデータ)が格納される。
The
このようなハードウェア構成によって、本実施の形態の処理機能を実現することができる。
次に、本実施の形態の情報処理装置100のソフトウェア構成について説明する。図3は、本実施の形態のファイルシステムが適用される情報処理装置のソフトウェア構成図である。図2と同じものには同じ番号を付し、説明は省略する。
With such a hardware configuration, the processing functions of the present embodiment can be realized.
Next, the software configuration of the
本発明の実施の形態の情報処理装置100は、アプリケーション201、仮想ファイルシステム(VFS;Virtual File System)202、ファイルマネージャー203、ユーザデータレイアウトマネージャー204、ブロックデバイスI/Oドライバ205、HDDI/Fドライバ206、メタデータレイアウトマネージャー207、不揮発性メモリI/Oドライバ208、及び不揮発性メモリI/Fドライバ209を有する。
An
アプリケーション201は、アプリケーションプログラムに従って処理手順を実行し、ファイルの記録・再生要求を発生させる。ファイルの記録・再生要求は、仮想ファイルシステム202に出力される。
The
仮想ファイルシステム202は、アプリケーション201と下層レイヤとの間で、ファイルアクセス要求を伝達する基本的な制御を行う。仮想ファイルシステム202により、アプリケーション201からは、AVストリームを記録する記録媒体の種別や特性などを考慮せずに、記録・再生要求を発生させることができる。
The
ファイルマネージャー203は、ユーザデータ及び管理情報の記録・再生処理を行う下層を管理し、仮想ファイルシステム202からの指示に従って、ファイル管理情報の生成や、登録されているファイル管理情報の抽出など、ファイル管理情報に基づくファイル管理を行う。ファイルマネージャー203によって管理される下層は、ユーザデータに関するユーザデータレイアウトマネージャー204、ブロックデバイスI/Oドライバ205、及びHDDI/Fドライバ206と、管理情報に関するメタデータレイアウトマネージャー207、不揮発性メモリI/Oドライバ208、及び不揮発性メモリI/Fドライバ209とに分かれる。
The
ユーザデータレイアウトマネージャー204は、ユーザデータ(実データ)を記録する領域を管理する。ブロックデバイスI/Oドライバ205は、ファイルシステム上の位置情報をHDD140上の記録位置情報に変換するとともに、HDDI/Fドライバ206へのデータ書き込みサイズとタイミングを制御する。HDDI/Fドライバ206は、HDDI/F107のフォーマットと、ファイルシステムの上位層のフォーマットとの変換処理を行うとともに、HDDコントローラ104経由でHDD140へのアクセス制御を行う。
The user
メタデータレイアウトマネージャー207は、メタデータやジャーナルなどの管理情報の記録を管理する。不揮発性メモリI/Oドライバ208は、メタデータレイアウトマネージャー207が生成したメタデータのエントリ情報を受け取り、不揮発性メモリ130上の位置情報に変換する。また、ファイルマネージャー203が生成したメタデータ本体を受け取り、不揮発性メモリI/Fドライバ209への書き込みサイズとタイミングを制御する。不揮発性メモリI/Fドライバ209は、不揮発性メモリI/F106のフォーマットと、上位層のフォーマットとの変換を行うとともに、不揮発性メモリコントローラ103経由で、メタデータ及びジャーナルの書き込みと読み出しを制御する。
The
このような構成の情報処理装置の動作及びファイルアクセス方法について、起動時、ファイルの記録時、及び再生時の3つの場合で説明する。
(1)ファイルシステムの起動
情報処理装置が初期化されると、ファイルシステムも新たに起動され、不揮発性メモリ130に記録されている管理情報に基づき、ファイルシステムの動作に必要な情報をメインメモリに展開する。半導体である不揮発性メモリ130は、機械部品であるHDD140とは異なり、装置初期化後すぐにアクセス可能な状態となる。このため、装置初期化でOSが起動されると、OSは、HDD140のような待ち時間の必要なしに、ファイルシステムを起動することができる。
The operation of the information processing apparatus configured as described above and the file access method will be described in three cases: startup, file recording, and playback.
(1) Activation of file system When the information processing apparatus is initialized, the file system is also newly activated, and information necessary for the operation of the file system is stored in the main memory based on the management information recorded in the
ファイルシステム起動時には、まず、ファイルマネージャー203が起動され、不揮発性メモリコントローラ103を介して、必要な管理情報を不揮発性メモリ130から読み出す。読み出した管理情報は、必要に応じて、メインメモリ102上に展開される。
When the file system is activated, first, the
このように、管理情報を不揮発性メモリ130に記録しておくため、従来のHDD140に記録された管理情報を読み出していた場合と比べて、読み出しのレイテンシーが激減し、結果として管理情報の読み出し性能が向上する。
As described above, since the management information is recorded in the
(2)ファイルの記録
ファイルの記録処理は、アプリケーション201が仮想ファイルシステム202に対してファイルの実データの記録要求で起動され、対象のファイルの実データをHDD140に記録する。記録対象のファイルの実データは、アプリケーション201によって、メインメモリ102に一時保存されている。
(2) File Recording In the file recording process, the
図4は、本実施の形態のファイルアクセス方法におけるファイルの記録の手順を示したフローチャートである。
[ステップS11] 仮想ファイルシステム202からファイルの記録要求が伝達されると、ファイルマネージャー203は、新たに生成するファイルの管理情報を記録するための領域を確保するため、メタデータレイアウトマネージャー207に指示を出す。メタデータレイアウトマネージャー207は、管理する平衡木上に新たなメタデータ領域を確保し、エントリ情報を生成する。
FIG. 4 is a flowchart showing a file recording procedure in the file access method of the present embodiment.
[Step S11] When a file recording request is transmitted from the
[ステップS12] ファイルマネージャー203は、ユーザデータを記録するための領域を確保するため、ユーザデータレイアウトマネージャー204に指示を出す。ユーザデータレイアウトマネージャー204は、記録要求がされたファイルの実データのサイズに基づき、管理するファイルシステム上の空き領域を確保し、位置とサイズを決定する。
[Step S12] The
[ステップS13] 続いて、ファイルマネージャー203は、メタデータファイル名やサイズや属性情報、ユーザデータを記録するファイルシステム上の記録位置を紐付けしてメタデータ群としてリンクリスト形式でまとめたメタデータ本体を生成する。さらに、まとめたメタデータ群の書き込みに関するジャーナルログを生成する。
[Step S13] Subsequently, the
[ステップS14] ファイルマネージャー203は、ステップS11でメタデータレイアウトマネージャー207によって生成されたエントリ情報を、不揮発性メモリI/Oドライバ208に送り、メタデータの書き込み指示を行う。
[Step S14] The
[ステップS15] 不揮発性メモリI/Oドライバ208は、メタデータのエントリ情報を受け取り、不揮発性メモリ130上に書き込む位置情報に変換する。また、ステップS13でファイルマネージャー203によって生成されたメタデータ本体を受け取り、不揮発性メモリI/Fドライバ209への書き込みサイズとタイミングを制御する。不揮発性メモリI/Fドライバ209は、メタデータの位置とサイズ、メタデータ本体を受け取ると、不揮発性メモリI/F106のフォーマットに応じた形式に再形成し、不揮発性メモリコントローラ103経由で不揮発性メモリ130へ書き込む。書き込み完了後、割り込みがファイルマネージャー203へ通知される。
[Step S15] The nonvolatile memory I /
[ステップS16] メタデータの書き込み完了が通知されると、ファイルマネージャー203は、ステップS12で確保されたユーザデータを記録するファイルシステム上の位置情報がブロックデバイスI/Oドライバ205へ通知し、ユーザデータの書き込み指示を行う。
[Step S16] When the completion of the metadata writing is notified, the
[ステップS17] ブロックデバイスI/Oドライバ205は、ユーザデータを記録するファイルシステム上の位置情報を受け取り、HDD140上の記録位置情報に変換する。また、メインメモリ102上にあるユーザデータ本体を受け取り、HDDI/Fドライバ206への書き込みサイズとタイミングを制御する。ユーザデータの位置とサイズ、本体を受け取ったHDDI/Fドライバ206は、HDDI/F107のフォーマットに応じた形式に再形成し、HDDコントローラ104経由でHDDへ書き込む。HDDへの書き込みが完了したら、その完了割り込みがHDDI/Fドライバ206からファイルマネージャー203に通知される。
[Step S <b> 17] The block device I /
[ステップS18] メタデータ及びユーザデータの書き込み完了割り込み通知を受けたファイルマネージャー203は、生成したジャーナルログを不揮発性メモリ130上にマップされているファイルシステムのログ領域へ書き込む。書き込み方法は、メタデータと同様である。また、合わせてファイルマネージャーは仮想ファイルシステム経由で、ユーザアプリケーションへファイルの書き込み完了を通知する。
[Step S18] Upon receiving the metadata and user data write completion interrupt notification, the
以上の処理手順が実行されることにより、AVストリームのユーザデータは、HDD140に記録され、その管理情報は、不揮発性メモリ130に記録される。
(3)ファイルの再生
ファイルの再生は、アプリケーション201が仮想ファイルシステム202に再生要求を行うと起動される。
By executing the above processing procedure, the user data of the AV stream is recorded in the
(3) File Playback File playback is started when the
図5は、本実施の形態のファイルアクセス方法におけるファイルの再生の手順を示したフローチャートである。
[ステップS21] 仮想ファイルシステム202からファイルの再生要求が伝達されると、ファイルマネージャー203は、ファイル名に紐付いているメタデータ群をメインメモリ102上に一部展開されている管理情報の平衡木上から検索する。
FIG. 5 is a flowchart showing a file reproduction procedure in the file access method of the present embodiment.
[Step S <b> 21] When a file playback request is transmitted from the
[ステップS22] ファイルマネージャー203は、該当するメタデータが見つかったら、ファイルのユーザデータサイズ・ファイルシステム上の記録位置情報を抽出し、ブロックデバイスI/Oドライバ205に渡す。これをメタデータ群の最後まで繰り返す。
[Step S22] When the corresponding metadata is found, the
[ステップS23] ブロックデバイスI/Oドライバ205は、ステップS22で取得したファイルシステム上の記録位置情報をHDD140上の記録位置情報に変換し、ユーザデータサイズとともにHDDI/Fドライバ206へ渡す。HDDI/Fドライバ206は、渡されたサイズと位置情報を元に、HDDコントローラ104経由でHDDからユーザデータを読み出す。読み出したユーザデータは、ブロックデバイスI/Oドライバ205の管理下のメインメモリ102上へ展開する。
[Step S23] The block device I /
[ステップS24] ステップS22において、メインメモリ102上に、全てのメタデータ群が展開されているかどうかを判定する。全メタデータが展開されていない場合、ステップS22に戻って、その続きを不揮発性メモリ130上から読み出し、メインメモリ102上へ展開する。
[Step S24] In step S22, it is determined whether or not all the metadata groups are expanded on the
[ステップS25] 全てのユーザデータの読み出しが完了した場合、HDDI/Fドライバ206からファイルマネージャー203へ、読み出し完了割り込みを発生させる。ファイルマネージャー203は、読み出し完了割り込みを受けたら、仮想ファイルシステム202経由でアプリケーション201へファイルの読み込み完了を通知する。
[Step S25] When reading of all user data is completed, a read completion interrupt is generated from the HDD I /
以上の処理手順が実行されることにより、HDD140に記録されるAVストリームのユーザデータは、不揮発性メモリ130に記録される管理情報に基づき、読み出しが行われる。
By executing the above processing procedure, the user data of the AV stream recorded in the
このように、全てのファイル管理情報を不揮発性メモリ130に置くことで、HDD140上のストリームデータへのアクセス時に必ず発生する、メタデータを管理する平衡木の検索は、メインメモリ102と不揮発性メモリ130との間で行われることになり、HDD140とは独立動作となる。したがって、従来システムにて発生していたメタデータ検索のためのHDDヘッドのシーク動作によるレイテンシーが激減し、HDDへユーザデータをアクセスする性能が向上する。
As described above, by placing all the file management information in the
特に、連続データで構成されるユーザデータを特徴とするAVストリームの記録・再生において顕著に効果が発揮される。メタデータの読み出しに要していたシーク動作の時間などが削減されることにより、AVストリームの記録・再生の高速化が可能となり、たとえば、デジタル放送の録画処理などにおいて、同時に録画可能な番組数を増やすことなどが期待できる。 In particular, the present invention is remarkably effective in recording / reproducing AV streams characterized by user data composed of continuous data. Reduction in seek operation time required for reading out metadata makes it possible to speed up recording and playback of AV streams. For example, the number of programs that can be recorded simultaneously in digital broadcast recording processing, etc. We can expect to increase.
ファイルシステムの起動時に必要なファイル管理情報のメインメモリへの展開は、読み出し元が不揮発性メモリとなるので、従来システムにおいてHDDへアクセスしていた際の読み出しレイテンシーが激減し、結果、ファイル管理情報の読み出し性能が向上する。 When the file management information required for starting the file system is expanded to the main memory, the read source is a non-volatile memory, so the read latency when accessing the HDD in the conventional system is drastically reduced. As a result, the file management information Reading performance is improved.
AVストリームの記録・再生について、HDDの記録容量あたりのファイル数がファイルサーバやデータベースサーバと比較して相対的に少ない。つまり、HDDの記録容量あたりのメタデータの数も相対的に少ないといえる。ファイルシステムの起動時に必要なファイル管理情報の読み出すサイズ当たりの読み出しレイテンシーの観点から、本効果は、AVストリームの記録・再生においてより顕著に発揮される。 For AV stream recording / reproduction, the number of files per recording capacity of the HDD is relatively small compared to a file server or a database server. That is, the number of metadata per HDD recording capacity is relatively small. From the viewpoint of read latency per size for reading file management information required when the file system is activated, this effect is more prominent in recording / reproducing AV streams.
また、HDDが故障し、一部の領域へアクセスできなくなった場合、ユーザデータは保証できないが、ファイルシステムの管理情報は守られるため、ファイルシステム上ではメタデータの制御が可能となり、ファイルの破棄などを行うことで、ファイルシステムの稼働性が保持できる。 Also, if the HDD fails and some areas cannot be accessed, the user data cannot be guaranteed, but the file system management information is protected, so the metadata can be controlled on the file system, and the file is discarded. By doing so, the operability of the file system can be maintained.
1a・・・再生制御手段、1b・・・記録制御手段、1c・・・データ記録手段インタフェース、1d・・・データ記録手段、1e・・・管理情報記録手段インタフェース、1f・・・管理情報記録手段、1g・・・初期化手段
DESCRIPTION OF
Claims (5)
所定のファイルの実データを記録するデータ記録手段と、
前記データ記録手段とは別個に設けられ、前記データ記録手段に記録された前記所定のファイルの実データに関する管理情報を記録する管理情報記録手段と、
前記データ記録手段に記録されているファイルの再生要求信号が入力されると、再生要求ファイルに対応する管理情報を前記管理情報記録手段から読み出し、読み出した前記管理情報に基づき、前記データ記録手段に記録される前記再生要求ファイルの実データを読み出す再生制御手段と、
前記データ記録手段にファイルを記録する記録要求信号が入力されると、記録要求ファイルを記録可能な空き領域を前記データ記録手段から検出し、検出された前記空き領域の指示情報と前記記録要求ファイルに関するファイル情報を含む管理情報を生成して前記管理情報記録手段に記録し、前記記録要求ファイルの実データを前記空き領域に記録する記録制御手段と、
を具備することを特徴とする情報処理装置。 In an information processing apparatus that records actual data of a file together with management information in a recording unit, and performs an access process to the actual data of the file recorded in the recording unit based on the management information.
Data recording means for recording actual data of a predetermined file;
Management information recording means that is provided separately from the data recording means and records management information relating to actual data of the predetermined file recorded in the data recording means;
When a reproduction request signal for a file recorded in the data recording unit is input, management information corresponding to the reproduction request file is read from the management information recording unit, and based on the read management information, the data recording unit Reproduction control means for reading out actual data of the reproduction request file to be recorded;
When a recording request signal for recording a file is input to the data recording unit, a free area in which the recording request file can be recorded is detected from the data recording unit, and the detected free area indication information and the recording request file are detected. Management information including file information related to and recorded in the management information recording means, recording control means for recording the actual data of the recording request file in the free space;
An information processing apparatus comprising:
をさらに具備することを特徴とする請求項1記載の情報処理装置。 Initialization means for reading management information relating to a file recorded in the data recording means recorded in the management information recording means when the information processing apparatus is activated, and setting initial information relating to file access based on the management information;
The information processing apparatus according to claim 1, further comprising:
記録制御手段が、所定のファイルの実データを記録するデータ記録手段にファイルを記録する記録要求信号が入力されると、記録要求ファイルを記録可能な空き領域を前記データ記録手段から検出し、検出された前記空き領域の指示情報と前記記録要求ファイルに関するファイル情報を含む管理情報を生成して前記データ記録手段とは別個に設けられ、前記データ記録手段に記録された前記所定のファイルの実データに関する管理情報を記録する管理情報記録手段に記録し、前記記録要求ファイルの実データを前記空き領域に記録する手順と、
再生制御手段が、前記所定のファイルの実データを記録する前記データ記録手段に記録されているファイルの再生要求信号が入力されると、再生要求ファイルに対応する管理情報を前記管理情報記録手段から読み出し、読み出した前記管理情報に基づき、前記データ記録手段に記録される前記再生要求ファイルの実データを読み出す手順と、
を有することを特徴とする情報処理装置のファイルアクセス方法。
In the file access method of the information processing apparatus for recording the actual data of the file together with the management information in the recording means, and performing the access process to the actual data of the file recorded in the recording means based on the management information,
When the recording request signal for recording the file is input to the data recording means for recording the actual data of the predetermined file, the recording control means detects the free area where the recording request file can be recorded from the data recording means, and detects it. Management data including file information related to the recorded free space instruction information and the recording request file is generated and provided separately from the data recording means, and the actual data of the predetermined file recorded in the data recording means A management information recording means for recording management information related to, and recording the actual data of the recording request file in the empty area;
When the reproduction control signal is input to the reproduction request signal of the file recorded in the data recording means for recording the actual data of the predetermined file, the management information corresponding to the reproduction request file is transmitted from the management information recording means. A procedure for reading out the actual data of the reproduction request file recorded in the data recording means based on the read management information,
A file access method for an information processing apparatus, comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006176558A JP4984677B2 (en) | 2006-06-27 | 2006-06-27 | Information processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2006176558A JP4984677B2 (en) | 2006-06-27 | 2006-06-27 | Information processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008009506A true JP2008009506A (en) | 2008-01-17 |
JP4984677B2 JP4984677B2 (en) | 2012-07-25 |
Family
ID=39067698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2006176558A Expired - Fee Related JP4984677B2 (en) | 2006-06-27 | 2006-06-27 | Information processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4984677B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5301666B2 (en) * | 2009-07-02 | 2013-09-25 | 三菱電機株式会社 | Data recording apparatus and audio system |
WO2014119063A1 (en) * | 2013-02-04 | 2014-08-07 | 株式会社フィックスターズ | Information processing device, information processing method, and program |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003167781A (en) * | 2001-11-30 | 2003-06-13 | Matsushita Electric Ind Co Ltd | Magnetic disk device and data readout control method |
JP2004334419A (en) * | 2003-05-06 | 2004-11-25 | Internatl Business Mach Corp <Ibm> | Magnetic disk device, file management system, and its method |
-
2006
- 2006-06-27 JP JP2006176558A patent/JP4984677B2/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003167781A (en) * | 2001-11-30 | 2003-06-13 | Matsushita Electric Ind Co Ltd | Magnetic disk device and data readout control method |
JP2004334419A (en) * | 2003-05-06 | 2004-11-25 | Internatl Business Mach Corp <Ibm> | Magnetic disk device, file management system, and its method |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5301666B2 (en) * | 2009-07-02 | 2013-09-25 | 三菱電機株式会社 | Data recording apparatus and audio system |
WO2014119063A1 (en) * | 2013-02-04 | 2014-08-07 | 株式会社フィックスターズ | Information processing device, information processing method, and program |
Also Published As
Publication number | Publication date |
---|---|
JP4984677B2 (en) | 2012-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8402069B2 (en) | Use of delete notifications by file systems and applications to release storage space | |
US7707337B2 (en) | Object-based storage device with low process load and control method thereof | |
KR20150035560A (en) | Optimized context drop for a solid state drive(ssd) | |
JP4402103B2 (en) | Data storage device, data relocation method thereof, and program | |
JP2006268503A (en) | Computer system, disk unit and data update control method | |
US6697902B1 (en) | Data storage device and interface device for the data storage device | |
US20040268070A1 (en) | Method and apparatus for backing up data in virtual storage medium | |
JP4227931B2 (en) | Information storage device, information storage method, and information storage processing program | |
JP4461089B2 (en) | Storage control apparatus and storage control method | |
KR20060045693A (en) | Information processing apparatus and method, program, and program recording medium | |
JP4984677B2 (en) | Information processing device | |
KR102152724B1 (en) | Video managing apparatus and method of surveillance systems | |
JP2000341635A (en) | Recording method for hierarchical buffer memory and hierarchical buffer memory structure and data reproduction method and device therefor and video data edition system and computer readable recording medium and system on chip type integrated device | |
US8707089B2 (en) | Storage control device for formatting to storage media, storage control method for formatting to storage media, and medium for storing storage control program for formatting to storage media | |
JP2006113882A (en) | Data management device | |
JP2006323462A (en) | File-copying device and file-copying method | |
JP2009181373A (en) | Method of storing/reproducing network reception history, and information processor | |
JP2007281972A (en) | Stream data recording/reproducing apparatus and stream data recording apparatus | |
JP2001290607A (en) | Command queuing control method for device driver and computer system | |
JP2007323377A (en) | Recording apparatus, method for writing management data and method for repairing management data | |
WO2010007727A1 (en) | Video recording device, video reproduction device, and method thereof | |
JP2008158572A (en) | Data storage device | |
JP4480592B2 (en) | File system | |
US8549221B2 (en) | RAID management apparatus, RAID management method, and computer product | |
JP4579998B2 (en) | Restore management program, restore management method, and restore management apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090617 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111222 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120110 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120305 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120403 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120416 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150511 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |