JP2022057227A - Shared storage management apparatus and shared storage management method - Google Patents
Shared storage management apparatus and shared storage management method Download PDFInfo
- Publication number
- JP2022057227A JP2022057227A JP2020165366A JP2020165366A JP2022057227A JP 2022057227 A JP2022057227 A JP 2022057227A JP 2020165366 A JP2020165366 A JP 2020165366A JP 2020165366 A JP2020165366 A JP 2020165366A JP 2022057227 A JP2022057227 A JP 2022057227A
- Authority
- JP
- Japan
- Prior art keywords
- shared storage
- data
- storage
- storage management
- shared
- 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
- 238000003860 storage Methods 0.000 title claims abstract description 261
- 238000007726 management method Methods 0.000 title claims description 88
- 238000007906 compression Methods 0.000 claims abstract description 43
- 230000006835 compression Effects 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims description 34
- 230000004044 response Effects 0.000 abstract description 3
- 238000013144 data compression Methods 0.000 description 35
- 230000008569 process Effects 0.000 description 22
- 230000000694 effects Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 230000014759 maintenance of location Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000006866 deterioration Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
Images
Abstract
Description
本発明は、例えば自動車等の車両に搭載されるシステムにおける共用ストレージ管理装置及び共用ストレージ管理方法に関する。 The present invention relates to a shared storage management device and a shared storage management method in a system mounted on a vehicle such as an automobile.
例えば、自動車等の車両には、コンピュータを含んだ複数のECU(Electronic Control Unit)と称される各種の電子装置を、CANやイーサネット等によりネットワーク接続して構成されるシステムが設けられる。各ECUには、複数のアプリケーションが設けられ、それらアプリケーション間で相互に情報がやり取りされる。また、ECUのなかには、車外との通信可能な通信機器も含まれ、外部機器とのデータの送受信も行われる。例えば、ドライブレコーダのデータをクラウドにアップロードしたり、外部から更新プログラムや各種データをダウンロードしたりすることが行われる。 For example, a vehicle such as an automobile is provided with a system in which a plurality of electronic devices called ECUs (Electronic Control Units) including a computer are connected to a network by CAN, Ethernet, or the like. A plurality of applications are provided in each ECU, and information is exchanged between these applications. Further, the ECU includes a communication device capable of communicating with the outside of the vehicle, and data is transmitted / received to / from an external device. For example, the data of the drive recorder is uploaded to the cloud, and the update program and various data are downloaded from the outside.
このとき、各アプリケーションが、ダウンロードやアップロードを行う際には、一時的に記憶領域を使用するが、各ECUにおいて専用の記憶領域を用意することは無駄が多い事情がある。そこで、例えば一つのECUに共用ストレージを設け、複数のアプリケーションが任意のタイミングで共用ストレージに対するデータの書き込みや削除を行うようになっている。尚、特許文献1では、データをストレージに記録するに際し、システム内に設けられている複数のストレージから空き領域が存在するストレージを判定し、そのストレージに記録することで、複数のストレージをあたかも一つのストレージであるかのように利用することが提案されている。
At this time, when each application downloads or uploads, the storage area is temporarily used, but it is wasteful to prepare a dedicated storage area in each ECU. Therefore, for example, a shared storage is provided in one ECU, and a plurality of applications write or delete data in the shared storage at an arbitrary timing. In
ところで、各アプリケーションは、共用ストレージを用いたアップロード、ダウンロードの処理が終わった後には、そのデータが不要になったと判断し、共用ストレージの記憶領域から削除する処理を行う。上記のように、共用ストレージを複数のアプリケーションで共用して使用する場合、共用ストレージの利用が集中することがあると、別のアプリケーションが共用ストレージを利用しようとしても、記憶領域の空き容量が不足して利用できない事態が起こり得る。この場合、他のアプリケーションが共用ストレージの利用を終了するまで待てば領域が空き、共用ストレージの利用は可能となるが、共用ストレージの利用効率が悪化してしまう。 By the way, after the upload / download process using the shared storage is completed, each application determines that the data is no longer needed and performs a process of deleting the data from the storage area of the shared storage. As described above, when the shared storage is shared by multiple applications, if the shared storage usage is concentrated, even if another application tries to use the shared storage, the free storage space is insufficient. There may be situations where it cannot be used. In this case, if the area is freed and the shared storage can be used by waiting until the other application finishes using the shared storage, the efficiency of using the shared storage deteriorates.
本発明は上記事情に鑑みてなされたもので、その目的は、複数のアプリケーションが共用する共用ストレージを備えるシステムにおける、共用ストレージの記憶領域の効率の良い使用を可能とする共用ストレージ管理装置及び共用ストレージ管理方法を提供するにある。 The present invention has been made in view of the above circumstances, and an object thereof is a shared storage management device and shared storage that enable efficient use of a storage area of shared storage in a system including shared storage shared by a plurality of applications. To provide a storage management method.
上記目的を達成するために、本発明の共用ストレージ管理装置(2)は、 閉じたネットワーク(5)内に、外部との通信機能を備えたものを含む1つ以上のコンピュータ(2、3、4)を備え、前記各コンピュータ上の複数のアプリケーション(7、8、9)が相互に情報をやり取りすると共に、前記複数のアプリケーションがデータの書込み、読出しに利用する共用ストレージ(11)を有するシステム(1)に設けられるものであって、前記各アプリケーションの要求に従って前記共用ストレージの記憶領域の確保及び解放を調整するストレージ管理部(10)を備え、前記ストレージ管理部は、前記共用ストレージの空き容量が所定容量以下となったとき、或いは、前記アプリケーションからの確保の要求があった際に前記共用ストレージの確保すべき記憶領域が不足しているときに、当該共用ストレージに書込まれているデータの圧縮処理を実行する。 In order to achieve the above object, the shared storage management device (2) of the present invention includes one or more computers (2, 3, A system comprising 4), wherein a plurality of applications (7, 8, 9) on each computer exchange information with each other, and the plurality of applications have a shared storage (11) used for writing and reading data. It is provided in (1) and includes a storage management unit (10) that adjusts the securing and release of the storage area of the shared storage according to the request of each application, and the storage management unit is free of the shared storage. It is written in the shared storage when the capacity becomes less than or equal to a predetermined capacity, or when the storage area to be secured in the shared storage is insufficient when the application requests to secure the capacity. Performs data compression processing.
上記構成によれば、ストレージ管理部は、各アプリケーションの要求に従って共用ストレージの記憶領域の確保及び解放を調整する。このとき、例えば複数のアプリケーションにおいて共用ストレージの利用が集中しているようなことがあると、別のアプリケーションからの確保の要求があったときに、共用ストレージの確保すべき記憶領域が不足する場合が生ずる虞がある。ここで、記憶領域が不足していると判断された場合でも、仮に、共用ストレージ内の既存のデータを圧縮することにより、既存データが占有する記憶容量を削減して、空き容量を増やすことができ、新規データを保存する領域を確保することが可能となるケースが考えられる。 According to the above configuration, the storage management unit adjusts the allocation and release of the storage area of the shared storage according to the request of each application. At this time, for example, if the use of shared storage is concentrated in multiple applications, the storage area to be secured for shared storage may be insufficient when there is a request for securing from another application. May occur. Here, even if it is determined that the storage area is insufficient, it is possible to reduce the storage capacity occupied by the existing data and increase the free space by compressing the existing data in the shared storage. In some cases, it is possible to secure an area for storing new data.
従って、共用ストレージ管理部は、共用ストレージの既存データの圧縮処理を行うことにより、アプリケーションから領域確保の要求があったときに、空き容量の不足の発生を抑えることができる。これにより、他のアプリケーションの処理の終了による共用ストレージの記憶領域の空きが生ずることを待たずに、アプリケーションの要求に応じて、速やかに新規データの記憶領域を確保することが可能となる。この結果、複数のアプリケーションが共用する共用ストレージを備えるシステムにおける、共用ストレージの記憶領域の効率の良い使用を可能とするという優れた効果を奏する。 Therefore, the shared storage management unit can suppress the occurrence of insufficient free space when the application requests to secure an area by performing the compression process of the existing data of the shared storage. As a result, it is possible to quickly secure a storage area for new data in response to a request from the application without waiting for the storage area of the shared storage to become free due to the end of processing of another application. As a result, in a system having a shared storage shared by a plurality of applications, the storage area of the shared storage can be efficiently used, which is an excellent effect.
(1)第1の実施形態
以下、自動車等の車両に搭載される車載システムにおける共用ストレージ管理装置に適用した第1の実施形態について、図1から図4を参照しながら説明する。図1は、本実施形態における車載システム1の構成を概略的に示している。ここで、車載システム1は、複数のECU(Electronic Control Unit)2、3、4を、例えばCAN(登録商標)やイーサネット(登録商標)等のネットワーク5により相互に接続して構成される。前記ECU2、3、4は、コンピュータを含んで構成される。尚、図1では、便宜上、3つのECU2、3、4のみを図示している。
(1) First Embodiment Hereinafter, the first embodiment applied to a shared storage management device in an in-vehicle system mounted on a vehicle such as an automobile will be described with reference to FIGS. 1 to 4. FIG. 1 schematically shows the configuration of the in-
そのうちECU3は、車両外部との間の通信制御用のECUであり、DCM(Data Communication Module)と称される車外通信機6を備えると共に、アプリケーション7を搭載している。前記ECU4は、各種車載機器の制御用のECUであり、例えばエンジン制御等の走行制御系ECU、ボディ系制御用ECU、ナビゲーション制御用ECU、ETC制御用ECU、オーディオ制御用ECU、ドライブレコーダ制御用ECU等が含まれる。このECU4は、アプリケーション8を搭載している。
Among them, the
前記ECU2は、例えばセントラルゲートウェイ用のECUであり、車載システム1のネットワークにおけるハブとしての機能を有する。このECU2は、アプリケーション9を搭載している。各ECU2、3、4に、夫々複数のアプリケーションが設けられていても良い。詳しくは後述するように、本実施形態では、このECU2が共用ストレージ管理装置として機能するようになっている。尚、上記アプリケーション7、8、9を、必要に応じて単に「アプリ」と略称することがある。図1では、アプリケーション7を「アプリA」、アプリケーション8を「アプリB」、アプリケーション9を「アプリC」と表記している。
The
本実施形態の車載システム1においては、前記各ECU2、3、4の複数のアプリケーション9、7、8が相互に情報をやり取りすると共に、詳しく図示はしないが、車外通信機6により通信ネットワークを介して外部のサービス会社のセンタ装置等との間で通信を行う。この場合、各ECU2、3、4の複数のアプリケーション9、7、8は、センタ装置に対し、アップロードやダウンロード等の処理を行う。
In the in-
具体的には、センタ装置に送信する情報としては、車内の各種センサが検出したダイアグデータや、ドライブレコーダのデータ等がある。また、センタ装置から受信する情報としては、各車載機器のソフトウエアの更新プログラムや、各車載機器が参照する情報のうち任意のタイミングで更新されるナビゲーション用の地図データや、オーディオ機器が再生する楽曲データ等がある。 Specifically, the information transmitted to the center device includes diagnostic data detected by various sensors in the vehicle, drive recorder data, and the like. In addition, as the information received from the center device, the software update program of each in-vehicle device, the map data for navigation updated at an arbitrary timing among the information referred to by each in-vehicle device, and the audio device play back. There is music data etc.
このとき、各アプリケーション7、8、9が、データのダウンロードやアップロードを行う際には、一時的に記憶領域を使用するが、各ECU2、3、4において専用の記憶領域を用意することは無駄が多い事情がある。そこで、例えば一つのECUこの場合セントラルゲートウェイ用のECU2に共用ストレージ11が設けられる。複数のアプリケーション7、8、9は、任意のタイミングで共用ストレージ11に対するデータの書き込みや削除を行う。
At this time, the
さて、前記ECU2における、共用ストレージ管理装置として機能について述べる。上記したように、ECU2には、共用ストレージ11が設けられている。これと共に、ECU2には、各アプリケーション7、8、9の要求に従って前記共用ストレージ11の記憶領域の確保及び解放を調整するストレージ管理部10が設けられる。前記ストレージ管理部10は、共用ストレージ11の現在の利用状況を記録するストレージ管理テーブル12を備える。
Now, the function as a shared storage management device in the
図4に、このストレージ管理テーブル12の記憶内容を例示している。本実施形態では、このストレージ管理テーブル12には、確保の要求順序即ち古いものから1、2、…、共用ストレージ11の確保を要求したアプリ、確保した記憶領域の容量、保存されるデータの形式、領域確保優先度の情報を含む等からなる管理情報が記憶される。ここでは、アプリ側或いはストレージ管理部10において、共用ストレージ11内の各データに関する領域確保優先度が設定されるようになっている。
FIG. 4 illustrates the storage contents of the storage management table 12. In the present embodiment, the storage management table 12 contains the order of request for securing, that is, 1, 2, ..., the application requesting the securing of the shared
この領域確保優先度は、保存されている既存データの重要度に応じて、例えば高、中、低の3段階のいずれかに設定される。例えば、データ形式を変換した後に元に戻せない等、後述するデータ圧縮をしたくないものについては、優先度が高く設定される。また、データの性質例えばアップロードの場合はダウンロードの場合よりも優先度を高くする、データ容量が多い場合に、少ない場合よりも優先度を低くすることなどが考えられる。尚、詳しく図示はしないが、ストレージ管理部10は、上記各データのデータ形式に対応した複数種類の圧縮プログラムを記憶しており、ストレージ管理テーブル12には、前記データ形式と圧縮プログラムとの対応関係を表にした対応表も含まれている。
This area reservation priority is set to one of three levels, for example, high, medium, and low, depending on the importance of the existing stored data. For example, if the data format cannot be restored after being converted, and the data compression described later is not desired, the priority is set high. Further, for example, in the case of uploading, the priority may be higher than in the case of downloading, and in the case of a large amount of data, the priority may be lower than in the case of a small amount of data. Although not shown in detail, the
これと共に、前記ストレージ管理部10は、そのハードウエア及びソフトウエア構成により、要求受付部13、領域確保処理部14、領域管理部15、データ圧縮処理部16、優先度判定部17としての機能を実現する。詳しくは後の作用説明でも述べるように、前記要求受付部13は、前記各アプリ7、8、9から、共用ストレージ11の記憶領域の確保や解放の要求を受付ける処理を実行する。また、前記領域確保処理部14は、前記要求受付部13が受付けた新規データに対する記憶領域の確保要求に従って、共用ストレージ11の記憶領域の確保を行う。
At the same time, the
このとき、領域確保処理部14は、新規データの記憶領域を確保するにあたり、前記領域管理部15に共用ストレージ11の空き領域を問い合わせる。領域管理部15は、ストレージ管理テーブル12を参照し、前記共用ストレージ11の必要な記憶領域の確保が可能かを判断する。そして、共用ストレージ11の記憶容量が十分ある場合には、領域確保処理部14は、そのまま記憶領域の確保の処理を行う。ところが、例えば複数のアプリケーション7、8、9において共用ストレージ11の利用が集中しているような場合には、別のアプリケーション7、8、9からの確保の要求があったときに、共用ストレージ11の確保すべき記憶領域が不足してしまうケースが生ずる虞がある。
At this time, the area
そこで、本実施形態では、領域管理部15が、共用ストレージ11の必要な記憶領域が不足していると判断した場合には、データ圧縮処理部16に対し、共用ストレージ11において使用されている記憶領域の既存データに対する圧縮処理を要求する。データ圧縮処理部16は、データの圧縮処理の要求に従って、既存データのデータ圧縮の処理を実行する。ここでいうデータ圧縮の処理とは、一般的なデータ圧縮処理(可逆圧縮)に加え、データの間引き、データ形式の変更例えばビットマップデータをJPEGに変換する処理等(非可逆圧縮)も含まれ、データ量の削減を図ることができる処理全般を意味している。
Therefore, in the present embodiment, when the
また、本実施形態では、前記データ圧縮処理部16は、ストレージ管理テーブル12に記憶されている既存データのデータ形式、例えばデータの拡張子で示されるデータ形式に基づいて、当該既存のデータが圧縮可能かどうかを判定し、圧縮処理を実行する。この場合、ストレージ管理テーブル12を参照して、該当する既存データのデータ形式に対応した圧縮プログラムを用いて、圧縮処理を実行する。尚、本実施形態では、ストレージ管理テーブル12の対応表及び複数の圧縮プログラムは、外部から書替え可能に構成されており、新規に開発された或いはバージョンアップされたデータ形式や圧縮プログラムに関し、外部から書替え、追加が行われることにより、容易に対応することが可能となる。
Further, in the present embodiment, the data
さらに本実施形態では、データ圧縮処理部16が既存データの圧縮を行うにあたっては、優先度判定部17に各既存データの領域確保優先度を問い合わせ、各既存データに付与されている優先度が低いものから順に、圧縮処理を実行する。データ圧縮処理部16が既存データの圧縮処理を行った後にも、新規データの保存に関する共用ストレージ11の空き容量が不足している場合には、他のアプリケーション7、8、9の使用が終了して記憶領域が解放されるのを待って処理が行われる。尚、領域管理部15は、記憶領域の確保や解放の処理が完了したら、前記ストレージ管理テーブル12の管理情報を書替える。
Further, in the present embodiment, when the data
次に、上記構成のストレージ管理部10の実行する処理について、図2、図3も参照して述べる。そのうち図2のフローチャートは、ストレージ管理部10が実行する記憶領域の確保の処理手順を示している。また、図3のフローチャートは、図2のステップS3の既存データの圧縮処理の詳細な処理手順を示している。これらの処理により、本実施形態に係る共用ストレージ管理方法が実行される。
Next, the process executed by the
即ち、まず、図2において、ステップS1では、アプリ7、8、9から新規データの確保の要求及びその要求データ量が受付けられる。ステップS2では、アプリ7、8、9が要求する記憶領域の容量に対し、共用ストレージ11に要求量以上の空き容量があるかどうかが判断される。共用ストレージ11にアプリが要求する記憶領域の容量を確保するために必要な空き容量があると判断された場合には(ステップS2にてYes)、次のステップS6にて、共用ストレージ11の必要な記憶容量が確保され、アプリ7、8、9によるデータの保存が行われる。これと共に、ステップS7にて、ストレージ管理テーブル12の管理情報の登録がなされる。
That is, first, in FIG. 2, in step S1, the request for securing new data and the requested data amount are received from the
これに対し、ステップS2にて、共用ストレージ11にアプリが要求する記憶領域の容量を確保するために必要な空き容量がないと判断された場合には(ステップS2にてNo)、ステップS3にて、データ圧縮処理部16に対し既存データの圧縮の処理が要求される。このステップS3の圧縮の処理の詳細については、後に図3の説明にて詳述する。このデータ圧縮の処理により、既存データのデータ量を削減することができ、共用ストレージ11の空き容量を増やすことができる。尚、例えばドライブレコーダの画像データのような場合、フレームを半分に間引くことで、データ容量を50%程度に圧縮することができる。
On the other hand, if it is determined in step S2 that the shared
既存データの圧縮の処理が終了すると、ステップS4にて、共用ストレージ11にアプリが要求する記憶領域の容量を確保するために必要な空き容量があるかどうかが再度判断される。共用ストレージ11にアプリが要求する記憶領域の容量を確保するために必要な空き容量があると判断された場合には(ステップS4にてYes)、上記したステップS6に進み、共用ストレージ11の必要な記憶容量が確保され、アプリ7、8、9による保存が行われる。既存データの圧縮処理を行ったにも関わらず、共用ストレージ11にアプリが要求する記憶領域の容量を確保するために必要な空き容量がないと判断された場合には(ステップS4にてNo)、ステップS5に進み、他のアプリ7、8、9による共用ストレージ11の使用が終了して記憶領域が解放されることを待ち、その後ステップS6に進む。
When the processing of compressing the existing data is completed, in step S4, it is determined again whether or not the shared
図3のフローチャートは、図2のステップS3の処理、つまりストレージ管理部10において既存データの圧縮処理を行う場合の処理手順の詳細を示している。即ち、ステップS11では、ストレージ管理テーブル12を参照し、既存データの中から、それらのデータ形式に基づき、圧縮処理が可能な領域が抽出される。ステップS12では、ストレージ管理テーブル12の各既存データの領域確保優先度を参照して優先度が最も低い領域が選択される。この場合、領域確保優先度に加えて、他の情報例えば領域の確保順序の古さ、データ容量の大小などを参照して、圧縮すべき既存データを選ぶようにしても良い。
The flowchart of FIG. 3 shows the details of the processing of step S3 of FIG. 2, that is, the processing procedure when the
次のステップS13にて、選択された既存データの圧縮方法即ち圧縮プログラムが選択され、ステップS14では、データ圧縮処理が実行される。ステップS15では、データ圧縮処理後の共用ストレージ11に、新規データに関する要求量以上の空き容量があるかどうかが判断される。アプリが要求する記憶領域の容量を確保するために必要な空き容量があると判断された場合は(ステップS15にてYes)、リターンされる。リターンの後は、ステップS6にて共用ストレージ11に要求された記憶領域が確保される。
In the next step S13, the selected existing data compression method, that is, the compression program is selected, and in step S14, the data compression process is executed. In step S15, it is determined whether or not the shared
これに対し、ステップS15で、未だ共用ストレージ11の空き領域が不足すると判断された場合には(ステップS15にてNo)、ステップS16にて、共用ストレージ11に圧縮可能な既存データを保存する領域が残っているかどうかが判断される。圧縮可能な既存データが残っている場合には(ステップS16にてYes)、次のステップ17にて、優先度が次に低い既存データの領域が、次の圧縮対象として選択され、ステップS13に戻り、ステップS13からの処理が繰返される。一方、圧縮可能な既存データが残っていない場合には(ステップS16にてNo)、リターンされる。
On the other hand, if it is determined in step S15 that the free area of the shared
このような本実施形態の共用ストレージ管理装置及び共用ストレージ管理方法によれば、次のような作用、効果を得ることができる。即ち、ストレージ管理部10は、各アプリケーション7、8、9の要求に従って共用ストレージ11の記憶領域の確保及び解放を調整する。このとき、例えば複数のアプリケーション7、8、9において共用ストレージ11の利用が集中することがあると、別のアプリケーション7、8、9からの確保の要求があったときに、新規データに関する共用ストレージ11の確保すべき記憶領域が不足する場合が生ずる虞がある。ここで、記憶領域が不足していると判断された場合でも、仮に、共用ストレージ11内の既存のデータを圧縮することにより、既存データが占有する記憶容量を削減して、空き容量を増やすことができ、新規データを保存する領域を確保することが可能となるケースが考えられる。
According to the shared storage management device and the shared storage management method of the present embodiment, the following actions and effects can be obtained. That is, the
従って、共用ストレージ管理部10は、共用ストレージ11の既存データの圧縮処理を行うことにより、アプリケーション7、8、9から領域確保の要求があったときに、空き容量の不足の発生を抑えることができる。これにより、他のアプリケーション7、8、9の処理の終了による共用ストレージ11の記憶領域の空きが生ずることを待たずに、アプリケーション7、8、9の要求に応じて、速やかに新規データの記憶領域を確保することが可能となる。この結果、複数のアプリケーション7、8、9が共用する共用ストレージ11を備える車載システム1における、共用ストレージ11の記憶領域の効率の良い使用を可能とするという優れた効果を奏する。
Therefore, the shared
特に本実施形態では、ストレージ管理部10は、ストレージ管理テーブル12を参照し、共用ストレージ11に書込まれている既存データのデータ形式に基づいて、当該既存データが圧縮可能かどうかを容易かつ確実に判定することができ、既存データのデータ圧縮の処理を効率的に行うことができる。ストレージ管理部10は、ストレージ管理テーブル12を参照して、該当する既存データに対応した圧縮プログラムを用いて圧縮処理を実行するので、圧縮プログラムを複数の中から確実に選択し、容易に圧縮処理を実行することができる。ストレージ管理テーブル12の対応表、及び、圧縮プログラムは、外部から書替え可能に構成されているので、新規に開発された或いはバージョンアップされたデータ形式や圧縮プログラムに関し、外部から書き換えることにより、容易に対応することが可能となり、利便性を高めることができる。
In particular, in the present embodiment, the
更に本実施形態では、ストレージ管理部10は、共用ストレージ11内の各既存データに付与されている優先度が低いものから順に、圧縮処理を実行する構成とした。これによれば、優先度が低いものから順にデータ圧縮の処理を行うことにより、新規データに関する記憶領域の確保を行うことができる。この場合、データ圧縮により、既存データの品質の低下やデータの復元が不可能となる等の不都合を招くケースがあるが、データ品質を高い状態で確保しておきたいものについては、優先度を高くしておくことができる。これにより、優先度の高い既存データに関しては、後回しにされることになり、データ圧縮を極力行わずに済ませることが期待できる。
Further, in the present embodiment, the
(2)第2の実施形態、その他の実施形態
次に、図5を参照して、第2の実施形態について述べる。この第2の実施形態においては、ストレージ管理部10の実行する共用ストレージ1の記憶領域の確保の処理が、上記第1の実施形態と異なっている。図5のフローチャートは、本実施形態におけるストレージ管理部10が実行する既存データの圧縮処理手順、つまり図2のステップS3の処理の詳細を示している。この実施形態では、ストレージ管理部10は、圧縮処理を施す既存データの範囲を、アプリが要求する記憶領域の容量を確保するために必要な最小限の範囲に留めながら、共用ストレージ11内の複数の既存データに対する圧縮処理を同時に並行して実行するようになっている。
(2) Second Embodiment, Other Embodiments Next, the second embodiment will be described with reference to FIG. In the second embodiment, the process of securing the storage area of the shared
図5において、ステップS21では、ストレージ管理テーブル12を参照し、既存データの中から、それらのデータ形式に基づき、圧縮処理が可能な領域が抽出される。ステップS22では、ストレージ管理テーブル12の各既存データの領域確保優先度を参照して優先度が最も低い領域が選択される。ステップS23にて、選択された既存データの圧縮方法即ち圧縮プログラムが選択される。ステップS24では、該当する既存データに対するデータ圧縮処理の指示が行われる。 In FIG. 5, in step S21, the storage management table 12 is referred to, and an area capable of compression processing is extracted from the existing data based on those data formats. In step S22, the area with the lowest priority is selected with reference to the area reservation priority of each existing data in the storage management table 12. In step S23, the selected existing data compression method, that is, the compression program is selected. In step S24, an instruction for data compression processing is given to the corresponding existing data.
そして、ステップS25では、該当する既存データのデータ圧縮によって、共用ストレージ11の空き領域が、新規データの記憶領域確保の要求容量以上となりそうかどうかが判断される。この場合、実際の圧縮処理が完了しないと、圧縮後の容量は確定しないため、見込み容量で判断することが行われる。見込み容量の推定は、一律で圧縮率を一定値、例えば50%に仮定しておく、データ形式毎或いはアプリ毎に見込み圧縮率を何%と仮定しておくといった方法が用いられる。
Then, in step S25, it is determined whether or not the free area of the shared
データ圧縮後に、新規データに関する要求量以上の空き容量が得られる見込みである場合には(ステップS25にてYes)、ステップS26に進み、データ圧縮の処理が完了するまで待ち、データ圧縮の処理完了後、ステップS27にて、共用ストレージ11の空き領域が、新規データの記憶領域確保の要求容量以上となったかどうかが判断され、アプリが要求する記憶領域の容量を確保するために必要な空き容量があると判断された場合は(ステップS27にてYes)、リターンされる。リターンの後は、ステップS6にて共用ストレージ11に要求された記憶領域が確保される。
If it is expected that more free space than the requested amount for new data will be obtained after data compression (Yes in step S25), the process proceeds to step S26, waits until the data compression process is completed, and the data compression process is completed. Later, in step S27, it is determined whether or not the free area of the shared
上記ステップS25にて、要求量以上の空き容量が得られる見込みがない場合には(ステップS25にてNo)、ステップS28に進む。また、上記ステップS27にて、要求容量以上の空き容量が得られなかった場合にも(ステップS27にてNo)、ステップS28に進む。ステップS28では、共用ストレージ11に圧縮可能な既存データを保存する領域が残っているかどうかが判断される。
If there is no possibility that more free space than the required amount can be obtained in step S25 (No in step S25), the process proceeds to step S28. Further, even if a free capacity equal to or larger than the required capacity cannot be obtained in step S27 (No in step S27), the process proceeds to step S28. In step S28, it is determined whether or not the area for storing the existing compressible data remains in the shared
圧縮可能な既存データが残っている場合には(ステップS28にてYes)、次のステップ29にて、優先度が次に低い既存データの領域が、次の圧縮対象として選択され、ステップS23に戻る。この場合には、ステップS23にて、選択された既存データの圧縮方法即ち圧縮プログラムが選択され、ステップS24にて、該当する既存データに対するデータ圧縮処理の指示が行われる。これにより、前の既存データの圧縮処理の完了を待たずに、次の既存データに対する圧縮処理の指示がなされ、複数の既存データに対する圧縮処理が並行して実行される。この後、ステップS25からの処理が繰返される。一方、上記ステップS28にて、圧縮可能な既存データが残っていない場合には(ステップS28にてNo)、ステップS30にて、全てのデータ圧縮処理の完了を待った後、リターンされる。 If the existing data that can be compressed remains (Yes in step S28), in the next step 29, the area of the existing data having the next lowest priority is selected as the next compression target, and in step S23. return. In this case, in step S23, the selected existing data compression method, that is, a compression program is selected, and in step S24, an instruction for data compression processing is given to the corresponding existing data. As a result, without waiting for the completion of the compression process of the previous existing data, the instruction of the compression process for the next existing data is given, and the compression process for a plurality of existing data is executed in parallel. After that, the process from step S25 is repeated. On the other hand, if the existing data that can be compressed does not remain in step S28 (No in step S28), the data is returned after waiting for the completion of all the data compression processing in step S30.
このような第2の実施形態によれば、上記第1の実施形態と同様に、複数のアプリケーション7、8、9が共用する共用ストレージ11を備えるシステムにおける、共用ストレージ11の記憶領域の効率の良い使用を可能とするという効果が得られる。これに加えて、ストレージ管理部10は、新規データに関する要求量以上の空き容量が得られることが見込まれる必要最小限の、共用ストレージ11内の複数の既存データに対する圧縮処理を同時に並行して実行する構成とした。
According to such a second embodiment, similarly to the first embodiment, the efficiency of the storage area of the shared
これにより、複数の既存データの圧縮処理を並行して行うことにより、短時間でより多くの空き容量の確保を行うことが可能となり、より効率的な処理を行うことができる。このとき、各既存データに関する、データ圧縮処理により、共用ストレージ11にどれくらいの空き容量を確保できるかを予測計算する構成としたので、データ圧縮による必要な記憶容量の確保を、必要最小限のデータ以外のデータに対する余分な処理を行うことなく確実に行うことができる。これにより、非可逆圧縮によって生じるデータの欠落を最小限にとどめることができるといった利点も得ることができる。
As a result, by performing the compression processing of a plurality of existing data in parallel, it is possible to secure a larger amount of free space in a short time, and it is possible to perform more efficient processing. At this time, since the configuration is such that the amount of free space that can be secured in the shared
尚、上記各実施形態では、新規データの確保の要求があったときに、空き容量があるかの判断を行うように構成し、その判断に基づいて、既存データの圧縮の処理を行うように構成した。これに対し、共用ストレージ11の空き容量を常に監視し、空き容量が所定容量例えば200MB未満になった場合に、上記と同様なデータの圧縮処理を実行するように構成しても良い。この構成によれば、いわば先回りしてデータ圧縮を行うことにより、共用ストレージ11の空き容量を確保することができ、上記各実施形態と同様の効果を得ることができる。
In each of the above embodiments, when there is a request to secure new data, it is configured to determine whether or not there is free space, and based on the determination, the existing data is compressed. Configured. On the other hand, the free space of the shared
そして、上記実施形態では、既存データのデータ形式に基づいて、圧縮可能かどうかを判定するようにしたが、データを書込んだアプリケーションの種類に基づいて、圧縮可能かどうかを判定するように構成してもよい。これによれば、例えばA社製のハードウエアで得られたデータをA社のアプリによって書込んだ場合と、B社製のハードウエアで得られたデータをB社のアプリによって書込んだ場合とが混在するような場合でも、それらアプリの種類によりデータを区別し、圧縮可能かどうかの判定を行うことが可能となる。 Then, in the above embodiment, whether or not the data can be compressed is determined based on the data format of the existing data, but it is configured to determine whether or not the data can be compressed based on the type of the application in which the data is written. You may. According to this, for example, when the data obtained by the hardware of company A is written by the application of company A, and when the data obtained by the hardware of company B is written by the application of company B. Even in the case where and are mixed, it is possible to distinguish the data according to the type of those applications and determine whether or not the data can be compressed.
また、上記実施形態では、車載システム1を構成するECUのうち、セントラルゲートウェイ用のECU2に、共用ストレージ11を設けると共に、ストレージ管理部10の機能を設けるようにしたが、別のECUにそれらの機能を設けることも可能である。上記実施形態では、複数のECUをネットワーク接続した車載システム1に本発明を適用するようにしたが、閉じたネットワークに1以上のコンピュータを備える様々な用途、種類のシステム全般に適用することが可能である。
Further, in the above embodiment, among the ECUs constituting the in-
本開示は、実施例に準拠して記述されたが、本開示は当該実施例や構造に限定されるものではないと理解される。本開示は、様々な変形例や均等範囲内の変形をも包含する。加えて、様々な組み合わせや形態、さらには、それらに一要素のみ、それ以上、あるいはそれ以下、を含む他の組み合わせや形態をも、本開示の範疇や思想範囲に入るものである。 The present disclosure has been described in accordance with the examples, but it is understood that the present disclosure is not limited to the examples and structures. The present disclosure also includes various variations and variations within a uniform range. In addition, various combinations and forms, as well as other combinations and forms that include only one element, more, or less, are within the scope and scope of the present disclosure.
図面中、1は車載システム(システム)、2はECU(コンピュータ、共用ストレージ管理装置)、3、4はECU(コンピュータ)、5はネットワーク、6は車載通信機、7、8、9はアプリケーション、10はストレージ管理部、11は共用ストレージ、12はストレージ管理テーブル、13は要求受付部、14は領域確保処理部、15は領域管理部、16はデータ圧縮処理部、17は優先度判定部を示す。 In the drawing, 1 is an in-vehicle system (system), 2 is an ECU (computer, shared storage management device), 3 and 4 are ECUs (computers), 5 is a network, 6 is an in-vehicle communication device, and 7, 8 and 9 are applications. 10 is a storage management unit, 11 is a shared storage, 12 is a storage management table, 13 is a request reception unit, 14 is an area reservation processing unit, 15 is an area management unit, 16 is a data compression processing unit, and 17 is a priority determination unit. show.
Claims (8)
前記各アプリケーションの要求に従って前記共用ストレージの記憶領域の確保及び解放を調整するストレージ管理部(10)を備え、
前記ストレージ管理部は、前記共用ストレージの空き容量が所定容量以下となったとき、或いは、前記アプリケーションからの確保の要求があった際に前記共用ストレージの確保すべき記憶領域が不足しているときに、当該共用ストレージに書込まれているデータの圧縮処理を実行する共用ストレージ管理装置。 A closed network (5) comprises one or more computers (2, 3, 4) including one having a function of communicating with the outside, and a plurality of applications (7, 8, 9) on each of the computers. Is provided in a system (1) having a shared storage (11) used by the plurality of applications for writing and reading data while exchanging information with each other.
A storage management unit (10) for adjusting the securing and release of the storage area of the shared storage according to the request of each application is provided.
When the free space of the shared storage becomes less than or equal to a predetermined capacity, or when the storage management unit has insufficient storage area to be secured by the shared storage when there is a request for securing from the application. A shared storage management device that executes compression processing of the data written in the shared storage.
前記ストレージ管理テーブルは、前記各データと前記圧縮プログラムとの対応表を含んでおり、
前記ストレージ管理部は、前記ストレージ管理テーブルを参照して、該当するデータに対応した圧縮プログラムを用いて、圧縮処理を実行する請求項1又は2記載の共用ストレージ管理装置。 The storage management unit includes a storage management table (12) that stores a plurality of types of compression programs and records the current usage status of the shared storage.
The storage management table includes a correspondence table between the data and the compression program.
The shared storage management device according to claim 1 or 2, wherein the storage management unit refers to the storage management table and executes compression processing by using a compression program corresponding to the corresponding data.
前記各アプリケーションの要求に従って前記共用ストレージの記憶領域の確保を調整する方法であって、
前記共用ストレージの空き容量が所定容量以下となったとき、或いは、前記アプリケーションからの確保の要求があった際に前記共用ストレージの確保すべき記憶領域が不足しているときに、当該共用ストレージに書込まれているデータの圧縮処理を実行する共用ストレージ管理方法。 A closed network (5) comprises one or more computers (2, 3, 4) including one having a function of communicating with the outside, and a plurality of applications (7, 8, 9) on each of the computers. In a system (1) having a shared storage (11) used by the plurality of applications for writing and reading data while exchanging information with each other.
A method of adjusting the storage area of the shared storage according to the request of each application.
When the free space of the shared storage becomes less than or equal to a predetermined capacity, or when the storage area to be secured by the shared storage is insufficient when the application requests to secure the shared storage, the shared storage is used. A shared storage management method that performs compression processing for written data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020165366A JP2022057227A (en) | 2020-09-30 | 2020-09-30 | Shared storage management apparatus and shared storage management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2020165366A JP2022057227A (en) | 2020-09-30 | 2020-09-30 | Shared storage management apparatus and shared storage management method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2022057227A true JP2022057227A (en) | 2022-04-11 |
Family
ID=81111390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2020165366A Pending JP2022057227A (en) | 2020-09-30 | 2020-09-30 | Shared storage management apparatus and shared storage management method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2022057227A (en) |
-
2020
- 2020-09-30 JP JP2020165366A patent/JP2022057227A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9557928B2 (en) | Autonomic reclamation processing on sequential storage media | |
US20100005225A1 (en) | Nonvolatile memory device, nonvolatile memory system, and host device | |
US20200249930A1 (en) | Onboard system and ecu | |
US11126422B2 (en) | Program update system, control system, mobile body, program update method, recording medium | |
WO2017036183A1 (en) | Differential upgrade package processing method and device, upgrade method, system and device | |
CN114968102B (en) | Data caching method, device, system, computer equipment and storage medium | |
US8595430B2 (en) | Managing a virtual tape library domain and providing ownership of scratch erased volumes to VTL nodes | |
CN113467719B (en) | Data writing method and device | |
US11698735B2 (en) | Common storage management device and common storage management method | |
CN105141696A (en) | File uploading method and device | |
US11870868B2 (en) | Common storage management device and common storage management method | |
JP2022057227A (en) | Shared storage management apparatus and shared storage management method | |
US20070150527A1 (en) | File transfer system, file storage apparatus, method for storing file, and program | |
US11836045B2 (en) | Electronic control device having a non-volatile memory with a reserved area storing failure data | |
JP7429792B2 (en) | Data transmission methods, terminals and computer-readable storage media | |
US20220027097A1 (en) | Recording apparatus, recording method, storage medium, and memory card | |
CN104346101A (en) | Dynamic storage space allocation system and method | |
CN113127438B (en) | Method, apparatus, server and medium for storing data | |
JP6631676B2 (en) | In-vehicle update device, update system and update processing program | |
KR102555907B1 (en) | A vehicle and method for controlling communication thereof | |
JP6891603B2 (en) | Backup system, storage device, data transfer method and program | |
JP4660404B2 (en) | Data transfer apparatus and data transfer method | |
CN110968328A (en) | Method and device for realizing application loading, computer storage medium and terminal | |
JP2020160845A (en) | Application installation apparatus, and installation method | |
JP7373521B2 (en) | Communication systems and communication terminals |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20230215 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20231222 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240123 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20240312 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20240402 |