JP2017130071A - Image processing apparatus, memory control device, and memory control method - Google Patents
Image processing apparatus, memory control device, and memory control method Download PDFInfo
- Publication number
- JP2017130071A JP2017130071A JP2016009363A JP2016009363A JP2017130071A JP 2017130071 A JP2017130071 A JP 2017130071A JP 2016009363 A JP2016009363 A JP 2016009363A JP 2016009363 A JP2016009363 A JP 2016009363A JP 2017130071 A JP2017130071 A JP 2017130071A
- Authority
- JP
- Japan
- Prior art keywords
- image processing
- swap
- area
- swap file
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Memory System (AREA)
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
本発明は、画像処理装置及びメモリ制御プログラム並びにメモリ制御方法に関し、特に、メインメモリ内に画像処理用メモリ領域を有する画像処理装置及び画像処理用メモリ領域の使用を制御するメモリ制御プログラム並びにメモリ制御方法に関する。 The present invention relates to an image processing apparatus, a memory control program, and a memory control method, and more particularly, to an image processing apparatus having an image processing memory area in a main memory, a memory control program for controlling use of the image processing memory area, and a memory control. Regarding the method.
MFP(Multi-Functional Peripherals)では、プリント、コピー、スキャン等のジョブ制御に際して、常に所定のパフォーマンスを満足する必要があるため、ジョブ制御に掛かる画像処理で使用するメモリ領域を、他の制御に転用される事のない、画像処理用メモリ領域としてきた。従って、ジョブ制御を実施していない状態においても、常時、一定サイズのメモリ領域が確保された状態となる。 In MFP (Multi-Functional Peripherals), it is necessary to always satisfy the prescribed performance when controlling jobs such as printing, copying, and scanning. Therefore, the memory area used for image processing for job control is diverted to other controls. It has become a memory area for image processing that is never done. Therefore, even when job control is not performed, a memory area of a certain size is always secured.
一方、近年のMFPには、ジョブ制御以外にも、サーバ機能のように一定以上のパフォーマンスが要求される機能が搭載されつつあり、このようなMFPにおいて、従来のような画像処理用メモリ領域を確保する制御では、メモリの利用効率が低下し、メモリ資源を有効利用できない。特に、OS(Operating System)が画像処理用メモリ領域をスワップ領域として使用することができず、ジョブ制御以外のサーバ機能などを効率的に実施することができない。 On the other hand, in recent MFPs, in addition to job control, functions that require a certain level of performance, such as server functions, are being installed. In such MFPs, conventional image processing memory areas are not provided. In the control to be secured, the memory use efficiency is lowered and the memory resources cannot be effectively used. In particular, the OS (Operating System) cannot use the image processing memory area as a swap area, and server functions other than job control cannot be efficiently implemented.
このような問題に対して、例えば、下記特許文献1には、プロセスが使用するメモリの使用率を監視し、前記メモリに保存されたデータをスワップデバイスへスワップアウトさせるスワップ処理を制御するOS部と、前記スワップデバイスにアクセス可能なスワップデバイスドライバ部と、前記スワップアウトされたデータの圧縮及び伸張を行うデータ圧縮/伸張部と、前記圧縮されたデータの圧縮率に基づいてスワップアウト対象の優先度を決定する優先度操作部を備え、前記OS部は、前記優先度操作部によって決定された前記優先度に基づいてデータのスワップアウトを行うデータ圧縮伸張装置が開示されている。 To deal with such a problem, for example, in Patent Document 1 below, an OS unit that monitors a usage rate of a memory used by a process and controls a swap process for swapping out data stored in the memory to a swap device. A swap device driver that can access the swap device, a data compression / decompression unit that compresses and decompresses the swapped-out data, and a priority for swap-out based on the compression ratio of the compressed data There is disclosed a data compression / decompression apparatus that includes a priority operation unit for determining the degree, and wherein the OS unit performs data swap-out based on the priority determined by the priority operation unit.
しかしながら、特許文献1の方法では、データを圧縮してメモリ上に空き領域を作成するため、メモリ上に作られる空き領域のサイズを保証するのが難しい。また、特許文献1の方法では、所定サイズの空き領域が作成されるまで、データをスワップアウトさせることができないため、スワップ処理時間を保証することができず、その空き領域を使用して動作させるプロセスの処理開始までの時間を保証することができない。 However, in the method of Patent Document 1, it is difficult to guarantee the size of the free area created on the memory because data is compressed to create a free area on the memory. Further, in the method of Patent Document 1, data cannot be swapped out until a free area of a predetermined size is created, so the swap processing time cannot be guaranteed, and operation is performed using the free area. The time until the start of the process cannot be guaranteed.
本発明は、上記問題点に鑑みてなされたものであって、その主たる目的は、従来と同等のジョブ処理パフォーマンスを維持しつつ、パフォーマンスが要求される他の機能を効率的に実施することができる画像処理装置及びメモリ制御プログラム並びにメモリ制御方法を提供することにある。 The present invention has been made in view of the above problems, and its main purpose is to efficiently implement other functions that require performance while maintaining job processing performance equivalent to that of the prior art. An image processing apparatus, a memory control program, and a memory control method are provided.
本発明の一側面は、CPUとメインメモリと2次記憶装置と画像処理デバイスとを少なくとも備える画像処理装置であって、前記メインメモリは、前記CPUにより実行されるOSが使用するOS用メモリ領域と、前記画像処理デバイスが画像処理に際して使用する画像処理用メモリ領域と、を備え、前記画像処理装置は、前記画像処理用メモリ領域が前記画像処理デバイスに使用されていない時は、前記画像処理用メモリ領域を、前記OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、前記スワップ領域にスワップファイルを生成し、前記スワップ領域に生成したスワップファイルを、前記2次記憶装置にバックアップし、前記画像処理用メモリ領域が前記画像処理デバイスに使用される時に、前記OSのスワップファイル参照先を、前記スワップ領域に生成したスワップファイルから、前記2次記憶装置にバックアップしたスワップファイルに切り替える制御部を備えることを特徴とする。 One aspect of the present invention is an image processing apparatus including at least a CPU, a main memory, a secondary storage device, and an image processing device, wherein the main memory is an OS memory area used by an OS executed by the CPU. And an image processing memory area used for image processing by the image processing device, and the image processing apparatus performs the image processing when the image processing memory area is not used by the image processing device. The memory area is used as an OS swap area for use by a specific process operating on the OS, a swap file is generated in the swap area, and the swap file generated in the swap area is used as the secondary area. When the image processing memory area is backed up to a storage device and used for the image processing device, the OS A swap file referenced from the swap file generated in the swap area, characterized in that it comprises a control unit for switching the swap file backed up on the secondary storage device.
本発明の一側面は、CPUとメインメモリと2次記憶装置と画像処理デバイスとを少なくとも備える画像処理装置で動作するメモリ制御プログラムであって、前記メインメモリは、前記CPUにより実行されるOSが使用するOS用メモリ領域と、前記画像処理デバイスが画像処理に際して使用する画像処理用メモリ領域と、を備え、前記画像処理装置の前記CPUに、前記画像処理デバイスの動作を監視し、前記画像処理用メモリ領域が前記画像処理デバイスに使用されていないと判断した時は、前記画像処理用メモリ領域を、前記OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、前記スワップ領域にスワップファイルを生成する第1処理、前記スワップ領域に生成したスワップファイルを、前記2次記憶装置にバックアップする第2処理、前記画像処理デバイスの動作を監視し、前記画像処理用メモリ領域が前記画像処理デバイスに使用されると判断した時に、前記OSのスワップファイル参照先を、前記スワップ領域に生成したスワップファイルから、前記2次記憶装置にバックアップしたスワップファイルに切り替える第3処理、を実行させることを特徴とする。 One aspect of the present invention is a memory control program that operates in an image processing apparatus including at least a CPU, a main memory, a secondary storage device, and an image processing device, and the main memory is an OS executed by the CPU. An OS memory area to be used; and an image processing memory area used by the image processing device for image processing; the CPU of the image processing apparatus monitors the operation of the image processing device; and When it is determined that the image memory area is not used by the image processing device, the image process memory area is used as an OS swap area for use by a specific process operating on the OS. The first process for generating a swap file in the swap area, the swap file generated in the swap area The second processing to be backed up in the storage device, the operation of the image processing device is monitored, and when it is determined that the image processing memory area is used for the image processing device, the swap file reference destination of the OS is changed to the swap A third process of switching from the swap file generated in the area to the swap file backed up in the secondary storage device is executed.
本発明の一側面は、CPUとメインメモリと2次記憶装置と画像処理デバイスとを少なくとも備える画像処理装置におけるメモリ制御方法であって、前記メインメモリは、前記CPUにより実行されるOSが使用するOS用メモリ領域と、前記画像処理デバイスが画像処理に際して使用する画像処理用メモリ領域と、を備え、前記画像処理装置は、前記画像処理用メモリ領域が前記画像処理デバイスに使用されていない時は、前記画像処理用メモリ領域を、前記OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、前記スワップ領域にスワップファイルを生成する第1処理と、前記スワップ領域に生成したスワップファイルを、前記2次記憶装置にバックアップする第2処理と、前記画像処理用メモリ領域が前記画像処理デバイスに使用される時に、前記OSのスワップファイル参照先を、前記スワップ領域に生成したスワップファイルから、前記2次記憶装置にバックアップしたスワップファイルに切り替える第3処理と、を実行することを特徴とする。 One aspect of the present invention is a memory control method in an image processing apparatus including at least a CPU, a main memory, a secondary storage device, and an image processing device, and the main memory is used by an OS executed by the CPU. An OS memory area and an image processing memory area used by the image processing device for image processing, and the image processing apparatus is configured to use the image processing memory area when the image processing device is not used. The image processing memory area is used as an OS swap area for use by a specific process operating on the OS, and a first process for generating a swap file in the swap area and a swap area are generated. A second process for backing up the swap file to the secondary storage device and the memory area for image processing And a third process of switching the OS swap file reference destination from the swap file generated in the swap area to the swap file backed up in the secondary storage device when used in the image processing device. It is characterized by.
本発明の画像処理装置及びメモリ制御プログラム並びにメモリ制御方法によれば、従来と同等のジョブ処理パフォーマンスを維持しつつ、パフォーマンスが要求される他の機能を効率的に実施することができる。 According to the image processing apparatus, the memory control program, and the memory control method of the present invention, it is possible to efficiently perform other functions that require performance while maintaining job processing performance equivalent to that of the prior art.
その理由は、画像処理装置は、メインメモリに設けた画像処理用メモリ領域を、プリント、コピー、スキャン等のジョブ制御にかかる画像処理に使用していない時は、OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、当該スワップ領域に生成したスワップファイルを2次記憶装置にバックアップし、画像処理装置がジョブを受信するなどして画像処理用メモリ領域を使用する際、OSのスワップファイル参照先を、スワップ領域に生成したスワップファイルから、2次記憶装置にバックアップしたスワップファイルに切り替える制御を行うからである。また、画像処理装置は、画像処理用メモリ領域が画像処理に使用されなくなった時は、画像処理用メモリ領域をスワップ領域として使用し、2次記憶装置にバックアップしたスワップファイルをスワップ領域にコピーし、OSのスワップファイル参照先を、2次記憶装置にバックアップしたスワップファイルから、スワップ領域にコピーしたスワップファイルに切り替える制御を行うからである。また、画像処理装置は、受信したジョブの種別に基づき、該ジョブ制御にかかる画像処理に使用される画像処理用メモリ領域を特定し、特定された画像処理用メモリ領域のスワップ領域のスワップファイルについてのみ、OSのスワップファイル参照先を、2次記憶装置上にバックアップしたスワップファイルに切り替える制御を行うからである。 The reason is that when the image processing device does not use the image processing memory area provided in the main memory for image processing related to job control such as printing, copying, and scanning, a specific process operating on the OS. When using the image processing memory area by backing up the swap file generated in the swap area to the secondary storage device and receiving the job, etc. This is because control is performed to switch the swap file reference destination of the OS from the swap file generated in the swap area to the swap file backed up to the secondary storage device. When the image processing memory area is no longer used for image processing, the image processing apparatus uses the image processing memory area as a swap area and copies the swap file backed up to the secondary storage device to the swap area. This is because control is performed to switch the swap file reference destination of the OS from the swap file backed up to the secondary storage device to the swap file copied to the swap area. Further, the image processing apparatus identifies the image processing memory area used for the image processing related to the job control based on the received job type, and the swap file of the swap area of the identified image processing memory area This is because control is performed to switch the swap file reference destination of the OS to the swap file backed up on the secondary storage device.
背景技術で示したように、MFPでは、プリント、コピー、スキャン等のジョブ制御の際に画像処理を行うが、画像処理では、常に所定のパフォーマンスを満足する必要があるため、DMA(Direct Memory Access)により、所定サイズのデータ(例えば、256ライン分のデータ)が一塊として転送される。このDMA転送では、画像処理デバイスがCPUを介さずにメモリに直接アクセスするため、メモリ内に、物理的に連続しているメモリ領域(画像処理用メモリ領域)を確保している。しかしながら、近年のMFPは、上記のジョブを処理する機能に加えて、サーバ機能などの一定以上のパフォーマンスを要求される機能が搭載されつつあり、メモリ内に画像処理用メモリ領域を確保する構成では、OSがデータスワップを行うためのメモリ領域を十分に確保することができず、サーバ機能などを効率的に実施することができない。 As shown in the background art, an MFP performs image processing when controlling jobs such as printing, copying, and scanning. However, since image processing must always satisfy a predetermined performance, DMA (Direct Memory Access) ), Data of a predetermined size (for example, data for 256 lines) is transferred as a lump. In this DMA transfer, since the image processing device directly accesses the memory without using the CPU, a physically continuous memory area (image processing memory area) is secured in the memory. However, recent MFPs are being equipped with functions that require a certain level of performance, such as server functions, in addition to the functions for processing the jobs described above, and have a configuration that secures an image processing memory area in the memory. The memory area for the OS to perform data swap cannot be sufficiently secured, and the server function or the like cannot be efficiently implemented.
そこで、本発明の一実施の形態では、ジョブを処理する機能に加えて、Webサーバやファイルサーバ等のサーバ機能のようなパフォーマンスが要求される他の機能を有するMFPなどの画像処理装置において、OSのカーネルが使用しないメモリ領域(OS管理外領域と呼ぶ。)に確保される画像処理用メモリ領域を、仮想RAMディスクとして使用し、仮想RAMディスク上にOSのスワップファイルを作成し、OS管理外領域をOSのメモリ拡張として使用する。そして、スワップファイルを常時、2次記憶装置にバックアップし、画像処理用メモリ領域を使用するジョブ(プリント、コピー、スキャン等のジョブ)を受信した場合は、OSのスワップファイル参照先を、仮想RAMディスク上のスワップファイルから2次記憶装置上のスワップファイルに切り替える。 Therefore, in one embodiment of the present invention, in an image processing apparatus such as an MFP having other functions that require performance such as a server function such as a Web server and a file server in addition to a function for processing a job, An image processing memory area secured in a memory area not used by the OS kernel (referred to as an OS non-management area) is used as a virtual RAM disk, and an OS swap file is created on the virtual RAM disk for OS management. The outer area is used as an OS memory extension. When the swap file is always backed up to the secondary storage device and a job using the image processing memory area (job for printing, copying, scanning, etc.) is received, the swap file reference destination of the OS is set to the virtual RAM. Switch from the swap file on the disk to the swap file on the secondary storage device.
このような制御を行うことにより、OS管理外領域に確保した画像処理用メモリ領域を、OS上で動作する他のプロセスがOSのスワップ領域として使用することができるようになり、OSのカーネルが使用するメモリ領域(OS管理内領域と呼ぶ。)が枯渇した場合においても、パフォーマンスを維持することができる。また、プリント、コピー、スキャン等のジョブ制御に際して画像処理用メモリ領域を使用する際は、OSのスワップファイル参照先を2次記憶上のスワップファイルに切り替えることにより、画像処理用メモリ領域を高速に解放することができるため、従来と同等のパフォーマンスで画像処理を行うことができる。 By performing such control, the image processing memory area secured in the non-OS management area can be used as the OS swap area by other processes operating on the OS. Even when a memory area to be used (referred to as an OS management internal area) is exhausted, performance can be maintained. In addition, when using the image processing memory area for job control such as printing, copying, and scanning, the image processing memory area can be made faster by switching the OS swap file reference destination to the swap file on the secondary storage. Therefore, image processing can be performed with the same performance as before.
上記した本発明の実施の形態についてさらに詳細に説明すべく、本発明の第1の実施例に係る画像処理装置及びメモリ制御プログラム並びにメモリ制御方法について、図1乃至図10を参照して説明する。図1は、本実施例の画像形成装置の概略構成を示すブロック図であり、図2は、メインメモリ構成を示す模式図、図3は、ドライブ構成を示す模式図である。また、図4、図7、図9は、スワップ制御を示す模式図であり、図5、図6、図8、図10は、スワップ制御を示すフローチャート図である。 In order to describe the above-described embodiment of the present invention in further detail, an image processing apparatus, a memory control program, and a memory control method according to a first example of the present invention will be described with reference to FIGS. . FIG. 1 is a block diagram illustrating a schematic configuration of the image forming apparatus according to the present exemplary embodiment, FIG. 2 is a schematic diagram illustrating a main memory configuration, and FIG. 3 is a schematic diagram illustrating a drive configuration. 4, 7, and 9 are schematic diagrams showing swap control, and FIGS. 5, 6, 8, and 10 are flowcharts showing swap control.
以下、本実施例では、メモリ制御を行う装置として、画像形成装置を例にして説明する。本実施例の画像形成装置10は、図1に示すように、CPU(Central Processing Unit)11、メインメモリ12、不揮発メモリ13、2次記憶装置14、ネットワークI/F部15、UI(User Interface)部16、画像入力装置17、画像処理装置18、画像出力装置19などで構成される。
Hereinafter, in this embodiment, an image forming apparatus will be described as an example of an apparatus that performs memory control. As shown in FIG. 1, an image forming apparatus 10 according to the present embodiment includes a CPU (Central Processing Unit) 11, a
マイクロプロセッサなどで構成されるCPU11と、DRAM(Dynamic Random Access Memory)などで構成されるメインメモリ12と、NAND型やNOR型のフラッシュメモリなどで構成される不揮発メモリ13と、で制御部が構成され、CPU11は、不揮発メモリ13や2次記憶装置14からプログラムを読み出し、メインメモリ12に展開して実行することにより、画像形成装置10全体の制御を行う。
A control unit is configured by a CPU 11 configured by a microprocessor, a
特に、本実施例では、制御部(CPU11により実行されるメモリ制御プログラム)は、画像入力装置17、画像処理装置18、画像出力装置19などの画像処理デバイスの動作を監視し、後述する画像処理用メモリ領域が画像処理デバイスに使用されていないと判断した時は、画像処理用メモリ領域を、OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、スワップ領域にスワップファイルを生成する第1処理と、スワップ領域に生成したスワップファイルを2次記憶装置14にバックアップする第2処理と、画像処理デバイスの動作を監視し、画像処理用メモリ領域が画像処理デバイスに使用されると判断した時に、OSのスワップファイル参照先を、スワップ領域に生成したスワップファイルから、2次記憶装置14にバックアップしたスワップファイルに切り替える第3処理と、第3処理後、画像処理デバイスの動作を監視し、画像処理用メモリ領域が画像処理デバイスに使用されなくなったと判断した時は、画像処理用メモリ領域をスワップ領域として使用し、2次記憶装置14にバックアップしたスワップファイルをスワップ領域にコピーし、OSのスワップファイル参照先を、2次記憶装置14にバックアップしたスワップファイルから、スワップ領域にコピーしたスワップファイルに切り替える第4処理と、を実行する。
In particular, in this embodiment, the control unit (memory control program executed by the CPU 11) monitors the operations of image processing devices such as the image input device 17, the
2次記憶装置14は、HDD(Hard Disk Drive)やSSD(Solid State Drive)などで構成され、OS、プリント/コピー/スキャン等のジョブ処理機能を実行するプログラム、Webサーバ/ファイルサーバ等のサーバ機能を実行するプログラムを記憶すると共に、バックアップ(スワップアウト)されたスワップファイルなどを記憶する。
The
ネットワークI/F部15は、NIC(Network Interface Card)やモデムなどで構成され、画像形成装置10を通信ネットワークに接続し、図示しないクライアント端末やサーバ装置などの外部装置とのアクセスを可能にする。
The network I /
UI部16は、液晶表示装置等の表示部上に、透明電極が格子状に配置された感圧式の操作部を備えたタッチパネルなどで構成され、画像形成装置10を操作するための画面などを表示すると共に、各種設定や指示などを可能にする。
The
画像入力装置17は、例えば、スキャナなどの画像処理デバイスであり、原稿台に載置された原稿をスキャンし、光学的に読み取った画像データを画像処理装置18に出力(画像処理が不要な場合はメインメモリ12に格納)する。 The image input device 17 is, for example, an image processing device such as a scanner, and scans a document placed on a document table and outputs optically read image data to the image processing device 18 (when image processing is unnecessary). Is stored in the main memory 12).
画像処理装置18は、例えば、ASIC(Application Specific Integrated Circuit)などの画像処理デバイスであり、必要に応じて、画像入力装置17から転送された画像データに対して、エッジ強調処理や、スムージング処理、色変換処理等の画像処理を行う。また、画像処理装置18は、他の装置から、PostScriptやPCL(Printer Control Language)に代表されるPDL(Page Description Language)で記述された印刷ジョブを取得した場合は、印刷ジョブに含まれる各ページをラスタライズしてページ毎の画像データを生成するRIP(Raster Image Processor)部として機能し、生成した画像データに対して上記画像処理を行う。そして、画像処理後の画像データをメインメモリ12に格納する。
The
画像出力装置19は、例えば、印刷エンジンなどの画像処理デバイスであり、メインメモリ12に格納された画像データに基づいて、用紙への印刷処理を行う。具体的には、電子写真方式の場合は、帯電装置により帯電された感光体ドラムに、露光装置から画像データに応じた光を照射して静電潜像を形成し、現像装置で帯電したトナーを付着させて現像し、そのトナー像を転写ベルトに1次転写し、転写ベルトから用紙に2次転写し、更に定着装置で用紙上のトナー像を定着させる処理を行う。
The
なお、図1は、本実施例の画像形成装置10の一例であり、その構成は適宜変更可能である。例えば、図1では、画像形成装置10に画像入力装置17や画像出力装置19を含む構成としたが、画像入力装置17や画像出力装置19を画像形成装置10とは別体の装置とし、画像形成装置10と有線又は無線で接続される構成としてもよい。画像出力装置19を別体の装置とした場合、画像形成装置10は、画像出力装置19に出力する画像データを生成する(すなわち、画像処理までを行う)画像処理装置となる。
FIG. 1 shows an example of the image forming apparatus 10 of the present embodiment, and the configuration thereof can be changed as appropriate. For example, in FIG. 1, the image forming apparatus 10 includes the image input apparatus 17 and the
次に、本実施例のメモリ構成について説明する。図2に示すように、本実施例では、メインメモリ12を、CPU11により実行されるOS(OSのカーネル)、及びOS上で動作する各アプリケーションプロセスが使用する、OS用メモリ領域(OS管理内領域)と、画像形成装置10の画像処理機能(画像入力装置17、画像処理装置18、画像出力装置19などの画像処理デバイス)が画像処理に際して使用する、画像処理用メモリ領域(OS管理外領域)と、に分割して使用する。
Next, the memory configuration of this embodiment will be described. As shown in FIG. 2, in this embodiment, the
ここで、画像処理用メモリ領域はOS管理外領域であるため、従来、OS及びOS上で動作する各アプリケーションプロセスは、画像処理用メモリ領域をOSが認識するメインメモリ12の一部として使用することができない。これに対して、本実施例では、画像処理用メモリ領域を仮想RAMディスクとして使用し、図3に示すように、OSからは、システム上に、仮想RAMディスク、及び、2次記憶装置14の2種類のディスクドライブが存在するように認識させる。すなわち、画像処理用メモリ領域を、OSのメモリ拡張領域として使用する。
Here, since the image processing memory area is an area not managed by the OS, conventionally, each application process operating on the OS and the OS uses the image processing memory area as a part of the
以下、上記構成のメインメモリ12の使用制御について、図4、図7、図9の模式図、及び、図5、図6、図8、図10のフローチャート図を参照して説明する。CPU11は、不揮発メモリ13や2次記憶装置14に記憶したメモリ制御プログラムをメインメモリ12に展開して実行することにより、図5、図6、図8、図10のフローチャート図に示す各ステップの処理を実行する。なお、CPU11(メモリ制御プログラム)は、画像処理デバイスの動作を監視することにより、画像処理デバイスが画像処理用メモリ領域を使用しているか否かを判断する。
Hereinafter, usage control of the
[ジョブ制御未実施時のスワップ制御]
画像形成装置10が、プリント、コピー、スキャン等のジョブ制御を実施していない時は、画像処理デバイスにより画像処理が実行されないため、メインメモリ12の画像処理用メモリ領域は使用されない。そこで、本実施例では、図4に示すように、画像処理用メモリ領域を使用した仮想RAMディスク上に作成したスワップファイルを、OSのスワップファイル参照先に設定し、OS上で動作する各プロセスが使用するメモリ領域が枯渇した際、各プロセスが使用するメモリ上のデータを、仮想RAMディスク上のスワップファイルに退避する(図4のデータスワップ参照)。
[Swap control when job control is not executed]
When the image forming apparatus 10 is not performing job control such as printing, copying, and scanning, the image processing device does not execute image processing, so the image processing memory area of the
具体的には、図5に示すように、まず、CPU11(メモリ制御プログラム)は、各プロセスが使用するメモリサイズを取得し(S101)、取得したメモリサイズとメインメモリ12のOS管理内領域の空き容量とを比較することにより、データ退避が必要であるか否かを判断する(S102)。各プロセスが使用するメモリサイズの領域をメインメモリ12のOS管理内領域に確保できる場合は、メインメモリ12上のデータ退避が必要ないため(S102のNo)、S101に戻って、次のプロセスが使用するメモリサイズを取得する。一方、各プロセスが使用するメモリサイズの領域をメインメモリ12に確保できない場合は、CPU11(メモリ制御プログラム)は、メインメモリ12上のデータ退避が必要と判断し(S102のYes)、メインメモリ12上のデータをスワップファイル参照先のスワップファイル(画像処理用メモリ領域が使用されていない場合は、画像処理用メモリ領域を使用した仮想RAMディスク上に作成したスワップファイル)に退避させる(S103)。
Specifically, as shown in FIG. 5, first, the CPU 11 (memory control program) acquires the memory size used by each process (S101), and acquires the acquired memory size and the OS management internal area of the
このように、OS管理内領域のメモリが枯渇した場合においても、OS管理外領域である画像処理用メモリ領域を、OSのスワップ領域として使用することにより、OS上で動作する各アプリケーションプロセスのパフォーマンスを維持することができる。 As described above, even when the memory in the OS management area is exhausted, the performance of each application process operating on the OS is obtained by using the image processing memory area, which is an area outside the OS management, as the swap area of the OS. Can be maintained.
[スワップファイルのバックアップ制御]
本実施例では、画像処理用メモリ領域を使用した仮想RAMディスク上にスワップファイルを作成するが、プリント、コピー、スキャン等のジョブ制御の実施に際して画像処理用メモリ領域を使用すると、仮想RAMディスク上のスワップファイルに退避させたデータが消去されてしまう。そこで、本実施例では、図4に示すように、スワップファイルを、常時、2次記憶装置14にバックアップする(図4のバックアップ参照)。
[Swap file backup control]
In this embodiment, a swap file is created on a virtual RAM disk that uses the image processing memory area. However, if the image processing memory area is used for job control such as printing, copying, and scanning, the swap file is created on the virtual RAM disk. The data saved in the swap file is deleted. Therefore, in this embodiment, as shown in FIG. 4, the swap file is always backed up to the secondary storage device 14 (see backup in FIG. 4).
具体的には、図6に示すように、CPU11(メモリ制御プログラム)は、メインメモリ12上のデータを、画像処理用メモリ領域を使用した仮想RAMディスク上に作成したスワップファイルに退避させてからの経過時間を監視し、予め定めた一定時間が経過したかを判断する(S201)。一定時間が経過したら(S201のYes)、CPU11(メモリ制御プログラム)は、スワップファイル参照先が2次記憶装置14であるかを判断する(S202)。スワップファイル参照先が2次記憶装置14の場合は(S202のYes)、一連の処理を終了し、スワップファイル参照先が2次記憶装置14でない(すなわち、メインメモリ12の画像処理用メモリ領域を使用した仮想RAMディスク)の場合は(S202のNo)、CPU11(メモリ制御プログラム)は、2次記憶装置14上のスワップファイルと仮想RAMディスク上のスワップファイルとを比較して、スワップファイルに変更があるか否かを判断する(S203)。スワップファイルに変更がない場合は(S203のNo)、バックアップは不要であるため、S201に戻って同様の処理を繰り返す。一方、スワップファイルに変更がある場合は(S203のYes)、CPU11(メモリ制御プログラム)は、仮想RAMディスク上のスワップファイル(全部又は変更があった部分)を2次記憶装置14にバックアップし(S204)、S201に戻って同様の処理を繰り返す。
Specifically, as shown in FIG. 6, the CPU 11 (memory control program) saves the data on the
このように、仮想RAMディスク上のスワップファイルを、2次記憶装置14に常時バックアップすることにより、スワップファイルに退避させたデータの消去を未然に防止することができる。
In this way, by constantly backing up the swap file on the virtual RAM disk to the
[ジョブ制御時のスワップ制御]
画像形成装置10が、プリント、コピー、スキャン等のジョブ制御を実施する際、当該ジョブ制御に際して、画像処理デバイスがメインメモリ12の画像処理用メモリ領域を使用して画像処理を実行する。よって、ジョブ制御時は、仮想RAMディスクとして使用していた画像処理用メモリ領域を解放し、画像処理デバイスが使用できる状態とする必要がある。そこで、本実施例では、図7に示すように、ジョブ制御時にスワップファイル参照先を仮想RAMディスク上から2次記憶装置14上に切り替えるようにする。
[Swap control during job control]
When the image forming apparatus 10 performs job control such as printing, copying, and scanning, the image processing device executes image processing using the image processing memory area of the
具体的には、図8に示すように、CPU11(メモリ制御プログラム)は、プリント、コピー、スキャン等のジョブを受信(外部装置からジョブのデータを受信又はUI部16からジョブの指示を受信)すると(S301)、そのジョブの処理に、メインメモリ12の画像処理用メモリ領域を使用するか否か(すなわち、プリント、コピー、スキャン等のジョブであるか否か)を判断する(S302)。ジョブの処理にメインメモリ12の画像処理用メモリ領域を使用する場合(S302のYes)、CPU11(メモリ制御プログラム)は、OSのスワップファイル参照先を、画像処理用メモリ領域を使用した仮想RAMディスク上のスワップファイルから、2次記憶装置14上にバックアップしたスワップファイルに変更する(S303)。そして、上記のスワップファイル参照先の切り替え制御の実施後、OS管理内領域のメモリが枯渇した際、図7に示すように、2次記憶装置14上のスワップファイルにデータの退避を行う(図7のデータスワップ参照)。
Specifically, as shown in FIG. 8, the CPU 11 (memory control program) receives a job such as print, copy, or scan (receives job data from an external device or receives a job instruction from the UI unit 16). Then, it is determined whether or not the image processing memory area of the
このように、仮想RAMディスク上のスワップファイルが、OSから参照されない状態とすることにより、プリント、コピー、スキャン等のジョブ制御を従来と同等のパフォーマンスで実施することができる。 As described above, by setting the swap file on the virtual RAM disk not to be referred to by the OS, job control such as printing, copying, and scanning can be performed with the same performance as before.
[ジョブ制御完了後のスワップ制御]
画像形成装置10がジョブ制御を完了した後は、画像処理デバイスにより画像処理用メモリ領域が使用されなくなる。そこで、本実施例では、図9に示すように、OSのスワップファイル参照先を、2次記憶装置14上にバックアップしたスワップファイルから、再度、メインメモリ12の画像処理用メモリ領域を使用した仮想RAMディスク上のスワップファイルに切り替える制御を実施する。
[Swap control after job control is completed]
After the image forming apparatus 10 completes the job control, the image processing memory area is not used by the image processing device. Therefore, in this embodiment, as shown in FIG. 9, a virtual file that uses the image processing memory area of the
具体的には、図10に示すように、CPU11(メモリ制御プログラム)は、プリント、コピー、スキャン等のジョブ制御が完了したかを判断する(S401)。ジョブ制御が完了したら(S401のYes)、CPU11(メモリ制御プログラム)は、2次記憶装置14上のスワップファイルを、メインメモリ12の画像処理用メモリ領域を使用した仮想RAMディスクにコピーし(S402、図9の(1)参照)、コピー完了後、OSのスワップファイル参照先を、2次記憶装置14上のスワップファイルから仮想RAMディスク上のスワップファイルに切り替える(S403、図9の(2)参照)。そして、OSのスワップファイル参照先の切り替え制御完了後は、図5に示すスワップ制御と、図6に示すスワップファイルのバックアップ制御を実施する。
Specifically, as shown in FIG. 10, the CPU 11 (memory control program) determines whether job control such as printing, copying, and scanning has been completed (S401). When job control is completed (Yes in S401), the CPU 11 (memory control program) copies the swap file on the
このように、ジョブ制御完了後に、OSのスワップファイル参照先を、2次記憶装置14上にバックアップしたスワップファイルから、再度、メインメモリ12の画像処理用メモリ領域を使用した仮想RAMディスク上のスワップファイルに切り替える制御を行うことにより、OS上で動作する各アプリケーションプロセスのパフォーマンスを維持することができる。
As described above, after the job control is completed, the swap file reference destination of the OS is swapped on the virtual RAM disk using the image processing memory area of the
以上説明したように、メインメモリ12の画像処理用メモリ領域を、OS上で動作する各アプリケーションプロセスがOSのスワップ領域として使用できるようにすることにより、OSのカーネルが使用するメモリ領域(OS管理内領域)が枯渇した場合においても、各アプリケーションプロセスのパフォーマンスを維持することができる。また、プリント、コピー、スキャン等のジョブ制御の際に画像処理用メモリ領域を使用する時は、OSのスワップファイル参照先を2次記憶装置14上のスワップファイルに切り替える制御を行うことにより、画像処理用メモリ領域を高速に解放して、従来と同等のパフォーマンスで画像処理を行うことができる。
As described above, the image processing memory area of the
次に、本発明の第2の実施例に係る画像処理装置及びメモリ制御プログラム並びにメモリ制御方法について、図11乃至図13を参照して説明する。図11、図12は、スワップ制御を示す模式図であり、図13は、スワップ制御を示すフローチャート図である。 Next, an image processing apparatus, a memory control program, and a memory control method according to a second embodiment of the present invention will be described with reference to FIGS. 11 and 12 are schematic diagrams showing the swap control, and FIG. 13 is a flowchart showing the swap control.
前記した第1の実施例では、メインメモリ12の画像処理用メモリ領域を1つとして説明したが、プリントやコピー、スキャンなどの複数の機能を備える画像形成装置10では、画像処理用メモリ領域を機能毎に設けることもできる。
In the first embodiment described above, the image processing memory area of the
その場合、画像形成装置10の構成は第1の実施例と同様であるが、制御部(CPU11により実行されるメモリ制御プログラム)は、OSのスワップファイル参照先を、スワップ領域に生成したスワップファイルから、2次記憶装置14にバックアップしたスワップファイルに切り替える第3処理において、画像処理デバイスが実行するジョブの種別を判断し、判断した種別のジョブを処理するために使用される画像処理用メモリ領域を特定し、OSのスワップファイル参照先を、特定した画像処理用メモリ領域内のスワップ領域のスワップファイルのみ、2次記憶装置14上にバックアップされたスワップファイルに切り替える第4処理を更に実行する。
In this case, the configuration of the image forming apparatus 10 is the same as that of the first embodiment, but the control unit (memory control program executed by the CPU 11) generates the swap file reference destination of the OS in the swap area. From the third process of switching to the swap file backed up in the
以下、図11、図12の模式図、及び、図13のフローチャート図を参照して説明する。CPU11は、不揮発メモリ13や2次記憶装置14に記憶したメモリ制御プログラムをメインメモリ12に展開して実行することにより、図13のフローチャート図に示す各ステップの処理を実行する。
Hereinafter, description will be made with reference to the schematic diagrams of FIGS. 11 and 12 and the flowchart of FIG. 13. The CPU 11 executes the processing of each step shown in the flowchart of FIG. 13 by developing the memory control program stored in the
[ジョブ種別に基づくスワップ先切り替え制御]
画像形成装置10が、プリント、コピー、スキャン等のジョブ制御を実施する際、ジョブの種別により異なる制御が実施され、その際に使用される画像処理用メモリ領域も、ジョブ種別により異なる。そこで、本実施例では、図11に示すように、予め、画像処理用メモリ領域を、ジョブ種別毎に使用されるメモリ領域(プリント画像処理用領域、コピー画像処理用領域、スキャン画像処理用領域など)に分割する。そして、分割された各々の画像処理用メモリ領域を、異なる仮想RAMディスクとして使用し、各仮想RAMディスクにスワップファイルを生成し、各スワップファイルをOSのスワップファイル参照先として設定する。また、各々の仮想RAMディスク上のスワップファイルは、常時、2次記憶装置14にバックアップを実施する。
[Swap destination switching control based on job type]
When the image forming apparatus 10 performs job control such as printing, copying, and scanning, different control is performed depending on the type of job, and the image processing memory area used at that time also varies depending on the job type. Therefore, in this embodiment, as shown in FIG. 11, an image processing memory area is preliminarily used as a memory area (print image processing area, copy image processing area, scan image processing area) used for each job type. Etc.). Then, each divided image processing memory area is used as a different virtual RAM disk, a swap file is generated in each virtual RAM disk, and each swap file is set as a swap file reference destination of the OS. The swap file on each virtual RAM disk is always backed up to the
そして、図12に示すように、画像形成装置10がジョブを受信(外部装置からジョブのデータを受信又はUI部16からジョブの指示を受信)した際、受信したジョブの種別に基づいて、該ジョブ制御に掛かる画像処理が使用する画像処理用メモリ領域(ここではプリント画像処理用領域)を特定し、特定された領域に保存されたスワップファイル(ここではスワップファイル1)についてのみ、OSのスワップファイル参照先を、画像処理用メモリ領域上のスワップファイルから2次記憶装置14上にバックアップされたスワップファイルに切り替える制御を実施する。
Then, as shown in FIG. 12, when the image forming apparatus 10 receives a job (receives job data from an external device or receives a job instruction from the UI unit 16), the image forming apparatus 10 receives the job based on the received job type. An image processing memory area (in this case, a print image processing area) used by image processing for job control is specified, and only the swap file (here, swap file 1) stored in the specified area is swapped by the OS. Control is performed to switch the file reference destination from the swap file on the image processing memory area to the swap file backed up on the
具体的には、図13に示すように、CPU11(メモリ制御プログラム)は、プリント、コピー、スキャン等のジョブを受信すると(S501)、そのジョブの処理に、メインメモリ12の画像処理用メモリ領域を使用するか否か(すなわち、プリント、コピー、スキャン等のジョブであるか否か)を判断する(S502)。ジョブの処理にメインメモリ12の画像処理用メモリ領域を使用する場合(S502のYes)、CPU11(メモリ制御プログラム)は、ジョブの種別を判断し、判断した種別のジョブの処理に使用する画像処理用メモリ領域を特定する(S503)。そして、CPU11(メモリ制御プログラム)は、OSのスワップファイル参照先を、特定した画像処理用メモリ領域を使用した仮想RAMディスク上のスワップファイルから、2次記憶装置14上にバックアップした、対応するスワップファイルに変更する(S504)。
Specifically, as shown in FIG. 13, when the CPU 11 (memory control program) receives a job such as printing, copying, or scanning (S501), the image processing memory area of the
その後、画像処理用メモリ領域を使用するジョブの処理が完了したら、第1の実施例と同様に、そのジョブに対応する画像処理用メモリ領域を仮想RAMディスクとして使用し、各仮想RAMディスクにスワップファイルを生成し、各スワップファイルをOSのスワップファイル参照先として設定する。また、各々の仮想RAMディスク上のスワップファイルを2次記憶装置14にバックアップする。
After that, when processing of the job using the image processing memory area is completed, the image processing memory area corresponding to the job is used as a virtual RAM disk and swapped to each virtual RAM disk as in the first embodiment. A file is generated, and each swap file is set as a swap file reference destination of the OS. In addition, the swap file on each virtual RAM disk is backed up to the
このように、ジョブ制御、及び、ジョブ制御に掛かる画像処理を実施する際、画像処理用メモリ領域のうち、当該ジョブ制御、及び、当該ジョブ制御に掛かる画像処理が使用する画像処理用メモリ領域のみを選択的に解放することにより、ジョブ制御実施時においても、一部の画像処理用メモリ領域を、OSのスワップ領域として継続的に使用できるようになり、OS上で動作する各アプリケーションプロセスのパフォーマンスの低下を最小限に抑制することができる。また、ジョブ制御完了後のスワップファイル参照先切り替え制御においても、2次記憶装置14上のスワップファイルを画像処理用メモリ領域にコピーする制御の負荷を軽減することができる。
As described above, when performing image processing related to job control and job control, only the image processing memory area used by the job control and image processing related to the job control is included in the image processing memory area. By selectively releasing the image processing area, a part of the image processing memory area can be continuously used as the swap area of the OS even during job control, and the performance of each application process operating on the OS Can be minimized. Also in the swap file reference destination switching control after the job control is completed, the control load for copying the swap file on the
なお、本発明は上記実施例に限定されるものではなく、本発明の趣旨を逸脱しない限りにおいて、画像形成装置10の構成やメインメモリ12の制御方法は適宜変更可能である。
Note that the present invention is not limited to the above embodiment, and the configuration of the image forming apparatus 10 and the control method of the
例えば、上記実施例では、画像形成装置10におけるメインメモリ12の使用制御について説明したが、画像処理デバイスを備える任意の画像処理装置に対して、本発明のメモリ制御方法を同様に適用することができる。
For example, in the above embodiment, the use control of the
また、上記実施例では、メインメモリ12に画像処理用メモリ領域を設ける場合について説明したが、データの暗号化/復号化を行うデバイスが使用する暗号化/復号化処理用メモリ領域を設ける場合に対しても、本発明のメモリ制御方法を同様に適用することができる。
In the above embodiment, the case where the image processing memory area is provided in the
本発明は、メインメモリ内に画像処理用メモリ領域を有する画像処理装置及び画像処理用メモリ領域の使用を制御するメモリ制御プログラム並びに当該メモリ制御プログラムを記録した記録媒体並びにメモリ制御方法に利用可能である。 The present invention is applicable to an image processing apparatus having an image processing memory area in a main memory, a memory control program for controlling use of the image processing memory area, a recording medium storing the memory control program, and a memory control method. is there.
10 画像形成装置
11 CPU
12 メインメモリ
13 不揮発メモリ
14 2次記憶装置
15 ネットワークI/F部
16 UI部
17 画像入力装置
18 画像処理装置
19 画像出力装置
10 Image forming apparatus 11 CPU
12
Claims (9)
前記メインメモリは、前記プロセッサにより実行されるOSが使用するOS用メモリ領域と、前記画像処理デバイスが画像処理に際して使用する画像処理用メモリ領域と、を備え、
前記画像処理装置は、
前記画像処理用メモリ領域が前記画像処理デバイスに使用されていない時は、前記画像処理用メモリ領域を、前記OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、前記スワップ領域にスワップファイルを生成し、
前記スワップ領域に生成したスワップファイルを、前記2次記憶装置にバックアップし、
前記画像処理用メモリ領域が前記画像処理デバイスに使用される時に、前記OSのスワップファイル参照先を、前記スワップ領域に生成したスワップファイルから、前記2次記憶装置にバックアップしたスワップファイルに切り替える制御部を備える、
ことを特徴とする画像処理装置。 An image processing apparatus comprising at least a processor, a main memory, a secondary storage device, and an image processing device,
The main memory includes an OS memory area used by an OS executed by the processor and an image processing memory area used by the image processing device for image processing.
The image processing apparatus includes:
When the image processing memory area is not used by the image processing device, the image processing memory area is used as an OS swap area for use by a specific process operating on the OS. Generate a swap file in the swap area,
Back up the swap file generated in the swap area to the secondary storage device,
When the image processing memory area is used for the image processing device, the control unit switches the swap file reference destination of the OS from the swap file generated in the swap area to the swap file backed up in the secondary storage device. Comprising
An image processing apparatus.
前記OSのスワップファイル参照先を前記2次記憶装置にバックアップしたスワップファイルに切り替えた後、前記画像処理用メモリ領域が前記画像処理デバイスに使用されなくなった時は、前記画像処理用メモリ領域を前記スワップ領域として使用し、前記2次記憶装置にバックアップしたスワップファイルを前記スワップ領域にコピーし、前記OSのスワップファイル参照先を、前記2次記憶装置にバックアップしたスワップファイルから、前記スワップ領域にコピーしたスワップファイルに切り替える、
ことを特徴とする請求項1に記載の画像処理装置。 The controller is
After the swap file reference destination of the OS is switched to the swap file backed up to the secondary storage device, when the image processing memory area is no longer used by the image processing device, the image processing memory area is Use as a swap area, copy the swap file backed up to the secondary storage device to the swap area, and copy the swap file reference destination of the OS from the swap file backed up to the secondary storage device to the swap area Switch to the swap file
The image processing apparatus according to claim 1.
前記制御部は、
前記OSのスワップファイル参照先を前記2次記憶装置にバックアップしたスワップファイルに切り替える際に、前記画像処理デバイスが実行するジョブの種別を判断し、判断した種別のジョブを処理するために使用される画像処理用メモリ領域を特定し、前記特定した画像処理用メモリ領域内の前記スワップ領域のスワップファイルのみ、前記OSのスワップファイル参照先を、前記2次記憶装置上にバックアップしたスワップファイルに切り替える、
ことを特徴とする請求項1又は2に記載の画像処理装置。 The image processing memory area is divided for each type of job that can be executed by the image processing device,
The controller is
Used to switch the swap file reference destination of the OS to a swap file backed up in the secondary storage device, to determine the type of job executed by the image processing device, and to process the job of the determined type An image processing memory area is specified, and only the swap file in the swap area in the specified image processing memory area is switched to the swap file backed up on the secondary storage device as the swap file reference destination of the OS.
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前記メインメモリは、前記プロセッサにより実行されるOSが使用するOS用メモリ領域と、前記画像処理デバイスが画像処理に際して使用する画像処理用メモリ領域と、を備え、
前記画像処理装置の前記プロセッサに、
前記画像処理デバイスの動作を監視し、前記画像処理用メモリ領域が前記画像処理デバイスに使用されていないと判断した時は、前記画像処理用メモリ領域を、前記OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、前記スワップ領域にスワップファイルを生成する第1処理、
前記スワップ領域に生成したスワップファイルを、前記2次記憶装置にバックアップする第2処理、
前記画像処理デバイスの動作を監視し、前記画像処理用メモリ領域が前記画像処理デバイスに使用されると判断した時に、前記OSのスワップファイル参照先を、前記スワップ領域に生成したスワップファイルから、前記2次記憶装置にバックアップしたスワップファイルに切り替える第3処理、を実行させる、
ことを特徴とするメモリ制御プログラム。 A memory control program that operates in an image processing apparatus including at least a processor, a main memory, a secondary storage device, and an image processing device,
The main memory includes an OS memory area used by an OS executed by the processor and an image processing memory area used by the image processing device for image processing.
In the processor of the image processing apparatus,
When the operation of the image processing device is monitored and it is determined that the image processing memory area is not used by the image processing device, a specific process operating on the OS A first process for generating a swap file in the swap area, which is used as an OS swap area for use;
A second process for backing up the swap file generated in the swap area to the secondary storage device;
When the operation of the image processing device is monitored and it is determined that the image processing memory area is used for the image processing device, the swap file reference destination of the OS is determined from the swap file generated in the swap area. Causing the third process to switch to the swap file backed up to the secondary storage device,
A memory control program.
前記第3処理後、前記画像処理デバイスの動作を監視し、前記画像処理用メモリ領域が前記画像処理デバイスに使用されなくなったと判断した時は、前記画像処理用メモリ領域を前記スワップ領域として使用し、前記2次記憶装置にバックアップしたスワップファイルを前記スワップ領域にコピーし、前記OSのスワップファイル参照先を、前記2次記憶装置にバックアップしたスワップファイルから、前記スワップ領域にコピーしたスワップファイルに切り替える第4処理を実行させる、
ことを特徴とする請求項4に記載のメモリ制御プログラム。 In the processor of the image processing apparatus,
After the third processing, the operation of the image processing device is monitored, and when it is determined that the image processing memory area is no longer used by the image processing device, the image processing memory area is used as the swap area. The swap file backed up to the secondary storage device is copied to the swap area, and the swap file reference destination of the OS is switched from the swap file backed up to the secondary storage device to the swap file copied to the swap area. To execute the fourth process,
The memory control program according to claim 4, wherein:
前記第3処理では、
前記画像処理装置が実行するジョブの種別を判断し、判断した種別のジョブを処理するために使用される画像処理用メモリ領域を特定し、前記特定した画像処理用メモリ領域内の前記スワップ領域のスワップファイルのみ、前記OSのスワップファイル参照先を、前記2次記憶装置上にバックアップしたスワップファイルに切り替える、
ことを特徴とする請求項4又は5に記載のメモリ制御プログラム。 The image processing memory area is divided for each type of job that can be executed by the image processing device,
In the third process,
The type of job executed by the image processing apparatus is determined, an image processing memory area used for processing the determined type of job is specified, and the swap area in the specified image processing memory area is specified. Only the swap file, the swap file reference destination of the OS is switched to the swap file backed up on the secondary storage device,
6. The memory control program according to claim 4 or 5, wherein:
前記メインメモリは、前記プロセッサにより実行されるOSが使用するOS用メモリ領域と、前記画像処理デバイスが画像処理に際して使用する画像処理用メモリ領域と、を備え、
前記画像処理装置は、
前記画像処理用メモリ領域が前記画像処理デバイスに使用されていない時は、前記画像処理用メモリ領域を、前記OS上で動作する特定のプロセスが使用するためのOSのスワップ領域として使用し、前記スワップ領域にスワップファイルを生成する第1処理と、
前記スワップ領域に生成したスワップファイルを、前記2次記憶装置にバックアップする第2処理と、
前記画像処理用メモリ領域が前記画像処理デバイスに使用される時に、前記OSのスワップファイル参照先を、前記スワップ領域に生成したスワップファイルから、前記2次記憶装置にバックアップしたスワップファイルに切り替える第3処理と、を実行する、
ことを特徴とするメモリ制御方法。 A memory control method in an image processing apparatus comprising at least a processor, a main memory, a secondary storage device, and an image processing device,
The main memory includes an OS memory area used by an OS executed by the processor and an image processing memory area used by the image processing device for image processing.
The image processing apparatus includes:
When the image processing memory area is not used by the image processing device, the image processing memory area is used as an OS swap area for use by a specific process operating on the OS. A first process for generating a swap file in the swap area;
A second process for backing up the swap file generated in the swap area to the secondary storage device;
When the image processing memory area is used for the image processing device, the swap file reference destination of the OS is switched from the swap file generated in the swap area to the swap file backed up in the secondary storage device. Process and execute,
And a memory control method.
前記第3処理後、前記画像処理用メモリ領域が前記画像処理デバイスに使用されなくなった時は、前記画像処理用メモリ領域を前記スワップ領域として使用し、前記2次記憶装置にバックアップしたスワップファイルを前記スワップ領域にコピーし、前記OSのスワップファイル参照先を、前記2次記憶装置にバックアップしたスワップファイルから、前記スワップ領域にコピーしたスワップファイルに切り替える第4処理を実行する、
ことを特徴とする請求項7に記載のメモリ制御方法。 The image processing apparatus further includes:
After the third processing, when the image processing memory area is no longer used by the image processing device, the image processing memory area is used as the swap area, and the swap file backed up in the secondary storage device is stored. Performing a fourth process of copying to the swap area and switching the swap file reference destination of the OS from the swap file backed up to the secondary storage device to the swap file copied to the swap area;
The memory control method according to claim 7.
前記第3処理では、
前記画像処理装置が実行するジョブの種別を判断し、判断した種別のジョブを処理するために使用される画像処理用メモリ領域を特定し、前記特定した画像処理用メモリ領域内の前記スワップ領域のスワップファイルのみ、前記OSのスワップファイル参照先を、前記2次記憶装置上にバックアップしたスワップファイルに切り替える、
ことを特徴とする請求項7又は8に記載のメモリ制御方法。 The image processing memory area is divided for each type of job that can be executed by the image processing device,
In the third process,
The type of job executed by the image processing apparatus is determined, an image processing memory area used for processing the determined type of job is specified, and the swap area in the specified image processing memory area is specified. Only the swap file, the swap file reference destination of the OS is switched to the swap file backed up on the secondary storage device,
9. The memory control method according to claim 7 or 8, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016009363A JP6524928B2 (en) | 2016-01-21 | 2016-01-21 | Image processing apparatus, memory control program and memory control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2016009363A JP6524928B2 (en) | 2016-01-21 | 2016-01-21 | Image processing apparatus, memory control program and memory control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2017130071A true JP2017130071A (en) | 2017-07-27 |
JP6524928B2 JP6524928B2 (en) | 2019-06-05 |
Family
ID=59394889
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2016009363A Active JP6524928B2 (en) | 2016-01-21 | 2016-01-21 | Image processing apparatus, memory control program and memory control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6524928B2 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019140492A (en) * | 2018-02-08 | 2019-08-22 | コニカミノルタ株式会社 | Image processing apparatus |
JP2020069777A (en) * | 2018-11-02 | 2020-05-07 | 京セラドキュメントソリューションズ株式会社 | Image processing device |
US11134164B2 (en) | 2018-03-06 | 2021-09-28 | Fujifilm Business Innovation Corp. | Information processing apparatus and non-transitory computer readable medium storing program |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2022067523A (en) | 2020-10-20 | 2022-05-06 | キヤノン株式会社 | Information processing device, control method, and program |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009211310A (en) * | 2008-03-03 | 2009-09-17 | Canon Inc | Information processing apparatus and method of controlling the same |
-
2016
- 2016-01-21 JP JP2016009363A patent/JP6524928B2/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009211310A (en) * | 2008-03-03 | 2009-09-17 | Canon Inc | Information processing apparatus and method of controlling the same |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2019140492A (en) * | 2018-02-08 | 2019-08-22 | コニカミノルタ株式会社 | Image processing apparatus |
US11134164B2 (en) | 2018-03-06 | 2021-09-28 | Fujifilm Business Innovation Corp. | Information processing apparatus and non-transitory computer readable medium storing program |
JP2020069777A (en) * | 2018-11-02 | 2020-05-07 | 京セラドキュメントソリューションズ株式会社 | Image processing device |
JP7103167B2 (en) | 2018-11-02 | 2022-07-20 | 京セラドキュメントソリューションズ株式会社 | Image processing equipment |
Also Published As
Publication number | Publication date |
---|---|
JP6524928B2 (en) | 2019-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8176344B2 (en) | Information processing apparatus and control method thereof | |
JP6524928B2 (en) | Image processing apparatus, memory control program and memory control method | |
JP6750465B2 (en) | Roll paper printing apparatus, roll paper printing control program, and roll paper printing control method | |
US10452329B2 (en) | Information processing apparatus that controls display of an erasure mode setting screen based on a type of storage device in the apparatus, and method of controlling the same | |
JP4333717B2 (en) | Image forming apparatus | |
JP5850880B2 (en) | Image forming apparatus and image forming system | |
JP2010038998A (en) | Image forming apparatus, start-up control method, program, and recording medium | |
US10057433B2 (en) | Image forming apparatus, operation control method and non-transitory computer-readable storage medium storing operation control program | |
US9348295B2 (en) | Printing apparatus, method for controlling printing apparatus, and storage medium | |
JP2018078485A (en) | Information processing apparatus and starting method of information processing apparatus | |
KR101623625B1 (en) | Information processing apparatus equipped with overwrite deletion function, method of controlling the same, and storage medium | |
JP2008067299A (en) | Image forming apparatus | |
JP5232728B2 (en) | Image forming apparatus | |
JP6996189B2 (en) | Print controller, image forming system and image forming device | |
JP2013152509A (en) | Image processing apparatus | |
US10956090B2 (en) | Memory system and electronic apparatus | |
JP6459543B2 (en) | Image forming apparatus, job processing control method, and job processing control program | |
US8411314B2 (en) | Image forming apparatus for forming an image by transferring an image onto an intermediate transfer member, image forming method, and storage medium | |
JP6485699B2 (en) | Image forming apparatus and image forming system | |
JP6459570B2 (en) | Image forming apparatus, activation control method, and activation control program | |
JP2018039142A (en) | Printing system, printing control method, and printing control program | |
JP2008195041A (en) | Image formation system, information processing method, information processing program | |
JP5393628B2 (en) | Image forming apparatus | |
JP2011048590A (en) | Image forming device | |
JP2016126600A (en) | Print system, print control method and print control program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20180914 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20190220 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20190226 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20190327 |
|
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: 20190409 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20190422 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6524928 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |