JP7548742B2 - Information processing device and information processing system for managing destinations for storing files in non-volatile memory - Google Patents
Information processing device and information processing system for managing destinations for storing files in non-volatile memory Download PDFInfo
- Publication number
- JP7548742B2 JP7548742B2 JP2020122660A JP2020122660A JP7548742B2 JP 7548742 B2 JP7548742 B2 JP 7548742B2 JP 2020122660 A JP2020122660 A JP 2020122660A JP 2020122660 A JP2020122660 A JP 2020122660A JP 7548742 B2 JP7548742 B2 JP 7548742B2
- Authority
- JP
- Japan
- Prior art keywords
- file
- volatile memory
- information processing
- write
- destination
- 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
Links
- 230000015654 memory Effects 0.000 title claims description 177
- 230000010365 information processing Effects 0.000 title claims description 51
- 230000008859 change Effects 0.000 claims description 10
- 238000012937 correction Methods 0.000 claims description 7
- 238000012508 change request Methods 0.000 claims description 5
- 238000000034 method Methods 0.000 description 19
- 230000008569 process Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 4
- 239000004065 semiconductor Substances 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000035939 shock Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 239000012212 insulator Substances 0.000 description 1
- 239000000696 magnetic material Substances 0.000 description 1
- 230000005415 magnetization Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Landscapes
- Memory System (AREA)
Description
本発明は、不揮発性メモリに記憶するファイルの保存先を管理する情報処理装置、及び情報処理システムに関する。 The present invention relates to an information processing device and an information processing system that manage the destinations for files stored in non-volatile memory.
工作機械等の産業機械を制御する制御装置は、産業機械を制御するための制御用プログラムを記憶したり、産業機械の動作状況を記録したりするためのストレージデバイスを備えている。制御装置は、複数の産業機械が動作する環境に設置されることが多く、振動等の影響を受けやすい劣悪な状況下で動作する。そのため、制御装置ではストレージデバイスとして駆動部分が無く振動による影響を受けにくいNANDフラッシュを使用した半導体ストレージが用いられる事がある。 Control devices that control industrial machines such as machine tools are equipped with storage devices for storing control programs for controlling the industrial machines and for recording the operating status of the industrial machines. Control devices are often installed in environments where multiple industrial machines are operating, and operate under poor conditions where they are susceptible to the effects of vibrations and other factors. For this reason, control devices sometimes use semiconductor storage that uses NAND flash as a storage device, which has no moving parts and is less susceptible to the effects of vibrations.
SSD(Solid State Drive)等のNANDフラッシュを利用した不揮発性メモリは、メモリセルの集合であるページと呼ばれる単位でデータの書き込み及び読み込みが行われる。また、ページに書き込まれているデータの消去は、複数のページをまとめたブロックという単位で行われる。そして、フラッシュメモリではデータの上書きを行うことができないため、ページ内のデータを変更するときは、そのページを含むブロック全体のデータを一旦退避し、当該ブロックの消去を行なった後に、変更したデータと共にブロック全体を書き戻している。 In non-volatile memory that uses NAND flash, such as SSDs (Solid State Drives), data is written and read in units called pages, which are collections of memory cells. Data written to a page is erased in units called blocks, which are collections of multiple pages. Since flash memory does not allow data to be overwritten, when changing data within a page, the data in the entire block that contains that page is temporarily saved, the block is erased, and then the entire block is written back together with the changed data.
NANDフラッシュを利用したフラッシュメモリのメモリセルは、動作原理上絶縁体となる酸化膜が貫通する電子によって劣化するため、書き込み回数が限られる。そのため、フラッシュメモリでは、それぞれのブロックに対する書き込み消去回数をカウントすると共に、各ブロックの書き込み消去回数がなるべく均一になるように書き込み制御(ウェアレベリング)がなされている。そのため、最も書き込み消去回数の多いブロックの書き込み消去回数をフラッシュメモリから取得することで、フラッシュメモリの寿命を管理できる。例えば、最も書き込み消去回数の多いブロックの書き込み消去回数が、許容される最大書き込み消去回数の90%を超えた場合にアラームを出力することで、寿命の近づいたフラッシュメモリを交換することができる。 The memory cells of flash memory using NAND flash are degraded by electrons penetrating the oxide film, which acts as an insulator in terms of the operating principle, and so the number of times they can be written is limited. For this reason, in flash memory, the number of writes and erases for each block is counted, and write control (wear leveling) is performed so that the number of writes and erases for each block is as uniform as possible. Therefore, the lifespan of the flash memory can be managed by obtaining the number of writes and erases for the block with the most number of writes and erases from the flash memory. For example, an alarm can be output if the number of writes and erases for the block with the most number of writes and erases exceeds 90% of the maximum number of writes and erases allowed, allowing flash memory that is approaching the end of its life to be replaced.
一方、不揮発性メモリには、フラッシュメモリと異なり、電気的に劣化する構成を持たない不揮発性メモリがある。本開示では、このような不揮発性メモリを書込み回数制限のない不揮発性メモリと呼ぶ。書込み回数制限のない不揮発性メモリには、例えば、MRAMやバッテリバックアップされたSRAMがある。
書込み回数制限のない不揮発性メモリは、一般的に容量のあたりのコストが高い。そのため、不揮発性メモリのハードウェアコストを抑えるために、従来の装置には、書込み回数制限のある不揮発性メモリと書込み回数制限のない不揮発性メモリの両方を搭載し、書込み回数制限のある不揮発性メモリには書込み頻度が低いファイルを保存し、書込み回数制限のない不揮発性メモリには書込み頻度が高いファイルを保存するものがある。
On the other hand, there is a non-volatile memory that does not have a configuration that is electrically degraded, unlike a flash memory. In this disclosure, such a non-volatile memory is called a non-volatile memory with no write count limit. Examples of non-volatile memories with no write count limit include MRAM and battery-backed SRAM.
Non-volatile memory without a write count limit generally has a high cost per capacity. Therefore, in order to reduce the hardware cost of non-volatile memory, some conventional devices are equipped with both non-volatile memory with a write count limit and non-volatile memory without a write count limit, and store files with low write frequency in the non-volatile memory with a write count limit and files with high write frequency in the non-volatile memory without a write count limit.
しかし、書込み頻度に関しては事前に分かるものではなく、制御装置の使用状況、制御対象となる機械の使用状況、各機械の機能の使用状況に応じて書込み頻度が変わるファイルがある。どのデータの書込み頻度が高いかは制御装置の使用前に知ることはできない。 However, the write frequency is not known in advance, and there are files whose write frequency changes depending on the usage of the control device, the usage of the machine to be controlled, and the usage of each machine's functions. It is not possible to know which data is written to frequently before using the control device.
書込み頻度の高いファイルを書込み回数制限のない不揮発性メモリに保存する技術として、あるタスクからの、フラッシュメモリへの書込み量(もしくは書込み頻度や書込み回数)がある閾値より高い場合には、そのタスクからのファイルを書込み回数制限のない不揮発性メモリに保存する技術が存在する。例えば、特許文献1参照。
As a technology for storing frequently written files in non-volatile memory with no limit on the number of writes, there is a technology that stores files from a certain task in non-volatile memory with no limit on the number of writes if the amount of writing (or the frequency of writing or the number of writes) to flash memory from that task is higher than a certain threshold. For example, see
書込み回数制限のない不揮発性メモリは、容量あたりのコストが高いため、使用開始前に凡その使用量を予想し、必要最低限の容量の不揮発性メモリを搭載することが一般的である。そのため、予想よりも多く書込みが行われる場合には、容量の大きな不揮発性メモリへの交換が必要となる。 Non-volatile memory with no limit on the number of times it can be written has a high cost per unit of capacity, so it is common to estimate the approximate amount of usage before starting to use it and install non-volatile memory with the minimum capacity required. Therefore, if more writing is done than expected, it will be necessary to replace it with non-volatile memory with a larger capacity.
不揮発性メモリの交換は、コストと手間がかかる。ハードウェア資源を有効に使うためには、最初に搭載されていた不揮発性メモリを交換せずに使い続けることができたほうがよい。 Replacing non-volatile memory is costly and time-consuming. To make effective use of hardware resources, it is better to be able to continue using the non-volatile memory originally installed without having to replace it.
書込み回数制限のない不揮発性メモリと書込み回数制限のある不揮発性メモリとの両方を使用する場合、最初に搭載されていた不揮発性メモリを交換せずに使い続けるために、ファイルを効率的に分配し、書込み回数制限のある不揮発性メモリの寿命を延ばす技術が望まれている。 When using both non-volatile memory with no write limit and non-volatile memory with a write limit, there is a need for technology that efficiently distributes files and extends the lifespan of the non-volatile memory with a write limit so that the originally installed non-volatile memory can continue to be used without replacing it.
本開示の一態様は、情報処理装置であって、書込み回数制限のない第1の不揮発性メモリと、書込み回数制限のある第2の不揮発性メモリと、通常のタスクを実行する通常タスク実行部と、通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、ファイルの書込み履歴に基づき、第2の不揮発性メモリの書込み頻度が低くなるようにファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、ファイル保存先決定部が決定した保存先に従い、第1の不揮発性メモリ又は第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、前記ファイル保存先決定部が決定したファイルの保存先に基づき、前記第1の不揮発性メモリ又は前記第2の不揮発性メモリに記憶するファイルの再配置を行う再配置実行部と、再配置が実行されているファイルの識別情報を記憶する再配置ファイル情報記憶部と、を備え、前記再配置実行部は、再配置が中断していた場合に前記識別情報を基に再配置を再開する。 One aspect of the present disclosure is an information processing device comprising: a first non-volatile memory with no limit on the number of writes; a second non-volatile memory with a limit on the number of writes; a normal task execution unit that executes normal tasks; a file information storage unit that stores a file write history in the normal tasks; a file save destination determination unit that determines a save destination of a file stored in the file information storage unit based on the file write history so that the write frequency of the second non-volatile memory is low; a file save destination change unit that saves the file in the first non-volatile memory or the second non-volatile memory in accordance with the save destination determined by the file save destination determination unit; a relocation execution unit that relocates a file to be stored in the first non-volatile memory or the second non-volatile memory based on the save destination of the file determined by the file save destination determination unit; and a relocation file information storage unit that stores identification information of a file for which relocation is being performed, and the relocation execution unit resumes the relocation based on the identification information if the relocation is interrupted .
本開示の一態様は、情報処理システムであって、書込み回数制限のない第1の不揮発性メモリと、書込み回数制限のある第2の不揮発性メモリと、通常のタスクを実行する通常タスク実行部と、通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、ファイルの書込み履歴に基づき、第2の不揮発性メモリの書込み頻度が低くなるようにファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、ファイル保存先決定部が決定した保存先に従い第1の不揮発性メモリ又は第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、前記ファイル保存先決定部が決定したファイルの保存先に基づき、前記第1の不揮発性メモリ又は前記第2の不揮発性メモリに記憶するファイルの再配置を行う再配置実行部と、再配置が実行されているファイルの識別情報を記憶する再配置ファイル情報記憶部と、を備え、前記再配置実行部は、再配置が中断していた場合に前記識別情報を基に再配置を再開する。 One aspect of the present disclosure is an information processing system comprising: a first non-volatile memory with no limit on the number of writes; a second non-volatile memory with a limit on the number of writes; a normal task execution unit that executes normal tasks; a file information storage unit that stores a file write history in the normal task; a file storage destination determination unit that determines a storage destination of a file stored in the file information storage unit based on the file write history so that the write frequency of the second non-volatile memory is low; a file storage destination change unit that saves the file in the first non-volatile memory or the second non -volatile memory in accordance with the storage destination determined by the file storage destination determination unit; a relocation execution unit that relocates a file stored in the first non-volatile memory or the second non-volatile memory based on the storage destination of the file determined by the file storage destination determination unit; and a relocation file information storage unit that stores identification information of a file for which relocation is being performed, and the relocation execution unit resumes the relocation based on the identification information if the relocation is interrupted .
本開示によれば、書込み回数制限のない不揮発性メモリと書込み回数制限のある不揮発性メモリとの両方を使用する場合、ファイルを効率的に分配し、書込み回数制限のある不揮発性メモリの寿命を延ばすことができる。 According to the present disclosure, when using both non-volatile memory with no write count limit and non-volatile memory with a write count limit, files can be distributed efficiently and the lifespan of the non-volatile memory with a write count limit can be extended.
[第1の開示]
以下、本開示の情報処理装置1の一例を示す。情報処理装置1は、例えば工作機械などの産業機械を制御する制御装置として実装することができる。本開示は、書込み回数制限のない不揮発性メモリと書込み回数制限のある不揮発性メモリとの両方を使用する情報処理装置1に適用されるものであり、情報処理装置1の種類は特に限定しない。
[First Disclosure]
An example of the
情報処理装置1は、図1に示すように、情報処理装置1を全体的に制御するCPU111、プログラムやデータを記録するROM112、一時的にデータを展開するためのRAM113を備え、CPU111はバス120を介してROM112に記録されたシステムプログラムを読み出し、システムプログラムに従って情報処理装置1の全体を制御する。
As shown in FIG. 1, the
インタフェース115は、情報処理装置1とアダプタ等の外部機器121と接続するためのインタフェース115である。外部機器121側からはプログラムや各種パラメータ等が読み込まれる。また、情報処理装置1内で編集したプログラムや各種パラメータ等は、外部機器121を介して外部記憶手段に記憶してもよい。
The
情報処理装置1は、インタフェース116を介して表示部122に接続されている。情報処理装置1は、後述するファイル管理を行う。ファイル管理のためのプログラムは、後述する第1の不揮発性メモリ124、第2の不揮発性メモリ125、第3の不揮発性メモリ127に記憶する。
The
不揮発性メモリには、書込み回数制限のない第1の不揮発性メモリ124と、書込み回数制限のある第2の不揮発性メモリ125がある。第1のドライバ118は、CPU111からのファイルの読込み要求及び書込み要求を受け付け、第1の不揮発性メモリ124へのデータの読書きを制御する。第2のドライバ119は、CPU111からのファイルの読込み要求及び書込み要求を受け付け、第2の不揮発性メモリ125へのデータの読書きを制御する。
第1の不揮発性メモリ124は、MRAMやバッテリバックアップされたSRAMである。MRAMとは、半導体メモリの1種で、記憶素子の素材の一部に磁性体を用い、磁化の変化によって信号の記録を行う。電源が失われても記録された情報が消えない。SRAMは、揮発性の半導体メモリの一種であるが、小型の電池を組合せ、機器本体の電源を切っても内容が失われない不揮発性メモリとして用いることができる。第1の不揮発性メモリ124は、駆動部がないため衝撃や振動に強いため、工場などでの使用に適しているが、容量あたりのコストが高いため、使用可能な容量に制限がある。
第2の不揮発性メモリ125は、例えば、フラッシュメモリである。フラッシュメモリとは、半導体素子を利用した記憶装置の1つで、何度も繰り返し書込みができ、通電をやめても記憶内容が維持される。フラッシュメモリは、駆動部がないため衝撃や振動に強いため、工場などでの使用に適しているが、素子の構造上、書込み回数に制限がある。
The nonvolatile memories include a first
The first
The second
第1の不揮発性メモリ124、第2の不揮発性メモリ125には、インタフェース115、116、117を介して外部機器121から読み込まれたプログラムや入力部を介して入力されたユーザ操作、情報処理装置1の各部や産業機械等から取得された各種データ(例えば、設定パラメータやセンサ情報など)が記憶される。
The first
[第1の開示]
図2は、本開示の情報処理装置1のブロック図である。情報処理装置1は、情報処理装置が本来すべき通常のタスクを実行する通常タスク実行部11、通常タスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部12、ファイルの保存先(第1の不揮発性メモリ124又は第2の不揮発性メモリ125)を管理するファイル管理部13を備える。
[First Disclosure]
2 is a block diagram of the
通常タスク実行部11は、本開示のファイル管理を除くタスク全体を実行する。このようなタスクを通常タスクと呼ぶ。通常タスクとは、特別なタスクではなく、情報処理装置1が動作するために必要なタスク全般を指す。例えば、情報処理装置1が数値制御装置の場合、情報処理装置1は加工プログラムを解析し、工作機械への指令を生成し、生成した指令を出力する。また、エラーが発生したときには、警告を出したり、機械を停止させる。ユーザからの入力を受け付け、各種の設定変更を受け付ける。通常タスクは、情報処理装置1を作動したときに実行されるタスク全体を意味する。
The normal
ファイル情報記憶部12は、通常タスク実行部11でのファイルの書込み履歴とファイルの保存先を記憶する。図3のファイル情報記憶部12は、ファイル名、ファイルの書込み頻度、ファイルサイズ、保存先情報を記憶する。書込み頻度は、各ファイルにおける1日当たりの書込み回数である。書込み頻度は、ファイルの総書込み回数を日数で割って算出する。ファイルサイズは、各ファイルのファイルサイズである。保存先情報には、各ファイルの保存先が第1の不揮発性メモリ124又は第2の不揮発性メモリ125であるかを記録する。ファイル管理部13がファイルの保存先を決定するまで、保存先情報には、デフォルトの保存先を記録する。デフォルトの保存先とは、例えば、情報処理装置1の使用開始前に予想した保存先とするが、これに限定されない。
The file
ファイル管理部13は、ファイル管理の開始を指示するファイル保存先変更要求部14と、第1の不揮発性メモリ124と第2の不揮発性メモリ125の何れにファイルを保存するかを決定するファイル保存先決定部15と、決定した保存先にファイルを保存させるファイル保存先変更部16とを有する。
The
ファイル保存先変更要求部14は、ファイル保存先の変更処理を開始させる。ファイル保存先変更要求部14では、ファイルの保存先の変更処理の開始タイミングを設定することができる。開始タイミングは、例えば、事前に設定した通電時間が経過したとき、ユーザが設定した時間、第2の不揮発性メモリ125の書込み頻度がある閾値を超えたときなどがある。開始タイミングの条件は予め設定しておいてもよいし、デフォルトで設定されていてもよい。
また、応用として、ファイルの書込み頻度と、情報処理装置1の動作状態とを関連付けて記憶しておき、情報処理装置1の動作状態が変わったときに、保存先変更要求を出力し、動作状態に関連づけられた書込み頻度に基づいて、ファイルの保存先を決定してもよい。
The file destination
As an application, the file write frequency and the operating status of the
ファイル保存先決定部15は、保存先変更要求を受け取ると、ファイル情報記憶部12に記録された書込み履歴に基づき、第2の不揮発性メモリ125の書込み頻度が低くなるように各ファイルの保存先を決定する。
When the file
ファイル保存先変更部16は、第1のドライバ118及び第2のドライバ119に指令を出力し、決定した保存先(第1の不揮発性メモリ124又は第2の不揮発性メモリ125)にファイルを保存させる。
The file storage
[ファイル保存先の決定方法]
ファイルの保存先の決定方法の一例を示す。この例では、各ファイルの保存先の組合せ全てについて、ファイル情報記憶部12に記憶されたファイルの書込み履歴を参照して、各組合せにおける、第1の不揮発性メモリ124の合計使用容量及び第2の不揮発性メモリ125の書込み頻度合計を求める。
この結果、第1の不揮発性メモリ124の合計使用容量が、第1の不揮発性メモリ124の容量の上限を越えず、第2の不揮発性メモリ125の書込み頻度の合計が最も低い組合せを採用する。
[File save destination determination method]
An example of a method for determining a file storage destination is shown below. In this example, for all combinations of file storage destinations, the total usage capacity of the first
As a result, the combination in which the total usage capacity of the first
例えば、図4では、書込み履歴を見ると、ファイル1~ファイル4の4つのファイルが書き込まれており、各ファイル1~ファイル4のファイル容量はそれぞれ300Kbyte、500Kbyte、800Kbyte、200Kbyteであり、各ファイル1~ファイル4の1日当たりの書込み頻度は、4回、5回、10回、3回である。
For example, in Figure 4, looking at the write history, four files, file 1 to file 4, have been written, the file sizes of
4つのファイルの組合せと、各組合せについての、第1の不揮発性メモリ124の合計使用量、及び第2の不揮発性125メモリの書込み頻度合計は、図5のようになる。
各組合せについて、第1の不揮発性メモリ124に割り当てられたファイル容量の合計(以下、第1の不揮発性メモリ124の合計使用容量という)が、第1の不揮発性メモリ124の最大容量(1024Kbyte)未満となる組合せは、組合せ1~5、組合せ9~13である。
第1の不揮発性メモリ124の合計使用容量が第1の不揮発性メモリ124の最大容量を超えない組合せのうち、第2の不揮発性メモリ125の書込み頻度の合計が最も低い組合せは、組合せ13である。この結果により、ファイル保存先決定部15は、ファイル1とファイル2の保存先を第2の不揮発性メモリ125、ファイル3とファイル4の保存先を第1の不揮発性メモリ124と決定する。
The combinations of the four files, the total usage amount of the first
For each combination, the combinations in which the total file capacity allocated to the first non-volatile memory 124 (hereinafter referred to as the total used capacity of the first non-volatile memory 124) is less than the maximum capacity of the first non-volatile memory 124 (1024 Kbytes) are
Among the combinations in which the total used capacity of the first
なお、ファイルの保存先の決定方法は上述の方法に限定されない。例えば、ファイル情報記憶部12を参照し、書込み回数の多いファイルから順に第1の不揮発性メモリ124に割り当て、割り当てたファイルの合計容量が第1の不揮発性メモリ124の最大容量を超えた場合には、それ以降のファイルを第2の不揮発性メモリ125に割り当てるよう決定してもよい。
ファイル保存先決定部15は、ファイル情報記憶部12に記憶されたファイルの書込み履歴に基づき第2の不揮発性メモリ125の書込み頻度が低くなるように各ファイルの保存先を決定する。
The method of determining the file storage destination is not limited to the above-mentioned method. For example, the file
The file
[第2の開示]
図6は、第2の開示の情報処理装置1のブロック図である。第2の開示において、情報処理装置1は、書込み頻度修正部17を備える。
書込み頻度修正部17は、書込み履歴において、一時的に書込み頻度が大きく変動しているデータを除外する。例えば、機械の調整中などには、ファイルの書込み頻度が一時的に高くなる。書込み頻度修正部17は、例えば、四分位数や外れ値検定などを行い、書込み頻度が高い若しくは低い場合に、その時期のデータを書込み履歴から除外する。
[Second Disclosure]
6 is a block diagram of the
The write
図7は、書込み頻度修正を行う場合のファイル情報記憶部12の例である。書込み頻度修正を行う場合には、各ファイルについて所定の時間ごとの書込み頻度を記録する。図7(a)では、1日目、2日目、…と1日時間ごとの書込み頻度を記録している。
図7(b)に示すように、あるファイルの1日目の書込み頻度が9回、2日目が11回、3日目が100回、4日目が10回の場合、3日目だけが大きく変動している。書込み頻度修正部17は、3日目のデータを除外して、1日目と2日目と4日目の平均を算出する。平均値は10[回/日]となるので、この値が修正後の書込み頻度となる。
7 shows an example of the file
7B, if the write frequency of a certain file is 9 times on the first day, 11 times on the second day, 100 times on the third day, and 10 times on the fourth day, only the third day fluctuates greatly. The write
ファイルの保存先は、修正後の書込み頻度に基づいて算出する。書込み頻度を修正することにより、例えば、3日目の書込み回数100回のように、一時的な変化の影響を受けることなく、定常的な使用状態で効率的に機能するファイル管理ができる。 The file save destination is calculated based on the revised write frequency. By correcting the write frequency, file management can be performed efficiently under normal usage conditions without being affected by temporary changes, such as 100 writes on the third day.
[ファイルの再配置]
ファイルの保存先を決定した場合、決定した保存先にファイルを移動するためのファイルの再配置が必要になる。図8の情報処理装置1は、再配置実行部18を備える。再配置実行部18は、以下のようにファイルの再配置を行う。
まず、ファイル情報記憶部12の保存先情報に従い、第1の不揮発性メモリ124から第2の不揮発性メモリ125へのファイルの移動を行う。第1の不揮発性メモリ124から第2の不揮発性メモリ125へのファイルの移動を最初に行うのは、第2の不揮発性メモリ125の容量が大きくメモリに空きがあるためである。
次に、ファイル情報記憶部12の保存先情報に従い、第2の不揮発性メモリ125に記録したファイルを第1の不揮発性メモリ124に移動する。ファイル情報記憶部12に記録された全てのファイルを移動すると、ファイルの再配置が完了する。
[File relocation]
When the destination to save the file has been determined, the file needs to be relocated in order to move the file to the determined destination. The
First, in accordance with the destination information in the file
Next, in accordance with the destination information in the file
情報処理装置1は、停電やエラーなどの理由により停止することがある。再配置実行部18は、再配置処理が中断しても継続して再開させるため、再配置されているファイルに関する情報を記憶する。
本開示では、ファイル情報記憶部12に記憶されたファイルにファイル1、ファイル2、ファイル3、・・・というファイル番号が割り当てられているものとする。再配置ファイル情報記憶部19は、ファイルを移動するごとに、移動を行ったファイルの番号Nを記憶する。ファイル情報記憶部12の最後のファイル番号を最大ファイル番号と呼ぶ。
The
In the present disclosure, it is assumed that the files stored in the file
図9を参照して再配置処理について説明する。
再配置実行部18は、最初に、ファイル番号Nに1を設定する(ステップS1)。これはファイル1が再配置処理の対象であることを示す。次いで、ファイル情報記憶部12を参照し、ファイルNが第1の不揮発性メモリ124から第2の不揮発性メモリ125に移動するファイルであれば、第1の不揮発性メモリ124から第2の不揮発性メモリ125にファイルNを移動する(ステップS2)。ファイルNの再配置処理が完了するとファイル番号を1インクリメントする(ステップS3)。
The rearrangement process will be described with reference to FIG.
The
再配置実行部18は、ステップS3でインクリメントしたファイル番号Nと、ファイル情報記憶部12の最大ファイル番号を比較し、ファイル番号Nが最大ファイル番号以下である場合(ステップS4;No)、ステップS2に移行し、ファイルNの再配置処理を行う。
ファイル番号Nが最大ファイル番号を超えた場合(ステップS4;Yes)、第1の不揮発性メモリ124から第2の不揮発性メモリ125へのファイルの移動は完了する。再配置実行部18はステップS5に処理を移行する。
The
If the file number N exceeds the maximum file number (step S4; Yes), the transfer of the file from the first
再配置実行部18は、ファイル番号Nを1に設定する(ステップS5)。これはファイル1が再配置処理の対象であることを示す。次いで、ファイル情報記憶部12を参照し、ファイルNが第2の不揮発性メモリ125から第1の不揮発性メモリ124に移動するファイルであれば、第2の不揮発性メモリ125から第1の不揮発性メモリ124にファイルNを移動する(ステップS6)。ファイルNの再配置処理が完了するとファイル番号を1インクリメントする(ステップS7)。
The
再配置実行部18は、ステップS3でインクリメントしたファイル番号Nと、ファイル情報記憶部12の最大ファイル番号を比較し、ファイル番号Nが最大ファイル番号以下である場合(ステップS8;No)、ステップS6に移行し、ファイルNの再配置処理を行う。
ファイル番号Nが最大ファイル番号を超えた場合(ステップS8;Yes)、第2の不揮発性メモリ125から第1の不揮発性メモリ124へのファイルの移動が完了する。
最後に、再配置実行部18は、再配置ファイル情報記憶部19のファイル番号Nに0を代入して再配置処理を終了する(ステップS9)。
The
If the file number N exceeds the maximum file number (Step S8; Yes), the transfer of the file from the second
Finally, the
再配置実行部18は、ステップS1からステップS4において第1の不揮発性メモリ124から第2の不揮発性メモリ125へのファイルの再配置を行い、ステップS5からステップS8において第2の不揮発性メモリ125から第1の不揮発性メモリ124へのファイルの再配置を行う。
再配置処理が中断した場合には、再配置ファイル情報記憶部19には0以外のファイル番号Nが保存されている。
再配置ファイル情報記憶部19のファイル番号Nの値が、第2の不揮発性メモリ125に保存するファイルのファイル番号の場合には、ファイル番号NのステップS2の直後に中断したと判定し、ファイル番号N+1のファイルのステップS2から再開する。
再配置ファイル情報記憶部19のファイル番号Nの値が、第1の不揮発性メモリ124に保存するファイルのファイル番号の場合には、ファイル番号NのステップS6の直後に中断したと判定し、ファイル番号N+1のファイルのステップS6から再開する。
The
When the relocation process is interrupted, a file number N other than 0 is stored in the relocation file
If the value of file number N in the relocation file
If the value of file number N in the relocation file
[ファイル情報記憶部の保存先]
ファイル情報記憶部12は、第1の不揮発性メモリ124、第2の不揮発性メモリ125、第3の不揮発性メモリ127の何れかに記憶する。
図10は、第1の不揮発性メモリ124にファイル情報記憶部12を設けた例である。第1の不揮発性メモリ124にファイル情報記憶部12を設けると、ファイル情報記憶部への書き込みが、第2の不揮発性メモリへの寿命に影響を与えないという効果がある。
[File information storage destination]
The file
10 shows an example in which a file
図11は、第2の不揮発性メモリ125にファイル情報記憶部12を設けた例である。第2の不揮発性メモリ125にファイル情報記憶部12を設けると、ファイル情報記憶部の容量が、容量あたりのコストが高い第1の不揮発性メモリの使用容量に影響を与えないという効果がある。
Figure 11 shows an example in which a file
図13は、第3の不揮発性メモリ127にファイル情報記憶部12を設けた例である。第3の不揮発性メモリ127にファイル情報記憶部12を設けると、ファイル情報記憶部への書き込みが、第2の不揮発性メモリへの寿命に影響を与えず、さらにファイル情報記憶部の容量が、容量あたりのコストが高い第1の不揮発性メモリの使用容量に影響を与えないという効果がある。
Figure 13 shows an example in which a file
以上説明したように、本開示にかかる情報処理装置1は、書込み回数制限のない第1の不揮発性メモリ124と、書込み回数制限のある第2の不揮発性メモリ125の少なくとも2つの不揮発性メモリ124、125を備え、通常タスク実行部11が通常のタスクを実行している間、ファイルの書込み履歴をファイル情報記憶部12に作成し、ファイルの書込み履歴に基づいて、第2の不揮発性メモリ125に書込み頻度が低くなるように、各ファイルの保存先を決定する。
As described above, the
また、ファイルの書込み履歴に基づいて、書込み回数制限ない第1の不揮発性メモリ124に記憶するファイルをなるべく多くするように、ファイルの保存先を決定する。
In addition, based on the file writing history, the file storage destination is determined so that as many files as possible are stored in the first
書込み頻度が大きく変動しているデータを除外することにより、一時的な変化の影響を受けることなく、定常的な使用状態において効率的に機能するファイル管理ができる。 By excluding data whose write frequency fluctuates greatly, file management can be achieved that functions efficiently under steady-state usage conditions without being affected by temporary changes.
また、ファイルの保存先を決定するだけでなく、決定した保存先へのファイルの再配置を行う。再配置の際には、移動を行ったファイル番号を記憶する。そのため、処理が中断しても継続的に再開できる。 In addition to deciding where to save the file, it also relocates the file to the decided save destination. When relocating, it remembers the file number of the file that was moved. This means that even if the process is interrupted, it can be resumed continuously.
1 情報処理装置
11 通常タスク実行部
12 ファイル情報記憶部
13 ファイル管理部
14 ファイル保存先変更要求部
15 ファイル保存先決定部
16 ファイル保存先変更部
17 書込み頻度修正部
18 再配置実行部
19 再配置ファイル情報記憶部
111 CPU
118 第1のドライバ
119 第2のドライバ
122 表示部
123 入力部
124 第1の不揮発性メモリ
125 第2の不揮発性メモリ
126 第3のドライバ
127 第3の不揮発性メモリ
REFERENCE SIGNS
118
Claims (10)
書込み回数制限のある第2の不揮発性メモリと、
通常のタスクを実行する通常タスク実行部と、
前記通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、
前記ファイルの書込み履歴に基づき、前記第2の不揮発性メモリの書込み頻度が低くなるように前記ファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、
前記ファイル保存先決定部が決定した保存先に従い、前記第1の不揮発性メモリ又は前記第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、
前記ファイル保存先決定部が決定したファイルの保存先に基づき、前記第1の不揮発性メモリ又は前記第2の不揮発性メモリに記憶するファイルの再配置を行う再配置実行部と、
再配置が実行されているファイルの識別情報を記憶する再配置ファイル情報記憶部と、
を備え、
前記再配置実行部は、再配置が中断していた場合に前記識別情報を基に再配置を再開する、
情報処理装置。 a first non-volatile memory having no limit on the number of write operations;
a second non-volatile memory having a write limit;
a normal task execution unit that executes normal tasks;
a file information storage unit that stores a write history of a file in the normal task;
a file destination determination unit that determines a destination for storing the file stored in the file information storage unit based on the write history of the file so that the write frequency of the second non-volatile memory is low;
a file destination change unit that causes a file to be saved in the first non-volatile memory or the second non-volatile memory according to the destination determined by the file destination determination unit;
a relocation execution unit that relocates a file to be stored in the first non-volatile memory or the second non-volatile memory based on the file storage destination determined by the file storage destination determination unit;
a relocation file information storage unit that stores identification information of a file for which relocation is being executed;
Equipped with
the reallocation execution unit resumes the reallocation based on the identification information when the reallocation is interrupted;
Information processing device.
書込み回数制限のある第2の不揮発性メモリと、
通常のタスクを実行する通常タスク実行部と、
前記通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、
前記ファイルの書込み履歴に基づき、前記第2の不揮発性メモリの書込み頻度が低くなるように前記ファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、
前記ファイル保存先決定部が決定した保存先に従い前記第1の不揮発性メモリ又は前記第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、
前記ファイル保存先決定部が決定したファイルの保存先に基づき、前記第1の不揮発性メモリ又は前記第2の不揮発性メモリに記憶するファイルの再配置を行う再配置実行部と、
再配置が実行されているファイルの識別情報を記憶する再配置ファイル情報記憶部と、
を備え、
前記再配置実行部は、再配置が中断していた場合に前記識別情報を基に再配置を再開する、
情報処理システム。 a first non-volatile memory having no limit on the number of write operations;
a second non-volatile memory having a write limit;
a normal task execution unit that executes normal tasks;
a file information storage unit that stores a write history of a file in the normal task;
a file destination determination unit that determines a destination for storing the file stored in the file information storage unit based on the write history of the file so that the write frequency of the second non-volatile memory is low;
a file destination change unit that causes a file to be saved in the first non-volatile memory or the second non-volatile memory according to the destination determined by the file destination determination unit;
a relocation execution unit that relocates a file to be stored in the first non-volatile memory or the second non-volatile memory based on the file storage destination determined by the file storage destination determination unit;
a relocation file information storage unit that stores identification information of a file for which relocation is being executed;
Equipped with
the reallocation execution unit resumes the reallocation based on the identification information when the reallocation is interrupted;
Information processing system.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020122660A JP7548742B2 (en) | 2020-07-17 | 2020-07-17 | Information processing device and information processing system for managing destinations for storing files in non-volatile memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020122660A JP7548742B2 (en) | 2020-07-17 | 2020-07-17 | Information processing device and information processing system for managing destinations for storing files in non-volatile memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022019083A JP2022019083A (en) | 2022-01-27 |
| JP7548742B2 true JP7548742B2 (en) | 2024-09-10 |
Family
ID=80204027
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020122660A Active JP7548742B2 (en) | 2020-07-17 | 2020-07-17 | Information processing device and information processing system for managing destinations for storing files in non-volatile memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7548742B2 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009157441A (en) | 2007-12-25 | 2009-07-16 | Toshiba Corp | Information processing apparatus, file rearrangement method, and program |
| JP2011022963A (en) | 2009-07-21 | 2011-02-03 | Panasonic Corp | Information processing apparatus and information processing method |
| JP2014032582A (en) | 2012-08-06 | 2014-02-20 | Canon Inc | Image processing apparatus, control method and program of storage device of image processing apparatus |
| WO2017006674A1 (en) | 2015-07-06 | 2017-01-12 | 日本電気株式会社 | Information processing system, storage control device, storage control method, and storage control program |
| WO2017006675A1 (en) | 2015-07-06 | 2017-01-12 | 日本電気株式会社 | Information processing system, storage control device, storage control method, and storage control program |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3215237B2 (en) * | 1993-10-01 | 2001-10-02 | 富士通株式会社 | Storage device and method for writing / erasing storage device |
-
2020
- 2020-07-17 JP JP2020122660A patent/JP7548742B2/en active Active
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2009157441A (en) | 2007-12-25 | 2009-07-16 | Toshiba Corp | Information processing apparatus, file rearrangement method, and program |
| JP2011022963A (en) | 2009-07-21 | 2011-02-03 | Panasonic Corp | Information processing apparatus and information processing method |
| JP2014032582A (en) | 2012-08-06 | 2014-02-20 | Canon Inc | Image processing apparatus, control method and program of storage device of image processing apparatus |
| WO2017006674A1 (en) | 2015-07-06 | 2017-01-12 | 日本電気株式会社 | Information processing system, storage control device, storage control method, and storage control program |
| WO2017006675A1 (en) | 2015-07-06 | 2017-01-12 | 日本電気株式会社 | Information processing system, storage control device, storage control method, and storage control program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022019083A (en) | 2022-01-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11693463B2 (en) | Memory system and controller | |
| JP4844639B2 (en) | MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD | |
| JP4837731B2 (en) | Flash memory with programmable durability | |
| JP4822440B2 (en) | Internal maintenance schedule request for non-volatile memory systems | |
| US5530827A (en) | Data management system for programming-limited type semiconductor memory and IC memory card employing data save/erase process with flag assignment | |
| EP1561168B1 (en) | Method and apparatus for splitting a logical block | |
| US9753653B2 (en) | High-priority NAND operations management | |
| KR100914089B1 (en) | Maintaining erase counts in non-volatile storage systems | |
| US8200904B2 (en) | System and method for clearing data from a cache | |
| EP1430386B1 (en) | Method of writing data to non-volatile memory | |
| KR100818035B1 (en) | Data management and data management systems and computer readable storage media on storage media | |
| US20070150694A1 (en) | Hybrid Mapping Implementation Within a Non-Volatile Memory System | |
| US20150277786A1 (en) | Method, device, and program for managing a flash memory for mass storage | |
| US10956067B2 (en) | Memory controller and flash memory system having the same | |
| US9948809B2 (en) | Image forming apparatus, memory management method for image forming apparatus, and program, using discretely arranged blocks in prioritizing information | |
| JP4829202B2 (en) | Storage device and memory control method | |
| JP7548742B2 (en) | Information processing device and information processing system for managing destinations for storing files in non-volatile memory | |
| JP2018028830A (en) | Electronic control device and information storage method thereof | |
| JP2011159138A (en) | Storage device and method of controlling the same | |
| JP4818453B1 (en) | Electronic device and data reading method | |
| JP6329185B2 (en) | Memory control circuit, memory control system, memory control method, and memory control program | |
| JPH05158815A (en) | Memory device | |
| JP2009271848A (en) | File system and data management method | |
| JP2005122529A (en) | Semiconductor memory device | |
| US20110296080A1 (en) | Method Of Writing To A NAND Memory Block Based File System With Log Based Buffering |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230512 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240219 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240305 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240423 |
|
| 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: 20240730 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20240829 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7548742 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |