JP4910785B2 - Electronic device, power control program for electronic device, and power control method - Google Patents

Electronic device, power control program for electronic device, and power control method Download PDF

Info

Publication number
JP4910785B2
JP4910785B2 JP2007053947A JP2007053947A JP4910785B2 JP 4910785 B2 JP4910785 B2 JP 4910785B2 JP 2007053947 A JP2007053947 A JP 2007053947A JP 2007053947 A JP2007053947 A JP 2007053947A JP 4910785 B2 JP4910785 B2 JP 4910785B2
Authority
JP
Japan
Prior art keywords
data
memory modules
power supply
modules
memory
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.)
Expired - Fee Related
Application number
JP2007053947A
Other languages
Japanese (ja)
Other versions
JP2008217421A (en
Inventor
尚史 船越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2007053947A priority Critical patent/JP4910785B2/en
Publication of JP2008217421A publication Critical patent/JP2008217421A/en
Application granted granted Critical
Publication of JP4910785B2 publication Critical patent/JP4910785B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Power Sources (AREA)
  • Memory System (AREA)

Description

本発明は、各種の電子機器、電子機器の電源制御プログラムおよび電源制御方法に係わり、特にデータを格納するメモリを備えた複数のモジュールを有する電子機器、電子機器の電源制御プログラムおよび電源制御方法に関する。   The present invention relates to various electronic devices, a power control program for the electronic device, and a power control method, and more particularly to an electronic device having a plurality of modules including a memory for storing data, a power control program for the electronic device, and a power control method. .

各種機器の高度化と共に、メモリやCPU(Central Processing Unit)等の電子部品を組み込んだモジュールを1台の装置に複数使用することが多くなってきている。このような電子機器は、サスペンドモードのように電力消費を抑えた状態で必要なデータを比較的長時間保持するために、データの保存を一斉に行うバックアップ機能が用意されていることが多い。電子機器のバックアップ時には、たとえば液晶ディスプレイといった一部のデバイスへの通電は停止されるものの、データを保持する複数のリソースから構成されるモジュールに対しては、電源を通常運転時と同様に供給する必要がある。これは、これらのデバイスの多くが搭載しているメモリが揮発性であって、電源の供給を遮断されると記憶しているデータが消失することになるからである。   With the advancement of various devices, a plurality of modules incorporating electronic components such as a memory and a CPU (Central Processing Unit) are increasingly used in one apparatus. Such electronic devices are often provided with a backup function for storing data all at once in order to retain necessary data for a relatively long time with reduced power consumption as in the suspend mode. At the time of backing up the electronic device, power supply to some devices such as a liquid crystal display is stopped, but power is supplied to a module composed of a plurality of resources holding data in the same way as during normal operation. There is a need. This is because the memory mounted on many of these devices is volatile, and the stored data is lost when the supply of power is cut off.

図10は、このような複数のモジュールを組み込んだ電子機器の要部を表わしたものである。この電子機器400は、第1〜第4のモジュール401〜404からなるバックアップの対象となるプロセッサモジュール群405を備えている。ここで、第1のモジュール401は、第1のCPU406と第2のCPU407および第1のメモリ408を備えたマルチプロセッサのモジュールとしての構成となっている。第2のモジュール402は第3のCPU409と第2のメモリ410から構成されている。第3のモジュール403は第3のメモリ411のみから構成されている。第4のモジュール404は第4のCPU412と第4のメモリ413から構成されている。   FIG. 10 shows a main part of an electronic apparatus incorporating such a plurality of modules. The electronic apparatus 400 includes a processor module group 405 to be backed up consisting of first to fourth modules 401 to 404. Here, the first module 401 is configured as a multiprocessor module including the first CPU 406, the second CPU 407, and the first memory 408. The second module 402 includes a third CPU 409 and a second memory 410. The third module 403 includes only the third memory 411. The fourth module 404 includes a fourth CPU 412 and a fourth memory 413.

電子機器400には、このプロセッサモジュール群405に存在する第1のメモリ406、第2のメモリ407、第3のメモリ411および第4のメモリ413のバックアップへの移行のタイミングを検知するバックアップ移行検知部421が備えられている。電子機器400には、更に、第1〜第4のメモリ406、407、411、413を含めたシステムの状態を診断する診断機構部422と、プロセッサモジュール群405を構成する第1〜第4のモジュール401〜404についての電源管理機構部423が備えられている。   The electronic apparatus 400 has a backup transition detection that detects the timing of transition to the backup of the first memory 406, the second memory 407, the third memory 411, and the fourth memory 413 existing in the processor module group 405. A part 421 is provided. The electronic device 400 further includes a diagnosis mechanism unit 422 for diagnosing the state of the system including the first to fourth memories 406, 407, 411, and 413, and the first to fourth components constituting the processor module group 405. A power management mechanism 423 for the modules 401 to 404 is provided.

診断機構部422は、バックアップ移行検知部421がバックアップへの移行を検知すると、電源管理機構部423に対して第1〜第4のモジュール401〜404の中で保持する必要のないデータのみを格納しているものがあれば、その電源供給を停止するように指示する。この指示があったとき、第1〜第3のモジュール401〜403内にはそれぞれ保持したいデータが存在しており、第4のモジュール404だけに保持したいデータが存在していないものとする。すると、電源管理機構部423は、バックアップへ移行する際に第4のモジュール404への電源供給のみを停止する。第1〜第3のモジュール401〜403に格納されたデータは保持する必要があるので、電源の供給は継続される。   When the backup transition detection unit 421 detects a shift to backup, the diagnosis mechanism unit 422 stores only data that does not need to be held in the first to fourth modules 401 to 404 with respect to the power management mechanism unit 423. If there is something that is, it is instructed to stop the power supply. When this instruction is given, it is assumed that data to be held exists in the first to third modules 401 to 403, respectively, and data to be held only in the fourth module 404 does not exist. Then, the power management mechanism unit 423 stops only power supply to the fourth module 404 when shifting to backup. Since it is necessary to retain the data stored in the first to third modules 401 to 403, the power supply is continued.

しかしながら、このような電子機器では、第1〜第3のモジュール401〜403に存在する保持したいデータが全体としてわずかであっても、これらのモジュールに対する電源の供給が継続されることになる。   However, in such an electronic device, even if there is a small amount of data to be held in the first to third modules 401 to 403 as a whole, power supply to these modules is continued.

そこで、同一の構成の複数のモジュールを組み込んだ電子機器で、これらのモジュールに格納されているデータの全体を把握して、バックアップ時には必要により一部のモジュールにデータをまとめることが提案されている(たとえば特許文献1参照)。この提案によれば、それぞれのモジュール内のデータを圧縮してこれらの容量を減少させる。そして、これら圧縮後のデータが格納されるのに必要な総容量を求めると共に、これらのモジュールの1つ当たりのメモリ容量で割り算して、必要とするモジュールの個数を算出している。   Therefore, it has been proposed that an electronic device incorporating a plurality of modules having the same configuration grasps the entire data stored in these modules and collects the data in some modules as necessary at the time of backup. (For example, refer to Patent Document 1). According to this proposal, the data in each module is compressed to reduce their capacity. Then, the total capacity required to store the compressed data is obtained, and the number of modules required is calculated by dividing by the memory capacity per one of these modules.

たとえば図10に示したような第1〜第4のモジュール401〜404がそれぞれ8MB(メカバイト)の揮発性メモリとしてのDRAM(Dynamic Random Access Memory)で構成されているものとする。この提案によると、たとえば第1〜第4のモジュール401〜404の圧縮後のデータが7MBであれば、第1のモジュール401に全部のデータを格納することができる。したがって、第2〜第4のモジュール402〜404の電源を遮断した状態で、消費電力を削減するモードとしてのサスペンドモードに移行することができるようになる。また、第1〜第4のモジュール401〜404の圧縮後のデータが9MBであれば、第1のモジュール401と第2のモジュール402というように2つのモジュールに全部のデータを格納することができる。したがって、この場合には2つのモジュールの電源を遮断した状態でサスペンドモードに移行することができるようになる。
特開平11−282587号公報(第0017段落〜第0019段落、図2)
For example, it is assumed that first to fourth modules 401 to 404 as shown in FIG. According to this proposal, for example, if the compressed data of the first to fourth modules 401 to 404 is 7 MB, all data can be stored in the first module 401. Therefore, it is possible to shift to a suspend mode as a mode for reducing power consumption in a state where the power sources of the second to fourth modules 402 to 404 are shut off. If the compressed data of the first to fourth modules 401 to 404 is 9 MB, all data can be stored in two modules such as the first module 401 and the second module 402. . Therefore, in this case, it becomes possible to shift to the suspend mode with the power supply of the two modules cut off.
Japanese Patent Laid-Open No. 11-282587 (paragraphs 0017 to 0019, FIG. 2)

しかしながら、この提案では同一のモジュールを複数使用している。電子機器は各種のモジュールを混在して使用することがある。たとえば、電子機器の買い替えを行ったユーザは、同一のメモリ容量で同一特性のモジュールを複数一度に購入するとは限らず、前に使用していた電子機器のモジュールを部分的に使用して新しく購入した電子機器の当座のメモリ容量を確保する場合がある。このような場合には、新たに購入してセットしたモジュールと以前から使用してきたモジュールでメモリ容量や消費電力といった特性が大きく異なる場合がある。もちろん、電子機器に複数のモジュールが組み込まれている場合に、これらが互いに同一の仕様を持つものとは限らない。   However, this proposal uses multiple identical modules. Electronic devices sometimes use a mixture of various modules. For example, a user who purchased a new electronic device does not always purchase multiple modules with the same memory capacity and the same characteristics at the same time. In some cases, a temporary memory capacity of the electronic device is secured. In such a case, characteristics such as memory capacity and power consumption may be greatly different between a newly purchased module and a module that has been used. Of course, when a plurality of modules are incorporated in an electronic device, they do not necessarily have the same specifications.

このような場合に、従来の技術を適用しても、提案された単純な割り算の式ではバックアップ時のモジュールの使用個数を正しく求めることができなくなる。また、バックアップ時に使用するモジュールの数が分かったとしても、古い技術で製造されたモジュールがバックアップのために選択された場合には、新しい技術で製造されたモジュールに比べて電力消費が大きい場合があり、省電力を効果的に実現することができない。   In such a case, even if the conventional technique is applied, the proposed simple division formula cannot correctly determine the number of modules used at the time of backup. In addition, even if the number of modules used at the time of backup is known, if a module manufactured with the old technology is selected for backup, it may consume more power than a module manufactured with the new technology. Yes, power saving cannot be realized effectively.

そこで本発明の目的は、メモリを少なくとも内蔵したモジュールを複数使用する一方、データの一斉保存時に電力消費の削減を図ってこれらのモジュールの選択的な使用を可能にする電子機器、電子機器の電源制御プログラムおよび電源制御方法を提供することにある。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide an electronic device and a power supply for the electronic device that can selectively use these modules while reducing the power consumption when simultaneously storing data while using a plurality of modules having at least a built-in memory. A control program and a power supply control method are provided.

発明では、(イ)データを格納するデータ格納領域ごとにそれらの所定位置にそれぞれヘッダ領域が設けられており、これらヘッダ領域は該当するデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記された揮発性の複数のメモリモジュールと、(ロ)これら複数のメモリモジュールに格納されたデータのうちで保存が必要とされるデータの保存を一斉に継続させるタイミングとしての保存継続開始タイミングを検知する保存継続開始タイミング検知手段と、(ハ)この保存継続開始タイミング検知手段が前記した保存継続開始タイミングを検知したとき、前記したエリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記したヘッダ領域における位置情報を個別に付加して圧縮後データとする圧縮後データ作成手段と(ニ)この圧縮後データ作成手段によって前記した複数のメモリモジュールの全体について圧縮後データが作成されたときこれらのすべてを前記した複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うデータ再配置手段と、(ホ)このデータ再配置手段ですべての圧縮後データが前記した一部のメモリモジュールに集結した後、前記した複数のメモリモジュールのうちの前記した一部のメモリモジュール以外のメモリモジュールへの電源の供給を停止する電源停止手段と、(へ)前記した複数のメモリモジュール全体に対する電源供給の開始をバックアップの終了タイミングとして検知するバックアップ終了タイミング検知手段と、(ト)このバックアップ終了タイミング検知手段がバックアップの終了を検知した後、前記した電源停止手段で電源の供給を停止した前記した一部のメモリモジュール以外のメモリモジュールに対して電源の供給を再開する電源供給再開手段と、(チ)この電源供給再開手段の電源供給再開によって前記した複数のメモリモジュールのすべてが電源の供給を行われるようになった時点で前記した一部のメモリモジュールに集結した圧縮後データにおけるデータ格納領域の復号化と復号化したデータ格納領域のそれぞれをそれらに付加している位置情報の示す前記した複数のメモリモジュールにおける元の位置への転送を行って前記したデータの再配置以前の状態に復帰させるデータ位置復帰手段とを電子機器が具備する In the present invention, (a) a header area is provided at each predetermined position for each data storage area for storing data, and whether or not compression is effective for the data stored in the corresponding data storage area. A plurality of volatile memory modules each storing area valid information indicating data and position information indicating data storage position, and (b) storage is required among the data stored in the plurality of memory modules. a storage continuation start timing detecting means for detecting the stored continuous start timing of saving data as a timing to continue in unison, when detecting Save continuation start timing above is (iii) the stored continuous start timing detecting means, and wherein Only the data storage area in which the area valid information enables compression is compressed and the header area described above is compressed. A post-compression data generating means to definitive position information individually added to the post-compression data, (d) thereof when the data after compression for the entire plurality of memory modules said was created by the post-compression data generating means Data rearrangement means for rearranging data so that all of them are gathered in a part of the plurality of memory modules, and (e) all the compressed data is stored in the data rearrangement means. Power concentration stopping means for stopping power supply to memory modules other than the above-mentioned some memory modules among the plurality of memory modules after being assembled in some memory modules; Backup end type that detects the start of power supply to the entire memory module as the backup end timing And (g) after the backup end timing detection means detects the end of the backup, the power supply to the memory modules other than the above-mentioned part of the memory modules whose power supply is stopped by the power supply stop means. A power supply restarting means for restarting the supply of power, and (h) when the power supply restarting of the power supply restarting means causes all of the plurality of memory modules to be supplied with power. Decoding of the data storage area in the compressed data concentrated in the memory module and transferring the decoded data storage area to the original positions in the plurality of memory modules indicated by the position information added to them electronic equipment and data position returning means for returning the rearranged previous state of the data the Te is provided.

また、本発明では、データを格納するデータ格納領域ごとにそれらの所定位置にそれぞれヘッダ領域が設けられており、これらヘッダ領域は該当するデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記された揮発性の複数のメモリモジュールを備えたCPUに、電子機器の電源制御プログラムとして、(イ)これら複数のメモリモジュールに格納されたデータのうちで保存が必要とされるデータの保存を一斉に継続させるタイミングとしての保存継続開始タイミングを検知する保存継続開始タイミング検知処理と、(ロ)この保存継続開始タイミング検知処理で前記した保存継続開始タイミングを検知したとき、前記したエリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記したヘッダ領域における位置情報を個別に付加して圧縮後データとする圧縮後データ作成処理と、(ハ)この圧縮後データ作成処理によって前記した複数のメモリモジュールの全体について圧縮後データが作成されたときこれらのすべてを前記した複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うデータ再配置処理と、(ニ)このデータ再配置処理ですべての圧縮後データが前記した一部のメモリモジュールに集結した後、前記した複数のメモリモジュールのうちの前記した一部のメモリモジュール以外のメモリモジュールへの電源の供給を停止する電源停止処理と、(ホ)前記した複数のメモリモジュール全体に対する電源供給の開始をバックアップの終了タイミングとして検知するバックアップ終了タイミング検知処理と、(へ)このバックアップ終了タイミング検知処理でバックアップの終了を検知した後、前記した電源停止処理で電源の供給を停止した前記した一部のメモリモジュール以外のメモリモジュールに対して電源の供給を再開する電源供給再開処理と、(ト)この電源供給再開処理による電源供給再開によって前記した複数のメモリモジュールのすべてが電源の供給を行われるようになった時点で前記した一部のメモリモジュールに集結した圧縮後データにおけるデータ格納領域の復号化と復号化したデータ格納領域のそれぞれをそれらに付加している位置情報の示す前記した複数のメモリモジュールにおける元の位置への転送を行って前記したデータの再配置以前の状態に復帰させるデータ位置復帰処理とを実行させることを特徴とする。In the present invention, header areas are provided at predetermined positions for each data storage area for storing data, and these header areas indicate whether or not compression is effective for data stored in the corresponding data storage area. As a power control program for an electronic device, (a) stored in the plurality of memory modules as a power control program for an electronic device in a CPU having a plurality of volatile memory modules each storing area valid information and position information indicating a data storage position. The storage continuation start timing detection process for detecting the storage continuation start timing as the timing for continuing the storage of data that needs to be saved at the same time, and (b) the storage continuation start timing detection process described above. When the storage continuation start timing is detected, the above-mentioned area valid information is data for which compression is valid. (C) a plurality of memory modules described above by compressing only the storage area and individually adding the position information in the header area to the compressed area to obtain compressed data; A data rearrangement process for rearranging data so that all of them are collected in a part of the memory modules when the post-compression data is created for all of the above, (d) After all the compressed data is collected in the memory module described above in the data rearrangement process, the supply of power to the memory modules other than the memory module in the plurality of memory modules described above is stopped. And (e) backup of the start of power supply to the entire memory modules described above. Backup end timing detection processing detected as end timing, and (f) other than the above-mentioned some memory modules that have stopped supplying power in the power supply stop processing after detecting the end of backup in this backup end timing detection processing The power supply restart process for restarting the power supply to the memory module and (g) the power supply restart by this power supply restart process, all of the plurality of memory modules are now supplied with power. Decoding of the data storage area in the compressed data gathered in some of the memory modules described above at the time and the original in the plurality of memory modules indicated by the positional information added to each of the decoded data storage areas To the position before the data relocation as described above. A data position return process to be returned is executed.

更に、本発明では、(イ)データを格納するデータ格納領域ごとにそれらの所定位置にそれぞれヘッダ領域が設けられており、これらヘッダ領域は該当するデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記された揮発性の複数のメモリモジュールを備えた電子機器におけるこれら複数のメモリモジュールに格納されたデータのうちで保存が必要とされるデータの保存を一斉に継続させるタイミングとしての保存継続開始タイミングを検知する保存継続開始タイミング検知ステップと、(ロ)この保存継続開始タイミング検知ステップで前記した保存継続開始タイミングを検知したとき、前記したエリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記したヘッダ領域における位置情報を個別に付加して圧縮後データとする圧縮後データ作成ステップと、(ハ)この圧縮後データ作成ステップによって前記した複数のメモリモジュールの全体について圧縮後データが作成されたときこれらのすべてを前記した複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うデータ再配置ステップと、(ニ)このデータ再配置ステップですべての圧縮後データが前記した一部のメモリモジュールに集結した後、前記した複数のメモリモジュールのうちの前記した一部のメモリモジュール以外のメモリモジュールへの電源の供給を停止する電源停止ステップと、(ホ)前記した複数のメモリモジュール全体に対する電源供給の開始をバックアップの終了タイミングとして検知するバックアップ終了タイミング検知ステップと、(へ)このバックアップ終了タイミング検知ステップでバックアップの終了を検知した後、前記した電源停止ステップで電源の供給を停止した前記した一部のメモリモジュール以外のメモリモジュールに対して電源の供給を再開する電源供給再開ステップと、(ト)この電源供給再開ステップによる電源供給再開によって前記した複数のメモリモジュールのすべてが電源の供給を行われるようになった時点で前記した一部のメモリモジュールに集結した圧縮後データにおけるデータ格納領域の復号化と復号化したデータ格納領域のそれぞれをそれらに付加している位置情報の示す前記した複数のメモリモジュールにおける元の位置への転送を行って前記したデータの再配置以前の状態に復帰させるデータ位置復帰ステップとを電子機器の電源制御方法が具備する。Further, in the present invention, (a) header areas are provided at predetermined positions for each data storage area for storing data, and these header areas are compressed for data stored in the corresponding data storage area. It is necessary to save the data stored in the plurality of memory modules in an electronic device having a plurality of volatile memory modules in which the area valid information indicating whether or not the data is stored and the position information indicating the storage position of the data. A storage continuation start timing detection step for detecting a storage continuation start timing as a timing for continuing the storage of data to be taken at the same time, and The above-mentioned area effective information compresses only the data storage area for which compression is effective. A post-compression data creation step for individually adding position information in the header area to the post-compression data, and (c) post-compression data creation step, the post-compression data for all the plurality of memory modules A data rearrangement step for rearranging data so that all of these are gathered into some of the memory modules described above when created, and (d) all data in this data rearrangement step A power stop step of stopping the supply of power to the memory modules other than the above-mentioned some of the plurality of memory modules after the compressed data is collected in the above-mentioned some of the memory modules; E) The start of power supply to the whole of the plurality of memory modules is the end of the backup. Backup end timing detection step detected as a timing, and (f) after detecting the end of backup in this backup end timing detection step, and other than the above-mentioned some memory modules that stopped supplying power in the power stop step described above A power supply restarting step for restarting the power supply to the memory module; and (g) a point in time when all of the plurality of memory modules are supplied with power by restarting the power supply in the power supply restarting step. In the plurality of memory modules described above, the decoding of the data storage area in the compressed data concentrated in the part of the memory modules described above and the original information in the plurality of memory modules indicated by the position information added to each of the decoded data storage areas Transfer to the location and re- The electronic apparatus power control method includes a data position return step for returning to a state before arrangement.

以上説明したように発明によれば、揮発性の複数のメモリモジュールにそれぞれのデータを格納するデータ格納領域を配置すると共に、これらのデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記されたヘッダ領域を配置することにした。そして、保存継続開始タイミングが検知された場合にはエリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記した位置情報を個別に付加して前記した複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うことにし、残りのメモリモジュールへの電源の供給を停止した。これにより、全メモリモジュールに対する電源の供給が再開されるまで、電力の使用量を低減できるだけでなく、残りのメモリモジュールに記憶されていた圧縮を有効としないデータ格納領域のデータは、電源の供給がオフになった状態で不要なデータとして特別の操作を行う必要なく削除されるという効果がある。 As described above, according to the present invention, a data storage area for storing each data is arranged in a plurality of volatile memory modules, and whether or not compression is effective for the data stored in these data storage areas is determined. The header area in which the area valid information to be shown and the position information to indicate the data storage position are respectively arranged is arranged. When the storage continuation start timing is detected, the area valid information compresses only the data storage area for which the compression is valid and adds the position information individually to the data storage area. The data was rearranged so as to be collected in some of the memory modules, and the supply of power to the remaining memory modules was stopped. As a result, not only can the power consumption be reduced until the power supply to all memory modules is resumed, but the data stored in the data storage area that does not enable compression stored in the remaining memory modules is supplied with power. In the state where is turned off, there is an effect that the data is deleted as unnecessary data without performing a special operation.

以下実施例につき本発明を詳細に説明する。   Hereinafter, the present invention will be described in detail with reference to examples.

図1は、本発明の一実施例における電子機器の要部を表わしたものである。電子機器100は、一例としては大型コンピュータにおける拡張記憶装置であるが、PDA(Personal Digital Assistant)のように小型で内部にバックアップ用の記憶装置を備えるものであってもよい。本実施例でバックアップとは、省電力を図ってデータを比較的長時間保存させ得るデータ保存形態をいう。   FIG. 1 shows a main part of an electronic device according to an embodiment of the present invention. The electronic device 100 is an extended storage device in a large computer as an example, but may be a small device such as a PDA (Personal Digital Assistant) and provided with a backup storage device inside. In the present embodiment, backup refers to a data storage mode that can save power for a relatively long time in order to save power.

電子機器100は、第1〜第3のモジュール101〜103からなるバックアップの対象となるプロセッサモジュール群104を備えている。ここで、第1のモジュール101は、第1のCPU105と第2のCPU106および第1のメモリ107を備えたマルチプロセッサのモジュールとしての構成となっている。第2のモジュール102は第3のCPU108と第2のメモリ109から構成されている。第3のモジュール103は第3のメモリ111のみから構成されている。   The electronic device 100 includes a processor module group 104 to be backed up consisting of first to third modules 101 to 103. Here, the first module 101 is configured as a multiprocessor module including the first CPU 105, the second CPU 106, and the first memory 107. The second module 102 includes a third CPU 108 and a second memory 109. The third module 103 includes only the third memory 111.

電子機器100には、このプロセッサモジュール群104に存在する第1のメモリ107、第2のメモリ109および第3のメモリ111のバックアップへの移行のタイミングを検知するバックアップ移行検知部113が備えられている。たとえばユーザが、この電子機器100をサスペンドモードに移行させるための図示しないスイッチを押したような場合には、バックアップへの移行のタイミングが検知される。   The electronic device 100 includes a backup transition detection unit 113 that detects the timing of transition to backup of the first memory 107, the second memory 109, and the third memory 111 that exist in the processor module group 104. Yes. For example, when the user presses a switch (not shown) for shifting the electronic device 100 to the suspend mode, the timing for shifting to the backup is detected.

電子機器100には、更に、第1〜第3のメモリ107、109、111を含めたシステムの状態を診断する診断機構部114と、これらのメモリ107、109、111のデータを圧縮するメモリデータ圧縮機構部115と、バックアップ時に最小の消費電力のモジュール構成とするための最小消費電力モジュール構成選択機構部116と、これらのメモリ107、109、111に格納されたデータを必要に応じてこれらの一部に転送するデータ転送機構部117および電源管理機構部118が備えられている。   The electronic device 100 further includes a diagnosis mechanism unit 114 that diagnoses the state of the system including the first to third memories 107, 109, and 111, and memory data that compresses data in these memories 107, 109, and 111 The compression mechanism unit 115, the minimum power consumption module configuration selection mechanism unit 116 for setting the module configuration with the minimum power consumption at the time of backup, and the data stored in these memories 107, 109, and 111 as necessary. A data transfer mechanism 117 and a power management mechanism 118 for transferring a part are provided.

診断機構部114には、この電子機器100のプロセッサモジュール群104に対するバックアップ制御を行うCPU121と、バックアップ制御を行う制御プログラムを格納した磁気ディスク等の記憶媒体からなる制御プログラム格納部122が配置されている。診断機構部114のCPU121は、この電子機器100の全般の制御を兼用するものであってもよい。また、最小消費電力モジュール構成選択機構部116等のデータのバックアップに用いられるデバイスの少なくとも一部が、CPU121による制御プログラムの実行によってソフトウェアにより実現されるものであってもよい。   The diagnosis mechanism unit 114 includes a CPU 121 that performs backup control for the processor module group 104 of the electronic device 100 and a control program storage unit 122 that includes a storage medium such as a magnetic disk that stores a control program for performing backup control. Yes. The CPU 121 of the diagnosis mechanism unit 114 may also be used for overall control of the electronic device 100. Further, at least a part of devices used for data backup, such as the minimum power consumption module configuration selection mechanism unit 116, may be realized by software by execution of a control program by the CPU 121.

最小消費電力モジュール構成選択機構部116には、プロセッサモジュール群104のバックアップ時の電源制御を行う際に使用する情報を格納したバックアップ管理テーブル124が用意されている。最小消費電力モジュール構成選択機構部116は、第1〜第3のモジュール101〜103の消費電力を、電子機器100の通常運転時に予め判別する図示しない消費電力判別回路を備えており、バックアップモード移行時に消費電力が最小となるモジュールの構成を選択するようになっている。消費電力判別回路を備える代わりに、第1〜第3のモジュール101〜103の消費電力を前記したオペレータや保守管理者が予めセットするようにしてもよい。   The minimum power consumption module configuration selection mechanism unit 116 is provided with a backup management table 124 that stores information used when performing power control during backup of the processor module group 104. The minimum power consumption module configuration selection mechanism unit 116 includes a power consumption discrimination circuit (not shown) that discriminates in advance the power consumption of the first to third modules 101 to 103 during normal operation of the electronic device 100, and shifts to the backup mode. Sometimes, the module configuration that minimizes power consumption is selected. Instead of providing the power consumption determination circuit, the power consumption of the first to third modules 101 to 103 may be set in advance by the above-described operator or maintenance manager.

図2は、本実施例のバックアップ管理テーブルの要部を表わしたものである。バックアップ管理テーブル124には、第1〜第3のモジュール101〜103のそれぞれの消費電力と、第1のモジュール101における第1のメモリ107と、第2のモジュール102における第2のメモリ109と、第3のモジュール103における第3のメモリ111のそれぞれのメモリ容量が記されている。本実施例では、これらを「大」、「中」および「小」の3段階に分類してテーブル値として格納することにしているが、具体的な値が格納されるようになっていてもよい。   FIG. 2 shows the main part of the backup management table of this embodiment. The backup management table 124 includes the power consumption of each of the first to third modules 101 to 103, the first memory 107 in the first module 101, the second memory 109 in the second module 102, The memory capacity of each of the third memories 111 in the third module 103 is indicated. In this embodiment, these are classified into three levels of “large”, “medium”, and “small” and stored as table values. However, even if specific values are stored. Good.

図1におけるデータ転送機構部117は、最小消費電力モジュール構成選択機構部116に対してプロセッサモジュール群104におけるデータ転送を指示する回路部分である。最小消費電力モジュール構成選択機構部116は、図2に示したバックアップ管理テーブル124を参照して、第1〜第3のメモリ107、109、111におけるデータの転送形態を選択するようになっている。これは、第1〜第3のメモリ107、109、111の一部に全データを集めてバックアップを行うことで、消費電力の低減を図るためである。このようにバックアップ時にデータを一時的に第1〜第3のメモリ107、109、111の一部に集める場合、バックアップが終了したときにこれらは元の場所に返される。このため、転送の対象となるそれぞれのデータには、第1〜第3のメモリ107、109、111のどの位置に格納されていたかを示す位置情報が付与されるようになっている。   The data transfer mechanism unit 117 in FIG. 1 is a circuit part that instructs the minimum power consumption module configuration selection mechanism unit 116 to transfer data in the processor module group 104. The minimum power consumption module configuration selection mechanism unit 116 selects a data transfer mode in the first to third memories 107, 109, and 111 with reference to the backup management table 124 shown in FIG. . This is to reduce power consumption by collecting all data in a part of the first to third memories 107, 109, and 111 and performing backup. In this way, when data is temporarily collected in a part of the first to third memories 107, 109, and 111 at the time of backup, these are returned to the original location when the backup is completed. For this reason, each piece of data to be transferred is given position information indicating where it is stored in the first to third memories 107, 109, and 111.

メモリデータ圧縮機構部115は、第1〜第3のメモリ107、109、111の一部に全データを集めてバックアップを行う際に、データを圧縮する処理を行う。圧縮処理は必要に応じて行われるようになっていてもよい。また、それぞれのデータに圧縮を有効とするエリアであるか否かを示すエリア有効情報が付けられている場合には、圧縮を有効とするエリアのみを対象として圧縮するようにしてもよい。   The memory data compression mechanism 115 performs a process of compressing data when collecting all data in a part of the first to third memories 107, 109, and 111 and performing backup. The compression process may be performed as necessary. Further, when area validity information indicating whether or not each data is an area for which compression is effective is attached, the compression may be performed only for the area for which compression is effective.

なお、本実施例で圧縮を有効としないエリアとは、データが存在するのにそれをバックアップの対象としないとするエリアと、もともとデータが存在せずバックアップの対象とならないエリアの双方の意味がある。前者の場合には、第1〜第3のメモリ107、109、111が揮発性であれば、バックアップの対象としないデータは、後に説明するようにモジュールないの電源を遮断したときに消失することになる。したがって、保存の価値のないデータは圧縮を有効としない指標を付けておくことで、バックアップの際にこれらを自動的に削除する処理を行うことができる。   In this embodiment, the area where compression is not effective means both an area where data exists but is not subject to backup, and an area where data originally does not exist and is not subject to backup. is there. In the former case, if the first to third memories 107, 109, and 111 are volatile, data that is not to be backed up will be lost when the power supply of the module is shut off as will be described later. become. Therefore, by attaching an index that does not enable compression for data that is not worth saving, it is possible to perform processing for automatically deleting these at the time of backup.

電源管理機構部118は、第1〜第3のモジュール101〜103のそれぞれの電力制御を行うようになっている。たとえば、圧縮処理の結果として第1〜第3のモジュール101〜103内の全データが第1のメモリ107にバックアップ用に一時的にまとめて格納されたとすると、電源管理機構部118はバックアップ時に第2および第3のモジュール102、103に対する電力供給をオフにすることで、全体的な消費電力の節減を図ることになる。   The power management mechanism unit 118 performs power control of each of the first to third modules 101 to 103. For example, if all the data in the first to third modules 101 to 103 are temporarily stored together for backup in the first memory 107 as a result of the compression process, the power management mechanism 118 will By turning off the power supply to the second and third modules 102 and 103, overall power consumption can be reduced.

図3は、本実施例の電子機器のバックアップ開始までの制御の様子を表わしたものである。図1および図2と共に説明を行う。   FIG. 3 shows the state of control up to the start of backup of the electronic apparatus of this embodiment. The description will be made with reference to FIGS.

診断機構部114は、バックアップ移行検知部113からバックアップに移行したことの検知信号が入力されるのを待機している(ステップS201)。バックアップに移行したことの検知信号が入力されると(Y)、メモリデータ圧縮機構部115に指示して第1〜第3のモジュール101〜103からそれらの第1〜第3のメモリ107、109、111に格納されたデータを順に読み出して、圧縮が有効なものについて圧縮し、これらにどのアドレスに存在していたかを示す位置情報を付記する(ステップS202)。たとえば圧縮データのそれぞれのヘッダ領域に位置情報の格納が行われる。   The diagnosis mechanism unit 114 waits for a detection signal indicating that the backup shift detection unit 113 has shifted to the backup to be input (step S201). When a detection signal indicating that the state has shifted to backup is input (Y), the memory data compression mechanism unit 115 is instructed and the first to third memories 107 and 109 from the first to third modules 101 to 103 are instructed. , 111 are sequentially read out, and those that are effective in compression are compressed, and the position information indicating the address at which they are present is added (step S202). For example, position information is stored in each header area of the compressed data.

図4は、データの圧縮が行われる前の所定のモジュール内のメモリにおけるデータ格納部位の格納状態の一部を表わしたものである。メモリ領域130には、1つ1つのデータ格納領域1311、1312、……ごとに先頭位置にヘッダ領域132が設けられており、それに続いてデータ133が格納されている。データ格納領域1311、1312、……は、それぞれ固定長のバイト数の領域として構成されていてもよいし、任意のバイト数の領域として構成されていてもよい。 FIG. 4 shows a part of the storage state of the data storage part in the memory in the predetermined module before the data is compressed. In the memory area 130, a header area 132 is provided at the head position for each of the data storage areas 131 1 , 131 2 ,..., And subsequently, data 133 is stored. Each of the data storage areas 131 1 , 131 2 ,... May be configured as an area having a fixed number of bytes, or may be configured as an area having an arbitrary number of bytes.

ヘッダ領域132には、メモリ領域131における位置を示す位置情報1341、1342、……と、圧縮が有効か無効かを示すエリア有効情報1351、1352、……が組み込まれるようになっている。位置情報1341、1342、……には、該当するメモリ領域131におけるアドレス情報だけでなく、図1に示した第1〜第3のモジュール101〜103のどれを構成するメモリに格納されているかを示す情報が含まれていてもよい。 In the header area 132, position information 134 1 , 134 2 ,... Indicating the position in the memory area 131 and area valid information 135 1 , 135 2 ,. ing. In the position information 134 1 , 134 2 ,..., Not only the address information in the corresponding memory area 131 but also stored in the memory constituting any of the first to third modules 101 to 103 shown in FIG. May be included.

図5は、データの圧縮が行われた後の所定のモジュール内のメモリにおけるデータ格納部位の格納状態の一部を表わしたものである。メモリ領域131には、図4のヘッダ領域132のエリア有効情報135が「有効」とされたデータ格納領域1311、1313、……についての圧縮データ1371、1373、……がそれらの位置情報1341、1343、……をそれぞれの先頭に配置した形で格納されている。位置情報1341、1343、……は、圧縮データ1371、1373、……をそれぞれ復号したときに、図4に示した元の位置にデータが再格納されるようにするための情報である。 FIG. 5 shows a part of the storage state of the data storage part in the memory in the predetermined module after the data compression. In the memory area 131, compressed data 137 1 , 137 3 ,... For the data storage areas 131 1 , 131 3 ,... In which the area valid information 135 of the header area 132 of FIG. Position information 134 1 , 134 3 ,... Is stored in a form arranged at the head of each. The position information 134 1 , 134 3 ,... Is information for causing the data to be re-stored at the original position shown in FIG. 4 when the compressed data 137 1 , 137 3 ,. It is.

このようにして第1〜第3のモジュール101〜103におけるデータの圧縮処理が終了したら、最小消費電力モジュール構成選択機構部116は、圧縮後の第1〜第3のメモリ107、109、111のデータ量D1、D2およびD3の合計値を算出する(ステップS203)。この計算の際には、位置情報を示すデータの量も加算される。次に、図2に示したバックアップ管理テーブル124から第1〜第3のモジュール101〜103のそれぞれのメモリ容量(サイズ)C1、C2、C3を読み出す(ステップS204)。図1に示した例ではそれぞれのモジュール101〜103に1つずつメモリ107、109、111が配置されているが、仮にあるモジュールに複数のメモリが物理的に配置されている場合、そのメモリ容量は同一モジュール内のメモリのメモリ容量の合計値となる。 When the data compression processing in the first to third modules 101 to 103 is completed in this way, the minimum power consumption module configuration selection mechanism unit 116 stores the compressed first to third memories 107, 109, and 111. A total value of the data amounts D 1 , D 2 and D 3 is calculated (step S203). In this calculation, the amount of data indicating position information is also added. Then, reading the respective memory (size) C 1, C 2, C 3 of the first to third module 101 to 103 from the backup management table 124 shown in FIG. 2 (step S204). In the example shown in FIG. 1, one memory 107, 109, and 111 is arranged in each of the modules 101 to 103. However, if a plurality of memories are physically arranged in a certain module, the memory capacity Is the total memory capacity of the memories in the same module.

最小消費電力モジュール構成選択機構部116は、バックアップ管理テーブル124に示される最大容量のモジュールのメモリ容量が、圧縮後の第1〜第3のメモリ107、109、111のデータ量D1、D2およびD3の合計値よりも大きいかを判別する(ステップS205)。大きいと判別される場合には(Y)、圧縮後の第1〜第3のメモリ107、109、111の全データが最大容量のモジュールのメモリに格納できることになる。そこで、この場合には、これら第1〜第3のモジュール101〜103の全データを最大容量のモジュールのメモリに集結させることになる(ステップS206)。具体的には、バックアップ管理テーブル124を見ると第3のモジュール103のメモリ容量C3が最大である。そこで、第3のメモリ111に対してデータ転送機構部117は第1および第2のメモリ107、109の圧縮後のデータとこれらの位置情報を転送することになる。 The minimum power consumption module configuration selection mechanism unit 116 is configured such that the memory capacity of the maximum capacity module indicated in the backup management table 124 is the data amount D 1 , D 2 of the first to third memories 107, 109, 111 after compression. And whether it is larger than the total value of D 3 (step S205). When it is determined that it is large (Y), all the data in the compressed first to third memories 107, 109, and 111 can be stored in the memory of the module having the maximum capacity. Therefore, in this case, all the data of the first to third modules 101 to 103 are collected in the memory of the module having the maximum capacity (step S206). Specifically, looking at the backup management table 124, the memory capacity C3 of the third module 103 is the maximum. Therefore, the data transfer mechanism unit 117 transfers the compressed data of the first and second memories 107 and 109 and their position information to the third memory 111.

このようにして第1〜第3のモジュール101〜103の全データを1つのモジュールに集結したら、電源管理機構部118が不要モジュールの電源を一時的に遮断する(ステップS207)。本実施例の場合には、第3のメモリ111に第1〜第3のモジュール101〜103の全データが集結する。これにより第1および第2のモジュール101、102内にはバックアップの対象となるデータが存在しなくなる。そこで第1および第2のモジュール101、102が不要モジュールとなり、これらへの電源供給が遮断される。この後、データのバックアップが実行される(ステップS208)。   When all the data of the first to third modules 101 to 103 are collected in one module in this way, the power management mechanism unit 118 temporarily shuts off the power of unnecessary modules (step S207). In the case of the present embodiment, all data of the first to third modules 101 to 103 are collected in the third memory 111. As a result, there is no data to be backed up in the first and second modules 101 and 102. Therefore, the first and second modules 101 and 102 become unnecessary modules, and the power supply to these is cut off. Thereafter, data backup is executed (step S208).

次に、バックアップ管理テーブル124に示される最大容量のモジュールのメモリ容量が、圧縮後の第1〜第3のメモリ107、109、111のデータ量D1、D2およびD3の合計値以下であると判別された場合を説明する。この場合(ステップS205:N)、最小消費電力モジュール構成選択機構部116は、バックアップ管理テーブル124を参照して、メモリ容量の一番大きなモジュールと次に大きなモジュールのメモリ容量の合計値が、圧縮後の第1〜第3のメモリ107、109、111のデータ量D1、D2およびD3の合計値よりも大きいかを判別する(ステップS209)。 Next, the memory capacity of the module having the maximum capacity shown in the backup management table 124 is equal to or less than the total value of the data amounts D 1 , D 2 and D 3 of the first to third memories 107, 109 and 111 after compression. A case where it is determined that there is one will be described. In this case (step S205: N), the minimum power consumption module configuration selection mechanism unit 116 refers to the backup management table 124, and the total value of the memory capacity of the module having the largest memory capacity and the next largest module is compressed. It is determined whether or not the data amount D 1 , D 2, and D 3 of the subsequent first to third memories 107, 109, and 111 is larger than the total value (step S209).

大きいと判別される場合には(Y)、圧縮後の第1〜第3のメモリ107、109、111の全データが最大容量と次に大きな容量のメモリに格納できることになる。そこで、この場合には、これら第1〜第3のモジュール101〜103の全データをこれら2つのモジュールのメモリに集結させることになる(ステップS210)。具体的には、バックアップ管理テーブル124を見ると第3のモジュール103のメモリ容量C3が最大であり、第2のモジュール102のメモリ容量C2がこれに続く。そこで、第2および第3のメモリ109、111に対してデータ転送機構部117は第1のメモリ107の圧縮後のデータとこれらの位置情報を転送することになる。 When it is determined that it is large (Y), all the data in the compressed first to third memories 107, 109, and 111 can be stored in the memory having the largest capacity and the next largest capacity. Therefore, in this case, all the data of the first to third modules 101 to 103 are collected in the memories of these two modules (step S210). Specifically, looking at the backup management table 124, the memory capacity C 3 of the third module 103 is the largest, followed by the memory capacity C 2 of the second module 102. Therefore, the data transfer mechanism unit 117 transfers the compressed data of the first memory 107 and the position information thereof to the second and third memories 109 and 111.

この後、ステップS207の処理が行われる。本実施例の場合には、第2および第3のメモリ109、111に第1〜第3のモジュール101〜103の全データが集結する。これにより第1のモジュール101内にはバックアップの対象となるデータが存在しなくなる。そこで第1のモジュール101が不要モジュールとなり、これへの電源供給が遮断される。この後、データのバックアップが実行される(ステップS208)。   Thereafter, the process of step S207 is performed. In the case of this embodiment, all data of the first to third modules 101 to 103 are collected in the second and third memories 109 and 111. As a result, there is no data to be backed up in the first module 101. Therefore, the first module 101 becomes an unnecessary module, and power supply to this is cut off. Thereafter, data backup is executed (step S208).

ところで、メモリ容量の一番大きなモジュールと次に大きなモジュールのメモリ容量の合計値が、圧縮後の第1〜第3のメモリ107、109、111のデータ量D1、D2およびD3の合計値以下であると判別される場合がある(ステップS209:N)。第1〜第3のモジュール101〜103を備えるこの例では、少なくとも1つのモジュール内のデータを他のモジュールに全部転送することができない。そこで、この場合にはデータ転送機構部117がデータの転送を行うことなく、ステップS208に進んでバックアップ処理が開始することになる。 Incidentally, the sum of the memory capacities of the module having the largest memory capacity and the next largest module is the sum of the data amounts D 1 , D 2 and D 3 of the first to third memories 107, 109 and 111 after compression. It may be determined that the value is equal to or less than the value (step S209: N). In this example including the first to third modules 101 to 103, data in at least one module cannot be completely transferred to other modules. Therefore, in this case, the data transfer mechanism unit 117 does not transfer the data, and proceeds to step S208 to start the backup process.

もちろん、図1に示したプロセッサモジュール群104を構成するモジュールの数がたとえば4つの場合には、更に3つのモジュールに残りの1つのモジュールのデータをすべて転送できるかどうかの判別を行うことができる。このようにプロセッサモジュール群104を構成するモジュールの数が幾つかによって、図3に示したバックアップ開始までの処理の詳細を異ならせることができる。   Of course, when the number of modules constituting the processor module group 104 shown in FIG. 1 is four, for example, it is possible to determine whether or not all the data of the remaining one module can be transferred to three modules. . Thus, depending on the number of modules constituting the processor module group 104, the details of the processing up to the start of the backup shown in FIG. 3 can be made different.

図6は、バックアップ終了時のデータの復帰処理の様子を表わしたものである。図1と共に説明する。バックアップが終了すると、バックアップ移行検知部113がバックアップの終了を診断機構部114に知らせるので、診断機構部114はこれを基にして電源管理機構部118にプロセッサモジュール群104を構成する全モジュール101〜103の一部が電源停止状態であるかどうかを問い合わせる(ステップS221)。第1〜第3のモジュール101〜103の一部がデータを全部排出した結果として電源を停止している場合があるからである。   FIG. 6 shows the state of data restoration processing at the end of backup. This will be described with reference to FIG. When the backup is completed, the backup transition detection unit 113 notifies the diagnosis mechanism unit 114 of the end of the backup. Based on this, the diagnosis mechanism unit 114 causes the power management mechanism unit 118 to configure all the modules 101 to 101 constituting the processor module group 104. An inquiry is made as to whether or not a part of 103 is in a power-off state (step S221). This is because a part of the first to third modules 101 to 103 may stop the power supply as a result of discharging all data.

第1〜第3のモジュール101〜103の一部が電源を停止していたら(Y)、これらについても電源を投入させる(ステップS222)。そして、データ転送機構部117は、一部のモジュールに集結していた圧縮後のデータを、第1〜第3のモジュール101〜103の元の配置に戻す(ステップS223)。この後、メモリデータ圧縮機構部115が第1〜第3のモジュール101〜103のデータを復号化する(ステップS224)。なお、復号化を1つのモジュールで終了させた後に次のモジュールで開始するといった処理を行う場合、待機中のモジュールについてはデータの転送や復号化が行われるまで、その電源を停止状態にすることが可能である。   If some of the first to third modules 101 to 103 are powered off (Y), they are also turned on (step S222). Then, the data transfer mechanism unit 117 returns the compressed data collected in some modules to the original arrangement of the first to third modules 101 to 103 (step S223). Thereafter, the memory data compression mechanism unit 115 decrypts the data of the first to third modules 101 to 103 (step S224). When processing is performed such that decoding is completed with one module and then started with the next module, the power of the waiting module is stopped until data transfer or decoding is performed. Is possible.

それぞれのモジュール101〜103について復号化が終了したら、位置情報を基にしてそれぞれのデータを元の位置に配置して(ステップS225)、処理を終了させる。なお、圧縮後のデータが集結していたモジュール内で容量的にすべてのデータの復号化が可能であれば、これら1つまたは複数のモジュールで復号化処理を行い、その後に残りのモジュールの電源を投入して復号化後のデータをこれらのモジュールに転送するようにしてもよい。   When the decoding is completed for each of the modules 101 to 103, the respective data are arranged at the original positions based on the position information (step S225), and the process is ended. If all the data can be decrypted in terms of capacity within the module in which the compressed data is gathered, the decryption processing is performed by one or a plurality of these modules, and then the remaining modules are powered. The decrypted data may be transferred to these modules.

ステップS221で第1〜第3のモジュール101〜103の電源がすべて動作状態であった場合には(N)、モジュール間でバックアップのためのデータの転送が行われていない。そこでこの場合にはステップS224に進んで、それぞれのモジュール内でデータの復号化が行われ、位置情報に合わせてデータの配置が行われることになる(ステップS225)。   If all the power sources of the first to third modules 101 to 103 are in an operating state in step S221 (N), data for backup is not transferred between the modules. In this case, the process proceeds to step S224, where data is decoded in each module, and data is arranged in accordance with the position information (step S225).

以上説明した実施例では、モジュールに格納するデータのエリアに圧縮を有効とするエリアであるか否かを示すエリア有効情報を付けたので、バックアップを実行するごとに不要なデータを整理することができるという利点がある。   In the embodiment described above, area valid information indicating whether or not compression is valid is added to the data area stored in the module, so that unnecessary data can be organized every time backup is executed. There is an advantage that you can.

本発明では、図1に示したプロセッサモジュール群104の構成を変化させてバックアップ時の消費電力を全体的に軽減させることが特徴である。このため、本発明には各種の変形が可能である。そこで、このうちの代表的なものを示すことにする。   The present invention is characterized in that the power consumption during backup is reduced overall by changing the configuration of the processor module group 104 shown in FIG. For this reason, various deformation | transformation are possible for this invention. Therefore, representative ones will be shown.

<発明の第1の変形例>   <First Modification of Invention>

図7は、本発明の第1の変形例で電子機器のバックアップ開始までの制御の様子を表わしたものである。図1および図2と共に説明を行う。また、図3と同一部分には同一のステップ番号を付しており、これらの説明は適宜省略する。バックアップモードへの移行が検知されて、第1〜第3のモジュール101〜103内の第1〜第3のメモリ107、109、111のデータを圧縮し位置情報を付加すること(ステップS201、ステップS202)までは実施例と同じである。   FIG. 7 shows a state of control up to the start of backup of the electronic device in the first modification of the present invention. The description will be made with reference to FIGS. The same parts as those in FIG. 3 are denoted by the same step numbers, and description thereof will be omitted as appropriate. When the transition to the backup mode is detected, the data of the first to third memories 107, 109, and 111 in the first to third modules 101 to 103 are compressed and the position information is added (step S201, step The process up to S202) is the same as the embodiment.

その次のステップS301で最小消費電力モジュール構成選択機構部116は、第1〜第3のモジュール101〜103内の圧縮後のデータ量D1、D2およびD3を算出する(ステップS301)。そして、これらのモジュール101〜103内の残メモリ容量B1、B2およびB3を算出する(ステップS302)。そして、最大の残容量は、それの属するモジュール以外のモジュール同士のデータ量の和よりも大であるかの判別が行われる(ステップS303)。そして、そうであれば(Y)、最大の残容量のモジュールにそれ以外のモジュールのデータを転送する(ステップS304)。これ以後は、不要モジュールの電源が停止されて(ステップS207)、データのバックアップが行われることになる(ステップS208)。 In the next step S301, the minimum power consumption module configuration selection mechanism unit 116 calculates the compressed data amounts D 1 , D 2 and D 3 in the first to third modules 101 to 103 (step S301). Then, the remaining memory capacities B 1 , B 2 and B 3 in these modules 101 to 103 are calculated (step S302). Then, it is determined whether the maximum remaining capacity is larger than the sum of data amounts of modules other than the module to which the maximum capacity belongs (step S303). If so (Y), the data of the other modules are transferred to the module having the maximum remaining capacity (step S304). Thereafter, the power supply of unnecessary modules is stopped (step S207), and data backup is performed (step S208).

次に、第1〜第3のモジュール101〜103における最大の残容量が、それの属するモジュール以外のモジュール同士のデータ量の和以下であると判別された場合について説明する。この場合には(ステップS303:N)、第1〜第3のモジュール101〜103における最大の残容量と次に大きな残容量の和がそれら以外のモジュールのデータ量よりも大きいかが判別される(ステップS305)。そうであれば(Y)、最大の残容量と次に大きな残容量のモジュールに、これら以外のモジュールのデータが転送される(ステップS306)。これ以降は、ステップS207に処理が進むことになる。   Next, a case where it is determined that the maximum remaining capacity in the first to third modules 101 to 103 is equal to or less than the sum of data amounts of modules other than the module to which the module belongs is described. In this case (step S303: N), it is determined whether the sum of the maximum remaining capacity and the next largest remaining capacity in the first to third modules 101 to 103 is larger than the data amount of the other modules ( Step S305). If so (Y), the data of modules other than these are transferred to the module having the largest remaining capacity and the next largest remaining capacity (step S306). Thereafter, the process proceeds to step S207.

ステップS305で、第1〜第3のモジュール101〜103における最大の残容量と次に大きな残容量の和がそれら以外のモジュールのデータ量以下であると判別された場合には(N)、バックアップのために各モジュール101〜103間のデータ転送が行われない。そして、この状態でデータのバックアップが行われる(ステップS208)。   If it is determined in step S305 that the sum of the maximum remaining capacity and the next largest remaining capacity in the first to third modules 101 to 103 is equal to or less than the data amount of other modules (N), backup Therefore, data transfer between the modules 101 to 103 is not performed. In this state, data backup is performed (step S208).

以上説明したように、この第1の変形例では空き容量が一番存在するモジュールに他のモジュールのデータが集結可能であるかを判別するようにしている。そして、これが可能であればそのようなデータ転送を行うことになる。したがって、それぞれのモジュール101〜103の格納できるデータ容量に大差がないような場合には、空き容量の大きなモジュールにデータが転送されて、他のモジュールの省電力を図ることができる。   As described above, in the first modification, it is determined whether data of other modules can be collected in the module having the most free space. If this is possible, such data transfer is performed. Therefore, when there is no large difference in the data capacity that can be stored in each of the modules 101 to 103, the data is transferred to the module having a large free capacity, and the power of other modules can be saved.

<発明の第2の変形例>   <Second Modification of Invention>

図8は、本発明の第2の変形例として、複数のモジュールの中から省電力の最も効果があるモジュールを選択する選択処理を表わしたものである。図1および図2と共に説明する。また、図8で図3と同一部分には同一のステップ番号を付している。   FIG. 8 shows a selection process for selecting a module having the most effective power saving among a plurality of modules as a second modification of the present invention. This will be described with reference to FIGS. In FIG. 8, the same steps as those in FIG. 3 are denoted by the same step numbers.

第1の変形例では、図1に示した最小消費電力モジュール構成選択機構部116が第1〜第3のモジュール101〜103の一部に、圧縮した後のデータを集結できるかどうかを判別する(ステップS321)。図1に示すプロセッサモジュール群104を構成するモジュールの数を減らしてバックアップ処理を行うことが不可能な場合には(N)、バックアップ用のデータの転送処理を行うことなく、データのバックアップが行われる(ステップS208)。   In the first modification, the minimum power consumption module configuration selection mechanism 116 shown in FIG. 1 determines whether or not the compressed data can be collected in a part of the first to third modules 101 to 103. (Step S321). If the number of modules constituting the processor module group 104 shown in FIG. 1 cannot be reduced and backup processing cannot be performed (N), data backup is performed without performing backup data transfer processing. (Step S208).

これに対して、プロセッサモジュール群104を構成するモジュールの数を減らしてバックアップが可能な場合には(ステップS321:Y)、このようなモジュールの全組み合わせを演算する(ステップS322)。そして、演算結果として複数の組み合わせが得られた場合には(ステップS323:Y)、バックアップ管理テーブル124における第1〜第3のモジュール101〜103の消費電力を参照して、モジュールの組み合わせごとに必要とするプロセッサモジュール群104の総消費電力を演算する(ステップS324)。この演算の前提となるのは、組み合わせから外したモジュールの電源供給は停止することである。   On the other hand, when the number of modules constituting the processor module group 104 is reduced and backup is possible (step S321: Y), all combinations of such modules are calculated (step S322). If a plurality of combinations are obtained as the calculation result (step S323: Y), the power consumption of the first to third modules 101 to 103 in the backup management table 124 is referred to for each module combination. The total power consumption of the required processor module group 104 is calculated (step S324). The premise of this calculation is that the power supply to the modules removed from the combination is stopped.

このようにしてプロセッサモジュール群104全体として最小の総消費電力となるモジュールの組み合わせが決定される(ステップS325)。そして、データを集結するために選択されたモジュールにそれ以外のモジュールのデータが集結するようにデータ転送が実行される(ステップS326)。
なお、ステップS323でモジュールの組み合わせが単数であった場合には(N)、その組み合わせに対してステップS326のデータ転送が実行されることになる。
In this way, the combination of modules that provides the minimum total power consumption for the entire processor module group 104 is determined (step S325). Then, the data transfer is executed so that the data of the other modules are collected in the module selected to collect the data (step S326).
If there is a single combination of modules in step S323 (N), the data transfer in step S326 is executed for that combination.

以上のようにして第1〜第3のモジュール101〜103の中の一部のモジュールからデータがなくなったら、実施例で説明したようにそのモジュールに対する電源の供給が停止される(ステップS207)。そしてバックアップが実行されることになる(ステップS208)。   As described above, when data disappears from some of the first to third modules 101 to 103, the supply of power to the modules is stopped as described in the embodiment (step S207). Then, backup is executed (step S208).

<発明の第3の変形例>   <Third Modification of the Invention>

図9は、本発明の第3の変形例におけるバックアップ開始までの処理の流れを示したものである。図1および図2と共に説明する。また、図9で図3と同一部分には同一のステップ番号を付している。   FIG. 9 shows the flow of processing up to the start of backup in the third modification of the present invention. This will be described with reference to FIGS. In FIG. 9, the same step numbers are assigned to the same portions as those in FIG.

この第3の変形例で診断機構部114は、バックアップ移行検知部113からバックアップに移行したことの検知信号が入力されるのを待機している(ステップS201)。バックアップに移行したことの検知信号が入力されると(Y)、最小消費電力モジュール構成選択機構部116は、圧縮を行っていない状態での第1〜第3のメモリ107、109、111のデータ量d1、d2およびd3の合計値を算出する(ステップS341)。次に、図2に示したバックアップ管理テーブル124から第1〜第3のモジュール101〜103のそれぞれのメモリ容量(サイズ)C1、C2、C3を読み出す(ステップS204)。図1に示した例ではそれぞれのモジュール101〜103に1つずつメモリ107、109、111が配置されているが、仮にあるモジュールに複数のメモリが物理的に配置されている場合、そのメモリ容量は同一モジュール内のメモリのメモリ容量の合計値となる。 In the third modified example, the diagnosis mechanism unit 114 is on standby for a detection signal indicating that the backup shift detection unit 113 has shifted to backup (step S201). When a detection signal indicating that the state has shifted to backup is input (Y), the minimum power consumption module configuration selection mechanism unit 116 stores data in the first to third memories 107, 109, and 111 in a state where compression is not performed. The total value of the quantities d 1 , d 2 and d 3 is calculated (step S341). Then, reading the respective memory (size) C 1, C 2, C 3 of the first to third module 101 to 103 from the backup management table 124 shown in FIG. 2 (step S204). In the example shown in FIG. 1, one memory 107, 109, and 111 is arranged in each of the modules 101 to 103. However, if a plurality of memories are physically arranged in a certain module, the memory capacity Is the total memory capacity of the memories in the same module.

最小消費電力モジュール構成選択機構部116は、バックアップ管理テーブル124に示される最大容量のモジュールのメモリ容量が、第1〜第3のメモリ107、109、111の圧縮を行っていないデータ量d1、d2およびd3の合計値よりも大きいかを判別する(ステップS342)。大きいと判別される場合には(Y)、第1〜第3のメモリ107、109、111の全データが最大容量のモジュールのメモリに格納できることになる。そこで、この場合には、これら第1〜第3のモジュール101〜103の全データを最大容量のモジュールのメモリに集結させることになる(ステップS206)。具体的には、バックアップ管理テーブル124を見ると第3のモジュール103のメモリ容量C3が最大である。そこで、第3のメモリ111に対してデータ転送機構部117は第1および第2のメモリ107、109の圧縮を行っていないデータとこれらの位置情報を転送することになる。 The minimum power consumption module configuration selecting mechanism unit 116 has a data capacity d 1 in which the memory capacity of the module having the maximum capacity shown in the backup management table 124 is not compressed in the first to third memories 107, 109, and 111. It is determined whether it is larger than the total value of d 2 and d 3 (step S342). If it is determined that it is large (Y), all the data in the first to third memories 107, 109, and 111 can be stored in the memory of the module having the maximum capacity. Therefore, in this case, all the data of the first to third modules 101 to 103 are collected in the memory of the module having the maximum capacity (step S206). Specifically, looking at the backup management table 124, the memory capacity C3 of the third module 103 is the maximum. Therefore, the data transfer mechanism unit 117 transfers the uncompressed data of the first and second memories 107 and 109 and the position information thereof to the third memory 111.

このようにして第1〜第3のモジュール101〜103の全データを1つのモジュールに集結したら、電源管理機構部118が不要モジュールの電源を一時的に遮断する(ステップS207)。この例では第3のメモリ111に第1〜第3のモジュール101〜103の全データが集結する。これにより第1および第2のモジュール101、102内にはバックアップの対象となるデータが存在しなくなる。そこで第1および第2のモジュール101、102が不要モジュールとなり、これらへの電源供給が遮断される。この後、データのバックアップが実行される(ステップS208)。   When all the data of the first to third modules 101 to 103 are collected in one module in this way, the power management mechanism unit 118 temporarily shuts off the power of unnecessary modules (step S207). In this example, all data of the first to third modules 101 to 103 are collected in the third memory 111. As a result, there is no data to be backed up in the first and second modules 101 and 102. Therefore, the first and second modules 101 and 102 become unnecessary modules, and the power supply to these is cut off. Thereafter, data backup is executed (step S208).

次に、バックアップ管理テーブル124に示される最大容量のモジュールのメモリ容量が、圧縮を行っていない第1〜第3のメモリ107、109、111のデータ量d1、d2およびd3の合計値以下であると判別された場合を説明する。この場合(ステップS342:N)、最小消費電力モジュール構成選択機構部116は、バックアップ管理テーブル124を参照して、メモリ容量の一番大きなモジュールと次に大きなモジュールのメモリ容量の合計値が、圧縮を行っていない第1〜第3のメモリ107、109、111のデータ量d1、d2およびd3の合計値よりも大きいかを判別する(ステップS343)。 Next, the memory capacity of the module having the maximum capacity shown in the backup management table 124 is the total value of the data amounts d 1 , d 2 and d 3 of the first to third memories 107, 109 and 111 that are not compressed. A case where it is determined that the following will be described. In this case (step S342: N), the minimum power consumption module configuration selection mechanism unit 116 refers to the backup management table 124, and the total value of the memory capacity of the module having the largest memory capacity and the next largest module is compressed. It is determined whether it is larger than the total value of the data amounts d 1 , d 2, and d 3 of the first to third memories 107, 109, and 111 that have not been performed (step S343).

大きいと判別される場合には(Y)、圧縮後の第1〜第3のメモリ107、109、111の全データが最大容量と次に大きな容量のメモリに格納できることになる。そこで、この場合には、これら第1〜第3のモジュール101〜103の全データをこれら2つのモジュールのメモリに集結させることになる(ステップS210)。具体的には、バックアップ管理テーブル124を見ると第3のモジュール103のメモリ容量C3が最大であり、第2のモジュール102のメモリ容量C2がこれに続く。そこで、第2および第3のメモリ109、111に対してデータ転送機構部117は第1のメモリ107の圧縮後のデータとこれらの位置情報を転送することになる。 When it is determined that it is large (Y), all the data in the compressed first to third memories 107, 109, and 111 can be stored in the memory having the largest capacity and the next largest capacity. Therefore, in this case, all the data of the first to third modules 101 to 103 are collected in the memories of these two modules (step S210). Specifically, looking at the backup management table 124, the memory capacity C 3 of the third module 103 is the largest, followed by the memory capacity C 2 of the second module 102. Therefore, the data transfer mechanism unit 117 transfers the compressed data of the first memory 107 and the position information thereof to the second and third memories 109 and 111.

この後、ステップS207の処理が行われる。この変形例の場合には、第2および第3のメモリ109、111に第1〜第3のモジュール101〜103の全データが集結する。これにより第1のモジュール101内にはバックアップの対象となるデータが存在しなくなる。そこで第1のモジュール101が不要モジュールとなり、これへの電源供給が遮断される。この後、データのバックアップが実行される(ステップS208)。   Thereafter, the process of step S207 is performed. In the case of this modification, all data of the first to third modules 101 to 103 are collected in the second and third memories 109 and 111. As a result, there is no data to be backed up in the first module 101. Therefore, the first module 101 becomes an unnecessary module, and power supply to this is cut off. Thereafter, data backup is executed (step S208).

ところで、メモリ容量の一番大きなモジュールと次に大きなモジュールのメモリ容量の合計値が、圧縮を行っていない第1〜第3のメモリ107、109、111のデータ量d1、d2およびd3の合計値以下であると判別される場合がある(ステップS343:N)。第1〜第3のモジュール101〜103を備えるこの例では、少なくとも1つのモジュール内のデータを他のモジュールに全部転送することができない。そこで、この場合にはデータ転送機構部117が図3のステップS202以降で示したデータ圧縮による処理を実行することになる(ステップS344)。これについての説明は省略する。 Incidentally, the total value of the memory capacities of the module having the largest memory capacity and the next largest module is the data amount d 1 , d 2 and d 3 of the first to third memories 107, 109, 111 that are not compressed. May be determined to be less than or equal to the total value (step S343: N). In this example including the first to third modules 101 to 103, data in at least one module cannot be completely transferred to other modules. Therefore, in this case, the data transfer mechanism unit 117 executes the processing by data compression shown in step S202 and subsequent steps in FIG. 3 (step S344). The description about this is omitted.

本発明の一実施例における電子機器の要部を表わしたブロック図である。It is a block diagram showing the principal part of the electronic device in one Example of this invention. 本実施例のバックアップ管理テーブルの要部を表わした説明図である。It is explanatory drawing showing the principal part of the backup management table of a present Example. 本実施例の電子機器のバックアップ開始までの制御の様子を表わした流れ図である。It is a flowchart showing the mode of control until the backup start of the electronic device of a present Example. データの圧縮が行われる前の所定のモジュール内のメモリにおけるデータ格納部位の格納状態の一部を表わした説明図である。It is explanatory drawing showing a part of storage state of the data storage location in the memory in the predetermined module before data compression is performed. データの圧縮が行われた後の所定のモジュール内のメモリにおけるデータ格納部位の格納状態の一部を表わした説明図である。It is explanatory drawing showing a part of storage state of the data storage location in the memory in the predetermined module after data compression was performed. 本実施例でバックアップ終了時のデータの復帰処理の様子を表わした流れ図である。6 is a flowchart showing a state of data restoration processing at the end of backup in the present embodiment. 本発明の第1の変形例で電子機器のバックアップ開始までの制御の様子を表わした流れ図である。It is a flowchart showing the mode of control until the backup start of an electronic device in the 1st modification of this invention. 本発明の第2の変形例で複数のモジュールの中から省電力の最も効果があるモジュールを選択する選択処理を表わした流れ図である。It is a flowchart showing the selection process which selects the module with the most effect of power saving from several modules in the 2nd modification of this invention. 本発明の第3の変形例におけるバックアップ開始までの処理の流れを示した流れ図である。It is the flowchart which showed the flow of the process until the backup start in the 3rd modification of this invention. 従来の電子機器の要部を表わしたブロック図である。It is a block diagram showing the principal part of the conventional electronic device.

符号の説明Explanation of symbols

100 電子機器
101 第1のモジュール
102 第2のモジュール
103 第3のモジュール
104 プロセッサモジュール群
105 第1のCPU
106 第2のCPU
107 第1のメモリ
108 第3のCPU
109 第2のメモリ
111 第3のメモリ
113 バックアップ移行検知部
114 診断機構部
115 メモリデータ圧縮機構部
116 最小消費電力モジュール構成選択機構部
117 データ転送機構部
118 電源管理機構部
121 CPU
122 制御プログラム格納部
124 バックアップ管理テーブル
DESCRIPTION OF SYMBOLS 100 Electronic device 101 1st module 102 2nd module 103 3rd module 104 Processor module group 105 1st CPU
106 Second CPU
107 first memory 108 third CPU
109 Second memory 111 Third memory 113 Backup transition detection unit 114 Diagnosis mechanism unit 115 Memory data compression mechanism unit 116 Minimum power consumption module configuration selection mechanism unit 117 Data transfer mechanism unit 118 Power management mechanism unit 121 CPU
122 Control program storage unit 124 Backup management table

Claims (6)

データを格納するデータ格納領域ごとにそれらの所定位置にそれぞれヘッダ領域が設けられており、これらヘッダ領域は該当するデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記された揮発性の複数のメモリモジュールと、
これら複数のメモリモジュールに格納されたデータのうちで保存が必要とされるデータの保存を一斉に継続させるタイミングとしての保存継続開始タイミングを検知する保存継続開始タイミング検知手段と、
この保存継続開始タイミング検知手段が前記保存継続開始タイミングを検知したとき、前記エリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記ヘッダ領域における位置情報を個別に付加して圧縮後データとする圧縮後データ作成手段と
この圧縮後データ作成手段によって前記複数のメモリモジュールの全体について圧縮後データが作成されたときこれらのすべてを前記複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うデータ再配置手段と、
このデータ再配置手段ですべての圧縮後データが前記一部のメモリモジュールに集結した後、前記複数のメモリモジュールのうちの前記一部のメモリモジュール以外のメモリモジュールへの電源の供給を停止する電源停止手段と、
前記複数のメモリモジュール全体に対する電源供給の開始をバックアップの終了タイミングとして検知するバックアップ終了タイミング検知手段と、
このバックアップ終了タイミング検知手段がバックアップの終了を検知した後、前記電源停止手段で電源の供給を停止した前記一部のメモリモジュール以外のメモリモジュールに対して電源の供給を再開する電源供給再開手段と、
この電源供給再開手段の電源供給再開によって前記複数のメモリモジュールのすべてが電源の供給を行われるようになった時点で前記一部のメモリモジュールに集結した圧縮後データにおけるデータ格納領域の復号化と復号化したデータ格納領域のそれぞれをそれらに付加している位置情報の示す前記複数のメモリモジュールにおける元の位置への転送を行って前記データの再配置以前の状態に復帰させるデータ位置復帰手段
とを具備することを特徴とする電子機器。
Each data storage area for storing data has a header area at a predetermined position thereof, and these header areas are area valid information and data indicating whether or not compression is valid for data stored in the corresponding data storage area. A plurality of volatile memory modules each having position information indicating a storage position thereof , and
A storage continuation start timing detecting means for detecting the stored continuous start timing of the storage of data which is required conserved among the data stored in the plurality of memory modules as the timing to continue in unison,
When the storage continuation start timing detecting means detects the storage continuation start timing, the area valid information compresses only the data storage area for which the compression is valid, and the position information in the header area is individually added thereto. Means for creating post-compression data as post-compression data ;
When the post-compression data creation means creates post-compression data for the whole of the plurality of memory modules, the data is rearranged so that all of them are collected in some of the memory modules. Data relocation means to perform;
A power supply for stopping the supply of power to memory modules other than the some of the plurality of memory modules after all the compressed data is collected in the some memory modules by the data rearranging means Stop means;
Backup end timing detection means for detecting the start of power supply to the whole of the plurality of memory modules as a backup end timing;
Power supply restarting means for restarting power supply to memory modules other than the part of the memory modules whose power supply is stopped by the power supply stop means after the backup end timing detection means detects the end of backup; ,
Decoding of the data storage area in the compressed data concentrated in the part of the memory modules when all of the plurality of memory modules are supplied with power by restarting the power supply of the power supply restarting means; Data position return means for transferring each of the decrypted data storage areas to the original position in the plurality of memory modules indicated by the position information added thereto and returning to the state before the data relocation < An electronic device comprising:
前記データ再配置手段で集結する前記一部のメモリモジュールは、前記複数のメモリモジュールの中の消費電力が最も少ないメモリモジュールあるいはメモリモジュールの組み合わせであることを特徴とする請求項1記載の電子機器。2. The electronic apparatus according to claim 1, wherein the part of the memory modules gathered by the data rearrangement unit is a memory module or a combination of memory modules with the least power consumption among the plurality of memory modules. . データを格納するデータ格納領域ごとにそれらの所定位置にそれぞれヘッダ領域が設けられており、これらヘッダ領域は該当するデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記された揮発性の複数のメモリモジュールを備えたCPUに、
これら複数のメモリモジュールに格納されたデータのうちで保存が必要とされるデータの保存を一斉に継続させるタイミングとしての保存継続開始タイミングを検知する保存継続開始タイミング検知処理と、
この保存継続開始タイミング検知処理で前記保存継続開始タイミングを検知したとき、前記エリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記ヘッダ領域における位置情報を個別に付加して圧縮後データとする圧縮後データ作成処理と
この圧縮後データ作成処理によって前記複数のメモリモジュールの全体について圧縮後データが作成されたときこれらのすべてを前記複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うデータ再配置処理と、
このデータ再配置処理ですべての圧縮後データが前記一部のメモリモジュールに集結した後、前記複数のメモリモジュールのうちの前記一部のメモリモジュール以外のメモリモジュールへの電源の供給を停止する電源停止処理と、
前記複数のメモリモジュール全体に対する電源供給の開始をバックアップの終了タイミングとして検知するバックアップ終了タイミング検知処理と、
このバックアップ終了タイミング検知処理でバックアップの終了を検知した後、前記電源停止処理で電源の供給を停止した前記一部のメモリモジュール以外のメモリモジュールに対して電源の供給を再開する電源供給再開処理と、
この電源供給再開処理による電源供給再開によって前記複数のメモリモジュールのすべてが電源の供給を行われるようになった時点で前記一部のメモリモジュールに集結した圧縮後データにおけるデータ格納領域の復号化と復号化したデータ格納領域のそれぞれをそれらに付加している位置情報の示す前記複数のメモリモジュールにおける元の位置への転送を行って前記データの再配置以前の状態に復帰させるデータ位置復帰処理
とを実行させることを特徴とする電子機器の電源制御プログラム。
Each data storage area for storing data has a header area at a predetermined position thereof, and these header areas are area valid information and data indicating whether or not compression is valid for data stored in the corresponding data storage area. In a CPU having a plurality of volatile memory modules each of which is written position information indicating the storage position of
A storage continuation start timing detection process for detecting a storage continuation start timing as a timing for continually saving data that needs to be saved among the data stored in the plurality of memory modules,
When the storage continuation start timing is detected in this storage continuation start timing detection process, the area valid information compresses only the data storage area for which compression is valid, and the position information in the header area is individually added thereto. Post-compression data creation processing as post-compression data ;
When post-compression data creation processing creates post-compression data for all of the plurality of memory modules, the data is rearranged so that all of them are collected in some of the memory modules. Data relocation processing to be performed,
A power supply for stopping the supply of power to memory modules other than the some of the plurality of memory modules after all the compressed data is collected in the some memory modules in the data rearrangement process Stop processing,
A backup end timing detection process for detecting a start of power supply to the whole of the plurality of memory modules as a backup end timing;
A power supply resumption process for resuming the supply of power to memory modules other than the part of the memory modules that has stopped supplying power in the power supply stop process after detecting the end of backup in the backup end timing detection process; ,
Decoding of the data storage area in the compressed data concentrated in the partial memory module when all of the plurality of memory modules are supplied with power by resuming power supply by the power supply restart process Data position return processing for transferring each of the decrypted data storage areas to the original position in the plurality of memory modules indicated by the position information added thereto and returning the data to the state before the relocation
And a power supply control program for an electronic device.
前記データ再配置処理で集結する前記一部のメモリモジュールは、前記複数のメモリモジュールの中の消費電力が最も少ないメモリモジュールあるいはメモリモジュールの組み合わせであることを特徴とする請求項3記載の電子機器の電源制御プログラム。4. The electronic device according to claim 3, wherein the part of the memory modules gathered in the data rearrangement process is a memory module or a combination of memory modules with the least power consumption among the plurality of memory modules. Power control program. データを格納するデータ格納領域ごとにそれらの所定位置にそれぞれヘッダ領域が設けられており、これらヘッダ領域は該当するデータ格納領域に格納するデータについて圧縮が有効か否かを示すエリア有効情報とデータの格納位置を示す位置情報がそれぞれ記された揮発性の複数のメモリモジュールを備えた電子機器におけるこれら複数のメモリモジュールに格納されたデータのうちで保存が必要とされるデータの保存を一斉に継続させるタイミングとしての保存継続開始タイミングを検知する保存継続開始タイミング検知ステップと、
この保存継続開始タイミング検知ステップで前記保存継続開始タイミングを検知したとき、前記エリア有効情報が圧縮を有効とするデータ格納領域のみを圧縮してこれに前記ヘッダ領域における位置情報を個別に付加して圧縮後データとする圧縮後データ作成ステップと
この圧縮後データ作成ステップによって前記複数のメモリモジュールの全体について圧縮後データが作成されたときこれらのすべてを前記複数のメモリモジュールの中の一部のメモリモジュールに集結させるようにデータの再配置を行うデータ再配置ステップと、
このデータ再配置ステップですべての圧縮後データが前記一部のメモリモジュールに集結した後、前記複数のメモリモジュールのうちの前記一部のメモリモジュール以外のメモリモジュールへの電源の供給を停止する電源停止ステップと、
前記複数のメモリモジュール全体に対する電源供給の開始をバックアップの終了タイミングとして検知するバックアップ終了タイミング検知ステップと、
このバックアップ終了タイミング検知ステップでバックアップの終了を検知した後、前記電源停止ステップで電源の供給を停止した前記一部のメモリモジュール以外のメモリモジュールに対して電源の供給を再開する電源供給再開ステップと、
この電源供給再開ステップによる電源供給再開によって前記複数のメモリモジュールのすべてが電源の供給を行われるようになった時点で前記一部のメモリモジュールに集結した圧縮後データにおけるデータ格納領域の復号化と復号化したデータ格納領域のそれぞれをそれらに付加している位置情報の示す前記複数のメモリモジュールにおける元の位置への転送を行って前記データの再配置以前の状態に復帰させるデータ位置復帰ステップ
とを実行させることを特徴とする電子機器の電源制御方法。
Each data storage area for storing data has a header area at a predetermined position thereof, and these header areas are area valid information and data indicating whether or not compression is valid for data stored in the corresponding data storage area. In an electronic device having a plurality of volatile memory modules each storing position information indicating the storage location of the data, all of the data stored in the plurality of memory modules is stored simultaneously. A storage continuation start timing detection step for detecting a storage continuation start timing as a timing to continue,
When the storage continuation start timing is detected in this storage continuation start timing detection step, the area valid information compresses only the data storage area for which compression is valid, and the position information in the header area is individually added thereto. A post-compression data creation step to be post-compression data ;
When the post-compression data creation step creates post-compression data for the whole of the plurality of memory modules, the data is rearranged so that all of them are collected in a part of the memory modules. A data relocation step to be performed;
A power supply for stopping the supply of power to memory modules other than the some memory modules of the plurality of memory modules after all the compressed data is collected in the some memory modules in the data rearrangement step A stop step;
A backup end timing detection step for detecting the start of power supply to the entire memory modules as a backup end timing;
A power supply restarting step for restarting power supply to memory modules other than the part of the memory modules that has stopped supplying power in the power supply stop step after detecting the end of backup in the backup end timing detection step; ,
Decoding the data storage area in the compressed data concentrated in the part of the memory modules when all of the plurality of memory modules are supplied with power by resuming power supply in the power supply resuming step; A data position return step of transferring each of the decrypted data storage areas to the original position in the plurality of memory modules indicated by the position information added to the data storage area and returning to the state before the data relocation
And a method for controlling the power supply of the electronic device.
前記データ再配置ステップで集結する前記一部のメモリモジュールは、前記複数のメモリモジュールの中の消費電力が最も少ないメモリモジュールあるいはメモリモジュールの組み合わせであることを特徴とする請求項5記載の電子機器の電子機器の電源制御方法。6. The electronic apparatus according to claim 5, wherein the part of the memory modules gathered in the data rearrangement step is a memory module or a combination of memory modules with the least power consumption among the plurality of memory modules. Power control method for electronic equipment.
JP2007053947A 2007-03-05 2007-03-05 Electronic device, power control program for electronic device, and power control method Expired - Fee Related JP4910785B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007053947A JP4910785B2 (en) 2007-03-05 2007-03-05 Electronic device, power control program for electronic device, and power control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007053947A JP4910785B2 (en) 2007-03-05 2007-03-05 Electronic device, power control program for electronic device, and power control method

Publications (2)

Publication Number Publication Date
JP2008217421A JP2008217421A (en) 2008-09-18
JP4910785B2 true JP4910785B2 (en) 2012-04-04

Family

ID=39837384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007053947A Expired - Fee Related JP4910785B2 (en) 2007-03-05 2007-03-05 Electronic device, power control program for electronic device, and power control method

Country Status (1)

Country Link
JP (1) JP4910785B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5636677B2 (en) * 2009-01-20 2014-12-10 株式会社リコー Electronic device, power saving control method thereof, and program
JP4962921B2 (en) 2009-08-26 2012-06-27 日本電気株式会社 Computer memory relocation control method and program, and computer system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04260142A (en) * 1991-02-15 1992-09-16 Nec Corp Disk file saving system
JPH09212416A (en) * 1995-11-30 1997-08-15 Toshiba Corp Computer system and its power managing method
JPH11282587A (en) * 1998-03-26 1999-10-15 Canon Inc Memory backup device
JP4108283B2 (en) * 2001-03-05 2008-06-25 株式会社リコー Facsimile machine

Also Published As

Publication number Publication date
JP2008217421A (en) 2008-09-18

Similar Documents

Publication Publication Date Title
US8009501B2 (en) Storage apparatus and power saving method thereof
CN103959234A (en) Fast platform hibernation and resumption for computing systems
US7971014B2 (en) Information processing apparatus and data recovering method
US6473569B1 (en) Camera and information processing apparatus
CN103870212A (en) Mobile device and method of managing data using swap thereof
JP2011095916A (en) Electronic apparatus
CN101796495A (en) Memory device and file system
JP4717922B2 (en) Information processing system, control method in information processing system, and management apparatus
JP4521038B2 (en) Storage device, relay device, and operation state control method
WO2014008653A1 (en) Method for switching a device between hibernat mode and wake-up
JP2007207014A (en) Electronic device and collection method for maintenance information
US20120233451A1 (en) Method for fast resuming computer system and computer system
JP4910785B2 (en) Electronic device, power control program for electronic device, and power control method
JPH09330277A (en) Service interruption processing system for disk cache system and method therefor
JP2005115720A (en) Information processor and program for use in the same
US20070271311A1 (en) Disk array device and data management method for managing master data and replication data replicated from master data
JP2008152339A (en) Information processor and information processing method
JP5206103B2 (en) Storage device, storage device control system, storage device control method, and program
JP2004252570A (en) Disk array device, and image forming apparatus
CN101169754B (en) Computer system and control method thereof
JP2007018417A (en) Ata disk array device, and operation control method and operation control program for ata disk array device
JPH0566951A (en) Computer system
JP4498091B2 (en) Information processing device
JP3191282B2 (en) Failure information data collection method
KR100970706B1 (en) Method for entering and resuming suspend mode in portable computer

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110511

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110701

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120102

R150 Certificate of patent or registration of utility model

Ref document number: 4910785

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150127

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees