JP2011059874A - Information processing apparatus - Google Patents

Information processing apparatus Download PDF

Info

Publication number
JP2011059874A
JP2011059874A JP2009207210A JP2009207210A JP2011059874A JP 2011059874 A JP2011059874 A JP 2011059874A JP 2009207210 A JP2009207210 A JP 2009207210A JP 2009207210 A JP2009207210 A JP 2009207210A JP 2011059874 A JP2011059874 A JP 2011059874A
Authority
JP
Japan
Prior art keywords
log
unit
processing apparatus
information processing
recording
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.)
Withdrawn
Application number
JP2009207210A
Other languages
Japanese (ja)
Inventor
Shohei Fujimoto
勝平 藤本
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 JP2009207210A priority Critical patent/JP2011059874A/en
Publication of JP2011059874A publication Critical patent/JP2011059874A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an information processing apparatus that records in a storage means such as an HDD only logs whose amounts do not affect the productivity of a job regarding each basic function of the information processing apparatus. <P>SOLUTION: A log measuring unit 23 performs measurement again based on a recording level changed by a log determining unit 24. When the log determining unit 24 determines that the execution time of a job does not exceed a predetermined threshold, a log recording unit 22 records logs below the changed recording level on a RAM 122, and logs not lower than the recording level on an HDD 220. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、情報処理装置におけるデバッグログのロギング技術に関する。   The present invention relates to a debug log logging technique in an information processing apparatus.

現在、イメージスキャナやFAX(Facsimile)等の機能を併せ持つ複合機であるMFP(Multi Function Printer)等の情報処理装置の高性能化・高機能化により、障害時の解析のために、動作時に多大なデバッグログが出力されている。データを大量に保存可能な記憶媒体であるHDD(Hard Disk Drive)が装着されていないマシン(ローエンド向け)では、デバッグログはメモリ上に記録されることが多い。小容量の不揮発性記憶媒体であるNVRAM(Nonvolatile Random Access Memory)等に記録する仕組みもあるが、RAM(Random Access Memory)等のメモリより少容量、かつ、高価なため、ローエンドには向かない。   At present, a large number of information processing devices such as MFPs (Multi Function Printers), which are multifunction devices that also have functions such as image scanners and FAX (Facsimile), are greatly improved during operation for analysis at the time of failure. A debug log is output. In a machine (for low-end use) in which an HDD (Hard Disk Drive), which is a storage medium capable of storing a large amount of data, is not installed, the debug log is often recorded on a memory. Although there is a mechanism for recording in a nonvolatile random access memory (NVRAM), which is a small-capacity nonvolatile storage medium, it is not suitable for the low end because it has a smaller capacity and is more expensive than a memory such as a RAM (Random Access Memory).

しかし、RAM等のメモリはHDDよりも少容量であり、かつ、揮発性記憶媒体でもあるため、障害時のログがすぐに上書きされたり、情報処理装置の電源断によりログが喪失したりと、HDDよりも保持できるログが少なく、解析効率が低下する恐れがある。ローエンド向けとはいえ、市場障害発生時の解析効率の低下は問題である。   However, since the memory such as RAM has a smaller capacity than the HDD and is also a volatile storage medium, the log at the time of failure is immediately overwritten, or the log is lost due to power failure of the information processing apparatus, There are fewer logs than HDDs, and analysis efficiency may be reduced. Although it is for the low-end, the problem is that analysis efficiency is reduced when a market failure occurs.

そこで、HDDをオプションとして増設可能な情報処理装置においては、HDDが増設された場合には、ログをHDDに保存するように切り替え、再度HDDを切り離した場合は、RAM等のメモリにログを記録することができれば望ましい。つまり、オプションHDD有りの場合はHDDにログを記録し、オプションHDD無しの場合はRAM等のメモリ上にログを記録するのである。   Therefore, in an information processing apparatus that can be added with an HDD as an option, when the HDD is added, the log is switched to be saved in the HDD, and when the HDD is disconnected again, the log is recorded in a memory such as a RAM. It is desirable if you can. That is, a log is recorded on the HDD when the optional HDD is present, and a log is recorded on a memory such as a RAM when the optional HDD is not present.

ここで、関連技術として、増設された機器を検知し、増設された機器に格納された情報を取得し、この取得した情報に応じた画像情報を生成し、生成した画像情報に基づく画像を出力する技術が開示されている(例えば、特許文献1参照)。   Here, as a related technology, the added device is detected, information stored in the added device is acquired, image information corresponding to the acquired information is generated, and an image based on the generated image information is output. The technique to do is disclosed (for example, refer patent document 1).

また、関連技術として、RAM等のメモリ上のログをハードディスクに書き換える際、MFPの基本処理と競合する場合はNVRAMに一時的に退避し、基本処理が終了した後にハードディスクに書き換えることにより、性能を落とさずログを保存でき、また、不揮発メモリであるNVRAMなので、電源断された場合でもログが残る技術が開示されている(例えば、特許文献2参照)。   In addition, as a related technology, when rewriting a log on a memory such as a RAM to a hard disk, if it conflicts with the basic process of the MFP, the performance is improved by temporarily saving to NVRAM and rewriting to the hard disk after the basic process is completed. A technique is disclosed in which a log can be saved without being dropped, and the log remains even when the power is turned off because the NVRAM is a nonvolatile memory (see, for example, Patent Document 2).

しかし、上記の特許文献1では、増設された機器を自動検知し、そこに記録されていた情報を解析して出力画像に反映しているが、増設された機器を検知してデータの保存先を切り替えてくれるわけではない。   However, in the above-mentioned Patent Document 1, the added device is automatically detected and the information recorded therein is analyzed and reflected in the output image. However, the added device is detected and the data storage destination is detected. Does not switch.

また、上記の特許文献2では、ログが少量の場合にのみ有効であり、多量であれば、NVRAM領域が溢れる可能性がある。また、RAM等のメモリ、NVRAM、ハードディスクという三段のログ書き出しが発生するため、多少速度が遅い場合がある。   Further, in Patent Document 2 described above, it is effective only when the log is small, and if it is large, the NVRAM area may overflow. In addition, since three-stage log writing of memory such as RAM, NVRAM, and hard disk occurs, the speed may be somewhat slow.

上述の関連技術では、増設されたHDDを検知してデータの保存先を切り替え、ログを永続化することができない。すなわち、HDDをオプションとして増設可能なマシンにおいてオプションHDD有りの場合はHDDにログを記録し、オプションHDD無しの場合はRAM等のメモリ上にログを記録するということはできない。   In the related technology described above, it is not possible to make the log permanent by detecting the added HDD and switching the data storage destination. That is, in a machine capable of adding an HDD as an option, if an optional HDD is present, a log cannot be recorded on the HDD, and if no optional HDD is present, a log cannot be recorded on a memory such as a RAM.

しかし、オプションHDD有りの場合はHDDにログを記録するとしても、HDDへのログ記録は、RAM等のメモリへの記録に比べて非常に遅く、RAM等のメモリに記録していたログを全てHDDに記録した場合、情報処理装置の基本機能等に関するジョブに多大な影響を与える恐れがある。すなわち、ログ記録に中央演算処理装置であるCPU(Central Processing Unit)のパワーを消費してしまい、生産性を達成できない恐れがあるという問題点がある。   However, even if the log is recorded in the HDD with the optional HDD, the log recording in the HDD is very slow compared to the recording in the memory such as the RAM, and all the logs recorded in the memory such as the RAM are all recorded. When recorded in the HDD, there is a risk of greatly affecting jobs related to the basic functions of the information processing apparatus. That is, there is a problem in that log recording consumes the power of a central processing unit (CPU), which is a central processing unit, and productivity may not be achieved.

本発明の目的は、上記した従来技術の問題点を解決し、情報処理装置の各基本機能に関するジョブの生産性に影響を与えない量のログのみをHDD等の記憶手段に記録する情報処理装置を提供することにある。   SUMMARY OF THE INVENTION An object of the present invention is to solve the above-described problems of the prior art and to record only an amount of logs in a storage means such as an HDD that does not affect job productivity related to each basic function of the information processing apparatus. Is to provide.

請求項1記載の発明は、情報処理装置のジョブのログであって少なくとも記録レベルを保持するログを取得し、ジョブの実行時間を計測するログ計測部と、ログ計測部により計測されたジョブの実行時間と閾値とを比較判定しジョブの実行時間が所定の閾値を越える場合に記録レベルを切り替えるログ判定部と、情報処理装置のジョブの記録レベルを保持するログを第1の記憶手段上または第2の記憶手段上に記録するログ記録部とを備え、ログ計測部は、ログ判定部により切り替えられた記録レベルに基づいて再計測して、ログ判定部がジョブの実行時間が所定の閾値を越えないと判定した場合に、ログ記録部は、切り替えられた記録レベルより下のログは第1の記憶手段上に記録し、該記録レベル以上のログは第2の記憶手段上に記録することを特徴とする情報処理装置である。   According to the first aspect of the present invention, there is provided a log measuring unit for acquiring a job log of an information processing apparatus and holding at least a recording level, and measuring a job execution time, and a job measured by the log measuring unit. A log determination unit that switches the recording level when the execution time and the threshold value are compared and the job execution time exceeds a predetermined threshold value, and a log that holds the job recording level of the information processing apparatus on the first storage unit or A log recording unit for recording on the second storage unit, and the log measurement unit performs remeasurement based on the recording level switched by the log determination unit, so that the log determination unit performs a job execution time with a predetermined threshold value. The log recording unit records the log below the switched recording level on the first storage unit, and records the log higher than the recording level on the second storage unit. It is an information processing apparatus according to claim.

請求項2記載の発明は、請求項1記載の情報処理装置において、第2の記憶手段を増設可能な情報処理装置であって、第2の記憶手段が接続されたことを検知するデバイス検知部と、デバイス検知部により検知された第2の記憶手段の情報にあわせて、ログの記録可能媒体および記録レベルの少なくとも1つの情報を変更するデバイス管理部とを備え、第2の記憶手段の接続の有無により、ログを第1の記憶手段のみではなく第2の記憶手段にも保存するように切り替えることを特徴とする。   The invention described in claim 2 is the information processing apparatus according to claim 1, wherein the second storage means can be added, and a device detection unit for detecting that the second storage means is connected. And a device management unit that changes at least one of the recordable medium and the recording level of the log in accordance with the information of the second storage unit detected by the device detection unit, and the connection of the second storage unit Depending on the presence or absence of the log, the log is switched to be stored not only in the first storage means but also in the second storage means.

請求項3記載の発明は、請求項2記載の情報処理装置において、ユーザからのログ取得要求を解釈して自情報処理装置の制御を行うコントローラ部に通知する要求処理部と、コントローラ部に要求されたログをログの記録可能媒体および記録レベルの情報に基づいて記録先から取得するログ取得部とをさらに備えることを特徴とする。   According to a third aspect of the present invention, in the information processing device according to the second aspect, a request processing unit that interprets a log acquisition request from a user and notifies the controller unit that controls the information processing device, and a request to the controller unit And a log acquisition unit that acquires the recorded log from a recording destination based on log recordable media and recording level information.

請求項4記載の発明は、請求項1から3のいずれか1項に記載の情報処理装置において、第1の記憶手段は計測フラグを保持するログのみを格納する計測ログ領域を有し、ログ計測部はジョブの実行時間の計測を実施する際に計測ログ領域に格納されたログのみを高速に参照することを特徴とする。   According to a fourth aspect of the present invention, in the information processing apparatus according to any one of the first to third aspects, the first storage means has a measurement log area for storing only a log holding a measurement flag, and the log The measuring unit refers to only the log stored in the measurement log area at high speed when measuring the execution time of the job.

本発明によれば、情報処理装置の各基本機能に関するジョブの生産性に影響を与えない量のログのみをHDD等の記憶手段に記録してログを永続化することができる。   According to the present invention, it is possible to record only an amount of logs that do not affect job productivity related to each basic function of the information processing apparatus in a storage unit such as an HDD and make the logs permanent.

本実施の形態に係るMFPのハードウェア構成例を示すブロック図である。FIG. 2 is a block diagram illustrating an example of a hardware configuration of an MFP according to the present embodiment. 本実施の形態に係るMFPのソフトウェア構成の一例を示す図である。FIG. 3 is a diagram illustrating an example of a software configuration of an MFP according to the present embodiment. 本実施の形態に係るMFPの起動時のデバイス検知処理のフローを示す図である。FIG. 10 is a diagram showing a flow of device detection processing at the time of activation of the MFP according to the present embodiment. 本実施の形態に係るログ記録時の記録先振分処理(オプションHDD220あり)のフローを示す図である。It is a figure which shows the flow of the recording destination distribution process (with option HDD220) at the time of the log recording which concerns on this Embodiment. 本実施の形態に係るログ記録時の記録先振分処理(オプションHDD220なし)のフローを示す図である。It is a figure which shows the flow of the recording destination distribution process (no option HDD220) at the time of the log recording which concerns on this Embodiment. 本実施の形態に係るジョブ終了時の生産性算出処理のフローを示す図である。It is a figure which shows the flow of the productivity calculation process at the time of the end of the job which concerns on this Embodiment. 本実施の形態に係る操作部への通知例を示す図である。It is a figure which shows the example of a notification to the operation part which concerns on this Embodiment. 本実施の形態に係る操作部への通知例を示す図である。It is a figure which shows the example of a notification to the operation part which concerns on this Embodiment.

以下、本発明の実施形態の情報処理装置としてのMFPについて図面を参照しながら説明する。   An MFP as an information processing apparatus according to an embodiment of the present invention will be described below with reference to the drawings.

図1は、本発明の実施形態のMFPのハードウェア構成例を示すブロック図である。
図1に示すMFP100は、外部ボード110と、コントローラ120と、操作部130とを備えている。なお、ログとは、情報処理装置の利用状況を記録したデータである。
FIG. 1 is a block diagram illustrating a hardware configuration example of an MFP according to an embodiment of the present invention.
1 includes an external board 110, a controller 120, and an operation unit 130. The log is data that records the usage status of the information processing apparatus.

外部ボード110は、コントローラとは別に、独立して動作するボード群である。ここでは、一例として、エンジンボード111とFCU(Facsimile Control Unit)ボード112を挙げる。
エンジンボード111は、MFPの核でもあるエンジンを管理する単体ボードである。操作モードや動作モードの制御およびビデオバス制御(変倍、画処理)等を行うことであってよい。独自にエンジンログを保持する。
FCUボード112は、FAX通信やデータのやりとりを制御する単体ボードである。FAX送受信に必須である。独自にFCUログを保持する。
The external board 110 is a group of boards that operate independently of the controller. Here, as an example, an engine board 111 and an FCU (Facsimile Control Unit) board 112 are given.
The engine board 111 is a single board that manages the engine that is also the core of the MFP. Operation mode and operation mode control, video bus control (magnification, image processing), and the like may be performed. Keep your own engine logs.
The FCU board 112 is a single board that controls FAX communication and data exchange. Indispensable for FAX transmission / reception. Keep FCU log independently.

コントローラ120は、MFP100の制御や各種アプリの実行を管理するコントロール部である。H/W(Hard Ware)とS/W(Soft Ware)から成る。ここでは、CPU121とRAM122の二つのH/W部品がある。
CPU121は、演算処理部である。RAM上に記憶されたプログラムを実行する装置である。
第1の記憶手段としてのRAM122は、MFP100内のデータやプログラムを記憶する装置である。
The controller 120 is a control unit that manages the control of the MFP 100 and the execution of various applications. It consists of H / W (Hard Ware) and S / W (Soft Ware). Here, there are two H / W components, the CPU 121 and the RAM 122.
The CPU 121 is an arithmetic processing unit. A device for executing a program stored in a RAM.
A RAM 122 serving as a first storage unit is a device that stores data and programs in the MFP 100.

操作部130は、MFPのユーザインタフェース部である。ユーザからの要求を受け付けるハードキー、結果をユーザに表示するタッチパネルなどから成る。   The operation unit 130 is a user interface unit of the MFP. It consists of a hard key that receives a request from the user, a touch panel that displays the result to the user, and the like.

デバイス200としてSD Card210とオプションHDD220がある。
SD Card210は、ログを取得するためのSDカードである。書き換え可能であり、電源を切ってもデータが消えない不揮発性の半導体メモリであるフラッシュメモリに属するメモリーカードである。
第2の記憶手段としてのオプションHDD220は、オプションとして追加接続したハードディスクであり、脱着可能である。本実施の形態では、このオプションHDD220の有無により挙動が変化するため、重要なモジュールである。
The device 200 includes an SD Card 210 and an optional HDD 220.
The SD Card 210 is an SD card for acquiring a log. The memory card belongs to a flash memory that is a non-volatile semiconductor memory that is rewritable and does not lose data even when the power is turned off.
The option HDD 220 as the second storage means is a hard disk additionally connected as an option, and is removable. In the present embodiment, since the behavior changes depending on the presence or absence of the optional HDD 220, it is an important module.

図2は、本発明の実施形態のMFPのソフトウェア構成の一例を示す図である。なお、分かりやすくするため、一部ハードウェアも混ざっている。   FIG. 2 is a diagram illustrating an example of a software configuration of the MFP according to the embodiment of this invention. Note that some hardware is also mixed for clarity.

ログ管理部11,12は、外部ボード110のログを管理する。エンジンボード111、FCUボード112それぞれに独自に存在する。
ログ格納部13,14は、外部ボード110のログを格納する。エンジンボード111、FCUボード112それぞれに独自に存在する。
外部ボードであるエンジンボード111とFCUボード112とのログを管理する各ログ管理部、及び、コントローラ120からそれらに通信する各制御部、及び、コントローラ120外部のログも取得するように拡張可能であるログ取得部21を有することで、ユーザはMFP100内のログを、コントローラ120内・外を意識せずに取得することができる。
Log management units 11 and 12 manage logs of the external board 110. Each of the engine board 111 and the FCU board 112 is uniquely present.
The log storage units 13 and 14 store logs of the external board 110. Each of the engine board 111 and the FCU board 112 is uniquely present.
Each log management unit that manages logs of the engine board 111 and the FCU board 112, which are external boards, and each control unit that communicates with them from the controller 120 and a log outside the controller 120 can also be acquired. By having a certain log acquisition unit 21, the user can acquire the log in the MFP 100 without being conscious of the inside / outside of the controller 120.

ログ取得部21は、操作部等からのログ取得要求を受け、ログの収集等を実行する。ユーザからのログ取得要求を解釈してコントローラに通知する要求処理部41と、要求されたログをフィルタ情報にあわせて保存先から取得するログ取得部21とを備ることで、ユーザがログの保存先を意識することなく取得要求できる。
ログ記録部22は、各アプリからのログ記録要求を受け、フィルタ情報にあわせてログを振り分ける。
ログ計測部23は、基本機能実行時に、RAM122上のログ領域から計測ログを取得し、基本機能実行時間を算出する。
ログ判定部24は、基本機能実行時間と閾値を比較判定し、それに見合った処理を実施する。
異常処理部25は、異常通知を受け、MFPの動作を制御・制限する。
エンジン制御部26は、エンジンボード111とのやりとりをする。
FCU制御部27は、FCUボード112とのやりとりをする。
デバイス読み書き部28は、外部のデバイス200の読み書きを実行する。
デバイス管理部29は、外部デバイス情報の管理をし、各制御処理を実行する。
デバイス検知部30は、接続されている外部デバイスの情報を取得する。
フィルタ情報31は、ログ記録時のフィルタリング情報(「記録先」、「記録レベル」、「計測フラグ」)を格納する。
デバイス情報32は、接続されている外部デバイスの情報を格納する。
計測情報33は、計測モードでの生産性影響計測の回数を格納する。
閾値34は、各基本機能の閾値と、計測回数の閾値を格納する。
RAM122は、一部分にログを格納する。通常のログを格納するログ領域35と、計測に必要なログのみを格納する計測ログ領域36がある。
The log acquisition unit 21 receives a log acquisition request from the operation unit or the like, and executes log collection and the like. By providing a request processing unit 41 that interprets a log acquisition request from a user and notifies the controller, and a log acquisition unit 21 that acquires a requested log from a storage destination according to filter information, the user can log You can request acquisition without being aware of the storage location.
The log recording unit 22 receives a log recording request from each application, and distributes the log according to the filter information.
The log measurement unit 23 acquires a measurement log from the log area on the RAM 122 and calculates the basic function execution time when executing the basic function.
The log determination unit 24 compares and determines the basic function execution time and the threshold value, and performs processing corresponding to the determination.
The abnormality processing unit 25 receives the abnormality notification and controls / limits the operation of the MFP.
The engine control unit 26 communicates with the engine board 111.
The FCU control unit 27 communicates with the FCU board 112.
The device read / write unit 28 reads / writes data from / to the external device 200.
The device management unit 29 manages external device information and executes each control process.
The device detection unit 30 acquires information about the connected external device.
The filter information 31 stores filtering information (“recording destination”, “recording level”, “measurement flag”) at the time of log recording.
The device information 32 stores information on connected external devices.
The measurement information 33 stores the number of productivity influence measurements in the measurement mode.
The threshold 34 stores a threshold for each basic function and a threshold for the number of measurements.
The RAM 122 stores a log in part. There are a log area 35 for storing normal logs and a measurement log area 36 for storing only logs necessary for measurement.

要求処理部41は、ユーザからの要求を処理し、コントローラ120に命令を送る。
表示処理部42は、コントローラ120等からの表示処理命令を処理し、パネル等に表示する。
The request processing unit 41 processes a request from the user and sends a command to the controller 120.
The display processing unit 42 processes a display processing command from the controller 120 or the like and displays it on a panel or the like.

図3は、本発明の実施形態のMFPの起動時のデバイス検知処理のフローを示す図である。   FIG. 3 is a diagram showing a flow of device detection processing at the time of activation of the MFP according to the embodiment of the present invention.

まず、主電源ONによる起動開始直後、デバイス検知部30が、コントローラに接続されているデバイス情報を取得する(S301)。   First, immediately after the start of activation by turning on the main power supply, the device detection unit 30 acquires device information connected to the controller (S301).

次に、デバイス管理部29が、内部に格納された前回起動時のデバイス構成情報と、今回検出したデバイス構成情報を比較し、変化の有無を確認する(S302)。変化が有るとデバイス管理部29が、デバイス情報を更新する(S304)。   Next, the device management unit 29 compares the device configuration information at the previous activation stored inside with the device configuration information detected this time, and checks whether there is a change (S302). If there is a change, the device management unit 29 updates the device information (S304).

オプションHDD220が追加接続された場合は、デバイス管理部29が、ログをHDD(オプションHDD220)に記録するよう変更し、さらに、性能への影響がないかどうか計測するために計測フラグをONにする(S307)。   When the option HDD 220 is additionally connected, the device management unit 29 changes the log to be recorded in the HDD (option HDD 220), and further turns on the measurement flag to measure whether there is an influence on the performance. (S307).

逆に取り外された場合は、デバイス管理部29が、ログをRAM122上に記録するよう変更する(S309)。   On the other hand, when the device is removed, the device management unit 29 changes the log to be recorded on the RAM 122 (S309).

図4は、本発明の実施形態のログ記録時の記録先振分処理(オプションHDD220あり)のフローを示す図である。以下にオプションHDD220が接続されている場合のログ記録要求時の処理の流れ(ログの保存先の切り分けフロー)を示す。   FIG. 4 is a diagram showing a flow of recording destination distribution processing (with optional HDD 220) during log recording according to the embodiment of this invention. The following is a flow of processing when a log recording request is made when the option HDD 220 is connected (log storage destination separation flow).

まず、各アプリが、ログ記録部にレベル・計測フラグ・本文を保持したログを送信する(S401)。ログフォーマットの一例として、記録レベル、計測フラグ、ログ本文から構成されることであってもよい。   First, each application transmits a log holding a level, a measurement flag, and a text to the log recording unit (S401). As an example of the log format, it may be composed of a recording level, a measurement flag, and a log body.

次に、ログ記録部22が、フィルタ情報31とログから振り分け判断する(S402)。すなわち、ユーザからのログ取得要求を解釈してコントローラ120に通知する要求処理部41を介して記録要求されたログを3箇所((1)RAM122上の計測ログ領域36、(2)RAM122上のログ領域35、(3)オプションHDD220上のログ領域51)に振り分ける。フィルタ情報31にあわせて記録を行うログ記録部22を有することで、各アプリの設計者は、ログの記録先(RAMやHDD等)を意識することなくログ記録を委譲することができる。なお、フィルタ情報31は格納場所から毎回読み出さず、メモリに保持するのが高速化に適している。   Next, the log recording unit 22 makes a sorting determination from the filter information 31 and the log (S402). That is, the log requested to be recorded via the request processing unit 41 that interprets the log acquisition request from the user and notifies the controller 120 is recorded at three locations ((1) the measurement log area 36 on the RAM 122, (2) on the RAM 122. The log area 35 and (3) the log area 51 on the optional HDD 220) are allocated. By having the log recording unit 22 that performs recording in accordance with the filter information 31, the designer of each application can delegate log recording without being aware of the log recording destination (such as RAM or HDD). Note that the filter information 31 is not read from the storage location every time and is stored in the memory, which is suitable for speeding up.

ログ計測部23が、計測モードかどうかを判定し(S403)、計測モードの場合、記録要求されたログに計測フラグがある場合(S404/ON)、そのログをRAM122上の計測専用特別領域(計測ログ領域36)に保存する(S406)。そのログから各処理時間を算出するために別枠保存するのである。
一方、記録要求されたログに計測フラグがなければ(S404/OFF)、通常のログとして扱う。
The log measurement unit 23 determines whether or not the measurement mode is set (S403), and in the measurement mode, when the log requested to be recorded has a measurement flag (S404 / ON), the log is stored in the measurement-specific special area on the RAM 122 (S404 / ON). It is stored in the measurement log area 36) (S406). A separate frame is stored to calculate each processing time from the log.
On the other hand, if there is no measurement flag in the log requested to be recorded (S404 / OFF), it is handled as a normal log.

ログ判定部24が、記録要求されたログのレベルとフィルタレベルを比較し(S405)、フィルタレベル以上の重要ログであればオプションHDD220上に永続化する(S408)。それ以外はRAM122上のログ領域35に循環保存する(S407)。   The log determination unit 24 compares the log level requested to be recorded with the filter level (S405), and if it is an important log higher than the filter level, it is made permanent on the option HDD 220 (S408). Otherwise, it is circularly stored in the log area 35 on the RAM 122 (S407).

すなわち、計測モード(フィルタ情報.計測フラグ=ON)、かつ、記録要求されたログの計測フラグONの場合、そのログを(1)に保存する。
計測モード(フィルタ情報.計測フラグ=ON)、かつ、記録要求されたログの計測フラグOFFの場合、通常ログ記録要求として扱う。
通常ログ記録要求の場合、記録要求されたログのレベルが、閾値34であるフィルタ情報.レベル以上であれば(3)に永続保存し、それ以外は(2)に循環保存する。
That is, when the measurement mode (filter information.measurement flag = ON) and the measurement flag of the log requested to be recorded are ON, the log is stored in (1).
When the measurement mode (filter information. Measurement flag = ON) and the measurement flag of the log requested to be recorded is OFF, it is handled as a normal log recording request.
In the case of a normal log recording request, the filter information. If it is above the level, it is permanently saved in (3), otherwise it is cyclically saved in (2).

図5は、本発明の実施形態のログ記録時の記録先振分処理(オプションHDD220なし)のフローを示す図である。以下にオプションHDD220が接続されていない場合のログ記録要求時の処理の流れ(ログの保存先の切り分けフロー)を示す。   FIG. 5 is a diagram showing a flow of recording destination distribution processing (without option HDD 220) at the time of log recording according to the embodiment of the present invention. A flow of processing when a log recording request is made when the option HDD 220 is not connected (log storage destination separation flow) is shown below.

まず、各アプリが、ログ記録部にレベル・計測フラグ・本文を保持したログを送信する(S501)。ログフォーマットの一例として、レベル、計測フラグ、ログ本文から構成されることであってもよい。   First, each application transmits a log holding a level, a measurement flag, and a text to the log recording unit (S501). As an example of the log format, it may be composed of a level, a measurement flag, and a log body.

次に、ログ記録部22が、フィルタ情報31とログから振り分け判断する(S502)。すなわち、オプションHDD220がないため、記録要求されたログを2箇所((1)RAM122上の計測ログ領域36、(2)RAM122上のログ領域35)に振り分ける。なお、フィルタ情報31は格納場所から毎回読み出さず、メモリに保持するのが高速化に適している。   Next, the log recording unit 22 makes a sorting determination from the filter information 31 and the log (S502). That is, since there is no option HDD 220, the log requested to be recorded is distributed to two locations ((1) the measurement log area 36 on the RAM 122 and (2) the log area 35 on the RAM 122). Note that the filter information 31 is not read from the storage location every time and is stored in the memory, which is suitable for speeding up.

ログ計測部23が、計測モードかどうかを判定し(S503)、計測モードの場合、記録要求されたログに計測フラグがある場合(S504/ON)、そのログをRAM上の計測専用特別領域(計測ログ領域36)に保存する(S505)。そのログから各処理時間を算出するため別枠保存する。
一方、記録要求されたログに計測フラグがなければ(S504/OFF)、通常のログとして扱う。RAM122上のログ領域35に循環保存する(S407)。
The log measurement unit 23 determines whether or not the measurement mode is selected (S503). In the measurement mode, when the log requested to be recorded has a measurement flag (S504 / ON), the log is stored in a special measurement area (dedicated to measurement on the RAM) (S504 / ON). It is stored in the measurement log area 36) (S505). A separate frame is stored to calculate each processing time from the log.
On the other hand, if there is no measurement flag in the log requested to be recorded (S504 / OFF), it is handled as a normal log. It is circularly stored in the log area 35 on the RAM 122 (S407).

すなわち、計測モード(フィルタ情報.計測フラグ=ON)、かつ、記録要求されたログの計測フラグONの場合、そのログを(1)に保存する。それ以外は(2)に循環保存する。   That is, when the measurement mode (filter information.measurement flag = ON) and the measurement flag of the log requested to be recorded are ON, the log is stored in (1). Otherwise, it is stored cyclically in (2).

図6は、本発明の実施形態の情報処理装置の各基本機能である各ジョブの終了時の生産性算出処理のフローを示す図である。以下に各ジョブ(コピー、FAX、プリンタ、etc...)を実行したときの、ジョブ実行時間(生産性)への影響を算出する処理の流れを示す。   FIG. 6 is a diagram illustrating a flow of productivity calculation processing at the end of each job, which is each basic function of the information processing apparatus according to the embodiment of this invention. The flow of processing for calculating the influence on job execution time (productivity) when each job (copy, FAX, printer, etc.) is executed is shown below.

ジョブ完了通知を受けて処理を開始するが、まず、ログ計測部23が、フィルタ情報31内の計測フラグを確認する(S601)。計測モードではない場合、何もしない。   The process is started upon receiving the job completion notification. First, the log measurement unit 23 checks the measurement flag in the filter information 31 (S601). If not in measurement mode, do nothing.

計測モードの場合、ログ計測部23が、計測情報33の計測回数と閾値34を比較する(S603)。   In the measurement mode, the log measurement unit 23 compares the measurement count of the measurement information 33 with the threshold 34 (S603).

ログ計測部23が、RAM122上の計測ログ領域36から該当ジョブのログを取得し、ジョブの実行時間を算出する(S604)。   The log measurement unit 23 acquires the job log from the measurement log area 36 on the RAM 122, and calculates the job execution time (S604).

ログ判定部24が、実行時間とそのジョブの閾値34を比較する(S605)。   The log determination unit 24 compares the execution time with the threshold 34 of the job (S605).

実行時間>閾値の場合(S606/TRUE)、すなわち当ジョブの生産性に影響ありの場合、ログ判定部24が、フィルタ情報31の記録レベルを1ランクアップする(S607)。   When execution time> threshold (S606 / TRUE), that is, when the productivity of the job is affected, the log determination unit 24 increases the recording level of the filter information 31 by one rank (S607).

記録レベル>最大レベルでない場合(S608/FALSE)、ログ計測部23が、計測情報33の計測回数をクリアする(S609)。   When the recording level is not higher than the maximum level (S608 / FALSE), the log measurement unit 23 clears the measurement count of the measurement information 33 (S609).

ログ判定部24が、操作部130の表示処理部42に、ログ記録レベルを上げた旨を通知する(S610)。操作部130への通知例を図7に示す。記録レベルを一段上げた場合は図7のような帯状のアラートレベルであってもよい。   The log determination unit 24 notifies the display processing unit 42 of the operation unit 130 that the log recording level has been increased (S610). An example of notification to the operation unit 130 is shown in FIG. When the recording level is increased by one step, a belt-like alert level as shown in FIG. 7 may be used.

一方、記録レベル>最大レベルの場合(S608/TRUE)、ログ判定部24が、操作部130の表示処理部42に、オプションHDD122にログを記録できないエラーを通知する(S611)。操作部130への通知例を図8に示す。記録レベルが最大を超え、ログ記録ができなくなった場合は図8のようなエラー表示であってもよい。
すなわち、生産性に影響がある場合は、フィルタ情報31の記録レベルを上げて計測し続け、記録レベルが規定の最大レベルを超えた場合はエラー処理を行う。
On the other hand, when the recording level is greater than the maximum level (S608 / TRUE), the log determination unit 24 notifies the display processing unit 42 of the operation unit 130 of an error in which the log cannot be recorded in the option HDD 122 (S611). An example of notification to the operation unit 130 is shown in FIG. If the recording level exceeds the maximum and log recording cannot be performed, an error display as shown in FIG. 8 may be displayed.
That is, when the productivity is affected, the recording level of the filter information 31 is increased and measurement is continued, and when the recording level exceeds the prescribed maximum level, error processing is performed.

フィルタ情報31の記録レベルを最大レベルより上の値に設定し(S612)、ログ計測部が、フィルタ情報31内の計測フラグをOFFにし(S613)、ログ計測部23が異常処理部25に生産性エラー処理を委譲する(S614)。   The recording level of the filter information 31 is set to a value higher than the maximum level (S612), the log measurement unit turns off the measurement flag in the filter information 31 (S613), and the log measurement unit 23 produces the abnormality processing unit 25. Delegation error processing is delegated (S614).

さて、実行時間>閾値でない場合(S606/FALSE)、すなわち当ジョブの生産性に影響なしの場合、ログ計測部23が、計測情報33の計測回数をインクリメントする(S615)。   When the execution time is not greater than the threshold value (S606 / FALSE), that is, when there is no influence on the productivity of the job, the log measurement unit 23 increments the number of measurements of the measurement information 33 (S615).

計測回数>閾値でない場合(S616/FALSE)、規定回数計測完了したら計測モードを終了する。
一方、計測回数>閾値の場合(S616/TRUE)、ログ計測部23が、フィルタ情報31内の計測フラグをOFFにして計測モードOFFとする(S617)。
If the number of measurements is not greater than the threshold value (S616 / FALSE), the measurement mode ends when the specified number of measurements is completed.
On the other hand, when the number of times of measurement> the threshold value (S616 / TRUE), the log measuring unit 23 turns off the measurement flag in the filter information 31 to turn off the measurement mode (S617).

HDDへのログ記録は、メモリへの記録に比べて非常に遅く、メモリに記録していたログを全てHDDに記録した場合、情報処理装置の基本機能等に多大な影響を与える恐れがある。これまではログ記録にCPUパワーを消費してしまい、生産性を達成できない恐れがあった。しかし上記の本実施の形態によれば、各基本機能の生産性に影響を与えない量のログを見極めてHDDに記録する。すなわち、HDD増設時は、予め仕込まれたログを用いて各基本機能の生産性を計測する。生産性を達成できない場合、記録するログレベルを一段上げて再計測する。記録ログレベルより下のものはメモリ上に、ログレベル以上のものはHDD上に記録する。これを繰り返すことで、生産性を達成できる範囲内で最適なレベルを決定することができる。これにより、重要度が高いログからHDDに永続保存し、重要度が低いものはメモリ上で循環記録される。   Log recording to the HDD is much slower than recording to the memory, and if all the logs recorded in the memory are recorded in the HDD, the basic functions of the information processing apparatus may be greatly affected. Until now, the CPU power was consumed for log recording, and productivity could not be achieved. However, according to the above-described embodiment, an amount of log that does not affect the productivity of each basic function is found and recorded in the HDD. That is, when the HDD is added, the productivity of each basic function is measured using a previously prepared log. If productivity cannot be achieved, increase the log level to be recorded and re-measure. Those below the recording log level are recorded on the memory, and those above the log level are recorded on the HDD. By repeating this, it is possible to determine an optimum level within a range in which productivity can be achieved. As a result, logs with high importance are permanently stored in the HDD, and those with low importance are circularly recorded in the memory.

なお、上述する各実施の形態は、本発明の好適な実施の形態であり、本発明の要旨を逸脱しない範囲内において種々の変更実施が可能である。例えば、情報処理装置の機能を実現するためのプログラムを装置に読込ませて実行することにより装置の機能を実現する処理を行ってもよい。さらに、そのプログラムは、コンピュータ読み取り可能な記録媒体であるCD−ROM(Compact Disc Read Only Memory)または光磁気ディスクなどを介して、または伝送媒体であるインターネット、電話回線などを介して伝送波により他のコンピュータシステムに伝送されてもよい。また、追加の装置により機能が分散されて実現される形態も本発明の範囲内である。   Each embodiment described above is a preferred embodiment of the present invention, and various modifications can be made without departing from the gist of the present invention. For example, processing for realizing the functions of the apparatus may be performed by causing the apparatus to read and execute a program for realizing the functions of the information processing apparatus. In addition, the program is transmitted by a transmission wave via a CD-ROM (Compact Disc Read Only Memory) or magneto-optical disk as a computer-readable recording medium, or via the Internet or a telephone line as a transmission medium. May be transmitted to other computer systems. Further, a mode in which functions are distributed by an additional device is also within the scope of the present invention.

100 MFP
110 外部ボード
120 コントローラ
130 操作部
111 エンジンボード
112 FCUボード
121 CPU
122 RAM
200 デバイス
210 SD Card
220 オプションHDD
100 MFP
110 External board 120 Controller 130 Operation unit 111 Engine board 112 FCU board 121 CPU
122 RAM
200 devices 210 SD Card
220 Option HDD

特開平11−348380号公報JP 11-348380 A 特開2008−166899号公報JP 2008-166899 A

Claims (6)

情報処理装置のジョブのログであって少なくとも記録レベルを保持するログを取得し、ジョブの実行時間を計測するログ計測部と、
前記ログ計測部により計測されたジョブの実行時間と閾値とを比較判定し前記ジョブの実行時間が所定の閾値を越える場合に記録レベルを切り替えるログ判定部と、
情報処理装置のジョブの記録レベルを保持するログを第1の記憶手段上または第2の記憶手段上に記録するログ記録部とを備え、
前記ログ計測部は、前記ログ判定部により切り替えられた記録レベルに基づいて再計測して、前記ログ判定部が前記ジョブの実行時間が所定の閾値を越えないと判定した場合に、前記ログ記録部は、前記切り替えられた記録レベルより下のログは前記第1の記憶手段上に記録し、該記録レベル以上のログは前記第2の記憶手段上に記録することを特徴とする情報処理装置。
A log measurement unit that acquires a log of information processing apparatus jobs and retains at least a recording level, and measures a job execution time;
A log determination unit that compares and determines a job execution time measured by the log measurement unit and a threshold, and switches a recording level when the job execution time exceeds a predetermined threshold; and
A log recording unit that records a log that holds a recording level of a job of the information processing apparatus on the first storage unit or the second storage unit;
The log measurement unit re-measures based on the recording level switched by the log determination unit, and the log recording unit when the log determination unit determines that the execution time of the job does not exceed a predetermined threshold The information processing apparatus is characterized in that a log lower than the switched recording level is recorded on the first storage means, and a log higher than the recording level is recorded on the second storage means. .
前記第2の記憶手段を増設可能な情報処理装置であって、
前記第2の記憶手段が接続されたことを検知するデバイス検知部と、
前記デバイス検知部により検知された前記第2の記憶手段の情報にあわせて、前記ログの記録可能媒体および前記記録レベルの少なくとも1つの情報を変更するデバイス管理部とを備え、
前記第2の記憶手段の接続の有無により、ログを前記第1の記憶手段のみではなく前記第2の記憶手段にも保存するように切り替えることを特徴とする請求項1記載の情報処理装置。
An information processing apparatus capable of adding the second storage means,
A device detector for detecting that the second storage means is connected;
A device management unit that changes at least one of the recordable medium of the log and the recording level according to the information of the second storage means detected by the device detection unit;
2. The information processing apparatus according to claim 1, wherein switching is performed so that the log is stored not only in the first storage unit but also in the second storage unit depending on whether or not the second storage unit is connected.
ユーザからのログ取得要求を解釈して自情報処理装置の制御を行うコントローラ部に通知する要求処理部と、
前記コントローラ部に要求されたログをログの前記記録可能媒体および前記記録レベルの情報に基づいて記録先から取得するログ取得部とをさらに備えることを特徴とする請求項2記載の情報処理装置。
A request processing unit that interprets a log acquisition request from a user and notifies a controller unit that controls the information processing apparatus;
The information processing apparatus according to claim 2, further comprising: a log acquisition unit that acquires a log requested from the controller unit from a recording destination based on the recordable medium of the log and the information of the recording level.
前記第1の記憶手段は計測フラグを保持するログのみを格納する計測ログ領域を有し、
前記ログ計測部はジョブの実行時間の計測を実施する際に前記計測ログ領域に格納されたログのみを高速に参照することを特徴とする請求項1から3のいずれか1項に記載の情報処理装置。
The first storage means has a measurement log area for storing only a log holding a measurement flag;
The information according to any one of claims 1 to 3, wherein the log measurement unit refers to only the log stored in the measurement log area at high speed when measuring the execution time of a job. Processing equipment.
ログがジョブの実行時間に影響を与えている旨をユーザに通知する表示処理部をさらに備えることを特徴とする請求項1から4のいずれか1項に記載の情報処理装置。   5. The information processing apparatus according to claim 1, further comprising a display processing unit that notifies a user that the log affects the execution time of the job. 自情報処理装置の制御を行うコントローラ部の外部に設けられ、自外部ボードのログを管理するログ管理部を有する外部ボードを備え、
前記ログ計測部は、前記ログ管理部から前記外部ボードのログも取得してジョブの実行時間を計測することを特徴とする請求項1から5のいずれか1項に記載の情報処理装置。
Provided outside the controller unit that controls the own information processing apparatus, and includes an external board having a log management unit that manages the log of the own external board,
The information processing apparatus according to claim 1, wherein the log measurement unit acquires a log of the external board from the log management unit and measures a job execution time.
JP2009207210A 2009-09-08 2009-09-08 Information processing apparatus Withdrawn JP2011059874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009207210A JP2011059874A (en) 2009-09-08 2009-09-08 Information processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009207210A JP2011059874A (en) 2009-09-08 2009-09-08 Information processing apparatus

Publications (1)

Publication Number Publication Date
JP2011059874A true JP2011059874A (en) 2011-03-24

Family

ID=43947443

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009207210A Withdrawn JP2011059874A (en) 2009-09-08 2009-09-08 Information processing apparatus

Country Status (1)

Country Link
JP (1) JP2011059874A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012247937A (en) * 2011-05-26 2012-12-13 Fujitsu Ltd Information processing unit, log storage control program, and log storage control method
JP2013134518A (en) * 2011-12-26 2013-07-08 Ricoh Co Ltd External output device, log collecting method for external output device, and program
CN105183626A (en) * 2015-09-30 2015-12-23 深圳怡化电脑股份有限公司 Log storage method and system of paper currency recognition module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012247937A (en) * 2011-05-26 2012-12-13 Fujitsu Ltd Information processing unit, log storage control program, and log storage control method
JP2013134518A (en) * 2011-12-26 2013-07-08 Ricoh Co Ltd External output device, log collecting method for external output device, and program
CN105183626A (en) * 2015-09-30 2015-12-23 深圳怡化电脑股份有限公司 Log storage method and system of paper currency recognition module

Similar Documents

Publication Publication Date Title
EP2284704B1 (en) Information processing apparatus, method, and control program for determinnig the suitable monitoring time corresponding to a selected mode of processing
JP5015046B2 (en) Information processing apparatus and information processing method
JP2011197952A (en) Information processing apparatus, image forming apparatus, and information processing program
JP5126595B2 (en) Image processing apparatus and image processing system
CN104486523A (en) Data processing apparatus capable of controlling power supply, and control method therefor
JP3895610B2 (en) Image forming apparatus and image forming method
JP2011059874A (en) Information processing apparatus
CN102855099B (en) Print control unit and method, signal conditioning package and method and printing equipment
JP6881330B2 (en) Electronic equipment and memory control program
KR20120094855A (en) Information processing apparatus and method of controlling the same
US20170041482A1 (en) Printing apparatus having plurality of power states and control method therefor
JP2012006389A (en) Image forming apparatus, and writing control method
JP2014153931A (en) Processor system, electronic apparatus, and system control program
JP2019191910A (en) Memory controller, non-volatile storage device, non-volatile storage system, and memory control method
JP6124836B2 (en) Electronic device and memory management method
JP2007241384A (en) Fault prediction device, image forming device, fault prediction method and program
JP4148834B2 (en) Data transfer apparatus, image forming apparatus, data transfer control method, computer program, and recording medium
JP2021192491A (en) Information processing system, image forming apparatus, method for controlling information processing system, method for controlling image forming apparatus, and program
US20190199862A1 (en) Image processing apparatus, control method thereof, and storage medium
JP2010016541A (en) Image forming apparatus
JP2013191162A (en) Operation analysis device, image forming device, operation analysis method, and program
JP7135654B2 (en) Information processing device and information processing program
JP2014138265A (en) Image forming apparatus
JP2009104432A (en) Information management device
JP2004160659A (en) System controller

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20121204