JP2022019083A - Information processing device and information processing system for managing storage destination for files stored in nonvolatile memory - Google Patents
Information processing device and information processing system for managing storage destination for files stored in nonvolatile memory Download PDFInfo
- Publication number
- JP2022019083A JP2022019083A JP2020122660A JP2020122660A JP2022019083A JP 2022019083 A JP2022019083 A JP 2022019083A JP 2020122660 A JP2020122660 A JP 2020122660A JP 2020122660 A JP2020122660 A JP 2020122660A JP 2022019083 A JP2022019083 A JP 2022019083A
- Authority
- JP
- Japan
- Prior art keywords
- file
- volatile memory
- unit
- write
- information processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000015654 memory Effects 0.000 title claims abstract description 180
- 230000010365 information processing Effects 0.000 title claims description 53
- 230000008859 change Effects 0.000 claims abstract description 9
- 238000012508 change request Methods 0.000 claims abstract description 8
- 238000012937 correction Methods 0.000 claims description 7
- 230000008707 rearrangement Effects 0.000 claims description 5
- 238000000034 method Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 9
- 239000004065 semiconductor Substances 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000035939 shock Effects 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
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Abstract
Description
本発明は、不揮発性メモリに記憶するファイルの保存先を管理する情報処理装置、及び情報処理システムに関する。 The present invention relates to an information processing apparatus and an information processing system that manages a storage destination of a file stored in a non-volatile memory.
工作機械等の産業機械を制御する制御装置は、産業機械を制御するための制御用プログラムを記憶したり、産業機械の動作状況を記録したりするためのストレージデバイスを備えている。制御装置は、複数の産業機械が動作する環境に設置されることが多く、振動等の影響を受けやすい劣悪な状況下で動作する。そのため、制御装置ではストレージデバイスとして駆動部分が無く振動による影響を受けにくいNANDフラッシュを使用した半導体ストレージが用いられる事がある。 A control device for controlling an industrial machine such as a machine tool is provided with a storage device for storing a control program for controlling the industrial machine and recording the operating status of the industrial machine. The control device is often installed in an environment in which a plurality of industrial machines operate, and operates in a poor condition that is easily affected by vibration or the like. Therefore, in the control device, a semiconductor storage using a NAND flash, which has no driving portion and is not easily affected by vibration, may be used as a storage device.
SSD(Solid State Drive)等のNANDフラッシュを利用した不揮発性メモリは、メモリセルの集合であるページと呼ばれる単位でデータの書き込み及び読み込みが行われる。また、ページに書き込まれているデータの消去は、複数のページをまとめたブロックという単位で行われる。そして、フラッシュメモリではデータの上書きを行うことができないため、ページ内のデータを変更するときは、そのページを含むブロック全体のデータを一旦退避し、当該ブロックの消去を行なった後に、変更したデータと共にブロック全体を書き戻している。 In a non-volatile memory using a NAND flash such as SSD (Solid State Drive), data is written and read in a unit called a page which is a set of memory cells. In addition, the data written on the page is erased in the unit of a block in which a plurality of pages are put together. Since the data cannot be overwritten in the flash memory, when the data in the page is changed, the data of the entire block including the page is temporarily saved, the block is erased, and then the changed data is used. And write back the entire block.
NANDフラッシュを利用したフラッシュメモリのメモリセルは、動作原理上絶縁体となる酸化膜が貫通する電子によって劣化するため、書き込み回数が限られる。そのため、フラッシュメモリでは、それぞれのブロックに対する書き込み消去回数をカウントすると共に、各ブロックの書き込み消去回数がなるべく均一になるように書き込み制御(ウェアレベリング)がなされている。そのため、最も書き込み消去回数の多いブロックの書き込み消去回数をフラッシュメモリから取得することで、フラッシュメモリの寿命を管理できる。例えば、最も書き込み消去回数の多いブロックの書き込み消去回数が、許容される最大書き込み消去回数の90%を超えた場合にアラームを出力することで、寿命の近づいたフラッシュメモリを交換することができる。 A memory cell of a flash memory using a NAND flash is deteriorated by electrons penetrating an oxide film which is an insulator in principle of operation, so that the number of writes is limited. Therefore, in the flash memory, the write / erase count for each block is counted, and the write control (wear leveling) is performed so that the write / erase count for each block is as uniform as possible. Therefore, the life of the flash memory can be managed by acquiring the write / erase count of the block having the largest write / erase count from the flash memory. For example, by outputting an alarm when the write / erase count of the block having the largest write / erase count exceeds 90% of the maximum allowable write / erase count, the flash memory having reached the end of its life can be replaced.
一方、不揮発性メモリには、フラッシュメモリと異なり、電気的に劣化する構成を持たない不揮発性メモリがある。本開示では、このような不揮発性メモリを書込み回数制限のない不揮発性メモリと呼ぶ。書込み回数制限のない不揮発性メモリには、例えば、MRAMやバッテリバックアップされたSRAMがある。
書込み回数制限のない不揮発性メモリは、一般的に容量のあたりのコストが高い。そのため、不揮発性メモリのハードウェアコストを抑えるために、従来の装置には、書込み回数制限のある不揮発性メモリと書込み回数制限のない不揮発性メモリの両方を搭載し、書込み回数制限のある不揮発性メモリには書込み頻度が低いファイルを保存し、書込み回数制限のない不揮発性メモリには書込み頻度が高いファイルを保存するものがある。
On the other hand, the non-volatile memory includes a non-volatile memory that does not have a configuration that is electrically deteriorated, unlike a flash memory. In the present disclosure, such a non-volatile memory is referred to as a non-volatile memory having no limit on the number of writes. Non-volatile memory with no write limit includes, for example, MRAM and battery-backed SRAM.
Non-volatile memory with no write limit generally has a high cost per capacity. Therefore, in order to reduce the hardware cost of the non-volatile memory, the conventional device is equipped with both a non-volatile memory having a write count limit and a non-volatile memory having no write count limit, and the non-volatile memory has a write count limit. Some memory stores files with low write frequency, and some non-volatile memory with no limit on the number of writes stores files with high write frequency.
しかし、書込み頻度に関しては事前に分かるものではなく、制御装置の使用状況、制御対象となる機械の使用状況、各機械の機能の使用状況に応じて書込み頻度が変わるファイルがある。どのデータの書込み頻度が高いかは制御装置の使用前に知ることはできない。 However, the write frequency is not known in advance, and there are files whose write frequency changes according to the usage status of the control device, the usage status of the machine to be controlled, and the usage status of the function of each machine. It is not possible to know which data is written frequently before using the controller.
書込み頻度の高いファイルを書込み回数制限のない不揮発性メモリに保存する技術として、あるタスクからの、フラッシュメモリへの書込み量(もしくは書込み頻度や書込み回数)がある閾値より高い場合には、そのタスクからのファイルを書込み回数制限のない不揮発性メモリに保存する技術が存在する。例えば、特許文献1参照。
As a technique for saving a file with a high write frequency in a non-volatile memory with no limit on the number of writes, if the amount of writes (or the frequency of writes or the number of writes) from a certain task to the flash memory is higher than a certain threshold, the task There is a technique for saving a file from to in a non-volatile memory with no limit on the number of writes. See, for example,
書込み回数制限のない不揮発性メモリは、容量あたりのコストが高いため、使用開始前に凡その使用量を予想し、必要最低限の容量の不揮発性メモリを搭載することが一般的である。そのため、予想よりも多く書込みが行われる場合には、容量の大きな不揮発性メモリへの交換が必要となる。 Since the non-volatile memory having no limit on the number of writes has a high cost per capacity, it is common to estimate the usage amount before the start of use and to install the non-volatile memory having the minimum required capacity. Therefore, if more writes are performed than expected, it is necessary to replace the memory with a non-volatile memory having a large capacity.
不揮発性メモリの交換は、コストと手間がかかる。ハードウェア資源を有効に使うためには、最初に搭載されていた不揮発性メモリを交換せずに使い続けることができたほうがよい。 Replacing the non-volatile memory is costly and laborious. In order to make effective use of hardware resources, it is better to be able to continue using the non-volatile memory that was originally installed without replacing it.
書込み回数制限のない不揮発性メモリと書込み回数制限のある不揮発性メモリとの両方を使用する場合、最初に搭載されていた不揮発性メモリを交換せずに使い続けるために、ファイルを効率的に分配し、書込み回数制限のある不揮発性メモリの寿命を延ばす技術が望まれている。 When using both non-volatile memory with no write limit and non-volatile memory with write limit, files are efficiently distributed so that the originally installed non-volatile memory can be used without replacement. However, a technique for extending the life of a non-volatile memory having a limited number of writes is desired.
本開示の一態様は、情報処理装置であって、書込み回数制限のない第1の不揮発性メモリと、書込み回数制限のある第2の不揮発性メモリと、通常のタスクを実行する通常タスク実行部と、通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、ファイルの書込み履歴に基づき、第2の不揮発性メモリの書込み頻度が低くなるようにファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、ファイル保存先決定部が決定した保存先に従い、第1の不揮発性メモリ又は第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、を有する。 One aspect of the present disclosure is an information processing apparatus, which is a first non-volatile memory having no write count limit, a second non-volatile memory having a write count limit, and a normal task execution unit for executing a normal task. And the file information storage unit that stores the file write history in a normal task, and the file stored in the file information storage unit so that the write frequency of the second non-volatile memory is low based on the file write history. A file save destination determination unit that determines a save destination, and a file save destination change unit that saves a file in the first non-volatile memory or the second non-volatile memory according to the save destination determined by the file save destination determination unit. Have.
本開示の一態様は、情報処理システムであって、書込み回数制限のない第1の不揮発性メモリと、書込み回数制限のある第2の不揮発性メモリと、通常のタスクを実行する通常タスク実行部と、通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、ファイルの書込み履歴に基づき、第2の不揮発性メモリの書込み頻度が低くなるようにファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、ファイル保存先決定部が決定した保存先に従い第1の不揮発性メモリ又は第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、を有する。 One aspect of the present disclosure is an information processing system, in which a first non-volatile memory having no write count limit, a second non-volatile memory having a write count limit, and a normal task execution unit for executing a normal task. And the file information storage unit that stores the file write history in a normal task, and the file stored in the file information storage unit so that the write frequency of the second non-volatile memory is low based on the file write history. It has a file storage destination determination unit that determines a storage destination, and a file storage destination change unit that stores a file in a first non-volatile memory or a second non-volatile memory according to the storage destination determined by the file storage destination determination unit. ..
本開示によれば、書込み回数制限のない不揮発性メモリと書込み回数制限のある不揮発性メモリとの両方を使用する場合、ファイルを効率的に分配し、書込み回数制限のある不揮発性メモリの寿命を延ばすことができる。 According to the present disclosure, when both a non-volatile memory with no write limit and a non-volatile memory with a write limit are used, the files are efficiently distributed and the life of the non-volatile memory with a write limit is extended. Can be extended.
[第1の開示]
以下、本開示の情報処理装置1の一例を示す。情報処理装置1は、例えば工作機械などの産業機械を制御する制御装置として実装することができる。本開示は、書込み回数制限のない不揮発性メモリと書込み回数制限のある不揮発性メモリとの両方を使用する情報処理装置1に適用されるものであり、情報処理装置1の種類は特に限定しない。
[First disclosure]
Hereinafter, 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 non-volatile memory includes a first non-volatile
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]
FIG. 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 save destination
Further, as an application, the write frequency of the file and the operating state of the
ファイル保存先決定部15は、保存先変更要求を受け取ると、ファイル情報記憶部12に記録された書込み履歴に基づき、第2の不揮発性メモリ125の書込み頻度が低くなるように各ファイルの保存先を決定する。
When the file save
ファイル保存先変更部16は、第1のドライバ118及び第2のドライバ119に指令を出力し、決定した保存先(第1の不揮発性メモリ124又は第2の不揮発性メモリ125)にファイルを保存させる。
The file save
[ファイル保存先の決定方法]
ファイルの保存先の決定方法の一例を示す。この例では、各ファイルの保存先の組合せ全てについて、ファイル情報記憶部12に記憶されたファイルの書込み履歴を参照して、各組合せにおける、第1の不揮発性メモリ124の合計使用容量及び第2の不揮発性メモリ125の書込み頻度合計を求める。
この結果、第1の不揮発性メモリ124の合計使用容量が、第1の不揮発性メモリ124の容量の上限を越えず、第2の不揮発性メモリ125の書込み頻度の合計が最も低い組合せを採用する。
[How to determine the file save destination]
An example of how to determine the save destination of a file is shown. In this example, for all combinations of storage destinations of each file, the total used capacity of the first
As a result, the combination in which the total used capacity of the first
例えば、図4では、書込み履歴を見ると、ファイル1~ファイル4の4つのファイルが書き込まれており、各ファイル1~ファイル4のファイル容量はそれぞれ300Kbyte、500Kbyte、800Kbyte、200Kbyteであり、各ファイル1~ファイル4の1日当たりの書込み頻度は、4回、5回、10回、3回である。
For example, in FIG. 4, looking at the write history, four
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 of the first
For each combination, the total of the file capacities allocated to the first non-volatile memory 124 (hereinafter referred to as the total used capacity of the first non-volatile memory 124) is the maximum capacity of the first non-volatile memory 124 (1024Kbyte). The combinations that are less than 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 save destination of the file is not limited to the above method. For example, when the file
The file storage
[第2の開示]
図6は、第2の開示の情報処理装置1のブロック図である。第2の開示において、情報処理装置1は、書込み頻度修正部17を備える。
書込み頻度修正部17は、書込み履歴において、一時的に書込み頻度が大きく変動しているデータを除外する。例えば、機械の調整中などには、ファイルの書込み頻度が一時的に高くなる。書込み頻度修正部17は、例えば、四分位数や外れ値検定などを行い、書込み頻度が高い若しくは低い場合に、その時期のデータを書込み履歴から除外する。
[Second disclosure]
FIG. 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[回/日]となるので、この値が修正後の書込み頻度となる。
FIG. 7 is an example of the file
As shown in FIG. 7B, if the writing frequency of a file on the first day is 9 times, the second day is 11 times, the third day is 100 times, and the fourth day is 10 times, only the third day Is fluctuating greatly. The writing
ファイルの保存先は、修正後の書込み頻度に基づいて算出する。書込み頻度を修正することにより、例えば、3日目の書込み回数100回のように、一時的な変化の影響を受けることなく、定常的な使用状態で効率的に機能するファイル管理ができる。 The file save destination is calculated based on the write frequency after modification. By modifying the write frequency, it is possible to manage a file that functions efficiently in a steady use state without being affected by a temporary change, for example, the number of writes is 100 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に記録された全てのファイルを移動すると、ファイルの再配置が完了する。
[Relocate files]
When the save destination of the file is decided, it is necessary to relocate the file to move the file to the decided save destination. The
First, the file is moved from the first
Next, the file recorded in the second
情報処理装置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
When the file number N exceeds the maximum file number (step S4; Yes), the movement 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
When the file number N exceeds the maximum file number (step S8; Yes), the movement 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 the file number N of the relocated file
If the value of the file number N of the relocated file
[ファイル情報記憶部の保存先]
ファイル情報記憶部12は、第1の不揮発性メモリ124、第2の不揮発性メモリ125、第3の不揮発性メモリ127の何れかに記憶する。
図10は、第1の不揮発性メモリ124にファイル情報記憶部12を設けた例である。第1の不揮発性メモリ124にファイル情報記憶部12を設けると、ファイル情報記憶部への書き込みが、第2の不揮発性メモリへの寿命に影響を与えないという効果がある。
[Save in file information storage]
The file
FIG. 10 is an example in which the file
図11は、第2の不揮発性メモリ125にファイル情報記憶部12を設けた例である。第2の不揮発性メモリ125にファイル情報記憶部12を設けると、ファイル情報記憶部の容量が、容量あたりのコストが高い第1の不揮発性メモリの使用容量に影響を与えないという効果がある。
FIG. 11 is an example in which the file
図13は、第3の不揮発性メモリ127にファイル情報記憶部12を設けた例である。第3の不揮発性メモリ127にファイル情報記憶部12を設けると、ファイル情報記憶部への書き込みが、第2の不揮発性メモリへの寿命に影響を与えず、さらにファイル情報記憶部の容量が、容量あたりのコストが高い第1の不揮発性メモリの使用容量に影響を与えないという効果がある。
FIG. 13 is an example in which the file
以上説明したように、本開示にかかる情報処理装置1は、書込み回数制限のない第1の不揮発性メモリ124と、書込み回数制限のある第2の不揮発性メモリ125の少なくとも2つの不揮発性メモリ124、125を備え、通常タスク実行部11が通常のタスクを実行している間、ファイルの書込み履歴をファイル情報記憶部12に作成し、ファイルの書込み履歴に基づいて、第2の不揮発性メモリ125に書込み頻度が低くなるように、各ファイルの保存先を決定する。
As described above, the
また、ファイルの書込み履歴に基づいて、書込み回数制限ない第1の不揮発性メモリ124に記憶するファイルをなるべく多くするように、ファイルの保存先を決定する。
Further, based on the write history of the file, the save destination of the file is determined so as to store as many files as possible in the first
書込み頻度が大きく変動しているデータを除外することにより、一時的な変化の影響を受けることなく、定常的な使用状態において効率的に機能するファイル管理ができる。 By excluding data whose write frequency fluctuates greatly, it is possible to manage files that function efficiently in steady use without being affected by temporary changes.
また、ファイルの保存先を決定するだけでなく、決定した保存先へのファイルの再配置を行う。再配置の際には、移動を行ったファイル番号を記憶する。そのため、処理が中断しても継続的に再開できる。 In addition to determining the save destination of the file, the file is rearranged to the determined save destination. When relocating, the moved file number is stored. Therefore, even if the processing is interrupted, it can be continuously restarted.
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の不揮発性メモリ
1
118
Claims (12)
書込み回数制限のある第2の不揮発性メモリと、
通常のタスクを実行する通常タスク実行部と、
前記通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、
前記ファイルの書込み履歴に基づき、前記第2の不揮発性メモリの書込み頻度が低くなるように前記ファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、
前記ファイル保存先決定部が決定した保存先に従い、前記第1の不揮発性メモリ又は前記第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、
を有する情報処理装置。 The first non-volatile memory with no write limit and
A second non-volatile memory with a write limit and
A normal task execution unit that executes normal tasks, and a normal task execution unit
A file information storage unit that stores the 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 so that the write frequency of the second non-volatile memory is low based on the file write history.
A file storage destination change unit for storing a file in the first non-volatile memory or the second non-volatile memory according to a storage destination determined by the file storage destination determination unit.
Information processing device with.
前記再配置実行部は、前記識別情報を基に再配置を再開する、請求項7記載の情報処理装置。 It is equipped with a relocation file information storage unit that stores the identification information of the file for which relocation is being executed.
The information processing apparatus according to claim 7, wherein the rearrangement execution unit restarts the rearrangement based on the identification information.
書込み回数制限のある第2の不揮発性メモリと、
通常のタスクを実行する通常タスク実行部と、
前記通常のタスクにおけるファイルの書込み履歴を記憶するファイル情報記憶部と、
前記ファイルの書込み履歴に基づき、前記第2の不揮発性メモリの書込み頻度が低くなるように前記ファイル情報記憶部に記憶されたファイルの保存先を決定するファイル保存先決定部と、
前記ファイル保存先決定部が決定した保存先に従い前記第1の不揮発性メモリ又は前記第2の不揮発性メモリへファイルを保存させるファイル保存先変更部と、
を有する情報処理システム。 The first non-volatile memory with no write limit and
A second non-volatile memory with a write limit and
A normal task execution unit that executes normal tasks, and a normal task execution unit
A file information storage unit that stores the 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 so that the write frequency of the second non-volatile memory is low based on the file write history.
A file storage destination change unit that stores a file in the first non-volatile memory or the second non-volatile memory according to a storage destination determined by the file storage destination determination unit.
Information processing system with.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020122660A JP2022019083A (en) | 2020-07-17 | 2020-07-17 | Information processing device and information processing system for managing storage destination for files stored in nonvolatile memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020122660A JP2022019083A (en) | 2020-07-17 | 2020-07-17 | Information processing device and information processing system for managing storage destination for files stored in nonvolatile memory |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2022019083A true JP2022019083A (en) | 2022-01-27 |
Family
ID=80204027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020122660A Pending JP2022019083A (en) | 2020-07-17 | 2020-07-17 | Information processing device and information processing system for managing storage destination for files stored in nonvolatile memory |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2022019083A (en) |
-
2020
- 2020-07-17 JP JP2020122660A patent/JP2022019083A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7089349B2 (en) | Internal maintenance schedule request for non-volatile memory system | |
US7246268B2 (en) | Method and apparatus for dynamic degradation detection | |
US8200904B2 (en) | System and method for clearing data from a cache | |
US8041879B2 (en) | Flash memory backup system and method | |
JP4472010B2 (en) | Storage device | |
US8347024B2 (en) | Memory system monitoring data erasing time or writing time | |
US20100115183A1 (en) | Storage Apparatus and Method of Managing Data Storage Area | |
US10241678B2 (en) | Data storage device and data writing method capable of avoiding repeated write operation of a TLC block when interrupted | |
US20100125696A1 (en) | Memory Controller For Controlling The Wear In A Non-volatile Memory Device And A Method Of Operation Therefor | |
JP2009503629A (en) | Flash memory with programmable durability | |
US20200159428A1 (en) | Memory controller and flash memory system having the same | |
US20140173188A1 (en) | Information processing device | |
KR20190079672A (en) | Information processing apparatus, memory access method, and computer program | |
JPWO2009004674A1 (en) | Storage device, disk device, write determination method, control device | |
US8706990B2 (en) | Adaptive internal table backup for non-volatile memory system | |
US9948809B2 (en) | Image forming apparatus, memory management method for image forming apparatus, and program, using discretely arranged blocks in prioritizing information | |
JP2021064333A (en) | Memory system and garbage collection control method | |
CN105955672B (en) | Solid-state storage system and method for flexibly controlling wear leveling | |
JP2022019083A (en) | Information processing device and information processing system for managing storage destination for files stored in nonvolatile memory | |
JP2020119007A (en) | Information processing apparatus, storage control apparatus and storage control program | |
US20230004293A1 (en) | Controller, memory system, and method of controlling memory | |
JP6329185B2 (en) | Memory control circuit, memory control system, memory control method, and memory control program | |
JP4818453B1 (en) | Electronic device and data reading method | |
WO2016051557A1 (en) | Controller | |
JP4239754B2 (en) | Nonvolatile memory system |
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 |