[go: up one dir, main page]

JP2010244342A - Memory management control device and memory management control method - Google Patents

Memory management control device and memory management control method Download PDF

Info

Publication number
JP2010244342A
JP2010244342A JP2009093082A JP2009093082A JP2010244342A JP 2010244342 A JP2010244342 A JP 2010244342A JP 2009093082 A JP2009093082 A JP 2009093082A JP 2009093082 A JP2009093082 A JP 2009093082A JP 2010244342 A JP2010244342 A JP 2010244342A
Authority
JP
Japan
Prior art keywords
image forming
memory
garbage collection
forming apparatus
memory management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009093082A
Other languages
Japanese (ja)
Inventor
Ryo Iwasaki
遼 岩崎
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 JP2009093082A priority Critical patent/JP2010244342A/en
Publication of JP2010244342A publication Critical patent/JP2010244342A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Memory System (AREA)
  • Facsimiles In General (AREA)

Abstract

【課題】使用できるオブジェクトを限定することなく且つ大容量の物理メモリを必要とすることなく、ガベージコレクションの発生を制御可能なメモリ管理制御技術を提供する。
【解決手段】電力モード移行検知部102は、省電力モードへの移行条件の成立を検知する。電力制御部104は、省電力モードへの移行条件が成立したと電力モード移行検知部102が検知した場合、各ハードウェアの動作状況を確認して、省電力モードに移行可能であるか否かを判断する。GC制御部105は、省電力モードに移行可能であると電力制御部104が判断した場合、ガベージコレクタ101に対してガベージコレクションの発生を要求する。ガベージコレクタ101は、ガベージコレクションを発生させる。
【選択図】図3
A memory management control technique capable of controlling the occurrence of garbage collection without limiting the objects that can be used and without requiring a large-capacity physical memory.
A power mode transition detection unit detects that a condition for transition to a power saving mode is satisfied. When the power mode transition detection unit 102 detects that the condition for transition to the power saving mode is satisfied, the power control unit 104 checks the operation status of each hardware, and determines whether or not the transition to the power saving mode is possible. Judging. The GC control unit 105 requests the garbage collector 101 to generate a garbage collection when the power control unit 104 determines that it is possible to shift to the power saving mode. The garbage collector 101 generates garbage collection.
[Selection] Figure 3

Description

本発明は、メモリ管理制御装置及びメモリ管理制御方法に関する。   The present invention relates to a memory management control device and a memory management control method.

画像形成装置では、コピーやプリンタの生産性やファクシミリの通信性能などの各種性能を安定させることが必要である。一方、画像形成装置の中には、ガベージコレクション(以下GCという)機能を有するオブジェクト指向プログラミング言語によって実装されるソフトウェアにより制御される機種がある。このような機種においては、動作中にメジャーガベージコレクション(以下 メジャーGCという)が発生する回数を抑えて性能を安定させる必要がある。尚、ガベージコレクション及びメジャーガベージコレクションとは、オペレーティング・システム(以下OSという)のメモリ管理機能の一つであり、プログラムが使用しなくなったメモリ領域や、プログラム間の隙間のメモリ領域を集めて、連続した利用可能なメモリ領域を増やす技術である。このメジャーGCが不完全なOSでは次第に利用可能なメモリが減ってゆくため、一定期間ごとに再起動を強いられることになる。従って、メジャーGCを発生させることは重要であるが、一方で、メジャーGCの発生を抑えなければならない理由は例えば以下の通りである。様々な機能が搭載されている画像形成装置では多くのヒープメモリが必要とされるが、多くのヒープメモリを確保している場合には、メジャーGCの処理に5〜6秒かかり、その間、通常の処理は停止させられてしまうからである。そこで、使用するオブジェクトを限定することでメジャーGCを発生させない技術が考えられ既に知られている。特許文献1には、GCを発生させない目的で、使用する通信プロトコルや同時セッション数などを制限することで、同種のオブジェクトを使い回すことを可能にしている。そのために、新しい通信が発生した際にも、新しいオブジェクトを生成する必要がないために、通信中にGCを発生させることをなくしている。   In an image forming apparatus, it is necessary to stabilize various performances such as copy and printer productivity and facsimile communication performance. On the other hand, some image forming apparatuses are controlled by software implemented by an object-oriented programming language having a garbage collection (hereinafter referred to as GC) function. In such a model, it is necessary to stabilize the performance by suppressing the number of times that major garbage collection (hereinafter referred to as major GC) occurs during operation. Garbage collection and major garbage collection are one of the memory management functions of the operating system (hereinafter referred to as OS), and collect memory areas that are no longer used by programs and memory areas between programs. This is a technique for increasing the continuous usable memory area. In an OS in which this major GC is incomplete, the memory that can be used is gradually reduced, so that a restart is forced at regular intervals. Therefore, it is important to generate a major GC. On the other hand, the reason why the occurrence of a major GC must be suppressed is as follows, for example. An image forming apparatus equipped with various functions requires a large amount of heap memory. However, when a large amount of heap memory is secured, the major GC process takes 5 to 6 seconds. This is because the process is stopped. Therefore, a technique that does not generate a major GC by limiting the objects to be used is considered and already known. In Patent Document 1, it is possible to reuse objects of the same type by limiting the communication protocol to be used and the number of simultaneous sessions for the purpose of not generating GC. For this reason, it is not necessary to generate a new object even when a new communication occurs, and therefore no GC is generated during the communication.

特許文献1の技術では、使用する機能を限定することで、使用するオブジェクトを限定しており、通信などのある程度プロトコルの決まっているものに対しては、この技術を適用することが可能である。しかし、もともと多くの機能を有しており更に追加で機能をインストールすることが考えられる画像形成装置に対してこの技術を適用する場合、使用するオブジェクトを限定することは困難である。また、生成される可能性のあるすべてのオブジェクトをカバーするようなメモリ領域をヒープメモリとして確保して、そのメモリ領域を使いまわそうとすると膨大な量のメモリ領域が必要になる。そのために大容量の物理メモリを画像形成装置に搭載しなくてはならないという問題があった。   In the technology of Patent Document 1, the objects to be used are limited by limiting the functions to be used, and this technology can be applied to a device whose protocol is determined to some extent such as communication. . However, when this technique is applied to an image forming apparatus that originally has many functions and can be additionally installed, it is difficult to limit the objects to be used. Also, if a memory area that covers all the objects that can be generated is secured as a heap memory and an attempt is made to reuse the memory area, a huge amount of memory area is required. Therefore, there is a problem that a large-capacity physical memory has to be mounted on the image forming apparatus.

本発明は、上記に鑑みてなされたものであって、使用できるオブジェクトを限定することなく且つ大容量の物理メモリを必要とすることなく、ガベージコレクションの発生を制御することが可能なメモリ管理制御装置及びメモリ管理制御方法を提供することを目的とする。   The present invention has been made in view of the above, and is capable of controlling the occurrence of garbage collection without limiting the objects that can be used and without requiring a large-capacity physical memory. An object is to provide a device and a memory management control method.

上述した課題を解決し、目的を達成するために、本発明は、ガベージコレクション機能を備えるプログラミング言語を備えるオブジェクト指向プログラミング言語によって実装されるソフトウェアにより制御されるメモリ管理制御装置であって、ユーザが当該画像形成装置を少なくとも所定の時間使用していないことを検知する検知手段と、前記検知手段の検知結果に応じて、ガベージコレクションを発生させる制御手段とを備えることを特徴とする。   In order to solve the above-mentioned problems and achieve the object, the present invention is a memory management control device controlled by software implemented by an object-oriented programming language having a programming language having a garbage collection function, The image forming apparatus includes: a detection unit that detects that the image forming apparatus has not been used for at least a predetermined time; and a control unit that generates garbage collection according to a detection result of the detection unit.

また、本発明は、ガベージコレクション機能を備えるプログラミング言語を備えるオブジェクト指向プログラミング言語によって実装されるソフトウェアにより制御されるメモリ管理制御装置で実行されるメモリ管理制御方法であって、前記メモリ管理制御装置は、検知手段と、制御手段とを備え、前記検知手段が、ユーザが当該画像形成装置を少なくとも所定の時間使用していないことを検知する検知ステップと、前記制御手段が、前記検知ステップでの検知結果に応じて、ガベージコレクションを発生させる制御ステップとを含むことを特徴とする。   The present invention is also a memory management control method executed by a memory management control device controlled by software implemented by an object-oriented programming language having a programming language having a garbage collection function, wherein the memory management control device is Detecting means and control means, wherein the detecting means detects that the user has not used the image forming apparatus for at least a predetermined time, and the control means detects in the detecting step. And a control step of generating garbage collection according to the result.

本発明によれば、使用できるオブジェクトを限定することなく且つ大容量の物理メモリを必要とすることなく、ガベージコレクションの発生を制御することが可能になる。   According to the present invention, it is possible to control the occurrence of garbage collection without limiting the objects that can be used and without requiring a large-capacity physical memory.

図1は、一実施の形態にかかる画像形成装置の外観を例示する図である。FIG. 1 is a diagram illustrating an appearance of an image forming apparatus according to an embodiment. 図2は、画像形成装置10のハードウェア構成を示した図である。FIG. 2 is a diagram illustrating a hardware configuration of the image forming apparatus 10. 図3は、画像形成装置10のソフトウェア構成を示した図である。FIG. 3 is a diagram illustrating a software configuration of the image forming apparatus 10. 図4は、画像形成装置10の行う省エネモード移行処理の手順を示すフローチャートである。FIG. 4 is a flowchart illustrating a procedure of energy saving mode transition processing performed by the image forming apparatus 10. 図5は、一変形例にかかるステップS4の処理の詳細な手順を示す図である。FIG. 5 is a diagram illustrating a detailed procedure of the process of step S4 according to a modification. 図6は、一変形例にかかる画像形成装置10の行う省エネモード移行処理の手順を示すフローチャートである。FIG. 6 is a flowchart illustrating the procedure of the energy saving mode transition process performed by the image forming apparatus 10 according to a modification.

以下に添付図面を参照して、この発明にかかるメモリ管理制御装置及びメモリ管理制御方法の最良な実施の形態を詳細に説明する。   Exemplary embodiments of a memory management control device and a memory management control method according to the present invention will be explained below in detail with reference to the accompanying drawings.

(1)構成
本実施の形態においては、メモリ管理制御装置を画像形成装置に適用した例について説明する。図1は、本実施の形態にかかる画像形成装置の外観を例示する図である。画像形成装置10は、コピー機能、プリント機能、スキャナ機能及びファクシミリ機能を有するMFP(Multi-Function Peripheral)であり、オートドキュメント・フィーダ(ADF)12と、ADF12により供給されたドキュメント(被写体)からの反射光を光電変換して画像信号を生成するCCD(光電素子)を備えたイメージ・リーダ14とを備えている。ADF12とイメージ・リーダ14とはスキャナ装置を形成している。尚、ADF12を使用しない場合には、イメージ・リーダ14は、原稿台に沿って移動して、ドキュメントを読み取る構成とされていても良い。この場合、イメージ・リーダ14とその駆動制御装置をスキャナ装置として参照することができる。
(1) Configuration In this embodiment, an example in which a memory management control device is applied to an image forming apparatus will be described. FIG. 1 is a diagram illustrating the appearance of the image forming apparatus according to the present embodiment. The image forming apparatus 10 is an MFP (Multi-Function Peripheral) having a copy function, a print function, a scanner function, and a facsimile function, and includes an auto document feeder (ADF) 12 and a document (subject) supplied from the ADF 12. And an image reader 14 having a CCD (photoelectric element) that photoelectrically converts the reflected light to generate an image signal. The ADF 12 and the image reader 14 form a scanner device. When the ADF 12 is not used, the image reader 14 may be configured to read the document by moving along the document table. In this case, the image reader 14 and its drive control device can be referred to as a scanner device.

このような構成において、ユーザがADF12のフィーダにドキュメントをセットし、オペレーション・パネルを介して操作入力を行なうと、ドキュメントがADF12によりイメージ・リーダ14へと送られ、CCDが生成した画像信号に基づいて画像データが生成される。尚、オペレーション・パネルとは、ユーザの操作入力を受け付けるキーボードやマウスなどの操作入力装置と、情報を表示する表示装置とが一体的に形成されたものである。そして、生成された画像データは、コントロール・ユニット16へと送られて、コントロール・ユニット16が含む制御処理部により画像処理が行われる。画像処理が行われた画像データは、例えばFIFO(First in-First out)バッファなどに送られて、画像データに対応して変調されたレーザ・ビームまたはLED光線が露光光学系を介して感光体ドラム18上に照射され、変調されたレーザ・ビームなどに応答して生成されるフォト・キャリアにより感光体ドラム18上の帯電がキャンセルされて、静電潜像が形成される。   In such a configuration, when a user sets a document in the feeder of the ADF 12 and inputs an operation via the operation panel, the document is sent to the image reader 14 by the ADF 12, and based on the image signal generated by the CCD. Image data is generated. The operation panel is an operation input device such as a keyboard or a mouse that receives user operation input and a display device that displays information. The generated image data is sent to the control unit 16, and image processing is performed by a control processing unit included in the control unit 16. The image data subjected to the image processing is sent to, for example, a FIFO (First in-First Out) buffer or the like, and a laser beam or LED beam modulated in accordance with the image data is passed through the exposure optical system to the photosensitive member. The charge on the photosensitive drum 18 is canceled by a photo carrier irradiated on the drum 18 and generated in response to a modulated laser beam or the like, and an electrostatic latent image is formed.

その後、感光体ドラム18に形成された静電潜像は、感光体ドラム18の回動に伴って現像装置20へと搬送されて行き、現像装置20により現像される。現像装置20により現像された着色像は、その後、転写部材22により中間転写体24へと転写される。中間転写体24は、さらに矢線A方向へと転写された着色像と共に移動して行き、2次転写装置26により、紙またはプラスチック・シートなどの記録媒体へと転写され、さらに定着装置28により定着される。このようにして、CCDが生成した画像信号に基づいて記録媒体に画像が形成される。   Thereafter, the electrostatic latent image formed on the photosensitive drum 18 is conveyed to the developing device 20 as the photosensitive drum 18 rotates, and is developed by the developing device 20. The colored image developed by the developing device 20 is then transferred to the intermediate transfer member 24 by the transfer member 22. The intermediate transfer member 24 further moves together with the colored image transferred in the direction of the arrow A, is transferred to a recording medium such as paper or a plastic sheet by the secondary transfer device 26, and is further transferred by the fixing device 28. It is fixed. In this way, an image is formed on the recording medium based on the image signal generated by the CCD.

なお、図1に示した画像形成装置10は、感光体ドラム18としてシアン(C)、マゼンタ(M)、イエロー(Y)、ブラック(B)などの4色に対応するカラー画像形成装置として示されている。しかし、Bに対応する感光体ドラムのみを備え、中間転写体を使用せずに転写材に着色像を転写するモノクロ画像形成装置、プリンタとすることもできる。   The image forming apparatus 10 shown in FIG. 1 is shown as a color image forming apparatus corresponding to four colors such as cyan (C), magenta (M), yellow (Y), and black (B) as the photosensitive drum 18. Has been. However, it is also possible to provide a monochrome image forming apparatus or printer that includes only a photosensitive drum corresponding to B and transfers a colored image onto a transfer material without using an intermediate transfer member.

また、画像形成装置10には、公衆電話回線またはISDNなどの回線30に接続されていて、アナログまたはディジタル通信によるファクシミリ伝送、またはメール伝送を行う。さらに、画像形成装置10は、10BASE−100などのイーサネット(登録商標)接続ケーブル32を介して、ローカルエリア・ネットワーク(LAN)、またはワイドエリア・ネットワーク(WAN)、またはインターネットなどのネットワークに接続され、メールなどのネットワーク・サービスを提供している。画像形成装置10は、フロッピー(登録商標)、CD−ROM、ハードディスク・ドライブ(図示せず)といった大容量記憶装置およびRAMなどの記憶装置を備えていて、取得した画像データを蓄積し、ユーザの指令または要求に基づいて、蓄積した画像データを処理している。   The image forming apparatus 10 is connected to a line 30 such as a public telephone line or ISDN, and performs facsimile transmission by analog or digital communication or mail transmission. Further, the image forming apparatus 10 is connected to a network such as a local area network (LAN), a wide area network (WAN), or the Internet via an Ethernet (registered trademark) connection cable 32 such as 10BASE-100. , Providing network services such as email. The image forming apparatus 10 includes a mass storage device such as a floppy (registered trademark), a CD-ROM, and a hard disk drive (not shown) and a storage device such as a RAM, accumulates acquired image data, and The accumulated image data is processed based on the command or request.

図2は、画像形成装置10のハードウェア構成を示した図である。同図に示されるように、画像形成装置10は、スキャナI/F54と、入出力I/F56と、CPU42と、RAM44と、ROM46とを備えている。   FIG. 2 is a diagram illustrating a hardware configuration of the image forming apparatus 10. As shown in FIG. 1, the image forming apparatus 10 includes a scanner I / F 54, an input / output I / F 56, a CPU 42, a RAM 44, and a ROM 46.

CPU42は、画像形成装置10全体を制御する。また、CPU42は、時間をカウントするタイマを有する。ROM46は、各種設定データやCPU42が実行する各種プログラムを記憶する。RAM44は、各種設定データや各種プログラムを一時的に記憶するものであり、CPU42が各種プログラムを実行する際の作業領域として機能する。スキャナI/F54は、画像形成装置が備えるスキャナ装置50により取得された画像データが入力されると、当該画像データを内部処理に適した形式に変換して、内部バス76を介してCPU42に対して割り込み処理によって受け渡すと共に、画像処理部48に受け渡す。入出力I/F56は、オペレーション・パネル52においてユーザの操作入力が行われると、当該操作入力のデータを内部処理に適した形式に変換して、内部バス76を介してCPU42に対して割り込み処理によって受け渡す。画像処理部48は、スキャナ装置50が取得した画像データを処理し、文字イメージ処理、画像イメージ処理および彩色判定などの処理を行い、処理単位ごとにFIFOバッファ(図示せず)に送り、それ以後の各機能処理部における処理へと提供している。また、取得されたオリジナル画像は、RAM44などの記憶部に記憶される。その後オリジナル画像はユーザ指令に応答してRAM44に読み出され、ユーザ指定に応答した画像処理が実行される。   The CPU 42 controls the entire image forming apparatus 10. Further, the CPU 42 has a timer for counting time. The ROM 46 stores various setting data and various programs executed by the CPU 42. The RAM 44 temporarily stores various setting data and various programs, and functions as a work area when the CPU 42 executes the various programs. When the image data acquired by the scanner device 50 included in the image forming apparatus is input to the scanner I / F 54, the scanner I / F 54 converts the image data into a format suitable for internal processing, and sends it to the CPU 42 via the internal bus 76. Then, the data is transferred by the interrupt process and transferred to the image processing unit 48. When a user's operation input is performed on the operation panel 52, the input / output I / F 56 converts the data of the operation input into a format suitable for internal processing, and interrupts the CPU 42 via the internal bus 76. Pass by. The image processing unit 48 processes the image data acquired by the scanner device 50, performs character image processing, image image processing, and color determination, and sends them to a FIFO buffer (not shown) for each processing unit. It provides to the processing in each function processing unit. The acquired original image is stored in a storage unit such as the RAM 44. Thereafter, the original image is read into the RAM 44 in response to the user command, and image processing in response to the user designation is executed.

制御処理部40は、さらにファクシミリ・コントローラ58、エンジン・コントローラ60、ネットワーク・インタフェース・カード(NIC)62と、ハードディスクやフロッピー(登録商標)ディスクなどの外部記憶装置を管理するIDE(Integrated Drive Electronics)などのインタフェース64などを含む機能処理部、およびそのためのI/Fを備えている。各機能処理部の処理を説明すると、ファクシミリ・コントローラ58は、ファクシミリ・フォーマットへと変換された画像データに対してファクシミリ番号などを対応させ、さらにG3、G4、T−30などのプロトコルを使用して、モデムなどのファクシミリ送受信装置78を介して直接、公衆電話回線またはDSU/TA68を通してファクシミリ機能を提供している。   The control processing unit 40 further includes an IDE (Integrated Drive Electronics) that manages a facsimile controller 58, an engine controller 60, a network interface card (NIC) 62, and an external storage device such as a hard disk or a floppy (registered trademark) disk. A function processing unit including an interface 64 and the like, and an I / F for the function processing unit. Explaining the processing of each function processing unit, the facsimile controller 58 uses a protocol such as G3, G4, T-30, etc., associating a facsimile number with the image data converted into the facsimile format. A facsimile function is provided directly through a public telephone line or DSU / TA 68 via a facsimile transmission / reception device 78 such as a modem.

エンジン・コントローラ60は、画像形成装置の中心的な機能処理部であり、画像制御装置の感光体回転駆動、帯電、露光、現像、転写、定着などの作像シーケンスを、それぞれのコントローラやドライバを使用して制御している。NIC62は、ネットワーク・インタフェース・カードとして構成されており、ソフトウェア及びハードウェア的に、データリンク層レベルおよび物理層レベルでの通信を管理する機能処理部を提供している。NIC62は、イーサネット(登録商標)を経由してSMTPまたはPOP3プロトコルを用いてメール通信などおよびTCP/IP、UDP/IP、NETBEUIなどのレベルでのデータ送受信を行っている。   The engine controller 60 is a central functional processing unit of the image forming apparatus, and performs image forming sequences such as photoconductor rotation driving, charging, exposure, development, transfer, and fixing of the image control apparatus. Use and control. The NIC 62 is configured as a network interface card, and provides a function processing unit that manages communication at the data link layer level and the physical layer level in terms of software and hardware. The NIC 62 performs mail transmission and reception and data transmission / reception at a level such as TCP / IP, UDP / IP, and NETBEUI using the SMTP or POP3 protocol via the Ethernet (registered trademark).

IDE64は、例えば、ATA、シリアルATA、ATAPI、ATA−4などの規格を有しており、スキャナ装置により取得され、BMP、TIFF、JPEG、JPEG2000、GIF、PICT、メタファイル、オリジナル・フォーマットなどの適切なフォーマットとして変換された画像データを、ハードディスク・ドライブ(HDD)74へと記憶させて、後のユーザ利用のために提供するための記憶機能処理部を提供している。HDD74には、制御プログラムのためのオペレーティング・システムおよびプログラムも記憶され得る。なお、本実施の形態において作像エンジン70とエンジン・コントローラ60との間は、USB(Universal Serial Bus)、またはIEEE1284などのシリアルまたはパラレルバスで接続することもできる。作像エンジン70は、上述した感光体ドラム18及び現像装置20を含むものであり、記録媒体へ画像を形成する。   IDE64 has standards such as ATA, serial ATA, ATAPI, and ATA-4, and is acquired by a scanner device and includes BMP, TIFF, JPEG, JPEG2000, GIF, PICT, metafile, original format, and the like. A storage function processing unit is provided for storing image data converted into an appropriate format in a hard disk drive (HDD) 74 and providing it for later user use. The HDD 74 can also store an operating system and a program for the control program. In the present embodiment, the image forming engine 70 and the engine controller 60 may be connected by a serial or parallel bus such as USB (Universal Serial Bus) or IEEE 1284. The image forming engine 70 includes the photosensitive drum 18 and the developing device 20 described above, and forms an image on a recording medium.

図3は、画像形成装置10のソフトウェア構成を示した図である。本実施の形態にかかる画像形成装置10のソフトウェアは、画像形成装置10のCPU42がROM46やHDD74に記憶されたプログラムをRAM44にロードすることによって画像形成装置10上に実現される。CPU42はこのソフトウェアを実行することにより各種処理を行って各種機能を実現させる。同図に示されるように、本実施の形態にかかるソフトウェア構成は、3層の階層構造を有している。第1層82には、LANなどを介してプリント要求に対応するためのプリンタ・アプリケーションPA、オペレーション・パネル52からの操作入力に応じてコピー処理を可能とするコピー・アプリケーションCA、ファクシミリ送信先を設定し、ファクシミリ送受信装置にデータを渡す処理などを可能とするファクシミリ・アプリケーションFAの各ソフトウェアを有する。また、第1層82には、さらにスキャナ装置からの画像の処理を可能とするスキャナ・アプリケーションSA、ネットワークへの接続を管理するネットワーク・アプリケーションNA、ユーザ・インタフェース形成処理を可能とするパネル・ディスプレイ処理アプリケーションPDA、およびSMTP(Simple Mail Transfer Protocol)やPOP3プロトコルなどに基づくメール転送またはメール受信などを可能とするためのメーラなどの電子メール・アプリケーションEMAの各ソフトウェアを有する。   FIG. 3 is a diagram illustrating a software configuration of the image forming apparatus 10. The software of the image forming apparatus 10 according to the present embodiment is realized on the image forming apparatus 10 when the CPU 42 of the image forming apparatus 10 loads a program stored in the ROM 46 or the HDD 74 into the RAM 44. The CPU 42 executes this software to perform various processes and realize various functions. As shown in the figure, the software configuration according to the present embodiment has a three-layer hierarchical structure. The first layer 82 includes a printer application PA for responding to a print request via a LAN, a copy application CA that enables copy processing according to an operation input from the operation panel 52, and a facsimile transmission destination. It has software for a facsimile application FA that enables processing such as setting and passing data to a facsimile transmission / reception device. The first layer 82 further includes a scanner application SA that enables processing of images from the scanner device, a network application NA that manages connection to the network, and a panel display that enables user interface formation processing. Each software includes a processing application PDA and an e-mail application EMA such as a mailer for enabling mail transfer or mail reception based on the Simple Mail Transfer Protocol (SMTP) or the POP3 protocol.

第2層84は、オペレーティング・システム86と、言語ランタイム100と、ガベージコレクタ101と、画像形成装置10の初期検査および入出力管理を行うためのユーティリティ・ソフトウェア群88とを有する。言語ランタイム100は、オブジェクト指向プログラミング言語によって実装されるソフトウェアであり、オペレーティング・システム86上でプログラミング言語や環境に依存しない中間言語を解釈して、各種機能を実現させる。具体的には、言語ランタイム100は、ガベージコレクタ101を有し、ガベージコレクタ101は、言語ランタイム100の制御の下、プログラムが動的に確保したメモリ領域(ヒープメモリという)のうち、不要になったメモリ領域を解放する、即ち、ガベージコレクションを発生させる。更に、本実施の形態においては、ガベージコレクタ101は、後述するGC制御部105からの要求に応じて、ガベージコレクションを発生させる。尚、ここでは例えばRAM44にヒープメモリ106が確保されるとする。オブジェクト指向言語においては、プログラムの実行中に必要なオブジェクトがヒープメモリ106に記憶される。   The second layer 84 includes an operating system 86, a language runtime 100, a garbage collector 101, and a utility software group 88 for performing initial inspection and input / output management of the image forming apparatus 10. The language runtime 100 is software implemented by an object-oriented programming language, and interprets an intermediate language independent of the programming language and environment on the operating system 86 to realize various functions. Specifically, the language runtime 100 includes a garbage collector 101, and the garbage collector 101 becomes unnecessary in a memory area (referred to as heap memory) dynamically allocated by a program under the control of the language runtime 100. The free memory area is released, that is, garbage collection is generated. Furthermore, in the present embodiment, the garbage collector 101 generates garbage collection in response to a request from the GC control unit 105 described later. Here, for example, it is assumed that the heap memory 106 is secured in the RAM 44. In the object-oriented language, objects necessary for executing a program are stored in the heap memory 106.

ユーティリティ・ソフトウェア群88は、それぞれエンジン・コントローラEC、駆動系などのメカニクスのためのメカニクス・コントローラMC、露光光学系、スキャナなどの光学系を制御するためのオプティカル・コントローラOC、ファクシミリ機能を起動してユーザ入力された宛先に対して画像データを送信するためのファクシミリ・コントローラFC、RAMなどのメモリを管理するストレージ・コントローラSC、および画像形成装置10に接続された装置を検出するためのデバイス・ファインダDFなどのソフトウェアを有する。このようなユーティリティ・ソフトウェア群88は、第3層として図3において示した各デバイスI/Fと協働して、各機能処理部を構成するハードウェアとの入出力および各ハードウェアのシーケンス処理など、ハードウェア固有のインタフェースまたはデバイス・ドライバとデータ送受信を行って、第1層82のソフトウェアの実行結果を、ハードウェアへと渡している。   The utility software group 88 starts an engine controller EC, a mechanics controller MC for mechanics such as a drive system, an optical controller OC for controlling optical systems such as an exposure optical system and a scanner, and a facsimile function. A facsimile controller FC for transmitting image data to a destination inputted by the user, a storage controller SC for managing a memory such as a RAM, and a device for detecting a device connected to the image forming apparatus 10 It has software such as Finder DF. Such utility software group 88 cooperates with each device I / F shown in FIG. 3 as the third layer to input / output to / from hardware constituting each function processing unit and to perform sequence processing of each hardware. For example, data is transmitted to and received from a hardware-specific interface or device driver, and the execution result of the software of the first layer 82 is passed to the hardware.

更に本実施の形態においては、ユーティリティ・ソフトウェア群88は、電力モード移行検知部102と、省電力モード移行処理部103とを有する。電力モード移行検知部102は、省電力モードへ移行するための条件(移行条件という)が成立したか否かを判断して、判断結果に応じて、省電力モードへの移行条件の成立を検知する。尚、ここでは、電力モードとして、各々通電状態の異なる通常動作モード及び省電力モードが設定される。通常動作モードとは、コマンド、データなどの入力を受け、画像を形成する処理や、コマンドやデータなどの受信に応じた処理を即時実行可能な状態で待ち受けている状態である。省電力モードとは、画像形成装置10の消費電力をより低減させた待機状態である。通常動作モードにおける待機状態が全てのハードウェアに所定の電位の電力を供給する状態であるのに対し、省電力モードでは、コマンドやデータを受け付けるための最低限のハードウェアのみに電力を供給し、作像エンジン70などのハードウェアに対しては電力を供給しない又は所定の電位より低位の電力を供給して、画像形成装置10の消費電力を低減させる。省電力モードへの移行条件とは、例えば、少なくとも所定の時間画像形成装置10のオペレーション・パネル52においてユーザの操作入力が行なわれていない、少なくとも所定の時間画像形成装置10においてエンジンの動作を行っていない、省電力モードへの移行を指示する操作入力がオペレーション・パネル52において行なわれたことなどである。例えば、画像形成装置10は、オペレーション・パネル52で操作入力が行なわれてからタイマを起動させ、当該タイマが計時する時間と、所定の時間とを比較して、前者が後者の時間を超える場合に、少なくとも所定の時間ユーザの操作入力が行なわれていないと判断して、省電力モードへの移行条件が成立したと判断する。尚、所定の時間は、ユーザが任意に設定可能であるようにしても良い。設定された所定の時間の値は例えばHDD74に記憶される。また、画像形成装置10が省電力モードに移行した後、オペレーション・パネル52において操作入力が行なわれた場合、電力モード移行検知部102は、通常動作モードへ復帰するための条件が成立したと判断する。   Further, in the present embodiment, the utility software group 88 includes a power mode transition detection unit 102 and a power saving mode transition processing unit 103. The power mode transition detection unit 102 determines whether or not a condition for transitioning to the power saving mode (referred to as a transition condition) is satisfied, and detects whether the condition for transitioning to the power saving mode is satisfied according to the determination result. To do. Here, as the power mode, a normal operation mode and a power saving mode with different energization states are set. The normal operation mode is a state in which a command, data, or the like is received and a process for forming an image or a process corresponding to reception of the command, data, or the like is awaited in a state where it can be immediately executed. The power saving mode is a standby state in which the power consumption of the image forming apparatus 10 is further reduced. The standby state in the normal operation mode is a state in which power of a predetermined potential is supplied to all hardware, whereas in the power saving mode, power is supplied only to the minimum hardware for receiving commands and data. Further, power is not supplied to hardware such as the image forming engine 70 or power lower than a predetermined potential is supplied to reduce power consumption of the image forming apparatus 10. The condition for shifting to the power saving mode is, for example, that the operation input of the user is not performed on the operation panel 52 of the image forming apparatus 10 for at least a predetermined time, and the engine operation is performed on the image forming apparatus 10 for at least the predetermined time. The operation input for instructing the shift to the power saving mode is performed on the operation panel 52. For example, the image forming apparatus 10 starts a timer after an operation input is made on the operation panel 52, and compares the time counted by the timer with a predetermined time, and the former exceeds the latter time. Then, it is determined that the user's operation input has not been performed for at least a predetermined time, and it is determined that the condition for shifting to the power saving mode is satisfied. The predetermined time may be arbitrarily set by the user. The set time value is stored in the HDD 74, for example. Further, when an operation input is performed on the operation panel 52 after the image forming apparatus 10 has shifted to the power saving mode, the power mode transition detecting unit 102 determines that a condition for returning to the normal operation mode has been established. To do.

省電力モード移行処理部103は、電力制御部104と、GC制御部105とを有する。電力制御部104は、省電力モードへの移行条件が成立したと電力モード移行検知部102が検知した場合、上述した各ハードウェアの動作状況を確認して、省電力モードに移行可能であるか否かを判断する。例えば、電力制御部104は、動作しているハードウェアがない場合、省電力モードに移行可能であると判断し、動作しているハードウェアがある場合、省電力モードに移行可能ではないと判断する。そして、電力制御部104は、省電力モードに移行可能であると判断した場合、当該画像形成装置10を省電力モードに移行させるべく、各ハードウェアに対して省電力モードに対応した電力の供給を行う。また、通常動作モードへ復帰するための条件が成立した電力モード移行検知部102が判断した場合、電力制御部104は、当該画像形成装置10を通常動作モードに移行させるべく、各ハードウェアに対して通常動作モードに対応した電力の供給を行う。GC制御部105は、省電力モードに移行可能であると電力制御部104が判断した場合、ガベージコレクタ101に対してガベージコレクションの発生を要求する。   The power saving mode transition processing unit 103 includes a power control unit 104 and a GC control unit 105. If the power mode transition detection unit 102 detects that the condition for transition to the power saving mode has been established, the power control unit 104 can check the operation status of each hardware described above, and can the power control unit 104 transition to the power saving mode? Judge whether or not. For example, the power control unit 104 determines that it is possible to shift to the power saving mode when there is no operating hardware, and determines that it is not possible to shift to the power saving mode when there is operating hardware. To do. When the power control unit 104 determines that the image forming apparatus 10 can shift to the power saving mode, the power control unit 104 supplies power corresponding to the power saving mode to each piece of hardware in order to shift the image forming apparatus 10 to the power saving mode. I do. In addition, when the power mode transition detection unit 102 that satisfies the condition for returning to the normal operation mode determines, the power control unit 104 determines whether the image forming apparatus 10 shifts to the normal operation mode. Power supply corresponding to the normal operation mode. The GC control unit 105 requests the garbage collector 101 to generate a garbage collection when the power control unit 104 determines that it is possible to shift to the power saving mode.

以上のような構成において、本実施の形態においては、ユーザが画像形成装置10を使用している際にガベージコレクションを発生させないように、ヒープメモリ106のサイズを予め大きめに確保しておく。それでもヒープメモリ106に少しずつ溜まっていってしまうガベージを排除するために、ユーザがある程度の時間使用しない状態である省電力モードの状態に移行する際の任意のタイミングでガベージコレクションを発生させる。この結果、ユーザが使用しているタイミングでガベージコレクションを発生させることがなく、ユーザの操作に応じた動作に支障をきたすことを防止することができる。   In the configuration as described above, in the present embodiment, the heap memory 106 is secured to be large in advance so that garbage collection does not occur when the user uses the image forming apparatus 10. In order to eliminate the garbage that still accumulates little by little in the heap memory 106, garbage collection is generated at an arbitrary timing when the user shifts to the power saving mode that is not used for a certain period of time. As a result, garbage collection is not generated at the timing used by the user, and it is possible to prevent the operation according to the user's operation from being hindered.

(2)動作
次に、本実施の形態にかかる画像形成装置10の行う省エネモード移行処理の手順について図4を用いて説明する。画像形成装置10は、電力モード移行検知部102の機能により、省電力モードへの移行条件が成立したか否かを判断する(ステップS1)。当該判断結果が肯定的である場合、画像形成装置10は、電力制御部104の機能により、各ハードウェアの動作状況を確認して、省電力モードに移行可能であるか否かを判断する(ステップS2)。当該判断結果が肯定的である場合、画像形成装置10は、ガベージコレクタ101の機能により、ガベージコレクションを発生させる(ステップS4)。また、画像形成装置10は、電力制御部104の機能により、各ハードウェアに対して省電力モードに対応した電力の供給を行う(ステップS5)。この結果、画像形成装置10は、省電力モードに移行する。尚、ステップS2の判断結果が否定的である場合、画像形成装置10は、電力モード移行検知部102の機能により、数秒(例えば10秒)間のタイマを起動させ、数秒間待機する(ステップS3)。数秒が経った後、画像形成装置10は、ステップS1で、電力モード移行検知部102の機能により、省電力モードへの移行条件が成立したか否かを再度判断して、以降の処理を繰り返す。
(2) Operation Next, the procedure of the energy saving mode transition process performed by the image forming apparatus 10 according to the present embodiment will be described with reference to FIG. The image forming apparatus 10 determines whether or not the condition for shifting to the power saving mode is satisfied by the function of the power mode transition detecting unit 102 (step S1). When the determination result is affirmative, the image forming apparatus 10 confirms the operation status of each hardware by the function of the power control unit 104 and determines whether or not the mode can be shifted to the power saving mode ( Step S2). If the determination result is affirmative, the image forming apparatus 10 generates garbage collection by the function of the garbage collector 101 (step S4). Further, the image forming apparatus 10 supplies power corresponding to the power saving mode to each hardware by the function of the power control unit 104 (step S5). As a result, the image forming apparatus 10 shifts to the power saving mode. If the determination result in step S2 is negative, the image forming apparatus 10 activates a timer for several seconds (for example, 10 seconds) by the function of the power mode transition detection unit 102 and waits for several seconds (step S3). ). After several seconds, the image forming apparatus 10 determines again whether or not the condition for shifting to the power saving mode is satisfied by the function of the power mode shift detecting unit 102 in step S1, and repeats the subsequent processing. .

以上のように、ユーザが画像形成装置10を所定の時間使用していない状態である省電力モードの状態に移行するタイミングでガベージコレクションを発生させる。このような構成によれば、機能を制限することで使用するオブジェクトを制限したり、大容量の物理メモリを用意して、作成する可能性のある全てのオブジェクトを使い回すことのできるほど大きなサイズのヒープメモリを確保したりすることなく、ガベージコレクションの発生を抑制することができる。この結果、ガベージコレクションの発生による問題を回避することができる。即ち、ユーザが画像形成装置10を使用している間にガベージコレクションが発生することにより処理が停止して、コピーなどの生産性やファクシミリ通信などのリアルタイム性が低下してしまうという問題を回避することができる。従って、ガベージコレクションの発生を効果的に制御することができる。   As described above, the garbage collection is generated at the timing when the user shifts to the power saving mode in which the image forming apparatus 10 is not used for a predetermined time. According to such a configuration, the size is large enough to limit the objects used by limiting the functions, or to prepare a large amount of physical memory and reuse all objects that may be created The occurrence of garbage collection can be suppressed without securing the heap memory. As a result, problems due to the occurrence of garbage collection can be avoided. In other words, the problem that the processing is stopped due to the occurrence of garbage collection while the user is using the image forming apparatus 10 and the real-time property such as copying and the real-time property such as facsimile communication is deteriorated is avoided. be able to. Therefore, occurrence of garbage collection can be effectively controlled.

[変形例]
なお、本発明は前記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、前記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。また、以下に例示するような種々の変形が可能である。
[Modification]
Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. Moreover, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined. Further, various modifications as exemplified below are possible.

<変形例1>
上述した実施の形態において、画像形成装置10で実行される各種プログラムを、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成しても良い。当該各種プログラムを、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録してコンピュータプログラムプロダクトとして提供するように構成しても良い。
<Modification 1>
In the above-described embodiment, various programs executed by the image forming apparatus 10 may be stored on a computer connected to a network such as the Internet and provided by being downloaded via the network. The various programs are recorded in a computer-readable recording medium such as a CD-ROM, a flexible disk (FD), a CD-R, and a DVD (Digital Versatile Disk) in an installable or executable format file. You may comprise so that it may provide as a computer program product.

<変形例2>
上述の実施の形態では、メモリ管理制御装置を、画像形成装置として、コピー機能、プリンタ機能、スキャナ機能及びファクシミリ機能を有する複合機に適用した例について説明したが、これに限らず、コピー機能、プリンタ機能、スキャナ機能及びファクシミリ機能のうち少なくとも2つ以上の機能を有する複合機、複写機、プリンタ、スキャナ装置、ファクシミリ装置等の画像形成装置であればいずれにも適用することができる。
<Modification 2>
In the above-described embodiment, the example in which the memory management control device is applied to a multifunction peripheral having a copy function, a printer function, a scanner function, and a facsimile function as an image forming apparatus has been described. The present invention can be applied to any image forming apparatus such as a multifunction machine, a copier, a printer, a scanner apparatus, and a facsimile apparatus having at least two functions among a printer function, a scanner function, and a facsimile function.

上述の実施の形態では、図4のステップS2で省電力モードに移行可能であると判断した直後にステップS4でガベージコレクションを発生させるようにした。しかし、これに限らず、ガベージコレクションを発生させるのは、ステップS5の後でも良いし、省電力モードへ移行可能であると判断してから通常動作モードに復帰するまでの間であれば良い。   In the above-described embodiment, garbage collection is generated in step S4 immediately after it is determined in step S2 in FIG. 4 that the mode can be shifted to the power saving mode. However, the present invention is not limited to this, and the garbage collection may be generated after step S5 or until it is determined that it is possible to shift to the power saving mode and return to the normal operation mode.

<変形例3>
上述の実施の形態では、ユーザが画像形成装置10を少なくとも所定の時間使用していない状態として、省電力モードの状態に移行する際にガベージコレクションを発生させるようにしたが、これに限らず、例えば、余熱モードの状態に移行する際に、ガベージコレクションを発生させるようにしても良い。余熱モードとは、オペレーション・パネル52における表示を消すと共に、作像エンジン70の有する定着器(図示せず)の温度を下げる電力モードである。
<Modification 3>
In the above-described embodiment, garbage collection is generated when the user has not used the image forming apparatus 10 for at least a predetermined time to shift to the power saving mode state. For example, garbage collection may be generated when shifting to the state of the residual heat mode. The remaining heat mode is a power mode in which the display on the operation panel 52 is turned off and the temperature of a fixing device (not shown) included in the image forming engine 70 is lowered.

また、ユーザが画像形成装置10を少なくとも所定時間使用していない状態であっても、省電力モードに移行しない設定である場合、ユーザが画像形成装置10を少なくとも所定時間使用していないことを検知すると、ガベージコレクションを発生させるようにしても良い。   Further, even if the user has not used the image forming apparatus 10 for at least a predetermined time, if the setting is such that the mode does not shift to the power saving mode, it is detected that the user has not used the image forming apparatus 10 for at least the predetermined time. Then, garbage collection may be generated.

<変形例4>
上述の実施の形態では、ガベージコレクションの対象の物理メモリをRAM44とし、RAM44にヒープメモリ106が確保されるようにしたが、これに限らず、HDD74やその他の物理メモリにヒープメモリが確保されるようにしても良い。
<Modification 4>
In the above-described embodiment, the garbage collection target physical memory is the RAM 44, and the heap memory 106 is secured in the RAM 44. However, the present invention is not limited to this, and heap memory is secured in the HDD 74 and other physical memories. You may do it.

また、画像形成装置10に搭載されている物理メモリのサイズに応じて、ヒープメモリの初期のサイズを変更するようにしても良い。   Further, the initial size of the heap memory may be changed according to the size of the physical memory mounted on the image forming apparatus 10.

<変形例5>
上述の実施の形態では、図4のステップS4でガベージコレクションを発生させる際に、ヒープメモリ106のサイズを必要に応じて拡張するようにしても良い。このような構成においては、GC制御部105は、省電力モードに移行可能であると電力制御部104が判断した場合、言語ランタイム100を介してヒープメモリ106の使用状況を取得して、当該使用状況に応じて、ヒープメモリ106のサイズを拡張して、ガベージコレクタ101に対してガベージコレクションの発生を要求する。尚、ヒープメモリ106のサイズとは、Java(登録商標)の場合、言語ランタイムの最大メモリ「:java.Runtime.Maxmemory()」で取得することの可能な値であり、ヒープメモリとして確保される最大のサイズのことである。このサイズは、本来であれば拡張されることのないものである。
<Modification 5>
In the above-described embodiment, the size of the heap memory 106 may be expanded as necessary when garbage collection is generated in step S4 of FIG. In such a configuration, when the power control unit 104 determines that the transition to the power saving mode is possible, the GC control unit 105 acquires the usage status of the heap memory 106 via the language runtime 100 and uses the usage. Depending on the situation, the size of the heap memory 106 is expanded to request the garbage collector 101 to generate garbage collection. In the case of Java (registered trademark), the size of the heap memory 106 is a value that can be acquired with the maximum memory “: java.Runtime.Maxmemory ()” of the language runtime, and is secured as a heap memory. It is the maximum size. This size is not originally expanded.

図5は、本変形例にかかるステップS4の処理の詳細な手順を示す図である。まず、画像形成装置10は、GC制御部105の機能により、言語ランタイム100を介してヒープメモリ106の使用状況を取得して、ヒープメモリ106のサイズの拡張が必要か否かを判断する(ステップS40)。例えば、画像形成装置10は、使用するオブジェクトのサイズと、ヒープメモリ106のサイズとを比較して、後者から前者を引いた値が所定値以下である場合、ヒープメモリ106のサイズの拡張が必要であると判断する。ステップS40の判断結果が肯定的である場合、画像形成装置10は、ヒープメモリ106のサイズの拡張が可能か否かを判断する(ステップS41)。例えば、画像形成装置10は、RAM44全体のサイズやヒープメモリ106として使用できるサイズに応じて、拡張が可能か否かを判断する。ステップS41の判断結果が肯定的である場合、画像形成装置10は、ヒープメモリ106のサイズを拡張させる(ステップS42)。拡張させるサイズは、RAM44全体のサイズやヒープメモリ106として使用できるサイズに応じて決めれば良い。そして、画像形成装置10は、ガベージコレクタ101の機能により、ヒープメモリのうち、不要になったメモリ領域を解放することにより、ガベージコレクションを発生させる(ステップS43)。ステップS40,S41の判断結果が否定的である場合も画像形成装置10はステップS43の処理を行う。   FIG. 5 is a diagram illustrating a detailed procedure of the process of step S4 according to the present modification. First, the image forming apparatus 10 acquires the usage status of the heap memory 106 via the language runtime 100 by the function of the GC control unit 105 and determines whether or not the size of the heap memory 106 needs to be expanded (step). S40). For example, the image forming apparatus 10 compares the size of the object to be used with the size of the heap memory 106, and if the value obtained by subtracting the former from the latter is equal to or smaller than a predetermined value, the size of the heap memory 106 needs to be expanded. It is judged that. If the determination result in step S40 is affirmative, the image forming apparatus 10 determines whether or not the heap memory 106 can be expanded in size (step S41). For example, the image forming apparatus 10 determines whether expansion is possible according to the overall size of the RAM 44 and the size that can be used as the heap memory 106. If the determination result in step S41 is affirmative, the image forming apparatus 10 expands the size of the heap memory 106 (step S42). The size to be expanded may be determined according to the size of the entire RAM 44 or the size that can be used as the heap memory 106. Then, the image forming apparatus 10 generates garbage collection by releasing a memory area that is no longer necessary in the heap memory by the function of the garbage collector 101 (step S43). Even when the determination results in steps S40 and S41 are negative, the image forming apparatus 10 performs the process in step S43.

以上のような構成によれば、ガベージコレクションをより効果的に発生させることができる。   According to the above configuration, garbage collection can be generated more effectively.

<変形例6>
上述の実施の形態では、図4のステップS4でガベージコレクションを発生させる前に、スワップの発生状況を検知して、検知結果に応じて、ユーザに対しメモリの増設を促す旨のメッセージをオペレーション・パネル52に表示させるようにしても良い。このような構成において、省電力モード移行処理部103は、スワップ検知部(図示せず)を更に有する。スワップ検知部は、スワップの発生状況を検知して、当該発生状況に応じて、ガベージコレクションの対象となるメモリの増設をユーザに対して促す。これにより、画像形成装置10は、メモリの増設が必要であることをユーザに報知する。具体的には、例えば、スワップ検知部は、スワップの発生回数やスワップされているデータの量を検知して、当該発生回数が所定の第1閾値以上である場合や、スワップされているデータの量が所定の第2閾値以上である場合に、スワップが多発していると判断して、メモリの増設を促す旨のメッセージをオペレーション・パネル52に表示させる。尚、画像形成装置10が音声を出力する音声出力部を備える場合、メモリの増設を促す旨のメッセージを音声で出力するようにしても良い。
<Modification 6>
In the embodiment described above, before the occurrence of garbage collection in step S4 of FIG. 4, the occurrence of swap is detected, and a message is displayed to prompt the user to add memory according to the detection result. You may make it display on the panel 52. FIG. In such a configuration, the power saving mode transition processing unit 103 further includes a swap detection unit (not shown). The swap detection unit detects the occurrence of swap and prompts the user to add a memory subject to garbage collection according to the occurrence. Thereby, the image forming apparatus 10 notifies the user that it is necessary to increase the memory. Specifically, for example, the swap detection unit detects the number of occurrences of swap and the amount of swapped data, and if the occurrence count is equal to or greater than a predetermined first threshold, If the amount is greater than or equal to a predetermined second threshold, it is determined that swaps are occurring frequently, and a message that prompts for additional memory is displayed on the operation panel 52. In the case where the image forming apparatus 10 includes a sound output unit that outputs sound, a message for prompting expansion of the memory may be output by sound.

図6は、本変形例にかかる画像形成装置10の行う省エネモード移行処理の手順を示すフローチャートである。ステップS1〜S2は上述の第1の実施の形態と同様である。ステップS20では、画像形成装置10は、スワップ検知部の機能により、スワップの発生状況を検知して、スワップが多発しているか否かを判断する(ステップS20)。当該判断結果が肯定的である場合、画像形成装置10は、メモリの増設を促す旨のメッセージをオペレーション・パネル52に表示させて(ステップS21)、ステップS4に進む。ステップS20の判断結果が否定的である場合、画像形成装置10は、ステップS21の処理を行わずに、ステップS4に進む。ステップS3〜S5の処理は上述の第1の実施の形態と同様である。   FIG. 6 is a flowchart illustrating the procedure of the energy saving mode transition process performed by the image forming apparatus 10 according to the present modification. Steps S1 and S2 are the same as those in the first embodiment. In step S20, the image forming apparatus 10 detects the occurrence of swap by the function of the swap detection unit, and determines whether or not there are frequent swaps (step S20). If the determination result is affirmative, the image forming apparatus 10 causes the operation panel 52 to display a message for prompting the addition of memory (step S21), and proceeds to step S4. If the determination result of step S20 is negative, the image forming apparatus 10 proceeds to step S4 without performing the process of step S21. The processing in steps S3 to S5 is the same as that in the first embodiment.

画像形成装置10に多くの機能をインストールしていくことでスワップが多発してしまうと、ガベージコレクションが発生する場合のように処理が完全に停止してしまうことはないにせよ、全体的に処理が遅くなってしまい、生産性の低下につながってくる。しかし、本変形例によれば、スワップが多発していることを検知して、ユーザに対してメモリの増設を促すことで、生産性の低下を防ぐことができる。また、本変形例の構成によってメモリの増設を促すことで、メモリの使用量がまちまちでどの程度機能をインストールしたらメモリを増設する必要があるかをサービスパーソンが把握することが可能になる。   If many functions are installed in the image forming apparatus 10 and a lot of swaps occur, the process does not stop completely unlike the case where garbage collection occurs, but the entire process is performed. Will slow down, leading to a decline in productivity. However, according to this modification, it is possible to prevent a decrease in productivity by detecting that swaps are frequently occurring and prompting the user to add memory. Further, by encouraging the addition of the memory according to the configuration of this modification, it becomes possible for the service person to know how much the memory is used and how much the memory needs to be added after the function is installed.

<変形例7>
上述の実施の形態と、従来技術欄で説明した特許文献1に記載されている技術とを組み合わせても良い。例えば、画像形成装置10に多くの機能をインストールしたことで、大容量の物理メモリを搭載することになった場合には、特許文献1に記載されている技術と同様にして、一部のオブジェクトを使い回すことにより、ガベージコレクションの発生を抑えるようにしても良い。
<Modification 7>
You may combine above-mentioned embodiment and the technique described in the patent document 1 demonstrated in the prior art column. For example, when many functions are installed in the image forming apparatus 10 and a large-capacity physical memory is to be installed, some objects are installed in the same manner as the technique described in Patent Document 1. You may make it suppress generation | occurrence | production of garbage collection by using repeatedly.

10 画像形成装置
14 イメージ・リーダ
16 コントロール・ユニット
52 オペレーション・パネル
70 作像エンジン
86 オペレーティング・システム
88 ユーティリティ・ソフトウェア群
100 言語ランタイム
101 ガベージコレクタ
102 電力モード移行検知部
103 省電力モード移行処理部
104 電力制御部
105 GC制御部
106 ヒープメモリ
DESCRIPTION OF SYMBOLS 10 Image forming apparatus 14 Image reader 16 Control unit 52 Operation panel 70 Image creation engine 86 Operating system 88 Utility software group 100 Language runtime 101 Garbage collector 102 Power mode transition detection part 103 Power saving mode transition process part 104 Electric power Control unit 105 GC control unit 106 Heap memory

特開2007−86838号公報JP 2007-86838 A

Claims (6)

ガベージコレクション機能を備えるプログラミング言語を備えるオブジェクト指向プログラミング言語によって実装されるソフトウェアにより制御されるメモリ管理制御装置であって、
ユーザが当該画像形成装置を少なくとも所定の時間使用していないことを検知する検知手段と、
前記検知手段の検知結果に応じて、ガベージコレクションを発生させる制御手段とを備える
ことを特徴とするメモリ管理制御装置。
A memory management control device controlled by software implemented by an object-oriented programming language having a programming language having a garbage collection function,
Detecting means for detecting that the user has not used the image forming apparatus for at least a predetermined time;
A memory management control apparatus comprising: a control unit that generates garbage collection according to a detection result of the detection unit.
被写体からの反射光を光電変換して生成された画像信号に基づいて、記録媒体に画像を形成する画像形成手段と、
前記検知手段の検知結果に応じて、前記画像形成手段に対して所定の電力を供給する通常動作モードから、所定の電力より低位の電力を前記画像形成手段に対して供給する省電力モードに当該画像形成装置を移行させる移行処理手段とを備え、
前記制御手段は、前記移行処理手段が当該画像形成装置を前記通常動作モードから前記省電力モードに移行させる場合に、ガベージコレクションを発生させる
ことを特徴とする請求項1に記載のメモリ管理制御装置。
Image forming means for forming an image on a recording medium based on an image signal generated by photoelectrically converting reflected light from a subject;
According to the detection result of the detection unit, the normal operation mode in which predetermined power is supplied to the image forming unit, and the power saving mode in which lower power than the predetermined power is supplied to the image forming unit. Transition processing means for shifting the image forming apparatus,
2. The memory management control apparatus according to claim 1, wherein the control unit generates garbage collection when the shift processing unit shifts the image forming apparatus from the normal operation mode to the power saving mode. .
前記制御手段は、
前記検知手段の検知結果に応じて、ガベージコレクションの対象となるメモリに確保されるヒープメモリの使用状況を取得する取得手段と、
前記ヒープメモリの使用状況に応じて、前記ヒープメモリのサイズを拡張する拡張手段と、
前記ヒープメモリにおいてガベージコレクションを発生させるガベージコレクタとを有する
ことを特徴とする請求項1又は2に記載のメモリ管理制御装置。
The control means includes
According to the detection result of the detection means, an acquisition means for acquiring the usage status of the heap memory secured in the memory subject to garbage collection;
Expansion means for expanding the size of the heap memory according to the usage status of the heap memory;
The memory management control device according to claim 1, further comprising a garbage collector that generates garbage collection in the heap memory.
前記検知手段の検知結果に応じて、スワップの発生状況を取得する取得手段と、
前記スワップの発生状況に応じて、ガベージコレクションの対象となるメモリの増設をユーザに対して促す報知手段とを更に備える
ことを特徴とする請求項1乃至3のいずれか一項に記載のメモリ管理制御装置。
According to the detection result of the detection means, acquisition means for acquiring the occurrence status of swap,
4. The memory management according to claim 1, further comprising notification means for prompting a user to add a memory subject to garbage collection according to the occurrence state of the swap. 5. Control device.
ガベージコレクションの対象となるメモリのサイズに応じて、当該メモリに確保するヒープメモリの初期のサイズを変更する変更手段を更に備える
ことを特徴とする請求項1乃至4のいずれか一項に記載のメモリ管理制御装置。
5. The apparatus according to claim 1, further comprising a changing unit that changes an initial size of a heap memory to be secured in the memory according to a size of a memory to be garbage collected. Memory management controller.
ガベージコレクション機能を備えるプログラミング言語を備えるオブジェクト指向プログラミング言語によって実装されるソフトウェアにより制御されるメモリ管理制御装置で実行されるメモリ管理制御方法であって、
前記メモリ管理制御装置は、検知手段と、制御手段とを備え、
前記検知手段が、ユーザが当該画像形成装置を少なくとも所定の時間使用していないことを検知する検知ステップと、
前記制御手段が、前記検知ステップでの検知結果に応じて、ガベージコレクションを発生させる制御ステップとを含む
ことを特徴とするメモリ管理制御方法。
A memory management control method executed by a memory management control device controlled by software implemented by an object-oriented programming language having a programming language having a garbage collection function,
The memory management control device includes detection means and control means,
A detecting step for detecting that the user has not used the image forming apparatus for at least a predetermined time;
The memory management control method, wherein the control means includes a control step of generating garbage collection according to a detection result in the detection step.
JP2009093082A 2009-04-07 2009-04-07 Memory management control device and memory management control method Pending JP2010244342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009093082A JP2010244342A (en) 2009-04-07 2009-04-07 Memory management control device and memory management control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009093082A JP2010244342A (en) 2009-04-07 2009-04-07 Memory management control device and memory management control method

Publications (1)

Publication Number Publication Date
JP2010244342A true JP2010244342A (en) 2010-10-28

Family

ID=43097290

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009093082A Pending JP2010244342A (en) 2009-04-07 2009-04-07 Memory management control device and memory management control method

Country Status (1)

Country Link
JP (1) JP2010244342A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012032972A (en) * 2010-07-30 2012-02-16 Clarion Co Ltd Information processing terminal
US9256528B2 (en) 2012-08-08 2016-02-09 Samsung Electronics Co., Ltd. Method for operating a memory controller and a system having the memory controller
US10606748B2 (en) 2017-06-02 2020-03-31 Canon Kabushiki Kaisha Apparatus and method for garbage collection on socket objects
WO2021034979A1 (en) * 2019-08-20 2021-02-25 Micron Technology, Inc. Garbage collection in a memory sub-system during a low battery state
US11281392B2 (en) 2019-08-28 2022-03-22 Micron Technology, Inc. Garbage collection in a memory component using an adjusted parameter
US11282567B2 (en) 2019-08-20 2022-03-22 Micron Technology, Inc. Sequential SLC read optimization
US11726869B2 (en) 2019-08-20 2023-08-15 Micron Technology, Inc. Performing error control operation on memory component for garbage collection

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012032972A (en) * 2010-07-30 2012-02-16 Clarion Co Ltd Information processing terminal
US9256528B2 (en) 2012-08-08 2016-02-09 Samsung Electronics Co., Ltd. Method for operating a memory controller and a system having the memory controller
US10606748B2 (en) 2017-06-02 2020-03-31 Canon Kabushiki Kaisha Apparatus and method for garbage collection on socket objects
WO2021034979A1 (en) * 2019-08-20 2021-02-25 Micron Technology, Inc. Garbage collection in a memory sub-system during a low battery state
US11282567B2 (en) 2019-08-20 2022-03-22 Micron Technology, Inc. Sequential SLC read optimization
US11281578B2 (en) 2019-08-20 2022-03-22 Micron Technology, Inc. Garbage collection in a memory sub-system during a low battery state
US11726908B2 (en) 2019-08-20 2023-08-15 Micron Technology, Inc. Garbage collection in a memory sub-system during a low battery state
US11726869B2 (en) 2019-08-20 2023-08-15 Micron Technology, Inc. Performing error control operation on memory component for garbage collection
US11776615B2 (en) 2019-08-20 2023-10-03 Micron Technology, Inc. Sequential SLC read optimization
US11281392B2 (en) 2019-08-28 2022-03-22 Micron Technology, Inc. Garbage collection in a memory component using an adjusted parameter
US11698742B2 (en) 2019-08-28 2023-07-11 Micron Technology, Inc. Garbage collection in a memory component using an adjusted parameter

Similar Documents

Publication Publication Date Title
JP2010244342A (en) Memory management control device and memory management control method
US20080174819A1 (en) Image forming apparatus and control method thereof
JP4929086B2 (en) Image forming apparatus, job management system, and job management method
US20120303988A1 (en) Data processing apparatus and data processing method
JP5473267B2 (en) Workflow execution system and workflow execution method
US7796588B2 (en) Information processing device, control method thereof, and program
US20090323111A1 (en) Image forming apparatus and image forming method
JP2012244534A (en) Management device, method thereof, and program
CN103765344B (en) System and image processing device provided with multiple display devices
JP2007068040A (en) Image forming apparatus
JP7373347B2 (en) information processing equipment
JP4612879B2 (en) Image processing apparatus, image processing system, and control method for image processing apparatus
JP5318266B2 (en) Data processing apparatus, data processing method, and program
US9288344B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable medium
JP2009265255A (en) Image forming apparatus and program
JP2009054016A (en) Image forming apparatus, image forming method, and program
JP2006041739A (en) Image processing apparatus
US8885209B2 (en) Printer control device, method and computer-readable storage medium for controlling proxy printing using low power at low print speed
US8964198B2 (en) Device management system, device management method, and image forming apparatus
JP2011062938A (en) Printing apparatus and printing system
JP2005309016A (en) Processing device
JP7605250B2 (en) Image forming apparatus, control method for image forming apparatus, program, and image forming system
JP4464193B2 (en) Image forming apparatus
JP2003216353A (en) Print system, print method and its program
JP2008236258A (en) Image processing device