JP2009104247A - Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium - Google Patents

Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium Download PDF

Info

Publication number
JP2009104247A
JP2009104247A JP2007273073A JP2007273073A JP2009104247A JP 2009104247 A JP2009104247 A JP 2009104247A JP 2007273073 A JP2007273073 A JP 2007273073A JP 2007273073 A JP2007273073 A JP 2007273073A JP 2009104247 A JP2009104247 A JP 2009104247A
Authority
JP
Japan
Prior art keywords
storage device
information
secondary storage
storage area
virtual
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.)
Granted
Application number
JP2007273073A
Other languages
Japanese (ja)
Other versions
JP4958723B2 (en
Inventor
Toru Harada
亨 原田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007273073A priority Critical patent/JP4958723B2/en
Publication of JP2009104247A publication Critical patent/JP2009104247A/en
Application granted granted Critical
Publication of JP4958723B2 publication Critical patent/JP4958723B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To properly complete the saving of information from a main storage device to a secondary storage device even in the power saving control period of a secondary storage device. <P>SOLUTION: A virtual storage control device for achieving a virtual storage area wider than a real storage area is provided with memory management software 331 for, when a virtual storage area which does not correspond to an real storage area is requested, saving information stored in the real storage area to an HDD 104, and for associating the requested non-corresponding virtual storage area with the real storage area in which the saved information is stored. When the non-corresponding virtual storage area is requested in the non-operating state of the HDD 104 is requested, the memory management software 331 transmits a signal to instruct the start of the HDD 104, and after the HDD 104 starts, the memory management software 331 saves the information stored in the real storage area to the HDD 104. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、仮想記憶制御装置、仮想記憶制御方法、仮想記憶制御プログラム及び記録媒体に関し、特に主記憶装置から二次記憶装置への情報の退避に関する。   The present invention relates to a virtual storage control device, a virtual storage control method, a virtual storage control program, and a recording medium, and more particularly to saving information from a main storage device to a secondary storage device.

近年、情報の電子化が推進される傾向にあり、電子化された情報の出力に用いられるプリンタやファクシミリ、書類の電子化に用いるスキャナ等の画像処理装置は欠かせない機器となっている。このような画像処理装置は、撮像機能、画像形成機能及び通信機能等を備えることにより、プリンタ、ファクシミリ、スキャナ、複写機として利用可能な複合機として構成されることが多い。このような画像処理装置においては、上記のプリンタ、ファクシミリ、スキャナ、複写機等の夫々の機能に対応したソフトウェアが、対応するハードウェアを制御することによって夫々の機能が実行される。   In recent years, there has been a tendency to digitize information, and image processing apparatuses such as printers and facsimiles used for outputting digitized information and scanners used for digitizing documents have become indispensable devices. Such an image processing apparatus is often configured as a multifunction machine that can be used as a printer, a facsimile, a scanner, or a copier by providing an imaging function, an image forming function, a communication function, and the like. In such an image processing apparatus, each function is executed by software corresponding to each function of the printer, facsimile, scanner, copying machine, etc. controlling the corresponding hardware.

このような画像処理装置においては、装置が所定時間使用されなかった場合等に装置の特定部位への電源供給を停止し、省電力化を図ることが行われている。電源供給が停止される部分の例としては、定着ヒータや装置全体のコントローラ等が挙げられる。このような装置の省電力化においては、電源供給を再開するタイミングの判断が重要な技術の1つとなる。電源供給再開の技術として、データの送信又は受信の開始に関する信号に基づいて電源供給を再開する方法が提案されている(例えば特許文献1参照)。特許文献1に開示された技術においては、データの送受信開始に応じて装置の一部への電源供給を再開することにより、余分な回路への電源供給再開を省き、更なる省電力化を実現する。   In such an image processing apparatus, when the apparatus is not used for a predetermined time, power supply to a specific part of the apparatus is stopped to save power. Examples of the portion where the power supply is stopped include a fixing heater and a controller for the entire apparatus. In the power saving of such an apparatus, the determination of the timing for restarting the power supply is one of important techniques. As a technique for restarting power supply, a method of restarting power supply based on a signal related to the start of data transmission or reception has been proposed (see, for example, Patent Document 1). In the technique disclosed in Patent Document 1, by restarting the power supply to a part of the device in response to the start of data transmission / reception, it is possible to omit the restart of the power supply to an extra circuit and realize further power saving. To do.

この他、従来技術に係る電源供給再開の判断要因としては、ADF(Auto Document Feeder)への原稿セット、操作部の操作、電源キーの操作、USBポート若しくはSDポートへの挿抜、各種I/Fの通信及び装置各部のカバーの開閉が挙げられる。
特開平7−226815号公報
In addition, the determination factors for restarting the power supply according to the prior art include document setting on ADF (Auto Document Feeder), operation of the operation unit, operation of the power key, insertion into and removal from the USB port or SD port, various I / Fs Communication and the opening and closing of the cover of each part of the apparatus.
JP-A-7-226815

近年、上記のような画像処理装置はCPU(Central Processing Unit)やRAM(Random Access Memory)等の主記憶装置となるメモリを備え、OS(Operating System)等の制御プログラム及び各種のアプリケーションプログラムにより制御されることが一般的である。このようなシステムにおいては、各種プログラムの作業領域であるメモリの制御技術として、仮想記憶技術が用いられることが多い。仮想記憶技術について、図16を参照して説明する。図16においては、上段に仮想記憶領域102vを示し、下段に物理記憶領域102p、即ち実装されているメモリ等の主記憶装置の物理記憶領域を示す。図16に示すように、仮想記憶方式においては、メモリが有する実際の物理記憶領域102pよりも大きい仮想記憶領域102vを定義する。仮想記憶領域102vと物理記憶領域102pとの対応付けは仮想記憶方式をコントロールするメモリコントローラが管理する。   In recent years, the image processing apparatus as described above includes a memory serving as a main storage device such as a CPU (Central Processing Unit) and a RAM (Random Access Memory), and is controlled by a control program such as an OS (Operating System) and various application programs. It is common to be done. In such a system, a virtual storage technique is often used as a control technique for a memory that is a work area of various programs. The virtual storage technology will be described with reference to FIG. In FIG. 16, the virtual storage area 102v is shown in the upper stage, and the physical storage area 102p, that is, the physical storage area of the main storage device such as a mounted memory is shown in the lower stage. As shown in FIG. 16, in the virtual storage system, a virtual storage area 102v larger than the actual physical storage area 102p that the memory has is defined. The association between the virtual storage area 102v and the physical storage area 102p is managed by a memory controller that controls the virtual storage system.

CPUの制御により動作するプログラム325〜328は、メモリコントローラを介して仮想記憶領域102vにメモリを要求する。図16の例においては、仮想記憶領域102vのうち実斜線で示す部分が、既にいずれかのプログラム325〜328に割り当てられた使用領域である。また、仮想記憶領域102vにおいて既に割り当てられている斜線部の記憶領域は、メモリコントローラによって物理記憶領域102pに斜線で示すようにマッピングされる。ここで、いずれかのプログラム325〜328が更に破斜線で示す領域を要求した場合を考える。   Programs 325 to 328 operating under the control of the CPU request memory from the virtual storage area 102v via the memory controller. In the example of FIG. 16, a portion indicated by a solid diagonal line in the virtual storage area 102 v is a use area that has already been assigned to any of the programs 325 to 328. Also, the hatched storage area already allocated in the virtual storage area 102v is mapped by the memory controller to the physical storage area 102p as shown by the hatched lines. Here, consider a case where any of the programs 325 to 328 requests an area indicated by a diagonal line.

図に示すように、仮想記憶領域102vの破斜線で示す記憶領域の要求に対して、残りの実記憶領域102pでは記憶領域が不足する。即ち、要求された仮想記憶領域102vの一部は、実記憶領域に対応付けられていない領域であり、実際には使用不可能な領域である。この場合、メモリコントローラは、実記憶領域102pに保持されている情報をHDD104等の二次記憶装置に退避することにより、実記憶領域に空き領域を作る。この結果空き領域となった実記憶領域、即ち、二次記憶装置に退避された情報が保持されていた実記憶領域が、図16に示す不足分の仮想記憶領域に新たに対応付けられる。これにより、要求された容量の記憶領域を、要求元のプログラムに割り当てることが可能となる。この動作はスワップアウト処理(スワッピング)と呼ばれる。これにより、メモリコントローラは、物理記憶領域102pよりも大きい仮想記憶領域102vを実現する。尚、メモリコントローラが物理記憶領域102pを管理する方式としては、一般的に記憶領域をページと呼ばれる単位毎の記憶領域に分けて管理するページング方式が用いられる。   As shown in the figure, in response to the request for the storage area indicated by the oblique line of the virtual storage area 102v, the remaining real storage area 102p runs out of storage area. That is, a part of the requested virtual storage area 102v is an area that is not associated with the real storage area, and is an area that is not actually usable. In this case, the memory controller creates an empty area in the real storage area by saving the information held in the real storage area 102p to a secondary storage device such as the HDD 104. As a result, the real storage area that has become an empty area, that is, the real storage area in which the information saved in the secondary storage device is held is newly associated with the insufficient virtual storage area shown in FIG. As a result, a storage area having the requested capacity can be allocated to the request source program. This operation is called swap-out processing (swapping). As a result, the memory controller implements a virtual storage area 102v that is larger than the physical storage area 102p. As a method for managing the physical storage area 102p by the memory controller, a paging method is generally used in which the storage area is divided into storage areas for each unit called pages.

ここで、上述した省電力技術により、HDD104への電源供給が停止している場合にスワッピングが発生すると、スワッピングが完了できず情報が失われるという問題が生じる。例えば、省電力制御によりHDD104への電源供給が停止している間に、外部からデータを受信してスワッピングが発生すると、メモリコントローラは物理記憶領域102pの一部に格納された情報をHDD104へ退避し、当該記憶領域を空き領域として使用する。しかしながら、HDD104への電源供給が停止しているため、HDD104への退避が指示された情報は実際にはHDD104には格納されない。他方、物理記憶領域102pにおいて退避が指示された情報が格納されていた記憶領域は、データ受信により要求された領域として使用されるため、元の情報は失われてしまうこととなる。   Here, due to the above-described power saving technology, when the power supply to the HDD 104 is stopped, if swapping occurs, there is a problem that the swapping cannot be completed and information is lost. For example, when swapping occurs when data is received from the outside while power supply to the HDD 104 is stopped by power saving control, the memory controller saves information stored in a part of the physical storage area 102p to the HDD 104. The storage area is used as a free area. However, since the power supply to the HDD 104 is stopped, the information instructed to save to the HDD 104 is not actually stored in the HDD 104. On the other hand, since the storage area in which the information instructed to save is stored in the physical storage area 102p is used as an area requested by data reception, the original information is lost.

尚、このような課題は、上述した画像処理装置に限らず、仮想記憶技術及び省電力技術を採用する情報処理装置であれば、同様に発生し得る。本発明は、上述した実情を考慮してなされたもので、二次記憶装置の省電力制御期間においても、主記憶装置から二次記憶装置への情報の退避を適正に完了可能とすることを目的とする。   Such a problem is not limited to the above-described image processing apparatus, and can occur in the same manner as long as the information processing apparatus adopts a virtual storage technology and a power saving technology. The present invention has been made in consideration of the above-described circumstances, and makes it possible to properly complete the saving of information from the main storage device to the secondary storage device even during the power saving control period of the secondary storage device. Objective.

上記の課題を解決するために、請求項1に記載の発明は、仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御装置であって、前記仮想記憶領域のうち前記実記憶領域に非対応の領域が要求された場合に、前記実記憶領域に保持された情報を前記主記憶装置とは異なる二次記憶装置に退避する情報退避部と、前記要求された非対応の領域と前記退避された情報が保持されていた実記憶領域とを対応付ける記憶領域対応付け部とを有し、前記情報退避部は、前記二次記憶装置の非稼動状態において前記非対応の領域が要求された場合に、前記二次記憶装置を稼動状態へと遷移させる処理に関する信号を発信し、前記二次記憶装置が稼働状態となった後に前記実記憶領域に保持された情報を前記二次記憶装置に退避することを特徴とする。   In order to solve the above problem, the invention according to claim 1 is wider than the real storage area by associating a part of the virtual storage area defined virtually with the real storage area of the main storage device. A virtual storage control device that realizes a virtual storage area, and when a non-corresponding area is requested in the virtual storage area, information stored in the real storage area is stored in the main storage apparatus. An information saving unit for saving to a different secondary storage device, and a storage area association unit for associating the requested non-corresponding area and the real storage area in which the saved information is held, The information saving unit, when the non-corresponding area is requested in the non-operating state of the secondary storage device, transmits a signal related to the process of transitioning the secondary storage device to the operating state, and the secondary storage device When the storage device is operating The information stored in the real storage area after Tsu, characterized in that retracted to the secondary storage device.

また、請求項2に記載の発明は、請求項1に記載の仮想記憶制御装置において、前記二次記憶装置を稼動状態へと遷移させる処理に関する信号に応じて、前記二次記憶装置を稼動状態へと遷移させる二次記憶装置状態遷移部を更に有することを特徴とする。   According to a second aspect of the present invention, in the virtual storage control device according to the first aspect, the secondary storage device is set in an operating state in response to a signal relating to a process for transitioning the secondary storage device to an operating state. It further has a secondary storage device state transition unit for transitioning to.

また、請求項3に記載の発明は、請求項2に記載の仮想記憶制御装置において、前記二次記憶装置状態遷移部は、装置の動作態様に応じて前記二次記憶装置への電源供給を制限する省電力制御部を有し、前記二次記憶装置の非稼動状態は、前記省電力制御部によって電源供給が制限された状態であることを特徴とする。   According to a third aspect of the present invention, in the virtual storage control device according to the second aspect, the secondary storage device state transition unit supplies power to the secondary storage device according to the operation mode of the device. A power saving control unit is provided, and the non-operating state of the secondary storage device is a state where power supply is restricted by the power saving control unit.

また、請求項4に記載の発明は、請求項2または3に記載の仮想記憶制御装置において、前記二次記憶装置状態遷移部は、オペレーティング・システムの機能によって実現されることを特徴とする。   According to a fourth aspect of the present invention, in the virtual storage control device according to the second or third aspect, the secondary storage device state transition unit is realized by a function of an operating system.

また、請求項5に記載の発明は、請求項2または3に記載の仮想記憶制御装置において、前記二次記憶装置状態遷移部は、アプリケーション・プログラムの機能によって実現されることを特徴とする。   According to a fifth aspect of the present invention, in the virtual storage control device according to the second or third aspect, the secondary storage device state transition unit is realized by a function of an application program.

また、請求項6に記載の発明は、請求項2乃至5いずれか1項に記載の仮想記憶制御装置において、前記二次記憶装置を制御する二次記憶装置制御部と、前記二次記憶装置状態遷移部の命令に応じて前記二次記憶装置制御部を動作させる二次記憶装置駆動部とを更に有することを特徴とする。   According to a sixth aspect of the present invention, in the virtual storage control device according to any one of the second to fifth aspects, a secondary storage device control unit that controls the secondary storage device, and the secondary storage device And a secondary storage device driving unit that operates the secondary storage device control unit in response to a command from the state transition unit.

また、請求項7に記載の発明は、請求項6に記載の仮想記憶制御装置において、前記二次記憶装置制御部は、前記制御手段前記二次記憶装置状態遷移部の命令に応じて前記二次記憶装置への電源供給を制御する電源供給制御部を有することを特徴とする。   Further, the invention according to claim 7 is the virtual storage control device according to claim 6, wherein the secondary storage device control unit is configured to execute the second storage device according to an instruction from the control unit secondary storage device state transition unit. A power supply control unit that controls power supply to the next storage device is provided.

また、請求項8に記載の発明は、請求項6に記載の仮想記憶制御装置において、前記二次記憶装置制御部は、前記二次記憶装置状態遷移部の命令に応じて前記二次記憶装置を初期化する二次記憶装置初期化部を有することを特徴とする。   The invention according to claim 8 is the virtual storage control device according to claim 6, wherein the secondary storage device controller is configured to respond to an instruction from the secondary storage device state transition unit. And a secondary storage device initialization unit for initializing the storage device.

また、請求項9に記載の発明は、請求項1乃至8いずれか1項に記載の仮想記憶制御装置において、前記実記憶領域に保持された複数の情報のうち前記二次記憶装置に退避する情報を選択する際の優先度に関する情報を取得する退避優先度情報取得部と、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択する退避情報選択部とを更に有し、前記実記憶領域に保持された情報は、当該実記憶領域において動作する複数のプログラムであり、前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用態様に関する情報であることを特徴とする。   The invention according to claim 9 is the virtual storage control device according to any one of claims 1 to 8, wherein the information is saved in the secondary storage device among a plurality of pieces of information held in the real storage area. A save priority information acquisition unit that acquires information about priority when selecting information, and a save information selection unit that selects information to be saved in the secondary storage device based on the acquired information about priority The information stored in the real storage area is a plurality of programs operating in the real storage area, and the information on the priority is information on a usage mode of the secondary storage device of the program It is characterized by.

また、請求項10に記載の発明は、請求項9に記載の仮想記憶制御装置において、前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用履歴に関する情報であり、前記退避情報選択部は、前記二次記憶装置の使用履歴の多いプログラムを優先して前記二次記憶装置に退避することを特徴とする。   Further, in the virtual storage control device according to claim 9, the information on the priority is information on a usage history of the secondary storage device of the program, and the save information selection The unit is configured to preferentially save a program having a large usage history of the secondary storage device to the secondary storage device.

また、請求項11に記載の発明は、請求項9に記載の仮想記憶制御装置において、前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用頻度に関する情報であり、前記退避情報選択部は、前記二次記憶装置の使用頻度の高いプログラムを優先して前記二次記憶装置に退避することを特徴とする。   The invention according to claim 11 is the virtual storage control device according to claim 9, wherein the information on the priority is information on a use frequency of the secondary storage device of the program, and the save information selection The unit preferentially saves the frequently used program of the secondary storage device to the secondary storage device.

また、請求項12に記載の発明は、請求項9に記載の仮想記憶制御装置において、前記優先度に関する情報は、予め定められた前記プログラムの前記二次記憶装置の使用有無に関する情報であり、前記退避情報選択部は、前記二次記憶装置を使用するプログラムを優先して前記二次記憶装置に退避することを特徴とする。   The invention according to claim 12 is the virtual storage control device according to claim 9, wherein the information on the priority is information on whether or not the secondary storage device of the predetermined program is used, The save information selection unit saves the program that uses the secondary storage device preferentially to the secondary storage device.

また、請求項13に記載の発明は、請求項9乃至12いずれか1項に記載の仮想記憶制御装置において、前記退避情報選択部は、前記二次記憶装置の非稼動状態において前記非対応の領域が要求された場合に、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択することを特徴とする。   The invention according to claim 13 is the virtual storage control device according to any one of claims 9 to 12, wherein the save information selection unit is not compatible with the non-operating state of the secondary storage device. When an area is requested, information to be saved in the secondary storage device is selected based on the acquired information on the priority.

また、請求項14に記載の発明は、請求項9乃至12いずれか1項に記載の仮想記憶制御装置において、前記二次記憶装置を稼動状態から非稼動状態に遷移させる二次記憶装置稼動状態制御部を更に有し、前記二次記憶装置稼動状態制御部は、前記二次記憶装置を稼動状態から非稼動状態に遷移させるタイミングに関する情報を有し、前記退避情報選択部は、前記タイミングが所定の期間以内である場合に、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択することを特徴とする。   The invention according to claim 14 is the virtual storage control device according to any one of claims 9 to 12, wherein the secondary storage device operating state is a state in which the secondary storage device is shifted from the operating state to the non-operating state. The secondary storage device operating state control unit has information related to a timing at which the secondary storage device is transitioned from the operating state to the non-operating state, and the save information selecting unit has the timing If it is within a predetermined period, the information to be saved in the secondary storage device is selected based on the acquired information on the priority.

また、請求項15に記載の発明は、仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御方法であって、前記二次記憶装置の非稼動状態において前記実記憶領域に非対応の領域が要求された場合に、前記二次記憶装置を稼動状態へと遷移させる処理に関する信号を発信し、前記二次記憶装置が稼働状態となった後に前記実記憶領域に保持された情報を前記二次記憶装置に退避し、前記要求された非対応の領域と前記退避された情報が保持されていた実記憶領域とを対応付けることを特徴とする。   Further, the invention described in claim 15 is a virtual that realizes a virtual storage area wider than the real storage area by associating a part of the virtually defined virtual storage area with the real storage area of the main storage device. A storage control method for transmitting a signal relating to a process of transitioning the secondary storage device to an operating state when a non-corresponding area is requested in the real storage area in the non-operating state of the secondary storage device The information held in the real storage area after the secondary storage device is in an operating state is saved in the secondary storage device, and the requested non-corresponding area and the saved information are held. It is characterized by associating with the actual storage area.

また、請求項16に記載の発明は、仮想記憶制御プログラムであって、請求項15に記載の仮想記憶制御方法を仮想記憶制御装置に実行させることを特徴とする。   The invention described in claim 16 is a virtual storage control program, characterized by causing a virtual storage control device to execute the virtual storage control method described in claim 15.

また、請求項17に記載の発明は、記録媒体であって、請求項16に記載の仮想記憶制御プログラムを仮想記憶制御装置が読み取り可能な形式で記録したことを特徴とする。   The invention described in claim 17 is a recording medium, wherein the virtual storage control program according to claim 16 is recorded in a format readable by the virtual storage control device.

また、請求項18に記載の発明は、仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御装置であって、前記仮想記憶領域のうち前記実記憶領域に非対応の領域が要求された場合に、前記実記憶領域に保持された情報を前記主記憶装置とは異なる二次記憶装置に退避する情報退避部と、前記実記憶領域に保持された複数の情報のうち前記二次記憶装置に退避する情報を選択する際の優先度に関する情報を取得する退避優先度情報取得部と、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択する退避情報選択部とを更に有し、前記実記憶領域に保持された情報は、当該実記憶領域において動作する複数のプログラムであり、前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用態様に関する情報であることを特徴とする。   Further, the invention described in claim 18 is a virtual that realizes a virtual storage area wider than the real storage area by associating a part of the virtually defined virtual storage area with the real storage area of the main storage device. A secondary storage device that is a storage control device and that stores information held in the real storage area different from the main storage device when a non-corresponding area is requested in the virtual storage area of the virtual storage area An information saving unit that saves information, a save priority information obtaining unit that obtains information about priority when selecting information to be saved to the secondary storage device among a plurality of pieces of information held in the real storage area, A save information selection unit that selects information to be saved in the secondary storage device based on the acquired priority information, and the information held in the real storage area operates in the real storage area Multiple processes Gram, information relating to the priority, be information about the mode of use of the secondary storage device of said program.

また、請求項19に記載の発明は、仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御方法であって、前記仮想記憶領域のうち前記実記憶領域に非対応の領域が要求された場合に、前記実記憶領域に保持された情報を前記主記憶装置とは異なる二次記憶装置に退避することを決定し、前記実記憶領域に保持された複数の情報のうち前記二次記憶装置に退避する情報を選択する際の優先度に関する情報を取得し、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択するステップを有し、前記実記憶領域に保持された情報は、当該実記憶領域において動作する複数のプログラムであり、前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用態様に関する情報であることを特徴とする。   According to a nineteenth aspect of the present invention, a virtual storage area wider than the real storage area can be realized by associating a part of the virtually defined virtual storage area with the real storage area of the main storage device. A storage control method, wherein when a non-corresponding area is requested in the virtual storage area, information stored in the real storage area is different from the main storage apparatus. Information relating to priority when selecting information to be saved in the secondary storage device from among a plurality of pieces of information held in the real storage area, and obtaining information relating to the obtained priority The information stored in the real storage area is a plurality of programs that operate in the real storage area, and the information about the priority is selected. It is characterized in that information related aspect the use of the secondary storage device of said program.

本発明によれば、仮想記憶制御装置において、二次記憶装置の省電力制御期間であっても、主記憶装置から二次記憶装置への情報の退避を適正に完了することが可能となる。   According to the present invention, the virtual storage control device can properly complete the saving of information from the main storage device to the secondary storage device even during the power saving control period of the secondary storage device.

以下、図面を参照して、本発明の実施形態を詳細に説明する。
以下の説明においては、本発明に係る仮想記憶制御装置の例として、当該仮想記憶制御機能を有する画像処理装置を例として説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
In the following description, an image processing apparatus having the virtual storage control function will be described as an example of the virtual storage control apparatus according to the present invention.

実施の形態1.
図1は、本実施例に係る画像処理装置1のハードウェア構成を示すブロック図である。図1に示すように、本実施例に係る画像処理装置1は、コントローラ100及びエンジン200を有する。コントローラ100は、ソフト制御部100aとメカ制御部100bとを有する。ソフト制御部100aは、主として信号の入出力等のソフトウェア制御を実行する。また、メカ制御部100bは、エンジン200等の機械的な駆動を制御する。
Embodiment 1 FIG.
FIG. 1 is a block diagram illustrating a hardware configuration of the image processing apparatus 1 according to the present embodiment. As shown in FIG. 1, the image processing apparatus 1 according to the present embodiment includes a controller 100 and an engine 200. The controller 100 includes a software control unit 100a and a mechanical control unit 100b. The software control unit 100a mainly performs software control such as signal input / output. The mechanical control unit 100b controls mechanical driving of the engine 200 and the like.

ソフト制御部100aは、CPU(Central Processing Unit)101、RAM(Random Access Memory)102、システムコントロールASIC(Application Specific Integrated Circuit)103、ROM(Read Only Memory)105、可搬型記録媒体I/F(Interface)107、入出力・省電力制御ASIC108、オペレーションパネルI/F109、HOST I/F110、NVRAM(Non Volatile RAM)111、オプションI/F112及び電源制御部113を有する。メカ制御部100bは、HDD(Hard Disk Drive)104及び画像処理部106を有する。また、エンジン200は、エンジンコントローラ201、スキャンエンジン202及プリントエンジン203を有する。   The software control unit 100a includes a CPU (Central Processing Unit) 101, a RAM (Random Access Memory) 102, a system control ASIC (Application Specific Integrated Circuit) 103, and a ROM (Read Only Memory In memory type 105 recording medium). ) 107, input / output / power saving control ASIC 108, operation panel I / F 109, HOST I / F 110, NVRAM (Non Volatile RAM) 111, option I / F 112, and power supply control unit 113. The mechanical control unit 100 b includes an HDD (Hard Disk Drive) 104 and an image processing unit 106. The engine 200 includes an engine controller 201, a scan engine 202, and a print engine 203.

RAM102は一般的にDRAM等の揮発性メモリによって構成されるメインメモリであり、主記憶装置として機能する。ROM105に格納されたファームウェア等の制御プログラムや、NVRAM111、HDD104に格納された情報がシステムコントロールASIC103を介してRAM102にロードされ、CPU101の制御に従って動作することにより画像処理装置1の制御部が構成される。即ち、CPU101は演算部として動作し、システムコントロールASIC103は、主にCPU101とRAM102との間の信号伝達を行う。また、システムコントロールASIC103は、RAM102のアドレス管理等を行うMMU(Memory Management Unit)103aを有する。従来技術の図16において説明した、仮想記憶領域と実記憶領域とのマッピング(対応関係)情報は、MMU103aが保持している。RAM102にロードされて動作するプログラムは、上述したファームウェア等の制御プログラムの他、画像処理プログラムやエンジン200を制御するアプリケーション等である。   The RAM 102 is a main memory generally constituted by a volatile memory such as a DRAM and functions as a main storage device. A control program such as firmware stored in the ROM 105 and information stored in the NVRAM 111 and the HDD 104 are loaded into the RAM 102 via the system control ASIC 103, and operate according to the control of the CPU 101, thereby configuring the control unit of the image processing apparatus 1. The That is, the CPU 101 operates as a calculation unit, and the system control ASIC 103 mainly performs signal transmission between the CPU 101 and the RAM 102. Further, the system control ASIC 103 includes an MMU (Memory Management Unit) 103 a that performs address management of the RAM 102 and the like. The mapping (correspondence relationship) information between the virtual storage area and the real storage area described in FIG. 16 of the prior art is held by the MMU 103a. The program loaded and operated in the RAM 102 is an image processing program, an application for controlling the engine 200, and the like in addition to the control program such as the firmware described above.

HDD104は、磁気ディスク記録装置であり、画像処理装置1が画像情報を処理する際の情報スプール先として用いられる。また、HDD104は、蓄積文書、追加のフォント及び情報送信先の宛先情報等が格納されている。ROM105は、読み出し専用の記録媒体であり、上述したように、ファームウェア等の制御プログラムが格納される。画像処理ASIC106は、RAM102において動作する画像処理プログラムによって処理された後の画像に更に処理を加えるハードウェアである。また、画像処理ASIC106は、HDD104を制御するHDDコントローラも含む。画像処理ASIC106が実行する処理としては、画像の回転処理や割り付け処理等である。画像処理ASIC106によって処理された画像データがエンジン200に入力される。   The HDD 104 is a magnetic disk recording device, and is used as an information spool destination when the image processing apparatus 1 processes image information. The HDD 104 stores stored documents, additional fonts, destination information of information transmission destinations, and the like. The ROM 105 is a read-only recording medium and stores a control program such as firmware as described above. The image processing ASIC 106 is hardware for further processing the image after being processed by the image processing program operating in the RAM 102. The image processing ASIC 106 also includes an HDD controller that controls the HDD 104. The processing executed by the image processing ASIC 106 includes image rotation processing, layout processing, and the like. Image data processed by the image processing ASIC 106 is input to the engine 200.

可搬型記録媒体I/F107は、可搬型記録媒体をコントローラ100に接続するインタフェースである。ここで用いられる可搬型記録媒体は、例えば、磁気テープやカセットテープ及びフロッピー(登録商標)ディスク等の磁気記録媒体やCD、MO、MD、DVD等の光ディスク、PCカード、コンパクトフラッシュ(登録商標)カード、スマートメディア(登録商標)、ICカード、SDカード(登録商標)、メモリースティック(登録商標)、USBメモリ等、着脱可能な記録媒体である。   The portable recording medium I / F 107 is an interface that connects the portable recording medium to the controller 100. Examples of portable recording media used here include magnetic recording media such as magnetic tape, cassette tape, and floppy (registered trademark) disks, optical disks such as CD, MO, MD, and DVD, PC cards, and compact flash (registered trademark). A detachable recording medium such as a card, smart media (registered trademark), IC card, SD card (registered trademark), Memory Stick (registered trademark), or USB memory.

入出力・省電力制御ASIC108は、その内部にCPU101とは異なるサブCPU、RAM等のメモリを有し、ROMや不揮発性メモリ並びにHDDや光学ディスク等の不揮発性記録媒体に格納されたファームウェア等の制御プログラムが、RAMにロードされ、サブCPUの制御に従って構成されるソフトウェア制御部とASIC108内部に含まれる他のハードウェアとが連動することによって機能する。入出力・省電力制御ASIC108は、可搬型記録媒体107、可搬型記録媒体I/F107、オペレーションパネルI/F109、HOST I/F110、NVRAM111、オプションI/F112及び電源制御部113とシステムコントロールASIC103との間で情報を伝達すると共に、それらの情報伝達状態に基づいて電源制御部113を制御して省電力状態を制御する。入出力・省電力制御ASICの機能については後に詳述する。   The input / output / power saving control ASIC 108 has a sub CPU, a memory such as a RAM different from the CPU 101, and a ROM, a nonvolatile memory, a firmware stored in a nonvolatile recording medium such as an HDD, an optical disk, and the like. A control program is loaded into the RAM, and functions when the software control unit configured under the control of the sub CPU and other hardware included in the ASIC 108 work together. The input / output / power saving control ASIC 108 includes a portable recording medium 107, a portable recording medium I / F 107, an operation panel I / F 109, a HOST I / F 110, an NVRAM 111, an option I / F 112, a power supply control unit 113, and a system control ASIC 103. Information is transmitted between the two, and the power control unit 113 is controlled based on the information transmission state to control the power saving state. The functions of the input / output / power-saving control ASIC will be described in detail later.

オペレーションパネルI/F109は、ユーザが画像処理装置1を直接操作すると共に画像処理装置1の状態を視覚的に確認する表示部となる操作パネルを接続するインタフェースである。HOST I/F110は、画像処理装置1がPC等のホスト装置と接続するためのインタフェースである。HOST I/F110としては、例えばUSB(Universal Serial Bus)インタフェースや、イーサネット(登録商標)インタフェース等が用いられる。NVRAM111は、不揮発性のメモリであり、主に画像形成装置1の動作環境や動作履歴に関する情報が格納される。   The operation panel I / F 109 is an interface for connecting an operation panel serving as a display unit that allows the user to directly operate the image processing apparatus 1 and visually check the state of the image processing apparatus 1. The HOST I / F 110 is an interface for connecting the image processing apparatus 1 to a host device such as a PC. As the HOST I / F 110, for example, a USB (Universal Serial Bus) interface, an Ethernet (registered trademark) interface, or the like is used. The NVRAM 111 is a non-volatile memory, and mainly stores information related to the operating environment and operation history of the image forming apparatus 1.

オプションI/F112は、画像処理装置1に他のオプション機器を接続するためのインタフェースである。オプションI/F112の運用方法としては、例えば更に一台の画像形成装置を接続し、一の印刷ジョブを複数の画像形成装置で分割して出力する態様や、画像形成後の後処理装置を接続すること等が挙げられる。また、FCU(Facsimile Control Unit)を接続し、画像処理装置1をファクシミリとして動作させることもできる。電源制御部113は、コントローラ100及びエンジン200各部に電源を供給している。電源制御部113は、で夫々のハードウェア毎に電源供給の有無を切り換えることが可能であり、入出力・省電力制御ASICの制御に基づいて夫々のハードウェアへの電源供給有無を切り換える。   The option I / F 112 is an interface for connecting another option device to the image processing apparatus 1. Options I / F 112 can be operated, for example, by connecting one image forming device and dividing and outputting one print job by multiple image forming devices, or by connecting a post-processing device after image formation And so on. Further, an FCU (Facsimile Control Unit) can be connected to operate the image processing apparatus 1 as a facsimile. The power supply control unit 113 supplies power to each part of the controller 100 and the engine 200. The power control unit 113 can switch the presence / absence of power supply for each piece of hardware, and switches the presence / absence of power supply to each piece of hardware based on the control of the input / output / power saving control ASIC.

次に、図2を参照して、本実施形態に係るコントローラ100について更に説明する。図2は、ROM105に格納されている各種プログラムがRAM102にロードされ、CPU101の制御によって動作するソフトウェア300及び当該ソフトウェア300によって制御されるハードウェアを模式的に示す図である。図2に示すように、本実施形態に係るソフトウェア300は、カーネル330を含むOS310とアプリケーション320とを有する。   Next, the controller 100 according to the present embodiment will be further described with reference to FIG. FIG. 2 is a diagram schematically illustrating software 300 that is loaded with various programs stored in the ROM 105 into the RAM 102 and operates under the control of the CPU 101 and hardware controlled by the software 300. As illustrated in FIG. 2, the software 300 according to the present embodiment includes an OS 310 including a kernel 330 and an application 320.

カーネル330は、OS310において中核となる部分であり、OS310やアプリケーション320とハードウェアとのやり取りを制御する。カーネル330は、MMU103aにアクセスしてRAM102を制御するメモリ管理ソフトウェア331と、HDD104や電源制御部113を制御するデバイスドライバ332とを有する。また、デバイスドライバ332は、デバイス管理ソフトウェア333及び電源管理ソフトウェア334を有する。メモリ管理ソフトウェア331は、アプリケーション320の要求に応じて夫々のアプリケーションにRAM102のメモリ領域を割り当て、またアプリケーション320においれ不要となったメモリを開放する。また、メモリ管理ソフトウェア331は、従来技術の図16において説明した仮想記憶方式を実現する。仮想記憶方式におけるメモリ管理ソフトウェア331のスワップ処理が本実施形態の特徴の1つである。   The kernel 330 is a core part in the OS 310, and controls the exchange between the OS 310 and the application 320 and hardware. The kernel 330 includes memory management software 331 that accesses the MMU 103 a to control the RAM 102, and a device driver 332 that controls the HDD 104 and the power control unit 113. The device driver 332 includes device management software 333 and power management software 334. The memory management software 331 allocates a memory area of the RAM 102 to each application in response to a request from the application 320, and releases the memory that is no longer necessary when the application 320 is included. Further, the memory management software 331 implements the virtual storage method described with reference to FIG. The swap processing of the memory management software 331 in the virtual storage system is one of the features of this embodiment.

デバイス管理ソフトウェア333は、HDD104への情報記録やHDD104からの情報の読み出しを制御する。また、デバイス管理ソフトウェア333は、ROM105可搬型記録媒体I/F107、NVRAM111等の記録媒体へのアクセスを制御する機能を含む。電源管理ソフトウェア334は、電源制御部113を管理して夫々のハードウェアへの電源供給を制御する。この他、デバイスドライバ332は、図1に示す各ハードウェアを制御する機能を実現するソフトウェアを含む。   The device management software 333 controls information recording to the HDD 104 and reading of information from the HDD 104. The device management software 333 includes a function for controlling access to a recording medium such as the ROM 105 portable recording medium I / F 107 and the NVRAM 111. The power management software 334 manages the power control unit 113 and controls power supply to each hardware. In addition, the device driver 332 includes software that realizes a function of controlling each hardware shown in FIG.

アプリケーション320は、当該装置の省電力状態を制御する省電力制御プログラム321、プリントエンジン203を制御してプリントアウトを実行するプリントアプリケーション322、スキャナエンジン202を制御してスキャンを実行するスキャンアプリケーション323及び装置外部との情報の入出力を制御する入出力アプリケーション324を有する。OS310は、カーネル330の他、省電力制御ライブラリ311を有する。省電力制御ライブラリ311は、省電力制御プログラム321の命令を受け、デバイスドライバ332から省電力制御に必要なデバイス管理ソフトウェア333及び電源管理ソフトウェア334を呼び出す。即ち、省電力制御ライブラリ311が、HDD104等の二次記憶装置を稼動状態から非稼動状態へと遷移させる二次記憶装置稼動状態制御部として機能する。   The application 320 includes a power saving control program 321 that controls the power saving state of the apparatus, a print application 322 that controls the print engine 203 to execute printout, a scan application 323 that controls the scanner engine 202 to execute scanning, and It has an input / output application 324 that controls input / output of information with the outside of the apparatus. The OS 310 has a power saving control library 311 in addition to the kernel 330. The power saving control library 311 receives an instruction of the power saving control program 321 and calls the device management software 333 and the power management software 334 necessary for power saving control from the device driver 332. That is, the power saving control library 311 functions as a secondary storage device operating state control unit that transitions the secondary storage device such as the HDD 104 from the operating state to the non-operating state.

次に、本実施形態に係る画像処理装置1の省電力状態について説明する。本実施形態に係る画像処理装置1は、電源供給部位の違いにより、複数種類の省電力状態を有する。図3は、本実施形態に係る画像処理装置1の省電力状態の一態様を示す図であり、図1と同様にハードウェア構成を示すブロック図である。図3においては、電源が供給されていないハードウェアのブロックは斜線を付して示されている。図3の状態においては、メカ制御部100b及びエンジン200への電源供給が停止しており、これにより消費電力を低減することが可能となる。また、図3の状態においては、ソフト制御部100aには電源が供給されているため、省電力状態として消費電力を低減しながら継続してソフトウェアを動作させることが可能となる。   Next, the power saving state of the image processing apparatus 1 according to the present embodiment will be described. The image processing apparatus 1 according to the present embodiment has a plurality of types of power saving states due to differences in power supply parts. FIG. 3 is a diagram illustrating an aspect of the power saving state of the image processing apparatus 1 according to the present embodiment, and is a block diagram illustrating a hardware configuration as in FIG. In FIG. 3, hardware blocks to which no power is supplied are indicated by hatching. In the state of FIG. 3, the power supply to the mechanical control unit 100b and the engine 200 is stopped, which makes it possible to reduce power consumption. In the state of FIG. 3, since the power is supplied to the software control unit 100a, it is possible to continuously operate the software while reducing the power consumption as a power saving state.

図4は、図3とは異なる省電力状態の態様を示す図である。図4においても、電源が供給されていないハードウェアのブロックは斜線を付して示されている。図4の状態においては、図3の状態において電源が供給されている部位に加えて、メカ制御部100bの画像処理ASIC106及びHDD104に電源が供給されている。この場合、図3の状態よりも消費電力が増大するが、図3の状態において可能であったソフトウェア動作に加えて、HDD104へのアクセスも可能となる。図3及び図4に示す省電力状態への遷移は、省電力制御プログラム321によって実行される。   FIG. 4 is a diagram showing an aspect of the power saving state different from FIG. Also in FIG. 4, hardware blocks to which no power is supplied are indicated by hatching. In the state of FIG. 4, power is supplied to the image processing ASIC 106 and the HDD 104 of the mechanical control unit 100b in addition to the parts to which power is supplied in the state of FIG. In this case, the power consumption increases compared to the state of FIG. 3, but in addition to the software operation that was possible in the state of FIG. 3, access to the HDD 104 is also possible. The transition to the power saving state shown in FIGS. 3 and 4 is executed by the power saving control program 321.

このような画像処理装置1において、本実施形態の特徴は、図3に示す省電力状態において、スワッピングが発生する場合の動作にある。以下、本実施形態に係る画像処理装置1のスワッピング動作について説明する。図5は、本実施形態に係る画像処理装置1のスワッピング動作を示すシーケンス図である。図5の例においては、画像処理装置1の図3に示す省電力状態において外部からアクセスがあり、入出力アプリケーション324が新たなメモリ領域を要求した場合の例を示す。図6は、図5に示す夫々の処理を図2に示す機能ブロック上において示した図である。   In such an image processing apparatus 1, a feature of the present embodiment is an operation when swapping occurs in the power saving state shown in FIG. Hereinafter, the swapping operation of the image processing apparatus 1 according to the present embodiment will be described. FIG. 5 is a sequence diagram showing the swapping operation of the image processing apparatus 1 according to the present embodiment. In the example of FIG. 5, an example in which there is an external access in the power saving state illustrated in FIG. 3 of the image processing apparatus 1 and the input / output application 324 requests a new memory area. FIG. 6 is a diagram showing the processes shown in FIG. 5 on the functional blocks shown in FIG.

図5に示すように、画像処理装置1に対して外部からアクセスがあり、入出力アプリケーション324が動作のための新たなメモリ領域をメモリ管理ソフトウェア331に要求すると(S501)、メモリ管理ソフトウェア331は、メモリ確保のためにMMU103aにアクセスする(S502)。メモリ管理ソフトウェア331がMMU103aにアクセスした結果、図16に示すように要求したメモリ容量に対してRAM102の空き領域が不足している場合、MMU103aにおいてページフォルトが発生し、メモリ管理ソフトウェア331はそれを検出する(S503)。ページフォルトが発生した場合の通常動作として、MMU103aはスワッピングを実行してRAM102の空き領域を確保する。しかしながら、メモリ管理ソフトウェア331は、HDD104に電源が供給されていない状態においてページフォルトの発生を検出すると、MMU103aにスワッピングの実行を待機させる。   As shown in FIG. 5, when the image processing apparatus 1 is accessed from the outside and the input / output application 324 requests the memory management software 331 for a new memory area for operation (S501), the memory management software 331 Then, the MMU 103a is accessed to secure the memory (S502). As a result of the memory management software 331 accessing the MMU 103a, if the RAM 102 has insufficient free space with respect to the requested memory capacity as shown in FIG. 16, a page fault occurs in the MMU 103a, and the memory management software 331 It is detected (S503). As a normal operation when a page fault occurs, the MMU 103a performs swapping to secure a free area in the RAM 102. However, when the memory management software 331 detects the occurrence of a page fault in a state where the power is not supplied to the HDD 104, the memory management software 331 causes the MMU 103a to wait for execution of swapping.

メモリ管理ソフトウェア331は、MMU103aにスワッピング実行を待機させた上で、省電力制御プログラム321にウェイクアップ信号を送信する(S504)。このウェイクアップ信号は、非稼動状態であるHDD104を稼動状態へと遷移させるために、メモリ管理ソフトウェア331が発信する信号であり、HDD104を指定する情報が含まれる。メモリ管理ソフトウェア331からウェイクアップ信号を受信することにより、休止状態であった省電力制御プログラム321は動作を開始する。省電力制御プログラム321は、メモリ管理ソフトウェア331からのウェイクアップ信号により動作を開始すると、HDD104の復帰要求を送信する(S505)。省電力制御プログラム321が発信した復帰要求は、OS310の省電力制御ライブラリ311によって解釈される。省電力制御プログラム321が発信する復帰要求により、デバイスドライバ332が動作し、HDD104が稼動状態へと遷移する。即ち、省電力制御プログラム321は、二次記憶装置状態遷移部として機能し、デバイスドライバ332が二次記憶装置制御部として機能する。   The memory management software 331 sends the wake-up signal to the power saving control program 321 after having the MMU 103a wait for execution of swapping (S504). This wake-up signal is a signal transmitted by the memory management software 331 in order to shift the HDD 104 that is in the non-operating state to the operating state, and includes information specifying the HDD 104. By receiving the wake-up signal from the memory management software 331, the power saving control program 321 that has been in the hibernation state starts its operation. When the operation of the power saving control program 321 is started by the wake-up signal from the memory management software 331, the power saving control program 321 transmits a return request for the HDD 104 (S505). The return request transmitted by the power saving control program 321 is interpreted by the power saving control library 311 of the OS 310. In response to a return request transmitted by the power saving control program 321, the device driver 332 operates and the HDD 104 transitions to an operating state. That is, the power saving control program 321 functions as a secondary storage device state transition unit, and the device driver 332 functions as a secondary storage device control unit.

省電力制御ライブラリ311は、HDD104の復帰に際して必要となる電源管理ソフトウェア332及びデバイス管理ソフトウェア333をデバイスドライバ332から呼び出す(S506)。即ち、省電力制御ライブラリ311は、二次記憶装置駆動部として機能する。省電力制御ライブラリ311によって呼び出された電源管理ソフトウェア334は、HDD104への電源供給を開始し(S507)、省電力制御プログラム321に通知する。即ち、電源管理ソフトウェア334が、電源供給制御部として機能する。また、デバイス管理ソフトウェア333は、HDD104の初期化処理を行い(S508)、省電力制御プログラム321に通知する。即ち、デバイス管理ソフトウェア333が、二次記憶装置初期化部として機能する。   The power saving control library 311 calls the power management software 332 and the device management software 333 required when the HDD 104 is restored from the device driver 332 (S506). That is, the power saving control library 311 functions as a secondary storage device driving unit. The power management software 334 called by the power saving control library 311 starts power supply to the HDD 104 (S507) and notifies the power saving control program 321. That is, the power management software 334 functions as a power supply control unit. Further, the device management software 333 performs initialization processing of the HDD 104 (S508), and notifies the power saving control program 321. That is, the device management software 333 functions as a secondary storage device initialization unit.

HDD104への電源供給の再開及びHDD104の初期化処理の通知を受けた省電力制御プログラム321は、メモリ管理ソフトウェア331に対して復帰完了通知を送信する(S509)。省電力制御プログラム321は、メモリ管理ソフトウェア331に対して復帰完了通知を送信することにより、再び休止状態となる。復帰完了通知を受けたメモリ管理ソフトウェア331は、MMU103aに待機させていたスワッピングを実行させる(S510)。これにより、図16において説明したように、メモリ管理ソフトウェア331は、入手力アプリケーション324から要求されたメモリを確保し(S511)、入出力アプリケーション324に通知する。即ち、メモリ管理ソフトウェア331が、情報退避部及び記憶領域対応付け部として機能する。このような処理により、画像処理装置1は、HDD104への電源供給が停止している間のスワップ処理の発生にも対応することが可能となる。   The power saving control program 321 that has received notification of resumption of power supply to the HDD 104 and initialization processing of the HDD 104 transmits a return completion notification to the memory management software 331 (S509). The power saving control program 321 again enters the hibernation state by transmitting a return completion notification to the memory management software 331. The memory management software 331 that has received the return completion notification causes the MMU 103a to execute the swapping that has been waiting (S510). Thereby, as described in FIG. 16, the memory management software 331 secures the memory requested by the availability application 324 (S511) and notifies the input / output application 324 of it. That is, the memory management software 331 functions as an information saving unit and a storage area association unit. With such processing, the image processing apparatus 1 can cope with occurrence of swap processing while power supply to the HDD 104 is stopped.

次に、図5の動作におけるメモリ管理ソフトウェア331の処理について説明する。図7は、図5の動作におけるメモリ管理ソフトウェア331の処理を示すフローチャートである。メモリ管理ソフトウェア331は、入出力アプリケーション324からメモリ要求を受信すると(S701)、要求されたメモリ領域を確保するためにMMU103aにアクセスする(S702)。MMU103aがメモリ領域の確保を試みた結果、RAM102の実記憶領域にマッピングされていない仮想記憶領域にアクセスし、ページフォルトが発生すると(S703/YES)、メモリ管理ソフトウェア331は、HDD104に電源が供給されているか否か、即ちHDD104が省電力状態であるか否かを確認する(S704)。他方、ページフォルトが発生しない場合(S703/NO)、メモリ管理ソフトウェア331は、MMU103aを介してメモリを確保し(S709)、処理を終了する。   Next, processing of the memory management software 331 in the operation of FIG. 5 will be described. FIG. 7 is a flowchart showing processing of the memory management software 331 in the operation of FIG. When the memory management software 331 receives a memory request from the input / output application 324 (S701), the memory management software 331 accesses the MMU 103a in order to secure the requested memory area (S702). As a result of the MMU 103a trying to secure the memory area, if a page fault occurs when accessing a virtual storage area that is not mapped to the real storage area of the RAM 102 (S703 / YES), the memory management software 331 supplies power to the HDD 104. Whether or not the HDD 104 is in a power saving state is checked (S704). On the other hand, if a page fault does not occur (S703 / NO), the memory management software 331 secures memory via the MMU 103a (S709), and ends the process.

HDD104が省電力状態である場合(S704/YES)、メモリ管理ソフトウェア331は、MMU103aにスワップ処理を待機させ(S705)、省電力制御プログラム321に対してウェイクアップ信号を送信する(S706)。その後、メモリ管理ソフトウェア331は省電力制御プログラム321から復帰完了通知を受信するまで待機する(S707/NO)。復帰が完了した場合(S707/YES)若しくはHDDが省電力状態ではなかった場合(S704/NO)、MMU103aにスワップ処理を実行させる(S708)。スワップ処理により、メモリの確保が可能となり、メモリ管理ソフトウェア331は確保したメモリ領域を入出力アプリケーション324に通知して(S709)処理を終了する。   When the HDD 104 is in the power saving state (S704 / YES), the memory management software 331 causes the MMU 103a to wait for swap processing (S705), and transmits a wake-up signal to the power saving control program 321 (S706). Thereafter, the memory management software 331 stands by until a return completion notification is received from the power saving control program 321 (S707 / NO). When the restoration is completed (S707 / YES) or when the HDD is not in the power saving state (S704 / NO), the MMU 103a is caused to execute the swap process (S708). The swap process makes it possible to secure the memory, and the memory management software 331 notifies the secured memory area to the input / output application 324 (S709) and ends the process.

以上説明したように、本実施形態に係る画像処理装置1の省電力制御方法においては、HDD104への電源供給停止時にページフォルトが発生し、RAM102が保持している情報をHDD104に退避するスワップ処理の必要が生じた場合に、スワップ処理を待機させた状態で先にHDD104への電源供給を再開してHDD104を起動する。これにより、スワップ処理が失敗してHDD104へ退避されるべき情報が失われてしまうことを防ぐことができる。   As described above, in the power saving control method of the image processing apparatus 1 according to the present embodiment, a swap process is performed in which a page fault occurs when power supply to the HDD 104 is stopped and information held in the RAM 102 is saved to the HDD 104. When the need arises, the power supply to the HDD 104 is resumed and the HDD 104 is activated in a state where the swap processing is waited. As a result, it is possible to prevent the information that should be saved in the HDD 104 from being lost due to the failure of the swap process.

尚、上記の説明においては、図5において説明したように、入出力アプリケーション322がメモリ管理ソフトウェア331にメモリ領域を要求する場合を例として説明したが、プリントアプリケーション322及びスキャンアプリケーション323や、図示しないその他のアプリケーションの場合も同様に適用可能である。また、アプリケーション320がメモリ領域を要求する場合に限らず、他のソフトウェアがメモリ領域を要求する場合であっても同様に適用可能である。   In the above description, as described in FIG. 5, the case where the input / output application 322 requests the memory area from the memory management software 331 has been described as an example. However, the print application 322 and the scan application 323 are not illustrated. The same applies to other applications. Further, the present invention is not limited to the case where the application 320 requests a memory area, but can be similarly applied even when other software requests a memory area.

また、上記の説明においては、RAM102が保持している情報の退避先である二次記憶装置としてHDD104を用いる例を説明した。この他、NVRAM111を二次記憶装置として用いても良いし、他の一般的な記憶装置であれば用いることが可能である。ここで、本実施形態においては、二次記憶装置が省電力制御の対象となることが前提であるため、不揮発性の記憶媒体を有する記憶装置を二次記憶装置として用いることが好ましい。また、省電力制御による消費電力の低減効果から、HDD104のように、機械的に駆動される構成を有する記憶装置を二次記憶装置として用いる場合に、より本発明の効果を得ることができる。   In the above description, the example in which the HDD 104 is used as the secondary storage device that is the save destination of the information stored in the RAM 102 has been described. In addition, the NVRAM 111 may be used as a secondary storage device, or any other general storage device can be used. Here, in this embodiment, since it is a premise that the secondary storage device is a target of power saving control, it is preferable to use a storage device having a nonvolatile storage medium as the secondary storage device. Further, from the effect of reducing the power consumption by the power saving control, the effect of the present invention can be further obtained when a storage device having a mechanically driven configuration such as the HDD 104 is used as the secondary storage device.

また、上記の説明においては、メモリ管理ソフトウェア331がMMU103aにアクセスし、MMU103aにおいてページフォルトが発生したことをメモリ管理ソフトウェア331が検出してHDD104のウェイクアップ信号を発信する例を説明した。この他、メモリ管理ソフトウェア331が、メモリの空きページ情報を保持している場合、他の態様が可能となる。例えば、メモリ管理ソフトウェア331が、保持している空きページ領域以上の領域の要求を受信した場合、ページフォルトが発生することを予想してHDD104のウェイクアップ信号を送信するようにしても良い。この場合、メモリ管理ソフトウェア331がMMU103aにアクセスする前にウェイクアップ信号を送信することができるため、HDD104の起動完了までに要する時間を短縮することが可能であり、アプリケーション320から要求されたメモリの確保を迅速に完了することが可能となる。   In the above description, the example in which the memory management software 331 accesses the MMU 103a, the memory management software 331 detects that a page fault has occurred in the MMU 103a, and transmits the wake-up signal of the HDD 104 has been described. In addition, when the memory management software 331 holds the free page information of the memory, other modes are possible. For example, when the memory management software 331 receives a request for an area larger than the free page area that is held, a wake-up signal for the HDD 104 may be transmitted in anticipation of a page fault. In this case, since the memory management software 331 can transmit a wake-up signal before accessing the MMU 103a, it is possible to reduce the time required to complete the startup of the HDD 104. Securement can be completed quickly.

実施の形態2.
実施の形態1においては、アプリケーション320として省電力制御プログラム321が動作し、省電力制御プログラム321がメモリ管理ソフトウェア331のウェイクアップ信号を受信してHDD104の復帰動作を行う例を説明した。本実施形態においては、省電力制御プログラム321に対応する機能をOS310が実現する例を説明する。尚、実施の形態1と同様の符号を付す構成については実施の形態1と同一又は相当部を示し、説明を省略する。
Embodiment 2. FIG.
In the first embodiment, an example has been described in which the power saving control program 321 operates as the application 320, and the power saving control program 321 receives the wake-up signal of the memory management software 331 and performs the recovery operation of the HDD 104. In the present embodiment, an example in which the OS 310 realizes a function corresponding to the power saving control program 321 will be described. In addition, about the structure which attaches | subjects the code | symbol similar to Embodiment 1, the same or equivalent part as Embodiment 1 is shown, and description is abbreviate | omitted.

本実施形態に係る画像処理装置1のハードウェア構成は、実施の形態1の図1において説明した態様と略同一である。図8に本実施形態に係るソフトウェア300及び当該ソフトウェア300によって制御されるハードウェアを模式的に示す。図8に示すように、本実施形態に係るソフトウェア300は、実施の形態1の図2において説明した態様と同様に、カーネル330を含むOS310とアプリケーション320とを有する。ここで、本実施形態においては、カーネル330がHD起動ライブラリ335を有する。HDD起動ライブラリ335は、電源供給が停止された状態や、電源供給が制限された状態等の非稼動状態のHDD104を起動するために必要なデバイス管理ソフトウェア333及び電源管理ソフトウェア334を呼び出す。   The hardware configuration of the image processing apparatus 1 according to the present embodiment is substantially the same as the aspect described in FIG. FIG. 8 schematically shows software 300 according to the present embodiment and hardware controlled by the software 300. As illustrated in FIG. 8, the software 300 according to the present embodiment includes an OS 310 including a kernel 330 and an application 320, as in the aspect described in FIG. 2 of the first embodiment. Here, in the present embodiment, the kernel 330 has the HD activation library 335. The HDD activation library 335 calls the device management software 333 and the power management software 334 necessary for activating the HDD 104 in a non-operating state such as a state where power supply is stopped or a state where power supply is restricted.

次に、本実施形態に係る画像処理装置1のスワッピング動作について説明する。図9は、本実施形態に係る画像処理装置1のスワッピング動作を示すシーケンス図である。図9の例においても、実施の形態1と同様に、画像処理装置1の図3に示す省電力状態において外部からアクセスがあり、入出力アプリケーション324が新たなメモリ領域を要求した場合の例を示す。図10は、図9に示す夫々の処理を図8に示す機能ブロック上において示した図である。   Next, the swapping operation of the image processing apparatus 1 according to the present embodiment will be described. FIG. 9 is a sequence diagram showing the swapping operation of the image processing apparatus 1 according to the present embodiment. Also in the example of FIG. 9, as in the first embodiment, an example in which there is an external access in the power saving state shown in FIG. 3 of the image processing apparatus 1 and the input / output application 324 requests a new memory area Show. FIG. 10 is a diagram showing the respective processes shown in FIG. 9 on the functional block shown in FIG.

図9に示すように、画像処理装置1に対して外部からアクセスがあり、入出力アプリケーション324が動作のための新たなメモリ領域をメモリ管理ソフトウェア331に要求すると(S901)、メモリ管理ソフトウェア331は、メモリ確保のためにMMU103aにアクセスする(S902)。メモリ管理ソフトウェア331がMMU103aにアクセスした結果、図16に示すように要求したメモリ容量に対してRAM102の空き領域が不足している場合、MMU103aにおいてページフォルトが発生し、メモリ管理ソフトウェア331はそれを検出する(S903)。ページフォルトが発生した場合の通常動作として、MMU103aはスワッピングを実行してRAM102の空き領域を確保する。しかしながら、メモリ管理ソフトウェア331は、HDD104に電源が供給されていない状態においてページフォルトの発生を検出すると、MMU103aにスワッピングの実行を待機させる。   As shown in FIG. 9, when the image processing apparatus 1 is accessed from the outside and the input / output application 324 requests a new memory area for operation from the memory management software 331 (S901), the memory management software 331 Then, the MMU 103a is accessed to secure the memory (S902). As a result of the memory management software 331 accessing the MMU 103a, if the RAM 102 has insufficient free space with respect to the requested memory capacity as shown in FIG. 16, a page fault occurs in the MMU 103a, and the memory management software 331 It is detected (S903). As a normal operation when a page fault occurs, the MMU 103a performs swapping to secure a free area in the RAM 102. However, when the memory management software 331 detects the occurrence of a page fault in a state where the power is not supplied to the HDD 104, the memory management software 331 causes the MMU 103a to wait for execution of swapping.

メモリ管理ソフトウェア331は、MMU103aにスワッピング実行を待機させた上で、HDD起動ライブラリ335にHDD104の復帰要求を送信する(S904)。即ち、本実施形態においては、メモリ管理ソフトウェア331が二次記憶装置状態遷移部として機能する。HDD起動ライブラリ335は、HDD104の復帰に際して必要となる電源管理ソフトウェア332及びデバイス管理ソフトウェア333をデバイスドライバ332から呼び出す(S905)。即ち、本実施形態においては、HDD起動ライブラリ335が、二次記憶装置駆動部として機能する。HDD起動ライブラリ335によって呼び出された電源管理ソフトウェア334は、HDD104への電源供給を開始し(S906)、メモリ管理ソフトウェア331に通知する。また、デバイス管理ソフトウェア333は、HDD104の初期化処理を行い(S907)、メモリ管理ソフトウェア331に通知する。   The memory management software 331 causes the MMU 103a to wait for execution of swapping, and then transmits a return request for the HDD 104 to the HDD activation library 335 (S904). That is, in this embodiment, the memory management software 331 functions as a secondary storage device state transition unit. The HDD activation library 335 calls the power management software 332 and the device management software 333 necessary for returning the HDD 104 from the device driver 332 (S905). That is, in the present embodiment, the HDD activation library 335 functions as a secondary storage device drive unit. The power management software 334 called by the HDD activation library 335 starts power supply to the HDD 104 (S906) and notifies the memory management software 331. In addition, the device management software 333 performs initialization processing of the HDD 104 (S907) and notifies the memory management software 331.

HDD104への電源供給の再開及びHDD104の初期化処理の通知を受けたメモリ管理ソフトウェア331は、MMU103aに待機させていたスワッピングを実行させる(S908)。これにより、メモリ管理ソフトウェア331は、入手力アプリケーション324から要求されたメモリを確保し(S909)、入出力アプリケーション324に通知する。このような処理により、画像処理装置1は、HDD104への電源供給が停止している間のスワップ処理の発生にも対応することが可能となる。   The memory management software 331 that has received the notification of the resumption of power supply to the HDD 104 and the initialization process of the HDD 104 causes the MMU 103a to perform the swapping that has been waiting (S908). Thereby, the memory management software 331 secures the memory requested from the availability application 324 (S909) and notifies the input / output application 324 of it. With such processing, the image processing apparatus 1 can cope with occurrence of swap processing while power supply to the HDD 104 is stopped.

図11は、図9の動作におけるメモリ管理ソフトウェア331の処理を示すフローチャートである。メモリ管理ソフトウェア331は、入出力アプリケーション324からメモリ要求を受信すると(S1101)、要求されたメモリ領域を確保するためにMMU103aにアクセスする(S1102)。MMU103aがメモリ領域の確保を試みた結果、RAM102の実記憶領域にマッピングされていない仮想記憶領域にアクセスし、ページフォルトが発生すると(S1103/YES)、メモリ管理ソフトウェア331は、HDD104に電源が供給されているか否か、即ちHDD104が省電力状態であるか否かを確認する(S704)。他方、ページフォルトが発生しない場合(S1103/NO)、メモリ管理ソフトウェア331は、MMU103aを介してメモリを確保し(S1109)、処理を終了する。   FIG. 11 is a flowchart showing processing of the memory management software 331 in the operation of FIG. Upon receiving a memory request from the input / output application 324 (S1101), the memory management software 331 accesses the MMU 103a to secure the requested memory area (S1102). As a result of the MMU 103a trying to secure the memory area, if a page fault occurs when accessing a virtual storage area that is not mapped to the real storage area of the RAM 102 (S1103 / YES), the memory management software 331 supplies power to the HDD 104. Whether or not the HDD 104 is in a power saving state is checked (S704). On the other hand, if a page fault does not occur (S1103 / NO), the memory management software 331 secures memory via the MMU 103a (S1109), and ends the process.

HDD104が省電力状態である場合(S1104/YES)、メモリ管理ソフトウェア331は、MMU103aにスワップ処理を待機させ(S1105)、HDD起動ライブラリ335に対して復帰要求を送信する(S1106)。その後、メモリ管理ソフトウェア331はデバイスドライバ332から復帰完了通知を受信するまで待機する(S1107/NO)。復帰が完了した場合(S1107/YES)若しくはHDDが省電力状態ではなかった場合(S1104/NO)、MMU103aにスワップ処理を実行させる(S1108)。スワップ処理により、メモリの確保が可能となり、メモリ管理ソフトウェア331は確保したメモリ領域を入出力アプリケーション324に通知して(S1109)処理を終了する。   When the HDD 104 is in the power saving state (S1104 / YES), the memory management software 331 causes the MMU 103a to wait for swap processing (S1105), and transmits a return request to the HDD activation library 335 (S1106). Thereafter, the memory management software 331 stands by until a return completion notification is received from the device driver 332 (S1107 / NO). When the restoration is completed (S1107 / YES) or when the HDD is not in the power saving state (S1104 / NO), the MMU 103a is caused to execute the swap process (S1108). The swap process makes it possible to secure the memory, and the memory management software 331 notifies the secured memory area to the input / output application 324 (S1109) and ends the process.

以上説明したように、実施の形態1と同様の効果を、OS310若しくはカーネル330の処理だけで得ることが可能となる。これにより、入出力アプリケーション324等のアプリケーション320は、電源管理について考慮する必要がないため、アプリケーション320のOS310への依存性を低くすることが可能となる。   As described above, the same effect as in the first embodiment can be obtained only by the processing of the OS 310 or the kernel 330. As a result, the application 320 such as the input / output application 324 does not need to consider power management, so that the dependency of the application 320 on the OS 310 can be reduced.

実施の形態1においては、HDD104の稼動/非稼動を制御する省電力制御プログラム321を介して、スワップ時のHDD104の臨時起動を制御することにより、本発明の適用をより容易に行うことが可能である。これに対して、本実施形態においては、省電力制御プログラム321によって稼動/非稼動制御されているHDD104を臨時に稼動状態へと遷移させる機能をメモリ管理ソフトウェア331が有する。これにより、メモリ管理ソフトウェア331がページフォルトの発生を検出してからHDD104を起動制御するまでの情報伝達を簡略化し、スワップ処理を迅速に完了することが可能となる。   In the first embodiment, it is possible to more easily apply the present invention by controlling the temporary activation of the HDD 104 at the time of swap through the power saving control program 321 that controls the operation / non-operation of the HDD 104. It is. On the other hand, in this embodiment, the memory management software 331 has a function of temporarily transitioning the HDD 104 that is controlled to be operated / not operated by the power saving control program 321 to the operating state. As a result, it is possible to simplify information transmission from the time when the memory management software 331 detects the occurrence of a page fault until the activation control of the HDD 104, and the swap processing can be completed quickly.

尚、上記の説明においては、カーネル330にHDD起動ライブラリ335を設ける例を説明した。この他、メモリ管理ソフトウェア331が省電力制御ライブラリ311に復帰要求を送信するようにしてもよい。この場合であっても、スワップ処理に際するHDD104の起動処理がOS310の外側に及ぶことはなく、OS310の処理だけで上記と同様の効果を得ることが可能となる。   In the above description, the example in which the HDD activation library 335 is provided in the kernel 330 has been described. In addition, the memory management software 331 may transmit a return request to the power saving control library 311. Even in this case, the startup process of the HDD 104 during the swap process does not extend outside the OS 310, and the same effect as described above can be obtained only by the process of the OS 310.

実施の形態3.
本実施形態においては、ページング方式による仮想記憶制御においてページフォルトが発生した場合の、二次記憶装置への情報の退避処理、即ちスワップアウト処理の優先度に特徴を有する制御方法を説明する。尚、実施の形態1または2と同様の符号を付す構成については実施の形態1または2と同一又は相当部を示し、説明を省略する。OS310はRAM102上で動作するアプリケーション320等の各プログラムが、CPU101のリソースを使用する使用権をスケジューリングする機能を有している。このスケジューリングは、RAM102上で動作しているプログラムの動作状態に基づいて実行される。他方、ページフォルトが発生した際にRAM102の実記憶領域からHDD104に退避されるのは、RAM102上で動作する各プログラムである。ページフォルトが発生した際に、RAM102からHDD104に退避されるプログラムの優先度も、各プログラムの動作状態に基づいて決定されるのが一般的である。
Embodiment 3 FIG.
In the present embodiment, a control method characterized by the priority of information saving processing to the secondary storage device, that is, swap-out processing when a page fault occurs in virtual storage control by the paging method will be described. In addition, about the structure which attaches | subjects the code | symbol similar to Embodiment 1 or 2, the same or equivalent part as Embodiment 1 or 2 is shown, and description is abbreviate | omitted. The OS 310 has a function of scheduling a usage right for each program such as the application 320 operating on the RAM 102 to use the resources of the CPU 101. This scheduling is executed based on the operating state of the program operating on the RAM 102. On the other hand, when a page fault occurs, each program operating on the RAM 102 is saved from the actual storage area of the RAM 102 to the HDD 104. In general, when a page fault occurs, the priority of a program saved from the RAM 102 to the HDD 104 is also determined based on the operating state of each program.

図12に、RAM102上で動作するプログラムの動作状態の表を示す。図12に示すパラメータのうち、“CPU時間”、“メモリ保有時間”、“メモリサイズ”といったパラメータは、従来においても取得され、参照されていたパラメータである。本実施形態においては、図12に示すように更に“HDDの使用履歴”をパラメータとして取得する。図12においては、HDDの使用履歴を“無し”、“多い”、“少ない”の3つの状態で示しているが、これは、各プログラムがHDD104にアクセスした回数や、HDD104から読み出した情報量若しくはHDD104に書き込んだ情報量等により判断される。   FIG. 12 shows a table of operation states of programs operating on the RAM 102. Of the parameters shown in FIG. 12, parameters such as “CPU time”, “memory retention time”, and “memory size” are parameters that have been acquired and referred to in the past. In the present embodiment, as shown in FIG. 12, “HDD usage history” is further acquired as a parameter. In FIG. 12, the usage history of the HDD is shown in three states of “none”, “large”, and “small”. This indicates the number of times each program has accessed the HDD 104 and the amount of information read from the HDD 104. Alternatively, the determination is made based on the amount of information written in the HDD 104.

従来のスワップアウト処理の優先度決定方法においては、図12に示すプログラムB、プログラムCがHDD104に退避される優先度は低い。これは、プログラムB、プログラムCの“CPU時間”、“メモリ保有時間”及び“メモリサイズ”等のパラメータから、プログラムB、プログラムCをHDD104に退避しても、開放されるRAM102の実記憶領域が小さいと判断されるからである。他方、プログラムAがHDD104に退避された場合、開放されるRAM102の実記憶領域が大きいと判断されるため、従来のスワップアウト優先度決定方法においては、プログラムAは優先的にHDD104に退避される。   In the conventional swap-out process priority determination method, the priority of the programs B and C shown in FIG. This is because the real storage area of the RAM 102 is released even if the program B and program C are saved to the HDD 104 from parameters such as “CPU time”, “memory holding time” and “memory size” of the program B and program C. Is determined to be small. On the other hand, when program A is saved to HDD 104, it is determined that the real storage area of RAM 102 to be released is large. Therefore, in the conventional swap-out priority determination method, program A is preferentially saved to HDD 104. .

ここで、HDD104が省電力状態である場合を考える。HDD104が省電力状態である期間は、HDD104へのアクセスが発生していない期間であると考えられる。従って、図12に示すプログラムB、プログラムCのように、“HDD使用履歴”のパラメータが“多い”、“少ない”等の、HDD104を使用するプログラムは、HDD104が省電力状態である期間が動作していないと考えられる。仮に、HDD104へのアクセスが頻繁に発生するプログラムが動作している状態でHDD104を省電力状態としても、HDD104へのアクセスが発生した時点でHDD104の省電力状態は解除されるからである。   Here, consider a case where the HDD 104 is in a power saving state. The period in which the HDD 104 is in the power saving state is considered to be a period in which access to the HDD 104 has not occurred. Accordingly, programs such as the program B and the program C shown in FIG. 12 that use the HDD 104 with the “HDD usage history” parameter “high” or “low” operate during the period in which the HDD 104 is in the power saving state. It is thought that it is not. This is because even if the HDD 104 is put into a power saving state while a program that frequently accesses the HDD 104 is operating, the power saving state of the HDD 104 is canceled when the HDD 104 is accessed.

他方、プログラムAのように“HDD使用履歴”のパラメータが“無し”であるプログラムは、HDD104が省電力状態であっても動作している可能性が高いと考えられる。このようなプログラムをHDD104に退避した場合、再度当該プログラムを動作させるためには、HDD104に退避した情報を再度RAM102に読み出すスワップイン処理が必要となり、システムのパフォーマンスに影響する。また、このようなプログラムをHDD104に退避した後、HDD104が省電力状態に遷移した場合であっても、当該プログラムが動作するためには、HDD104からのスワップイン処理が必要であるため、HDD104の省電力状態を解除する必要があり、HDD104の省電力制御が非効率なものとなってしまう。   On the other hand, a program whose “HDD usage history” parameter is “none”, such as program A, is likely to be operating even when the HDD 104 is in a power saving state. When such a program is saved in the HDD 104, in order to operate the program again, a swap-in process for reading the information saved in the HDD 104 back into the RAM 102 is necessary, which affects the performance of the system. Further, even if the HDD 104 transitions to a power saving state after saving such a program to the HDD 104, swap-in processing from the HDD 104 is necessary for the program to operate. It is necessary to cancel the power saving state, and the power saving control of the HDD 104 becomes inefficient.

このような課題に対して、本実施形態に係るスワップアウト処理の優先度決定方法においては、図12に示す“HDD使用履歴”のパラメータを参照し、使用履歴の多いプログラムを優先的にHDD104に退避する。これにより、HDD104が省電力状態となった場合に、動作していないプログラムを優先的にHDD104に退避し、HDD104が省電力状態であっても動作している可能性の高いプログラムを優先的にRAM102に残すことができる。これにより、HDD104の省電力状態におけるページフォルトの発生を抑制し、HDD104の省電力効果及びシステムのパフォーマンスを向上することができる。   To deal with such a problem, in the priority determination method of the swap-out process according to the present embodiment, the “HDD usage history” parameter shown in FIG. evacuate. As a result, when the HDD 104 enters a power saving state, programs that are not operating are preferentially saved to the HDD 104, and programs that are likely to be operating even when the HDD 104 is in a power saving state are prioritized. It can remain in the RAM 102. As a result, the occurrence of a page fault in the power saving state of the HDD 104 can be suppressed, and the power saving effect and system performance of the HDD 104 can be improved.

本実施形態に係る画像処理装置1のハードウェア構成は、実施の形態1の図1において説明した態様と略同一である。図13に本実施形態に係るソフトウェア300及び当該ソフトウェア300によって制御されるハードウェアを模式的に示す。図13に示すように、本実施形態に係るソフトウェア300は、実施の形態1の態様と概ね同一である。ここで、本実施形態に係るOS310は、実施の形態1の態様に加えてタスクマネージャ312を有する。タスクマネージャ312は、メモリ管理ソフトウェア331によって管理され、RAM102上で動作する各プログラムの動作態様を図12に示すようなテーブルとして管理する。   The hardware configuration of the image processing apparatus 1 according to the present embodiment is substantially the same as the aspect described in FIG. FIG. 13 schematically shows software 300 according to the present embodiment and hardware controlled by the software 300. As shown in FIG. 13, the software 300 according to the present embodiment is substantially the same as the aspect of the first embodiment. Here, the OS 310 according to the present embodiment has a task manager 312 in addition to the aspect of the first embodiment. The task manager 312 is managed by the memory management software 331 and manages the operation mode of each program operating on the RAM 102 as a table as shown in FIG.

次に、図14を参照して、本実施形態に係るスワップアウト処理の優先度決定動作について説明する。図14は、本実施形態に係るスワップアウト処理の動作を示すフローチャートである。メモリ管理ソフトウェア331は、ページフォルトの発生を検出すると(S1401)、HDD104に電源が供給されているか否か、即ちHDD104が省電力状態であるか否かを確認する(S1402)。HDD104が省電力状態である場合(S1402/YES)、メモリ管理ソフトウェア331は、MMU103aにスワップ処理を待機させ(S1403)、省電力制御プログラム321に対してウェイクアップ信号を送信する(S1404)。その後、メモリ管理ソフトウェア331は省電力制御プログラム321から復帰完了通知を受信するまで待機する(S1405/NO)。   Next, the priority determination operation of the swap-out process according to the present embodiment will be described with reference to FIG. FIG. 14 is a flowchart showing the operation of the swap-out process according to this embodiment. When the memory management software 331 detects the occurrence of a page fault (S1401), it checks whether power is supplied to the HDD 104, that is, whether the HDD 104 is in a power saving state (S1402). When the HDD 104 is in the power saving state (S1402 / YES), the memory management software 331 causes the MMU 103a to wait for the swap process (S1403) and transmits a wakeup signal to the power saving control program 321 (S1404). Thereafter, the memory management software 331 stands by until a return completion notification is received from the power saving control program 321 (S1405 / NO).

HDD104の復帰が完了した場合(S1405/YES)、メモリ管理ソフトウェア331は、タスクマネージャ312を参照し(S1406)、RAM120にロードされているプログラムの、スワップアウトの優先順位を決定する(S1407)。即ち、メモリ管理ソフトウェア331が、退避優先度情報取得部及び退避情報選択部として機能する。このとき、メモリ管理ソフトウェア331は、上述したように図12に示す各パラメータのうち“HDD使用履歴”のパラメータを重視し、HDD104の使用履歴が多いプログラムを優先的にスワップアウト処理の対象とする。スワップアウトの優先順位が決定すると、メモリ管理ソフトウェア331は、MMU103aにスワップ処理を実行させる(S1408)。スワップ処理により、メモリの確保が可能となり、メモリ管理ソフトウェア331は確保したメモリ領域を入出力アプリケーション324に通知して(S1409)処理を終了する。   When the restoration of the HDD 104 is completed (S1405 / YES), the memory management software 331 refers to the task manager 312 (S1406) and determines the swap-out priority of the program loaded in the RAM 120 (S1407). That is, the memory management software 331 functions as a save priority information acquisition unit and a save information selection unit. At this time, the memory management software 331 attaches importance to the “HDD usage history” parameter among the parameters shown in FIG. 12 as described above, and preferentially selects a program with a large usage history of the HDD 104 as a target of the swap-out process. . When the swap-out priority is determined, the memory management software 331 causes the MMU 103a to execute swap processing (S1408). The swap process makes it possible to secure the memory, and the memory management software 331 notifies the secured memory area to the input / output application 324 (S1409) and ends the process.

以上説明したように、本実施形態に係るスワップアウト処理の優先度決定方法においては、HDD104が省電力状態である場合、スワップアウト処理の対象とするプログラムの優先度を、そのプログラムのHDD104の使用履歴に基づいて判断し、HDD104をより多く使用しているプログラムを優先的にスワップアウトの対象とする。これにより、HDD104の省電力状態におけるメモリ領域の管理を効率化することができる。また、HDD104の省電力状態においてスワップイン処理が発生し、HDD104の省電力効率が低下することを防ぐことが可能となる。   As described above, in the priority determination method for the swap-out process according to the present embodiment, when the HDD 104 is in the power saving state, the priority of the program to be swapped out is determined by the use of the HDD 104 of the program. A determination is made based on the history, and programs that use more HDD 104 are preferentially swapped out. Thereby, the management of the memory area in the power saving state of the HDD 104 can be made efficient. In addition, it is possible to prevent a swap-in process from occurring in the power saving state of the HDD 104 and a reduction in power saving efficiency of the HDD 104.

尚、上記の説明においては、図14において説明したように、ページフォルトの発生に際して、HDD104が省電力状態である場合に、HDD104の使用履歴が多いプログラムを優先的にスワップアウトの対象とする例を説明した。しかしながら、HDD104に電源が供給されている稼動状態であっても、同様の処理を行っても良い。これにより、その後HDD104が省電力状態となった場合、HDD104の使用履歴が少ないプログラム、即ち、HDD104の省電力状態においても動作している可能性の高いプログラムがRAM102に残ることとなる。また、HDD104の使用履歴が多いプログラム、即ち、HDD104の省電力状態において動作している可能性の低いプログラムがHDD104に退避されることとなる。これにより、HDD104の省電力状態における、スワップイン処理の発生を低減することが可能となる。   In the above description, as described with reference to FIG. 14, when a page fault occurs, when the HDD 104 is in a power saving state, a program with a large usage history of the HDD 104 is preferentially swapped out. Explained. However, similar processing may be performed even in an operating state in which power is supplied to the HDD 104. As a result, when the HDD 104 subsequently enters the power saving state, a program with a small usage history of the HDD 104, that is, a program that is likely to operate even in the power saving state of the HDD 104 remains in the RAM 102. In addition, a program with a large usage history of the HDD 104, that is, a program that is unlikely to operate in the power saving state of the HDD 104 is saved in the HDD 104. This can reduce the occurrence of swap-in processing in the power saving state of the HDD 104.

HDD104の省電力状態への遷移判断は、例えば、HDD104へのアクセスが所定期間行われなかったこと等により行われる。この所定期間の判断は、例えば省電力制御プログラム321が有するカウンタ機能等により判断される。ここで、メモリ管理ソフトウェア331は、ページフォルトの発生に際して、HDD104を省電力状態へと遷移させるタイミングを判断するカウンタ値を参照し、HDD104が省電力状態へと遷移するまでの期間が所定の閾値以下である場合に、上記説明したスワップアウトの優先度判断方法を適用するようにしても良い。これにより、HDD104の省電力状態への遷移タイミングが近い場合には、HDD104の使用履歴が少ないプログラム、即ち、HDD104の省電力状態においても動作している可能性の高いプログラムをRAM102に残し、上述した効果を得ることが可能となる。また、HDD104の省電力状態への遷移タイミングが遠い場合には、通常通りスワップ処理を実行することが可能となる。   The determination of the transition to the power saving state of the HDD 104 is made, for example, when the HDD 104 is not accessed for a predetermined period. This predetermined period is determined by, for example, a counter function that the power saving control program 321 has. Here, when a page fault occurs, the memory management software 331 refers to a counter value that determines the timing at which the HDD 104 transitions to the power saving state, and the period until the HDD 104 transitions to the power saving state is a predetermined threshold value. In the following cases, the swap-out priority determination method described above may be applied. As a result, when the transition timing of the HDD 104 to the power saving state is close, a program with a low usage history of the HDD 104, that is, a program that is likely to operate even in the power saving state of the HDD 104 is left in the RAM 102. It is possible to obtain the effect. Further, when the transition timing of the HDD 104 to the power saving state is far, swap processing can be executed as usual.

また、上記の説明においては、図14において説明したように、メモリ管理ソフトウェア331は、HDD104の復帰が完了してから、タスクマネージャ312を参照する例を説明した。この他、S1403〜S1405の処理とS1406、S1407の処理とを並行して行っても良いし、S1406、S1407の処理を先に行っても良い。また、図12に示す情報の管理をメモリ管理ソフトウェア331が直接行い、タスクマネージャ312を参照するまでもなく、スワップアウトの優先度を判断可能なようにしても良い。   In the above description, as described with reference to FIG. 14, the memory management software 331 refers to the task manager 312 after the restoration of the HDD 104 is completed. In addition, the processes of S1403 to S1405 and the processes of S1406 and S1407 may be performed in parallel, or the processes of S1406 and S1407 may be performed first. Also, the information shown in FIG. 12 may be managed directly by the memory management software 331, and the swap-out priority may be determined without referring to the task manager 312.

また、上記の説明においては、図12において説明したように、各プログラムによるHDD104の使用履歴が“多い”、“少ない”及び“無し”等のパラメータに基づいてスワップアウトの優先度を決定する例を説明した。この他、各プログラムがHDD104を使用した回数を数値情報として取得しても良いし、単位時間辺りのHDD104の使用回数、即ち使用頻度を取得するようにしても良い。また、上記の説明においては、仮想記憶制御の方式としてページング方式を用いる例を説明したが、セグメント方式であっても同様に適用可能である。   In the above description, as described with reference to FIG. 12, an example in which the priority of swap-out is determined based on parameters such as “high”, “low”, and “none” in the usage history of the HDD 104 by each program. Explained. In addition, the number of times each program uses the HDD 104 may be acquired as numerical information, or the number of times the HDD 104 is used per unit time, that is, the usage frequency may be acquired. In the above description, an example in which the paging method is used as the virtual storage control method has been described. However, the segmented method can be similarly applied.

また、上記の説明においては、図12において説明したように、HDD104の使用履歴に基づき、HDD104の使用履歴が多いプログラムを優先的にスワップアウトの対象とする例を説明した。この他、図15に示すように、各プログラムがHDD104を使用するか否かの情報をタスクマネージャ312が管理し、その情報に基づいてHDD104を使用するプログラムを優先的にスワップアウトの対象とすることも可能である。   In the above description, as described with reference to FIG. 12, an example in which programs with a large usage history of the HDD 104 are preferentially swapped out based on the usage history of the HDD 104 has been described. In addition, as shown in FIG. 15, the task manager 312 manages information on whether or not each program uses the HDD 104, and programs that use the HDD 104 are preferentially swapped out based on the information. It is also possible.

また、上記実施の形態1〜3の説明においては、HDD104が非稼動である状態として、省電力制御プログラム321によって電源供給が制限された状態を例として説明した。この他、画像処理装置1の起動時の設定により、HDD104を起動しない場合等が挙げられる。   In the description of the first to third embodiments, the state in which the power supply is restricted by the power saving control program 321 is described as an example in which the HDD 104 is not operating. In addition, there is a case where the HDD 104 is not started due to the setting at the time of starting the image processing apparatus 1.

本発明の実施形態に係る画像処理装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像処理装置のソフトウェア構成を示すブロック図である。It is a block diagram which shows the software structure of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像処理装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像処理装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像処理装置のメモリ要求動作を示すシーケンス図である。It is a sequence diagram which shows memory request | requirement operation | movement of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係る画像処理装置のソフトウェア構成における処理の流れを示すブロック図である。It is a block diagram which shows the flow of a process in the software structure of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るメモリ管理ソフトウェアの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the memory management software which concerns on embodiment of this invention. 本発明の他の実施形態に係る画像処理装置のソフトウェア構成を示すブロック図である。It is a block diagram which shows the software structure of the image processing apparatus which concerns on other embodiment of this invention. 本発明の他の実施形態に係る画像処理装置のメモリ要求動作を示すシーケンス図である。It is a sequence diagram which shows the memory request | requirement operation | movement of the image processing apparatus which concerns on other embodiment of this invention. 本発明の実施形態に係る画像処理装置のソフトウェア構成における処理の流れを示すブロック図である。It is a block diagram which shows the flow of a process in the software structure of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施形態に係るメモリ管理ソフトウェアの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the memory management software which concerns on embodiment of this invention. 本発明の他の実施形態に係るプログラムの動作態様に係る情報を示す表である。It is a table | surface which shows the information which concerns on the operation | movement aspect of the program which concerns on other embodiment of this invention. 本発明の他の実施形態に係る画像処理装置のソフトウェア構成を示すブロック図である。It is a block diagram which shows the software structure of the image processing apparatus which concerns on other embodiment of this invention. 本発明の実施形態に係るメモリ管理ソフトウェアの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the memory management software which concerns on embodiment of this invention. 従来技術に係る仮想記憶制御の態様を示す図である。It is a figure which shows the aspect of the virtual memory control based on a prior art. 従来技術に係る仮想記憶技術を説明するための図である。It is a figure for demonstrating the virtual memory technique which concerns on a prior art.

符号の説明Explanation of symbols

100 コントローラ
100a ソフト制御部
100b メカ制御部
101 CPU
102 RAM
103 システムコントロールASIC
103a MMU
104 HDD
105 ROM
106 画像処理ASIC
107 可搬型記録媒体I/F
108 入出力・省電力制御ASIC
109 オペレーションパネルI/F
110 HOST I/F
111 NVRAM
112 オプションI/F
113 電源制御部
200 エンジン
201 エンジンコントローラ
202 スキャンエンジン
203 プリントエンジン
300 ソフトウェア
310 OS
311 省電力制御ライブラリ
312 タスクマネージャ
320 アプリケーション
321 省電力制御プログラム
322 プリントアプリケーション
323 スキャンアプリケーション
324 入手力アプリケーション
330 カーネル
331 メモリ管理ソフトウェア
332 デバイスドライバ
333 デバイス管理ソフトウェア
334 電源管理ソフトウェア
335 HDD起動ライブラリ
100 controller 100a software control unit 100b mechanical control unit 101 CPU
102 RAM
103 System Control ASIC
103a MMU
104 HDD
105 ROM
106 Image processing ASIC
107 Portable recording medium I / F
108 I / O and power saving control ASIC
109 Operation Panel I / F
110 HOST I / F
111 NVRAM
112 Option I / F
113 Power Control Unit 200 Engine 201 Engine Controller 202 Scan Engine 203 Print Engine 300 Software 310 OS
311 Power Saving Control Library 312 Task Manager 320 Application 321 Power Saving Control Program 322 Print Application 323 Scan Application 324 Availability Application 330 Kernel 331 Memory Management Software 332 Device Driver 333 Device Management Software 334 Power Management Software 335 HDD Startup Library

Claims (19)

仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御装置であって、
前記仮想記憶領域のうち前記実記憶領域に非対応の領域が要求された場合に、前記実記憶領域に保持された情報を前記主記憶装置とは異なる二次記憶装置に退避する情報退避部と、
前記要求された非対応の領域と前記退避された情報が保持されていた実記憶領域とを対応付ける記憶領域対応付け部とを有し、
前記情報退避部は、前記二次記憶装置の非稼動状態において前記非対応の領域が要求された場合に、前記二次記憶装置を稼動状態へと遷移させる処理に関する信号を発信し、前記二次記憶装置が稼働状態となった後に前記実記憶領域に保持された情報を前記二次記憶装置に退避することを特徴とする、仮想記憶制御装置。
A virtual storage control device that realizes a virtual storage area wider than the real storage area by associating a part of the virtual storage area defined virtually with the real storage area of the main storage device,
An information saving unit for saving information held in the real storage area to a secondary storage device different from the main storage device when a non-corresponding area is requested in the virtual storage area of the virtual storage area; ,
A storage area association unit that associates the requested non-corresponding area with the real storage area in which the saved information is held;
The information saving unit, when the non-corresponding area is requested in the non-operating state of the secondary storage device, transmits a signal related to the process of transitioning the secondary storage device to the operating state, and the secondary storage device A virtual storage control device that saves information held in the real storage area in the secondary storage device after the storage device is in an operating state.
前記二次記憶装置を稼動状態へと遷移させる処理に関する信号に応じて、前記二次記憶装置を稼動状態へと遷移させる二次記憶装置状態遷移部を更に有することを特徴とする、請求項1に記載の仮想記憶制御装置。   2. The apparatus according to claim 1, further comprising: a secondary storage device state transition unit that causes the secondary storage device to transition to the operating state in response to a signal related to the process of transitioning the secondary storage device to the operating state. The virtual storage control device according to 1. 前記二次記憶装置状態遷移部は、装置の動作態様に応じて前記二次記憶装置への電源供給を制限する省電力制御部を有し、
前記二次記憶装置の非稼動状態は、前記省電力制御部によって電源供給が制限された状態であることを特徴とする、請求項2に記載の仮想記憶制御装置。
The secondary storage device state transition unit includes a power saving control unit that limits power supply to the secondary storage device according to an operation mode of the device,
The virtual storage control device according to claim 2, wherein the non-operating state of the secondary storage device is a state in which power supply is restricted by the power saving control unit.
前記二次記憶装置状態遷移部は、オペレーティング・システムの機能によって実現されることを特徴とする、請求項2または3に記載の仮想記憶制御装置。   The virtual storage control device according to claim 2, wherein the secondary storage device state transition unit is realized by a function of an operating system. 前記二次記憶装置状態遷移部は、アプリケーション・プログラムの機能によって実現されることを特徴とする、請求項2または3に記載の仮想記憶制御装置。   The virtual storage control device according to claim 2, wherein the secondary storage device state transition unit is realized by a function of an application program. 前記二次記憶装置を制御する二次記憶装置制御部と、
前記二次記憶装置状態遷移部の命令に応じて前記二次記憶装置制御部を動作させる二次記憶装置駆動部とを更に有することを特徴とする、請求項2乃至5いずれか1項に記載の仮想記憶制御装置。
A secondary storage device controller for controlling the secondary storage device;
The secondary storage device drive unit that operates the secondary storage device control unit in accordance with a command from the secondary storage device state transition unit, further comprising: a secondary storage device drive unit. Virtual storage controller.
前記二次記憶装置制御部は、前記二次記憶装置状態遷移部の命令に応じて前記二次記憶装置への電源供給を制御する電源供給制御部を有することを特徴とする、請求項6に記載の仮想記憶制御装置。   The said secondary storage device control part has a power supply control part which controls the power supply to the said secondary storage device according to the command of the said secondary storage device state transition part, The Claim 6 characterized by the above-mentioned. The virtual storage control device described. 前記二次記憶装置制御部は、前記二次記憶装置状態遷移部の命令に応じて前記二次記憶装置を初期化する二次記憶装置初期化部を有することを特徴とする、請求項6に記載の仮想記憶制御装置。   The secondary storage device control unit includes a secondary storage device initialization unit that initializes the secondary storage device in accordance with an instruction from the secondary storage device state transition unit. The virtual storage control device described. 前記実記憶領域に保持された複数の情報のうち前記二次記憶装置に退避する情報を選択する際の優先度に関する情報を取得する退避優先度情報取得部と、
前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択する退避情報選択部とを更に有し、
前記実記憶領域に保持された情報は、当該実記憶領域において動作する複数のプログラムであり、
前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用態様に関する情報であることを特徴とする、請求項1乃至8いずれか1項に記載の仮想記憶制御装置。
A save priority information acquisition unit for acquiring information related to priority when selecting information to be saved in the secondary storage device among a plurality of pieces of information held in the real storage area;
A save information selection unit that selects information to be saved in the secondary storage device based on the acquired priority information;
The information held in the real storage area is a plurality of programs that operate in the real storage area,
The virtual storage control device according to claim 1, wherein the information on the priority is information on a usage mode of the secondary storage device of the program.
前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用履歴に関する情報であり、
前記退避情報選択部は、前記二次記憶装置の使用履歴の多いプログラムを優先して前記二次記憶装置に退避することを特徴とする、請求項9に記載の仮想記憶制御装置。
The information on the priority is information on a usage history of the secondary storage device of the program,
The virtual storage control device according to claim 9, wherein the save information selection unit preferentially saves a program having a large usage history of the secondary storage device to the secondary storage device.
前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用頻度に関する情報であり、
前記退避情報選択部は、前記二次記憶装置の使用頻度の高いプログラムを優先して前記二次記憶装置に退避することを特徴とする、請求項9に記載の仮想記憶制御装置。
The information on the priority is information on the usage frequency of the secondary storage device of the program,
The virtual storage control device according to claim 9, wherein the save information selection unit preferentially saves a program that is frequently used in the secondary storage device to the secondary storage device.
前記優先度に関する情報は、予め定められた前記プログラムの前記二次記憶装置の使用有無に関する情報であり、
前記退避情報選択部は、前記二次記憶装置を使用するプログラムを優先して前記二次記憶装置に退避することを特徴とする、請求項9に記載の仮想記憶制御装置。
The information on the priority is information on whether or not the secondary storage device of the predetermined program is used,
The virtual storage control device according to claim 9, wherein the save information selection unit preferentially saves a program that uses the secondary storage device to the secondary storage device.
前記退避情報選択部は、前記二次記憶装置の非稼動状態において前記非対応の領域が要求された場合に、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択することを特徴とする、請求項9乃至12いずれか1項に記載の仮想記憶制御装置。   The evacuation information selection unit selects information to be evacuated to the secondary storage device based on the acquired priority information when the non-corresponding area is requested in the non-operating state of the secondary storage device The virtual storage control device according to claim 9, wherein the virtual storage control device is a virtual storage control device. 前記二次記憶装置を稼動状態から非稼動状態に遷移させる二次記憶装置稼動状態制御部を更に有し、
前記二次記憶装置稼動状態制御部は、前記二次記憶装置を稼動状態から非稼動状態に遷移させるタイミングに関する情報を有し、
前記退避情報選択部は、前記タイミングが所定の期間以内である場合に、前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択することを特徴とする、請求項9乃至12いずれか1項に記載の仮想記憶制御装置。
A secondary storage device operating state control unit for transitioning the secondary storage device from an operating state to a non-operating state;
The secondary storage device operating state control unit has information related to the timing of transitioning the secondary storage device from the operating state to the non-operating state,
10. The save information selection unit, when the timing is within a predetermined period, selects information to be saved in the secondary storage device based on the acquired priority information. The virtual storage control device according to any one of 1 to 12.
仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御方法であって、
前記二次記憶装置の非稼動状態において前記実記憶領域に非対応の領域が要求された場合に、前記二次記憶装置を稼動状態へと遷移させる処理に関する信号を発信し、
前記二次記憶装置が稼働状態となった後に前記実記憶領域に保持された情報を前記二次記憶装置に退避し、
前記要求された非対応の領域と前記退避された情報が保持されていた実記憶領域とを対応付けることを特徴とする、仮想記憶制御方法。
A virtual storage control method for realizing a virtual storage area wider than the real storage area by associating a part of the virtual storage area defined virtually with the real storage area of the main storage device,
When a non-corresponding area is requested for the real storage area in the non-operating state of the secondary storage device, a signal relating to a process for transitioning the secondary storage device to the operating state is transmitted,
Information stored in the real storage area after the secondary storage device is in an operating state is saved in the secondary storage device;
A virtual storage control method, wherein the requested non-corresponding area is associated with a real storage area in which the saved information is held.
請求項15に記載の仮想記憶制御方法を仮想記憶制御装置に実行させることを特徴とする仮想記憶制御プログラム。   A virtual storage control program that causes a virtual storage control device to execute the virtual storage control method according to claim 15. 請求項16に記載の仮想記憶制御プログラムを仮想記憶制御装置が読み取り可能な形式で記録したことを特徴とする記録媒体。   17. A recording medium in which the virtual storage control program according to claim 16 is recorded in a format readable by a virtual storage control device. 仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御装置であって、
前記仮想記憶領域のうち前記実記憶領域に非対応の領域が要求された場合に、前記実記憶領域に保持された情報を前記主記憶装置とは異なる二次記憶装置に退避する情報退避部と、
前記実記憶領域に保持された複数の情報のうち前記二次記憶装置に退避する情報を選択する際の優先度に関する情報を取得する退避優先度情報取得部と、
前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択する退避情報選択部とを更に有し、
前記実記憶領域に保持された情報は、当該実記憶領域において動作する複数のプログラムであり、
前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用態様に関する情報であることを特徴とする、仮想記憶制御装置。
A virtual storage control device that realizes a virtual storage area wider than the real storage area by associating a part of the virtual storage area defined virtually with the real storage area of the main storage device,
An information saving unit for saving information held in the real storage area to a secondary storage device different from the main storage device when a non-corresponding area is requested in the virtual storage area of the virtual storage area; ,
A save priority information acquisition unit for acquiring information related to priority when selecting information to be saved in the secondary storage device among a plurality of pieces of information held in the real storage area;
A save information selection unit that selects information to be saved in the secondary storage device based on the acquired priority information;
The information held in the real storage area is a plurality of programs that operate in the real storage area,
The virtual storage control device characterized in that the information on the priority is information on a usage mode of the secondary storage device of the program.
仮想的に定義された仮想記憶領域の一部と主記憶装置の実記憶領域とを対応付けることにより、実記憶領域よりも広い仮想記憶領域を実現する仮想記憶制御方法であって、
前記仮想記憶領域のうち前記実記憶領域に非対応の領域が要求された場合に、前記実記憶領域に保持された情報を前記主記憶装置とは異なる二次記憶装置に退避することを決定し、
前記実記憶領域に保持された複数の情報のうち前記二次記憶装置に退避する情報を選択する際の優先度に関する情報を取得し、
前記取得した優先度に関する情報に基づいて前記二次記憶装置に退避する情報を選択するステップを有し、
前記実記憶領域に保持された情報は、当該実記憶領域において動作する複数のプログラムであり、
前記優先度に関する情報は、前記プログラムの前記二次記憶装置の使用態様に関する情報であることを特徴とする、仮想記憶制御方法。
A virtual storage control method for realizing a virtual storage area wider than the real storage area by associating a part of the virtual storage area defined virtually with the real storage area of the main storage device,
When a non-corresponding area is requested from the virtual storage area, the information stored in the real storage area is decided to be saved in a secondary storage device different from the main storage device. ,
Obtaining information on priority when selecting information to be saved in the secondary storage device from among a plurality of pieces of information held in the real storage area;
Selecting the information to be saved in the secondary storage device based on the information on the obtained priority;
The information held in the real storage area is a plurality of programs that operate in the real storage area,
The virtual storage control method, wherein the information on the priority is information on a usage mode of the secondary storage device of the program.
JP2007273073A 2007-10-19 2007-10-19 Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium Expired - Fee Related JP4958723B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007273073A JP4958723B2 (en) 2007-10-19 2007-10-19 Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007273073A JP4958723B2 (en) 2007-10-19 2007-10-19 Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium

Publications (2)

Publication Number Publication Date
JP2009104247A true JP2009104247A (en) 2009-05-14
JP4958723B2 JP4958723B2 (en) 2012-06-20

Family

ID=40705882

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007273073A Expired - Fee Related JP4958723B2 (en) 2007-10-19 2007-10-19 Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium

Country Status (1)

Country Link
JP (1) JP4958723B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120047859A (en) * 2009-06-22 2012-05-14 아마존 테크놀로지스, 인크. Quiescent state retention mode for processor

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5635228A (en) * 1979-08-31 1981-04-07 Fujitsu Ltd Power supply system for memory device
JPH04141753A (en) * 1990-10-03 1992-05-15 Nec Corp Swap processing system
JPH04230508A (en) * 1990-10-29 1992-08-19 Internatl Business Mach Corp <Ibm> Apparatus and method for controlling electric power with page arrangment control
JPH04290114A (en) * 1991-03-19 1992-10-14 Omron Corp Memory control system for computer
JPH05265845A (en) * 1992-03-24 1993-10-15 Mitsubishi Electric Corp Swapping control system
JPH0756800A (en) * 1993-08-12 1995-03-03 Toshiba Corp Dynamic management device for memory area
JPH07160574A (en) * 1993-12-13 1995-06-23 Matsushita Electric Ind Co Ltd Information processor
JPH07302138A (en) * 1994-05-09 1995-11-14 Canon Inc Electronic equipment and its power control method
JP2000200219A (en) * 1999-01-04 2000-07-18 Nec Corp Virtual memory management system
JP2000215100A (en) * 1999-01-21 2000-08-04 Nec Corp Power-saving memory management system
JP2004227188A (en) * 2003-01-21 2004-08-12 Fujitsu Ltd Job swap method, job management device and job management program
JP2004272460A (en) * 2003-03-06 2004-09-30 Fuji Xerox Co Ltd Information processor, image forming device, memory management method, program therefor, and recording medium recorded with program

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5635228A (en) * 1979-08-31 1981-04-07 Fujitsu Ltd Power supply system for memory device
JPH04141753A (en) * 1990-10-03 1992-05-15 Nec Corp Swap processing system
JPH04230508A (en) * 1990-10-29 1992-08-19 Internatl Business Mach Corp <Ibm> Apparatus and method for controlling electric power with page arrangment control
JPH04290114A (en) * 1991-03-19 1992-10-14 Omron Corp Memory control system for computer
JPH05265845A (en) * 1992-03-24 1993-10-15 Mitsubishi Electric Corp Swapping control system
JPH0756800A (en) * 1993-08-12 1995-03-03 Toshiba Corp Dynamic management device for memory area
JPH07160574A (en) * 1993-12-13 1995-06-23 Matsushita Electric Ind Co Ltd Information processor
JPH07302138A (en) * 1994-05-09 1995-11-14 Canon Inc Electronic equipment and its power control method
JP2000200219A (en) * 1999-01-04 2000-07-18 Nec Corp Virtual memory management system
JP2000215100A (en) * 1999-01-21 2000-08-04 Nec Corp Power-saving memory management system
JP2004227188A (en) * 2003-01-21 2004-08-12 Fujitsu Ltd Job swap method, job management device and job management program
JP2004272460A (en) * 2003-03-06 2004-09-30 Fuji Xerox Co Ltd Information processor, image forming device, memory management method, program therefor, and recording medium recorded with program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120047859A (en) * 2009-06-22 2012-05-14 아마존 테크놀로지스, 인크. Quiescent state retention mode for processor
JP2012530973A (en) * 2009-06-22 2012-12-06 アマゾン テクノロジーズ インコーポレイテッド Static state storage mode for processors
KR101668507B1 (en) * 2009-06-22 2016-10-21 아마존 테크놀로지스, 인크. Quiescent state retention mode for processor

Also Published As

Publication number Publication date
JP4958723B2 (en) 2012-06-20

Similar Documents

Publication Publication Date Title
JP5289153B2 (en) Information processing apparatus, control method therefor, and computer program
JP5419500B2 (en) Program and information processing apparatus
JP3664926B2 (en) Image processing device
JP5180613B2 (en) Information processing apparatus and control method thereof
US7817298B2 (en) Image processing apparatus and method for faster starting of an image processing apparatus using priority functions
JP4182090B2 (en) Data processing device
JP6164938B2 (en) Image forming apparatus, control method therefor, and program
JP2007001090A (en) Data backup system for image forming apparatus, image forming apparatus, and data backup method
JP5159377B2 (en) Information processing apparatus and information processing method
JP2008269237A (en) Print system and printer
JP4958723B2 (en) Virtual storage control device, virtual storage control method, virtual storage control program, and recording medium
JP2007223163A (en) Image forming apparatus and image displaying method
JP5166955B2 (en) Information processing apparatus, information processing method, and information processing program
JP2008030477A (en) Recording device and control method of recording device
CN111541825B (en) Electronic device and control method thereof
US9081523B2 (en) Non-transitory computer readable recording medium storing job transmission program for transmission of job to electronic device and electronic device executing job
JP2005094301A (en) Image forming apparatus
JP5480194B2 (en) Image forming apparatus and system management program
JP2018078485A (en) Information processing apparatus and starting method of information processing apparatus
JP2009140069A (en) Printing system
JP2011077619A (en) Facsimile receiving device, method for controlling the same, and program
JP2007136824A (en) Printer, printing method, computer program, and storage medium
JP2009100103A (en) Printing device
JP2011120040A (en) Image processor
JP5509704B2 (en) Information processing apparatus, log management method, and log management program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100603

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20100609

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20100609

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110613

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110802

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110926

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120319

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

Free format text: PAYMENT UNTIL: 20150330

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4958723

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees