JP2011141645A - Information processing apparatus, method and program for processing access - Google Patents
Information processing apparatus, method and program for processing access Download PDFInfo
- Publication number
- JP2011141645A JP2011141645A JP2010001022A JP2010001022A JP2011141645A JP 2011141645 A JP2011141645 A JP 2011141645A JP 2010001022 A JP2010001022 A JP 2010001022A JP 2010001022 A JP2010001022 A JP 2010001022A JP 2011141645 A JP2011141645 A JP 2011141645A
- Authority
- JP
- Japan
- Prior art keywords
- writing
- sectors
- data
- block
- storage device
- 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.)
- Withdrawn
Links
- 230000010365 information processing Effects 0.000 title claims description 51
- 238000000034 method Methods 0.000 title description 16
- 238000003672 processing method Methods 0.000 claims description 5
- 238000005259 measurement Methods 0.000 claims description 4
- 238000007726 management method Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
【課題】情報記憶装置に対する書込み時間を短縮できるようにする。
【解決手段】情報記録装置21は、各ブロックが含むセクタ数を記憶しており、複数のセクタが対応付けられたクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として書込指定するファイルシステム処理部13bと、情報記録装置21から各ブロックが含むセクタ数を取得し、取得した各ブロックが含むセクタ数に基づいて、書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの情報記憶装置21への書込みを同一の書き込みタイミングで行うドライバー処理部13cとを有するように構成する。
【選択図】図2The writing time for an information storage device can be shortened.
An information recording apparatus 21 stores the number of sectors included in each block, manages a file in units of clusters each associated with a plurality of sectors, and manages one or more files to be written. The number of sectors included in each block is acquired from the file system processing unit 13b that designates writing a plurality of consecutive sectors corresponding to the cluster as a write target and the information recording device 21, and the number of sectors included in each acquired block is acquired. And a driver processing unit 13c for writing data to the information storage device 21 for a plurality of sectors belonging to the same block in a plurality of consecutive sectors designated for writing at the same writing timing. Constitute.
[Selection] Figure 2
Description
本発明は、最小アクセス単位としてのセクタを複数含むブロックを単位としてデータの消去が可能な情報記憶装置に対してアクセスを行う情報処理装置等に関する。 The present invention relates to an information processing apparatus for accessing an information storage device capable of erasing data in units of blocks each including a plurality of sectors as minimum access units.
例えば、PC(Personal Computer)等の情報処理装置は、ハードディスク、フラッシュメモリ等の情報記憶装置から所望のデータを読出したり、或いは、情報記憶装置に所望のデータを書込んだりしている。このような情報処理装置においては、例えば、情報記憶装置に格納されているデータをユーザーがファイルとして取扱えるようにするためにファイルシステムが構築されているものがある。このファイルシステムにおいては、データを所定の単位(アロケーションユニット)により管理しており、例えば、FAT(File Allocation Table)ファイルシステムにおいては、アロケーションユニットの一例としてのクラスタを単位として情報処理装置と情報記憶装置との間のデータアクセスが行なわれる。クラスタには、情報記憶装置の最小アクセス単位であるセクタが複数対応付けられている。 For example, an information processing device such as a PC (Personal Computer) reads desired data from an information storage device such as a hard disk or a flash memory, or writes desired data to the information storage device. Among such information processing apparatuses, for example, there is one in which a file system is constructed so that a user can handle data stored in an information storage device as a file. In this file system, data is managed in a predetermined unit (allocation unit). For example, in a FAT (File Allocation Table) file system, an information processing apparatus and an information storage are stored in units of clusters as an example of an allocation unit. Data access to and from the device is performed. A cluster is associated with a plurality of sectors which are the minimum access unit of the information storage device.
情報記憶装置と、情報処理装置との間のデータアクセスの速度は、情報処理装置における処理時間に影響を与えるので、できるだけ速いことが要求されている。例えば、特許文献1には、ハードディスクの同一パーティションに、複数のクラスタサイズをもたせ、格納するデータの大きさに応じて、その大きさに見合ったクラスタへデータを格納させることにより、ディスク使用状況の無駄をなくし、アクセススピードを最適に保つことのできる技術が開示されている。また、特許文献2には、記録メディアの連続する空きクラスタ群を検索し、その空きクラスタ群のデータ記憶領域に所望のデータを連続して書込ませる技術が開示されている。また、特許文献3には、記録媒体の最小記録単位が連続して複数個からなるブロック単位の空き領域を検出し、ブロック単位の空き領域に情報信号を記録する技術が開示されている。
Since the speed of data access between the information storage device and the information processing device affects the processing time in the information processing device, it is required to be as fast as possible. For example, in Patent Document 1, a plurality of cluster sizes are provided in the same partition of a hard disk, and according to the size of data to be stored, data is stored in a cluster corresponding to the size of the data, thereby A technique that can eliminate waste and keep the access speed optimal is disclosed.
上記した特許文献1乃至特許文献3の技術によると、データのアクセス時間を短縮することができる。しかしながら、ファイルシステムにおけるクラスタを基準として、情報記憶装置への書込みをしているので、情報記憶装置の構成等により必ずしも効果的なものであるとはいえない場合がある。
例えば、情報記憶装置がSDカードのようなフラッシュメモリである場合には、ファイルシステムにおけるクラスタに対応する複数のセクタと、フラッシュメモリにおける最小消去単位であるブロックとの関係によって、以下のように適切な書込みが行なえない場合が生じるおそれがある。
図1(a)に示すように、ファイルシステムの各クラスタ(クラスタA、クラスタA+1、クラスタA+2)に対応付けられている複数のセクタが、フラッシュメモリにおける各ブロック(ブロックB、ブロックB+1、ブロックB+2)に含まれる複数のセクタに対応している場合には、各クラスタで管理するセクタのデータをブロックに書込む際には、各ブロックに対してデータを書込めばよいので、当該各ブロックに対するデータ消去を行い、当該ブロックに対象のデータを順次書込めばよい。
しかしながら、図1(b)に示すようにファイルシステムにおける各クラスタに対応する複数のセクタが、複数のブロックにまたがっている場合には、各クラスタ(例えば、クラスタC)で管理するデータをブロックに書込む際には、2つのブロック(ブロックD、ブロックD+1)に対して書込みを行なわなければならず、2つのブロックに対してデータ消去を行い、これらブロックにデータを書込まなければならず、引き続き、次のクラスタ(クラスタC+1)で管理するデータをブロックに書込む際には、2つのブロック(ブロックD+1、D+2)に対して書込みを行なわなければならず、2つのブロックに対してデータ消去を行い、これらブロックにデータを書込まなければならない。このように、複数のブロックの消去を行なわなければならず、更に、連続したクラスタを書込む際には、同一のブロックに対して複数回の重複したデータ消去を行なわなければならず、データの書込みが遅くなってしまう。
According to the techniques disclosed in Patent Documents 1 to 3, the data access time can be shortened. However, since writing to the information storage device is performed with reference to the cluster in the file system, it may not necessarily be effective depending on the configuration of the information storage device.
For example, when the information storage device is a flash memory such as an SD card, the following is appropriate depending on the relationship between a plurality of sectors corresponding to a cluster in the file system and a block that is a minimum erase unit in the flash memory. There is a risk that correct writing cannot be performed.
As shown in FIG. 1A, a plurality of sectors associated with each cluster (cluster A, cluster A + 1, cluster A + 2) of the file system are divided into blocks (block B, block B + 1, block B + 2) in the flash memory. ), The sector data managed by each cluster can be written to the block by writing the data for each block. It is only necessary to erase the data and sequentially write the target data to the block.
However, as shown in FIG. 1B, when a plurality of sectors corresponding to each cluster in the file system spans a plurality of blocks, the data managed by each cluster (for example, cluster C) is made into a block. When writing, two blocks (block D, block D + 1) must be written, two blocks must be erased, and data must be written to these blocks, Subsequently, when data to be managed in the next cluster (cluster C + 1) is written to the block, writing must be performed for two blocks (blocks D + 1 and D + 2), and data is erased for the two blocks. To write data to these blocks. In this way, a plurality of blocks must be erased. Further, when writing a continuous cluster, the same block must be erased a plurality of times, and data can be erased. Writing becomes slow.
本発明は、上記課題に鑑みなされたものであり、その目的は、情報記憶装置に対する書込み時間を短縮することのできる技術を提供することにある。 The present invention has been made in view of the above problems, and an object of the present invention is to provide a technique capable of shortening the writing time to the information storage device.
上記目的達成のため、本発明の第1の観点に係る情報処理装置は、最小アクセス単位としてのセクタを複数含むブロックを単位としてデータの消去が可能な情報記憶装置に対してアクセスを行う情報処理装置において、情報記録装置は、各ブロックが含むセクタ数を記憶しており、情報記録装置から各ブロックが含むセクタ数を取得する取得手段と、複数のセクタが対応付けられたクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として書込指定するファイル管理手段と、取得した各ブロックが含むセクタ数に基づいて、書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの前記情報記憶装置への書込みを同一の書き込みタイミングで行い、書込指定された連続するセクタの最後部における1以上のセクタに対応するブロックについて、全てのセクタが書込み指定されていない場合に、書込み指定されているセクタのデータを所定の記憶手段にキャッシュさせ、ファイル管理手段により次に書込指定されたセクタにより、ブロックの全てのセクタが揃った場合に、記憶手段にキャッシュさせているデータと、次に書込指定されたセクタのデータとを用いて、ブロックを含む1以上のブロックに対してデータを書込む書込制御手段とを有する。 To achieve the above object, an information processing apparatus according to the first aspect of the present invention accesses an information storage device capable of erasing data in units of blocks each including a plurality of sectors as minimum access units. In the apparatus, the information recording apparatus stores the number of sectors included in each block, and obtains a file in units of clusters in which a plurality of sectors are associated with an acquisition unit that acquires the number of sectors included in each block from the information recording apparatus. Based on the number of sectors included in each acquired block, and file management means for specifying a plurality of consecutive sectors corresponding to one or more clusters that manage files to be written as write targets Write data to the information storage device for a plurality of sectors belonging to the same block in a plurality of consecutive sectors designated for writing. If all the sectors are not specified for writing in the block corresponding to one or more sectors at the end of the consecutive sectors specified for writing, the data of the sector specified for writing is stored. When all sectors in the block are aligned by the sector specified for writing by the file management means and the next writing specified by the file management means, the data cached in the storage means and the next writing specified Write control means for writing data to one or more blocks including the block using sector data.
係る情報処理装置によると、情報記憶装置の同一のブロックに属する複数のセクタに対するデータ書込みが、同一のタイミングとなる(異なる書込みタイミングとならない)ので、ブロックへの書込み時に発生するブロックのデータ消去の回数を低減することができる。このため、情報処理装置へのデータの書込みが速くなり、書込み時間が短くなる。また、最初の書込指定されたセクタと、次に書込指定されたセクタが同一のブロックに属する場合に、それらをまとめて同一のブロックに書込むので、ブロックに対する書込み回数を低減することができ、書込み時に発生するブロックのデータ消去の回数を低減することができる。このため、情報処理装置へのデータの書込みが速くなり、書込み時間が短くなる。 According to such an information processing apparatus, data writing to a plurality of sectors belonging to the same block of the information storage device has the same timing (not different writing timings), so the data erasure of the block that occurs at the time of writing to the block The number of times can be reduced. For this reason, writing of data to the information processing apparatus becomes faster and writing time is shortened. In addition, when the first write-designated sector and the next write-designated sector belong to the same block, they are written together in the same block, so the number of times of writing to the block can be reduced. In addition, the number of times of data erasure of the block that occurs at the time of writing can be reduced. For this reason, writing of data to the information processing apparatus becomes faster and writing time is shortened.
また、上記情報処理装置において、ファイル管理手段により次に書込指定されたセクタにより、ブロックの全てのセクタが揃わなかった場合には、記憶手段にキャッシュさせているデータを用いて、ブロックを含む1以上のブロックに対してデータを書込むようにしてもよい。係る情報処理装置によると、同一のブロックに対する書込みが行われない場合に、キャッシュしていたデータを適切に情報処理装置にデータを書込むことができる。 Further, in the information processing apparatus, when all sectors of the block are not aligned due to the next sector designated for writing by the file management unit, the block is included using the data cached in the storage unit. Data may be written to one or more blocks. According to such an information processing apparatus, when writing to the same block is not performed, the cached data can be appropriately written into the information processing apparatus.
また、上記情報処理装置において、書込制御手段は、複数のブロックを単位として、情報記憶装置に対してデータを書込むようにしてもよい。係る情報処理装置によると、複数のブロックをまとめて情報記憶装置に書込むので、書込みの回数を減らすことができ、情報記憶装置へのデータの書込みが速くなる。 In the information processing apparatus, the write control unit may write data to the information storage device in units of a plurality of blocks. According to such an information processing apparatus, since a plurality of blocks are collectively written in the information storage device, the number of times of writing can be reduced, and writing of data into the information storage device is accelerated.
また、上記情報処理装置において、情報記憶装置に対して、異なるブロック数を単位として実際にデータの書込みを行い、書込んだ際に最速となるブロック数を判定する実測判定手段を更に有し、書込制御手段は、判定したブロック数を単位として、情報記憶装置に対してデータを書込むようにしてもよい。係る情報処理装置によると、情報記憶装置に対しての書込みにおいて、最速となる書込み単位を実際に測定して判定することができるので、適切なブロック数によるデータの書込みを行うことができ、情報記憶装置へのデータの書込みを速くすることができる。 The information processing apparatus further includes actual measurement determination means for actually writing data to the information storage device in units of different blocks, and determining the number of blocks that is the fastest when written, The write control means may write data to the information storage device in units of the determined number of blocks. According to the information processing apparatus, since it is possible to actually measure and determine the fastest writing unit in writing to the information storage device, data can be written with an appropriate number of blocks. Writing data to the storage device can be made faster.
また、上記目的達成のため、本発明の第2の観点に係るアクセス処理方法は、最小アクセス単位としてのセクタを複数含むブロックを単位としてデータの消去が可能な情報記憶装置に対してアクセスを行う情報処理装置によるアクセス処理方法において、情報記録装置は、各ブロックが含むセクタ数を記憶しており、情報処理装置の取得手段が、情報記録装置から各ブロックが含むセクタ数を取得する取得ステップと、情報処理装置のファイル管理手段が、複数のセクタを含むクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として書込指定するファイル管理ステップと、情報処理装置の書込制御手段が、書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの前記情報記憶装置への書込みを同一の書き込みタイミングで行い、書込指定された連続するセクタの最後部における1以上のセクタに対応するブロックについて、全てのセクタが書込み指定されていない場合に、書込み指定されているセクタのデータを所定の記憶手段にキャッシュさせ、ファイル管理手段により次に書込指定されたセクタにより、ブロックの全てのセクタが揃った場合に、記憶手段にキャッシュさせているデータと、次に書込指定されたセクタのデータとを用いて、ブロックを含む1以上のブロックに対してデータを書込む書込み制御ステップとを有する。係るアクセス処理方法によると、情報記憶装置の同一のブロックに属する複数のセクタに対するデータ書込みが、異なる書込みタイミングとならないので、ブロックへの書込み時に発生するブロックのデータ消去の回数を低減することができる。このため、情報処理装置へのデータの書込みが速くなり、書込み時間が短縮する。また、最初の書込指定されたセクタと、次に書込指定されたセクタが同一のブロックに属する場合に、それらをまとめて同一のブロックに書込むので、ブロックに対する書込み回数を低減することができ、書込み時に発生するブロックのデータ消去の回数を低減することができる。このため、情報処理装置へのデータの書込みが速くなり、書込み時間が短くなる。 In order to achieve the above object, the access processing method according to the second aspect of the present invention accesses an information storage device capable of erasing data in units of blocks including a plurality of sectors as minimum access units. In the access processing method by the information processing apparatus, the information recording apparatus stores the number of sectors included in each block, and the acquisition unit of the information processing apparatus acquires the number of sectors included in each block from the information recording apparatus; The file management unit of the information processing apparatus manages a file in units of clusters including a plurality of sectors, and manages a plurality of consecutive sectors corresponding to one or more clusters that manage a file to be written. A file management step for designating writing as a write control unit of the information processing device, and a plurality of consecutive sectors designated for writing Write data to a plurality of sectors belonging to one block to the information storage device at the same write timing, and all the blocks corresponding to one or more sectors at the end of consecutive sectors designated for writing are all When the sector is not designated for writing, the data of the sector designated for writing is cached in a predetermined storage means, and all sectors of the block are aligned by the sector designated for writing next by the file management means And a write control step of writing data to one or more blocks including the block using the data cached in the storage means and the data of the sector designated to be written next. According to such an access processing method, data writing to a plurality of sectors belonging to the same block of the information storage device does not have different write timings, so that the number of times of block data erasure that occurs when writing to the block can be reduced. . For this reason, writing of data to the information processing apparatus becomes faster, and writing time is shortened. In addition, when the first write-designated sector and the next write-designated sector belong to the same block, they are written together in the same block, so the number of times of writing to the block can be reduced. In addition, the number of times of data erasure of the block that occurs at the time of writing can be reduced. For this reason, writing of data to the information processing apparatus becomes faster and writing time is shortened.
また、上記目的達成のため、本発明の第3の観点に係るアクセス処理プログラムは、最小アクセス単位としてのセクタを複数含むブロックを単位としてデータの消去が可能な情報記憶装置に対してアクセスを行うコンピューターに実行させるアクセス処理プログラムであって、情報記録装置は、各ブロックが含むセクタ数を記憶しており、コンピューターを、情報記録装置から各ブロックが含むセクタ数を取得する取得手段と、複数のセクタを含むクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として書込指定するファイル管理手段と、取得した各ブロックが含むセクタ数に基づいて、書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの前記情報記憶装置への書込みを同一の書き込みタイミングで行い、書込指定された連続するセクタの最後部における1以上のセクタに対応するブロックについて、全てのセクタが書込み指定されていない場合に、書込み指定されているセクタのデータを所定の記憶手段にキャッシュさせ、ファイル管理手段により次に書込指定されたセクタにより、ブロックの全てのセクタが揃った場合に、記憶手段にキャッシュさせているデータと、次に書込指定されたセクタのデータとを用いて、ブロックを含む1以上のブロックに対してデータを書込む書込制御手段として機能させる。係るアクセス処理プログラムを実行するコンピューターによると、情報記憶装置の同一のブロックに属する複数のセクタに対するデータ書込みが、異なる書込みタイミングとならないので、ブロックへの書込み時に発生するブロックのデータ消去の回数を低減することができる。このため、情報処理装置へのデータの書込みが速くなり、書込み時間が短縮する。また、最初の書込指定されたセクタと、次に書込指定されたセクタが同一のブロックに属する場合に、それらをまとめて同一のブロックに書込むので、ブロックに対する書込み回数を低減することができ、書込み時に発生するブロックのデータ消去の回数を低減することができる。このため、情報処理装置へのデータの書込みが速くなり、書込み時間が短くなる。 In order to achieve the above object, an access processing program according to the third aspect of the present invention accesses an information storage device capable of erasing data in units of blocks each including a plurality of sectors as minimum access units. An access processing program to be executed by a computer, wherein the information recording device stores the number of sectors included in each block, and the acquisition means for acquiring the number of sectors included in each block from the information recording device; File management means for managing a file in units of clusters including sectors, and specifying a plurality of consecutive sectors corresponding to one or more clusters for managing a file to be written as a writing target Based on the number of sectors included in each block, the same block in multiple consecutive sectors specified for writing Write data to a plurality of sectors to the information storage device at the same write timing, and all sectors are designated for writing in blocks corresponding to one or more sectors at the end of consecutive designated sectors. If not, the data of the sector designated for writing is cached in a predetermined storage means, and when all sectors of the block are aligned by the sector designated for writing next by the file management means, the storage means Using the data cached and the data of the sector designated to be written next, it is made to function as a writing control means for writing data to one or more blocks including the block. According to a computer that executes such an access processing program, data writing to a plurality of sectors belonging to the same block of the information storage device does not have different write timings, so the number of times of block data erasure that occurs when writing to the block is reduced. can do. For this reason, writing of data to the information processing apparatus becomes faster, and writing time is shortened. In addition, when the first write-designated sector and the next write-designated sector belong to the same block, they are written together in the same block, so the number of times of writing to the block can be reduced. In addition, the number of times of data erasure of the block that occurs at the time of writing can be reduced. For this reason, writing of data to the information processing apparatus becomes faster and writing time is shortened.
本発明の実施形態について、図面を参照して説明する。なお、以下に説明する実施形態は特許請求の範囲に係る発明を限定するものではなく、また実施形態の中で説明されている諸要素及びその組み合わせの全てが発明の解決手段に必須であるとは限らない。 Embodiments of the present invention will be described with reference to the drawings. The embodiments described below do not limit the invention according to the claims, and all the elements and combinations described in the embodiments are essential for the solution of the invention. Is not limited.
まず、本発明の一実施形態に係る情報処理装置について説明する。 First, an information processing apparatus according to an embodiment of the present invention will be described.
図2は、本発明の一実施形態に係る情報処理装置及び情報記憶装置の一例を示す図である。 FIG. 2 is a diagram illustrating an example of an information processing device and an information storage device according to an embodiment of the present invention.
情報処理装置2は、例えば、PC(Personal Computer)であり、装置本体10と、表示装置11と、入力装置12とを有する。表示装置11は、例えば、液晶ディスプレイや、CRTディスプレイ等の画像を表示する装置である。入力装置12は、例えば、マウス、キーボード等の情報処理装置2のユーザーからの入力を受け付けるための装置である。
The
装置本体10において、CPU(Central Processing Unit)13と、ROM(Read Only Memory)14と、記憶手段の一例としてのRAM(Random Access Memory)15と、ハードディスクドライブ(HDD)16と、表示処理部17と、入力インターフェース部18と、インターフェース部19とがバス20を介して接続されている。
In the apparatus
ROM14は、ブートプログラム等の基本プログラムを記憶する。RAM15は、プログラムやデータを記憶する領域として、或いは、CPU13による処理に使用されるデータを格納する作業領域として利用される。本実施形態では、RAM15は、ファイルのデータの少なくとも一部をキャッシュするためにも用いられる。また、RAM15は、情報記憶装置21に格納している後述するファイル管理用情報が読み出される領域としても用いられる。HDD16は、OS(Operating System)プログラム、アプリケーションプログラム、ドライバープログラム等の各種プログラムを読み出し可能に記憶する。また、HDD16は、情報処理装置2に接続される情報記憶装置21の識別情報(ID)と、当該情報記憶装置21に対する最適な書込単位(最適書込単位)とを対応付けて記憶する。
The
表示処理部17は、CPU13の制御により、表示装置11に画像を表示させるための表示用のデータ又は信号を生成し、表示装置11に出力する。入力インターフェース部18は、入力装置12と接続されており、入力装置12からの信号をデータとして、CPU13に渡す。インターフェース部19は、複数種類の情報記憶装置21と接続可能であり、複数種類の情報記憶装置21からのデータやプログラムの読み込み、情報記憶装置21へのデータの書込みを行う。情報記録装置21としては、例えば、フラッシュメモリ(例えば、SDカード、USBメモリ等)がある。
The
情報記録装置21は、データの最小アクセス単位としてのセクタを複数有している。また、情報記録装置21は、データの消去を行う最小単位としてのブロックを複数有している。ブロックには、所定数のセクタが含まれている。情報記録装置21は、ブロックに含まれるセクタの数等の情報記録装置21に関する情報を記憶する。また、情報記録装置21は、情報記録装置21に格納されているファイルのデータを管理するために必要なファイル管理情報(例えば、FAT(File Allocation Table))を記憶する。ファイル管理情報には、ファイルと、当該ファイルを管理するクラスタとの対応関係や、当該クラスタと、当該クラスタのデータを格納する情報記憶装置21の複数のセクタとの対応関係を示す情報が含まれており、情報処理装置2の後述するファイルシステム処理部13bに利用される。
The
CPU13は、各部14〜19の動作を制御する。また、CPU13は、ROM14の基本プログラムやHDD16に格納されているOSプログラム、アプリケーションプログラム、ドライバープログラム等をRAM15に読み出して実行することにより各種処理を実行する。
CPU13 controls operation | movement of each part 14-19. The
CPU13には、アプリケーション処理部13aと、ファイル管理手段の一例としてのファイルシステム処理部13bと、取得手段、実測判定手段、及び書込制御手段の一例としてのドライバー処理部13cとが構築される。アプリケーション処理部13aは、CPU13がアプリケーションプログラムを実行することにより構築され、ファイルシステム処理部13bは、CPU13がOSプログラムを実行することにより構築され、ドライバー処理部13cは、CPU13がドライバープログラムを実行することにより構築される。
The
アプリケーション処理部13aは、図示しないアプリケーション画面を表示処理部17により表示装置11に表示させて、例えば、ドキュメントの作成、編集機能や、画像の作成編集機能を提供する。また、アプリケーション処理部13aは、処理に関わる各種ファイルについてのアクセス要求(読出し要求、書込み要求)や、対応するファイルのデータ等をファイルシステム処理部13bとやり取りする。アプリケーション処理部13aは、入力装置12を介してユーザーからファイルの書込み要求を受け付けた場合には、そのファイルに対する書込要求をファイルシステム処理部13bに通知する。
The
ファイルシステム処理部13bは、RAM15に読み出されたファイル管理情報を用いて、ファイルの管理を行う。例えば、ファイルシステム処理部13は、アプリケーション処理部13aからのファイルのアクセス要求(読出要求や書込要求)を受け取ると、RAM15に格納されているファイル管理情報に基づいて、ファイルの情報記憶装置21における格納位置(複数のセクタ)を特定し(割当て又は検出し)、当該格納位置(複数のセクタ)に対するアクセスを指定するアクセス要求(書込指定又は読込指定)をドライバー処理部13cに渡すとともに、ドライバー処理部13cとの間でアクセス要求に関わるデータの受け渡しを行う。
The file
ドライバー処理部13cは、ファイルシステム処理部13bから受け取ったアクセス要求で指定された情報記憶装置21の複数のセクタに対するアクセスを、後述するように決定される最適書込単位に従ってインターフェース部19を介して実行する。例えば、データを書込む際には、ドライバー処理部13cは、書込対象の1以上のセクタが属する1以上のブロックのデータをRAM15に退避し、当該ブロックのデータを消去し、退避したデータと書込対象の1以上のセクタに書込むデータとにより更新後のデータを生成し、このデータを対応するブロックに対して書込むという一連の書込動作を実行する。
The
また、ドライバー処理部13cは、インターフェース部19に新たに情報記憶装置21が接続されたか否かを検出し、新たに接続されたことを検出した場合には、この情報記憶装置21に対する最適書込単位がHDD16に格納されているか否かを判定する。例えば、情報記憶装置21から当該情報記憶装置21のIDを受け取り、当該IDに対応する最適書込単位がHDD16に格納されているか否かを判定する。ドライバー処理部13cは、IDに対応する最適書込単位がHDD16に格納されている場合には、当該最適書込単位を、情報記憶装置21へアクセスをする際の書込単位に決定(設定)する。
Further, the
また、ドライバー処理部13cは、IDに対応する最適書込単位がHDD16に格納されていない場合には、複数の書込単位により実際に情報記憶装置21にアクセスし、そのアクセス時におけるデータ転送に関する値(データ転送値)を測定する。ここで、データ転送値とは、時間に対するデータ転送量を示すデータ転送速度であってもよいし、所定のデータ量を転送する際に要する時間であってもよく、転送の速さを比較するための値であればよい。複数の書込単位としては、情報記憶装置21がフラッシュメモリであれば、例えば、フラッシュメモリのブロックのn倍(nは、1以上の整数)の書込単位を複数用意すればよい。
Further, when the optimum writing unit corresponding to the ID is not stored in the
また、ドライバー処理部13cは、実際に測定したデータ転送値に基づいて、最適書込単位を検出し、当該最適書込単位を、情報記憶装置21に対するアクセスに用いると決定するとともに、当該最適書込単位と、情報記憶装置21のIDとを対応付けてHDD16に記憶する。これにより、同一の情報記憶装置21が接続された場合には、実測を行うことなく、最適書込単位を迅速に把握して用いることができる。
In addition, the
また、ドライバー処理部13cは、情報記憶装置21からブロックが含むセクタ数を取得する。情報記憶装置21では、通常は、先頭のセクタから順番に当該セクタ数ずつのブロックとなっているので、ブロックが含むセクタ数により、各ブロックに含まれるセクタを把握することができる。
In addition, the
また、ドライバー処理部13cは、取得したブロックが含むセクタ数に基づいて、ファイルシステム処理部13bから書込指定された連続する複数のセクタ中の同一のブロックに属する複数のセクタに対するデータの書込みが、同一のタイミングとなるように(異なる書込みタイミングとならないように)して、情報記憶装置21に対してデータを書込む。具体的には、ドライバー処理部13cは、連続する複数のセクタ中の同一のブロックに属する複数のセクタを1度の書込みで連続して情報記憶装置21に書込ませる。この際に、1度の書込みで連続して送るデータの書込単位は、既に決定している最適書込単位(nブロック分)とする。
Further, the
また、ドライバー処理部13cは、書込指定の最終セクタが、書込指定のセクタを最適書込単位毎に分けた場合の最終の最適書込単位の最終セクタでない場合、すなわち、最後部のセクタを書込む最適書込単位について、書込指定のセクタで満たすことができない場合には、当該最適書込単位に書込むべきセクタのデータをRAM15にキャッシュする。
Further, the
ドライバー処理部13cは、直前に書込指定があった最後部の1以上のセクタを含むセクタのデータがRAM15にキャッシュされているか否かを判定し、キャッシュされている場合には、キャッシュされている最後部のセクタと、今回の書込指定のデータの先頭のセクタとが連続するセクタであるかを判定する。この結果、今回の書込指定のセクタが連続するセクタである場合には、ドライバー処理部13cは、そのセクタと、キャッシュされている最後部のセクタとが同一のブロックに属するので、キャッシュしている1以上のセクタのデータと、書込指定の先頭の同一のブロックに属する1以上のセクタのデータとを1度の書込で連続して情報記憶装置21に書込む一方、連続するセクタでない場合には、キャッシュしているデータを1度の書込みで情報記憶装置21に書込む。
The
ここで、図面を参照して、情報記憶装置21へのデータ書込みを説明する。
Here, data writing to the
図3は、本発明の一実施形態に係る情報記憶装置に対するファイルの書込みを説明する図である。図3(a)は、連続するセクタへの書込指定が連続して発生しなかった場合の一例を示し、図3(b)は、連続するセクタへの書込指定が連続して発生した場合の一例を示している。ここで、図3は、ファイルシステム処理部13bにより管理するファイルシステムのクラスタは、それぞれ4つのセクタを含み、情報記憶装置21のブロックは、それぞれ4つのセクタを含み、1つのクラスタに対応する4つのセクタが、2つのブロックに跨って対応するようになっている場合において、連続する3つのクラスタの連続する12のセクタが書込指定された際のデータ書込の例を示している。図3においては、最適書込単位が1ブロックであるとして説明する。なお、クラスタに含まれるセクタの数と、ブロックに含まれる数とは、単なる例示であり、これらに限られず、また、クラスタに含まれるセクタの数と、ブロックに含まれるセクタの数とが異なっていてもよい。
FIG. 3 is a diagram for explaining file writing to the information storage device according to the embodiment of the present invention. FIG. 3 (a) shows an example in which writing designations to consecutive sectors are not continuously generated, and FIG. 3 (b) is a case where writing designations to consecutive sectors are continuously generated. An example of the case is shown. Here, in FIG. 3, each cluster of the file system managed by the file
一つめの最初の書込指定(第1書込指定)を受け付けると、まず、図3(a)に示すように、ドライバー処理部13cは、書込指定された12のセクタ中のブロックDに格納されるセクタ1と、セクタ2とのデータを1回の書込み動作でブロックDに書込む。ここでは、ブロックDに対する消去が一回発生する。次いで、ドライバー処理部13cは、ブロックD+1に格納されるセクタ3〜6のデータを1回の書込み動作でブロックD+1に書込む。ここでは、ブロックD+1に対する消去が一回発生する。次いで、ドライバー処理部13cは、ブロックD+2に格納されるセクタ7〜9のデータを1回の書込み動作でブロックD+2に書込む。ここでは、ブロックD+2に対する消去が一回発生する。次いで、ドライバー処理部13cは、ブロックD+3に格納されるセクタ11及び12のデータをRAM15にキャッシュする。
When the first first write designation (first write designation) is received, first, as shown in FIG. 3A, the
そして、次の書込指定(第2書込指定)を受け付けたが、次の書込指定が連続するセクタへの書込みではない場合や、書込みが終了した旨の通知を受けた場合には、ドライバー処理部13cは、図3(a)に示すように、RAM15にキャッシュされているセクタ11及び12のデータを1回の書込み動作でブロックD+3に書込む。ここでは、ブロックD+3に対する消去が一回発生する。上記したようにデータが書込まれることとなるので、各ブロックにおける消去回数を1回に抑えることができるので、書込み時間を短縮することができる。また、ブロックへの書込み回数を低減することができるので、情報記憶装置21がブロックへの書込み回数に限度があるフラッシュメモリであれば、情報記憶装置21の寿命を延ばすことができる。
When the next write designation (second write designation) is accepted, but the next write designation is not a write to a continuous sector, or when a notification that the write has been completed is received, As shown in FIG. 3A, the
一方、次の書込指定(第2書込指定)を受け付け、次の書込指定が連続するセクタへの書込みである場合には、ドライバー処理部13cは、図3(b)に示すように、RAM15にキャッシュされているセクタ11及び12のデータと、第2書込指定に含まれるセクタ13及び14のデータとを1回の書込み動作でブロックD+3に書込む。ここでは、ブロックD+3に対する消去が一回発生する。このように、連続する書込指定のセクタについても同一のブロックに書込むデータについて、一回の書込みにより実行するようにしたので、異なる書込指定で書込むこととなる同一のブロックにおける消去回数を1回に抑えることができるので、書込み時間を短縮することができる。また、ブロックへの書込み回数を低減することができるので、情報記憶装置21がブロックへの書込み回数に限度があるフラッシュメモリであれば、情報記憶装置21の寿命を延ばすことができる。
On the other hand, when the next write designation (second write designation) is accepted and the next write designation is a write to successive sectors, the
次に、本発明の一実施形態に係る情報処理装置における最適書込単位決定処理の動作について説明する。 Next, the operation of the optimum writing unit determination process in the information processing apparatus according to the embodiment of the present invention will be described.
図4は、本発明の一実施形態に係る最適書込単位決定処理のフローチャートである。 FIG. 4 is a flowchart of optimum writing unit determination processing according to an embodiment of the present invention.
まず、ドライバー処理部13cは、インターフェース部19に情報記憶装置21が接続されたことを認識したか否かを判定し(ステップS1)、認識していない場合には、認識するまで待つ一方、認識した場合(ステップS1:YES)には、当該情報記憶装置21に対する最適書込単位がHDD16に格納されているか否かを判定する(ステップS2)。
First, the
当該情報記憶装置21に対する最適書込単位がHDD16に格納されていない場合(ステップS2:NO)には、ドライバー処理部13cが、規定の複数書込単位の内のひとつの書込単位を選択し(ステップS3)、この書込単位により実際に情報記憶装置21に書込みを行い(ステップS4)、当該書込み時のデータ転送速度を測定する(ステップS5)。
When the optimum writing unit for the
そして、ドライバー処理部13cは、複数の書込単位の全てについて書込みを実施したか否かを判定し(ステップS6)、全ての書込単位による書込みを実施していない場合(ステップS6:NO)には、ステップS3に戻る一方、全ての書込単位による書込みを実施している場合(ステップS6:YES)には、ステップS7に進む。
Then, the
ステップS7においては、ドライバー処理部13cは、測定したデータ転送速度のうちで最速となる書込単位(最適書込単位)を検出し、この最適書込単位を、現在接続されている情報記憶装置21に対する書込み時の書込単位として決定し、情報記憶装置21のIDと対応付けて最適書込単位をHDD16に登録する(ステップS8)。
In step S7, the
一方、最適書込単位がHDD16に格納されている場合には、HDD16に格納されている最適書込単位を、当該情報記憶装置21に対する書込み時における書込単位として決定する(ステップS9)。
On the other hand, when the optimum writing unit is stored in the
次に、本発明の一実施形態に係る情報処理装置におけるアクセス処理の動作について説明する。 Next, an access processing operation in the information processing apparatus according to the embodiment of the present invention will be described.
図5は、本発明の一実施形態に係るアクセス処理のフローチャートである。
ドライバー処理部13cは、ファイルシステム処理部13bから書込指定を受け付けたか否かを判定し(ステップS10)、書込指定を受け付けていない場合(ステップS10:NO)には、書込指定を待つ一方、書込指定を受け付けた場合(ステップS10:YES)には、RAM15に直前の書込指定における最後部のセクタに対応するブロック(書込単位分のブロック)のデータがキャッシュされているか否かを判断する(ステップS11)。
FIG. 5 is a flowchart of access processing according to an embodiment of the present invention.
The
この結果、キャッシュされている場合(ステップS11:YES)には、ドライバー処理部13cは、今回の書込指定が、直前の書込指定と連続した領域(セクタ)への書込みであるか否かを判定し(ステップS12)、連続した領域への書込みであると判定した場合には、ステップS14に進み、連続した領域への書込みではない場合には、RAM15にキャッシュしてあるデータ(キャッシュデータ)を対応するブロックに対して書込み(ステップS13)、RAM15からキャッシュデータを削除して、ステップS14に進む。なお、キャッシュがされていない場合(ステップS11:NO)には、ステップS14に進む。
As a result, if cached (step S11: YES), the
ステップS14において、ドライバー処理部13cは、書込対象のデータ(書込データ)の終わりが最適書込単位の区切りに一致するか否か、すなわち、書込指定されている複数のセクタの最後のセクタが、最適書込単位毎にセクタを分けた際に、最後の最適書込単位の最終ブロックの最終セクタであるか否かを判定する。
In step S14, the
この結果、書込データが最適書込単位の区切りに一致する場合(ステップS14:YES)には、書込データのすべてを最適書込単位(nブロック毎)で書込むことができることを意味するので、ドライバー処理部13cは、書込データを最適書込単位毎に情報記憶装置21に書込み(ステップS15)、ステップS10に戻る。なお、RAM15にキャッシュがある場合には、キャッシュされているデータを先頭の最適書込単位に含めて、情報記憶装置21に書込む。
As a result, when the write data matches the delimiter of the optimum write unit (step S14: YES), it means that all the write data can be written in the optimum write unit (every n blocks). Therefore, the
一方、書込データが最適書込単位の区切りに一致しない場合(ステップS14:NO)には、最後の最適書込単位については、書込データが最適書込単位を満たさないことを意味するので、ドライバー処理部13cは、書込データを最適書込単位毎に情報記憶装置21に書込み(ステップS16)、最後の最適書込単位のデータについては、情報記憶装置21に書込まずに、RAM15にキャッシュし(ステップS17)、ステップS10に戻る。なお、RAM15にキャッシュがある場合には、キャッシュされているデータを先頭の最適書込単位に含めて、情報記憶装置21に書込む。
On the other hand, if the write data does not match the delimiter of the optimum write unit (step S14: NO), it means that the write data does not satisfy the optimum write unit for the last optimum write unit. The
以上、本発明を実施形態に基づいて説明したが、本発明は上述した実施の形態に限られず、他の様々な態様に適用可能である。 Although the present invention has been described based on the embodiments, the present invention is not limited to the above-described embodiments, and can be applied to various other modes.
例えば、上記実施形態では、情報記憶装置21に対して実際にデータを書込んだ際におけるデータ転送速度を測定し、そのデータ転送速度を比較することにより、最適な書込単位を決定するようにしていたが、本発明はこれに限られず、実際に測定することなく、予め設定された1以上のブロック数を書込単位としてもよい。
For example, in the above embodiment, an optimum writing unit is determined by measuring the data transfer speed when data is actually written to the
また、上記実施形態では、書込指定された最後部のセクタに対応する最後の最適書込単位のブロックが、書込指定のセクタで満たされていない場合に、RAM15にキャッシュするようにしていたが、キャッシュせずに、情報記憶装置21に書込むようにしてもよい。
In the above embodiment, when the block of the last optimum write unit corresponding to the last sector designated for writing is not filled with the sector designated for writing, the block is cached in the
また、上記実施形態では、書込指定された複数のセクタについて、最適書込単位毎に情報記憶装置21に書込むようにしていたが、本発明はこれに限られず、書込指定された複数のセクタの先頭部又は書込指定された複数のセクタの最後部の少なくともいずれか一方については、1ブロックに対応するセクタのみで情報記憶装置21に書込むようにしてもよい。
In the above embodiment, the plurality of sectors specified for writing are written in the
また、上記実施形態では、情報記憶装置21についての最適書込単位を情報処理装置2のHDD16に記憶させるようにし、そこから最適書込単位を取得するようにしていたが、本発明はこれに限られず、情報記憶装置21についての最適書込単位を当該情報記憶装置21に記憶させるようにし、情報処理装置2は、情報記憶装置21から最適書込単位を取得するようにしてもよい。
In the above embodiment, the optimum writing unit for the
また、上記実施形態においては、情報処理装置として、PCを例に説明したが、情報処理装置はこれに限られず、例えば、プリンター、デジタルカメラ、携帯電話等であってもよく、要は、情報記憶装置との間でのデータのアクセスを行う情報処理装置であればよい。 In the above embodiment, the PC is described as an example of the information processing apparatus. However, the information processing apparatus is not limited to this, and may be, for example, a printer, a digital camera, a mobile phone, or the like. Any information processing device that accesses data with a storage device may be used.
2 情報処理装置、10 装置本体、11 表示装置、12 入力装置、13 CPU、13a アプリケーション処理部、13b ファイルシステム処理部、13c ドライバー処理部、14 ROM、15 RAM、16 HDD、17 表示処理部、18 入力インターフェース部、19 インターフェース部、20 バス、21 情報記憶装置。 2 Information processing device, 10 Device body, 11 Display device, 12 Input device, 13 CPU, 13a Application processing unit, 13b File system processing unit, 13c Driver processing unit, 14 ROM, 15 RAM, 16 HDD, 17 Display processing unit, 18 input interface unit, 19 interface unit, 20 bus, 21 information storage device.
Claims (6)
前記情報記録装置は、前記各ブロックが含むセクタ数を記憶しており、
前記情報記録装置から各ブロックが含むセクタ数を取得する取得手段と、
複数のセクタが対応付けられたクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として書込指定するファイル管理手段と、
前記取得した各ブロックが含むセクタ数に基づいて、前記書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの前記情報記憶装置への書込みを同一の書き込みタイミングで行い、前記書込指定された連続するセクタの最後部における1以上のセクタに対応するブロックについて、全てのセクタが書込み指定されていない場合に、書込み指定されているセクタのデータを所定の記憶手段にキャッシュさせ、前記ファイル管理手段により次に書込指定されたセクタにより、前記ブロックの全てのセクタが揃った場合に、前記記憶手段にキャッシュさせている前記データと、次に書込指定されたセクタのデータとを用いて、前記ブロックを含む1以上のブロックに対してデータを書込む書込制御手段と
を有する情報処理装置。 In an information processing apparatus that accesses an information storage device capable of erasing data in units of blocks including a plurality of sectors as minimum access units,
The information recording device stores the number of sectors included in each block,
Obtaining means for obtaining the number of sectors included in each block from the information recording device;
File management in which a file is managed in units of clusters each associated with a plurality of sectors, and a plurality of consecutive sectors corresponding to one or more clusters that manage a file to be written are specified as a writing target. Means,
Based on the number of sectors included in each of the acquired blocks, data writing to the information storage device for a plurality of sectors belonging to the same block in the plurality of consecutive sectors designated for writing is performed at the same writing timing. If all the sectors are not designated for writing in the block corresponding to one or more sectors at the end of the consecutive sectors designated for writing, the data of the sector designated for writing is stored in a predetermined storage means. And when all sectors of the block are aligned by the sector specified to be written next by the file management means, the data being cached in the storage means and the next writing specified Write control means for writing data to one or more blocks including the block using sector data; An information processing apparatus that.
請求項1に記載の情報処理装置。 If all sectors of the block are not aligned due to the next sector designated for writing by the file management means, the data cached in the storage means is used to include one or more blocks including the block. The information processing apparatus according to claim 1, wherein data is written to a block.
請求項1又は請求項2に記載の情報処理装置。 The information processing apparatus according to claim 1, wherein the write control unit writes data to the information storage device in units of a plurality of blocks.
前記書込制御手段は、前記判定したブロック数を単位として、前記情報記憶装置に対してデータを書込む
請求項1乃至請求項3のいずれか一項に記載の情報処理装置。 Actually writing data to the information storage device in units of different numbers of blocks, and further having actual measurement determination means for determining the number of blocks that is the fastest when written,
The information processing apparatus according to any one of claims 1 to 3, wherein the write control unit writes data to the information storage device in units of the determined number of blocks.
前記情報記録装置は、前記各ブロックが含むセクタ数を記憶しており、
前記情報処理装置の取得手段が、前記情報記録装置から各ブロックが含むセクタ数を取得する取得ステップと、
前記情報処理装置のファイル管理手段が、複数のセクタを含むクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として指定するファイル管理ステップと、
前記情報処理装置の書込制御手段が、前記取得した各ブロックが含むセクタ数に基づいて、前記書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの前記情報記憶装置への書込みを同一の書き込みタイミングで行い、前記書込指定された連続するセクタの最後部における1以上のセクタに対応するブロックについて、全てのセクタが書込み指定されていない場合に、書込み指定されているセクタのデータを所定の記憶手段にキャッシュさせ、前記ファイル管理手段により次に書込指定されたセクタにより、前記ブロックの全てのセクタが揃った場合に、前記記憶手段にキャッシュさせている前記データと、次に書込指定されたセクタのデータとを用いて、前記ブロックを含む1以上のブロックに対してデータを書込む書込制御ステップと
を有するアクセス処理方法。 In an access processing method by an information processing apparatus for accessing an information storage device capable of erasing data in units of blocks including a plurality of sectors as minimum access units,
The information recording device stores the number of sectors included in each block,
An acquisition step in which the acquisition unit of the information processing apparatus acquires the number of sectors included in each block from the information recording apparatus;
The file management means of the information processing apparatus manages a file in units of clusters including a plurality of sectors, and writes a plurality of consecutive sectors corresponding to one or more clusters that manage a file to be written. A file management step specified as
The information of the data for a plurality of sectors belonging to the same block in the plurality of consecutive sectors designated for writing based on the number of sectors included in each acquired block by the write control means of the information processing apparatus Writing to the storage device is performed at the same writing timing, and writing is specified when all sectors are not specified for writing in a block corresponding to one or more sectors at the end of the consecutive sectors specified for writing. The data stored in the block is cached in a predetermined storage means, and when all sectors of the block are aligned by the sector specified to be written next by the file management means, the storage means is cached. Using the data and the data of the sector designated to be written next, one or more blocks including the block are paired. Access processing method and a writing write control step data Te.
前記情報記録装置は、前記各ブロックが含むセクタ数を記憶しており、
前記コンピューターを、
前記情報記録装置から各ブロックが含むセクタ数を取得する取得手段と、
複数のセクタを含むクラスタを単位としてファイルを管理し、書込対象となるファイルを管理する1以上のクラスタに対応する連続する複数のセクタを、書込対象として書込指定するファイル管理手段と、
前記取得した各ブロックが含むセクタ数に基づいて、前記書込指定された複数の連続するセクタ中の同一のブロックに属する複数のセクタに対するデータの前記情報記憶装置への書込みを同一の書き込みタイミングで行い、前記書込指定された連続するセクタの最後部における1以上のセクタに対応するブロックについて、全てのセクタが書込み指定されていない場合に、書込み指定されているセクタのデータを所定の記憶手段にキャッシュさせ、前記ファイル管理手段により次に書込指定されたセクタにより、前記ブロックの全てのセクタが揃った場合に、前記記憶手段にキャッシュさせている前記データと、次に書込指定されたセクタのデータとを用いて、前記ブロックを含む1以上のブロックに対してデータを書込む書込制御手段と
して機能させるアクセス処理プログラム。 An access processing program to be executed by a computer that accesses an information storage device capable of erasing data in units of blocks including a plurality of sectors as minimum access units,
The information recording device stores the number of sectors included in each block,
The computer,
Obtaining means for obtaining the number of sectors included in each block from the information recording device;
A file management means for managing a file in units of clusters including a plurality of sectors, and writing and designating a plurality of consecutive sectors corresponding to one or more clusters for managing a file to be written as a writing target;
Based on the number of sectors included in each of the acquired blocks, data writing to the information storage device for a plurality of sectors belonging to the same block in the plurality of consecutive sectors designated for writing is performed at the same writing timing. If all the sectors are not designated for writing in the block corresponding to one or more sectors at the end of the consecutive sectors designated for writing, the data of the sector designated for writing is stored in a predetermined storage means. And when all sectors of the block are aligned by the sector specified to be written next by the file management means, the data being cached in the storage means and the next writing specified Write control means for writing data to one or more blocks including the block using sector data Access processing program to function.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010001022A JP2011141645A (en) | 2010-01-06 | 2010-01-06 | Information processing apparatus, method and program for processing access |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010001022A JP2011141645A (en) | 2010-01-06 | 2010-01-06 | Information processing apparatus, method and program for processing access |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2011141645A true JP2011141645A (en) | 2011-07-21 |
Family
ID=44457461
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010001022A Withdrawn JP2011141645A (en) | 2010-01-06 | 2010-01-06 | Information processing apparatus, method and program for processing access |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2011141645A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013084549A1 (en) * | 2011-12-08 | 2013-06-13 | シャープ株式会社 | Electronic device |
| CN114077550A (en) * | 2021-10-29 | 2022-02-22 | 歌尔科技有限公司 | Data storage method and device based on eMMC, terminal equipment and storage medium |
-
2010
- 2010-01-06 JP JP2010001022A patent/JP2011141645A/en not_active Withdrawn
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013084549A1 (en) * | 2011-12-08 | 2013-06-13 | シャープ株式会社 | Electronic device |
| JP2015038660A (en) * | 2011-12-08 | 2015-02-26 | シャープ株式会社 | Electronic equipment |
| CN114077550A (en) * | 2021-10-29 | 2022-02-22 | 歌尔科技有限公司 | Data storage method and device based on eMMC, terminal equipment and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8966160B2 (en) | Storage device trimming | |
| EP2843570B1 (en) | File reading method, storage device and reading system | |
| JP4886866B2 (en) | Method for speeding up access to main storage device and storage device system | |
| US8825946B2 (en) | Memory system and data writing method | |
| CN111666044B (en) | Method for accessing shingled magnetic recording SMR hard disk and server | |
| JPWO2005096220A1 (en) | Memory card and memory card system | |
| JP2017117179A (en) | Information processing device, cache control program and cache control method | |
| EP2816482A1 (en) | Information processing apparatus, control circuit, and control method | |
| JP2013041547A5 (en) | ||
| JP5962140B2 (en) | Program, control method, control apparatus and system | |
| US8185686B2 (en) | Memory system and a control method thereof | |
| JP2015219602A (en) | Information processing apparatus, information processing method, and program | |
| CN114327272A (en) | Data processing method, solid state disk controller and solid state disk | |
| US11086798B2 (en) | Method and computer program product and apparatus for controlling data access of a flash memory device | |
| JP2011141645A (en) | Information processing apparatus, method and program for processing access | |
| JP2010237907A (en) | Storage device and recording method | |
| EP4632584A1 (en) | Techniques for garbage collecting zones in a file system | |
| JPH08137754A (en) | Disk cache device | |
| CN117708000B (en) | Data random writing method, device, electronic device and storage medium | |
| JP5708053B2 (en) | Information processing apparatus, defragmentation method, and defragmentation program | |
| US11461225B2 (en) | Storage device, control method of storage device, and storage medium | |
| JP5967308B2 (en) | Information processing apparatus, control circuit, control program, and control method | |
| JP2011138264A (en) | Information processor, access processing method, and access processing program | |
| CN115469806A (en) | Data processing method, device, equipment and medium | |
| JP6956934B2 (en) | Storage controller, cache memory control method and storage system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Application deemed to be withdrawn because no request for examination was validly filed |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20130402 |