JP5039463B2 - Recording apparatus and recording method - Google Patents

Recording apparatus and recording method Download PDF

Info

Publication number
JP5039463B2
JP5039463B2 JP2007182748A JP2007182748A JP5039463B2 JP 5039463 B2 JP5039463 B2 JP 5039463B2 JP 2007182748 A JP2007182748 A JP 2007182748A JP 2007182748 A JP2007182748 A JP 2007182748A JP 5039463 B2 JP5039463 B2 JP 5039463B2
Authority
JP
Japan
Prior art keywords
area
high access
data
access area
recording apparatus
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.)
Active
Application number
JP2007182748A
Other languages
Japanese (ja)
Other versions
JP2009020955A (en
Inventor
貴之 山本
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2007182748A priority Critical patent/JP5039463B2/en
Publication of JP2009020955A publication Critical patent/JP2009020955A/en
Application granted granted Critical
Publication of JP5039463B2 publication Critical patent/JP5039463B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

本発明は、記録装置に関するものである。   The present invention relates to a recording apparatus.

近年、大容量化の著しいハードディスクは、サーバ・パーソナルコンピュータのみならず、録画装置(ハードディスクレコーダ)やカーナビゲーションシステム、オーディオコンポなど、様々な機器に搭載されている。ハードディスク(HDD: Hard Disk Drive)は高速回転する円盤上の磁性体に磁気ヘッドを用いてデータを読み書きするが、機械駆動する部品が多く、不揮発半導体メモリ(フラッシュメモリなど)に比較して故障の多いデバイスである。故障率低減のため、主にハードウェアの耐久性向上の観点から対策が施されている。   In recent years, hard disks with a large capacity have been installed not only in servers and personal computers but also in various devices such as recording devices (hard disk recorders), car navigation systems, and audio components. A hard disk drive (HDD) reads and writes data using a magnetic head on a magnetic body on a high-speed rotating disk, but it has many mechanically driven parts, and has a failure compared to non-volatile semiconductor memory (flash memory, etc.). Many devices. In order to reduce the failure rate, measures are mainly taken from the viewpoint of improving the durability of hardware.

一方、故障率はHDDの使用方法によっても変化する。例えば、HDDにデータを書き込み、直後に消去して同一サイズのデータを次に書き込むと、次の書き込みは通常同一領域に行われる。本動作を繰り返すと、HDDの同一領域を繰り返し使用することになり、故障率が上昇する。同様に、特定の使用領域のアクセス回数が高いと、故障率上昇の原因となる。
HDDに映像を記録する場合、通常連続領域に保存する。理由として、連続領域のほうが読み出し/書き込みが高速になるからである。
On the other hand, the failure rate varies depending on how the HDD is used. For example, when data is written to the HDD, erased immediately after that, and the same size data is written next, the next writing is usually performed in the same area. If this operation is repeated, the same area of the HDD will be used repeatedly, increasing the failure rate. Similarly, if the number of accesses in a specific use area is high, the failure rate increases.
When recording video on the HDD, it is usually stored in a continuous area. This is because reading / writing is faster in the continuous area.

一方、近年映像等コンテンツに関する情報(コンテンツメタデータ)などを大量に蓄積する場合がある。このようなメタデータは通常数Kバイト程度の大きさであり、読み出しの速いランダムアクセスに適したファイルシステムで保存する。   On the other hand, in recent years, a large amount of information (content metadata) relating to content such as video may be accumulated. Such metadata is usually about several kilobytes in size, and is stored in a file system suitable for random access that can be read quickly.

つまり、映像とメタデータは性能上の理由から異なる領域、異なるファイルシステムで保存するほうが良い。このとき、例えば、10Kバイトのメタデータ100件は1Mバイトであるが、24Mbpsの映像データは、0.5時間1件で5Gバイト以上となる。すると、映像用領域とメタデータ用領域のサイズ比は1000倍以上となり、一部の領域にアクセスが偏ることになる。   In other words, video and metadata should be stored in different areas and different file systems for performance reasons. At this time, for example, 100 metadata of 10 Kbytes is 1 Mbyte, but video data of 24 Mbps is 5 Gbytes or more in one event for 0.5 hour. Then, the size ratio between the video area and the metadata area is 1000 times or more, and access is biased to some areas.

このような偏った領域への繰り返し使用に対する故障率低減対策として、同一のディスク領域へのアクセス回数の偏りを平準化する幾つかの方式が提案されている。   As a measure for reducing the failure rate against repeated use in such a biased area, several methods for leveling the bias in the number of accesses to the same disk area have been proposed.

特許文献1では、HDDへのファイル単位のアクセス数を記録し、アクセス数の多いファイルは、アクセスの少ないディスク領域へ移動する方式を用いている。特許文献2では、領域単位でデータのアクセス数を記録し、次に書き込む領域はアクセス数が少ない領域に書き込むと共に、アクセス数が一定以上となる場合は、書き込み回数が少ない領域へデータを移動する。特許文献3では、使用回数の高い一時データ保存領域を、長期保存用領域と組み合わせて使用し、HDDへのアクセスを平準化しようとしている。   In Patent Document 1, the number of accesses to the HDD per file is recorded, and a file with a large number of accesses is moved to a disk area with few accesses. In Patent Document 2, the number of data accesses is recorded in units of areas, and the next area to be written is written to an area with a small number of accesses. . In Patent Document 3, a temporary data storage area that is frequently used is used in combination with a long-term storage area to try to level access to the HDD.

特開平7−64828号公報JP 7-64828 A 特開2000−172538号公報JP 2000-172538 A 特開2004−213831号公報 しかし、ファイルや領域に対するアクセス数を用いた計測方式では、ファイル数や領域数の増加に比例して、計測コストが増大するという課題となる。例えば、近年ではHDD容量は1テラバイト以上のものが登場している。デジタル放送番組では、30分番組1本で5ギガバイト程度を消費し、1つのHDDに記録できる番組数は200程度である。しかし、番組情報などいわゆるメタデータは、高々数キロバイト程度であることが普通である。メタデータなど映像を伴わないデータを取り扱う場合、1つのHDDに記録できる数は飛躍的に増大する。これは、アクセス数を計測するコストが増大するという問題となる。However, in the measurement method using the number of accesses to a file or area, the measurement cost increases in proportion to the increase in the number of files or areas. For example, in recent years, HDD capacity of over 1 terabyte has appeared. In a digital broadcast program, about 30 gigabytes are consumed for one 30-minute program, and about 200 programs can be recorded on one HDD. However, so-called metadata such as program information is usually several kilobytes at most. When handling data such as metadata that does not involve video, the number that can be recorded on a single HDD increases dramatically. This becomes a problem that the cost of measuring the number of accesses increases.

領域に対するアクセス数についても、領域を大きく分割すると領域の使用効率が悪化し、領域を細かく分割すると、領域のアクセス数の計測コストが増大するという問題となる。また、ファイルに対するアクセス回数の計測方法についても、本質的な問題がある。例えば、HDD上のある特定領域に対するアクセスが著しく増大した場合でも、HDD上のキャッシュにヒットした場合は、HDDの磁気記録部分に対する物理的なアクセスは発生しない。アクセス数の計測はHDDを使用する装置で実現する構成が最も簡易であるが、HDDのキャッシュを考慮すると、アクセス数の計測はHDD装置自体に組み込む必要が生ずる。   As for the number of accesses to an area, the use efficiency of the area deteriorates when the area is divided largely, and the measurement cost of the access number of the area increases when the area is divided finely. There is also an essential problem with the method of measuring the number of accesses to a file. For example, even when the access to a specific area on the HDD is remarkably increased, the physical access to the magnetic recording portion of the HDD does not occur when the cache on the HDD is hit. The number of accesses can be easily measured by a device that uses an HDD. However, considering the cache of the HDD, the number of accesses needs to be incorporated into the HDD device itself.

このため、アクセス数の計測コストを低くするか、アクセス数を用いずに移動するデータおよび移動先領域を算出することにより、HDDのアクセス回数を平準化することが課題となる。   For this reason, it becomes a problem to equalize the number of accesses to the HDD by reducing the cost of measuring the number of accesses or calculating the data to be moved and the destination area without using the number of accesses.

なお、本課題はフラッシュメモリにも適用できる。フラッシュメモリは、半導体であり機械駆動部分は無いが、書き込み回数に制限がある。つまり、同一領域へのアクセスが集中すると、故障することになる。このため、メモリへのアクセス回数を平準化することが課題となる。   This problem can also be applied to flash memory. A flash memory is a semiconductor and has no mechanical drive part, but has a limited number of times of writing. In other words, if access to the same area is concentrated, a failure occurs. Therefore, leveling the number of accesses to the memory becomes an issue.

解決しようとする課題は、HDDなどの記録装置において、簡便な方式でアクセス回数を平準化することである。   The problem to be solved is to level the number of accesses in a simple manner in a recording device such as an HDD.

本発明は、記録媒体をアクセス回数が高い領域とそれ以外の領域に分け、アクセス回数が高い領域を定期的に他の領域に移動することにより、アクセス回数を平準化することを最も主要な特徴とする。   The main feature of the present invention is that the number of accesses is leveled by dividing the recording medium into an area having a high access frequency and an area other than that and periodically moving the area having a high access frequency to another area. And

本発明の記録装置は、領域へのアクセス回数が平準化されるため、特定領域へのアクセス回数の偏りによる故障可能性を低減させるという効果がある。   The recording apparatus of the present invention has the effect of reducing the possibility of failure due to the uneven number of accesses to a specific area because the number of accesses to the area is leveled.

記録媒体上に予め高アクセス領域を設け、定期的もしくはアクセス数の閾値を超えた場合などのトリガにより、ランダムアクセス用領域を他の領域へ移動することにより、媒体上の使用数を平準化して故障率を下げるという目的を、簡易な構成で実現した。 By setting a high access area on the recording medium in advance and moving the random access area to another area periodically or when a threshold is exceeded, the number of uses on the medium is leveled. The purpose of lowering the failure rate was realized with a simple configuration.

図1は、実施例1における本発明装置の全体図である。100はHDDを使用する装置であり、例えばHDDレコーダやパーソナルコンピュータ、HDDカーナビゲーションシステムなどである。101は平準化用LBA(Logical Block Addressing)管理部であり、主に本発明の特徴である高アクセス領域のセクタ番号を管理する。なお、LBAとはセクタに番号をつけて管理する方式である。   FIG. 1 is an overall view of a device of the present invention in Example 1. Reference numeral 100 denotes a device that uses an HDD, such as an HDD recorder, a personal computer, or an HDD car navigation system. Reference numeral 101 denotes a leveling LBA (Logical Block Addressing) management unit, which mainly manages the sector number of the high access area, which is a feature of the present invention. LBA is a method of managing by assigning numbers to sectors.

なお、本発明では外周から順番にセクタ番号を振り付けているが、他の方式でも良い。102は移動制御部であり、高アクセス領域を他の領域に移動する際の制御を行う。103は装置100が一般的に有する104および105以外の機能である。104はHDDコントローラであり、HDD105を制御する。なお、101および102はハードウェアもしくはソフトウェアのどちらで実装されても良い。   In the present invention, sector numbers are assigned in order from the outer periphery, but other methods may be used. Reference numeral 102 denotes a movement control unit that performs control when moving the high access area to another area. Reference numeral 103 denotes functions other than 104 and 105 which the apparatus 100 generally has. An HDD controller 104 controls the HDD 105. Note that 101 and 102 may be implemented by either hardware or software.

図2は、本発明におけるHDDの内部構成図である。200はHDDである。201は磁気ヘッド202を制御するアクチュエータである。203は軸受けであり、211から213で示される磁気ディスクの回転の中心となる。211は高アクセス領域である。高アクセス領域とは、読み取りや書き込みの頻度や回数が高いことが予めわかっている領域である。例えば、データベース用として確保している領域などが挙げられる。212は移動用バッファ領域であり、高アクセス領域を移動する際のみに使用される。213はその他の領域であり、映像データや音楽データなど、211に書き込むデータ以外のデータ用の領域である。   FIG. 2 is an internal configuration diagram of the HDD in the present invention. 200 is an HDD. An actuator 201 controls the magnetic head 202. Reference numeral 203 denotes a bearing, which is the center of rotation of the magnetic disk indicated by 211 to 213. 211 is a high access area. The high access area is an area that is known in advance to have a high frequency and frequency of reading and writing. For example, an area reserved for a database can be used. A moving buffer area 212 is used only when moving in the high access area. Reference numeral 213 denotes another area, which is an area for data other than data to be written in 211, such as video data and music data.

図3は、図2の記録領域211から213のセクタ番号を管理する表である。表は領域301と開始セクタ302、終了セクタ303から構成される。例えば、高アクセス領域211は表中304のレコードであり、開始セクタ番号は1、終了セクタ番号は2097152となる。移動用バッファ領域212はレコード305に対応する。その他領域213はレコード306に対応する。なお、各領域が2領域以上存在する場合など、本表のレコード数を拡張しても良い。   FIG. 3 is a table for managing the sector numbers of the recording areas 211 to 213 in FIG. The table includes an area 301, a start sector 302, and an end sector 303. For example, the high access area 211 is the record 304 in the table, the start sector number is 1, and the end sector number is 2097152. The movement buffer area 212 corresponds to the record 305. Other area 213 corresponds to record 306. Note that the number of records in this table may be expanded when there are two or more areas.

図4は、本発明の特徴である高アクセス領域の移動を完了した状態のHDDの内部構成図である。400は200と同一のHDDである。高アクセス領域211は、領域412へ移動している。また、移動用バッファ領域212は、領域413へ移動している。なお、領域413の確保により領域413に元々存在していたデータは、領域411へ移動している。領域414はその他の領域である。   FIG. 4 is an internal configuration diagram of the HDD in a state where the movement of the high access area, which is a feature of the present invention, is completed. 400 is the same HDD as 200. The high access area 211 has moved to the area 412. Further, the movement buffer area 212 has moved to the area 413. Note that the data that originally existed in the area 413 has been moved to the area 411 by securing the area 413. A region 414 is another region.

次に、HDDの記録領域を図2から図4へ変化させる本発明の基本フローを図5で説明する。なお、本処理の開始は、工場などで行う初期化工程を開始時点としているが、ユーザによる初期化動作指示などにより開始してもよい。処理が開始されると、ディスクをフォーマットし、パーティションを設定する(501)。パーティションは、少なくとも高アクセス領域211および移動用バッファ領域212およびその他の領域から構成される。   Next, the basic flow of the present invention for changing the recording area of the HDD from FIG. 2 to FIG. 4 will be described with reference to FIG. Note that this process is started at an initialization process performed in a factory or the like, but may be started by an initialization operation instruction or the like by a user. When the process is started, the disk is formatted and a partition is set (501). The partition includes at least a high access area 211, a movement buffer area 212, and other areas.

高アクセス領域のパーティションサイズは、通常高アクセス領域の設計時点で算出され、算出された値は103に存在するパーティション作成機能が保持する。なお、一度作成したパーティションサイズを超える領域を使用したい場合は、パーティションを拡大する一般的な方法を適用しても良い。その場合、変更したパーティションに関するセクタ番号が、平準化用セクタ番号テーブルに反映される。また、ファイルシステムのマッピングテーブルにも反映してよい。移動用バッファ領域のパーティションサイズは、高アクセス領域のパーティションサイズもしくはそれ以上とする。   The partition size of the high access area is usually calculated at the time of designing the high access area, and the calculated value is held by the partition creation function existing in 103. In addition, when it is desired to use an area exceeding the partition size once created, a general method for enlarging the partition may be applied. In this case, the sector number related to the changed partition is reflected in the leveling sector number table. It may also be reflected in the file system mapping table. The partition size of the moving buffer area is set to be the partition size of the high access area or larger.

次に、高アクセス領域をアドレス管理部に設定する。アドレス管理部では、後述する図4の平準化用セクタ番号テーブルに高アクセス領域のセクタ番号を設定する(502)。次に、移動制御部は、移動用バッファを初期化すると共に、平準化用セクタ番号テーブルに移動用バッファ領域のセクタ番号を設定する(503)。以上で準備処理は終了し、平準化処理の開始トリガを待つ(504)。平準化処理の開始トリガは、HDDの稼働時間を計測するタイマにより定期的に起動してもよい。   Next, the high access area is set in the address management unit. The address management unit sets the sector number of the high access area in the leveling sector number table of FIG. 4 described later (502). Next, the movement control unit initializes the movement buffer and sets the sector number of the movement buffer area in the leveling sector number table (503). Thus, the preparation process is completed, and a leveling process start trigger is awaited (504). The start trigger of the leveling process may be periodically activated by a timer that measures the operation time of the HDD.

また、HDDのアクセス数を計測し、閾値を超えた場合に起動しても良い。また、高アクセス領域を使用するソフトウェアもしくはハードウェアが移動管理部に通知することで起動しても良い。また、カレンダーと時計を利用して、定期的に起動しても良い。トリガが起動すると、移動制御部はHDDコントローラ104もしくはHDDを使用するその他機能103に指示して高アクセス領域へのアクセスを停止し、高アクセス領域のデータを移動用バッファ212へコピーする(505)。   Alternatively, the number of accesses to the HDD may be measured, and activation may be performed when the threshold value is exceeded. Alternatively, software or hardware that uses the high access area may be activated by notifying the movement management unit. Moreover, you may start regularly using a calendar and a clock. When the trigger is activated, the movement control unit instructs the HDD controller 104 or other function 103 using the HDD to stop access to the high access area and copies the data in the high access area to the movement buffer 212 (505). .

次に、505で移動元となった高アクセス領域211のデータを消去する(506)。なお、ステップ507で移動元の高アクセス領域211がすべて上書きされるのであれば、ステップ506は無くても良い。次に、移動制御部102はHDDコントローラ104もしくはHDDを使用するその他機能103に指示して記録領域のその他領域213へのアクセスを停止し、新たに移動用バッファとして確保する領域413のデータを505で移動元となった高アクセス領域411へコピーする(507)。   Next, the data in the high access area 211 that is the migration source is deleted in 505 (506). Note that step 506 may be omitted if all of the migration source high access area 211 is overwritten in step 507. Next, the movement control unit 102 instructs the HDD controller 104 or the other function 103 using the HDD to stop access to the other area 213 of the recording area, and newly stores the data in the area 413 to be reserved as a movement buffer 505. The file is copied to the high access area 411 that is the movement source (507).

なお、新たに移動用バッファとして確保する領域413のサイズは、高アクセス領域412のサイズもしくはそれ以上である。また、移動用バッファとして確保する領域は、高アクセス領域として使用したことが無い領域とする。例えば、常に外周から内周へ順に確保していけばよい。最内周を使用している場合は、最外周を確保する。次に、移動後の各領域の開始セクタ番号、終了セクタ番号を平準化用セクタ番号テーブルに反映させるとともに、その他機能103で使用するセクタ番号を振りなおす(508)。   Note that the size of the area 413 newly reserved as a movement buffer is equal to or larger than the size of the high access area 412. Further, the area secured as the movement buffer is an area that has never been used as a high access area. For example, it is only necessary to always ensure the order from the outer periphery to the inner periphery. When using the innermost circumference, secure the outermost circumference. Next, the start sector number and end sector number of each area after movement are reflected in the leveling sector number table, and the sector numbers used in the other function 103 are reassigned (508).

本処理は、一般的にファイルシステムが行うセクタ番号へのマッピングを、新しいセクタ番号に変更する処理である。なお、本マッピング変更は、HDDを使用するソフトウェアが明示的に行っても良い。ステップ508が終了すると、ステップ502を実行する。なお、本例では、外側に高アクセス領域、内側に移動用バッファ領域を確保したが、逆でも良い。その場合は、上記高アクセス領域と移動用バッファ領域は逆の位置として使用する。また、移動用バッファ領域は固定領域として確保しても良い。その場合、例えば最内周付近に移動用バッファ領域を設ける。   This process is a process of changing the mapping to a sector number generally performed by the file system to a new sector number. This mapping change may be explicitly performed by software using the HDD. When step 508 ends, step 502 is executed. In this example, the high access area is secured on the outside and the movement buffer area is secured on the inside, but the reverse is also possible. In this case, the high access area and the movement buffer area are used as opposite positions. The movement buffer area may be secured as a fixed area. In this case, for example, a moving buffer area is provided near the innermost periphery.

本発明を適用する具体例としては、HDDレコーダが挙げられる。HDDレコーダの映像用領域としてその他領域213を割り当てる。また、ランダムアクセスを頻繁に行うデータベース用領域として、高アクセス領域211を割り当てる。移動トリガは初回使用日から一ヶ月ごとに1回、AM1:30に起動する。例えば、HDDレコーダの容量が1テラバイトであり、データベース領域が10ギガバイトであるとすると、100回移動処理が可能となる。すると、8年以上は続けて1ヶ月以上、同一高アクセス領域を使用しないこととなり、HDDの故障率が低減する。   A specific example to which the present invention is applied is an HDD recorder. Other area 213 is allocated as a video area of the HDD recorder. Further, the high access area 211 is allocated as a database area where random access is frequently performed. The movement trigger is activated at AM 1:30 once a month from the first use date. For example, assuming that the capacity of the HDD recorder is 1 terabyte and the database area is 10 gigabytes, the migration process can be performed 100 times. Then, the same high access area will not be used for 8 months or more for 1 month or more, and the failure rate of the HDD will be reduced.

以上から、本発明により、簡易な方法でHDDのアクセス数を平準化することができ、故障率を低減することができる。   As described above, according to the present invention, the number of accesses to the HDD can be leveled by a simple method, and the failure rate can be reduced.

実施例2は、実施例1でHDDの外部に存在した機能をHDDに取り込んだものである。図6は、実施例2における本発明装置の全体図である。600はHDDである。601はHDDへの接続インタフェースである。602はセクタアドレス変換部である。セクタアドレス変換部では、本HDDを使用する装置が、平準化処理に伴うセクタ番号の変更を気にしなくてもよいよう、セクタアドレスを変換する機能を持つ。603は移動制御部であり、102と同様の機能を持つ。604はコントローラであり、一般的なHDD内蔵のコントローラと同様である。605はアクチュエータ等機械部分である。   In the second embodiment, the function existing outside the HDD in the first embodiment is taken into the HDD. FIG. 6 is an overall view of the device of the present invention in the second embodiment. 600 is an HDD. Reference numeral 601 denotes a connection interface to the HDD. Reference numeral 602 denotes a sector address conversion unit. The sector address conversion unit has a function of converting a sector address so that a device using this HDD does not have to worry about the change of the sector number accompanying the leveling process. Reference numeral 603 denotes a movement control unit, which has the same function as 102. Reference numeral 604 denotes a controller, which is similar to a general HDD built-in controller. Reference numeral 605 denotes a mechanical part such as an actuator.

本実施例においては、基本フローは図5と同様である。ただし、移動トリガはインタフェース601を通じて移動制御部603に通知されるか、移動制御部が本HDDへのアクセス数やアクセス時間を用いてトリガを起動する、HDDに内蔵する時計やカレンダーなどを用いて定期的にトリガを起動するなどでもよい。   In this embodiment, the basic flow is the same as in FIG. However, the movement trigger is notified to the movement control unit 603 through the interface 601, or the movement control unit starts the trigger using the number of accesses to the HDD and the access time, using a clock or a calendar built in the HDD. A trigger may be activated periodically.

図7はセクタアドレス変換部602が行うセクタアドレス変換を示している。700はインタフェース601からHDDを見た場合の領域構成である。高アクセス領域711、移動用バッファ領域712、その他領域713から構成される。720は、セクタアドレス変換によって変換された、実際のディスク上の領域構成である。   FIG. 7 shows sector address conversion performed by the sector address conversion unit 602. Reference numeral 700 denotes an area configuration when the HDD is viewed from the interface 601. A high access area 711, a movement buffer area 712, and other areas 713 are formed. Reference numeral 720 denotes an area configuration on an actual disk converted by sector address conversion.

例えば、高アクセス領域711にインタフェース601を介してアクセスすると、アドレス変換部602で741のように変換され、領域722にアクセスする。同様にその他領域713にアクセスすると、アドレス変換部602で743のように変換され、領域721および724にアクセスする。なお、HDDで平準化用移動処理を行うため、領域712にアクセスする必要はない。   For example, when the high access area 711 is accessed via the interface 601, the address conversion unit 602 converts it as 741 and accesses the area 722. Similarly, when the other area 713 is accessed, the address conversion unit 602 converts it as 743 and accesses the areas 721 and 724. Note that since the leveling movement process is performed by the HDD, it is not necessary to access the area 712.

以上のような構成にすることにより、HDD単体と簡単な移動トリガの通知により、本発明の効果を得ることができる。   With the configuration as described above, the effect of the present invention can be obtained by a single HDD and a simple movement trigger notification.

実施例3は、実施例1においてHDDで実現した機能をフラッシュに適用した例である。図8は本発明装置の実施例3の全体図である。801から803はソフトウェアもしくはハードウェアのいずれで実現しても良い。801はフラッシュメモリのアクセスインタフェースである。802はアドレス変換部であり、801のインタフェースからのアクセスにおいて図7のようなアドレス変換を意識させないマッピングテーブルを持つ。803は移動制御部である。804はフラッシュメモリを駆動する制御部である。805はフラッシュメモリである。   The third embodiment is an example in which the function realized by the HDD in the first embodiment is applied to a flash. FIG. 8 is an overall view of Embodiment 3 of the apparatus of the present invention. 801 to 803 may be realized by either software or hardware. Reference numeral 801 denotes a flash memory access interface. Reference numeral 802 denotes an address conversion unit, which has a mapping table that does not make address conversion conscious as shown in FIG. Reference numeral 803 denotes a movement control unit. A control unit 804 drives the flash memory. Reference numeral 805 denotes a flash memory.

本実施例においては、基本フローは図5と同様である。ただし、移動トリガはインタフェース801を通じて移動制御部803に通知される。   In this embodiment, the basic flow is the same as in FIG. However, the movement trigger is notified to the movement control unit 803 through the interface 801.

図9は、フラッシュメモリ上の領域構成図である。900はフラッシュメモリ805である。901は高アクセス領域であり、902は移動用バッファ領域、903はその他の領域である。移動処理507で確保する移動用バッファ領域は、902の直下の領域903から確保する。   FIG. 9 is an area configuration diagram on the flash memory. Reference numeral 900 denotes a flash memory 805. Reference numeral 901 denotes a high access area, reference numeral 902 denotes a movement buffer area, and reference numeral 903 denotes other areas. The movement buffer area secured by the movement process 507 is secured from the area 903 immediately below 902.

なお、フラッシュメモリは書き換え回数に制限があるため、通常書き込み時に同一の領域へ書き込まないような処理が実行されている。このような処理を行うと、フラッシュメモリ上の全領域に高アクセスデータが散らばることになる。よって、本方式では、高アクセス領域のメモリ上の存在箇所を901に纏める。901内で同一領域への書き込みを防止する従来の仕組みを使用しても良い。   Since the flash memory has a limited number of rewrites, a process that does not write to the same area during normal writing is performed. When such processing is performed, high access data is scattered over the entire area of the flash memory. Therefore, in this method, the locations in the memory of the high access area are grouped into 901. A conventional mechanism for preventing writing to the same area in 901 may be used.

本方式を用いると、高アクセスデータが散らばらず、簡易な仕組みで高速にランダムアクセスを提供することができる。例えば、901の領域を大きなブロックとして読み出し、揮発メモリ上においておけば、アクセスは高速になる。必要時にフラッシュメモリへ書き出せばよい。   By using this method, high access data is not scattered and random access can be provided at high speed with a simple mechanism. For example, if the area 901 is read out as a large block and placed on the volatile memory, the access becomes faster. Write to flash memory when necessary.

本発明装置の構成図である。It is a block diagram of this invention apparatus. 高アクセス領域の移動前の割り当てを示す図である。It is a figure which shows the allocation before the movement of a high access area | region. 各領域の開始セクタおよび終了セクタを示す図である。It is a figure which shows the start sector and end sector of each area | region. 高アクセス領域の移動後の領域の割り当てを示す図である。It is a figure which shows the allocation of the area | region after the movement of a high access area | region. 本発明の基本フローである。It is a basic flow of the present invention. HDDにセクタアドレス変換部と移動制御部を実装した場合の構成図である。It is a block diagram at the time of mounting a sector address conversion part and a movement control part in HDD. 仮想的な領域と実際の領域のマッピングを示す図である。It is a figure which shows mapping of a virtual area | region and an actual area | region. フラッシュメモリに適用した場合の構成図である。It is a block diagram at the time of applying to a flash memory. フラッシュメモリ上の領域の割り当てを示す図である。It is a figure which shows the allocation of the area | region on flash memory.

符号の説明Explanation of symbols

100 HDDを使用する装置
101 平準化用LBA管理部
102 移動制御部
103 HDDを使用する装置のその他機能部
104 HDDコントローラ
105 HDD
100 Device using HDD 101 Leveling LBA management unit 102 Migration control unit 103 Other function unit of device using HDD 104 HDD controller 105 HDD

Claims (9)

データを読み書きする機能を有する記録装置であって、
アクセスの頻度が高いデータを記録する高アクセス領域を設け、
前記高アクセス領域以外の領域から、前記高アクセス領域と同じかそれ以上の大きさの領域を確保する手段と、
前記高アクセス領域の前記データを、確保した前記領域にコピーする手段と、
確保した前記領域に存在するデータを、前記高アクセス領域であった領域にコピーする手段と、
コピー開始のトリガを与える手段と、
コピーにより変更される前記高アクセス領域のアドレスを変更する手段と、を備え、
前記高アクセス領域の前記データを、確保した前記領域にコピーする前記手段は、
アドレスを変更する前記手段により変更されたアドレスによって示される前記高アクセス領域の前記データを、該高アクセス領域以外の領域であって、予め定められた所定の順序で指定される領域に、順次コピーすることを特徴とする記録装置。
A recording device having a function of reading and writing data,
Provide a high-access area to record frequently accessed data ,
From a region other than the high access area, and means for securing the area of the same or greater than the size of said high access area,
The data of the high access area, and means for copying to the area secured,
Means for copying data existing in the secured area to the area that was the high access area;
Means for giving a trigger to start copying;
Means for changing an address of the high access area changed by copying,
The means for copying the data in the high access area to the reserved area,
The data in the high access area indicated by the address changed by the means for changing the address is sequentially copied to an area other than the high access area and designated in a predetermined order. A recording apparatus.
請求項1に記載の記録装置であって、
移動用バッファ領域を設け、
前記高アクセス領域のデータを、確保した前記領域にコピーする代わりに、前記移動用バッファ領域にコピーし、確保した前記領域に存在するデータを前記高アクセス領域であった領域にコピーした後に、前記移動用バッファのデータを、確保した前記領域にコピーする手段を有することを特徴とする記録装置。
The recording apparatus according to claim 1,
Provide a buffer area for movement,
Instead of copying the data in the high access area to the reserved area, the data is copied to the migration buffer area, and the data existing in the reserved area is copied to the area that was the high access area. A recording apparatus comprising means for copying data in a movement buffer to the reserved area.
請求項1または2に記載の記録装置であって、前記コピー開始のトリガを与える手段は、所定の時間毎にトリガを与える手段であることを特徴とする記録装置。 3. The recording apparatus according to claim 1, wherein the means for giving a copy start trigger is a means for giving a trigger every predetermined time. 請求項1または2に記載の記録装置であって、前記コピー開始のトリガを与える手段は、前記高アクセス領域への読み書きの回数が設定値を超えたことを検出した場合にトリガを与える手段であることを特徴とする記録装置。 3. The recording apparatus according to claim 1, wherein the means for giving a copy start trigger is a means for giving a trigger when it is detected that the number of times of reading and writing to the high access area exceeds a set value. There is a recording apparatus. 請求項1から4のいずれか一項記載の記録装置であって、ピーにより変更される前記高アクセス領域のアドレスを変更する前記手段は、ファイルシステムのマッピングテーブルを変更する手段であることを特徴とする記録装置。 A recording apparatus according to any one of claims 1 to 4, wherein said means for changing the address of the high access area is changed by the copy is to be a means for changing the mapping table of the file system A recording apparatus. 請求項1から5のいずれか一項記載の記録装置であって、前記コピー開始のトリガは、該記録装置の外部の装置から与えられることを特徴とする記録装置。 6. The recording apparatus according to claim 1, wherein the copy start trigger is given from an apparatus external to the recording apparatus. 請求項1から6のいずれか一項記載の記録装置であって、該記録装置はハードディスクドライブであることを特徴とする記録装置。 The recording apparatus according to claim 1, wherein the recording apparatus is a hard disk drive. 請求項1から6のいずれか一項記載の記録装置であって、該記録装置はフラッシュメモリであることを特徴とする記録装置。 The recording apparatus according to claim 1, wherein the recording apparatus is a flash memory. データを読み書きする記録装置における記録方法であって、
アクセスの頻度が高いデータを記録する高アクセス領域を設け、
前記高アクセス領域以外の領域から、前記高アクセス領域と同じかそれ以上の大きさの領域を確保し、
前記高アクセス領域の前記データを、確保した前記領域にコピーし、
確保した前記領域に存在するデータを、前記高アクセス領域であった領域にコピーし、
コピーにより変更される前記高アクセス領域のアドレスを変更し、
変更された前記アドレスによって示される前記高アクセス領域の前記データを、該高アクセス領域以外領域であって、予め定められた順序で指定される領域に、順次コピーすることを特徴とする記録方法。
A recording method in a recording apparatus for reading and writing data,
Provide a high-access area to record frequently accessed data,
From an area other than the high access area, ensure an area of the same size or larger than the high access area
The data of the high access area, copy it to the area secured,
Copy the data present in the secured area to the area that was the high access area,
Change the address of the high access area that is changed by copying,
A recording method comprising : sequentially copying the data in the high access area indicated by the changed address to an area other than the high access area and designated in a predetermined order .
JP2007182748A 2007-07-12 2007-07-12 Recording apparatus and recording method Active JP5039463B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007182748A JP5039463B2 (en) 2007-07-12 2007-07-12 Recording apparatus and recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007182748A JP5039463B2 (en) 2007-07-12 2007-07-12 Recording apparatus and recording method

Publications (2)

Publication Number Publication Date
JP2009020955A JP2009020955A (en) 2009-01-29
JP5039463B2 true JP5039463B2 (en) 2012-10-03

Family

ID=40360473

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007182748A Active JP5039463B2 (en) 2007-07-12 2007-07-12 Recording apparatus and recording method

Country Status (1)

Country Link
JP (1) JP5039463B2 (en)

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0764828A (en) * 1993-08-26 1995-03-10 Nec Corp Disk load distribution device
JP3565583B2 (en) * 1994-08-31 2004-09-15 株式会社日立コミュニケーションテクノロジー Semiconductor file storage device
JP2000172538A (en) * 1998-12-03 2000-06-23 Ricoh Co Ltd Image forming device
JP2000285688A (en) * 1999-04-01 2000-10-13 Mitsubishi Electric Corp Non-volatile semiconductor memory
JP2001283528A (en) * 2000-03-31 2001-10-12 Matsushita Electric Ind Co Ltd Data recorder, medium and information aggregate
JP2001357636A (en) * 2000-06-15 2001-12-26 Hitachi Ltd Auxiliary storage device
JP2003271439A (en) * 2002-03-13 2003-09-26 Seiko Epson Corp Information processing device and program
JP4096660B2 (en) * 2002-08-22 2008-06-04 カシオ計算機株式会社 Data recording control device and program
ATE372578T1 (en) * 2002-10-28 2007-09-15 Sandisk Corp AUTOMATIC WEAR COMPENSATION IN A NON-VOLATILE STORAGE SYSTEM
JP3859073B2 (en) * 2003-01-08 2006-12-20 船井電機株式会社 Hard disk recorder
JP2004326539A (en) * 2003-04-25 2004-11-18 Fuji Photo Film Co Ltd Method for recording for recording medium
JP2005259284A (en) * 2004-03-12 2005-09-22 Denso Corp Car navigation apparatus
JP4240496B2 (en) * 2005-10-04 2009-03-18 インターナショナル・ビジネス・マシーンズ・コーポレーション Apparatus and method for access control

Also Published As

Publication number Publication date
JP2009020955A (en) 2009-01-29

Similar Documents

Publication Publication Date Title
US10761777B2 (en) Tiered storage using storage class memory
US7965465B2 (en) Techniques for storing shingle blocks in a cache memory using a data storage device
US10381040B1 (en) Dynamic hybrid shingled magnetic recording device
US8719632B2 (en) Implementing enhanced EPO protection for indirection data
JP5392788B2 (en) Object-based storage device with storage medium having variable medium characteristics
US6408357B1 (en) Disk drive having a cache portion for storing write data segments of a predetermined length
US20100325352A1 (en) Hierarchically structured mass storage device and method
CN107526689B (en) Read cache management
AU2015209199A1 (en) Garbage collection and data relocation for data storage system
JP2012533112A (en) System and method for tiered non-volatile storage
JP2011238340A (en) Disc drive
EP3292463B1 (en) Media region management for data storage device
JP2007193883A (en) Data recording device and method, data reproducing device and method, and data recording and reproducing device and method
US10223277B2 (en) SMR drive with multi-level write-cache for high random-write performance
US8862856B2 (en) Implementing remapping command with indirection update for indirected storage
JP4604806B2 (en) Recording device
US20110283044A1 (en) Device and method for reliable data storage
JP4791807B2 (en) Audio video data read / write method and system in personal computer
JP5039463B2 (en) Recording apparatus and recording method
US9236066B1 (en) Atomic write-in-place for hard disk drives
US9785563B1 (en) Read command processing for data storage system based on previous writes
US11275684B1 (en) Media read cache
US20150138667A1 (en) Magnetic disk device
US11657847B1 (en) Dynamic track interference write counting for magnetic disks
JP2008117491A (en) Recording device, recording method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110412

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110610

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20111108

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120105

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: 20120612

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: 20120709

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150713

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 5039463

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150713

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250