Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5458749B2 - Information processing apparatus, program, and memory power control method - Google Patents
[go: Go Back, main page]

JP5458749B2 - Information processing apparatus, program, and memory power control method - Google Patents

Information processing apparatus, program, and memory power control method Download PDF

Info

Publication number
JP5458749B2
JP5458749B2 JP2009202478A JP2009202478A JP5458749B2 JP 5458749 B2 JP5458749 B2 JP 5458749B2 JP 2009202478 A JP2009202478 A JP 2009202478A JP 2009202478 A JP2009202478 A JP 2009202478A JP 5458749 B2 JP5458749 B2 JP 5458749B2
Authority
JP
Japan
Prior art keywords
area
storage device
data
task
power
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
JP2009202478A
Other languages
Japanese (ja)
Other versions
JP2011053930A (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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2009202478A priority Critical patent/JP5458749B2/en
Publication of JP2011053930A publication Critical patent/JP2011053930A/en
Application granted granted Critical
Publication of JP5458749B2 publication Critical patent/JP5458749B2/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)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System (AREA)

Description

本発明は、省電力状態に移行する場合に、主記憶装置の記憶領域の一部の電源を切断する情報処理装置に関する。   The present invention relates to an information processing apparatus that turns off a part of a power source of a storage area of a main storage device when shifting to a power saving state.

携帯電話端末,ノート型パソコン,携帯ゲーム機,携帯音楽再生機などの持ち運び可能な携帯端末は、消費電力を抑えるために、例えば、一定時間使用されない場合には、省電力状態に移行する。省電力状態では、これらの携帯端末に搭載される各デバイスの電源が切断される、又は、各デバイスが待機状態になることによって、消費電力が抑えられる。携帯端末が省電力状態に移行する場合には、携帯端末に搭載される主記憶装置(メモリとも呼ばれる)も省電力状態に移行する。主記憶装置が省電力状態に移行する場合には、主記憶装置の未使用領域の電源が切断される。   Portable portable terminals such as mobile phone terminals, notebook personal computers, portable game machines, and portable music players shift to a power saving state when they are not used for a certain period of time, for example, in order to reduce power consumption. In the power saving state, power consumption is suppressed by turning off the power of each device mounted on these portable terminals or by putting each device in a standby state. When the mobile terminal shifts to the power saving state, a main storage device (also referred to as a memory) mounted on the mobile terminal also shifts to the power saving state. When the main storage device shifts to the power saving state, the unused area of the main storage device is turned off.

主記憶装置が省電力状態に移行する場合には、断片的に使用される主記憶装置の領域を先頭から並び変えるデフラグメンテーションと呼ばれる整理処理が行われる。以降、デフラグメンテーションは、省略して、「デフラグ」と呼ばれる。   When the main storage device shifts to the power saving state, an organization process called defragmentation is performed in which the main storage device areas used in pieces are rearranged from the top. Hereinafter, defragmentation is omitted and referred to as “defragmentation”.

デフラグが実行された主記憶装置の記憶領域は、起動されているタスクによって使用される使用領域と使用領域以外の未使用領域とに分けられる。未使用領域に保持されているデータは消失しても起動されているタスクに影響がないので、未使用領域の電源は切断可能である。   The storage area of the main storage device on which the defragmentation has been executed is divided into a used area used by the activated task and an unused area other than the used area. Even if the data held in the unused area is lost, the activated task is not affected, so that the power of the unused area can be turned off.

特開平10−333997号公報Japanese Patent Laid-Open No. 10-333997

主記憶装置では、領域を2分の1、4分の1などに等分割したブロックごとに電源の投入及び切断が管理される。以降、電源の投入及び切断が管理されるブロックは電源領域と称される。   In the main storage device, power on / off is managed for each block in which the area is equally divided into a half, a quarter, and the like. Hereinafter, a block in which power on / off is managed is referred to as a power region.

したがって、デフラグ処理後、未使用領域のみを含む電源領域は電源を切断することができるが、使用領域をわずかでも含む電源領域は起動されているタスクに影響するため電源を切断することができない。省電力状態において、使用領域がわずかに含まれるために、電源を切断することができない電源領域が存在する可能性がある。例えば、主記憶装置の領域が、2等分されたサイズの電源領域1と電源領域2とを有する場合を想定すると、デフラグ処理後、使用領域が電源領域1と、電源領域2にわずかに差し掛かる場合には、電源領域2の電源を切断することができない。このような場合、省電力状態に移行しても、主記憶装置の電源領域1及び電源領域2へ供給される電源をいずれも切断することができず、主記憶装置の消費電力の低減を図ることができない。   Therefore, after the defragmentation process, the power supply area including only the unused area can be cut off, but the power supply area including even a small use area affects the activated task and cannot be turned off. In the power saving state, since the use area is slightly included, there is a possibility that there is a power supply area where the power supply cannot be cut off. For example, assuming that the area of the main storage device has a power supply area 1 and a power supply area 2 that are bisected, the used area is slightly inserted into the power supply area 1 and the power supply area 2 after the defragmentation process. When it is applied, the power source of the power source region 2 cannot be cut off. In such a case, the power supplied to the power supply area 1 and the power supply area 2 of the main storage device cannot be cut off even when the power saving state is entered, and the power consumption of the main storage device is reduced. I can't.

本発明の態様の一つは、消費電力を低減する情報処理装置を提供することを目的とする。   An object of one aspect of the present invention is to provide an information processing apparatus that reduces power consumption.

本発明の態様の一つは、情報処理装置である。この情報処理装置は、
部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、
起動中のタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置する再配置部と、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、該部分領域の電源を切断する処理部と、
を備える。
One aspect of the present invention is an information processing apparatus. This information processing device
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
A second storage unit for holding stored data even when the power is turned off;
Relocation unit for relocating fragmented use data stored in the first storage unit, which is use data related to a task being activated;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. A processing unit for cutting off the power of the partial area,
Is provided.

本発明の他の態様の一つは、上述した情報処理装置が実行するメモリの電源制御方法である。また、本発明の他の態様は、情報処理装置にメモリの電源制御方法を実行させるためのプログラム、及び当該プログラムを記録したコンピュータ読み取り可能な記録媒体を含むことができる。   Another aspect of the present invention is a memory power control method executed by the information processing apparatus described above. Further, another aspect of the present invention can include a program for causing an information processing apparatus to execute a memory power supply control method, and a computer-readable recording medium on which the program is recorded.

開示の情報処理装置によれば、消費電力を低減することができる。   According to the disclosed information processing apparatus, power consumption can be reduced.

携帯端末の構成例を示す図である。It is a figure which shows the structural example of a portable terminal. 主記憶装置の記憶領域の使用例を示す図である。It is a figure which shows the usage example of the memory area of a main memory. メモリ管理テーブルの例を示す図である。It is a figure which shows the example of a memory management table. 主記憶装置のデフラグ処理の例について説明する図である。It is a figure explaining the example of the defragmentation process of a main memory. 図4に示される例の主記憶装置の解放されたコピー領域の復帰処理を説明する図である。FIG. 5 is a diagram for explaining a restoration process of a released copy area in the main storage device in the example shown in FIG. 4. 新たなタスクXの起動時に、タスク起動時の実行コードが外部記憶装置から主記憶装置へコピーされる場合のメモリ管理テーブルのエントリ追加処理のフローの例を示す図である。FIG. 10 is a diagram illustrating an example of a flow of an entry addition process of a memory management table when an execution code at the time of task activation is copied from an external storage device to a main storage device when a new task X is activated. タスクXの起動中に、外部記憶装置に保持されるデータが読み出され主記憶装置へコピーされる場合のメモリ管理テーブルのエントリ追加処理のフローの例を示す図である。FIG. 10 is a diagram showing an example of a flow of an entry addition process of a memory management table when data held in an external storage device is read and copied to a main storage device while a task X is activated. 携帯端末が省電力状態に移行する処理のフローの例を示す図である。It is a figure which shows the example of the flow of a process which a portable terminal transfers to a power saving state. 携帯端末が省電力状態から復帰する処理のフローの例を示す図である。It is a figure which shows the example of the flow of a process in which a portable terminal returns from a power saving state.

以下、図面に基づいて、本発明の実施の形態を説明する。以下の実施形態の構成は例示であり、本発明は実施形態の構成に限定されない。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. The configuration of the following embodiment is an exemplification, and the present invention is not limited to the configuration of the embodiment.

<第1実施形態>
第1実施形態では、メモリの電源制御を行う情報処理装置の一例として、携帯端末について説明される。
<First Embodiment>
In the first embodiment, a portable terminal will be described as an example of an information processing apparatus that performs power control of a memory.

<<携帯端末の構成例>>
図1は、携帯端末の構成例を示す図である。携帯端末1は、プロセッサ2,外部記憶装置3,主記憶装置4,入力装置5,出力装置6,及びアンテナ7を備える。また、プロセッサ2,外部記憶装置3,主記憶装置4,入力装置5,出力装置6,及びアンテナ7は、バス8によって互いに接続されている。
<< Configuration example of mobile terminal >>
FIG. 1 is a diagram illustrating a configuration example of a mobile terminal. The portable terminal 1 includes a processor 2, an external storage device 3, a main storage device 4, an input device 5, an output device 6, and an antenna 7. The processor 2, the external storage device 3, the main storage device 4, the input device 5, the output device 6, and the antenna 7 are connected to each other by a bus 8.

外部記憶装置3は、オペレーティングシステム(以降、「OS」)、各デバイスのドライバ、各種アプリケーションプログラム、音楽データや画像データなどのデータファイル
等を保持する。外部記憶装置3は、例えば、フラッシュメモリ等の不揮発性メモリであり、NOR型、NAND型のメモリで実現される。
The external storage device 3 holds an operating system (hereinafter “OS”), drivers for each device, various application programs, data files such as music data and image data, and the like. The external storage device 3 is a non-volatile memory such as a flash memory, for example, and is realized by a NOR type or NAND type memory.

主記憶装置4は、外部記憶装置3からロードされたプログラムのコードやプログラムによって使用されるデータ(音楽データ、画像データなど)、起動中のプログラムの演算結果のデータ等を保持する。主記憶装置4は、例えば、SDRAM(Synchronous Dynamic Random Access Memory)等の揮発性メモリである。   The main storage device 4 holds program codes loaded from the external storage device 3, data used by the programs (music data, image data, etc.), calculation result data of the running program, and the like. The main storage device 4 is, for example, a volatile memory such as SDRAM (Synchronous Dynamic Random Access Memory).

主記憶装置4の情報を記憶する記憶領域は、起動されているプロセス及びタスクによって使用される使用領域と、それ以外の未使用領域とに分類される。   Storage areas for storing information in the main storage device 4 are classified into used areas used by activated processes and tasks, and other unused areas.

第1実施形態において、使用領域は、さらに、常駐タスク領域,処理領域,及びコピー領域に分類される。   In the first embodiment, the use area is further classified into a resident task area, a processing area, and a copy area.

常駐タスク領域には、常駐タスクに関連する、外部記憶装置3から読み出されるデータを格納する領域が分類される。常駐タスクは、携帯端末1が使用可能な状態になるために最低限必要となるプロセスおよびタスクであって、例えば、OS,デバイスドライバなどがある。また、常駐タスクは、携帯端末1の起動時(OS起動時)に起動されるように設定されたアプリケーションプログラムを含んでもよい。常駐タスク領域には、外部記憶装置3からコピーされた常駐タスクの実行コード,常駐タスクの実行中に外部記憶装置3から読み出されるデータ等を保持する領域が含まれる。   In the resident task area, an area for storing data read from the external storage device 3 related to the resident task is classified. The resident task is a process and task that are at least necessary for the mobile terminal 1 to be usable, and includes, for example, an OS and a device driver. The resident task may include an application program that is set to be activated when the mobile terminal 1 is activated (when the OS is activated). The resident task area includes an area for holding an execution code of the resident task copied from the external storage device 3, data read from the external storage device 3 during execution of the resident task, and the like.

処理領域には、起動されているタスク(常駐タスクを含む)によって処理中のデータを格納する領域が分類される。処理領域には、例えば、編集中の電子メールの本文,編集中の電話張への登録内容など、外部記憶装置3に保存される前のタスクの処理中のデータを保持する領域が含まれる。また、タスクの実行中に外部記憶装置3からコピーされるデータ(音楽データ,画像データ,アドレス帳など)を保持する領域でも、ユーザからのボタン操作などによって編集され、外部記憶装置3に保持されるコピー元のデータから変更される場合には、該当領域は処理領域に含まれる。すなわち、処理領域に分類される領域は、主記憶装置4の電源が切断されるなどして一旦データが消失してしまうと、復元することができないデータを保持する領域である。   The processing area is classified into areas for storing data being processed by activated tasks (including resident tasks). The processing area includes, for example, an area for holding data being processed in the task before being saved in the external storage device 3, such as the text of the electronic mail being edited and the contents registered in the telephone call being edited. Further, even in an area for holding data (music data, image data, address book, etc.) copied from the external storage device 3 during execution of a task, it is edited by a button operation from the user and held in the external storage device 3. If the copy source data is changed, the corresponding area is included in the processing area. That is, the area classified as the processing area is an area that holds data that cannot be restored once the data is lost due to the power source of the main storage device 4 being turned off.

コピー領域は、常駐タスク以外のタスクに関する、外部記憶装置3にコピーがあるデータを格納する領域が分類される。コピー領域には、常駐タスク以外のタスクの実行コード、タスク実行中に外部記憶装置3から読み出されるデータ(音楽データ,画像データ,アドレス帳など)などを保持する領域が含まれる。また、処理領域に含まれる領域であっても、ユーザのボタン操作などによってその領域に記憶されている編集中のデータが外部記憶装置3に保存された場合には、そのデータのコピーが外部記憶装置に記憶されるため、その領域はコピー領域に分類される。その後、ユーザのボタン操作によってデータに変更が加えられると、外部記憶装置3に変更後のデータが保存されるまでは、変更後のデータが記憶されている領域は、処理領域に分類される。   The copy area is classified as an area for storing data having a copy in the external storage device 3 regarding tasks other than the resident task. The copy area includes an area for holding an execution code of a task other than the resident task, data (music data, image data, address book, etc.) read from the external storage device 3 during the task execution, and the like. Even if an area is included in the processing area, if the data being edited stored in the area is saved in the external storage device 3 by the user's button operation or the like, a copy of the data is stored in the external storage. Since it is stored in the apparatus, the area is classified as a copy area. Thereafter, when the data is changed by the user's button operation, the area in which the changed data is stored is classified as a processing area until the changed data is stored in the external storage device 3.

使用領域に分類される領域に保持されるデータは、「使用データ」とも称される。すなわち、使用データは、起動されているタスクやプロセスに関するデータである。「或るタスクの使用データ」と用いられる場合には、「或るタスクの使用データ」はそのタスクに関するデータを指し、そのタスクの実行コード,処理中のデータ等を含む。   Data held in an area classified as a use area is also referred to as “use data”. In other words, the usage data is data related to the activated task or process. When used as “use data of a certain task”, “use data of a certain task” refers to data relating to the task, and includes an execution code of the task, data being processed, and the like.

未使用領域は、データが保持されていない空の領域と、既に解放された実行コードやデータが残っている領域とを含む。   The unused area includes an empty area in which no data is held and an area in which already-executed execution code and data remain.

主記憶装置4の記憶領域は、所定のブロックごとに使用され、ブロックが全部使用されて埋まると、解放されたブロックの領域から順に次の新たなデータのために取得されていく。したがって、主記憶装置4では使用領域及び未使用領域が断片的に存在する。   The storage area of the main storage device 4 is used for each predetermined block, and when all the blocks are used and filled, they are acquired for the next new data in order from the released block area. Therefore, in the main storage device 4, the used area and the unused area exist in pieces.

図2は、主記憶装置4の記憶領域の使用例を示す図である。図2に示される例において、主記憶装置4の記憶領域は、ブロックA〜ブロックFに区分けされた状態で使用される。使用領域は、ブロックA,ブロックC,およびブロックEである。そのうち、常駐タスク領域はブロックAである。処理領域はブロックEである。コピー領域はブロックCである。未使用領域は、ブロックB,ブロックD,およびブロックFである。図2に示される例のように、主記憶装置4内の記憶領域は、使用領域と未使用領域とが断片化された状態で断片的存在する。   FIG. 2 is a diagram illustrating a usage example of the storage area of the main storage device 4. In the example shown in FIG. 2, the storage area of the main storage device 4 is used in a state of being divided into block A to block F. The used areas are block A, block C, and block E. Among them, the resident task area is block A. The processing area is block E. The copy area is block C. The unused areas are block B, block D, and block F. As in the example shown in FIG. 2, the storage area in the main storage device 4 is fragmented with the used area and the unused area fragmented.

図2に示される例では、主記憶装置4の電源領域は、2等分された領域のブロックである。すなわち、主記憶装置4は、電源領域1と電源領域2とを有する。   In the example shown in FIG. 2, the power supply area of the main storage device 4 is a block of an area divided in two. That is, the main storage device 4 has a power supply area 1 and a power supply area 2.

入力装置5は、例えば、携帯端末1に備えられている操作ボタンである。出力装置6は、例えば、携帯端末1に備えられているディスプレイである。また、入力装置5は、マイクロフォン等の音声入力装置を含む。出力装置6は、スピーカ等の音声出力装置を含む。   The input device 5 is, for example, an operation button provided in the mobile terminal 1. The output device 6 is, for example, a display provided in the mobile terminal 1. The input device 5 includes a voice input device such as a microphone. The output device 6 includes an audio output device such as a speaker.

プロセッサ2は、例えば、CPU(Contral Processing Unit)やDSP(Digital Signal Processor)等で実現される。プロセッサ2は、外部記憶装置3からプログラムを主記憶装置4にロード(コピー)し、プログラムを実行することによって、オペレーティングシステム部21及びデバイスドライバ部22として動作する。   The processor 2 is realized by, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), or the like. The processor 2 operates as the operating system unit 21 and the device driver unit 22 by loading (copying) a program from the external storage device 3 to the main storage device 4 and executing the program.

オペレーティングシステム部21は、プロセッサ2がOSを実行することによって実現される。オペレーティングシステム部21は、タスク制御部211と、デマンドページング制御部212と、メモリ管理部213と、ファイルシステム部214と、省電力制御部215とを含む。   The operating system unit 21 is realized by the processor 2 executing the OS. The operating system unit 21 includes a task control unit 211, a demand paging control unit 212, a memory management unit 213, a file system unit 214, and a power saving control unit 215.

タスク制御部211は、デマンドページング制御部212およびメモリ管理部213を介して、主記憶装置4にアクセスし、タスクの実行コードを読み出す。タスク制御部211は、主記憶装置4にコピーされた実行コードを順次読み出し、実行してタスクを制御する。タスク制御部211は、タスクの起動に際して、起動されるタスクの実行コードを格納するための主記憶装置4の領域の取得要求をデマンドページング制御部212を介してメモリ管理部213に出力する。タスク制御部211は、主記憶装置4の領域を取得すると、起動されるタスクの実行コードの取得要求をファイルシステム部214に出力する。タスク制御部211は、起動されるタスクの実行コードをファイルシステム部214から取得すると、デマンドページング制御部212を介して、起動されるタスクの実行コードの主記憶装置4の取得された領域へのコピーを要求する。タスクが起動されている間は、タスクとオペレーティングシステム部21内の各処理部へのアクセスは、タスク制御部211によって中継される。タスク制御部211は、タスクの終了に際して、タスクの実行コードを保持する主記憶装置4の領域の解放要求を、デマンドページング制御部212を介して、メモリ管理部213に出力する。   The task control unit 211 accesses the main storage device 4 via the demand paging control unit 212 and the memory management unit 213, and reads the execution code of the task. The task control unit 211 sequentially reads and executes the execution code copied to the main storage device 4 to control the task. When the task is activated, the task control unit 211 outputs an acquisition request for the area of the main storage device 4 for storing the execution code of the activated task to the memory management unit 213 via the demand paging control unit 212. When the task control unit 211 acquires the area of the main storage device 4, the task control unit 211 outputs an acquisition code acquisition request for the task to be started to the file system unit 214. When the task control unit 211 acquires the execution code of the task to be activated from the file system unit 214, the task control unit 211 passes the execution code of the task to be activated to the acquired area of the main storage device 4 via the demand paging control unit 212. Request a copy. While the task is activated, access to the task and each processing unit in the operating system unit 21 is relayed by the task control unit 211. Upon completion of the task, the task control unit 211 outputs a request to release the area of the main storage device 4 holding the execution code of the task to the memory management unit 213 via the demand paging control unit 212.

デマンドページング制御部212は、各タスクのデマンドページングの制御を行う。デマンドページングは、或るプログラムの起動時に実行コード全てを外部記憶装置3から主記憶装置4にコピーせずに、実行コードの一部分のみを必要な時に外部記憶装置3から主記憶装置4にコピーする方式である。デマンドページング制御部212は、タスク制御部
211が主記憶装置4にアクセスする際に、タスク制御部211とメモリ管理部213との間に介在する。デマンドページング制御部212は、タスク制御部211からの実行コードの読み出しの要求に対して、メモリ管理部213から主記憶装置4内に要求された実行コードが保持されていない旨の応答がある場合に、デマンドページングを実行する。この場合、デマンドページング制御部212は、タスク起動時のタスク管理部211の処理と同様に、メモリ管理部213にメモリ取得要求を出力し、実行コードを格納する領域を取得する。デマンドページング制御部212は、主記憶装置4の領域を取得すると、実行コードの取得要求をファイルシステム214に出力し、実行コードを取得する。デマンドページング制御部212は、取得した実行コードをメモリ管理部213を介して取得された主記憶装置4の領域にコピーする。デマンドページング制御部212は、タスク制御部211から読み出しを要求された実行コードをメモリ管理部213から受け取り、タスク制御部211に渡す。
The demand paging control unit 212 controls demand paging for each task. In demand paging, not all execution codes are copied from the external storage device 3 to the main storage device 4 when a certain program is started, but only a part of the execution code is copied from the external storage device 3 to the main storage device 4 when necessary. It is a method. The demand paging control unit 212 is interposed between the task control unit 211 and the memory management unit 213 when the task control unit 211 accesses the main storage device 4. When the demand paging control unit 212 responds to the request for reading the execution code from the task control unit 211, there is a response that the execution code requested from the memory management unit 213 is not stored in the main storage device 4. Then, perform demand paging. In this case, the demand paging control unit 212 outputs a memory acquisition request to the memory management unit 213 in the same manner as the processing of the task management unit 211 at the time of task activation, and acquires an area for storing an execution code. When the demand paging control unit 212 acquires the area of the main storage device 4, the demand paging control unit 212 outputs an execution code acquisition request to the file system 214 and acquires the execution code. The demand paging control unit 212 copies the acquired execution code to the area of the main storage device 4 acquired via the memory management unit 213. The demand paging control unit 212 receives the execution code requested to be read from the task control unit 211 from the memory management unit 213 and passes it to the task control unit 211.

ファイルシステム部214は、外部記憶装置3に保持されるファイルの管理、及び、外部記憶装置3に保持されるファイルへのアクセスの制御などを行う。ファイルシステム部214は、外部記憶装置3に保持されるファイルの、ファイル名、ファイルが格納される位置を示す外部記憶装置格納領域情報、アクセス権などを含むファイル情報を管理する。ファイルシステム部214は、タスク制御部211,デマンドページング制御部212,及びタスク制御部211を介して各タスクから外部記憶装置3に保持されるファイルの情報が入力されると、外部記憶装置用ドライバ221を通じて該当するファイルを読み出す。ファイルシステム部214は、外部記憶装置用ドライバ221を通じて読み出されたファイルをファイルの情報の送信元に出力する。   The file system unit 214 performs management of files held in the external storage device 3, control of access to files held in the external storage device 3, and the like. The file system unit 214 manages file information including the file name of the file held in the external storage device 3, external storage device storage area information indicating the location where the file is stored, and access rights. When file information held in the external storage device 3 is input from each task via the task control unit 211, the demand paging control unit 212, and the task control unit 211, the file system unit 214 is an external storage device driver. The corresponding file is read through 221. The file system unit 214 outputs the file read through the external storage device driver 221 to the file information transmission source.

省電力制御部215は、各タスク及びOSの状態を監視し、省電力状態の移行への判断と制御とを行う。省電力制御部215は、例えば、所定時間、操作ボタンのキー入力,呼の着信,電子メールの受信等がないなどの省電力状態へ移行するための条件が満たされた場合、携帯端末1を省電力状態に移行する。省電力制御部215は、携帯端末1に搭載されている各デバイスを省電力状態に移行させるために、デバイスドライバ部22に、省電力移行要求を送信する。省電力制御部215は、省電力状態に移行する際に、メモリ管理部213にデフラグ処理要求を送信し、主記憶装置4内の記憶領域のデフラグ処理を要求する。   The power saving control unit 215 monitors each task and the state of the OS, and performs determination and control for shifting to the power saving state. For example, the power saving control unit 215 switches the portable terminal 1 when a condition for shifting to a power saving state such as no key input of an operation button, incoming call, no e-mail reception, or the like is satisfied for a predetermined time. Transition to the power saving state. The power saving control unit 215 transmits a power saving shift request to the device driver unit 22 in order to shift each device mounted on the mobile terminal 1 to the power saving state. When the power saving control unit 215 shifts to the power saving state, the power saving control unit 215 transmits a defragmentation processing request to the memory management unit 213 and requests defragmentation processing of the storage area in the main storage device 4.

第1実施形態において、省電力状態とは、作業状態を主記憶装置4に保存した上で、外部記憶装置3,入力装置5,出力装置6など携帯端末1本体の電力消費を最小限にまで抑えることである。   In the first embodiment, the power saving state means that the working state is stored in the main storage device 4 and the power consumption of the portable terminal 1 such as the external storage device 3, the input device 5, and the output device 6 is minimized. It is to suppress.

メモリ管理部213は、主記憶装置4の記憶領域の管理,データの読み出し,データの書き込みを行う。メモリ管理部213は、主記憶装置4の記憶領域を物理アドレスと論理アドレスを用いて管理する。物理アドレスは主記憶装置4の記憶領域の実際のアドレスである。論理アドレスは、タスク制御部211及び各タスクが主記憶装置4に格納されたデータを扱うために認識している主記憶装置4の記憶領域のアドレスである。   The memory management unit 213 manages the storage area of the main storage device 4, reads data, and writes data. The memory management unit 213 manages the storage area of the main storage device 4 using physical addresses and logical addresses. The physical address is an actual address of the storage area of the main storage device 4. The logical address is an address of the storage area of the main storage device 4 that the task control unit 211 and each task recognize to handle data stored in the main storage device 4.

メモリ管理部213は、タスク制御部211及びタスク制御部211を介した各タスクA〜Nの主記憶装置4へのアクセスに、デマンドページング制御部212とともに、介在する。   The memory management unit 213 intervenes together with the demand paging control unit 212 in accessing the main storage device 4 of the tasks A to N via the task control unit 211 and the task control unit 211.

メモリ管理部213は、デマンドページング制御部212を介してタスク制御部211からデータの読み出し要求を受けると、アクセスされた論理アドレスを物理アドレスに変換する。メモリ管理部213は、変換された物理アドレスの領域からデータを読み出し、デマンドページング制御部212を介してタスク制御部211に読み出されたデータを送
信する。アクセスされた論理アドレスに物理アドレスが対応付けられていない場合には、主記憶装置4に要求されたデータが保持されていないので、メモリ管理部213は、データが保持されていない旨の通知を出力する。この通知をタスク制御部211へ中継するデマンドページング制御部212が受け取ると、デマンドページング制御部212はデータを外部記憶装置3から読み出すためにデマンドページングを実行する。
When receiving a data read request from the task control unit 211 via the demand paging control unit 212, the memory management unit 213 converts the accessed logical address into a physical address. The memory management unit 213 reads data from the converted physical address area, and transmits the read data to the task control unit 211 via the demand paging control unit 212. If the physical address is not associated with the accessed logical address, the requested data is not held in the main storage device 4, and the memory management unit 213 notifies that the data is not held. Output. When the demand paging control unit 212 that relays this notification to the task control unit 211 receives the demand paging control unit 212, the demand paging control unit 212 executes demand paging to read data from the external storage device 3.

メモリ管理部213は、デマンドページング制御部213を介して、タスク制御部211から主記憶装置4へのデータの書き込み要求を受けると、アクセスされた論理アドレスを物理アドレスに変換する。メモリ管理部213は、変換された物理アドレスの領域にデータを書き込み、書き込み完了の通知をデマンドページング制御部212を介してタスク制御部211に出力する。   When the memory management unit 213 receives a data write request from the task control unit 211 to the main storage device 4 via the demand paging control unit 213, the memory management unit 213 converts the accessed logical address into a physical address. The memory management unit 213 writes data in the converted physical address area, and outputs a write completion notification to the task control unit 211 via the demand paging control unit 212.

メモリ管理部213は、常駐タスク以外のタスクに関する主記憶装置4の使用領域,すなわち、処理領域とコピー領域とをメモリ管理テーブルで管理する。   The memory management unit 213 manages the use area of the main storage device 4 related to tasks other than the resident task, that is, the processing area and the copy area, using the memory management table.

図3は、メモリ管理テーブルの例を示す図である。メモリ管理部213は、タスク制御部211および各タスクから主記憶装置4の領域の取得要求又は解放要求がある場合に、メモリ管理テーブルを更新する。メモリ管理テーブルには、論理アドレス,物理アドレス,コピー領域フラグ,外部記憶装置格納領域情報がそれぞれ対応付けられたエントリが保持される。   FIG. 3 is a diagram illustrating an example of a memory management table. The memory management unit 213 updates the memory management table when there is an acquisition request or a release request for the area of the main storage device 4 from the task control unit 211 and each task. The memory management table holds entries each associated with a logical address, a physical address, a copy area flag, and external storage device storage area information.

コピー領域フラグは、該当する主記憶装置4の領域が外部記憶装置3にコピーがあるデータを保持する領域であるか否かを示すフラグである。メモリ管理テーブルには、処理領域とコピー領域とのいずれかの領域に分類される領域のエントリが格納されるため、コピー領域フラグは、領域が処理領域であるか、又は、コピー領域であるかを示す情報である。   The copy area flag is a flag indicating whether or not the corresponding area of the main storage device 4 is an area for holding data that is copied to the external storage device 3. Since the memory management table stores an entry of an area classified as either a processing area or a copy area, the copy area flag indicates whether the area is a processing area or a copy area. It is information which shows.

コピー領域フラグが“1”の場合には、該当する主記憶装置4の領域が外部記憶装置3にコピーがあるデータを保持する領域、すなわち、コピー領域であることが示される。コピー領域フラグが“0”である場合には、該当する主記憶装置4の領域が外部記憶装置3にコピーがあるデータを格納する領域ではない、すなわち、処理領域であることが示される。   When the copy area flag is “1”, it is indicated that the corresponding area of the main storage device 4 is an area for holding data that is copied to the external storage device 3, that is, a copy area. When the copy area flag is “0”, it is indicated that the corresponding area of the main storage device 4 is not an area for storing data having a copy in the external storage device 3, that is, a processing area.

外部記憶装置格納領域情報は、該当するエントリの記憶領域に格納されるデータが外部記憶装置3にコピーがあるデータである場合に、そのデータのコピーの外部記憶装置3内の位置を示す情報である。外部記憶装置格納領域情報は、外部記憶装置3の種類によって異なった形式のデータとなる。例えば、外部記憶装置3がNOR型のメモリである場合には、外部記憶装置格納領域情報は物理アドレスである。例えば、外部記憶装置3がNAND型のメモリである場合には、外部記憶装置格納情報は物理セクタ番号である。   The external storage device storage area information is information indicating the position of the copy of the data in the external storage device 3 when the data stored in the storage region of the corresponding entry is data that is copied to the external storage device 3. is there. The external storage device storage area information is data in a different format depending on the type of the external storage device 3. For example, when the external storage device 3 is a NOR type memory, the external storage device storage area information is a physical address. For example, when the external storage device 3 is a NAND memory, the external storage device storage information is a physical sector number.

メモリ管理部213は、主記憶装置4の記憶領域が取得される場合に、論理アドレス,物理アドレス,コピー領域フラグ,外部記憶装置格納領域情報を対応付けたエントリをメモリ管理テーブルに追加する。また、取得されている領域に対してメモリ解放要求を受信する場合には、メモリ管理部213は、メモリ管理テーブルから該当するエントリを削除する。メモリ管理テーブルの更新処理の詳細は、後述される。メモリ管理部213は、主記憶装置4のデフラグや、タスクが処理中のデータが外部記憶装置3にコピーされるなど、エントリに変更があると、メモリ管理テーブルを更新する。   When the storage area of the main storage device 4 is acquired, the memory management unit 213 adds an entry in which a logical address, a physical address, a copy area flag, and external storage device storage area information are associated with each other to the memory management table. When receiving a memory release request for the acquired area, the memory management unit 213 deletes the corresponding entry from the memory management table. Details of the memory management table update process will be described later. The memory management unit 213 updates the memory management table when there is a change in an entry such as defragmentation of the main storage device 4 or copying of data being processed by a task to the external storage device 3.

メモリ管理部213は、領域取得/解放部213aとデフラグ制御部213bとを含む。領域取得/解放部213aは、メモリ取得要求をタスク制御部211,デマンドページ
ング制御部212,およびタスク制御部211を介した各タスクA〜Nから入力されると、主記憶装置4内の領域の取得を行う。領域取得/解放部213aは、主記憶装置4の領域の取得が終了すると、タスク制御部211に領域の取得の完了を通知する応答を出力する。
The memory management unit 213 includes an area acquisition / release unit 213a and a defrag control unit 213b. When the area acquisition / release unit 213a receives a memory acquisition request from each of the tasks A to N via the task control unit 211, the demand paging control unit 212, and the task control unit 211, the area acquisition / release unit 213a Acquire. When the area acquisition / release unit 213a finishes acquiring the area of the main storage device 4, the area acquisition / release unit 213a outputs a response notifying the task control unit 211 of the completion of the area acquisition.

デフラグ制御部213bは、携帯端末1が省電力状態に移行する際に、省電力制御部215からデフラグ処理要求が入力されると、主記憶装置4のデフラグを実行する。デフラグ制御部213bは、主記憶装置4の領域を、使用領域である領域、及び、未使用領域である領域をそれぞれまとめるようにして領域の再配置を行う。デフラグ制御部213bは、先頭から使用領域を順に連続して配置する。デフラグ制御部213bは、使用領域をさらに、常駐タスク領域、処理領域、コピー領域の順で配置する。デフラグ制御部213bは、例えば、メモリ管理テーブル内のエントリの有無、コピー領域フラグ等を参照することによって、常駐タスク領域,処理領域,コピー領域の順番での使用領域の配置を行う。デフラグ制御部213bは、主記憶装置4のデフラグ処理が完了すると、省電力制御部215にデフラグ処理の完了の応答を出力する。   The defragmentation control unit 213b executes the defragmentation of the main storage device 4 when a defragmentation processing request is input from the power saving control unit 215 when the mobile terminal 1 shifts to the power saving state. The defragmentation control unit 213b rearranges the areas so that the areas of the main storage device 4 are grouped into areas that are used areas and areas that are unused areas. The defragmentation control unit 213b sequentially arranges the use areas from the top. The defragmentation controller 213b further arranges the use areas in the order of the resident task area, the processing area, and the copy area. For example, the defragmentation control unit 213b refers to presence / absence of an entry in the memory management table, a copy area flag, and the like to arrange the use areas in the order of the resident task area, the processing area, and the copy area. When the defragmentation process of the main storage device 4 is completed, the defragmentation control unit 213b outputs a defragmentation process completion response to the power saving control unit 215.

図4は、主記憶装置4のデフラグ処理の例について説明する図である。図4に示される例は、図2に示される主記憶装置4の記憶領域がデフラグ処理で再配置された後の状態を示す。   FIG. 4 is a diagram illustrating an example of the defragmentation process of the main storage device 4. The example shown in FIG. 4 shows a state after the storage area of the main storage device 4 shown in FIG. 2 is rearranged by the defragmentation process.

デフラグ制御部213bは、先頭から順に使用領域であるブロックを連続して配置し、使用領域のブロックを配置し終わると未使用領域であるブロックを順に配置して、デフラグ処理を行う。デフラグ制御部213bは、さらに、使用領域を、常駐タスク領域、処理領域、コピー領域の順に配置する。   The defragmentation control unit 213b sequentially arranges blocks that are used areas sequentially from the top, and after completing the arrangement of blocks in the use area, arranges blocks that are unused areas in order and performs defragmentation processing. The defragmentation control unit 213b further arranges the used areas in the order of the resident task area, the processing area, and the copy area.

図4に示される例では、使用領域であるブロックA,ブロックE,ブロックCの合計がわずかに電源領域1を超えて電源領域2に差し掛かる。言い換えると、未使用領域であるブロックB,ブロックD,ブロックFの合計が電源領域2にわずかに不足している。したがって、図4に示される例では、省電力状態に移行する場合でも、未使用領域がわずかに不足するために、主記憶装置4の電源領域2の電源を切断することができず、主記憶装置4全体の電源が入ったままの状態となる。   In the example shown in FIG. 4, the total of blocks A, E, and C, which are used areas, slightly exceeds the power supply area 1 and reaches the power supply area 2. In other words, the total of the block B, the block D, and the block F that are unused areas is slightly insufficient in the power supply area 2. Therefore, in the example shown in FIG. 4, even when shifting to the power saving state, the unused area is slightly insufficient, so the power supply area 2 of the main storage device 4 cannot be turned off, and the main memory The power supply of the entire apparatus 4 is kept on.

主記憶装置4のデフラグ処理が行われると、主記憶装置4の記憶領域内のブロックの配置変更により各領域の物理アドレスが変わるため、メモリ管理部213は、メモリ管理テーブルのエントリの物理アドレスを更新する。なお、論理アドレスはデフラグ処理では変更されないため、デフラグ処理によってタスク制御部211および各タスクの処理に影響が及ぶことはない。   When the defragmentation processing of the main storage device 4 is performed, the physical address of each area changes due to the block arrangement change in the storage area of the main storage device 4, and therefore the memory management unit 213 changes the physical address of the entry in the memory management table. Update. Since the logical address is not changed in the defragmentation process, the defragmentation process does not affect the task control unit 211 and each task process.

デバイスドライバ部22は、プロセッサ2がデバイスドライバを実行することによって実現される。デバイスドライバ部22は、携帯端末1に搭載される,外部記憶装置3,入力装置5,出力装置6などの各デバイスとオペレーティングシステム部21との間の相互アクセスを制御する。デバイスドライバ22は、外部記憶装置用ドライバ221と省電力状態処理部222とを含む。外部記憶装置用ドライバ221は、オペレーティングシステム部21の外部記憶装置3へのアクセスの制御を行う。   The device driver unit 22 is realized by the processor 2 executing a device driver. The device driver unit 22 controls mutual access between the operating system unit 21 and each device such as the external storage device 3, the input device 5, and the output device 6 mounted on the mobile terminal 1. The device driver 22 includes an external storage device driver 221 and a power saving state processing unit 222. The external storage device driver 221 controls access of the operating system unit 21 to the external storage device 3.

省電力状態処理部222は、オペレーティングシステム部21の省電力制御部215から省電力移行の要求を受けたときに、携帯端末1に搭載されているデバイスの省電力状態への移行処理を行う。   When the power saving state processing unit 222 receives a request for power saving transition from the power saving control unit 215 of the operating system unit 21, the power saving state processing unit 222 performs processing for shifting the device mounted on the mobile terminal 1 to the power saving state.

省電力状態処理部222は、主記憶装置4の省電力状態の移行処理として、デフラグ処
理後の、主記憶装置4内の未使用領域のみを含む電源領域の電源を切断する。わずかに使用領域を含む電源領域が存在する場合には、省電力状態処理部222は、メモリ管理テーブルを参照し、コピー領域フラグが“1”である領域を、当該電源領域中に使用領域が含まれなくなるまで解放し、当該電源領域の電源を切断する。コピー領域フラグが“1”である領域とは、すなわち、コピー領域に分類される領域である。電源が切断された電源領域に記憶されていたデータ、すなわち、未使用領域に記憶されていたデータは消失される。したがって、メモリ管理テーブル内のコピー領域フラグは、主記憶装置4のデータを記憶する各領域について、省電力状態移行時におけるデータの消失の許可または不許可を示す情報である。
The power saving state processing unit 222 cuts off the power of the power supply area including only the unused area in the main storage device 4 after the defragmentation processing as the power saving state transition processing of the main storage device 4. When there is a power supply area that includes a slightly used area, the power saving state processing unit 222 refers to the memory management table and sets an area in which the copy area flag is “1” as a used area in the power supply area. Release it until it is no longer included, and turn off the power in the power supply area. The area whose copy area flag is “1” is an area classified as a copy area. The data stored in the power supply area where the power is cut off, that is, the data stored in the unused area is lost. Therefore, the copy area flag in the memory management table is information indicating permission or non-permission of data loss at the time of shifting to the power saving state for each area storing data in the main storage device 4.

省電力状態処理部222は、領域を解放する際に、例えば、解放される領域のメモリ管理テーブルのエントリを主記憶装置4内に保持するなどして、解放される領域の情報を記録する。省電力状態から復帰する際に、主記憶装置4内を省電力状態になる前の状態に戻す、すなわち、解放された領域内のデータを再度外部記憶装置3から読み出すためである。なお、メモリ管理テーブルが記憶される領域、および、省電力状態処理部222が解放される領域の情報を記録する領域は、処理領域に分類される領域であるため、省電力状態でも主記憶装置4内に保持される。   When the area is released, the power saving state processing unit 222 records information on the released area, for example, by holding an entry in the memory management table of the released area in the main storage device 4. This is because when returning from the power saving state, the main storage device 4 is returned to the state before entering the power saving state, that is, the data in the released area is read from the external storage device 3 again. Note that the area in which the memory management table is stored and the area in which the information of the area where the power saving state processing unit 222 is released are recorded as processing areas, and thus the main storage device even in the power saving state 4 is held.

主記憶装置4の記憶領域が図4に示される例の状態の場合には、ブロックCがわずかに電源領域2に差し掛かっているので、省電力状態処理部222は、コピー領域であるブロックCを解放する。図4に示される例では、ブロックCが解放されることによって、未使用領域のブロックの合計が電源領域2より大きくなるので、電源領域2の電源が切断可能になる。省電力状態処理部222は、電源領域2の電源を切断して主記憶装置4の省電力状態の移行処理を終える。主記憶装置4は、揮発性のメモリであるため、電源が切断されることによって、電源領域2に記憶されていたデータは消失される。   When the storage area of the main storage device 4 is in the state shown in FIG. 4, since the block C is slightly approaching the power supply area 2, the power saving state processing unit 222 sets the block C, which is a copy area, to the block C. release. In the example shown in FIG. 4, since the total of the blocks in the unused area becomes larger than the power supply area 2 by releasing the block C, the power supply of the power supply area 2 can be cut off. The power saving state processing unit 222 turns off the power supply of the power supply area 2 and ends the power saving state transition processing of the main storage device 4. Since the main storage device 4 is a volatile memory, the data stored in the power supply area 2 is lost when the power is turned off.

省電力状態処理部222は、省電力状態時に、例えば、操作ボタンのキー入力,呼の着信,電子メールの受信等の復帰要因となる信号の入力を検知すると、各デバイスの復帰処理を実行する。省電力状態処理部222は、主記憶装置4の省電力状態からの復帰処理として、主記憶装置4を省電力状態移行処理の前の状態に復元する。具体的には、省電力状態処理部222は、省電力状態移行時に電源が切断された電源領域がある場合には、その領域の電源を投入する。省電力状態移行時に解放されたコピー領域がある場合には、省電力状態処理部222は、領域を解放した際に記録されたメモリ管理テーブルのエントリ等の情報を参照して、解放されたコピー領域に解放されたデータと同じデータを再度外部記憶装置3から読み出してコピーする。   When the power saving state processing unit 222 detects an input of a signal that causes a return such as key input of an operation button, incoming call, or reception of an e-mail in the power saving state, for example, the power saving state processing unit 222 executes a return process for each device. . The power saving state processing unit 222 restores the main storage device 4 to the state before the power saving state transition processing as the return processing from the power saving state of the main storage device 4. Specifically, when there is a power supply area that is turned off when the power saving state transitions, the power saving state processing unit 222 turns on the power of that area. When there is a copy area released at the time of transition to the power saving state, the power saving state processing unit 222 refers to information such as an entry in the memory management table recorded when the area is released, and releases the released copy. The same data as the data released to the area is again read from the external storage device 3 and copied.

図5は、図4に示される例における主記憶装置4の解放されたコピー領域の復帰処理を説明する図である。省電力状態処理部222は、図4に示される例において、省電力状態移行時に電源が切断された電源領域2の電源を投入する。次に、省電力状態処理部222は、図4に示される例において、省電力状態移行時にコピー領域であるブロックCが解放されたので、ブロックCに格納されていたデータを再度外部記憶装置3からコピーする。このとき、省電力状態処理部222は、メモリ管理テーブルを参照し、省電力状態移行前と同じ外部記憶装置3の格納領域から同じデータを読み出し、省電力状態移行前と同じ主記憶装置4の領域にコピーする。   FIG. 5 is a diagram for explaining the restoration process of the released copy area of the main storage device 4 in the example shown in FIG. In the example shown in FIG. 4, the power saving state processing unit 222 turns on the power of the power supply region 2 that has been turned off when the power saving state transitions. Next, in the example shown in FIG. 4, the power saving state processing unit 222 releases the data stored in the block C again to the external storage device 3 because the block C as the copy area is released at the time of shifting to the power saving state. Copy from. At this time, the power saving state processing unit 222 refers to the memory management table, reads the same data from the storage area of the same external storage device 3 as before the transition to the power saving state, and stores the same data in the main storage device 4 before the transition to the power saving state. Copy to area.

主記憶装置4は、態様における第1の記憶部に相当する。外部記憶装置3は、態様における第2の記憶部に相当する。デフラグ制御部213bは、態様における再配置部に相当する。省電力状態制御部222は、態様における処理部に相当する。   The main storage device 4 corresponds to the first storage unit in the aspect. The external storage device 3 corresponds to the second storage unit in the aspect. The defragmentation control unit 213b corresponds to the rearrangement unit in the aspect. The power saving state control unit 222 corresponds to the processing unit in the aspect.

<<メモリ管理テーブルのエントリ追加処理>>
図6は、携帯端末1の起動処理の終了後、新たなタスクXの起動時に、タスクXの実行コードが外部記憶装置3から主記憶装置4へコピーされる場合のメモリ管理テーブルのエントリ追加処理のフローの例を示す図である。なお、タスク制御部211とメモリ管理部213とのアクセスにはデマンドページング制御部212が介在するが、図6では、簡略化のため、デマンドページング制御部212は省略される。
<< Memory management table entry addition process >>
FIG. 6 shows an entry addition process in the memory management table when the execution code of task X is copied from the external storage device 3 to the main storage device 4 when the new task X is started after the start processing of the portable terminal 1 is completed. It is a figure which shows the example of this flow. Although the demand paging control unit 212 is interposed in the access between the task control unit 211 and the memory management unit 213, the demand paging control unit 212 is omitted in FIG. 6 for simplification.

入力装置5からのボタン操作などによるタスクXの起動指示の入力を受けると、タスク制御部211は、タスクXの実行コードを格納するための主記憶装置4の領域を取得する処理を実行する。タスク制御部211は、メモリ管理部213に主記憶装置4の領域の取得を要求するメモリ取得要求を送信する(OP1)。   When the task X activation instruction is input from the input device 5 by a button operation or the like, the task control unit 211 executes a process of acquiring an area of the main storage device 4 for storing the execution code of the task X. The task control unit 211 transmits a memory acquisition request for requesting acquisition of an area of the main storage device 4 to the memory management unit 213 (OP1).

メモリ管理部213は、タスク制御部211からデマンドページング制御部212を介してメモリ取得要求を受信すると、タスクXの実行コードを格納するための主記憶装置4の領域を取得する(確保する)(OP2)。メモリ管理部213は、デマンドページング制御部212を介してタスク制御部211に、タスクXの実行コードが格納される領域を取得したことを通知するメモリ取得完了を送信する。   When the memory management unit 213 receives a memory acquisition request from the task control unit 211 via the demand paging control unit 212, the memory management unit 213 acquires (reserves) an area of the main storage device 4 for storing the execution code of the task X ( OP2). The memory management unit 213 transmits a memory acquisition completion notification that notifies the task control unit 211 that the execution code of the task X has been acquired via the demand paging control unit 212.

メモリ管理部213は、メモリ管理テーブルに、タスクXの実行コードを格納するために取得されたメモリの論理アドレスと物理アドレスとを書き込む(OP3)。   The memory management unit 213 writes the logical address and physical address of the memory acquired for storing the execution code of the task X in the memory management table (OP3).

タスク制御部211は、デマンドページング制御部212を介してメモリ管理部213からメモリ取得完了を受信する(OP4)。次に、タスク制御部211は、タスクXの実行コードを外部記憶装置3から取得するために、タスクXの実行コードが格納されているファイル名をファイルシステム部214に送信する(OP5)。   The task control unit 211 receives a memory acquisition completion from the memory management unit 213 via the demand paging control unit 212 (OP4). Next, in order to acquire the execution code of task X from the external storage device 3, the task control unit 211 transmits the file name in which the execution code of task X is stored to the file system unit 214 (OP5).

ファイルシステム部214は、タスク制御部211からタスクXの実行コードが格納されているファイル名を受信すると、受信したファイル名に対応するファイル情報から、外部記憶装置格納領域情報を取り出す(OP6)。ファイルシステム部214は、外部記憶装置用ドライバ221に、取り出された外部記憶装置格納領域情報を通知して、タスクXの実行コードが格納されているファイルの外部記憶装置3からの読み出しを要求する(OP7)。   When the file system unit 214 receives the file name storing the execution code of the task X from the task control unit 211, the file system unit 214 extracts the external storage device storage area information from the file information corresponding to the received file name (OP6). The file system unit 214 notifies the external storage device driver 221 of the extracted external storage device storage area information, and requests reading of the file storing the execution code of the task X from the external storage device 3. (OP7).

外部記憶装置用ドライバ221は、ファイルシステム部214から外部記憶装置格納情報を受信すると、外部記憶装置格納情報で指定される外部記憶装置3の格納領域からタスクXの実行コードを読み出す(OP8)。外部記憶装置用ドライバ221は、外部記憶装置3から読み出されたタスクXの実行コードと外部記憶装置格納領域情報とをファイルシステム部214に送信する。   When receiving the external storage device storage information from the file system unit 214, the external storage device driver 221 reads the execution code of the task X from the storage area of the external storage device 3 specified by the external storage device storage information (OP8). The external storage device driver 221 transmits the execution code of the task X read from the external storage device 3 and the external storage device storage area information to the file system unit 214.

ファイルシステム部214は、読み出されたタスクXの実行コードと外部記憶装置格納領域情報とを外部記憶装置用ドライバ221から受信すると、それらをタスク制御部211に送信し、実行コードの読み出しを完了する(OP9)。   Upon receiving the read execution code of the task X and the external storage device storage area information from the external storage device driver 221, the file system unit 214 transmits them to the task control unit 211 and completes the execution code reading. (OP9).

タスク制御部211は、読み出されたタスクXの実行コードと外部記憶装置格納領域情報とをファイルシステム部214から受信すると、読み出されたタスクXの実行コードの一部を主記憶装置4にコピーする(OP10)。OP10における処理の内容は、以下の通りである。タスク制御部211は、デマンドページング制御部212を介して、メモリ管理部213に取得された領域への実行コードの書き込み要求を送信する。メモリ管理部213は、主記憶装置4内の取得された領域に実行コードを書き込む。メモリ管理部213は、主記憶装置4への書き込みが完了すると、書き込み完了の通知を、デマンドページング制御部212を介して、タスク制御部211に出力する。   When the task control unit 211 receives the read execution code of the task X and the external storage device storage area information from the file system unit 214, the task control unit 211 stores a part of the read execution code of the task X in the main storage device 4. Copy (OP10). The contents of processing in OP10 are as follows. The task control unit 211 transmits an execution code write request to the area acquired by the memory management unit 213 via the demand paging control unit 212. The memory management unit 213 writes the execution code in the acquired area in the main storage device 4. When the writing to the main storage device 4 is completed, the memory management unit 213 outputs a write completion notification to the task control unit 211 via the demand paging control unit 212.

タスク制御部211は、外部記憶装置3から主記憶装置4への単純なコピー作業が行われたので、タスクXの実行コードの一部を格納する領域のエントリのコピー領域フラグを“1”に設定するようにメモリ管理部213に要求する(OP11)。このとき、タスク制御部211は、外部記憶装置格納領域情報も併せてメモリ管理部213に送信する。タスクXの実行コードは外部記憶装置3に格納されているため、省電力状態移行時に主記憶装置4からタスクXの実行コードが削除されても、省電力状態から復帰時に再現可能であるため、メモリ管理テーブル内のエントリのコピー領域フラグが“1”に設定される。   Since the simple copy operation from the external storage device 3 to the main storage device 4 has been performed, the task control unit 211 sets the copy area flag of the entry of the area storing a part of the execution code of the task X to “1”. The memory management unit 213 is requested to set (OP11). At this time, the task control unit 211 also transmits the external storage device storage area information to the memory management unit 213. Since the execution code of task X is stored in the external storage device 3, even if the execution code of task X is deleted from the main storage device 4 at the time of transition to the power saving state, it can be reproduced when returning from the power saving state. The copy area flag of the entry in the memory management table is set to “1”.

メモリ管理部213は、コピー領域フラグの設定要求と外部記憶装置格納領域情報とを受信すると、OP3において書き込んだ論理アドレスと物理アドレスとを含むエントリに、コピー領域フラグと外部記憶装置格納領域情報とを書き込む(OP12)。   Upon receiving the copy area flag setting request and the external storage device storage area information, the memory management unit 213 adds the copy area flag, the external storage device storage area information, and the entry including the logical address and physical address written in OP3. Is written (OP12).

その後、タスク制御部211は、主記憶装置4にコピーされたタスクXの実行コードを読み出して、タスクXを起動する。タスク制御部211がタスクXの実行コードを読み出すために主記憶装置4にアクセスした際に、タスクXの実行コードが主記憶装置4内にない場合には、メモリ管理部213は主記憶装置4内に要求された実行コードが保持されていない旨の応答を出力する。タスク制御部211へと中継するデマンドページング制御部212がこの応答を受け取ると、デマンドページング制御部212はデマンドページングを実行する。   Thereafter, the task control unit 211 reads the execution code of the task X copied to the main storage device 4 and activates the task X. When the task control unit 211 accesses the main storage device 4 to read out the execution code of the task X, if the execution code of the task X is not in the main storage device 4, the memory management unit 213 selects the main storage device 4. A response indicating that the requested execution code is not held is output. When the demand paging control unit 212 that relays to the task control unit 211 receives this response, the demand paging control unit 212 executes demand paging.

デマンドページング制御部212は、タスクXの実行コードを格納するための主記憶装置4の領域取得処理を実行する。デマンドページング制御部212は、図6に示される例におけるタスク制御部211の処理と同様の処理を行って、タスクXの実行コードを格納する主記憶装置4の領域を取得し、メモリ管理テーブルにエントリを追加する。   The demand paging control unit 212 executes an area acquisition process of the main storage device 4 for storing the execution code of the task X. The demand paging control unit 212 performs processing similar to the processing of the task control unit 211 in the example shown in FIG. 6, acquires the area of the main storage device 4 that stores the execution code of task X, and stores it in the memory management table. Add an entry.

以上のようにして、新たなタスクXの起動時、および、デマンドページング実行時には、メモリ管理テーブルにタスクXの実行コードの一部を格納するための主記憶装置4の領域のエントリ追加処理が行われる。また、タスクXの終了時およびデマンドページング終了時には、タスク制御部211からメモリ管理部213にタスクXの実行コードを格納する主記憶装置4の領域の解放要求が送信される。メモリ管理部213は、メモリ管理テーブル中のタスクXの実行コードを格納する領域のエントリを削除する。   As described above, when a new task X is started and when demand paging is executed, an entry addition process of the area of the main storage device 4 for storing a part of the execution code of the task X in the memory management table is performed. Is called. At the end of task X and at the end of demand paging, the task control unit 211 transmits a request to release the area of the main storage device 4 that stores the execution code of task X to the memory management unit 213. The memory management unit 213 deletes the entry of the area for storing the execution code of the task X in the memory management table.

図7は、タスクXの起動中に、外部記憶装置3に保持されるデータが読み出され主記憶装置4へコピーされる場合のメモリ管理テーブルのエントリ追加処理のフローの例を示す図である。例えば、タスクXは音楽再生プログラムであって、タスクXが外部記憶装置3に保持される音楽データを読み出す場合のメモリ管理テーブルのエントリ追加処理である。以降、タスクXは音楽再生プログラムであり、ユーザからのボタン操作などによって再生を指示された音楽データを外部記憶装置3から読み出す場合について説明される。なお、タスク制御部211とメモリ管理部213とのアクセスには、デマンド制御部212が介在するが、図7においては、簡略化のため、省略される。   FIG. 7 is a diagram showing an example of a flow of entry addition processing of the memory management table when data held in the external storage device 3 is read and copied to the main storage device 4 while the task X is activated. . For example, the task X is a music reproduction program, and is an entry addition process of the memory management table when the task X reads out music data held in the external storage device 3. Hereinafter, the task X is a music playback program, and a case where music data instructed to be played back by a user's button operation or the like is read from the external storage device 3 will be described. Note that the demand control unit 212 is interposed in the access between the task control unit 211 and the memory management unit 213, but is omitted in FIG. 7 for simplification.

入力装置5から音楽データの再生指示のボタン操作などの入力を受けると、タスクXは、音楽データを格納するための主記憶装置4の領域を取得する処理を実行する。タスクXは、メモリ管理部213に主記憶装置4の領域の取得を要求するメモリ取得要求を、タスク制御部211及びデマンドページング制御部212を介して、送信する(OP21)。   When an input such as a button operation for reproducing music data is received from the input device 5, the task X executes a process of acquiring an area of the main storage device 4 for storing the music data. The task X transmits a memory acquisition request for requesting acquisition of the area of the main storage device 4 to the memory management unit 213 via the task control unit 211 and the demand paging control unit 212 (OP21).

メモリ管理部213は、タスク制御部211及びデマンドページング制御部212を介して、タスクXからメモリ取得要求を受信すると、音楽データを格納するための主記憶装置4の領域を取得する(OP22)。メモリ管理部213は、タスク制御部211及びデ
マンドページング制御部212を介して、タスクXに、音楽データを格納するための領域を取得したことを通知するためのメモリ取得完了を送信する。
When the memory management unit 213 receives a memory acquisition request from the task X via the task control unit 211 and the demand paging control unit 212, the memory management unit 213 acquires an area of the main storage device 4 for storing music data (OP22). The memory management unit 213 transmits a memory acquisition completion for notifying the task X that an area for storing music data has been acquired via the task control unit 211 and the demand paging control unit 212.

メモリ管理部213は、メモリ管理テーブルに音楽データを格納するために取得されたメモリの論理アドレスと物理アドレスとを書き込む(OP23)。   The memory management unit 213 writes the logical address and physical address of the memory acquired to store the music data in the memory management table (OP23).

タスクXは、タスク制御部211及びデマンドページング制御部212を介して、メモリ管理部213からメモリ取得完了を受信する(OP24)。次に、タスクXは、再生指示された音楽データを外部記憶装置3から取得するために、タスク制御部211を介して、ファイルシステム部214に音楽データが格納されているファイル名を送信する(OP25)。   The task X receives the memory acquisition completion from the memory management unit 213 via the task control unit 211 and the demand paging control unit 212 (OP24). Next, the task X transmits the file name in which the music data is stored to the file system unit 214 via the task control unit 211 in order to acquire the music data instructed to be reproduced from the external storage device 3 ( OP25).

ファイルシステム部214は、再生指示された音楽データが格納されているファイル名をタスク制御部211を介してタスクXから受信すると、受信したファイル名に対応するファイル情報から、外部記憶装置格納領域情報を取り出す(OP26)。ファイルシステム部214は、外部記憶装置用ドライバ221に、取り出された外部記憶装置格納領域情報を通知して、再生要求された音楽データが格納されているファイルの外部記憶装置3からの読み出しを要求する(OP27)。   When the file system unit 214 receives a file name in which the music data instructed to be played is stored from the task X via the task control unit 211, the file system unit 214 obtains external storage device storage area information from the file information corresponding to the received file name. Is taken out (OP26). The file system unit 214 notifies the external storage device driver 221 of the extracted external storage device storage area information, and requests reading from the external storage device 3 of the file storing the music data requested to be played back. (OP27).

外部記憶装置用ドライバ221は、ファイルシステム部214から外部記憶装置格納情報を受信すると、外部記憶装置格納情報で指定される外部記憶装置3の領域から音楽データを読み出す(OP28)。外部記憶装置用ドライバ221は、外部記憶装置3から読み出された音楽データと外部記憶装置格納領域情報とをファイルシステム部214に送信する。   When receiving the external storage device storage information from the file system unit 214, the external storage device driver 221 reads music data from the area of the external storage device 3 specified by the external storage device storage information (OP28). The external storage device driver 221 transmits the music data read from the external storage device 3 and the external storage device storage area information to the file system unit 214.

ファイルシステム部214は、読み出された音楽データと外部記憶装置格納領域情報とを外部記憶装置用ドライバ221から受信すると、それらをタスク制御部211を介してタスクXに送信し、音楽データの読み出しを完了する(OP29)。   Upon receiving the read music data and external storage device storage area information from the external storage device driver 221, the file system unit 214 transmits them to the task X via the task control unit 211 and reads the music data. Is completed (OP29).

タスク制御部211は、タスクXに先立って読み出された音楽データと外部記憶装置格納領域情報とをファイルシステム部214から受信する。タスク制御部211は、読み出された音楽データを主記憶装置4にコピーする(OP30)。OP30の処理は、図6におけるOP10の処理と同様である。   The task control unit 211 receives music data and external storage device storage area information read prior to the task X from the file system unit 214. The task control unit 211 copies the read music data to the main storage device 4 (OP30). The process of OP30 is the same as the process of OP10 in FIG.

タスク制御部211は、外部記憶装置3から主記憶装置4への単純なコピー作業を行ったので、音楽データを格納する主記憶装置4の領域のエントリのコピー領域フラグを“1”に設定するようメモリ管理部213に要求する(OP31)。このとき、タスク制御部211は、音楽データの外部記憶装置格納領域情報も併せてメモリ管理部213に送信する。なお、主記憶装置4にコピーされた音楽データは、主記憶装置4から削除されても外部記憶装置3に元のファイルが存在する。従って、音楽データは、省電力状態移行時に主記憶装置4から削除されても、省電力状態から復帰時に外部記憶装置3から再度読み出されるため、音楽データを格納する領域のエントリのコピー領域フラグは“1”に設定される。ただし、音楽データが再生されるだけではなく、ファイル名を変更されるなどの編集処理が行われると、変更後の音楽データが外部記憶装置3に保存されるまでは、音楽データを格納する領域のコピー領域フラグは“0”に設定される。外部記憶装置3に保存される前の、変更が加えられた音楽データは、省電力状態移行時に主記憶装置4から削除されてしまうと、省電力状態からの復帰時に再現することができなくなってしまうためである。このようなコピー領域フラグの変更が生じると、タスクXからのメモリ管理部213へのアクセスを中継するタスク制御部211がメモリ管理部213にコピー領域フラグに設定要求を送信する。   Since the task control unit 211 has performed a simple copy operation from the external storage device 3 to the main storage device 4, the task control unit 211 sets the copy area flag of the entry in the area of the main storage device 4 storing the music data to “1”. The memory management unit 213 is requested (OP31). At this time, the task control unit 211 also transmits the external storage device storage area information of the music data to the memory management unit 213. Even if the music data copied to the main storage device 4 is deleted from the main storage device 4, the original file exists in the external storage device 3. Therefore, even if the music data is deleted from the main storage device 4 at the time of transition to the power saving state, it is read again from the external storage device 3 at the time of return from the power saving state. Set to “1”. However, when the music data is not only reproduced but also edited such as when the file name is changed, an area for storing the music data until the changed music data is stored in the external storage device 3 The copy area flag is set to “0”. If the music data that has been changed before being stored in the external storage device 3 is deleted from the main storage device 4 at the time of shifting to the power saving state, the music data cannot be reproduced when returning from the power saving state. It is because it ends. When such a change in the copy area flag occurs, the task control unit 211 that relays the access from the task X to the memory management unit 213 transmits a setting request for the copy area flag to the memory management unit 213.

メモリ管理部213は、コピー領域フラグの設定要求と外部記憶装置格納領域情報とを受信すると、OP23において書き込んだ論理アドレスと物理アドレスを含むエントリに、コピー領域フラグと外部記憶装置格納領域情報とを書き込む(OP32)。   Upon receiving the copy area flag setting request and the external storage device storage area information, the memory management unit 213 sets the copy area flag and the external storage device storage area information in the entry including the logical address and physical address written in OP23. Write (OP32).

その後、タスクXは、タスク制御部211を介して音楽データを順次読み出して再生する。   Thereafter, the task X sequentially reads and reproduces the music data via the task control unit 211.

以上のようにして、タスクXが外部記憶装置3からデータを読み出す場合には、メモリ管理テーブルのエントリ追加処理が行われる。音楽データの再生が終わるなど、外部記憶装置3から読み出されたデータの使用が終了すると、タスクXは、タスク制御部211を介してメモリ管理部213に音楽データの格納領域の解放要求を送信する。その後、メモリ管理部213によって、メモリ管理テーブルから音楽データの格納領域のエントリが削除される。   As described above, when the task X reads data from the external storage device 3, an entry addition process of the memory management table is performed. When the use of the data read from the external storage device 3 is finished, such as when the music data has been played back, the task X sends a music data storage area release request to the memory management unit 213 via the task control unit 211. To do. Thereafter, the memory management unit 213 deletes the entry of the music data storage area from the memory management table.

タスクXの起動中に、タスクXが主記憶装置4の記憶領域内に演算結果等を一時的に格納するための作業領域(例えば、バッファなど)を取得する場合には、図7におけるOP25からOP30のような外部記憶装置3からデータを読み出す処理は発生しない。この場合には、図7におけるOP21からOP23,OP31,およびOP32のような、主記憶装置4の領域取得の処理がタスクX,タスク制御部211,メモリ管理213との間でなされ、メモリ管理テーブルに取得された領域のエントリが追加される。一時的な作業領域内のデータは、外部記憶装置3にコピーがあるデータではなく、主記憶装置4から一旦削除されてしまうと復元することができないため、一時的な作業領域のメモリ管理テーブルのエントリのコピー領域フラグは、“0”と設定される。   When the task X acquires a work area (for example, a buffer or the like) for temporarily storing a calculation result or the like in the storage area of the main storage device 4 during the activation of the task X, from OP25 in FIG. There is no processing for reading data from the external storage device 3 as in OP30. In this case, the area acquisition processing of the main storage device 4 such as OP21 to OP23, OP31, and OP32 in FIG. 7 is performed between the task X, the task control unit 211, and the memory management 213, and the memory management table. An entry for the acquired area is added. Since the data in the temporary work area is not data that is copied to the external storage device 3 and cannot be restored once deleted from the main storage device 4, the data in the temporary work area memory management table The copy area flag of the entry is set to “0”.

<<携帯端末の省電力状態移行のフロー>>
図8Aは、携帯端末1が省電力状態に移行する際の処理のフローの例を示す図である。図8Bは、携帯端末1が省電力状態から復帰する際の処理のフローの例を示す図である。
<< Flow of mobile terminal power saving state transition >>
FIG. 8A is a diagram illustrating an example of a processing flow when the mobile terminal 1 shifts to the power saving state. FIG. 8B is a diagram illustrating an example of a processing flow when the mobile terminal 1 returns from the power saving state.

オペレーティングシステム部21の省電力制御部215は、各タスクA〜N及びOSの状態を監視し、省電力状態へ移行する条件が揃うと省電力状態への移行を開始する(OP41)。省電力制御部215は、メモリ管理部213に主記憶装置4のデフラグ処理要求を送信する(OP42)。   The power saving control unit 215 of the operating system unit 21 monitors the states of the tasks A to N and the OS, and starts the transition to the power saving state when the conditions for shifting to the power saving state are met (OP41). The power saving control unit 215 transmits a defragmentation processing request for the main storage device 4 to the memory management unit 213 (OP42).

メモリ管理部213が主記憶装置4のデフラグ処理要求を受信すると、メモリ管理部213のデフラグ制御部213bは主記憶装置4のデフラグ処理を実行する(OP43)。このとき、デフラグ制御部213bは、例えば、メモリ管理テーブルを参照して、領域の先頭から使用領域,未使用領域の順に領域を配置する。使用領域内は、さらに、常駐タスク領域,処理領域,コピー領域の順に配置されるようにデフラグが行われる。デフラグ処理が完了すると、メモリ管理部213は省電力制御部215にデフラグ処理完了の通知を送信する。   When the memory management unit 213 receives the request for defragmentation processing of the main storage device 4, the defragmentation control unit 213b of the memory management unit 213 executes the defragmentation processing of the main storage device 4 (OP43). At this time, for example, the defragmentation control unit 213b refers to the memory management table and arranges the areas in the order of the used area and the unused area from the top of the area. In the use area, defragmentation is further performed so that the resident task area, the processing area, and the copy area are arranged in this order. When the defragmentation process is completed, the memory management unit 213 transmits a notification of the completion of the defragmentation process to the power saving control unit 215.

省電力制御部215は、デフラグ処理の完了の通知を受信すると(OP44)、次に、省電力状態への移行要求を省電力状態処理部222に送信する(OP45)。以降、OSより上位のプログラムは省電力状態に移行し、省電力状態から復帰するまで動作を停止する。   When receiving the notification of the completion of the defragmentation process (OP44), the power saving control unit 215 then transmits a request for shifting to the power saving state to the power saving state processing unit 222 (OP45). Thereafter, the program higher than the OS shifts to the power saving state and stops operating until returning from the power saving state.

省電力状態処理部222は、省電力制御部215から省電力状態への移行要求を受信すると、使用領域と未使用領域とを含む電源領域が存在するか否かを判定する(OP46)。使用領域と未使用領域とを含む電源領域が存在しない場合には(OP46:No)、省
電力状態処理部222は、処理をOP49に進める。
When receiving the request for shifting to the power saving state from the power saving control unit 215, the power saving state processing unit 222 determines whether there is a power source region including a used region and an unused region (OP46). When there is no power supply area including the used area and the unused area (OP46: No), the power saving state processing unit 222 advances the process to OP49.

使用領域と未使用領域とを含む電源領域が存在する場合には(OP46:Yes)、その電源領域の電源を切断できない。省電力状態処理部222は、使用領域と未使用領域とを含む電源領域を電源切断可能にするために、コピー領域の解放が必要か否かを判定する(OP47)。使用領域と未使用領域とを含む電源領域内の使用領域がわずかである場合には、コピー領域の一部が解放され、その電源領域の電源が切断されることで主記憶装置の消費電力が抑えられるので、省電力状態処理部222は、コピー領域の一部の解放が必要と判断する。使用領域と未使用領域とを含む電源領域内の使用領域が大部分を占める場合には、省電力状態からの復帰後の、解放されたコピー領域のデータの再読み出しの処理に電力が消費されるので、省電力状態処理部222は、コピー領域の一部の解放は不要と判断する。例えば、省電力状態処理部222は、電源領域に含まれる使用領域の閾値を用いて、使用領域と未使用領域とを含む電源領域内の使用領域が所定の閾値未満の場合には、省電力状態処理部222は、コピー領域の解放が必要であると判断する。例えば、使用領域と未使用領域とを含む電源領域内の使用領域が所定の閾値以上の場合には、省電力状態処理部222は、コピー領域の解放は不要と判断する。   If there is a power supply area including a used area and an unused area (OP46: Yes), the power supply to that power supply area cannot be turned off. The power saving state processing unit 222 determines whether or not it is necessary to release the copy area so that the power supply area including the used area and the unused area can be turned off (OP47). When the used area in the power supply area including the used area and the unused area is small, a part of the copy area is released and the power supply to the power supply area is turned off to reduce the power consumption of the main storage device. Thus, the power saving state processing unit 222 determines that a part of the copy area needs to be released. When the used area in the power supply area, including the used area and unused area, occupies most, power is consumed for rereading the data in the released copy area after returning from the power saving state. Therefore, the power saving state processing unit 222 determines that it is not necessary to release a part of the copy area. For example, the power saving state processing unit 222 uses the threshold value of the use area included in the power supply area, and when the use area in the power supply area including the use area and the unused area is less than a predetermined threshold, The status processing unit 222 determines that the copy area needs to be released. For example, when the used area in the power supply area including the used area and the unused area is equal to or greater than a predetermined threshold, the power saving state processing unit 222 determines that the copy area need not be released.

コピー領域の解放が不要であると判定された場合には(OP47:No)、省電力状態処理部222は、処理をOP50に進める。コピー領域の解放が必要であると判定された場合には(OP47:Yes)、省電力状態処理部222は、メモリ管理テーブルを参照してコピー領域フラグが“1”である領域(すなわち、コピー領域)の中から少なくとも1つを解放する(OP48)。省電力状態処理部222は、使用領域と未使用領域とを含む電源領域内が未使用領域のみになるまでコピー領域を解放する。このとき、省電力状態処理部222は、解放されたコピー領域に関する情報、例えば、メモリ管理テーブルのエントリなどを、主記憶装置4に記憶する。解放されたコピー領域が記憶される領域は処理領域に分類されるため、省電力状態に移行した後でも、主記憶装置4内に保持される。省電力状態処理部222は、未使用領域のみを含む電源領域の電源を切断する(OP49)。電源が切断された電源領域に記憶されていたデータは消失される。   If it is determined that it is not necessary to release the copy area (OP47: No), the power saving state processing unit 222 advances the process to OP50. When it is determined that the copy area needs to be released (OP47: Yes), the power saving state processing unit 222 refers to the memory management table and copies the area whose copy area flag is “1” (that is, the copy area). At least one of the areas is released (OP48). The power saving state processing unit 222 releases the copy area until the power supply area including the used area and the unused area becomes only the unused area. At this time, the power saving state processing unit 222 stores information on the released copy area, for example, an entry in the memory management table, in the main storage device 4. Since the area in which the released copy area is stored is classified as a processing area, it is held in the main storage device 4 even after shifting to the power saving state. The power saving state processing unit 222 cuts off the power of the power supply area including only the unused area (OP49). The data stored in the power supply area where the power is cut off is lost.

省電力状態処理部222は、主記憶装置4以外の携帯端末1に搭載されているデバイスの省電力状態移行処理を行う(OP50)。主記憶装置4以外の携帯端末1に搭載されているデバイスの省電力状態移行処理が完了すると(OP51)、携帯端末1が省電力状態に移行完了する。   The power saving state processing unit 222 performs a power saving state transition process for devices mounted on the mobile terminal 1 other than the main storage device 4 (OP50). When the power saving state transition processing for devices mounted on the portable terminal 1 other than the main storage device 4 is completed (OP51), the portable terminal 1 is completely shifted to the power saving state.

その後、操作ボタンが押下される、呼が着信されるなどの省電力状態からの復帰要因の発生による入力信号が検知されると、省電力状態処理部222は、省電力状態からの復帰処理を開始する(OP61)。   After that, when an input signal due to the occurrence of a return factor from the power saving state such as an operation button being pressed or a call being received is detected, the power saving state processing unit 222 performs a return process from the power saving state. Start (OP61).

省電力状態処理部222は、電源が切断されている主記憶装置4の電源領域の電源を入れる(OP62)。省電力状態処理部222は、省電力状態移行時に、解放されたコピー領域があるか否かを判定する(OP63)。省電力状態移行時にコピー領域が解放されていない場合には(OP63:No)、省電力状態処理部222は、処理をOP68に進める。   The power saving state processing unit 222 turns on the power supply area of the main storage device 4 that is turned off (OP62). The power saving state processing unit 222 determines whether there is a released copy area at the time of shifting to the power saving state (OP63). When the copy area is not released at the time of shifting to the power saving state (OP63: No), the power saving state processing unit 222 advances the process to OP68.

省電力状態移行時に解放されたコピー領域がある場合には(OP63:Yes)、省電力状態処理部222は、解放されたコピー領域に保持されていたデータの復帰処理を行う。省電力状態処理部222は、メモリ管理テーブルを参照し、解放されたコピー領域の外部記憶装置格納領域情報を外部記憶装置用ドライバ221に通知して、データの読み出しを要求する(OP64)。   When there is a copy area released at the time of shifting to the power saving state (OP63: Yes), the power saving state processing unit 222 performs a restoration process of the data held in the released copy area. The power saving state processing unit 222 refers to the memory management table, notifies the external storage device driver 221 of the external storage device storage area information of the released copy area, and requests data read (OP64).

外部記憶装置用ドライバ221は、省電力状態処理部222から外部記憶装置格納領域情報を受信すると、該当する領域に格納されるデータを読み出し、省電力状態処理部222に送信する(OP65)。   When the external storage device driver 221 receives the external storage device storage area information from the power saving state processing unit 222, the external storage device driver 221 reads data stored in the corresponding area and transmits the data to the power saving state processing unit 222 (OP65).

省電力状態処理部222は、外部記憶装置用ドライバ221から受信するデータを、メモリ管理テーブルを参照して、省電力状態移行前と同じ主記憶装置4の領域にコピーする(OP66)。コピーが完了すると、コピー領域の復帰処理が完了する(OP67)。   The power saving state processing unit 222 refers to the memory management table to copy the data received from the external storage device driver 221 to the same area of the main storage device 4 as before the power saving state shift (OP66). When the copying is completed, the copy area restoration process is completed (OP67).

次に、省電力状態処理部222は、主記憶装置4以外のデバイスの省電力状態からの復帰処理を行う(OP68)。すべてのデバイスの省電力状態からの復帰処理が完了すると、携帯端末1の省電力状態からの復帰処理が完了する(OP69)。省電力状態処理部222は、復帰処理の完了を省電力制御部215に通知する。省電力制御部215は、省電力状態処理部222から復帰処理の完了の通知を受信すると、携帯端末1の省電力状態からの復帰処理を終了する(OP70)。   Next, the power saving state processing unit 222 performs a return process from the power saving state of devices other than the main storage device 4 (OP68). When the return processing from the power saving state of all devices is completed, the return processing from the power saving state of the mobile terminal 1 is completed (OP69). The power saving state processing unit 222 notifies the power saving control unit 215 of the completion of the return process. When the power saving control unit 215 receives the notification of completion of the return processing from the power saving state processing unit 222, the power saving control unit 215 ends the return processing from the power saving state of the mobile terminal 1 (OP70).

<<第1実施形態の作用効果>>
第1実施形態では、携帯端末1が省電力状態に移行する際に、主記憶装置4の使用領域と未使用領域を含む電源領域内の使用領域がわずかである場合に、主記憶装置4内の外部記憶装置3にコピーがあるデータを保持するコピー領域を解放する。これによって、省電力状態移行時に、従来は電源を切断することができなかった、主記憶装置4の使用領域をわずかに含む電源領域の電源を切断することができ、主記憶装置4の消費電力を低減することができる。主記憶装置4の消費電力が低減されることによって、携帯端末1の消費電力が低減され、携帯端末1のバッテリー持続時間を長くすることができる。
<< Effects of First Embodiment >>
In the first embodiment, when the mobile terminal 1 shifts to the power saving state, if the used area in the power supply area including the used area and the unused area of the main storage device 4 is small, The copy area holding the data that is copied to the external storage device 3 is released. As a result, when the power saving state is shifted, the power supply in the power supply area that includes the used area of the main storage device 4 that could not be cut off in the past can be cut off. Can be reduced. By reducing the power consumption of the main storage device 4, the power consumption of the mobile terminal 1 can be reduced, and the battery duration of the mobile terminal 1 can be increased.

解放された領域に含まれるデータは、外部記憶装置3にコピーがあり、バックアップがされているので、省電力状態から復帰する際に、主記憶装置4から消失されても、外部記憶装置3から再度読み出すことが可能である。携帯端末1は、省電力状態から復帰する際に、解放された領域のデータを外部記憶装置3から読み出し主記憶装置4に格納することで、省電力状態に移行する前の主記憶装置4の状態に復元可能である。   Since the data included in the released area is copied and backed up in the external storage device 3, even if it is lost from the main storage device 4 when returning from the power saving state, the external storage device 3 It can be read again. When the portable terminal 1 returns from the power saving state, the data in the released area is read from the external storage device 3 and stored in the main storage device 4, so that the main storage device 4 before shifting to the power saving state is stored. It can be restored to the state.

<<変形例>>
第1実施形態では、省電力状態からオペレーティングシステム部21が復帰する前に、外部記憶装置用ドライバ221が動作可能な状態となっていた。省電力状態からオぺレーティングシステム部21が復帰する前に外部記憶装置用ドライバ221が動作不可能である場合には、省電力状態処理部222に、外部記憶装置格納領域情報からデータを読み出すだけの単純な外部記憶装置3への簡易アクセス機能を備えさせればよい。
<< Modification >>
In the first embodiment, the external storage device driver 221 is operable before the operating system unit 21 returns from the power saving state. If the external storage device driver 221 is not operable before the operating system unit 21 returns from the power saving state, the power saving state processing unit 222 simply reads data from the external storage device storage area information. A simple access function to the simple external storage device 3 may be provided.

第1実施形態では、コピー領域として、常駐タスク以外のタスクに関係する、外部記憶装置3にコピーがあるデータを格納する領域が分類され、そのコピー領域が解放対象とされた。しかしながら、常駐タスク領域に分類された、OSの実行コードやOSが外部記憶装置3から読み出したデータを保持する領域もコピー領域に分類してもよい。この場合、OSの実行コードやOSが外部記憶装置3から読み出したデータを保持する領域についても、メモリ管理テーブルにコピー領域フラグ“1”でエントリされる。   In the first embodiment, as the copy area, an area for storing data with a copy in the external storage device 3 related to a task other than the resident task is classified, and the copy area is set as a release target. However, an area in which the OS execution code or data read from the external storage device 3 by the OS, which is classified as a resident task area, may also be classified as a copy area. In this case, the OS holding code and the area holding the data read from the external storage device 3 by the OS are also entered in the memory management table with the copy area flag “1”.

OSの実行コードなどであっても、外部記憶装置3にコピーが記憶されており、外部記憶装置3から再度読み出すことで復元可能だからである。ただし、外部記憶装置3から再度読み出すことで復元可能なデータであっても、主記憶装置の電源を投入するタスク、および、省電力状態から復帰する際に外部記憶装置3からデータを読み出すタスクの実行コードを格納する領域は常駐タスク領域に分類される。例えば、第1実施形態においては、省電力状態処理部222と外部記憶装置用ドライバ211との実行コードを格納する領域
は、コピー領域には分類されず、常駐タスク領域に分類される。これは、省電力状態からの復帰処理に必要なデータを格納する領域であって、省電力状態に移行時に解放されてしまうと、省電力状態からの復帰処理が実行されなくなってしまうからである。
This is because even an OS execution code or the like is stored in a copy in the external storage device 3 and can be restored by reading it from the external storage device 3 again. However, even if the data can be restored by reading it again from the external storage device 3, the task of turning on the power of the main storage device and the task of reading the data from the external storage device 3 when returning from the power saving state The area for storing the execution code is classified as a resident task area. For example, in the first embodiment, the area for storing the execution codes of the power saving state processing unit 222 and the external storage device driver 211 is not classified as a copy area but as a resident task area. This is an area for storing data necessary for the return processing from the power saving state, and if it is released at the time of shifting to the power saving state, the return processing from the power saving state is not executed. .

第1実施形態では、主記憶装置の電源制御を携帯端末が実行する例が説明された。第1実施形態で説明された主記憶装置の電源制御は、携帯端末の他にも、汎用のコンピュータや、特定の処理専用のコンピュータなど、省電力時に主記憶装置の一部の電源を切断する機能を備える装置に適用可能である。   In the first embodiment, an example in which the mobile terminal executes power control of the main storage device has been described. The power control of the main storage device described in the first embodiment cuts off the power of a part of the main storage device during power saving, such as a general-purpose computer or a computer dedicated to a specific process, in addition to the portable terminal. It can be applied to a device having a function.

<その他>
以上の実施形態に関し、更に以下の付記を開示する。
<Others>
Regarding the above embodiment, the following additional notes are disclosed.

(付記1)
部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、
起動されているタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置する再配置部と、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、該部分領域の電源を切断する処理部と、
を備える情報処理装置。
(Appendix 1)
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
A second storage unit for holding stored data even when the power is turned off;
A rearrangement unit that rearranges the fragmented usage data stored in the first storage unit, which is usage data related to the activated task;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. A processing unit for cutting off the power of the partial area,
An information processing apparatus comprising:

(付記2)
電源が切断された前記部分領域に電源が投入された場合には、電源の切断によって消失された前記部分領域の一部に記憶されていた使用データと同一のデータを、前記第2の記憶部から読み出して、前記第1の記憶部内の前記部分領域の一部に格納する読み出し部をさらに備える付記1に記載の情報処理装置。
(Appendix 2)
When power is turned on to the partial area that has been turned off, the second storage unit stores the same data as used data stored in a part of the partial area that has been lost due to the power being turned off. The information processing apparatus according to appendix 1, further comprising: a reading unit that reads the data from the first storage unit and stores it in a part of the partial area in the first storage unit.

(付記3)
使用データの前記第1の記憶部からの消失を許可するか否かを管理する管理部をさらに備え、
前記処理部は、前記部分領域の一部に記憶される使用データが、消失を許可されている場合に、前記部分領域の電源を切断する
付記1又は2に記載の情報処理装置。
(Appendix 3)
A management unit for managing whether or not to allow the loss of usage data from the first storage unit;
The information processing apparatus according to appendix 1 or 2, wherein the processing unit disconnects power of the partial area when use data stored in a part of the partial area is permitted to disappear.

(付記4)
前記管理部は、使用データが、前記第2の記憶部に同一のデータが記憶されるデータであって、かつ、前記読み出し部に関する使用データではない場合に、該使用データの前記第1の記憶部からの消失を許可する
付記3に記載の情報処理装置。
(Appendix 4)
The management unit is configured to store the usage data in the first storage when the usage data is data in which the same data is stored in the second storage unit and is not usage data related to the reading unit. The information processing apparatus according to appendix 3 that permits disappearance from the section.

(付記5)
前記処理部は、前記部分領域の電源を切断する場合に、前記部分領域の一部に含まれる使用データが記憶される前記第1の記憶部のアドレスと、該使用データと同一のデータが記憶される前記第2の記憶部のアドレスと、を保持し、
前記読み出し部は、前記部分領域の電源が投入された場合に、電源の切断によって消失された前記部分領域の一部に記憶されていた使用データと同一のデータを前記第2の記憶部のアドレスから読み出して、前記第1の記憶部のアドレスに格納する
付記1から4の何れか1項に記載の情報処理装置。
(Appendix 5)
When the power of the partial area is turned off, the processing unit stores the address of the first storage unit in which usage data included in a part of the partial area is stored and the same data as the usage data An address of the second storage unit to be
When the power of the partial area is turned on, the reading unit stores the same data as the use data stored in a part of the partial area that has been lost due to power-off, in the address of the second storage unit The information processing apparatus according to any one of appendices 1 to 4, wherein the information is read from the first storage unit and stored in the address of the first storage unit.

(付記6)
前記処理部は、該部分領域の一部に記憶されている使用データが、前記第2の記憶部に同一のデータが記憶されているデータであって、かつ、前記読み出し部に関する使用データではない場合に、該部分領域電源を切断する
付記2に記載の情報処理装置。
(Appendix 6)
In the processing unit, use data stored in a part of the partial area is data in which the same data is stored in the second storage unit, and is not use data related to the reading unit. The information processing apparatus according to appendix 2, wherein the partial area power supply is turned off.

(付記7)
前記再配置部は、使用データのうち、前記第2の記憶部に同一データが記憶されているデータであって、かつ、前記読み出し部に関する使用データではない使用データが優先的に解放されるように再配置する
付記2から6の何れか1項に記載の情報処理装置。
(Appendix 7)
The rearrangement unit preferentially releases usage data that is the same data stored in the second storage unit and is not used data related to the reading unit among the usage data. 7. The information processing device according to any one of appendices 2 to 6, wherein the information processing device is rearranged.

(付記8)
部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、を備えるコンピュータに、
起動されているタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置するステップと、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、該部分領域の電源を切断するステップと、
を実行させるためのプログラム。
(Appendix 8)
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
A computer having a second storage unit that retains stored data even when the power is turned off;
Relocating fragmented usage data stored in the first storage unit that is usage data relating to a task being activated;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. If so, the step of turning off the power of the partial area;
A program for running

(付記9)
部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、を備えるコンピュータが、
起動されているタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置するステップと、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、該部分領域の電源を切断するステップと、
を実行するメモリの電源制御方法。
(Appendix 9)
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
And a second storage unit that retains stored data even when the power is turned off.
Relocating fragmented usage data stored in the first storage unit that is usage data relating to a task being activated;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. If so, the step of turning off the power of the partial area;
Memory power control method to execute.

1 携帯端末
2 プロセッサ
3 外部記憶装置
4 主記憶装置
5 入力装置
6 出力装置
7 アンテナ
8 バス
21 オペレーティングシステム部
22 デバイスドライバ部
211 タスク制御部
212 デマンドページング制御部
213 メモリ管理部
213a 領域取得/解放部
213b デフラグ制御部
214 ファイルシステム部
215 省電力制御部
221 外部記憶装置用ドライバ
222 省電力状態処理部
DESCRIPTION OF SYMBOLS 1 Portable terminal 2 Processor 3 External storage device 4 Main storage device 5 Input device 6 Output device 7 Antenna 8 Bus 21 Operating system part 22 Device driver part 211 Task control part 212 Demand paging control part 213 Memory management part 213a Area acquisition / release part 213b Defragmentation control unit 214 File system unit 215 Power saving control unit 221 External storage device driver 222 Power saving state processing unit

Claims (7)

部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、
起動されているタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置する再配置部と、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、前記部分領域の該一部の該部分領域に占める割合に応じて、前記部分領域の該一部の解放及び前記部分領域の電源切断の実行を判定し、該判定にしたがって、前記部分領域の該一部の解放及び前記部分領域の電源の切断を行う処理部と、
を備える情報処理装置。
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
A second storage unit for holding stored data even when the power is turned off;
A rearrangement unit that rearranges the fragmented usage data stored in the first storage unit, which is usage data related to the activated task;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. If it is, depending on the percentage of the partial region of the portion of the partial region, to determine the execution of the cutting of the power of the part of the release and the partial region of the partial region, in the determination Therefore, a processing unit for releasing the part of the partial area and turning off the power of the partial area ;
An information processing apparatus comprising:
電源が切断された前記部分領域に電源が投入された場合には、電源の切断によって消失された前記部分領域の一部に記憶されていた使用データと同一のデータを、前記第2の記憶部から読み出して、前記第1の記憶部内の前記部分領域の一部に格納する読み出し部をさらに備える請求項1に記載の情報処理装置。   When power is turned on to the partial area that has been turned off, the second storage unit stores the same data as used data stored in a part of the partial area that has been lost due to the power being turned off. The information processing apparatus according to claim 1, further comprising: a reading unit that reads from the first storage unit and stores the data in a part of the partial area in the first storage unit. 前記処理部は、前記部分領域の電源を切断する場合に、前記部分領域の一部に含まれる使用データが記憶される前記第1の記憶部のアドレスと、該使用データと同一のデータが記憶される前記第2の記憶部のアドレスと、を保持し、
前記読み出し部は、前記部分領域の電源が投入された場合に、電源の切断によって消失された前記部分領域の一部に記憶されていた使用データと同一のデータを前記第2の記憶部のアドレスから読み出して、前記第1の記憶部のアドレスに格納する
請求項2に記載の情報処理装置。
When the power of the partial area is turned off, the processing unit stores the address of the first storage unit in which usage data included in a part of the partial area is stored and the same data as the usage data An address of the second storage unit to be
When the power of the partial area is turned on, the reading unit stores the same data as the use data stored in a part of the partial area that has been lost due to power-off, in the address of the second storage unit The information processing device according to claim 2 , wherein the information processing device is read from the first storage unit and stored in an address of the first storage unit.
前記処理部は、該部分領域の一部に記憶されている使用データが、前記第2の記憶部に同一のデータが記憶されているデータであって、かつ、前記読み出し部のタスクの実行コードではない場合に、該部分領域電源を切断する
請求項2に記載の情報処理装置。
In the processing unit, usage data stored in a part of the partial area is data in which the same data is stored in the second storage unit, and the execution code of the task of the reading unit If not, the information processing apparatus according to claim 2, wherein the partial area power supply is cut off.
前記再配置部は、使用データのうち、前記第2の記憶部に同一データが記憶されているデータであって、かつ、前記読み出し部のタスクの実行コードではない使用データが優先的に解放されるように再配置する
請求項2から4の何れか1項に記載の情報処理装置。
The relocation unit preferentially releases use data that is the same data stored in the second storage unit and is not an execution code of the task of the read unit among the use data. The information processing apparatus according to any one of claims 2 to 4, wherein the information processing apparatus is rearranged as described above.
部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、を備えるコンピュータに、
起動されているタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置するステップと、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、前記部分領域の該一部の該部分領域に占める割合に応じて、前記部分領域の該一部の解放及び前記部分領域の電源切断の実行を判定し、該判定にしたがって、前記部分領域の該一部の解放及び前記部分領域の電源の切断を行うステップと、
を実行させるためのプログラム。
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
A computer having a second storage unit that retains stored data even when the power is turned off;
Relocating fragmented usage data stored in the first storage unit that is usage data relating to a task being activated;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. If it is, depending on the percentage of the partial region of the portion of the partial region, to determine the execution of the cutting of the power of the part of the release and the partial region of the partial region, in the determination Therefore, releasing the part of the partial area and turning off the power of the partial area ;
A program for running
部分的に電源の投入及び切断が可能である部分領域に区分けされており、電源の切断によって記憶されたデータが消失する第1の記憶部と、
電源が切断されても記憶されたデータを保持する第2の記憶部と、を備えるコンピュータが、
起動されているタスクに関する使用データであって、前記第1の記憶部に記憶されている断片化された使用データを再配置するステップと、
前記再配置の結果、前記部分領域の一部に前記使用データが記憶されており、該部分領域の一部に記憶されている該使用データと同一のデータが前記第2の記憶部に記憶されている場合には、前記部分領域の該一部の該部分領域に占める割合に応じて、前記部分領域の該一部の解放及び前記部分領域の電源切断の実行を判定し、該判定にしたがって、前記部分領域の該一部の解放及び前記部分領域の電源の切断を行うステップと、
を実行するメモリの電源制御方法。
A first storage unit that is partially divided into partial areas that can be turned on and off, and in which data stored by turning off the power is lost;
And a second storage unit that retains stored data even when the power is turned off.
Relocating fragmented usage data stored in the first storage unit that is usage data relating to a task being activated;
As a result of the rearrangement, the use data is stored in a part of the partial area, and the same data as the use data stored in a part of the partial area is stored in the second storage unit. If it is, depending on the percentage of the partial region of the portion of the partial region, to determine the execution of the cutting of the power of the part of the release and the partial region of the partial region, in the determination Therefore, releasing the part of the partial area and turning off the power of the partial area ;
Memory power control method to execute.
JP2009202478A 2009-09-02 2009-09-02 Information processing apparatus, program, and memory power control method Expired - Fee Related JP5458749B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009202478A JP5458749B2 (en) 2009-09-02 2009-09-02 Information processing apparatus, program, and memory power control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009202478A JP5458749B2 (en) 2009-09-02 2009-09-02 Information processing apparatus, program, and memory power control method

Publications (2)

Publication Number Publication Date
JP2011053930A JP2011053930A (en) 2011-03-17
JP5458749B2 true JP5458749B2 (en) 2014-04-02

Family

ID=43942860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009202478A Expired - Fee Related JP5458749B2 (en) 2009-09-02 2009-09-02 Information processing apparatus, program, and memory power control method

Country Status (1)

Country Link
JP (1) JP5458749B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5811611B2 (en) * 2011-06-14 2015-11-11 株式会社リコー Information processing apparatus, information processing method, and program
JP5744682B2 (en) * 2011-08-31 2015-07-08 京セラドキュメントソリューションズ株式会社 Image forming apparatus
JP5539947B2 (en) * 2011-11-07 2014-07-02 株式会社ソニー・コンピュータエンタテインメント Electronics
JP2013187587A (en) * 2012-03-06 2013-09-19 Kyocera Corp Information device
JP6008545B2 (en) * 2012-04-09 2016-10-19 キヤノン株式会社 Image forming apparatus, image forming apparatus control method, and program
US11146087B2 (en) * 2019-05-28 2021-10-12 Makita Corporation Electric working machine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000222285A (en) * 1999-01-29 2000-08-11 Matsushita Electric Ind Co Ltd Memory power management device
JP2007128126A (en) * 2005-11-01 2007-05-24 Matsushita Electric Ind Co Ltd Information processing device

Also Published As

Publication number Publication date
JP2011053930A (en) 2011-03-17

Similar Documents

Publication Publication Date Title
JP5420814B2 (en) Storage system having scheme for invalidating data stored in buffer memory and computing system including the same
JP5458749B2 (en) Information processing apparatus, program, and memory power control method
JP5555224B2 (en) Mobile phone with low power media rendering subsystem
JP3830886B2 (en) Method for storing data in nonvolatile memory
US20110113075A1 (en) Garbage collection program, garbage collection method, and garbage collection system
JP2009543217A (en) System and method for power management for wireless storage devices
US8250245B2 (en) Information processing system, with information processing terminal capable of operating in multiple operation modes when connected to a host device
JPH04362717A (en) System restarting device
KR101392062B1 (en) Fast speed computer system power-on & power-off method
CN116225334A (en) A cold and hot data storage method, device and medium
JP2006172206A5 (en)
JP5499807B2 (en) Information processing program, information processing method, and information processing apparatus
CN108334383B (en) Information processing method and electronic equipment
JP4053067B2 (en) Hybrid storage and information processing apparatus using the same
US12093225B2 (en) Information processing device
JP2006252754A (en) Portable digital audio / video playback device
JP2008077519A (en) Virtual tape device, virtual tape device data management method, virtual tape device data management program
CN111090396A (en) File processing method and device and electronic equipment
CN102063273B (en) Hard disk management method and device
JP2011081641A (en) Memory controller
JP4334312B2 (en) Start-up time reduction computing device and data loading method
JP2008158773A (en) Information processing apparatus and memory management method
JP2003122647A (en) Information processing equipment
CN118295602B (en) A storage management method and system based on NOR Flash
JP2007128448A (en) File system and file information processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120510

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130807

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130813

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131015

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131230

R150 Certificate of patent or registration of utility model

Ref document number: 5458749

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees