JP7073737B2 - Communication log recording device, communication log recording method, and communication log recording program - Google Patents

Communication log recording device, communication log recording method, and communication log recording program Download PDF

Info

Publication number
JP7073737B2
JP7073737B2 JP2018007465A JP2018007465A JP7073737B2 JP 7073737 B2 JP7073737 B2 JP 7073737B2 JP 2018007465 A JP2018007465 A JP 2018007465A JP 2018007465 A JP2018007465 A JP 2018007465A JP 7073737 B2 JP7073737 B2 JP 7073737B2
Authority
JP
Japan
Prior art keywords
log
storage means
reception
communication
temporary storage
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.)
Active
Application number
JP2018007465A
Other languages
Japanese (ja)
Other versions
JP2019125321A (en
Inventor
佑基 水野
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2018007465A priority Critical patent/JP7073737B2/en
Publication of JP2019125321A publication Critical patent/JP2019125321A/en
Application granted granted Critical
Publication of JP7073737B2 publication Critical patent/JP7073737B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

本発明は、通信ログ記録装置、通信ログ記録方法、および、通信ログ記録プログラム、特に、アプリケーションが発行した受信要求の順序と受信データを含む通信ログを効率的に記録する装置等に関する。 The present invention relates to a communication log recording device, a communication log recording method, and a communication log recording program, particularly a device for efficiently recording a communication log including the order of reception requests issued by an application and received data.

アプリケーションが発行した受信要求の順序と受信データを含む通信ログは、有用なデータであり、例えば、データ記録型再演法での利用に適している。 The communication log containing the order of the reception request issued by the application and the reception data is useful data, and is suitable for use in, for example, a data recording type replay method.

プログラムのデバッグは問題の状態を再現する必要がある。プロセス間で通信して処理を進めるプログラム、例えばメッセージパッシング型・分散並列プログラムは、プロセス間で通信して処理を進めるため、状態の再現に通信結果が必要となる。この問題の解決法の一つに、データ記録型再演法がある(非特許文献1)。これは、デバッグ対象プロセスが行った通信結果を記録し、デバッグ実行(再演)時は、通信の代わりに以前に記録した通信結果を参照する。これにより、実際の通信が不要となり、デバッグ対象プロセスのみの実行でデバッグが可能となる。 Program debugging needs to reproduce the state of the problem. A program that communicates between processes and proceeds with processing, for example, a message passing type / distributed parallel program, communicates between processes and proceeds with processing, so that a communication result is required to reproduce the state. One of the solutions to this problem is a data recording type replay method (Non-Patent Document 1). This records the communication result performed by the debuggee process, and when debugging is executed (replay), the previously recorded communication result is referred to instead of the communication. This eliminates the need for actual communication and enables debugging by executing only the process to be debugged.

特許文献1は、並列プログラムの実行再現方法を開示する。この方法は、モニタモードで実行中の並列プログラムが主記憶上の共有データにアクセスした記録を、主記憶上におかれたシステム履歴テープに書き込む。この方法は、再演モードにおいて、システム履歴テープに書き込まれている記録を用いて、並列プログラムの実行を再現する。 Patent Document 1 discloses an execution reproduction method of a parallel program. This method writes a record of access to shared data in main memory by a parallel program running in monitor mode to a system history tape in main memory. This method reproduces the execution of a parallel program using the records written on the system history tape in the replay mode.

特許文献2は、連続性があるとみなされた通信ログを一次保存領域にバッファリングしておき、バッファリング期間が満了すると、一次保存領域に保存されていた通信ログを二次保存領域に保存する情報処理装置を開示する。 In Patent Document 2, the communication log considered to be continuous is buffered in the primary storage area, and when the buffering period expires, the communication log stored in the primary storage area is stored in the secondary storage area. Disclose the information processing device to be processed.

特開平03-240137号公報Japanese Unexamined Patent Publication No. 03-240137 特開2011-060030号公報Japanese Unexamined Patent Publication No. 2011-060030

データ再演法による並列プログラムデバッギング 情報処理学会論文誌:コンピューティングシステム, Vol. 46, No. SIG 12 (ACS11),214-224ページ, 2005年8月.Parallel Program Debugging with Data Revival Method IPSJ Journal: Computing Systems, Vol. 46, No. SIG 12 (ACS11), pp. 214-224, August 2005.

データ受信を伴うプログラムのデータ記録型再演法に用いられるような通信ログは、受信データを含むため、データ量が多いという特徴がある。このような多くの通信ログを、特許文献1が開示するように主記憶上に置いておくことは出来ない。揮発性が問題となる場合もある。 Communication logs such as those used in the data recording type replay method of programs that involve data reception are characterized by a large amount of data because they include received data. Many such communication logs cannot be stored in the main memory as disclosed in Patent Document 1. Volatility can also be an issue.

一方、特許文献2が開示するように、通信ログを主記憶等の一次保存領域にバッファリングしておき、後で、当該通信ログをハードディスク等の二次保存領域に格納し直す場合は、この為の入出力が他の処理に悪影響を及ぼす可能性がある。すなわち他の処理が通信ログの入出力終了を待ち合わせる場合、この入出力は、当該他の処理の実行を遅延させる。非同期型入出力等により通信ログの入出力と当該他の処理を例列して実行した場合でも、この入出力は当該他の処理環境に以下のような悪影響を与える。 On the other hand, as disclosed in Patent Document 2, when the communication log is buffered in the primary storage area such as main memory and the communication log is later re-stored in the secondary storage area such as a hard disk, this is the case. Input / output for this may adversely affect other processing. That is, when another process waits for the end of input / output of the communication log, this input / output delays the execution of the other process. Even when the input / output of the communication log and the other processing are executed in a row by asynchronous input / output or the like, this input / output has the following adverse effects on the other processing environment.

問題(a) 再演されるプログラムが非同期型入出力を使用しない場合でも、DMA(Direct Memory Access)エンジンなどの特別なハードウェアが必要となる。 Problem (a) Special hardware such as a DMA (Direct Memory Access) engine is required even if the program being replayed does not use asynchronous I / O.

問題(b) 非同期型入出力処理のプロセス・スレッドの為の仕組みと資源が必要となる。 Problem (b) A mechanism and resources for the process thread of asynchronous I / O processing are required.

問題(c) 非同期型入出力処理のため、プログラムで利用できるCPU(Central Processing Unit)コアが減少する。
問題(d) 非同期型入出力処理のプロセス・スレッドとプログラムがCPUコアを共用する場合、コンテキストスイッチのオーバヘッドがかかる。また、計算中のプログラムと非同期型入出力処理が切り替わる場合、計算のCPUコア使用率が低下する
本発明は、通信ログを主記憶等にバッファリングしておき、後で当該通信ログをハードディスク等に格納し直す場合に、格納し直し時の入出力が他の処理に及ぼす影響を抑制できる通信ログ記録装置等を提供することを目的とする。
Problem (c) Due to asynchronous input / output processing, the number of CPU (Central Processing Unit) cores that can be used by the program decreases.
Problem (d) Context switch overhead occurs when a process thread and program for asynchronous I / O processing share a CPU core. In addition, when the program being calculated and asynchronous I / O processing are switched, the CPU core usage rate of the calculation decreases. In the present invention, the communication log is buffered in the main memory, etc., and the communication log is later stored in the hard disk, etc. It is an object of the present invention to provide a communication log recording device or the like that can suppress the influence of the input / output at the time of re-storing on other processes when re-storing.

本発明の一つの実施の形態の通信ログ記録装置は、ログ記憶手段と、前記ログ記憶手段より高速なログ一時記憶手段と、受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報を前記ログ一時記憶手段に格納するログ採取手段と、要求された送信または前記受信が開始された後、前記ログ一時記憶手段内に格納されている前記ログ情報をログ記憶手段に格納し直すログ保存手段と、を備える。 The communication log recording device according to the embodiment of the present invention has a log storage means, a log temporary storage means faster than the log storage means, and a log ID indicating the issuing order of the reception request when the reception request is received. The log collection means that starts generation and reception and stores the log information including the log ID and the read reception data in the log temporary storage means at the end of the reception, and the requested transmission or reception is started. After that, the log storage means for re-storing the log information stored in the log temporary storage means in the log storage means is provided.

本発明の一つの実施の形態の通信ログ記録方法は、受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報をログ記憶手段より高速なログ一時記憶手段に格納し、要求された送信または前記受信が開始された後、前記ログ一時記憶手段内に格納されている前記ログ情報をログ記憶手段に格納し直す。 In the communication log recording method of one embodiment of the present invention, when a reception request is received, a log ID indicating the issuing order of the reception request is generated and reception is started, and the log ID and the reception are read at the end of the reception. The log information including the received data is stored in the log temporary storage means faster than the log storage means, and the log information stored in the log temporary storage means after the requested transmission or the reception is started. Is stored back in the log storage means.

本発明の一つの実施の形態の通信ログ記録プログラムは、ログ記憶手段と、前記ログ記憶手段より高速なログ一時記憶手段と、を備えるコンピュータに、受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報を前記ログ一時記憶手段に格納するログ採取処理と、要求された送信または前記受信が開始された後、前記ログ一時記憶手段内に格納されている前記ログ情報をログ記憶手段に格納し直すログ保存処理と、を実行させる。 When a reception request is received by a computer including a log storage means and a log temporary storage means faster than the log storage means, the communication log recording program according to the embodiment of the present invention receives the reception request in the order of issuance of the reception request. The log collection process that generates the log ID indicating the above and starts reception, and stores the log information including the log ID and the read received data in the log temporary storage means at the end of the reception, and the requested transmission or After the reception is started, the log storage process of re-storing the log information stored in the log temporary storage means in the log storage means is executed.

本発明にかかる通信ログ記録装置等は、通信ログを主記憶等にバッファリングしておき、後で当該通信ログをハードディスク等に格納し直す場合に、格納し直しの為の入出力が、他の処理に及ぼす影響を抑制できる。 In the communication log recording device or the like according to the present invention, when the communication log is buffered in the main memory or the like and the communication log is later stored in the hard disk or the like, the input / output for re-storing is other. The effect on the processing of

図1は、第一の実施の形態にかかる通信ログ記録装置10の構成を示す図である。FIG. 1 is a diagram showing a configuration of a communication log recording device 10 according to the first embodiment. 図2は、ログ一時記憶部15、および、ログ記憶部13に格納される通信ログのデータ構造を示す図である。FIG. 2 is a diagram showing a data structure of a communication log stored in the log temporary storage unit 15 and the log storage unit 13. 図3は、受信要求記憶部16に格納されるテーブルのデータ構造を示す図である。FIG. 3 is a diagram showing a data structure of a table stored in the reception request storage unit 16. 図4は、コンピュータ装置60の構成を示す図である。FIG. 4 is a diagram showing the configuration of the computer device 60. 図5は、通信を要求されたときのログ採取部11の動作を表したフローチャートである。FIG. 5 is a flowchart showing the operation of the log collecting unit 11 when communication is requested. 図6は、非ブロッキング型通信の終了待ち合わせ要求を受けたときのログ採取部11の動作を表したフローチャートである。FIG. 6 is a flowchart showing the operation of the log collection unit 11 when a non-blocking communication end wait request is received. 図7は、ログ保存部12の動作を表したフローチャートである。FIG. 7 is a flowchart showing the operation of the log storage unit 12. 図8は、タイムラインで通信終了直後に当該通信の通信ログを保存した場合(A)と、通信ログ記録装置10の場合(B)との実行時間の差を表す図である。FIG. 8 is a diagram showing the difference in execution time between the case where the communication log of the communication is saved immediately after the end of the communication on the timeline (A) and the case of the communication log recording device 10 (B). 図9は、第二の実施の形態におけるログ一時記憶部15の構成を示す図である。FIG. 9 is a diagram showing the configuration of the log temporary storage unit 15 in the second embodiment. 図10は、第二の実施の形態のログ保存部12の動作を表したフローチャートである。FIG. 10 is a flowchart showing the operation of the log storage unit 12 of the second embodiment. 図11は、タイムラインで、本実施の形態にかかる通信ログ記録装置10の効果を表す図である。FIG. 11 is a timeline showing the effect of the communication log recording device 10 according to the present embodiment. 図12は、第三の実施の形態にかかる通信ログ記録装置10の構成を示す図である。FIG. 12 is a diagram showing the configuration of the communication log recording device 10 according to the third embodiment. 図13は、第四の実施の形態にかかる通信ログ記録装置10の構成を示す図である。FIG. 13 is a diagram showing the configuration of the communication log recording device 10 according to the fourth embodiment.

<第一の実施の形態>
<概要>
本実施の形態にかかる通信ログ記録装置10は、通信ログの記録をログの採取とログの保存の2つのフェーズに分ける。通信ログ記録装置10は、ログの採取フェーズでは、通信ログを採取して、高速な記録媒体、例えば半導体メモリ等のログ一時記憶部15に一時的に記録する。後続するログ保存フェーズにおいて、通信ログ記録装置10は、通信待ち時間中に通信ログを、ログ一時記憶部15からHDD(Hard Disk Drive)等のログ記憶部13に移動させる。
<First embodiment>
<Overview>
The communication log recording device 10 according to the present embodiment divides the recording of the communication log into two phases of collecting the log and saving the log. In the log collection phase, the communication log recording device 10 collects communication logs and temporarily records them in a high-speed recording medium, for example, a log temporary storage unit 15 such as a semiconductor memory. In the subsequent log storage phase, the communication log recording device 10 moves the communication log from the log temporary storage unit 15 to the log storage unit 13 such as an HDD (Hard Disk Drive) during the communication waiting time.

<構成>
図1は、本実施の形態にかかる通信ログ記録装置10の構成を示す図である。通信ログ記録装置10は、ログ採取部11、ログ保存部12、ログ記憶部13、通信カウンタ14、ログ一時記憶部15、受信要求記憶部16、通信処理部21、及び、通信待ち部22を備える。さらに、通信ログ記録装置10は、通信を要求する主体であるアプリケーション17を備えている。この主体は、プログラムであっても良いし、画像処理プロセッサのようなハードウェアであっても良い。
<Structure>
FIG. 1 is a diagram showing a configuration of a communication log recording device 10 according to the present embodiment. The communication log recording device 10 includes a log collecting unit 11, a log storage unit 12, a log storage unit 13, a communication counter 14, a log temporary storage unit 15, a reception request storage unit 16, a communication processing unit 21, and a communication waiting unit 22. Be prepared. Further, the communication log recording device 10 includes an application 17 which is a main body requesting communication. This subject may be a program or hardware such as an image processor.

ログ採取部11は上述したログの採取フェーズを実行する。すなわち、ログ採取部11は、アプリケーション17が要求した通信を実行して、通信ログを採取してログ一時記憶部15に一時的に記録する。ログ保存部12は上述したログの採取フェーズを実行する。すなわち、ログ保存部12は、通信待ち時間中に通信ログをログ一時記憶部15から読み出しで、ログ記憶部13に格納し直す。通信ログはログ記憶部13に蓄積されていく。 The log collection unit 11 executes the log collection phase described above. That is, the log collection unit 11 executes the communication requested by the application 17, collects the communication log, and temporarily records it in the log temporary storage unit 15. The log storage unit 12 executes the above-mentioned log collection phase. That is, the log storage unit 12 reads the communication log from the log temporary storage unit 15 during the communication waiting time and stores it in the log storage unit 13 again. The communication log is accumulated in the log storage unit 13.

通信カウンタ14は、アプリケーション17が要求した通信の順番を記録するカウンタである。初期値は1である。ログ採取部11は、アプリケーション17から通信の要求を受け付けると、ここから順番を取ってログID(Identification)を生成し、通信カウンタ14の値を1つ増加させる。 The communication counter 14 is a counter that records the order of communication requested by the application 17. The initial value is 1. When the log collection unit 11 receives a communication request from the application 17, the log ID (Identification) is generated in order from this, and the value of the communication counter 14 is incremented by one.

通信処理部21は通信を開始し、通信待ち部22は通信の終了を待ち合わせる。ここでいう通信は、例えばプロセス間通信であるが、ディスク装置への入出力や、通信網を経由した遠隔装置と通信であっても良い。受信要求記憶部16は、非ブロッキング型、すなわち非同期型の通信を実行した時に、終了した通信のログIDを得る為のテーブルを記憶する。 The communication processing unit 21 starts communication, and the communication waiting unit 22 waits for the end of communication. The communication referred to here is, for example, interprocess communication, but may be input / output to a disk device or communication with a remote device via a communication network. The reception request storage unit 16 stores a table for obtaining the log ID of the completed communication when the non-blocking type, that is, the asynchronous type communication is executed.

図2は、ログ一時記憶部15、および、ログ記憶部13に格納される通信ログのデータ構造を示す図である。通信ログは、アプリケーション17が、通信を要求する都度取得されて、図2におけるテーブルの1行に格納される。通信ログは、ログID,通信手続、実行結果、受信データ、及び、終了フラグの各データ項目を包含する。 FIG. 2 is a diagram showing a data structure of a communication log stored in the log temporary storage unit 15 and the log storage unit 13. The communication log is acquired each time the application 17 requests communication, and is stored in one row of the table in FIG. The communication log includes each data item of log ID, communication procedure, execution result, received data, and end flag.

ログIDは、アプリケーション17が要求した通信の順番を表す。ログIDは、他の情報、例えば、アプリケーション17の識別子やプロセスの識別子を含んでいても良い。受信データは、当該要求で受信したデータの内容を表す。ログIDは、例えば、アプリケーション17の再演時に、通信要求に対して正しい受信データを出力する為に使うことが出来る。すなわち、再演を実行するシステムは、n(nは整数)番目に発行された通信要求が受信要求である場合、n番目を示すログIDを持つ通信ログの受信データを、アプリケーション17に出力すれば良い。 The log ID represents the order of communication requested by the application 17. The log ID may include other information, such as an application 17 identifier or a process identifier. The received data represents the content of the data received in the request. The log ID can be used, for example, to output correct received data in response to a communication request when the application 17 is replayed. That is, if the system that executes the replay is the nth (n is an integer) communication request is a reception request, the system may output the reception data of the communication log having the log ID indicating the nth to the application 17. good.

通信手続は当該要求の種別を示す。通信手続は、受信/送信の区別、同期型通信/非同期型通信の区別を示す。なお、同期型入出力/非同期型入出力は、ブロッキング/非ブロッキングと称されるときもある。実行結果は、通信が正常に終了したか否かを示す。 The communication procedure indicates the type of the request. The communication procedure indicates the distinction between reception / transmission and the distinction between synchronous communication / asynchronous communication. Synchronous input / output / asynchronous input / output may be referred to as blocking / non-blocking. The execution result indicates whether or not the communication has ended normally.

終了フラグはログ一時記憶部15内の通信ログだけが有し、通信要求の受信/送信が終了したか否かを示す。なお、終了フラグは初期値が0で通信実行中を示し、通信が終了すると1になる。ログ保存部12は、受信/送信が終了している通信要求の通信ログを、ログ一時記憶部15からログ記憶部13に格納し直す。ログ保存部12は、通信ログをログ一時記憶部15からログ記憶部13に格納し直すとき、終了フラグを取り除く。 The end flag is held only in the communication log in the log temporary storage unit 15, and indicates whether or not the reception / transmission of the communication request has been completed. The end flag has an initial value of 0, indicating that communication is being executed, and becomes 1 when communication ends. The log storage unit 12 re-stores the communication log of the communication request for which reception / transmission has been completed from the log temporary storage unit 15 to the log storage unit 13. The log storage unit 12 removes the end flag when the communication log is re-stored in the log storage unit 13 from the log temporary storage unit 15.

なお、再演時等に不要であれば、通信ログは、通信手続、または実行結果を包含しなくても良い。例えば、通信結果は常に正常であるとして、再演が実施される場合である。また、再演時に送信結果を気にしない、例えば、常に正常終了として再演するのであれば、通信ログは受信についてだけ取得しても良い。 If it is not necessary at the time of replay, the communication log does not have to include the communication procedure or the execution result. For example, when the communication result is always normal and the replay is performed. Further, if the transmission result is not a concern at the time of replay, for example, if the replay is always performed as a normal end, the communication log may be acquired only for reception.

図3は、受信要求記憶部16に格納されるテーブルのデータ構造を示す図である。このテーブルは、実行中の非ブロッキング型の通信要求について、受信要求IDとログIDの関連付けを記憶する。受信要求IDは、アプリケーション17が発した通信要求の識別子である。受信要求IDは、実行中の非ブロッキング型の通信を識別できる情報であれば何でもよい。受信要求IDは、例えば実行中の非ブロッキング型通信を管理する為の制御情報格変数のアドレスや配列要素の添え字変数値である。 FIG. 3 is a diagram showing a data structure of a table stored in the reception request storage unit 16. This table stores the association between the receive request ID and the log ID for the non-blocking type communication request being executed. The reception request ID is an identifier of the communication request issued by the application 17. The reception request ID may be any information that can identify the non-blocking type communication being executed. The reception request ID is, for example, the address of the control information case variable for managing the non-blocking type communication during execution or the subscript variable value of the array element.

ここで、通信ログ記録装置10のログ採取部11、ログ保存部12、通信処理部21、及び、通信待ち部22は、論理回路、または、専用プロセッサとファームウェアで構成される。ログ記憶部13は、HDD、または、SDD(Solid State Drive)等の記憶装置である。通信カウンタ14、ログ一時記憶部15、および、受信要求記憶部16は、半導体記憶装置である。 Here, the log collection unit 11, the log storage unit 12, the communication processing unit 21, and the communication waiting unit 22 of the communication log recording device 10 are composed of a logic circuit or a dedicated processor and firmware. The log storage unit 13 is a storage device such as an HDD or an SDD (Solid State Drive). The communication counter 14, the log temporary storage unit 15, and the reception request storage unit 16 are semiconductor storage devices.

通信ログ記録装置10は、コンピュータ装置60で構成されても良い。図4は、コンピュータ装置60の構成を示す図である。コンピュータ装置60は、バス64で相互に接続された、プロセッサ61、主記憶装置63、及び、外部記憶装置62を備える。 The communication log recording device 10 may be composed of a computer device 60. FIG. 4 is a diagram showing the configuration of the computer device 60. The computer device 60 includes a processor 61, a main storage device 63, and an external storage device 62, which are interconnected by a bus 64.

プロセッサ61は、バス64を経由して、主記憶装置63、及び、外部記憶装置62に対してデータの読み書きを行う。また、プロセッサ61は、主記憶装置63に格納されている通信ログ記録プログラム65を実行する。なお、通信ログ記録プログラム65は、当初は外部記憶装置62に格納されており、コンピュータ装置60の初期設定時にプロセッサ61が外部記憶装置62から主記憶装置63にロードしても良い。 The processor 61 reads / writes data to / from the main storage device 63 and the external storage device 62 via the bus 64. Further, the processor 61 executes the communication log recording program 65 stored in the main storage device 63. The communication log recording program 65 is initially stored in the external storage device 62, and the processor 61 may load the communication log recording program 65 from the external storage device 62 to the main storage device 63 at the time of initial setting of the computer device 60.

ここで、主記憶装置63は半導体記憶装置である。外部記憶装置62は、HDD、または、SDD等の記憶装置である。 Here, the main storage device 63 is a semiconductor storage device. The external storage device 62 is a storage device such as an HDD or an SDD.

コンピュータ装置60のプロセッサ61は、通信ログ記録プログラム65を実行することにより、ログ採取部11、ログ保存部12、通信処理部21、及び、通信待ち部22として機能する。すなわち、プロセッサ61は、通信ログ記録プログラム65を実行することにより、ログ採取部11、ログ保存部12、通信処理部21、及び、通信待ち部22が行う処理を実行する。 By executing the communication log recording program 65, the processor 61 of the computer device 60 functions as a log collection unit 11, a log storage unit 12, a communication processing unit 21, and a communication waiting unit 22. That is, by executing the communication log recording program 65, the processor 61 executes the processing performed by the log collection unit 11, the log storage unit 12, the communication processing unit 21, and the communication waiting unit 22.

主記憶装置63は、通信カウンタ14、ログ一時記憶部15、および、受信要求記憶部16として使用される。外部記憶装置62は、ログ記憶部13として使用される。 The main storage device 63 is used as a communication counter 14, a log temporary storage unit 15, and a reception request storage unit 16. The external storage device 62 is used as the log storage unit 13.

<動作>
図5は、通信を要求されたときのログ採取部11の動作を表したフローチャートである。
<Operation>
FIG. 5 is a flowchart showing the operation of the log collecting unit 11 when communication is requested.

ログ採取部11は、アプリケーション17が通信を要求したときに起動される。起動されるとログ採取部11は、通信処理部21に依頼して通信を開始させる(S11)。その後、ログ採取部11は通信カウンタ14を参照してログIDを生成し(S12)、ログ一時記憶部15の空いている行にログID、通信手続、実行結果、及び、終了フラグを格納する(S13)。ここで、実行結果は、例えば通信処理部21から報告された値が設定される。終了フラグには、0が設定される。 The log collection unit 11 is started when the application 17 requests communication. When started, the log collection unit 11 requests the communication processing unit 21 to start communication (S11). After that, the log collection unit 11 generates a log ID by referring to the communication counter 14 (S12), and stores the log ID, communication procedure, execution result, and end flag in an empty line of the log temporary storage unit 15. (S13). Here, for the execution result, for example, the value reported by the communication processing unit 21 is set. The end flag is set to 0.

その後、ログ採取部11はログ保存部12に依頼して、ログ一時記憶部15に終了フラグが1で未保存の通信ログが有れば、その通信ログをログ記憶部13に格納し直す(S14)。ここで格納し直されるのは、過去に実行した通信についての通信ログである。図7は、この動作フローチャートであり、後述する。 After that, the log collection unit 11 requests the log storage unit 12, and if the log temporary storage unit 15 has an unsaved communication log with an end flag of 1, the communication log is stored again in the log storage unit 13 ( S14). What is stored again here is the communication log for the communication executed in the past. FIG. 7 is a flowchart of this operation, which will be described later.

開始した通信がブロッキング型通信の場合(S15でYES)、ログ採取部11は通信の終了を通信待ち部22で待ち合わせ、S14で格納した通信ログの終了フラグを1にして、通信待ち部22から得られた実行結果をログ一時記憶部15に格納する(S17)。受信の場合、ログ採取部11は、通信待ち部22から得られた受信データもログ一時記憶部15に格納する。その後、ログ採取部11は処理を了する。 When the started communication is blocking type communication (YES in S15), the log collection unit 11 waits for the end of communication in the communication waiting unit 22, sets the end flag of the communication log stored in S14 to 1, and starts from the communication waiting unit 22. The obtained execution result is stored in the log temporary storage unit 15 (S17). In the case of reception, the log collecting unit 11 also stores the received data obtained from the communication waiting unit 22 in the log temporary storage unit 15. After that, the log collection unit 11 finishes the process.

開始した通信が非ブロッキング型通信の場合(S15でNO、S16でYES)、ログ採取部11は受信要求記憶部16の空いている行に受信要求IDとログIDを格納する(S18)。その後、ログ採取部11は処理を了する。 When the started communication is non-blocking communication (NO in S15, YES in S16), the log collection unit 11 stores the reception request ID and the log ID in an empty line of the reception request storage unit 16 (S18). After that, the log collection unit 11 finishes the process.

開始した通信がその他、例えば送信で場合(S15でNO、S16でNO)、ログ採取部11は処理を了する。 If the started communication is other, for example, transmission (NO in S15, NO in S16), the log collection unit 11 ends the process.

図6は、非ブロッキング型通信の終了待ち合わせ要求を受けたときのログ採取部11の動作を表したフローチャートである。 FIG. 6 is a flowchart showing the operation of the log collection unit 11 when a non-blocking communication end wait request is received.

アプリケーション17が非ブロッキング型通信の終了待ち合わせ要求を要求したときに起動されて、ログ採取部11は、入力された受信要求IDで指定された通信の終了を通信待ち部22で待ち合わせる(S21)。指定された通信が終了すると、ログ採取部11は受信要求記憶部16を検索して、受信要求IDが指定された受信要求IDと一致する行からログIDを取得する(S22)。 It is started when the application 17 requests the end wait request for non-blocking communication, and the log collection unit 11 waits for the end of the communication specified by the input reception request ID in the communication waiting unit 22 (S21). When the designated communication is completed, the log collection unit 11 searches the reception request storage unit 16 and acquires the log ID from the line whose reception request ID matches the specified reception request ID (S22).

次いで、ログ採取部11はログ一時記憶部15を検索して、ログIDが前ステップで取得したログIDと一致する通信ログにアクセスして、終了フラグを1にセットし、通信待ち部22から得られた実行結果を格納する(S23)。受信の場合、ログ採取部11は、通信待ち部22から得られた受信データも当該通信ログに格納する。その後、ログ採取部11は、受信要求記憶部16からS22でアクセスした行のデータを削除して(S24)、処理を終了する。 Next, the log collection unit 11 searches the log temporary storage unit 15, accesses the communication log whose log ID matches the log ID acquired in the previous step, sets the end flag to 1, and starts from the communication waiting unit 22. The obtained execution result is stored (S23). In the case of reception, the log collecting unit 11 also stores the received data obtained from the communication waiting unit 22 in the communication log. After that, the log collection unit 11 deletes the data of the line accessed in S22 from the reception request storage unit 16 (S24), and ends the process.

なお、ログ採取部11は非ブロッキング型通信の終了同期をとるインターフェースとして、終了待ち合わせ要求以外に終了確認要求をアプリケーション17に提供しても良い。終了確認を要求された場合、ログ採取部11はS21の代わりに、通信の終了をチェックして終了していればS22以降のステップを実行し、終了していなければその旨をアプリケーション17に報告すれば良い。 The log collection unit 11 may provide the application 17 with an end confirmation request in addition to the end wait request as an interface for synchronizing the end of non-blocking communication. When the end confirmation is requested, the log collection unit 11 checks the end of communication instead of S21, executes the steps after S22 if it ends, and reports to the application 17 if it does not end. Just do it.

図7は、ログ保存部12の動作を表したフローチャートである。このフローチャートは、図5におけるS14の処理を詳しく説明したものである。 FIG. 7 is a flowchart showing the operation of the log storage unit 12. This flowchart illustrates the process of S14 in FIG. 5 in detail.

ログ採取部11から起動されたログ保存部12は、実行中の通信が有り、かつ、終了フラグが1の通信ログがログ一時記憶部15に有る場合(S31でYES)、ログ一時記憶部15から終了フラグが1の通信ログを読み出してログ記憶部13に保存する(S32、S33)。すなわち、ログ保存部12は、終了フラグが1の通信ログを、ログ一時記憶部15からログ記憶部13に格納し直す。その後、ログ保存部12は、ログ記憶部13に保存し終えた通信ログをログ一時記憶部15から削除して(S34)、S31に戻る。 When the log storage unit 12 started from the log collection unit 11 has a communication being executed and a communication log having an end flag of 1 exists in the log temporary storage unit 15 (YES in S31), the log temporary storage unit 15 The communication log whose end flag is 1 is read from and stored in the log storage unit 13 (S32, S33). That is, the log storage unit 12 re-stores the communication log whose end flag is 1 from the log temporary storage unit 15 to the log storage unit 13. After that, the log storage unit 12 deletes the communication log that has been stored in the log storage unit 13 from the log temporary storage unit 15 (S34), and returns to S31.

ログ保存部12は、実行中の通信が無い、または、終了フラグが1の通信ログがログ一時記憶部15に無い場合(S31でNO)、処理を終了してログ採取部11を再開する。 If there is no running communication or there is no communication log with the end flag 1 in the log temporary storage unit 15 (NO in S31), the log storage unit 12 ends the process and restarts the log collection unit 11.

<効果>
本実施の形態にかかる通信ログ記録装置10は、通信ログを主記憶等のログ一時記憶部15にバッファリングしておき、後で当該通信ログをHDD等のログ記憶部13に格納し直す場合、格納し直しの為の入出力が他の処理に及ぼす影響を抑制できる。その理由は、ログ保存部12が通信の実行中に、ログ一時記憶部15に記憶されている通信ログをログ記憶部13に格納し直すからである。
<Effect>
When the communication log recording device 10 according to the present embodiment buffers the communication log in the log temporary storage unit 15 such as main storage and later stores the communication log in the log storage unit 13 such as an HDD. , The influence of input / output for re-storing on other processing can be suppressed. The reason is that the communication log stored in the log temporary storage unit 15 is re-stored in the log storage unit 13 while the log storage unit 12 is executing the communication.

通信待ち時間を、通信ログのログ一時記憶部15からログ記憶部13への格納し直しに利用することで、通信ログ記録装置10は、非同期型入出力を用いることなく、また、計算に使用するCPU資源を減らすことなく、通信ログの移動に伴う実行時間の増大を低減できる。 By using the communication waiting time for re-storing the communication log from the log temporary storage unit 15 to the log storage unit 13, the communication log recording device 10 is used for calculation without using asynchronous input / output. It is possible to reduce the increase in execution time due to the movement of communication logs without reducing the CPU resources required.

図8は、タイムラインで通信終了直後に当該通信の通信ログを保存した場合(図中のA)と、本実施の形態にかかる通信ログ記録装置10の場合(図中のB)との実行時間の差を表している。本実施の形態にかかる通信ログ記録装置10は、例えば、通信aの通信ログの格納し直しを通信aの終了後に行うのではなく、次の通信bの実行中に並行して行うようにタイミングを変更している(図中の矢印)。これにより、通信ログ記録装置10は、通信aの通信ログの格納し直しを同期型の入出力で行った場合に発生するアプリケーション17の計算の遅延を防ぐ。また、通信ログ記録装置10は、通信aの通信ログの格納し直しを非同期型の入出力で行った場合に当該入出力が与える、アプリケーション17の計算への影響(コンテキスト変更のオーバヘッド等)を防ぐことが出来る。 FIG. 8 shows execution when the communication log of the communication is saved immediately after the end of the communication on the timeline (A in the figure) and in the case of the communication log recording device 10 according to the present embodiment (B in the figure). It represents the difference in time. The communication log recording device 10 according to the present embodiment is timed so that, for example, the communication log of the communication a is not re-stored after the end of the communication a, but is performed in parallel during the execution of the next communication b. Is changed (arrow in the figure). As a result, the communication log recording device 10 prevents the delay in the calculation of the application 17 that occurs when the communication log of the communication a is re-stored by the synchronous input / output. Further, the communication log recording device 10 has an influence on the calculation of the application 17 (overhead of context change, etc.) that the input / output has when the communication log of the communication a is re-stored by the asynchronous input / output. It can be prevented.

<第二の実施形態>
<構成と動作>
本実施の形態の通信ログ記録装置10は、汎用OS(Operating System)を備え、複数のプロセスを並行して実行する。ログ採取部11、ログ保存部12、アプリケーション17、通信処理部21、および、通信待ち部22はプロセスにより起動される。本実施の形態の通信ログ記録装置10は、ログ記憶部13、通信カウンタ14、ログ一時記憶部15、及び、受信要求記憶部16をプロセスごとに備えている。但し、ログ記憶部13、及び、ログ一時記憶部15は、別のプロセスからもアクセス可能となっている。
<Second embodiment>
<Configuration and operation>
The communication log recording device 10 of the present embodiment includes a general-purpose OS (Operating System) and executes a plurality of processes in parallel. The log collection unit 11, the log storage unit 12, the application 17, the communication processing unit 21, and the communication waiting unit 22 are started by a process. The communication log recording device 10 of the present embodiment includes a log storage unit 13, a communication counter 14, a log temporary storage unit 15, and a reception request storage unit 16 for each process. However, the log storage unit 13 and the log temporary storage unit 15 can also be accessed from another process.

図9は、本実施の形態におけるログ一時記憶部15の構成を示す図である。各プロセスのログ一時記憶部15は、通信ログ記録装置10のプロセス間共用メモリ上に配置されている。プロセスごとのログ一時記憶部15は、第一の実施形態のものと同じである。 FIG. 9 is a diagram showing the configuration of the log temporary storage unit 15 in the present embodiment. The log temporary storage unit 15 for each process is arranged on the interprocess shared memory of the communication log recording device 10. The log temporary storage unit 15 for each process is the same as that of the first embodiment.

ログ採取部11は、プロセスごとに、起動されたプロセス(自プロセスともいう)の通信を反映した通信ログを、自プロセスに設けられたログ一時記憶部15に格納していく。ログ保存部12は、自プロセスに設けられたログ一時記憶部15の通信ログを、自プロセスに設けられたログ記憶部13に格納し直していく。但し、自プロセスに設けられたログ一時記憶部15に終了フラグが1の通信ログが存在しないと、自プロセス以外のプロセス(他プロセスともいう)に設けられたログ一時記憶部15の通信ログを、他プロセスに設けられたログ記憶部13に格納し直していく。 The log collection unit 11 stores the communication log reflecting the communication of the started process (also referred to as the own process) for each process in the log temporary storage unit 15 provided in the own process. The log storage unit 12 re-stores the communication log of the log temporary storage unit 15 provided in the own process in the log storage unit 13 provided in the own process. However, if the communication log with the end flag 1 does not exist in the log temporary storage unit 15 provided in the own process, the communication log of the log temporary storage unit 15 provided in the process other than the own process (also referred to as another process) is used. , It is stored again in the log storage unit 13 provided in another process.

図10は、本実施の形態のログ保存部12の動作を表したフローチャートである。プロセスに起動されているログ採取部11から起動されるとログ保存部12は、先ず次プロセスが開始して、実行中、すなわちまだ終了していない通信が有るかをチェックし、無ければ(S41でNO)処理を終了する。 FIG. 10 is a flowchart showing the operation of the log storage unit 12 of the present embodiment. When started from the log collection unit 11 started by the process, the log storage unit 12 first starts the next process and checks whether there is any communication that is being executed, that is, if there is communication that has not been completed yet (S41). NO) Ends the process.

実行中の通信が有れば(S41でYES)、ログ保存部12は、終了フラグが1の通信ログが自プロセスのログ一時記憶部15に有るかをチェックする。有れば(S42でYES)、ログ保存部12は自プロセスに設けられたログ一時記憶部15の通信ログを、自プロセスに設けられたログ記憶部13に格納し直して、当該通信ログをログ一時記憶部15から削除し(S43乃至S45)、S41に戻る。 If there is a communication being executed (YES in S41), the log storage unit 12 checks whether the communication log having the end flag of 1 exists in the log temporary storage unit 15 of the own process. If there is (YES in S42), the log storage unit 12 re-stores the communication log of the log temporary storage unit 15 provided in the own process in the log storage unit 13 provided in the own process, and stores the communication log. Delete from the log temporary storage unit 15 (S43 to S45), and return to S41.

無ければ(S42でNO)、ログ保存部12は、終了フラグが1の通信ログが他プロセスのログ一時記憶部15に有るかをチェックする。有れば(S46でYES)、ログ保存部12は当該他プロセスに設けられたログ一時記憶部15の通信ログを、当該他プロセスに設けられたログ記憶部13に格納し直して、当該通信ログをログ一時記憶部15から削除し(S47乃至S49)、S41に戻る。 If not (NO in S42), the log storage unit 12 checks whether the communication log having the end flag of 1 exists in the log temporary storage unit 15 of another process. If there is (YES in S46), the log storage unit 12 re-stores the communication log of the log temporary storage unit 15 provided in the other process in the log storage unit 13 provided in the other process, and performs the communication. The log is deleted from the log temporary storage unit 15 (S47 to S49), and the process returns to S41.

<効果>
本実施の形態の通信ログ記録装置10は、或るプロセスの通信待ち時間を、別のプロセスの通信ログのログ一時記憶部15からログ記憶部13への格納し直しに利用することで、前述した効果を奏することが出来る。その理由は、ログ保存部12が他プロセスに設けられたログ一時記憶部15の通信ログを、他プロセスに設けられたログ記憶部13に格納し直していくからである。
<Effect>
The communication log recording device 10 of the present embodiment uses the communication waiting time of a certain process for re-storing the communication log of another process from the log temporary storage unit 15 to the log storage unit 13, as described above. Can produce the desired effect. The reason is that the log storage unit 12 re-stores the communication log of the log temporary storage unit 15 provided in the other process in the log storage unit 13 provided in the other process.

図11は、タイムラインで、本実施の形態にかかる通信ログ記録装置10の効果を表している。図中、プロセスAが実行した通信aの通信ログがログ一時記憶部15に取得され、後続する通信bで通信待ちが発生しないとする。この場合、第一の実施の形態の通信ログ記録装置10において、通信aの通信ログは、プロセスAのログ一時記憶部15に長時間放置されることになる。最悪の場合、プロセスAの終了処理でログ記憶部13に格納し直しが発生し、終了処理が遅延する。 FIG. 11 is a timeline showing the effect of the communication log recording device 10 according to the present embodiment. In the figure, it is assumed that the communication log of the communication a executed by the process A is acquired by the log temporary storage unit 15, and the communication wait does not occur in the subsequent communication b. In this case, in the communication log recording device 10 of the first embodiment, the communication log of the communication a is left in the log temporary storage unit 15 of the process A for a long time. In the worst case, the log storage unit 13 is re-stored in the process A termination process, and the termination process is delayed.

本実施の形態の通信ログ記録装置10においては、プロセスAの通信aの通信ログは、他のプロセスBの通信dの通信待ち時間を利用して、プロセスAのログ一時記憶部15からログ記憶部13に格納し直される。これにより、上述の処理遅延が防止できる。 In the communication log recording device 10 of the present embodiment, the communication log of the communication a of the process A is stored as a log from the log temporary storage unit 15 of the process A by using the communication waiting time of the communication d of the other process B. It is stored back in the unit 13. As a result, the above-mentioned processing delay can be prevented.

<第三の実施形態>
受信データが非常に大きい場合、通信ログをログ一時記憶部15からログ記憶部13へ格納し直す時間が通信の実行時間よりも長くなる場合がある。この場合、超過時間分だけ、アプリケーション17の処理が遅延することになる。これを防止する為、本実施の形態の通信ログ記録装置10は、通信ログの格納し直しを通信ログ単位でなく、複数の区画に分割して実施する。
<Third embodiment>
When the received data is very large, the time for re-storing the communication log from the log temporary storage unit 15 to the log storage unit 13 may be longer than the communication execution time. In this case, the processing of the application 17 is delayed by the excess time. In order to prevent this, the communication log recording device 10 of the present embodiment divides the storage of the communication log into a plurality of sections instead of the communication log unit.

図12は、本実施の形態にかかる通信ログ記録装置10の構成を示す図である。本実施の形態にかかる通信ログ記録装置10は、第一の実施の形態の通信ログ記録装置10の構成に加え、保存情報記憶部18を備える。保存情報記憶部18は、所定サイズに分割したどの区画までが、ログ一時記憶部15からログ記憶部13に格納し直されたか、すなわち保存済みにされたかを示す保存情報を記憶する。 FIG. 12 is a diagram showing the configuration of the communication log recording device 10 according to the present embodiment. The communication log recording device 10 according to the present embodiment includes a storage information storage unit 18 in addition to the configuration of the communication log recording device 10 according to the first embodiment. The storage information storage unit 18 stores storage information indicating which section divided into predetermined sizes has been re-stored in the log storage unit 13 from the log temporary storage unit 15, that is, saved information.

通信ログのサイズが所定バイト数以上であることを検出すると、ログ保存部12は、通信ログを所定サイズの区画に分割し、通信の実行終了待ちが発生するたびに先頭から順次、1区画ずつをログ一時記憶部15からログ記憶部13へ格納し直していく。その過程でログ保存部12は、通信ログのどの区画までを格納し直したか、すなわち保存済みにしたかを保存情報記憶部18に記録しておく。ログ保存部12は通信の実行終了待ちが発生するたびに、保存情報記憶部18が示す次の区画をログ一時記憶部15からログ記憶部13へ格納し直す。ログ保存部12はこの動作を全区画の格納し直しが終了する迄繰り返し、終了した後ログ一時記憶部15から当該通信ログを削除する。 When it detects that the size of the communication log is equal to or larger than the predetermined number of bytes, the log storage unit 12 divides the communication log into sections of a predetermined size, and each time a waiting for the end of communication execution occurs, the log storage unit 12 sequentially starts from the beginning one section at a time. Is stored again in the log storage unit 13 from the log temporary storage unit 15. In the process, the log storage unit 12 records in the storage information storage unit 18 which section of the communication log has been re-stored, that is, whether the communication log has been stored. The log storage unit 12 re-stores the next section indicated by the storage information storage unit 18 from the log temporary storage unit 15 to the log storage unit 13 each time a communication execution end wait occurs. The log storage unit 12 repeats this operation until the re-storing of all the sections is completed, and then deletes the communication log from the log temporary storage unit 15.

<第四の実施形態>
図13は、本実施の形態にかかる通信ログ記録装置10の構成を示す図である。本実施の形態にかかる通信ログ記録装置10は、ログ記憶部13と、ログ記憶部13より高速なログ一時記憶部15と、ログ採取部11と、ログ保存部12と、を備える。
<Fourth Embodiment>
FIG. 13 is a diagram showing the configuration of the communication log recording device 10 according to the present embodiment. The communication log recording device 10 according to the present embodiment includes a log storage unit 13, a log temporary storage unit 15 faster than the log storage unit 13, a log collection unit 11, and a log storage unit 12.

ログ採取部11は、受信要求を受け付けると、受信要求の発行順を示すログIDの生成と受信の開始を行い、受信の終了時にログIDと読み込んだ受信データとを含むログ情報をログ一時記憶部15に格納する。ログ保存部12は、要求された送信または受信が開始された後、ログ一時記憶部15内に格納されているログ情報をログ記憶部13に格納し直す。 When the log collection unit 11 receives the reception request, it generates a log ID indicating the order in which the reception request is issued and starts reception, and temporarily stores the log information including the log ID and the read reception data at the end of reception. Store in unit 15. After the requested transmission or reception is started, the log storage unit 12 re-stores the log information stored in the log temporary storage unit 15 in the log storage unit 13.

本実施の形態にかかる通信ログ記録装置10は、通信ログを主記憶等のログ一時記憶部15にバッファリングしておき、後で当該通信ログをHDD等のログ記憶部13に格納し直す場合、格納し直しの為の入出力が他の処理に及ぼす影響を抑制できる。その理由は、ログ保存部12が通信の実行中に、ログ一時記憶部15に記憶されている通信ログをログ記憶部13に格納し直すからである。 When the communication log recording device 10 according to the present embodiment buffers the communication log in the log temporary storage unit 15 such as main storage and later stores the communication log in the log storage unit 13 such as an HDD. , The influence of input / output for re-storing on other processing can be suppressed. The reason is that the communication log stored in the log temporary storage unit 15 is re-stored in the log storage unit 13 while the log storage unit 12 is executing the communication.

以上、実施形態を参照して本発明を説明したが、本発明は上記実施形態に限定されるものではない。本発明の構成や詳細には、本発明のスコープ内で当業者が理解し得る様々な変更をすることができる。 Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above embodiments. Various modifications that can be understood by those skilled in the art can be made to the structure and details of the present invention within the scope of the present invention.

10 通信ログ記録装置
11 ログ採取部
12 ログ保存部
13 ログ記憶部
14 通信カウンタ
15 ログ一時記憶部
16 受信要求記憶部
17 アプリケーション
18 保存情報記憶部
21 通信処理部
22 通信待ち部
60 コンピュータ装置
61 プロセッサ
62 外部記憶装置
63 主記憶装置
64 バス
65 通信ログ記録プログラム
10 Communication log recording device 11 Log collection unit 12 Log storage unit 13 Log storage unit 14 Communication counter 15 Log temporary storage unit 16 Reception request storage unit 17 Application 18 Storage information storage unit 21 Communication processing unit 22 Communication waiting unit 60 Computer device 61 Processor 62 External storage device 63 Main storage device 64 Bus 65 Communication log recording program

Claims (10)

ログ記憶手段と、
前記ログ記憶手段より高速なログ一時記憶手段と、
受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報を前記ログ一時記憶手段に格納するログ採取手段と、
要求された送信または前記受信が開始された後、実行中の通信が有り、かつ、前記ログ一時記憶手段内に通信が終了した通信ログが有る場合に、前記通信が終了した通信ログの前記ログ情報を前記ログ記憶手段に格納し直すログ保存手段と、を備える通信ログ記録装置。
Log storage means and
A log temporary storage means faster than the log storage means,
When the reception request is received, a log ID indicating the issuing order of the reception request is generated and reception is started, and at the end of the reception, the log information including the log ID and the read reception data is stored in the log temporary storage means. Log collection means to store and
If there is communication in progress after the requested transmission or reception is started, and there is a communication log for which communication has ended in the log temporary storage means, the log of the communication log for which communication has ended. A communication log recording device including a log storage means for re-storing information in the log storage means.
ログ記憶手段と、
前記ログ記憶手段より高速なログ一時記憶手段と、
受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報を前記ログ一時記憶手段に格納するログ採取手段と、
要求された送信または前記受信が開始された後、前記ログ一時記憶手段内に格納されている前記ログ情報を前記ログ記憶手段に格納し直すログ保存手段と、を備え、
前記ログ採取手段は、同期型の前記受信要求を受け付けると、前記ログIDの生成と前記受信の開始を行い、前記受信の終了待ち合わせ後に、生成した前記ログIDと前記受信データを含む前記ログ情報を前記ログ一時記憶手段に格納す
通信ログ記録装置。
Log storage means and
A log temporary storage means faster than the log storage means,
When the reception request is received, a log ID indicating the issuing order of the reception request is generated and reception is started, and at the end of the reception, the log information including the log ID and the read reception data is stored in the log temporary storage means. Log collection means to store and
A log storage means for re-storing the log information stored in the log temporary storage means in the log storage means after the requested transmission or reception is started is provided.
When the log collecting means receives the synchronous reception request, the log ID is generated and the reception is started, and after waiting for the end of the reception, the log information including the generated log ID and the reception data is included. Is stored in the log temporary storage means.
Communication log recording device.
ログ記憶手段と、
前記ログ記憶手段より高速なログ一時記憶手段と、
受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報を前記ログ一時記憶手段に格納するログ採取手段と、
要求された送信または前記受信が開始された後、前記ログ一時記憶手段内に格納されている前記ログ情報を前記ログ記憶手段に格納し直すログ保存手段と、
実行中である非同期型の前記受信要求を識別する受信要求IDと、前記ログIDを関連付けて格納する受信要求記憶手段とを備え、
前記ログ採取手段は、1)前記非同期型の前記受信要求を受け付けると、前記ログIDの生成と前記受信要求IDの取得を行って両者を関連付けて前記受信要求記憶手段に格納する処理と、前記受信を開始する処理とを実行した後、前記受信要求を発行したアプリケーションの実行を再開させ、2)前記受信の終了時に、終了した前記受信の前記受信要求IDに関連付けられて前記受信要求記憶手段に格納されている前記ログIDと、前記受信データを含む前記ログ情報を前記ログ一時記憶手段に格納す
通信ログ記録装置。
Log storage means and
A log temporary storage means faster than the log storage means,
When the reception request is received, a log ID indicating the issuing order of the reception request is generated and reception is started, and at the end of the reception, the log information including the log ID and the read reception data is stored in the log temporary storage means. Log collection means to store and
After the requested transmission or reception is started, the log storage means for re-storing the log information stored in the log temporary storage means in the log storage means, and a log storage means.
It is provided with a reception request ID for identifying the asynchronous type reception request being executed and a reception request storage means for storing the log ID in association with each other.
The log collecting means 1) receives the asynchronous reception request, generates the log ID, acquires the reception request ID, associates the two, and stores the log ID in the reception request storage means. After executing the process of starting reception, the execution of the application that issued the reception request is restarted. 2) At the end of the reception, the reception request storage means associated with the reception request ID of the completed reception. The log ID stored in the log ID and the log information including the received data are stored in the log temporary storage means.
Communication log recording device.
前記ログ記憶手段、および、前記ログ一時記憶手段は、前記通信ログ記録装置が実行するプロセスごとに設けられ、
前記ログ採取手段は各々の前記プロセスにより起動されて、前記ログ情報を、起動されている前記プロセスに設けられている前記ログ一時記憶手段に格納し、
前記ログ保存手段は各々の前記プロセスにより実行されて、起動されている前記プロセスとは別の前記プロセスに設けられている前記ログ一時記憶手段内に格納されている前記ログ情報を、前記別の前記プロセスに設けられている前記ログ記憶手段に格納し直す、請求項1乃至請求項3の何れか一項の通信ログ記録装置。
The log storage means and the log temporary storage means are provided for each process executed by the communication log recording device.
The log collecting means is started by each of the processes, and the log information is stored in the log temporary storage means provided in the started process.
The log storage means is executed by each of the processes, and the log information stored in the log temporary storage means provided in the process different from the started process can be used as another log information. The communication log recording device according to any one of claims 1 to 3, which is re-stored in the log storage means provided in the process.
前記ログ情報を所定サイズに分割したどの区画までが、前記ログ記憶手段に保存されたかを示す保存情報を記憶する保存情報記憶手段を備え、
前記ログ保存手段は、前記保存情報が示す次の前記区画を前記ログ一時記憶手段から前記ログ記憶手段に格納し直し、前記保存情報に当該区画を保存済みとして記録する、請求項1乃至請求項4の何れか一項の通信ログ記録装置。
A storage information storage means for storing storage information indicating which section of the log information is divided into predetermined sizes is stored in the log storage means.
Claims 1 to claim 1, wherein the log storage means re-stores the next section indicated by the save information from the log temporary storage means into the log storage means, and records the section in the save information as saved. Communication log recording device according to any one of 4.
受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報をログ記憶手段より高速なログ一時記憶手段に格納し、
要求された送信または前記受信が開始された後、実行中の通信が有り、かつ、前記ログ一時記憶手段内に通信が終了した通信ログが有る場合に、前記通信が終了した通信ログの前記ログ情報を、ログ記憶手段に格納し直す、通信ログ記録方法。
When a reception request is received, a log ID indicating the issuing order of the reception request is generated and reception is started, and at the end of the reception, log information including the log ID and the read reception data is faster than the log storage means. Store in log temporary storage means,
If there is communication in progress after the requested transmission or reception is started, and there is a communication log for which communication has ended in the log temporary storage means, the log of the communication log for which communication has ended. A communication log recording method that stores information back in the log storage means.
同期型の受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了待ち合わせ後に、生成した前記ログIDと読み込んだ受信データを含むログ情報を、ログ記憶手段より高速なログ一時記憶手段に格納し、
要求された送信または前記受信が開始された後、前記ログ一時記憶手段内の前記ログ情報を、ログ記憶手段に格納し直す、通信ログ記録方法。
When a synchronous reception request is received , a log ID indicating the issuance order of the reception request is generated and reception is started, and after waiting for the end of the reception, the generated log ID and the read reception data are combined. The log information including is stored in the log temporary storage means, which is faster than the log storage means .
A communication log recording method for re-storing the log information in the log temporary storage means in the log storage means after the requested transmission or reception is started .
非同期型の受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、)前記ログIDの生成と実行中である非同期型の前記受信要求を識別する受信要求IDの取得を行って両者を関連付けて受信要求記憶手段に格納する処理と、前記受信を開始する処理とを実行した後、前記受信要求を発行したアプリケーションの実行を再開させ、2)前記受信の終了時に、終了した前記受信の前記受信要求IDに関連付けられて前記受信要求記憶手段に格納されている前記ログIDと、読み込んだ受信データを含むログ情報をログ一時記憶手段に格納し、
要求された送信または前記受信が開始された後、前記ログ一時記憶手段内の前記ログ情報を、ログ記憶手段に格納し直す、通信ログ記録方法。
When an asynchronous reception request is received, a log ID indicating the order in which the reception request is issued is generated and reception is started. 1 ) The log ID is generated and the running asynchronous reception request is identified. After executing the process of acquiring the reception request ID and storing the two in association with each other in the reception request storage means and the process of starting the reception, the execution of the application that issued the reception request is restarted. 2) The above. At the end of reception, the log ID stored in the reception request storage means associated with the reception request ID of the completed reception and the log information including the read reception data are stored in the log temporary storage means. Store in
A communication log recording method for re-storing the log information in the log temporary storage means in the log storage means after the requested transmission or reception is started .
ログ記憶手段と、前記ログ記憶手段より高速なログ一時記憶手段と、を備えるコンピュータに、
受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了時に前記ログIDと読み込んだ受信データとを含むログ情報を前記ログ一時記憶手段に格納するログ採取処理と、
要求された送信または前記受信が開始された後、実行中の通信が有り、かつ、前記ログ一時記憶手段内に通信が終了した通信ログが有る場合に、前記通信が終了した通信ログの前記ログ情報を前記ログ記憶手段に格納し直すログ保存処理と、を実行させる通信ログ記録プログラム。
A computer provided with a log storage means and a log temporary storage means faster than the log storage means.
When the reception request is received, a log ID indicating the issuing order of the reception request is generated and reception is started, and at the end of the reception, the log information including the log ID and the read reception data is stored in the log temporary storage means. Log collection processing to be stored and
If there is communication in progress after the requested transmission or reception is started, and there is a communication log whose communication has ended in the log temporary storage means, the log of the communication log whose communication has ended. A communication log recording program that executes a log storage process that stores information back in the log storage means.
ログ記憶手段と、前記ログ記憶手段より高速なログ一時記憶手段と、を備えるコンピュータに、
同期型の受信要求を受け付けると、前記受信要求の発行順を示すログIDの生成と受信の開始を行い、前記受信の終了待ち合わせ後に、生成した前記ログIDと読み込んだ受信データを含むログ情報を前記ログ一時記憶手段に格納するログ採取処理と、
要求された送信または前記受信が開始された後、前記ログ一時記憶手段内に格納されている前記ログ情報を前記ログ記憶手段に格納し直すログ保存処理と、を実行させる、通信ログ記録プログラム。
A computer provided with a log storage means and a log temporary storage means faster than the log storage means.
When a synchronous reception request is received, a log ID indicating the issuance order of the reception request is generated and reception is started, and after waiting for the end of the reception, the generated log ID and the read reception data are combined. Log collection processing to store the included log information in the log temporary storage means ,
After the requested transmission or reception is started , the communication log recording for executing the log storage process of re-storing the log information stored in the log temporary storage means in the log storage means. program.
JP2018007465A 2018-01-19 2018-01-19 Communication log recording device, communication log recording method, and communication log recording program Active JP7073737B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018007465A JP7073737B2 (en) 2018-01-19 2018-01-19 Communication log recording device, communication log recording method, and communication log recording program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018007465A JP7073737B2 (en) 2018-01-19 2018-01-19 Communication log recording device, communication log recording method, and communication log recording program

Publications (2)

Publication Number Publication Date
JP2019125321A JP2019125321A (en) 2019-07-25
JP7073737B2 true JP7073737B2 (en) 2022-05-24

Family

ID=67398901

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018007465A Active JP7073737B2 (en) 2018-01-19 2018-01-19 Communication log recording device, communication log recording method, and communication log recording program

Country Status (1)

Country Link
JP (1) JP7073737B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111143304B (en) * 2019-11-20 2023-09-29 杭州端点网络科技有限公司 Micro-service system exception log analysis method based on request link

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002140211A (en) 2000-11-02 2002-05-17 Ricoh Co Ltd Information processor and its inter-process communication history acquiring method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3116443B2 (en) * 1991-08-30 2000-12-11 ソニー株式会社 Socket communication log storage device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002140211A (en) 2000-11-02 2002-05-17 Ricoh Co Ltd Information processor and its inter-process communication history acquiring method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
川島 英之,非同期的ログバッファ転送機構によるリモートロギングの効率的実行,DEWS2006論文集 [online],電子情報通信学会データ工学研究専門委員会,2006年06月30日

Also Published As

Publication number Publication date
JP2019125321A (en) 2019-07-25

Similar Documents

Publication Publication Date Title
WO2019141186A1 (en) Data processing method and device
CN110555001B (en) Data processing method, device, terminal and medium
JPH076099A (en) System and method for duplexing of remote data
JPH1091357A (en) Data storage device and method therefor
JPH07219844A (en) Apparatus and method for cache line replacing
JP2010015610A (en) Information processing apparatus, control method thereof, and program
CN102521279A (en) Playing method, playing system and player of streaming media files
CN115599747B (en) Metadata synchronization method, system and equipment of distributed storage system
WO2019109299A1 (en) Memory access technique and computer system
JP3877519B2 (en) System recovery method, computer system for implementing the method, and recording medium recording the processing program
EP1094392A1 (en) Method and apparatus for interfacing with a secondary storage system
WO2023015866A1 (en) Data writing method, apparatus and system, and electronic device and storage medium
JP2009032053A (en) Data reception system
EP3035215A1 (en) File system, control method for file system, and control program for file system
JP7073737B2 (en) Communication log recording device, communication log recording method, and communication log recording program
JP2015158910A (en) Memory subsystem with wrapped-to-continuous read
CN110413689B (en) Multi-node data synchronization method and device for memory database
KR102262209B1 (en) Method and apparatus for sending barrier command using dummy io request
WO2022033269A1 (en) Data processing method, device and system
JP2005234794A (en) File system controller
JP3781007B2 (en) Data transfer method between computers
JP3477056B2 (en) Data transfer device
CN112559457A (en) Data access method and device
JP2000163294A (en) Method and device for managing database and machine- readable recording medium with program recorded thereon
JP7456601B2 (en) Information processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20201215

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20211020

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20211222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220118

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220318

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20220412

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220425

R151 Written notification of patent or utility model registration

Ref document number: 7073737

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151