JP2004334592A - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP2004334592A JP2004334592A JP2003130623A JP2003130623A JP2004334592A JP 2004334592 A JP2004334592 A JP 2004334592A JP 2003130623 A JP2003130623 A JP 2003130623A JP 2003130623 A JP2003130623 A JP 2003130623A JP 2004334592 A JP2004334592 A JP 2004334592A
- Authority
- JP
- Japan
- Prior art keywords
- cache
- unit
- image processing
- timer
- management unit
- 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
Links
Images
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
- Record Information Processing For Printing (AREA)
Abstract
Description
【0001】
【発明の属する技術分野】
本発明は、画像処理装置に関し、特に、メモリの使用効率を上げ、且つ高速に画像処理を行うことが可能な画像処理装置に関する。
【0002】
【従来の技術】
従来、プリンタ等の画像処理装置では、パターン,フォント,マクロ,フォーム等の描画を行う場合に、使用頻度の高いものをキャッシュとしてメモリ上に確保し、2回目以降の描画では前記キャッシュを使用して画像処理を行い、処理速度の向上を図っている。
ここに、画像処理装置としては、前記プリンタ以外に、例えば、ファクシミリ,コピー機,スキャナ,デジタル複合機等がある。
【0003】
前記パターン等のキャッシュデータは、高速化のために一時的に保存したものであり、画像処理装置のシステム全体としてメモリ容量がひっ迫した状況になった場合には、システムとしてのデータ処理の継続を優先し、キャッシュデータは破棄されることになる(例えば、特許文献1参照、第一の従来技術。)。
【0004】
また、従来の画像処理装置のシステムでは、キャッシュデータに重み付けをして管理を行い、使用頻度の低いキャッシュから順に削除し、効率の良い動作を行っている。更に、キャッシュが既に存在するか否かを確認するヒットチェックにおいても、キャッシュデータの重み付けによる管理を行い、より高速にヒットチェックが行われるようにしている。
【0005】
さらに、従来の画像処理装置としては、例えば、省エネモードの作動頻度が高い時間帯を演算し、この演算で得られた時間帯では、省エネモードの作動を禁止するものが提案されている(例えば、特許文献2参照、第二の従来技術。)。
この提案によれば、使用頻度に応じて省エネモードを機能させるため、省エネモードによる省エネルギ効率を高めることができる。
【0006】
【特許文献1】
特開平8−174964号公報(第1−10頁、第1−7図)
【特許文献2】
特開2001−350371号公報(第1−4頁、第1−6図)
【0007】
【発明が解決しようとする課題】
しかしながら、第一の従来技術におけるキャッシュシステムでは、キャッシュの管理情報として時間の要素が無いために、ある時刻から急に印刷内容が変わるような場合には、キャッシュデータの使用効率やキャッシュのヒット率が低下し、画像処理装置自体の処理速度やメモリの使用効率の低下をきたしていた。
【0008】
ここに、「ある時刻から急に印刷内容が変わるような場合」としては、例えば、画像処理装置を定期的にメンテナンスする場合、週単位や月単位等で定期的に会議が開かれ、印刷した資料が大量に必要になる場合、季節行事や年中行事としてイベントが定期的に開催され、画像処理装置の使用頻度が高くなる場合等が挙げられる。
【0009】
また、第二の従来技術においては、省エネモードの使用頻度にもとづいて省エネモードの作動を制御することで、省エネルギ効率を高めることはできるものの、使用頻度を演算する対象が省エネモードの作動状況であるため、メモリの使用状況を演算することはできなかった。
このため、この第二の従来技術によって、メモリの使用効率を高めることはできなかった。
【0010】
本発明は、前記問題を解決するためになされたものであり、メモリの使用効率を上げ、且つ高速に画像処理を行うことが可能な画像処理装置の提供を目的とする。
【0011】
【課題を解決するための手段】
前記目的を達成するために請求項1記載の発明は、キャッシュを利用して、描画データを描画する画像処理装置であって、キャッシュ全体を総合して制御するキャッシュ制御手段と、時刻を計時するタイマ手段とを備えてなり、キャッシュ制御手段は、個々のキャッシュに関する情報を管理するキャッシュ管理部と、タイマ手段から得られる時刻情報に基づき、キャッシュの使用頻度を管理するキャッシュ履歴データ管理部と、このキャッシュ履歴データ管理部のデータに基づき、設定された時間帯毎に、使用される可能性の高いキャッシュを分析するキャッシュ分析部とを備えてなり、当該画像処理装置は、現在画像処理を行っているか否かを認識し、タイマ手段から得られる時刻情報に基づき、予め設定された時間帯が変わり、且つ画像処理が行われていない場合には、キャッシュ制御手段に対してキャッシュ管理部で管理されるキャッシュを、各時間帯に使用される可能性の高いキャッシュに更新する命令を通知するシステム制御手段とをさらに備えてなる構成としてある。
【0012】
このようにすれば、例えば、図5に示すように、予め設定されている時間帯毎に使用される可能性の高いキャッシュを準備することができ、画像処理装置の動作速度を向上することができる。
【0013】
また、請求項2記載の発明は、タイマ手段は、時間単位,日単位,週単位,月単位,年単位のうち一又は二以上の動作単位で動作し、キャッシュ制御手段,キャッシュ管理部,キャッシュ履歴データ管理部,キャッシュ分析部,システム制御手段は、タイマ手段の動作単位でキャッシュの履歴データを集め、タイマ手段の動作単位でキャッシュの更新タイミングを設定し、この設定した更新タイミングでキャッシュの更新を行う構成としてある。
【0014】
このようにすれば、タイマの動作単位とキャッシュの更新のタイミングを、各自が最適だと考えるタイミングに設定することができる。
【0015】
また、請求項3記載の発明は、時間単位,日単位,週単位,月単位,年単位のうち一又は二以上の動作単位をタイマ手段の動作単位として指定する操作部を備えた構成としてある。
【0016】
このようにすれば、タイマの動作単位を、操作部で、画像処理装置の使用状況を考慮した最適なタイミングに設定することができる。
【0017】
また、請求項4記載の発明は、操作部が、動作単位にしたがってキャッシュの更新タイミングを設定する構成としてある。
【0018】
このようにすれば、キャッシュの更新のタイミングを、操作部で、画像処理装置の使用状況を考慮した最適なタイミングに設定することができる。
【0019】
また、請求項5記載の発明は、タイマ手段は、時間単位,日単位,週単位,月単位,年単位のうち一又は二以上の動作単位の指定、及び/又は、動作単位にしたがったキャッシュの更新タイミングの設定を、外部からの制御コマンドによって行う構成としてある。
【0020】
このようにすれば、タイマの動作単位とキャッシュの更新のタイミングを、画像処理装置の使用状況を考慮した最適なタイミングに、制御コマンドにより外部から設定することができる。
【0021】
また、請求項6記載の発明は、キャッシュ分析部は、複数の分析アルゴリズムを備え、該複数の分析アルゴリズムの何れにより分析するかを、外部から指定可能にした構成としてある。
【0022】
このようにすれば、キャッシュの分析アルゴリズムを画像処理装置の使用状況に応じて、最適なアルゴリズムを外部から選択することができる。
【0023】
また、請求項7記載の発明は、キャッシュ分析部は、複数の分析アルゴリズムを備え、該複数の分析アルゴリズムの何れにより分析するかを、外部の制御コマンドから指定可能にした構成としてある。
【0024】
このようにすれば、キャッシュの分析アルゴリズムを画像処理装置の使用状況に応じて最適なアルゴリズムを外部の制御コマンドから選択することができる。
【0025】
また、請求項8記載の発明は、キャッシュ制御手段は、タイマ手段から得られる時刻と、キャッシュ履歴データ管理部からの画像処理の行われる頻度および使用されるキャッシュの頻度の変化とに基づいてキャッシュの更新タイミングを判断し、システム制御手段を介して画像処理が行われていない場合に、キャッシュの更新を行う構成としてある。
【0026】
このようにすれば、画像処理装置の使用状況を考慮して自動的にキャッシュの更新のタイミングを判断してキャッシュの更新を行うことができる。
【0027】
また、請求項9記載の発明は、メモリ管理手段とタイマ手段から時間帯毎に使用されるメモリ量を獲得し、該メモリ量に関する情報を記録しておくメモリ履歴データ管理手段を備え、キャッシュの更新を行う際に、キャッシュ分析部が、メモリ履歴データ管理手段の情報と、キャッシュ履歴データ管理部の情報とに基づき、各時間帯に最適なメモリ量のキャッシュを準備する構成としてある。
【0028】
このようにすれば、画像処理装置全体のメモリ量を考慮し、画像処理装置として最適に動作するようなキャッシュを各時間帯で準備することができる。
【0029】
【発明の実施の形態】
以下、本発明に係る画像処理装置の好ましい実施形態について、図面を参照して説明する。
[第一実施形態]
まず、本発明にかかる画像処理装置の第一の実施形態について、図1、図2を参照して説明する。
図1は本実施形態にかかる画像処理装置の構成を示すブロック図、図2は画像処理装置におけるキャッシュ制御部の構成を示すブロック図である。
【0030】
図1に示すように、画像処理装置GS1は、ホストコンピュータ等から送られてくる描画データを解析する描画データ解析部1と、描画データ中のパターンを管理するパターン管理部2と、描画データ中のフォントを管理するフォント管理部3と、描画データ中のマクロを管理するマクロ管理部4と、描画データ中のフォームを管理するフォーム管理部5とを備えている。
【0031】
更に、画像処理装置GS1は、パターン,フォント,マクロ,フォームのキャッシュを一括して制御するキャッシュ制御部6と、一日の時刻を計時するタイマ7と、画像処理装置全体のシステムを制御するシステム制御部8と、各種キャッシュやその他の描画オブジェクトを使用して描画を実行する描画実行部9と、描画処理に使用するメモリを管理するメモリ管理部10とを備えている。
なお、本実施形態において、描画データには、パターン,フォント,マクロ,フォーム等のデータが含まれる。
【0032】
また、キャッシュ制御部6は、図2に示すように、各種キャッシュの情報やキャッシュ自体の在り処を管理し、キャッシュのヒットチェックも行うキャッシュ管理部6aと、時間帯毎のキャッシュ使用頻度の情報を管理するキャッシュ履歴データ管理部6bと、該キャッシュ履歴データ管理部6bのデータを基に時間帯毎に使用頻度の高いキャッシュを分析するキャッシュ分析部6cとを備える。
【0033】
(1−1)キャッシュ等の登録、および描画実行部への設定処理
次に、本実施形態の処理の流れを、キャッシュとその情報の登録、およびそれらの描画実行部9への設定までと、時間帯によるキャッシュの更新処理とに分けて、図3〜図5を参照して説明する。
図3及び図4は、キャッシュとその情報の登録、およびそれらの描画実行部9への設定までの処理の流れを示すフローチャート、図5は、時間帯によるキャッシュの更新処理の流れを示すフローチャートである。
【0034】
先ず、キャッシュとその情報の登録、およびそれらの描画実行部9への設定までを説明する。この設定までの流れは、パターン,フォント,マクロ,フォームの何れの場合も同様であるので、パターンの場合を例にして説明する。
なお、図3はパターンの流れのフローチャート図、図4はキャッシュ履歴データ管理部で管理するデータの例である。
【0035】
図3に示すように、描画データは、描画データ解析部1で解析され(ステップS1)、描画データ中のパターンの処理はパターン管理部2に、フォントの処理はフォント管理部3に、マクロの処理はマクロ管理部4に、フォームの処理はフォーム管理部5に、それぞれ振り分けられる。
【0036】
パターン管理部2は、描画データ解析部1から指定された情報に基いて、まず該当するパターンが既にキャッシュとして存在するか否かをキャッシュ制御部6に問い合わせる。キャッシュ制御部6は、キャッシュ管理部6aに指定されたパターンがキャッシュとして存在するか否かを確認する(ステップS2)。
【0037】
キャッシュが存在する場合は(ステップS2:Yes)、キャッシュ制御部6はその時の時刻をタイマ7に問い合わせ、パターン管理部2から指定されたパターンの情報と一緒にキャッシュ履歴データ管理部6bに記録する(ステップS5)。キャッシュ履歴データ管理部6bで管理するデータの例を、前述のように図4に示す。
【0038】
そして、存在したキャッシュのアドレスをパターン管理部2に返す。パターン管理部2は、キャッシュ制御部6から返ってきたキャッシュのアドレスとパターンの情報を描画実行部9に通知することで、描画が使用されるパターンの設定が完了する(ステップS6)。
【0039】
ステップS2において指定されたパターンのキャッシュが存在しない場合には(ステップS2:No)、パターン管理部2はメモリ管理部10からパターンを作成するのに必要なメモリを獲得し、そのメモリに、指定されたパターンを作成する(ステップS3)。パターン管理部2は出来上がったパターンを、キャッシュ制御部6を使ってキャッシュに登録する(ステップS4)。
【0040】
キャッシュ制御部6では、パターン管理部2から登録指定のあったパターンのアドレスとパターンの情報をキャッシュ管理部6aに渡し、キャッシュとして管理する。
また、キャッシュ履歴データ管理部6bにもパターンのアドレスや情報を通知し、キャッシュの履歴データを更新登録する(ステップS5)。
【0041】
パターン管理部2は作成したパターンのキャッシュ登録が終わると、キャッシュのアドレスとパターンの情報を描画実行部9に通知する。以上の処理により、パターンの設定が完了する(ステップS6)。
【0042】
(1−2)キャッシュの更新処理
キャッシュの更新処理の際における、タイマが動作する時間帯については、画像処理装置内部で固定値として持っている場合と、外部から設定可能にする場合とが考えられる(後者は、第二実施形態として後述)。
【0043】
本「キャッシュの更新処理」は、タイマが動作する時間帯を画像処理装置内部で固定値として持っている場合であり、そのフローチャート図を図5に示す。
【0044】
図5に示すように、画像処理装置GS1は、タイマが動作する時間帯を予め固定値として持っている(ステップS11)。
システム制御部8はタイマ7を利用し、予め固定されている時間単位に従って時間帯が変わったかどうかを認識する(ステップS12)。例えば、1時間単位にキャッシュを更新するように設定されている場合は、午後1時59分から午後2時になった時に、時間帯が変わったと認識する。
【0045】
システム制御部8は、時間帯が変わったことを認識すると(ステップS12:Yes)、次に、現在描画処理が行われているかどうかを確認する(ステップS13)。この確認は、現在描画処理が行われている場合は、その描画処理を最優先させるためである。
【0046】
描画処理が行われていない場合は(ステップS13:No)、システム制御部8はキャッシュ制御部6に対してキャッシュの更新命令を出す(ステップS14)。
描画処理が行われている場合は(ステップS13:Yes)、描画処理が終わるのを待ち(ステップS15:Yes)、その後キャッシュ制御部6に対してキャッシュの更新命令を出す(ステップS14)。
【0047】
キャッシュ制御部6は、システム制御部8からキャッシュの更新命令を受けると、タイマ7から現在の時刻を獲得し(ステップS16)、その情報をキャッシュ分析部6cに通知する。キャッシュ分析部6cでは与えられた時刻情報からその時刻の属する時間帯を求める(ステップS17)。
【0048】
その後、キャッシュ分析部6cはキャッシュ履歴データ管理部6bに問い合わせて、指定された時刻の時間帯によく使われるキャッシュを分析する(ステップS18)。分析が終了したら、キャッシュ分析部6cは分析結果をキャッシュ管理部6aに返す。
【0049】
キャッシュ管理部6aは、分析結果を基に現在保持しているキャッシュを更新する(ステップS19)。まず、現在保持しているキャッシュの中で分析結果の中に含まれていないキャッシュは消去する。次に、分析結果の中に存在しているが、現在キャッシュとして保持されていないものについては、そのキャッシュをパターン管理部2,フォント管理部3,マクロ管理部4,フォーム管理部5を利用して作成する。
【0050】
最後にキャッシュ管理部6aで保持しているキャッシュ情報を分析結果の頻度の順番に更新し、キャッシュが存在する場合の処理速度を高めるようにする(ステップS20)。
なお、キャッシュ自体の更新をする場合には、その時に保持しているキャッシュを一度全て消去してから、新たに分析結果に従って各種キャッシュを作り直す方法も考えられる。
【0051】
タイマ7が動作する時間単位については、前述のように、画像処理装置内部で固定値として持っている場合と、外部から設定可能にする場合とが考えられる(第二実施形態として後述)。このタイマ7の動作単位については、時間単位,日単位,週単位,月単位,年単位といった単位が考えられる。この動作単位で、キャッシュ制御部6はキャッシュの履歴データを集める。
【0052】
例えば、タイマ7が24時間周期で動作する場合にはキャッシュ制御部6aも24時間周期で動作し、キャッシュ履歴データ管理部6bで管理する情報の内、キャッシュの時間に関するのは時刻のみである。
タイマ7が1年周期で動作する場合には、キャッシュ制御部6aも1年周期で動作し、キャッシュ履歴データ管理部6bで管理する情報の内、キャッシュの時間に関する時刻のほかに、月日や曜日の情報が必要になる。キャッシュ管理部6aがキャッシュのヒットチェックを行う場合の条件も、キャッシュ履歴データと同様の影響を受ける。
【0053】
また、タイマ7の動作単位内でキャッシュ更新のタイミングを設定できる。例えば、時間単位の設定では1時間毎や1時間30分毎といった設定が考えられる。時刻も設定できるようにして、毎日午前8時から午後6時まで1時間毎といった設定にすることも考えられる。
【0054】
また、特定の時刻をキャッシュ更新のタイミングとして設定することも可能である。例えば、毎日午前10時と午後2時にキャッシュを更新するように設定することができる。タイマ7が1年周期で動作している場合には、毎月1日の午前8時にキャッシュを更新するように設定することができる。
【0055】
[第二実施形態]
次に、本発明にかかる画像処理装置の第二の実施形態について、図6を参照して説明する。
本実施形態は、タイマ7の動作単位やキャッシュ更新のタイミングを、外部から設定可能にする場合である。
図6は本実施形態のブロック図である。なお、第一実施形態で既に説明済みの箇所には同一符合を付し、重複説明を省略する。
【0056】
図6に示すように、画像処理装置GS2は、操作部11とコマンド解析部12を備える。
操作部11は、例えばコントロールパネル等により構成されており、ユーザがタイマ7の動作単位やキャッシュ更新のタイミングを設定する。
【0057】
また、タイマ7の動作単位やキャッシュ更新のタイミングを設定する制御コマンドを設けておいて、その制御コマンドを画像処理装置GS2に送ることで、タイマ7の動作単位やキャッシュ更新のタイミングを設定する。
コマンド解析部12は、制御コマンドを解析する(後述)。
【0058】
まず、操作部11を設けた場合は、該操作部11で設定されたタイマ7の動作単位やキャッシュ更新のタイミングがシステム制御部8に通知され、システム制御部8は通知された設定に従って、タイマ7,キャッシュ制御部6を制御する。
【0059】
制御コマンドによってタイマ7の動作単位やキャッシュ更新のタイミングとする場合は、コマンド解析部12で制御コマンドが解析され、指定されたタイマ7の動作単位やキャッシュ更新のタイミングがシステム制御部8に通知され、システム制御部8は通知された設定に従って、タイマ7,キャッシュ制御部6を制御する。
【0060】
キャッシュ分析部6cで時間帯毎のキャッシュの分析を行うときに使うアルゴリズムには、幾つかの方法が考えられる。例えば、単純にその時間帯で使用されたキャッシュの頻度順に準備するキャッシュを決めることができる。
【0061】
また、パターン,フォント,マクロ,フォームの各キャッシュの種類別の頻度を分析し、予め決めておいたキャッシュの種類別比率に応じてキャッシュを準備することが考えられる。
別の方法としては、時間要素やキャッシュの種類を考慮したニューラルネットワークを使用することが考えられる。
【0062】
このようなキャッシュの分析アルゴリズムは、画像処理装置内部で予め固定して持つ方法の他に、予め複数の分析アルゴリズムを画像処理装置内部で用意しておき、その内のどの分析アルゴリズムを使うかは、外部から設定可能にすることが考えられる。
【0063】
この設定方法としては、キャッシュ更新のタイミング等と同様に、前述のように操作部11を設けて設定を行う方法と、キャッシュの分析アルゴリズムを設定する制御コマンドを設けておいて、その制御コマンドを画像処理装置に送ることで設定を行う方法が考えられる。
これらの方法を実現する構成は、タイマ7の動作単位やキャッシュ更新のタイミングを設定する場合と同様で図6のようになる。
【0064】
操作部11やコマンド解析部12からシステム制御部8を経由してキャッシュ制御部6に通知された分析アルゴリズムは、キャッシュ分析部6cに通知され、キャッシュ分析部6cはキャッシュ分析の際には予め用意されている複数のキャッシュ分析アルゴリズムの中から、指定された分析アルゴリズムを使ってキャッシュの分析を行う。
【0065】
キャッシュ履歴データ管理部6bには、キャッシュが存在するか問い合わせがあった時刻を記録しておくことができる。この時刻データを分析することで、キャッシュの利用の頻度が高い時間帯と低い時間帯を割り出すことができる。また、問い合わせがあったキャッシュを判別することが出来るので、利用頻度の高いキャッシュが入れ替わる時間帯も割り出すことができる。
【0066】
これら2つの時間帯を総合すると、効率の良いキャッシュの更新タイミングを割り出すことができる。キャッシュ制御部6がキャッシュ履歴データ管理部6bのデータを利用して上述のような方法でキャッシュの更新タイミングを自動的に判断し、キャッシュの更新を行うことができる。
【0067】
[第三実施形態]
次に、本発明にかかる画像処理装置の第三の実施形態について、図7を参照して説明する。
同図は本実施形態のブロック図である。
同図に示すように、本実施形態の画像処理装置GS3では、メモリ履歴データ管理部13がメモリ管理部10とタイマ7に接続されており、メモリ管理部10の獲得要求や解放要求があった時に、その情報をメモリ管理部10からメモリ履歴データ管理部13に通知する。
【0068】
メモリ履歴データ管理部13は、メモリ管理部10から情報を通知されるとタイマ7からその時の時刻を獲得し、メモリの情報とその情報を得た時刻を合わせて記録する。
このように使用メモリのデータを時間と一緒に記録することで、ある特定の時間帯に、どれだけのメモリを使う可能性が高いかを推定することができる。
【0069】
画像処理装置で利用できるメモリは予め決まっているので、ある時間帯で使用するメモリの量がどれ位であるか推定できれば、画像処理装置自体が最も高速に画像処理を行うのに適切なキャッシュで使用するメモリ両を求めることができる。
以上のようにしてメモリ履歴データ分析部14は、メモリ履歴データ管理部13のデータを分析して、指定された時間帯に使用するキャッシュのメモリ量を求める。
【0070】
キャッシュの更新のタイミングになった時に、キャッシュ分析部6cはキャッシュの分析を行い、次の時間帯にどのようなキャッシュを準備すればよいかを決定するが、その際にキャッシュ制御部6を通してメモリ履歴データ分析部14からキャッシュに使用するメモリ量の情報を得る。
【0071】
これにより、キャッシュ分析部6cはキャッシュの分析の際にキャッシュに使用するメモリ量も考慮することで、キャッシュ管理部6aは、画像処理装置全体の動作に最適な量のキャッシュを準備することができる。
【0072】
【発明の効果】
以上説明したように本発明によれば、予め設定されている時間帯毎に使用される可能性の高いキャッシュを準備することができ、画像処理装置の動作速度を向上することができる。
【0073】
また、タイマの動作単位とキャッシュの更新のタイミングを各自が最適だと考えるタイミングに設定することができる。
また、タイマの動作単位とキャッシュの更新のタイミングを画像処理装置の使用状況を考慮した最適なタイミングに外部から設定することができる。
【0074】
また、キャッシュの分析アルゴリズムを画像処理装置の使用状況に応じて最適なアルゴリズムを外部から選択することができる。
また、画像処理装置の使用状況を考慮して自動的にキャッシュの更新のタイミングを判断してキャッシュの更新を行うことができる。
【0075】
また、画像処理装置全体のメモリ量を考慮し、画像処理装置として最適に動作するようなキャッシュを各時間帯で準備することができる。
【図面の簡単な説明】
【図1】本発明の第一実施形態に係る画像処理装置の構成を示すブロック図である。
【図2】図1の画像形成装置におけるキャッシュ制御部の構成を示すブロック図である。
【図3】本発明の第一実施形態における、キャッシュとその情報の登録、およびそれらの描画実行部への設定までのフローチャート図である。
【図4】本発明の第一実施形態における、キャッシュ履歴データ管理部で管理するデータの例を示す図である。
【図5】本発明の第一実施形態における、時間帯によるキャッシュの更新処理のフローチャート図である。
【図6】本発明の第二実施形態に係る画像処理装置の構成を示すブロック図である。
【図7】本発明の第三実施形態に係る画像処理装置の構成を示すブロック図である。
【符号の説明】
GS1〜GS3 画像処理装置
1 描画データ解析部
2 パターン管理部
3 フォント管理部
4 マクロ管理部
5 フォーム管理部
6 キャッシュ制御部
6a キャッシュ管理部
6b キャッシュ履歴データ管理部
6c キャッシュ分析部
7 タイマ
8 システム制御部
9 描画実行部
10 メモリ管理部
11 操作部
12 コマンド解析部
13 メモリ履歴データ管理部
14 メモリ履歴データ分析部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus capable of improving the use efficiency of a memory and performing high-speed image processing.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, in an image processing apparatus such as a printer, when drawing a pattern, a font, a macro, a form, or the like, a frequently used one is secured in a memory as a cache, and the cache is used in the second and subsequent drawing. Image processing to improve the processing speed.
Here, as the image processing apparatus, other than the printer, for example, there are a facsimile, a copier, a scanner, a digital multifunction peripheral, and the like.
[0003]
The cache data such as the pattern is temporarily stored for speeding up. If the memory capacity of the entire image processing apparatus system becomes tight, the data processing of the system is continued. Priority is given to the cache data being discarded (for example, see
[0004]
Further, in the system of the conventional image processing apparatus, the cache data is weighted and managed, and the cache is deleted in order from the least frequently used cache, thereby performing an efficient operation. Furthermore, in the hit check for checking whether or not the cache already exists, the cache data is managed by weighting so that the hit check is performed at a higher speed.
[0005]
Further, as a conventional image processing apparatus, for example, an image processing apparatus that calculates a time zone in which the operation frequency of the energy saving mode is high and prohibits the operation of the energy saving mode in the time zone obtained by this calculation (for example, proposed). ,
According to this proposal, since the energy saving mode is operated according to the frequency of use, the energy saving efficiency of the energy saving mode can be enhanced.
[0006]
[Patent Document 1]
JP-A-8-174964 (page 1-10, FIG. 1-7)
[Patent Document 2]
JP 2001-350371 A (pages 1-4, FIG. 1-6)
[0007]
[Problems to be solved by the invention]
However, in the cache system according to the first prior art, since there is no time element as cache management information, when the print content suddenly changes from a certain time, the use efficiency of the cache data and the cache hit ratio are increased. And the processing speed of the image processing apparatus itself and the use efficiency of the memory have been reduced.
[0008]
Here, "when the print content suddenly changes from a certain time" is, for example, when the image processing apparatus is periodically maintained, a conference is held periodically on a weekly or monthly basis, and the print is performed. A case where a large amount of data is needed, a case where an event is regularly held as a seasonal event or an annual event, and the use frequency of the image processing apparatus is increased, and the like.
[0009]
Further, in the second prior art, the energy saving efficiency can be enhanced by controlling the operation of the energy saving mode based on the frequency of use of the energy saving mode. Therefore, it was not possible to calculate the state of use of the memory.
Therefore, the use efficiency of the memory cannot be improved by the second conventional technique.
[0010]
SUMMARY An advantage of some aspects of the invention is to provide an image processing apparatus capable of increasing the use efficiency of a memory and performing high-speed image processing.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, the invention according to
[0012]
In this way, for example, as shown in FIG. 5, it is possible to prepare a cache that is likely to be used for each preset time zone, and to improve the operation speed of the image processing apparatus. it can.
[0013]
According to a second aspect of the present invention, the timer means operates in one or two or more operation units of a time unit, a day unit, a week unit, a month unit, and a year unit. The history data management unit, the cache analysis unit, and the system control unit collect cache history data in units of operation of the timer unit, set the update timing of the cache in units of operation of the timer unit, and update the cache at the set update timing. Is performed.
[0014]
In this way, the operation unit of the timer and the timing of updating the cache can be set to timings that each considers to be optimal.
[0015]
The invention according to
[0016]
With this configuration, the operation unit of the timer can be set at the operation unit at an optimal timing in consideration of the usage state of the image processing apparatus.
[0017]
The invention according to
[0018]
With this configuration, the update timing of the cache can be set to the optimal timing by the operation unit in consideration of the usage state of the image processing apparatus.
[0019]
According to a fifth aspect of the present invention, the timer means designates one or more operation units of time unit, day unit, week unit, month unit, and year unit, and / or caches in accordance with the operation unit. The update timing is set by an external control command.
[0020]
According to this configuration, the operation unit of the timer and the update timing of the cache can be externally set to the optimal timing in consideration of the usage state of the image processing apparatus by the control command.
[0021]
According to a sixth aspect of the present invention, the cache analysis unit includes a plurality of analysis algorithms, and it is possible to externally designate which of the plurality of analysis algorithms to analyze.
[0022]
This makes it possible to externally select the most suitable algorithm for the cache analysis algorithm according to the state of use of the image processing apparatus.
[0023]
The invention according to
[0024]
This makes it possible to select an optimal algorithm for the cache analysis from an external control command in accordance with the use condition of the image processing apparatus.
[0025]
Further, in the invention according to
[0026]
With this configuration, it is possible to automatically determine the update timing of the cache in consideration of the usage state of the image processing apparatus and update the cache.
[0027]
The invention according to
[0028]
By doing so, it is possible to prepare a cache that operates optimally as an image processing device in each time zone in consideration of the memory capacity of the entire image processing device.
[0029]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a preferred embodiment of an image processing apparatus according to the present invention will be described with reference to the drawings.
[First embodiment]
First, a first embodiment of an image processing apparatus according to the present invention will be described with reference to FIGS.
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to the present embodiment, and FIG. 2 is a block diagram illustrating a configuration of a cache control unit in the image processing apparatus.
[0030]
As shown in FIG. 1, the image processing apparatus GS1 includes a drawing
[0031]
Further, the image processing apparatus GS1 includes a
In the present embodiment, the drawing data includes data such as patterns, fonts, macros, and forms.
[0032]
As shown in FIG. 2, the
[0033]
(1-1) Registration of caches and the like, and setting processing for the drawing execution unit
Next, the processing flow of this embodiment is divided into the registration of the cache and its information and the setting thereof to the
3 and 4 are flowcharts showing the flow of processing up to the registration of the cache and its information and their setting to the
[0034]
First, registration of a cache and its information, and setting of the cache and its information in the
FIG. 3 is a flowchart of the pattern flow, and FIG. 4 is an example of data managed by the cache history data management unit.
[0035]
As shown in FIG. 3, the drawing data is analyzed by the drawing data analysis unit 1 (step S1), the processing of the pattern in the drawing data is performed by the
[0036]
Based on the information specified by the drawing
[0037]
If a cache exists (step S2: Yes), the
[0038]
Then, the address of the existing cache is returned to the
[0039]
If there is no cache for the specified pattern in step S2 (step S2: No), the
[0040]
The
Further, the address and information of the pattern are also notified to the cache history
[0041]
When the created pattern is registered in the cache, the
[0042]
(1-2) Cache update processing
At the time of updating the cache, the time period during which the timer operates can be considered to have a fixed value inside the image processing apparatus or to be able to set it from outside (the latter is the second embodiment). As described later).
[0043]
The "cache update process" is a case where the time period during which the timer operates is held as a fixed value inside the image processing apparatus, and a flowchart thereof is shown in FIG.
[0044]
As shown in FIG. 5, the image processing device GS1 has a time period during which the timer operates as a fixed value in advance (step S11).
The
[0045]
When recognizing that the time zone has changed (step S12: Yes), the
[0046]
If the drawing process has not been performed (step S13: No), the
If the drawing process is being performed (step S13: Yes), the process waits for the drawing process to end (step S15: Yes), and then issues a cache update command to the cache control unit 6 (step S14).
[0047]
When receiving the cache update command from the
[0048]
Thereafter, the cache analyzing unit 6c inquires of the cache history
[0049]
The
[0050]
Finally, the cache information held by the
When updating the cache itself, a method may be considered in which all the caches held at that time are erased once and various caches are newly created according to the analysis results.
[0051]
As described above, the time unit in which the
[0052]
For example, when the
When the
[0053]
In addition, the cache update timing can be set within the operation unit of the
[0054]
It is also possible to set a specific time as the cache update timing. For example, the cache can be set to be updated every day at 10 am and 2 pm. When the
[0055]
[Second embodiment]
Next, a second embodiment of the image processing apparatus according to the present invention will be described with reference to FIG.
In the present embodiment, the operation unit of the
FIG. 6 is a block diagram of the present embodiment. The parts already described in the first embodiment are denoted by the same reference numerals, and redundant description will be omitted.
[0056]
As shown in FIG. 6, the image processing device GS2 includes an
The
[0057]
In addition, a control command for setting the operation unit of the
The
[0058]
First, when the
[0059]
When the operation unit of the
[0060]
Several methods can be considered for the algorithm used when the cache analyzing unit 6c analyzes the cache for each time zone. For example, it is possible to simply determine the cache to be prepared in the order of the frequency of the cache used in the time zone.
[0061]
It is also conceivable to analyze the frequency of each type of cache for patterns, fonts, macros, and forms and prepare the caches in accordance with a predetermined cache type ratio.
As another method, it is conceivable to use a neural network that considers the time element and the type of cache.
[0062]
Such an analysis algorithm of the cache is prepared in advance in the image processing apparatus, in addition to a method of pre-fixing the analysis algorithm inside the image processing apparatus, and it is not possible to determine which of the analysis algorithms to use. It is conceivable to make setting possible from outside.
[0063]
As the setting method, as in the case of the cache update timing and the like, a method of providing the
The configuration for realizing these methods is the same as the case of setting the operation unit of the
[0064]
The analysis algorithm notified from the
[0065]
The cache history
[0066]
By combining these two time zones, an efficient cache update timing can be determined. The
[0067]
[Third embodiment]
Next, a third embodiment of the image processing apparatus according to the present invention will be described with reference to FIG.
FIG. 2 is a block diagram of the present embodiment.
As shown in the figure, in the image processing apparatus GS3 of the present embodiment, the memory history
[0068]
When notified of the information from the
By recording the data of the used memory together with the time in this way, it is possible to estimate how much memory is likely to be used in a specific time zone.
[0069]
The memory that can be used in the image processing device is predetermined, so if it is possible to estimate the amount of memory to be used in a certain time period, the image processing device itself can use a cache suitable for performing image processing at the highest speed. It is possible to determine both memories to be used.
As described above, the memory history
[0070]
When it is time to update the cache, the cache analyzing unit 6c analyzes the cache and determines what kind of cache should be prepared in the next time zone. Information on the amount of memory used for the cache is obtained from the history
[0071]
Accordingly, the cache analysis unit 6c also considers the amount of memory used for the cache when analyzing the cache, so that the
[0072]
【The invention's effect】
As described above, according to the present invention, it is possible to prepare a cache that is likely to be used for each preset time zone, and it is possible to improve the operation speed of the image processing apparatus.
[0073]
In addition, the operation unit of the timer and the timing of updating the cache can be set to timings that each considers to be optimal.
Further, the operation unit of the timer and the update timing of the cache can be externally set to the optimal timing in consideration of the usage state of the image processing apparatus.
[0074]
In addition, an optimal algorithm for the cache analysis can be selected from the outside according to the usage of the image processing apparatus.
Further, it is possible to automatically determine the update timing of the cache in consideration of the usage state of the image processing apparatus and update the cache.
[0075]
Also, in consideration of the memory capacity of the entire image processing apparatus, a cache that can operate optimally as the image processing apparatus can be prepared in each time zone.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration of a cache control unit in the image forming apparatus of FIG. 1;
FIG. 3 is a flowchart illustrating registration of a cache and its information and setting of the cache and its information in a drawing execution unit according to the first embodiment of the present invention.
FIG. 4 is a diagram showing an example of data managed by a cache history data management unit according to the first embodiment of the present invention.
FIG. 5 is a flowchart of a cache update process according to a time zone in the first embodiment of the present invention.
FIG. 6 is a block diagram illustrating a configuration of an image processing apparatus according to a second embodiment of the present invention.
FIG. 7 is a block diagram illustrating a configuration of an image processing apparatus according to a third embodiment of the present invention.
[Explanation of symbols]
GS1 to GS3 image processing device
1 Drawing data analyzer
2 Pattern management unit
3 Font management unit
4 Macro management unit
5 Form Management Department
6 Cache control unit
6a Cache management unit
6b Cache history data management unit
6c Cache analysis unit
7 Timer
8 System control unit
9 Drawing execution unit
10 Memory management unit
11 Operation unit
12 Command analysis unit
13 Memory history data management unit
14 Memory history data analyzer
Claims (9)
前記キャッシュ全体を総合して制御するキャッシュ制御手段と、
時刻を計時するタイマ手段とを備えてなり、
前記キャッシュ制御手段は、
個々の前記キャッシュに関する情報を管理するキャッシュ管理部と、
前記タイマ手段から得られる時刻情報に基づき、前記キャッシュの使用頻度を管理するキャッシュ履歴データ管理部と、
このキャッシュ履歴データ管理部のデータに基づき、設定された時間帯毎に、使用される可能性の高いキャッシュを分析するキャッシュ分析部とを備えてなり、
当該画像処理装置は、現在画像処理を行っているか否かを認識し、前記タイマ手段から得られる時刻情報に基づき、予め設定された時間帯が変わり、且つ画像処理が行われていない場合には、前記キャッシュ制御手段に対して前記キャッシュ管理部で管理されるキャッシュを、各時間帯に使用される可能性の高いキャッシュに更新する命令を通知するシステム制御手段とをさらに備えてなる
ことを特徴とする画像処理装置。An image processing device that draws drawing data using a cache,
A cache control means for comprehensively controlling the entire cache;
Timer means for measuring the time,
The cache control means,
A cache management unit that manages information on each of the caches;
A cache history data management unit that manages the frequency of use of the cache based on time information obtained from the timer unit;
A cache analysis unit that analyzes a cache that is likely to be used for each set time zone based on the data of the cache history data management unit,
The image processing apparatus recognizes whether or not image processing is currently performed, and based on time information obtained from the timer means, when a preset time zone changes and when image processing is not performed. And a system control unit for notifying the cache control unit of an instruction to update a cache managed by the cache management unit to a cache likely to be used in each time slot. Image processing apparatus.
前記キャッシュ制御手段,前記キャッシュ管理部,前記キャッシュ履歴データ管理部,前記キャッシュ分析部,前記システム制御手段は、前記タイマ手段の動作単位で前記キャッシュの履歴データを集め、前記タイマ手段の動作単位で前記キャッシュの更新タイミングを設定し、この設定した更新タイミングで前記キャッシュの更新を行う
ことを特徴とする請求項1記載の画像処理装置。The timer means operates in one or more operation units of hourly, daily, weekly, monthly, and yearly units,
The cache control unit, the cache management unit, the cache history data management unit, the cache analysis unit, and the system control unit collect the cache history data in the operation unit of the timer unit, and collect the history data in the operation unit of the timer unit. 2. The image processing apparatus according to claim 1, wherein an update timing of the cache is set, and the cache is updated at the set update timing.
ことを特徴とする請求項1又は2記載の画像処理装置。3. The operation unit according to claim 1, further comprising an operation unit that designates one or more operation units of a time unit, a day unit, a week unit, a month unit, and a year unit as operation units of the timer unit. Image processing device.
ことを特徴とする請求項3記載の画像処理装置。The image processing apparatus according to claim 3, wherein the operation unit sets the update timing of the cache according to the operation unit.
ことを特徴とする請求項1〜4のいずれかに記載の画像処理装置。The timer means may specify one or more operation units among hourly, daily, weekly, monthly, and yearly units, and / or set the update timing of the cache according to the operation units. The image processing apparatus according to any one of claims 1 to 4, wherein the image processing is performed by an external control command.
ことを特徴とする請求項1〜4のいずれかに記載の画像処理装置。The image processing according to any one of claims 1 to 4, wherein the cache analysis unit includes a plurality of analysis algorithms, and which of the plurality of analysis algorithms can be specified externally. apparatus.
ことを特徴とする請求項1〜4のいずれかに記載の画像処理装置。5. The cache analysis unit according to claim 1, wherein the cache analysis unit includes a plurality of analysis algorithms, and which of the plurality of analysis algorithms can be specified by an external control command. 6. Image processing device.
ことを特徴とする請求項1〜7のいずれかに記載の画像処理装置。The cache control unit determines a cache update timing based on a time obtained from the timer unit, a change in the frequency of image processing from the cache history data management unit, and a change in the frequency of the cache used, The image processing apparatus according to claim 1, wherein the cache is updated when the image processing is not performed via the system control unit.
キャッシュの更新を行う際に、前記キャッシュ分析部が、前記メモリ履歴データ管理手段の情報と、前記キャッシュ履歴データ管理部の情報とに基づき、各時間帯に最適なメモリ量のキャッシュを準備する
ことを特徴とする請求項1〜8のいずれかに記載の画像処理装置。A memory history data management unit that acquires a memory amount used for each time period from the memory management unit and the timer unit and records information on the memory amount;
When updating a cache, the cache analysis unit prepares a cache having an optimal memory amount in each time zone based on the information of the memory history data management unit and the information of the cache history data management unit. The image processing apparatus according to claim 1, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003130623A JP2004334592A (en) | 2003-05-08 | 2003-05-08 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003130623A JP2004334592A (en) | 2003-05-08 | 2003-05-08 | Image processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2004334592A true JP2004334592A (en) | 2004-11-25 |
Family
ID=33506084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003130623A Pending JP2004334592A (en) | 2003-05-08 | 2003-05-08 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2004334592A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009157749A (en) * | 2007-12-27 | 2009-07-16 | Fujitsu Ltd | Control unit, storage system, and memory control method |
-
2003
- 2003-05-08 JP JP2003130623A patent/JP2004334592A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009157749A (en) * | 2007-12-27 | 2009-07-16 | Fujitsu Ltd | Control unit, storage system, and memory control method |
JP4500850B2 (en) * | 2007-12-27 | 2010-07-14 | 富士通株式会社 | Control device, storage system, and memory control method |
US9053056B2 (en) | 2007-12-27 | 2015-06-09 | Fujitsu Limited | Control apparatus, storage system, and memory controlling method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4136994B2 (en) | Document processing apparatus, control method therefor, computer program, and computer-readable storage medium | |
JP4941034B2 (en) | Access control apparatus and access control method | |
CN102857657B (en) | Management apparatus and method thereof | |
JP2011152790A (en) | Method and apparatus for adjusting printing device power consumption based on usage data | |
JP4953746B2 (en) | Management apparatus and control method thereof | |
JP5430357B2 (en) | Image forming apparatus, control method thereof, and program | |
JP3344268B2 (en) | Printing control device | |
JP2004334592A (en) | Image processing device | |
JP2009230584A (en) | Job-processing system and job management method | |
JP2005267544A (en) | Printer managing method and device, and program | |
CN102582291B (en) | For controlling information processor and the information processing method of power consumption | |
JP2001051820A (en) | Image processor | |
EP3792696A1 (en) | Image forming apparatus and method of controlling the image forming apparatus | |
JP2006344184A (en) | Image formation device | |
JP2004351806A (en) | Image forming apparatus | |
JP2001236195A (en) | Printing controller and its program recording medium | |
JP4217288B2 (en) | Printing apparatus and printing method | |
JP2004252785A (en) | Printer unit information setting method, picture printing system and computer readable storage medium | |
JP3209910B2 (en) | Print control device and print control method | |
JP6541813B2 (en) | Electronic device and control method thereof | |
JP5267204B2 (en) | Printing device | |
JP7467088B2 (en) | Information processing device, processing method and program for information processing device | |
US20200272392A1 (en) | Image forming apparatus | |
JP3807456B2 (en) | Host device | |
JP2003011445A (en) | Printer controller, printer, printing control method, printing control program and storage medium |