JP2507579B2 - Logging information storage method by occurrence frequency - Google Patents
Logging information storage method by occurrence frequencyInfo
- Publication number
- JP2507579B2 JP2507579B2 JP1034847A JP3484789A JP2507579B2 JP 2507579 B2 JP2507579 B2 JP 2507579B2 JP 1034847 A JP1034847 A JP 1034847A JP 3484789 A JP3484789 A JP 3484789A JP 2507579 B2 JP2507579 B2 JP 2507579B2
- Authority
- JP
- Japan
- Prior art keywords
- logging
- information
- logging information
- occurrence frequency
- buffer
- 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.)
- Expired - Fee Related
Links
Landscapes
- Debugging And Monitoring (AREA)
Description
【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術(第3図) 発明が解決しようとする課題 課題を解決するための手段(第1図) 作用 実施例(第2図) 発明の効果 〔概要〕 発明頻度別ロギング情報格納方式に関し、 多発性ロギング情報によって、他の重要なロギング情
報が潰されて消滅することを防止し、エラーの原因究明
などの促進ができるようにすることを目的とし、 主制御部と、ロギング情報判定部を有するタスク処理
部と、一般ロギングスタックバッファと、多発性ロギン
グスタックバッファと、多発性ロギング情報制御部と、
ロギングマスクバッファと、ロギングファイルとを備
え、一般ロギング情報は、一旦、一般ロギングスタック
バッファにスタックし、その後ロギングファイルへ転送
して格納し、多発性ロギング情報は、一旦、多発性ロギ
ングスタックバッファにスタックした後、その発生頻度
をカウントし、多発性ロギング情報と、その発生頻度の
データをロギングマスクバッファに登録し、登録データ
を一定時間毎に読み出して一般ロギングスタックバッフ
ァへ転送した後、ロギングファイルへ格納するように構
成する。DETAILED DESCRIPTION [Table of Contents] Outline Industrial field of application Conventional technology (Fig. 3) Problem to be solved by the invention Means for solving the problem (Fig. 1) Operation Example (Fig. 2) [Advantages of the Invention] [Outline] Regarding the logging information storage method according to the invention frequency, it is possible to prevent the other important logging information from being crushed and disappear by the frequent logging information, and to promote the investigation of the cause of the error. In order to achieve, a main control unit, a task processing unit having a logging information determination unit, a general logging stack buffer, a multiple logging stack buffer, and a multiple logging information control unit,
A logging mask buffer and a logging file are provided.General logging information is temporarily stacked in the general logging stack buffer, then transferred to the logging file for storage, and multiple logging information is temporarily stored in the multiple logging stack buffer. After stacking, count the occurrence frequency, register the frequent logging information and the data of the occurrence frequency in the logging mask buffer, read the registered data at regular intervals and transfer to the general logging stack buffer, then log file To be stored in.
本発明は、発生頻度別ロギング情報格納方式に関し、
更に詳しくいえば、各種のコンピュータシステムにおい
て、運転情報や障害の発生及び復旧等を知る目的でエラ
ー情報などの各種ロギング情報を格納するために使用さ
れ、重要なロギング情報が潰されて消滅するのを防止で
きるようにした発生頻度別ロギング情報格納方式に関す
る。The present invention relates to a logging information storage system by occurrence frequency,
More specifically, in various computer systems, it is used to store various logging information such as operation information and error information for the purpose of knowing the occurrence and restoration of failures, etc., and important logging information is destroyed and disappears. The present invention relates to a logging information storage method for each occurrence frequency that can prevent the above.
従来、一般的に、各種のコンピュータシステムにおい
て、多くの場合、運転情報や障害の発生、及び復旧など
を知るために、エラー情報等の各種ロギング情報をロギ
ングファイルに格納していた。Conventionally, in general, in various computer systems, in many cases, various logging information such as error information is stored in a logging file in order to know operation information, failure occurrence, and recovery.
第3図は、このような従来のロギング情報格納方式を
示した図である。FIG. 3 is a diagram showing such a conventional logging information storage method.
50は全体の制御をする主制御部(CPU)、51は各種の
タスクを処理するタスク処理部、52はロギング情報を一
時的に格納するロギングスタックバッファ、53はロギン
グファイルである。Reference numeral 50 is a main control unit (CPU) that controls the overall operation, 51 is a task processing unit that processes various tasks, 52 is a logging stack buffer that temporarily stores logging information, and 53 is a logging file.
タスク処理部51からとロギング情報は、一時的にロギ
ングスタックバッファ52に格納された後、一定の周期で
ロギングファイルに順次格納される。The logging information from the task processing unit 51 is temporarily stored in the logging stack buffer 52, and then sequentially stored in the logging file at a fixed cycle.
この場合、ロギングスタックバッファ52は、比較的小
容量のメモリであり、あらゆるロギング情報を一緒にし
て順次格納する。In this case, the logging stack buffer 52 is a memory having a relatively small capacity, and sequentially stores all the logging information together.
そして、ロギングスタックバッファ52のメモリ容量以
上のロギング情報が、続けて送られてきた場合には、前
のデータを消去して新しいデータを書き込むようになっ
ている。Then, when the logging information exceeding the memory capacity of the logging stack buffer 52 is continuously sent, the previous data is erased and new data is written.
このように、ロギングスタックバッファ52内のデータ
は、一定周期でロギングファイル53へ転送されて格納さ
れるが、もし、ロギングファイル53へデータが転送され
る前に、ロギングスタックバッファ52に格納できない大
量のロギング情報が送られてきた場合には、前のデータ
は潰されて消滅する。In this way, the data in the logging stack buffer 52 is transferred to the logging file 53 and stored at a fixed cycle, but if the data cannot be stored in the logging stack buffer 52 before the data is transferred to the logging file 53. When the logging information of is sent, the previous data is destroyed and disappears.
上記のような従来のものにおいては次のような欠点が
あった。The conventional device as described above has the following drawbacks.
即ち、ロギング情報には、一度発生すると、その後発
生を繰り返す多発性のロギング情報がある。That is, the logging information includes multiple logging information that occurs once and then repeats thereafter.
この多発性ロギング情報のために、他の重要なロギン
グ情報が潰されてしまうことがあり、障害調査等が阻害
される欠点がある。Due to this multiple logging information, other important logging information may be crushed, which has a drawback of hindering failure investigations.
本発明は、このような従来の欠点を解消し、多発性ロ
ギング情報によって、他の重要なロギング情報が潰され
て消滅することを防止し、エラーの原因究明などの促進
ができるようにすることを目的とする。The present invention eliminates such conventional drawbacks, prevents other important logging information from being crushed and disappears due to the multiple logging information, and makes it possible to accelerate the investigation of the cause of an error. With the goal.
上記の目的を達成するため、本発明は次のようにした
ものである。In order to achieve the above object, the present invention is as follows.
第1図は、本発明に係る発生頻度別ロギング情報格納
方式の原理図である。FIG. 1 is a principle diagram of a logging information storage system according to occurrence frequency according to the present invention.
主制御部(CPU)1の指示により、タスク処理部2で
各種のタスクが処理される。Various tasks are processed by the task processing unit 2 according to an instruction from the main control unit (CPU) 1.
その際、各種のロギング情報が発生するが、タスク処
理部2内のロギング情報判定部3において、ロギング情
報の種類が判定される。At that time, various kinds of logging information are generated, and the type of the logging information is judged in the logging information judging unit 3 in the task processing unit 2.
即ち、一度発生すると、その後発生を繰返す多発性ロ
ギング情報と、その他の一般ロギング情報との2種類に
分けて判定される。That is, once generated, multiple logging information that repeatedly occurs after that and other general logging information are classified into two types.
ロギング情報判定部3から送出される一般ロギング情
報は、一般ロギングスタックバッファ4に、一旦スタッ
クされた後、主制御部1からの指示でロギングファイル
5に格納される。The general logging information sent from the logging information determination unit 3 is temporarily stacked in the general logging stack buffer 4 and then stored in the logging file 5 according to an instruction from the main control unit 1.
また、ロギング情報判定部3から送出される多発性ロ
ギング情報は、一旦、多発性ロギングスタックバッファ
6にスタックされた後、所定の周期で多発性ロギング情
報制御部7を介してロギングマスクバッファ8に登録さ
れる。Further, the multiple logging information sent from the logging information determination unit 3 is temporarily stacked in the multiple logging stack buffer 6 and then stored in the logging mask buffer 8 via the multiple logging information control unit 7 at a predetermined cycle. be registered.
このロギングマスクバッファ8には、多発性ロギング
情報と共に、その発生の頻度(回数)データを登録して
おき、所定の周期でこれらを読み出して一般ロギングス
タックバッファ4へ転送した後、ロギングファイル5へ
格納する。In the logging mask buffer 8, the frequency (number of times) of occurrence is registered together with the frequent logging information, these are read at a predetermined cycle and transferred to the general logging stack buffer 4, and then to the logging file 5. Store.
このように、タスク処理部2で発生したロギング情報
をロギングファイル5へ格納する際、一般ロギング情報
と、多発性ロギング情報を一旦別々のバッファにスタッ
クする。As described above, when the logging information generated in the task processing unit 2 is stored in the logging file 5, the general logging information and the frequent logging information are temporarily stacked in different buffers.
この多発性ロギング情報の内、発生を繰り返すものを
多発ロギング情報、ON−OFFの組で繰り返すものを頻発
ロギング情報と定義する。Of this multiple logging information, what repeatedly occurs is defined as frequent logging information, and what repeats in an ON-OFF group is defined as frequent logging information.
そして、多発性ロギング情報と共に、その発生頻度を
格納する場合、多発ロギング情報はその情報と発生回数
を登録し、頻度ロギング情報は、その情報とON−OFF対
の回数をカウントして登録する。When the occurrence frequency is stored together with the frequent logging information, the frequent logging information registers the information and the number of occurrences, and the frequency logging information counts and registers the information and the number of ON-OFF pairs.
上記のように構成したので、多発性ロギング情報によ
って、他の重要なロギング情報が潰されて消滅すること
はなくなる。With the above configuration, the multiple logging information does not destroy other important logging information and disappear.
また、多発性ロギング情報は、その情報と発生頻度
(回数)を格納しているから、障害の原因究明等に役立
つ。Further, since the multiple logging information stores the information and the occurrence frequency (number of times), it is useful for investigating the cause of the failure.
以下、本発明の実施例を図面に基づいて説明する。第
2図は本発明の1実施例である発生頻度別ロギング情報
格納方式のブロック図であり、第1図と同符号は同一の
ものを示す。Embodiments of the present invention will be described below with reference to the drawings. FIG. 2 is a block diagram of an occurrence frequency-based logging information storage system according to an embodiment of the present invention, and the same reference numerals as those in FIG.
1は主制御部(CPU)、2はタスク処理部であり、そ
の内部にはロギング情報判定部3を設ける。Reference numeral 1 is a main control unit (CPU), 2 is a task processing unit, and a logging information determination unit 3 is provided therein.
4は一般ロギングスタックバッファ、5はロギングフ
ァイル、6は多発性ロギングスタックバッファ、7は多
発性ロギング情報制御部であり、その内部にタイマ9を
設ける。Reference numeral 4 is a general logging stack buffer, 5 is a logging file, 6 is a multiple logging stack buffer, 7 is a multiple logging information control unit, and a timer 9 is provided therein.
8は多発性ロギング情報メモリ部11と、発生頻度メモ
リ部10とを有するロギングマスクバッファである。Reference numeral 8 is a logging mask buffer having a multiple logging information memory unit 11 and an occurrence frequency memory unit 10.
主制御部1の指示により、タスク処理部2において、
各種のタスク処理が行われ、その過程で各種のロギング
情報が発生する。In response to an instruction from the main control unit 1, the task processing unit 2
Various task processes are performed, and various logging information is generated in the process.
このロギング情報は、ロギング情報判定部3で判定さ
れ、一般ロギング情報と、多発性ロギング情報との2種
類に分けて判定される。This logging information is judged by the logging information judging section 3 and is classified into two types: general logging information and multiple logging information.
この判定は、ロギング情報判定部3に対して、予め、
その判定基準となるデータを設定しておくことにより行
う。This determination is made in advance with respect to the logging information determination unit 3.
This is done by setting the data that serves as the criterion.
ロギング情報判定部3から送出される情報が多発性ロ
ギング情報である場合は、一時的に多発性ロギングスタ
ックバッファ6にスタックし、一般ロギングスタックバ
ッファ4にスタックする。When the information sent from the logging information determination unit 3 is the multiple logging information, it is temporarily stacked in the multiple logging stack buffer 6 and then in the general logging stack buffer 4.
一般ロギングスタックバッファ4にスタックされた一
般ロギング情報は、主制御部1の指示により、所定の周
期でロギングファイル5に転送されて格納される。The general logging information stacked in the general logging stack buffer 4 is transferred and stored in the logging file 5 at a predetermined cycle according to an instruction from the main control unit 1.
多発性ロギングスタックバッファ6にスタックされた
多発性ロギング情報は、所定の周期で多発性ロギング情
報制御部7へ送られ、ロギングマスクバッファ8内の情
報を参照して、既に登録された情報が否かを見る。The multiple logging information stacked in the multiple logging stack buffer 6 is sent to the multiple logging information control unit 7 in a predetermined cycle, and the information in the logging mask buffer 8 is referred to so that the registered information is not registered. See what.
登録されていない情報であれば、多発性ロギング情報
メモリ部11にその多発性ロギング情報を登録すると共
に、発生頻度メモリ部10内の前記情報に対応した部分に
発生頻度1を登録する。If the information is not registered, the multiple logging information is registered in the multiple logging information memory unit 11, and the occurrence frequency 1 is registered in the portion of the occurrence frequency memory unit 10 corresponding to the information.
また、既に登録されている情報であれば、多発性ロギ
ング情報メモリ部11への登録は行わず、その情報に対応
した発生頻度メモリ部10内の発生頻度を+1だけカウン
トアップして再登録する。If the information is already registered, it is not registered in the multiple logging information memory unit 11, but the occurrence frequency in the occurrence frequency memory unit 10 corresponding to the information is counted up by +1 and re-registered. .
この場合、多発性ロギング情報には、発生を繰り返す
多発ロギング情報と、ON−OFFの組で繰り返す頻発ロギ
ング情報とがある。In this case, the frequent logging information includes frequent logging information that repeats occurrence and frequent logging information that repeats in an ON-OFF set.
このため、多発ロギング情報は、その情報と発生回数
を登録し、頻度ロギング情報はロギングコードを最新の
ものにし、ON−OFF対の回数をカウントして登録する。Therefore, the frequent logging information registers the information and the number of times of occurrence, the frequency logging information updates the logging code to the latest, and counts and registers the number of ON-OFF pairs.
このような動作を繰り返し、所定時間経過すると、タ
イマ9がタイムアウトとなる。When the above operation is repeated and a predetermined time has elapsed, the timer 9 times out.
多発性ロギング情報制御部7が前記タイムアウトを検
知すると、ロギングマスクバッファ8内の多発性ロギン
グ情報メモリ部11に登録されている多発性ロギング情報
の内、発生頻度メモリ部10内に登録されている発生頻度
が0でない情報を調べる。When the multiple logging information control unit 7 detects the time-out, the multiple logging information registered in the multiple logging information memory unit 11 in the logging mask buffer 8 is registered in the occurrence frequency memory unit 10. Examine the information whose occurrence frequency is not zero.
その結果、発生頻度が0でない情報については、その
情報と発生頻度とのデータを一般ロギングスタックバッ
ファ4へ転送し、さらにロギングファイル5へ転送され
て格納する。As a result, for information whose occurrence frequency is not 0, the data of the information and the occurrence frequency is transferred to the general logging stack buffer 4, and further transferred to the logging file 5 for storage.
このデータ転送は、一般ロギング情報とは別に行われ
るように、主制御部1で制御する。This data transfer is controlled by the main control unit 1 so as to be performed separately from the general logging information.
このようにしてロギングマスクバッファ8から一般ロ
ギングスタックバッファ4へ多発性ロギング情報と発生
頻度のデータが転送されると、タイマ9がリセットされ
て再スタートする。When the frequent logging information and the data of the occurrence frequency are transferred from the logging mask buffer 8 to the general logging stack buffer 4 in this manner, the timer 9 is reset and restarted.
そして再びタイマ9がタイムアップすると、上記と同
様にしてデータ転送を行い、この動作を繰り返す。When the timer 9 times out again, data transfer is performed in the same manner as above, and this operation is repeated.
上記の場合、発生頻度メモリ10に登録されている発生
頻度が0の場合は、何もしない。In the above case, if the occurrence frequency registered in the occurrence frequency memory 10 is 0, nothing is done.
以上説明したように、本発明によれば次のような効果
がある。As described above, the present invention has the following effects.
(1) 一般ロギング情報と、多発性ロギング情報が、
一旦別々のバッファにスタックされるので、多発性ロギ
ング情報によって、他の重要なロギング情報が短時間で
潰され、消滅することがなくなる。(1) General logging information and frequent logging information are
Once stacked in separate buffers, the frequent logging information does not destroy other important logging information in a short time and disappear.
このため、障害時も、根本原因となった古いロギング
情報が残され得るようになり、障害調査等が阻害されな
い。Therefore, even in the event of a failure, old logging information that was the root cause can be left behind, and failure investigations and the like are not hindered.
(2) 多発性ロギング情報の発生頻度(発生回数)の
カウントを行うため、これらのロギング情報が、どれく
らいの頻度で発生したかもわかり、障害時における原因
究明の促進につながる。(2) Since the occurrence frequency (occurrence number) of the multiple logging information is counted, it is possible to know how often these logging information occurred, and to promote the investigation of the cause at the time of failure.
第1図は本発明に係る発生頻度別ロギング情報格納方式
の原理図、 第2図は本発明の1実施例である、発生頻度別ロギング
情報格納方式のブロック図、 第3図は従来のロギング情報格納方式を示した図であ
る。 1……主制御部(CPU) 2……タスク処理部 3……ロギング情報判定部 4……一般ロギングスタックバッファ 5……ロギングファイル 6……多発性ロギングスタックバッファ 7……多発性ロギング情報制御部 8……ロギングマスクバッファFIG. 1 is a principle diagram of a logging information storage system according to occurrence frequency according to the present invention, FIG. 2 is a block diagram of a logging information storage system according to occurrence frequency according to an embodiment of the present invention, and FIG. It is the figure which showed the information storage system. 1 ... Main control unit (CPU) 2 ... Task processing unit 3 ... Logging information judgment unit 4 ... General logging stack buffer 5 ... Logging file 6 ... Multiple logging stack buffer 7 ... Multiple logging information control Part 8: Logging mask buffer
Claims (1)
と、 一般ロギングスタックバッファ(4)と、 多発性ロギングスタックバッファ(6)と、 多発性ロギング情報の制御を行う多発性ロギング情報制
御部(7)と、 多発性ロギング情報と、その発生頻度を登録するロギン
グマスクバッファ(8)と、 一般ロギング情報、及び多発性ロギング情報とその発生
頻度を格納するロギングファイル(5)とを備え、 ロギング情報判定部(3)から送出される一般ロギング
情報は、一旦、一般ロギングスタックバッファ(4)に
スタックし、その後ロギングファイル(5)へ転送して
格納し、 ロギング情報判定部(3)から送出される多発性ロギン
グ情報は、一旦、多発性ロギングスタックバッファ
(6)にスタックした後、多発性ロギング情報制御部
(7)によって、その発生頻度をカウントし、多発性ロ
ギング情報と、その発生頻度のデータをロギングマスク
バッファ(8)に登録し、 前記登録データを一定時間毎に読み出して一般ロギング
スタックバッファ(4)へ転送した後、ロギングファイ
ル(5)へ格納することを特徴とする 発生頻度別ロギング情報格納方式。1. A task processing unit (2) having a main control unit (1) and a logging information determination unit (3).
The general logging stack buffer (4), the multiple logging stack buffer (6), the multiple logging information control unit (7) for controlling the multiple logging information, the multiple logging information, and the frequency of occurrence thereof. The logging mask buffer (8) to be registered, the general logging information, and the logging file (5) storing the frequent logging information and the occurrence frequency thereof are provided, and the general logging information sent from the logging information determination unit (3) is , The temporary logging stack is temporarily stacked in the general logging stack buffer (4), then transferred to the logging file (5) and stored, and the multiple logging information sent from the logging information determination unit (3) is once recorded in the multiple logging stack. After stacking in the buffer (6), the occurrence frequency is counted by the multiple logging information control unit (7), The multiple logging information and the data of its occurrence frequency are registered in the logging mask buffer (8), the registered data is read out at regular intervals and transferred to the general logging stack buffer (4), and then to the logging file (5). A logging information storage method by occurrence frequency characterized by storing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1034847A JP2507579B2 (en) | 1989-02-14 | 1989-02-14 | Logging information storage method by occurrence frequency |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1034847A JP2507579B2 (en) | 1989-02-14 | 1989-02-14 | Logging information storage method by occurrence frequency |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02216549A JPH02216549A (en) | 1990-08-29 |
| JP2507579B2 true JP2507579B2 (en) | 1996-06-12 |
Family
ID=12425578
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1034847A Expired - Fee Related JP2507579B2 (en) | 1989-02-14 | 1989-02-14 | Logging information storage method by occurrence frequency |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2507579B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0512404A (en) * | 1991-06-28 | 1993-01-22 | Matsushita Graphic Commun Syst Inc | Electronic filing device |
-
1989
- 1989-02-14 JP JP1034847A patent/JP2507579B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02216549A (en) | 1990-08-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20070208918A1 (en) | Method and apparatus for providing virtual machine backup | |
| KR20000052371A (en) | Apparatus and method for detecting corruption associated with a stack in a storage device | |
| JP2507579B2 (en) | Logging information storage method by occurrence frequency | |
| EP0452080B1 (en) | System for controlling restoration from failure in a queue structure of control data | |
| JPH04373026A (en) | Program interrupting method | |
| JPH0594353A (en) | Database management system | |
| US20030033440A1 (en) | Method of logging message activity | |
| JPH0786841B2 (en) | Fault information logging method and data processing device | |
| US8289838B2 (en) | Data transfer in a messaging system | |
| JP3012737B2 (en) | Method of writing data to E2ROM | |
| US20250028599A1 (en) | Multiple error resiliency put operation with early confirmation | |
| JPS63305439A (en) | Compressive storing method for similar data file and its restoring method | |
| JPH10289140A (en) | Recovery method for batch processing failure | |
| JPS5873099A (en) | data processing equipment | |
| JPS59163663A (en) | Simple file destruction detection method | |
| JPH0259837A (en) | Data recovery processing system | |
| JP2518390B2 (en) | System performance monitoring method | |
| JP2689432B2 (en) | Message information forced confirmation method | |
| JPH0667909A (en) | Fault restoration system | |
| JPS6161419B2 (en) | ||
| JPH0713706A (en) | Auxiliary storage | |
| JPH0348946A (en) | Monitor system for system load state | |
| JPH0457135A (en) | Fault processing system for inter-task communication | |
| JPS63301337A (en) | Data file managing system | |
| JPH0312734B2 (en) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |