JPH08314767A - Measuring method for data base operating performance and computer device - Google Patents

Measuring method for data base operating performance and computer device

Info

Publication number
JPH08314767A
JPH08314767A JP7121279A JP12127995A JPH08314767A JP H08314767 A JPH08314767 A JP H08314767A JP 7121279 A JP7121279 A JP 7121279A JP 12127995 A JP12127995 A JP 12127995A JP H08314767 A JPH08314767 A JP H08314767A
Authority
JP
Japan
Prior art keywords
database
information
event
file
operation performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7121279A
Other languages
Japanese (ja)
Inventor
Takashi Miyazaki
隆 宮崎
Kohei Seki
光平 関
Masao Sueki
雅夫 末木
Shinki Sasaki
新喜 佐々木
Takashi Owaki
隆志 大脇
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.)
Hitachi Ltd
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Process Computer Engineering Inc
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 Hitachi Ltd, Hitachi Process Computer Engineering Inc filed Critical Hitachi Ltd
Priority to JP7121279A priority Critical patent/JPH08314767A/en
Publication of JPH08314767A publication Critical patent/JPH08314767A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To provide a measuring method to acquire quantitative evaluating information for data base operating performance to easily obtain a measure to improve the data base operating performance. CONSTITUTION: A CPU 20 collects all event information (address and time) in an event collection area 101 by an event collecting part 124 that is an OS function while an application program by a multi-task execution part 122 is executed. After the execution of the program was completed, an event edit part 125 edits event edit information on which a resource name, etc., is added from all event information as referring to allocator map information 113, and stores it in an event edit area 102. After that, an event editing part 126 for data base reads out the event information from the event edit area 102 sequentially, and samples the information of a measuring target task, and edits event trace classified by every event factor. Moreover, statistical information is found by tabulating plural parameters for evaluation such as the number of times of occupancy or that of occupancy-waiting, and it is outputted in the form of list or graph.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はデータベースを備える計
算機装置に係り、特に複数のタスクがデータベースを並
行して操作する場合のデータベース操作性能の測定方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system having a database, and more particularly to a method for measuring database operation performance when a plurality of tasks operate the database in parallel.

【0002】[0002]

【従来の技術】複数のタスクが同時に動作する電子計算
機システムにおいて、プログラムの処理性能を向上させ
る方法には処理を最適化する方法、タスク間の競合を減
らし待ち時間を少なくする方法、補助記憶装置に対する
入出力の発行回数を減らす方法などがある。実際の採用
に際しては、前述の各方法による性能向上の程度を事前
に調査し評価する必要がある。
2. Description of the Related Art In an electronic computer system in which a plurality of tasks operate simultaneously, a method of optimizing the processing is a method of improving the processing performance of a program, a method of reducing competition between tasks and reducing a waiting time, and an auxiliary storage device. There is a method to reduce the number of I / O issuance to. In actual adoption, it is necessary to investigate and evaluate the degree of performance improvement by each method described above in advance.

【0003】アプリケーションプログラムの性能評価の
ための情報を収集し編集表示するシステムとして、HI
TEST−DEMO Ver.9(オンライン機能・性能
デバッグ支援システム;日立製作所;ソフトウェアマニ
ュアル65−3−3224参照)がある。
As a system for collecting, editing and displaying information for performance evaluation of application programs, HI
TEST-DEMO Ver. 9 (online function / performance debugging support system; Hitachi, Ltd .; see Software Manual 65-3-3224).

【0004】HITEST−DEMOは、オペレーティ
ングシステム(OS)が収集するイベント情報を、OS
が管理するアロケータマップ情報と組み合わせて、マク
ロトレースやイベントトレースなどに編集し表示する。
この機能により、共有資源の占有と解放のタイミング、
他タスクとの共有資源の競合による待ちの発生、補助記
憶装置に対する入出力の発生タイミングと転送バイト数
などを測定することができる。その測定結果の分析か
ら、アプリケーションプログラムの処理の妥当性や補助
記憶装置に対する入出力発生頻度の妥当性を評価するこ
とができる。
HITEST-DEMO uses event information collected by the operating system (OS) as the OS.
Edit and display in macro trace, event trace, etc. by combining with allocator map information managed by.
With this function, the timing of occupying and releasing shared resources,
It is possible to measure the occurrence of wait due to competition for shared resources with other tasks, the timing of input / output to / from the auxiliary storage device, and the number of transfer bytes. From the analysis of the measurement result, it is possible to evaluate the validity of the processing of the application program and the validity of the input / output occurrence frequency with respect to the auxiliary storage device.

【0005】[0005]

【発明が解決しようとする課題】しかし、前記のHIT
EST−DEMOによる測定結果は、測定対象アプリケ
ーションプログラム全体の処理性能に関わるものであ
り、測定対象アプリケーションプログラムの中で、デー
タベース操作に関わる部分と他の部分を区別して評価す
ることができない。データベース操作性能はデータベー
スの構造、規模、アクセス手続きなどによって大きく相
違するため、データベース操作性能に関する情報の測定
や事前評価を難しいものにしている。
However, the above-mentioned HIT
The measurement result by EST-DEMO relates to the processing performance of the entire measurement target application program, and in the measurement target application program, the portion related to database operation and other portions cannot be evaluated separately. Since the database operation performance varies greatly depending on the database structure, scale, access procedures, etc., it makes it difficult to measure and evaluate information on the database operation performance.

【0006】近年、制御用情報処理システムでのデータ
ベース化の進展もあって、データベース操作性能の向上
がより切実な課題となっており、その事前評価の簡単な
実現が求められている。
In recent years, with the development of databases in control information processing systems, improvement of database operation performance has become a more urgent issue, and simple realization of advance evaluation thereof is required.

【0007】本発明の第1の目的は、複数のタスクが並
行してデータベースを操作する場合に、データベース操
作性能を測定する方法を提供することにある。
A first object of the present invention is to provide a method for measuring the database operation performance when a plurality of tasks operate the database in parallel.

【0008】本発明の第2の目的は、データベース操作
性能を測定できる計算機装置を提供することにある。
A second object of the present invention is to provide a computer system capable of measuring database operation performance.

【0009】[0009]

【課題を解決するための手段】本発明の目的は、複数の
タスクが並行してデータベースを操作する場合のデータ
ベース操作性能の評価情報を求める方法において、前記
タスクの実行中にオペレーティングシステム(以下、O
Sと略称)によって収集されるイベント情報を時系列に
格納し、全タスクの実行後に、前記イベント情報を順次
読みだして、タスク毎にデータベースのリソースや入力
操作に関わるデータベース関連イベント情報を抽出し、
データベース操作性能に関わる複数の評価パラメータを
集計することにより達成される。
SUMMARY OF THE INVENTION An object of the present invention is to provide a method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel. O
Event information collected by S) is stored in time series, and after execution of all tasks, the event information is sequentially read to extract database resources and database-related event information related to input operations for each task. ,
This is achieved by aggregating multiple evaluation parameters related to database operation performance.

【0010】前記評価パラメータは、前記イベント情報
の発生要因別に集計され、前記発生要因がデータベース
ファイルの競合の場合は、ファイル名毎の占有回数と待
ち回数および/または合計占有時間と合計待ち時間を含
み、前記発生要因が共用バッファの競合の場合は、バッ
ファ名毎の占有回数と待ち回数および/または合計占有
時間と合計待ち時間を含み、前記発生要因がデータベー
ス入出力操作の場合は、バッファ名とファイル名毎の操
作回数と補助記憶装置入出力回数(以下、I/O回数と
略称)を含むことを特徴とする。
The evaluation parameters are totaled according to the cause of occurrence of the event information. When the cause of occurrence is a database file conflict, the number of times of occupancy and the number of waits for each file name and / or the total time of occupancy and the total waiting time are calculated. Included, if the cause is shared buffer contention, it includes the number of times of occupancy and the number of waits for each buffer name and / or the total occupancy time and the total wait time. If the cause is a database I / O operation, the buffer name And the number of times of operations for each file name and the number of times of input / output of the auxiliary storage device (hereinafter abbreviated as the number of times of I / O).

【0011】また、前記評価パラメータは、データベー
ス操作性能を定量的に示す指標情報を含み、前記データ
ベースファイルの競合の場合には、前記指標情報は前記
ファイルの占有回数と待ち回数の比によるファイル待ち
発生率および/または前記ファイルの合計占有時間と合
計待ち時間の比によるファイル待ち時間率を、前記共用
バッファの競合の場合には、前記指標情報は前記共用バ
ッファの占有回数と待ち回数の比によるバッファ待ち発
生率および/または前記共用バッファの合計占有時間と
合計待ち時間の比によるファイル待ち時間率を、前記デ
ータベース入出力操作の場合には、前記指標情報は前記
操作回数と前記I/O回数の比によるヒット率を、それ
ぞれ算出することを特徴とする。
Further, the evaluation parameter includes index information that quantitatively indicates the database operation performance. In the case of contention of the database file, the index information is a file wait time based on the ratio of the number of times the file is occupied and the number of wait times. The occurrence rate and / or the file waiting time ratio according to the ratio of the total occupied time of the file and the total waiting time, and in the case of contention for the shared buffer, the index information depends on the ratio of the occupied number of the shared buffer and the waiting number. In the case of the database input / output operation, the index information is the number of operations and the number of I / Os, in the case of the database input / output operation, the file waiting rate and / or the file waiting rate based on the ratio of the total occupied time and the total waiting time of the shared buffer. It is characterized in that the hit rate is calculated according to each ratio.

【0012】また、前記データベース関連イベント情報
のイベントトレースおよび/または前記評価パラメータ
の統計情報を編集して出力することを特徴とする。
Further, it is characterized in that the event trace of the database-related event information and / or the statistical information of the evaluation parameter is edited and output.

【0013】[0013]

【作用】本発明の構成によれば、前記イベントトレース
や前記統計情報から、データベース操作性能を劣化させ
る原因が簡単に判別でき、効果的な性能向上策を実施す
ることができる。
According to the structure of the present invention, the cause of deterioration of the database operation performance can be easily determined from the event trace and the statistical information, and effective performance improvement measures can be implemented.

【0014】すなわち、データベースファイルに関する
性能評価情報で、たとえば、あるファイルの占有待ち発
生率が高くなるのは、測定対象タスクによる当該ファイ
ルの占有時間が長く他のタスクと競合が多発するためで
あり、性能劣化の原因が測定対象タスクにある。この場
合、当該タスクの起動タイミングをずらして競合する時
間を減少させたり、データベース操作処理を見直し1回
のファイル占有時間を短くしてタスク間の並行処理性を
向上させる。
That is, in the performance evaluation information on the database file, for example, the reason why the occupation wait occurrence rate of a certain file is high is that the measurement target task occupies the file for a long time and conflicts frequently with other tasks. The cause of the performance deterioration is the task to be measured. In this case, the conflicting time is reduced by shifting the start timing of the task, or the database operation processing is reviewed to shorten the file occupancy time once and improve the parallelism between tasks.

【0015】また、データベース共用バッファに関する
性能評価情報で、たとえば、共用バッファの占有待ち時
間率が高くなるのは、あるファイルによる当該共用バッ
ファの使用が頻繁なためであり、性能劣化の一因は共用
バッファの構成にある。この場合、当該ファイルが使用
している競合の多発している共用バッファを複数に分割
して構成することにより、共用バッファに関する競合を
減少できる。
In the performance evaluation information on the shared buffer of the database, for example, the occupied waiting time ratio of the shared buffer is high because the shared buffer is frequently used by a certain file, which is one of the causes of the performance deterioration. Shared buffer configuration. In this case, the contention on the shared buffer can be reduced by dividing the shared buffer used by the file in which the contention frequently occurs into a plurality of divided buffers.

【0016】さらに、その他のデータベース操作に関す
る性能評価情報で、たとえばファイル操作のヒット率が
低くなるのは、ファイルの操作回数に対して必要なデー
タが共用バッファ上になく、補助記憶装置に対するIO
が多発するためで、性能劣化の一因は共用バッファの容
量不足にある。この場合、データベース操作処理の内容
に応じて、共用バッファの1面の容量を拡張したり、共
用バッファの面数を増やすなどして、補助記憶装置との
入出力回数を減らすことができる。
Further, in the performance evaluation information on other database operations, for example, the hit rate of the file operation is low because the data necessary for the number of file operations is not in the shared buffer and the IO to the auxiliary storage device is not present.
This is due to the frequent occurrence of the above, and one cause of the performance deterioration is the lack of the capacity of the shared buffer. In this case, the number of inputs / outputs to / from the auxiliary storage device can be reduced by expanding the capacity of one side of the shared buffer or increasing the number of sides of the shared buffer according to the contents of the database operation processing.

【0017】[0017]

【実施例】以下、本発明の実施例を図面を参照して詳細
に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0018】図1は、本発明の一実施例で、データベー
ス操作性能測定手段を備える計算機装置の構成図であ
る。
FIG. 1 is a block diagram of a computer device having a database operation performance measuring means according to an embodiment of the present invention.

【0019】主記憶装置100は、図示していないアプ
リケーションプログラムやデータベース管理プログラム
などの動作プログラムの記憶領域の他に、イベント収集
エリア101、イベント編集エリア102、データベー
ス用イベント編集エリア103を有している。さらに、
補助記憶装置110上にあるデータベースのデータをア
クセスする際に緩衝域として使用し、複数のバッファB
UF1,2...から構成している共用バッファ104
を有している。
The main storage device 100 has an event collection area 101, an event editing area 102, and a database event editing area 103, in addition to storage areas for operation programs such as application programs and database management programs (not shown). There is. further,
It is used as a buffer area when accessing the data of the database on the auxiliary storage device 110, and a plurality of buffers B are used.
UF1, 2. . . Shared buffer 104 composed of
have.

【0020】補助記憶装置110は、複数のデータベー
スファイルFAA,FBB,...をもち、実データを
格納するデータベース111、データディクショナリ1
12及びアロケータマップ情報エリア113などを有し
ている。データディクショナリ112は、データベース
の構造や規模などの定義情報及びタスクとデータベース
ファイルの関係やファイルと共用バッファの関係などを
記憶し、データベースを構築したりデータベースを操作
する際に利用される。本実施例では後述のように、OS
が発行するイベント情報とデータベース操作の関係を対
応付けるための定義情報も記憶する。アロケータマップ
情報エリア113は、主メモリ100の割付け情報、補
助記憶装置110の割付け情報、タスクの属性情報等が
格納され、これらはOSによって管理されている。
The auxiliary storage device 110 stores a plurality of database files FAA, FBB ,. . . With a database 111 that stores actual data and a data dictionary 1
12 and an allocator map information area 113. The data dictionary 112 stores definition information such as the structure and scale of the database, the relationship between tasks and database files, the relationship between files and shared buffers, and is used when constructing the database and operating the database. In this embodiment, as described later, the OS
Also stores the definition information for associating the relationship between the event information issued by and the database operation. The allocator map information area 113 stores allocation information of the main memory 100, allocation information of the auxiliary storage device 110, task attribute information, and the like, which are managed by the OS.

【0021】中央処理装置120はCPUの機能とし
て、キーボードやディスプレイを具備する入出力装置1
30との入出力を制御する入出力制御部121、複数の
タスク(ここでは、アプリケーションプログラム)を並
行処理するマルチタスク実行部122、データベース管
理部123、イベント情報収集部124、イベント編集
部125、データベース用イベント編集部126及び編
集指示部127を有している。
The central processing unit 120 is an input / output device 1 having a keyboard and a display as functions of the CPU.
An input / output control unit 121 that controls input and output to and from 30, a multitask execution unit 122 that processes a plurality of tasks (here, application programs) in parallel, a database management unit 123, an event information collection unit 124, an event editing unit 125, The database event editing unit 126 and the editing instruction unit 127 are included.

【0022】本発明のデータベース操作性能測定手段
は、広い意味では破線の囲みのように、OSの周知の機
能であるイベント情報収集部124と、収集されたイベ
ント情報とアロケータマップ情報からタスク毎のマクロ
トレースやイベントトレースなど、全体的なイベント情
報の編集を行う(前述のHITEST−DEMOと同
等)従来と同様のイベント編集部125と、全体的なイ
ベント情報の編集内容からデータベース関連情報を抽出
し、データベース操作性能の評価情報を求めるデータベ
ース用イベント編集部126及びイベント情報編集の起
動や編集条件を指示する編集指示部127を含んでい
る。もちろん、操作性能測定手段の要部はデータベース
用イベント編集部126である。なお、イベント編集部
125、データベース用イベント編集部126及び編集
指示部127は、一つに纏めてもよい。
The database operation performance measuring means of the present invention is, in a broad sense, like a box surrounded by a broken line, the event information collecting section 124 which is a well-known function of the OS, and the collected event information and allocator map information for each task. Edit event information such as macro trace or event trace as a whole (equivalent to HITEST-DEMO described above). The same event editing unit 125 as the conventional one, and database related information is extracted from the edited content of the entire event information. It also includes a database event editing unit 126 for obtaining database operation performance evaluation information and an editing instruction unit 127 for instructing activation of event information editing and editing conditions. Of course, the main part of the operation performance measuring means is the database event editing unit 126. The event editing unit 125, the database event editing unit 126, and the editing instruction unit 127 may be integrated.

【0023】このように構成される本実施例の計算機装
置は、マルチタスク実行部122によるアプリケーショ
ンプログラムの実行によって、データベース操作要求が
発生すると、データベース管理部123はデータディク
ショナリ113の情報を基に、OSに対しデータベース
ファイルの操作要求を行う。データベースファイルの操
作要求を受けたOSは、共用バッファ104を介してデ
ータベース111の操作を行う。また、OSはアプリケ
ーションプログラムの実行中、OSの機能であるイベン
ト情報収集部124により、システムコール、補助記憶
装置に対する入出力、データベース操作など、種々のイ
ベント情報(実際にはイベント情報のアドレス)をその
発生時刻と共にイベント情報収集エリア101に収集し
ている。
In the computer system of this embodiment configured as above, when the database operation request is generated by the execution of the application program by the multitask executing unit 122, the database managing unit 123 determines, based on the information in the data dictionary 113, A request for operating a database file is issued to the OS. Upon receiving the database file operation request, the OS operates the database 111 via the shared buffer 104. During execution of the application program, the OS collects various event information (actually, the address of the event information) such as a system call, input / output to / from the auxiliary storage device, and database operation by the event information collecting unit 124 which is a function of the OS. It is collected in the event information collection area 101 together with the occurrence time.

【0024】アプリケーションプログラムの実行後、イ
ベント編集部125が起動される。イベント編集部12
5は、イベント情報収集エリア101に格納されている
全イベント情報を時系列に読出し、イベント情報のアド
レスに対応するアロケータマップ情報エリア113の割
付け情報やタスクの属性情報などを参照し、タスク名称
やイベントの種類、リソースのアドレスなどを付加し
て、時系列のイベント編集情報集を作成する。さらに、
リソースなどに応じて、マクロとレースやイベントトレ
ースなども編集する。これらのイベント編集情報集は、
イベント編集エリア102に格納すると共に、要求に応
じて入出力装置130のディスプレイあるいはプリンタ
に出力する。
After executing the application program, the event editing section 125 is activated. Event editorial department 12
5 reads all the event information stored in the event information collection area 101 in time series, refers to the allocation information of the allocator map information area 113 corresponding to the address of the event information, the attribute information of the task, etc. Create a time-series collection of event editing information by adding event types, resource addresses, etc. further,
Edit macros and races, event traces, etc. according to resources. These event editing information collections are
The data is stored in the event editing area 102 and is output to the display of the input / output device 130 or a printer in response to a request.

【0025】図2に、イベント編集部123によって編
集されたマクロトレースとイベントとレースの一例を示
す。同図で、マクロトレース201は共用リソース、特
にファイルに対する占有、解放に関するイベント編集情
報集であり、タスク番号(TNO)、タスク名称(TN
AME)、イベント発生時刻(TIME)、イベントの
種類(ACT)、対象共用リソースのアドレス(TOP
AD…LASTAD)、イベントの実行結果(RESU
LT)等がリストアップされる。イベントの種類(AC
T)には、占有(RSERV)と解放(FREER)が
ある。イベントが占有できた場合(RSERVE−I
N)は占有時刻が、占有できなかった場合(RESER
VED)は占有中のタスク名称とタスク番号が収集され
る。
FIG. 2 shows an example of macro traces, events and races edited by the event editing section 123. In the figure, a macro trace 201 is a collection of event editing information relating to occupancy and release of shared resources, particularly files, and includes a task number (TNO) and a task name (TN).
AME), event occurrence time (TIME), event type (ACT), target shared resource address (TOP
AD ... LASTED, event execution result (RESU)
LT) and the like are listed. Event type (AC
T) includes occupancy (RSERV) and release (FRER). If the event can be occupied (RSERVE-I
N) if the occupancy time cannot be occupied (RESER)
VED) collects the name and task number of the occupied task.

【0026】イベントトレース202は、バッファに対
する占有、解放やI/O操作などに関するイベント編集
情報集であり、タスク番号、タスク名称、イベント発生
時刻、イベントの種類(CODE)、イベント発行時の
パラメータ(PARA)が収集される。ここで、イベン
トの種類(CODE)には、データベース操作開始(d
bopen)、共用資源の占有(rserv)、解放
(freer)、データベースのデータ参照(dbre
ad)、補助記憶装置からのデータ読み出し(rfil
w)などがある。
The event trace 202 is a collection of event editing information relating to occupancy, release, I / O operation, etc. for the buffer, and includes task number, task name, event occurrence time, event type (CODE), and parameter at event issue ( PARA) is collected. Here, as the event type (CODE), the database operation start (d
open), occupancy (rserv) of shared resource, release (free), data reference of database (dbre)
ad), data read from auxiliary storage (rfil
w) etc.

【0027】データベース用イベント編集部126は、
イベント編集部125の処理後に、編集要求と操作対象
タスクやイベント要因などのイベント情報編集条件を設
定する編集指示部127から起動され、イベント編集エ
リア102に格納されているイベント編集情報集から、
データベースに関連するイベント情報を抽出して要因毎
にイベントトレースを編集し、さらに、いくつかのパラ
メータを集計してデータベース操作性能の評価情報を求
め、見やすい形式に編集して出力する。
The database event editing unit 126
After the processing of the event editing unit 125, the editing instruction unit 127 for setting the editing request and the event information editing conditions such as the task to be operated and the event factor is activated, and from the event editing information collection stored in the event editing area 102,
The event information related to the database is extracted, the event trace is edited for each factor, and some parameters are aggregated to obtain the evaluation information of the database operation performance, which is edited and output in an easy-to-read format.

【0028】イベント編集部125によるイベント編集
情報集には、データベース111に関係する情報とそれ
以外の情報が混在している。この中からデータベースに
関係するイベント情報を抽出するには、データディクシ
ョナリ112に格納されているデータベース管理情報を
利用する。
In the event editing information collection by the event editing section 125, information related to the database 111 and other information are mixed. The database management information stored in the data dictionary 112 is used to extract the event information related to the database from this.

【0029】図3は、本実施例の計算機システムにおけ
るデータベース操作性能測定機能の要部であるデータベ
ース用イベント編集部の動作を説明するフローチャート
である。
FIG. 3 is a flow chart for explaining the operation of the database event editing section which is the main part of the database operation performance measuring function in the computer system of this embodiment.

【0030】データベース用イベント編集部126は、
イベント編集部125の実行後に起動される。なお、操
作性能の測定対象タスクは予め設定され、複数の場合に
は順次実行される。
The database event editing unit 126
It is activated after the event editing unit 125 is executed. The task for which the operational performance is measured is set in advance, and when there are a plurality of tasks, the tasks are sequentially executed.

【0031】まず、イベント編集エリア102に格納さ
れているイベント編集情報集の時系列から、順次、アプ
リケーションプログラムの実行によって発生し収集され
た編集イベント情報を読み込む(s201)。次に、イ
ベント情報のタスク名称または番号から対象タスクに関
する情報かチエックし(s202)、違う場合には次の
イベント情報の読み込みを行う。
First, the edit event information generated and collected by the execution of the application program is sequentially read from the time series of the event edit information collection stored in the event edit area 102 (s201). Next, the task name or number of the event information is used to check whether the information is related to the target task (s202). If not, the next event information is read.

【0032】測定対象タスクのイベント情報であれば、
各々のイベント要因を判定し(s203)、ファイル競
合関連、バッファ競合関連またはその他にイベント情報
を振り分ける。たとえばイベント情報が、イベント編集
情報集のマクロトレースにある場合はファイル競合、イ
ベントトレースにある場合はそのCODEからバッファ
競合あるいはその他に区分する。なお、イベント要因は
任意の一つを設定して、その要因の情報についてのみ、
以下の処理をするようにしてもよい。
If it is the event information of the task to be measured,
Each event factor is determined (s203), and the event information is distributed to file contention related, buffer contention related, or other. For example, if the event information is in the macro trace of the event edit information collection, it is classified into file conflict, and if it is in the event trace, it is classified into buffer conflict or other from that CODE. Note that you can set any one of the event factors and only
The following processing may be performed.

【0033】次に、イベント要因がファイル競合関連の
イベント情報の場合、データベース構築の際に登録され
ているデータディクショナリ112のファイル定義情報
を基に、イベント情報がデータベースファイルに対する
ものか否かを判定する(s204)。データベースファ
イルに対するイベントであれば、ファイルイベントの集
計処理を行う(s205)。すなわち、データベース用
イベント情報として登録し、そのファイル占有時間、フ
ァイル占有回数、ファイル占有待ち時間、ファイル占有
待ち回数などのパラメータを集計し、データベース用イ
ベント収集バッファ103に記憶する。
Next, when the event factor is file conflict related event information, it is determined whether the event information is for a database file based on the file definition information of the data dictionary 112 registered when the database is constructed. Yes (s204). If it is an event for a database file, file event totaling processing is performed (s205). That is, it is registered as database event information, and parameters such as file occupancy time, file occupancy count, file occupancy wait time, and file occupancy wait count are totaled and stored in the database event collection buffer 103.

【0034】イベント要因がバッファ競合関連のイベン
ト情報の場合は、データディクショナリ112のバッフ
ァ定義情報を基に、イベント情報がデータベースの共用
バッファ104に対するものか否かを判定する(s20
6)。データベース共用バッファに関するイベントであ
れば、共用バッファイベントの集計処理を行う(s20
7)。すなわち、データベース用イベント情報として登
録すると共に、その共用バッファ占有時間、共用バッフ
ァ占有回数、共用バッファ占有待ち時間、共用バッファ
占有待ち回数などのパラメータを集計し、データベース
用イベント編集エリア103に記憶する。
When the event factor is the event information related to buffer contention, it is determined whether the event information is for the shared buffer 104 of the database or not based on the buffer definition information of the data dictionary 112 (s20).
6). If the event is related to the database shared buffer, the shared buffer event is aggregated (s20).
7). That is, while registering as database event information, parameters such as the shared buffer occupancy time, the shared buffer occupancy count, the shared buffer occupancy wait time, and the shared buffer occupancy wait count are totaled and stored in the database event editing area 103.

【0035】イベント要因がその他の場合は、データベ
ース構築の際に登録されているデータディクショナリ1
12のファイル及びバッファ定義情報を参照し、イベン
ト情報のアドレスからデータベースのデータ操作に対す
るものか否かを判定する(s208)。データ操作によ
るイベント情報であれば、操作イベント集計処理208
を行う(s209)。すなわち、データベース用イベン
ト情報として登録すると共に、データの操作種別(参
照、追加、更新など)とその発行回数、補助記憶装置の
入出力回数などのパラメータを集計し、データベース用
イベント編集エリア103に記憶する。
When the event factor is other, the data dictionary 1 registered at the time of database construction
The file and buffer definition information 12 is referred to, and it is determined from the address of the event information whether or not the operation is a database data operation (s208). If the event information is a data operation, the operation event totaling process 208
Is performed (s209). That is, while registering as database event information, parameters such as the operation type (reference, addition, update, etc.) of data, the number of issuances thereof, the number of input / output times of the auxiliary storage device, and the like are stored in the database event editing area 103. To do.

【0036】なお、上記の各要因における集計処理(s
205,s207,s209)の一部は、後述の表示編
集処理(s211)の前で行うようにしてもよい。
The counting process (s
A part of 205, s207, s209) may be performed before the display editing process (s211) described later.

【0037】図4は、データディクショナリ112が記
憶されているデータベース管理情報の一例である。ファ
イル定義情報は、データベースファイルのファイル名、
アドレス、レコード長、レコード数などを管理してい
る。バッファ定義情報は、データベースの共用バッファ
のバッファ名称、アドレス、バッファサイズ、バッファ
面数などを管理している。
FIG. 4 shows an example of database management information in which the data dictionary 112 is stored. The file definition information is the file name of the database file,
It manages addresses, record length, number of records, etc. The buffer definition information manages the buffer name, address, buffer size, number of buffer files, etc. of the shared buffer of the database.

【0038】上記のステップs204で、データベース
ファイルに関係するイベント情報を抽出するためには、
マクロトレース201のアドレス情報の各々をファイル
定義情報401の各アドレスと比較し、定義されている
アドレスのイベント情報のみを選択する。また、ステッ
プs206で、データベース共用バッファに関係するイ
ベント情報を抽出するためには、イベントトレース20
2のアドレス情報をバッファ定義情報402と比較し、
定義されているアドレスのイベント情報のみを選択す
る。さらに、ステップs208で、データベースのデー
タ操作に関するイベント情報を抽出するためには、イベ
ントトレース202のアドレス情報と、ファイル定義情
報401及びバッファ定義情報402のアドレスを比較
し、定義されているイベント情報のみを選択する。
In step s204, in order to extract the event information related to the database file,
Each address information of the macro trace 201 is compared with each address of the file definition information 401, and only the event information of the defined address is selected. Further, in step s206, in order to extract the event information related to the database shared buffer, the event trace 20
2 address information is compared with the buffer definition information 402,
Select only the event information of the defined address. Further, in step s208, in order to extract the event information regarding the data operation of the database, the address information of the event trace 202 is compared with the addresses of the file definition information 401 and the buffer definition information 402, and only the defined event information is obtained. Select.

【0039】イベント要因別の各々の処理後に、イベン
ト編集エリア102に記憶されているイベント編集情報
集のうち、対象となる全てのイベント情報の処理を終了
したか判定し(s210)、終了していない場合はステ
ップs201からの処理を繰り返す。
After each processing for each event factor, it is judged whether all the target event information of the event editing information stored in the event editing area 102 has been processed (s210), and the processing is completed. If not, the processing from step s201 is repeated.

【0040】対象となるイベント編集情報集にある全イ
ベント情報の処理が終了していれば(イベント情報の総
数はイベント編集エリア102のヘッダー部に管理)、
表示編集処理(s211)に移行する。ここでは、デー
タベース用イベント編集エリア103に格納されている
要因別のイベントトレース情報とパラメータの集計情報
を取り出し、集計情報は見易い表現の統計リストや統計
グラフの形式に編集して出力する。この編集は、データ
ディクショナリ112で記憶している関連タスク名やフ
ァイル名などの情報等も参照して行う。
If the processing of all the event information in the target event editing information collection is completed (the total number of event information is managed in the header part of the event editing area 102),
The process moves to the display editing process (s211). Here, event trace information for each factor and aggregated information of parameters stored in the database event editing area 103 are taken out, and the aggregated information is edited and output in the form of a statistical list or statistical graph in an easy-to-read expression. This editing is also performed by referring to information such as related task names and file names stored in the data dictionary 112.

【0041】図5は、データベースファイルに関する性
能評価情報のリスト形式による表示例で、ステップs2
11で編集されたものである。ファイル競合イベントト
レース情報501は、ステップs205で登録された測
定タスク別のファイル競合に関するイベント情報の時系
列で、ファイルの占有と占有解除のファイル名とタイミ
ング、占有待ちファイル名と占有中タスク名などを表示
している。
FIG. 5 shows a display example of the performance evaluation information regarding the database file in the form of a list.
It was edited in 11. The file contention event trace information 501 is a time series of event information related to file contention for each measurement task registered in step s205, such as file names and timings of file occupancy and occupancy release, occupancy waiting file names and occupying task names, etc. Is displayed.

【0042】ファイル競合統計情報502は、測定タス
ク(この例はTA1)の操作対象ファイル毎の統計情報
であり、占有回数及び占有時間の合計、占有中タスク
名、占有待ち回数、占有待ち発生率、占有待ち時間の合
計、待ち時間率などのパラメータを示している。
The file contention statistical information 502 is statistical information for each operation target file of the measurement task (TA1 in this example), and the total number of occupied times and occupied time, the name of the occupied task, the number of occupied wait times, the occupied wait occurrence rate. , The total occupied waiting time, the waiting time ratio, and other parameters.

【0043】ここで、占有待ち発生率とはファイル毎の
占有回数に対する占有待ち回数の割合を占有中タスク別
に百分率(%)で表したものであり、この割合が大きい
ほど対象タスクの性能が悪い。また、待ち時間率とはフ
ァイル毎の占有時間、占有待ち時間の合計に対する占有
待ち時間の割合を占有中タスク別に百分率(%)で表し
たものであり、この割合が大きいほど対象タスクの性能
が悪い。
Here, the occupancy wait occurrence rate is a ratio of the number of occupancy wait times to the number of occupancy times for each file expressed as a percentage (%) for each occupying task. The larger this ratio, the worse the performance of the target task. . The waiting time ratio is the ratio of the occupied wait time to the total occupied time and occupied wait time for each file, expressed as a percentage (%) for each occupying task. The higher this ratio, the better the performance of the target task. bad.

【0044】図6は、データベースファイルに関する性
能評価情報のグラフ形式による表示例で、ステップs2
11で編集されたものである。ファイル競合イベントト
レース情報601は、図5のリスト情報501を時間軸
に沿ってグラフ表示したもので、測定タスクによる各フ
ァイルの占有と占有待ちの状況が一見して認識でき、見
やすくなっている。ファイル競合統計情報602は、図
5のリスト情報502のうち、ファイル毎の占有回数
(実線)と待ち回数(点線)を棒グラフで示したもの
で、性能の悪い対象タスクとその要因が一見して判る。
同様に、ファイル毎の占有時間の合計と待ち時間の合計
を棒グラフに、あるいは、回数と時間の両方をグラフ表
示するようにしてもよい。
FIG. 6 shows a display example of the performance evaluation information regarding the database file in the form of a graph.
It was edited in 11. The file conflict event trace information 601 is a graphical representation of the list information 501 of FIG. 5 along the time axis, and the status of each file occupied by the measurement task and the wait status can be recognized at a glance and is easy to see. The file contention statistical information 602 is a bar graph showing the number of occupied times (solid line) and the number of waits (dotted line) for each file in the list information 502 of FIG. 5, and at first glance the target task with poor performance and its factors. I understand.
Similarly, the total occupied time and the total waiting time for each file may be displayed in a bar graph, or both the number of times and the time may be displayed in a graph.

【0045】このデータベースファイルに関する性能評
価情報で、たとえばあるファイルの占有待ち発生率が高
くなるのは、測定対象タスクによる当該ファイルの占有
時間が長く、他のタスクとの競合が多発するためであ
り、測定対象タスクの性能が悪いと評価できる。従っ
て、当該タスクの起動タイミングをずらして競合する時
間を減少したり、データベースの操作を見直して1回の
ファイル占有時間を短くしてタスク間の並行処理性を向
上させる。
In the performance evaluation information relating to the database file, the reason why the occupation wait occurrence rate of a certain file is high is that the measurement target task occupies the relevant file for a long time and competition with other tasks frequently occurs. , It can be evaluated that the performance of the measurement target task is poor. Therefore, the conflicting time can be reduced by shifting the start timing of the task, or the operation of the database can be reviewed to shorten the file occupancy time once and improve the parallelism between tasks.

【0046】図7は、データベース共用バッファに関す
る性能評価情報のリスト形式による表示例である。共用
バッファ競合イベントトレース情報701は、ステップ
s207で登録された測定タスク別のバッファ競合に関
するイベント情報の時系列で、共用バッファの占有、占
有解除のタイミング、バッファ名、操作ファイル名など
や、占有待ちにおける占有中ファイル名などの各状況を
表示したものである。
FIG. 7 shows a display example of the performance evaluation information regarding the database shared buffer in the form of a list. The shared buffer contention event trace information 701 is a time series of event information related to buffer contention for each measurement task registered in step s207, and occupies the shared buffer, release timing, buffer name, operation file name, and waits for occupancy. This is a display of each situation such as the occupied file name in.

【0047】共用バッファ競合統計情報702は、測定
タスク(TA1)の操作対象共用バッファ毎の統計情報
であり、操作ファイル別の占有回数と占有時間の合計、
占有中タスク名、占有待ち回数、占有待ち発生率、占有
待ち時間の合計、待ち時間率などのパラメータを表示し
たものである。
The shared buffer contention statistical information 702 is statistical information for each operation-target shared buffer of the measurement task (TA1), and is the total number of occupied times and occupied time for each operation file,
It displays parameters such as the name of the task being occupied, the number of waits for occupation, the occurrence rate of occupation waits, the total occupation wait time, and the wait rate.

【0048】ここで、占有待ち発生率とは共用バッファ
毎の占有回数に対する占有待ちが発生した割合を操作フ
ァイル、占有中タスク別に百分率(%)で表したもので
あり、この割合が大きいほど対象タスクの性能が悪いと
評価できる。また、待ち時間率とは共用バッファ毎の占
有時間、占有待ち時間の合計に対する占有待ち時間の割
合を操作ファイル、占有中タスク別に百分率(%)で表
したものであり、この割合が大きいほど対象タスクの処
理性能が低下する。
Here, the occupancy wait occurrence rate is a ratio of the occupancy wait occurrence with respect to the number of times of occupancy of each shared buffer, expressed as a percentage (%) for each operation file and occupied task. It can be evaluated that the task performance is poor. The waiting time ratio is the occupied time for each shared buffer, and the ratio of the occupied waiting time to the total occupied waiting time is expressed as a percentage (%) for each operation file and occupying task. The larger this ratio, the more the target. The processing performance of the task decreases.

【0049】図8は、データベース共用バッファに関す
る性能評価情報のグラフ形式による表示例である。共用
バッファ競合イベントトレース情報801は、図7のリ
スト情報701を時間軸に沿ってグラフ表示したもの
で、測定タスクにおける各バッファの占有と占有待ちの
状況が視角的に把握でき、見やすくなっている。共用バ
ッファ競合統計情報802は、図7のリスト情報702
のうち、共用バッファ毎の占有回数あるいは占有合計時
間(実線)と待ち回数あるいは待ち合計時間(点線)を
棒グラフに示したもので、共用バッファの占有待ち状況
が一見して判る。
FIG. 8 is a display example of the performance evaluation information regarding the database shared buffer in a graph format. The shared buffer contention event trace information 801 is a graphical display of the list information 701 of FIG. 7 along the time axis, and the occupancy of each buffer and the status of occupancy waiting in the measurement task can be grasped visually, making it easy to see. . The shared buffer contention statistical information 802 is the list information 702 of FIG.
Of these, a bar graph shows the number of occupied times or total occupied time (solid line) and the number of waiting times or total wait time (dotted line) for each shared buffer, and the occupation waiting status of the shared buffer can be seen at a glance.

【0050】このデータベース共用バッファに関する性
能評価情報で、たとえばある共用バッファの占有待ち時
間率が高くなるのは、あるファイルによる当該バッファ
の使用が頻繁なためであり、共用バッファの構成に劣化
の一因があると評価できる。従って、競合の多発してい
るバッファを複数に分割しなおして、共用バッファの占
有待ち時間を減少する。
In the performance evaluation information on the database shared buffer, for example, the occupied waiting time ratio of a certain shared buffer is high because a certain file is frequently used by the certain shared buffer, which causes deterioration of the configuration of the shared buffer. It can be evaluated as having a cause. Therefore, the buffer in which the contention frequently occurs is redivided into a plurality of buffers to reduce the occupied waiting time of the shared buffer.

【0051】図9は、データベース入出力操作に関する
性能評価情報のリスト形式による表示例である。入出力
イベントトレース情報901は、ステップs209で登
録された測定タスク別のデータベース操作に関する入出
力情報の時系列で、ファイルの占有、占有解除、共用バ
ッファの占有、占有解除、データ操作種別(参照、更
新)、I/Oなどのイベント内容と、そのタイミングな
どが示されている。I/Oは、補助記憶装置に対する入
出力の発生を示す。
FIG. 9 shows a display example of the performance evaluation information regarding the database input / output operation in the form of a list. The input / output event trace information 901 is a time series of input / output information relating to database operation for each measurement task registered in step s209, and is used for file occupancy, occupancy release, shared buffer occupancy, occupancy release, and data operation type (see, (Update), event contents such as I / O, and the timing thereof are shown. I / O indicates the occurrence of input / output to / from the auxiliary storage device.

【0052】入出力統計情報902は、測定タスク(T
A1)における操作対象バッファ及び操作対象ファイル
毎の統計情報であり、ファイル操作回数とI/O回数及
びヒット率などのパラメータを表示している。ここで、
ヒット率とは、ファイルの操作回数に対して必要なデー
タが既に共用バッファ上に読み込まれている割合、つま
りI/Oが発生しない割合を百分率(%)で表したもの
である。ヒット率が低いほど、バッファの使用効率や性
能が悪い。
The input / output statistical information 902 is the measurement task (T
It is statistical information for each operation target buffer and operation target file in A1), and displays parameters such as the number of file operations, the number of I / O operations, and the hit rate. here,
The hit ratio is a ratio (%) of the ratio of necessary data already read into the shared buffer to the number of file operations, that is, the ratio of no I / O. The lower the hit rate, the worse the buffer usage efficiency and performance.

【0053】図10は、データベース入出力操作に関す
る性能評価情報のグラフ形式による表示例である。入出
力イベントトレース情報1001は、図9のリスト情報
901を時間軸に沿ってグラフ表示したもので、測定タ
スクにおけるファイルの占有、占有解除のタイミング、
共用バッファの占有、占有解除のタイミング、データ操
作と補助記憶装置の入出力発生タイミングの関係を表示
したものである。同図では、ファイルAAAが占有中の
ある期間について、共用バッファBUF1の占有/解
除、データの参照/更新、補助記憶装置の入力/出力の
時間関係がグラフ化されている。
FIG. 10 is a display example of the performance evaluation information regarding the database input / output operation in a graph format. The input / output event trace information 1001 is a graphical display of the list information 901 in FIG. 9 along the time axis, and shows the timing of file occupancy and occupancy release in the measurement task.
It shows the relationship between the occupation of the shared buffer, the timing of releasing the occupation, the data operation and the input / output generation timing of the auxiliary storage device. In the figure, the time relationship of occupancy / release of the shared buffer BUF1, data reference / update, and input / output of the auxiliary storage device is graphed for a certain period during which the file AAA is occupied.

【0054】入出力統計情報1002は、図9のリスト
情報902のうち、測定タスク(TA1)における操作
対象ファイル及び使用している共用バッファ毎のファイ
ル操作回数(実線)、補助記憶装置との入出力回数(点
線)及びヒット率(1点鎖線)を表示したものである。
これより、ファイルBBBが占有しているときのBUF
1のヒット率の悪さが一見してわかる。
The input / output statistic information 1002 is included in the list information 902 of FIG. 9 and includes the operation target file in the measurement task (TA1), the number of file operations for each shared buffer used (solid line), and the auxiliary storage device. The number of outputs (dotted line) and the hit rate (dotted line) are displayed.
From this, BUF when the file BBB is occupied
You can see at a glance how bad the hit rate is.

【0055】このデータベース入出力操作に関する性能
評価情報で、たとえばファイル操作に対するヒット率が
低下するのは、必要なデータが共用バッファ上にないこ
とが多く、補助記憶装置に対するI/O発生が多発する
ためで、性能劣化の一因は共用バッファの容量不足と評
価できる。従って、データベースの入出力操作の内容に
応じて、共用バッファの1面の容量を増やしたり、共用
バッファの面数を拡張することで、ヒット率を高めて処
理性能を向上することができる。
In the performance evaluation information relating to the database input / output operation, for example, the hit rate for the file operation is lowered because the necessary data is often not in the shared buffer and I / O to the auxiliary storage device frequently occurs. Therefore, one cause of the performance deterioration can be evaluated as the lack of capacity of the shared buffer. Therefore, the hit rate can be increased and the processing performance can be improved by increasing the capacity of one side of the shared buffer or expanding the number of sides of the shared buffer according to the contents of the input / output operation of the database.

【0056】以上、本実施例によれば、OSのイベント
情報からデータベース操作性能に関するイベント情報の
みを抽出し、データベース性能評価に必要なイベントト
レースを取得することがきる。また、イベントトレース
から複数のパラメータを集計し、性能評価の指標となる
統計情報を求めることができる。これらデータベース操
作用イベントトレースや統計情報は、リストやグラフの
形式によって見やすく表示し、性能評価あるいは性能劣
化の要因の究明を容易にしている。このように、データ
ベース操作性能と性能劣化の要因を客観的に評価できる
指標を提供して、処理性能を向上するためのアプリケー
ションプログラムやデータベースの改善対策を容易にし
ている。
As described above, according to the present embodiment, it is possible to extract only the event information relating to the database operation performance from the OS event information and acquire the event trace necessary for the database performance evaluation. In addition, a plurality of parameters can be aggregated from the event trace to obtain statistical information as an index for performance evaluation. These database operation event traces and statistical information are displayed in easy-to-read form in the form of lists and graphs to facilitate performance evaluation or investigation of the factors of performance deterioration. In this way, the index for objectively evaluating the factors of database operation performance and performance deterioration is provided to facilitate the improvement measures of the application program and the database for improving the processing performance.

【0057】以上、本発明のデータベース操作性能測定
方式の一実施例を、マルチタスク実行手段とデータベー
ス管理手段を有する通常の計算機システムに適用してき
た。しかし、プログラムのデバッグ装置など専用の処理
装置にも適用できることは言うまでもない。
As described above, one embodiment of the database operation performance measuring method of the present invention has been applied to a general computer system having a multitask executing means and a database managing means. However, it goes without saying that the invention can also be applied to a dedicated processing device such as a program debugging device.

【0058】[0058]

【発明の効果】本発明のデータベース操作性能測定方法
によれば、データベースのファイルや共用バッファの競
合あるいはデータベース入出力操作など、データベース
関連のイベント情報を抽出して内容が容易にわかるイベ
ントトレースを編集し、さらに性能評価に必要な複数の
パラメータを集計し、リストやグラフ形式の統計情報と
して提供できるので、データベース操作性能に関する定
量的な評価情報の取得が可能になり、データベース操作
性能の評価と性能劣化要因を定量的且つ、簡単に行える
効果がある。これにより、データベース操作性能向上対
策が容易になる。
According to the database operation performance measuring method of the present invention, the event trace related to the database such as the contention of the database file or the shared buffer or the database input / output operation is edited to edit the event trace whose contents can be easily understood. In addition, since multiple parameters required for performance evaluation can be aggregated and provided as statistical information in a list or graph format, it is possible to obtain quantitative evaluation information regarding database operation performance. There is an effect that the deterioration factor can be quantitatively and easily performed. This facilitates measures for improving database operation performance.

【0059】本発明のデータベース操作性能測定方法を
備えた計算機装置によれば、データベース操作性能の評
価と性能劣化要因を定量的に行える評価情報を取得し、
アプリケーションプログラムあるいはデータベース構成
を最適化して、処理性能を向上できる効果がある。
According to the computer system equipped with the database operation performance measuring method of the present invention, the evaluation information for evaluating the database operation performance and the performance deterioration factor can be obtained.
There is an effect that the processing performance can be improved by optimizing the application program or the database configuration.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例によるデータベース操作性能
測定手段を備えた計算機装置の構成図。
FIG. 1 is a configuration diagram of a computer device including a database operation performance measuring unit according to an embodiment of the present invention.

【図2】OSによって収集され、従来のイベント編集手
段によって編集された全体的なイベント情報集の一例を
示すリスト。
FIG. 2 is a list showing an example of an overall event information collection collected by an OS and edited by conventional event editing means.

【図3】実施例のデータベース性能測定手段の動作を説
明するフローチャート。
FIG. 3 is a flowchart for explaining the operation of the database performance measuring means according to the embodiment.

【図4】データディクショナリに定義されているデータ
ベース管理情報の一例を示すデータテーブル。
FIG. 4 is a data table showing an example of database management information defined in a data dictionary.

【図5】データベースファイル競合に関するイベントト
レース情報及び統計情報のリスト形式による表示例。
FIG. 5 is a display example of a list format of event trace information and statistical information related to database file conflict.

【図6】データベースファイル競合に関するイベントト
レース情報及び統計情報のリスト形式による表示例。
FIG. 6 is a display example of a list format of event trace information and statistical information related to database file conflict.

【図7】データベース共用バッファ競合に関するイベン
トトレース情報及び統計情報のリスト形式による表示
例。
FIG. 7 is a display example of a list format of event trace information and statistical information related to database shared buffer contention.

【図8】データベース共用バッファ競合に関するイベン
トトレース情報及び統計情報のグラフ形式による表示
例。
FIG. 8 is a display example of event trace information and statistical information related to database shared buffer contention in a graph format.

【図9】データベース入出力操作に関するイベントトレ
ース情報及び統計情報のリスト形式による表示例。
FIG. 9 is a display example of a list format of event trace information and statistical information related to database input / output operations.

【図10】データベース入出力操作に関するイベントト
レース情報及び統計情報のグラフ形式による表示例。
FIG. 10 is a display example in a graph format of event trace information and statistical information related to database input / output operations.

【符号の説明】[Explanation of symbols]

100…主記憶装置、101…イベント収集エリア、1
02…イベント編集エリア、103…データベース用イ
ベント編集エリア、104…共用バッファ、110…補
助記憶装置、111…データベース、112…データデ
ィクショナリ、113…アロケータマップ情報エリア、
120…中央処理装置(CPU)、121…入出力制御
部、122…マルチタスク実行部、123…データベー
ス管理部、124…イベント情報収集部、125…イベ
ント編集部、126…データベース用イベント編集部、
127…編集指示部、130…入出力装置、140…シ
ステムバス。
100 ... Main storage device, 101 ... Event collection area, 1
02 ... event editing area, 103 ... database event editing area, 104 ... shared buffer, 110 ... auxiliary storage device, 111 ... database, 112 ... data dictionary, 113 ... allocator map information area,
Reference numeral 120 ... Central processing unit (CPU), 121 ... Input / output control unit, 122 ... Multitask execution unit, 123 ... Database management unit, 124 ... Event information collecting unit, 125 ... Event editing unit, 126 ... Database event editing unit,
127 ... Edit instruction unit, 130 ... Input / output device, 140 ... System bus.

フロントページの続き (72)発明者 関 光平 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 (72)発明者 末木 雅夫 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 佐々木 新喜 茨城県日立市大みか町五丁目2番1号 日 立プロセスコンピュータエンジニアリング 株式会社内 (72)発明者 大脇 隆志 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内Front page continuation (72) Inventor Kohei Seki 5-2-1 Omika-cho, Hitachi-shi, Ibaraki Hitachi Process Computer Engineering Co., Ltd. (72) Masao Sueki 5-2-1 Omika-cho, Hitachi-shi, Ibaraki Incorporated company Hitachi Ltd. Omika factory (72) Inventor Shinki Sasaki 5-2-1, Omika-cho, Hitachi-shi, Ibaraki Hitachi Process Computer Engineering Co., Ltd. (72) Inventor Takashi Owaki Gomika-cho, Ibaraki 2-1-1, Ltd. Omika Factory, Hitachi Ltd.

Claims (14)

【特許請求の範囲】[Claims] 【請求項1】 複数のタスクが並行してデータベースを
操作する場合のデータベース操作性能の評価情報を求め
る方法において、 前記タスクの実行中にオペレーティングシステム(以
下、OSと略称)によって収集されるイベント情報を時
系列に格納し、 全タスクの実行後に、前記イベント情報を順次読みだし
て、タスク毎にデータベースのリソースや入力操作に関
わるデータベース関連イベント情報を抽出し、データベ
ース操作性能に関わる複数の評価パラメータを集計する
ことを特徴とするデータベース操作性能の測定方法。
1. A method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel, wherein event information collected by an operating system (hereinafter abbreviated as OS) during execution of the tasks. Are stored in time series, after the execution of all tasks, the event information is read in sequence, database related event information related to database resources and input operations is extracted for each task, and multiple evaluation parameters related to database operation performance are extracted. A method for measuring database operation performance, which comprises:
【請求項2】 複数のタスクが並行してデータベースを
操作する場合のデータベース操作性能の評価情報を求め
る方法において、 前記タスクの実行中にオペレーティングシステム(以
下、OSと略称)によって収集されるイベント情報を時
系列に格納し、 全タスクの実行後に、前記収集されたイベント情報は、
OSが管理するアロケータマップ情報を参照して、タス
ク名などが付加された編集イベント情報に編集され、 前記編集イベント情報を読みだして、タスク毎にデータ
ベースのリソースや操作に関わるデータベース関連イベ
ント情報を抽出し、データベース操作性能に関わる複数
の評価パラメータを集計することを特徴とするデータベ
ース操作性能の測定方法。
2. A method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel, wherein event information collected by an operating system (hereinafter abbreviated as OS) during execution of the tasks. Are stored in chronological order, and after the execution of all tasks, the collected event information is
The allocator map information managed by the OS is referenced to edit the edit event information to which a task name or the like is added, and the edit event information is read out to obtain database-related event information related to database resources or operations for each task. A method for measuring database operation performance, which comprises extracting and aggregating a plurality of evaluation parameters relating to database operation performance.
【請求項3】 請求項1または2において、 前記データベース関連イベント情報の抽出は、データベ
ース構造を記憶しているデータディクショナリを参照し
て行うことを特徴とするデータベース操作性能の測定方
法。
3. The database operation performance measuring method according to claim 1, wherein the database-related event information is extracted by referring to a data dictionary that stores a database structure.
【請求項4】 請求項1、2または3において、 前記複数の評価パラメータは、前記イベント情報の発生
要因別に集計され、 前記発生要因がデータベースファイルの競合の場合は、
ファイル名毎の占有回数と待ち回数および/または合計
占有時間と合計待ち時間を含み、 前記発生要因が共用バッファの競合の場合は、バッファ
名毎の占有回数と待ち回数および/または合計占有時間
と合計待ち時間を含み、 前記発生要因がデータベース入出力操作の場合は、バッ
ファ名とファイル名毎の操作回数と補助記憶装置入出力
回数(以下、I/O回数と略称)を含むことを特徴とす
るデータベース操作性能の測定方法。
4. The evaluation parameter according to claim 1, 2 or 3, wherein the plurality of evaluation parameters are aggregated according to the cause of occurrence of the event information, and when the cause of occurrence is a database file conflict,
Includes the number of times of occupancy and the number of waits for each file name, and / or the total time of occupancy and the total waiting time. If the occurrence factor is a database input / output operation, the total wait time is included, and the number of operations for each buffer name and file name and the number of input / output times for auxiliary storage (hereinafter abbreviated as I / O times) are included. A method for measuring database operation performance.
【請求項5】 請求項4において、 前記評価パラメータは、データベース操作性能を定量的
に示す指標情報を含み、 前記データベースファイルの
競合の場合には、前記指標情報は前記ファイルの占有回
数と待ち回数の比によるファイル待ち発生率および/ま
たは前記ファイルの合計占有時間と合計待ち時間の比に
よるファイル待ち時間率を、 前記共用バッファの競合の場合には、前記指標情報は前
記共用バッファの占有回数と待ち回数の比によるバッフ
ァ待ち発生率および/または前記共用バッファの合計占
有時間と合計待ち時間の比によるファイル待ち時間率
を、 前記データベース入出力操作の場合には、前記指標情報
は前記操作回数と前記I/O回数の比によるヒット率
を、それぞれ算出することを特徴とするデータベース操
作性能の測定方法。
5. The evaluation parameter according to claim 4, wherein the evaluation parameter includes index information that quantitatively indicates database operation performance, and in the case of contention of the database file, the index information is the number of times the file is occupied and the number of waits. The ratio of the file waiting occurrence rate and / or the file waiting time ratio by the ratio of the total occupied time of the file and the total waiting time, and in the case of contention for the shared buffer, the index information is the number of times the shared buffer is occupied. In the case of the database input / output operation, the index information is the number of operations and the buffer wait occurrence rate according to the ratio of the number of wait times and / or the file waiting time ratio according to the ratio of the total occupied time of the shared buffer and the total wait time. The hit ratio is calculated by the ratio of the I / O counts. Constant method.
【請求項6】 請求項1〜請求項5のいずれか1項にお
いて、 前記データベース関連イベント情報のイベントトレース
および/または前記評価パラメータの統計情報を編集し
て出力することを特徴とするデータベース操作性能の測
定方法。
6. The database operation performance according to claim 1, wherein the event trace of the database related event information and / or the statistical information of the evaluation parameter is edited and output. Measuring method.
【請求項7】 請求項6において、 前記イベントトレースおよび/または前記統計情報は、
リストまたはグラフの形式に編集して出力することを特
徴とするデータベース操作性能の測定方法。
7. The event trace and / or the statistical information according to claim 6,
A method for measuring database operation performance, characterized by editing in a list or graph format and outputting.
【請求項8】 複数のタスクが並行してデータベースを
操作する場合のデータベース操作性能の評価情報を求め
る方法において、 OSが発行し、収集するイベント情報と、データベース
構造を記憶しているデータディクショナリの定義情報を
基に、測定対象タスクについて、データベース操作によ
るファイルの占有と解放の発生状況、タスク間のファイ
ル競合で発生するファイル解放待ちの状況をイベントト
レースとして編集すると共に、ファイル単位に占有回数
と待ち回数および/または占有時間と待ち時間を求めて
統計情報として編集し、表示することを特徴とするデー
タベース操作性能の測定方法。
8. A method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel, comprising: event information issued and collected by an OS; and a data dictionary storing a database structure. Based on the definition information, for the measurement target task, edit the status of file occupancy and release due to database operations and the file release wait status that occurs due to file contention between tasks as an event trace. A method for measuring database operation performance, characterized in that the number of waits and / or the occupied time and the waiting time are obtained and edited and displayed as statistical information.
【請求項9】 複数のタスクが並行してデータベースを
操作する場合のデータベース操作性能の評価情報を求め
る方法において、 OSが発行し、収集するイベント情報と、データベース
構造を記憶しているデータディクショナリの定義情報を
基に、測定対象タスクについて、データベース操作によ
る共用バッファの占有、解放の発生状況、タスク間の共
用バッファ競合で発生する共用バッファ解放待ちの状況
をイベントトレースとして編集すると共に、共用バッフ
ァ単位にファイル毎の共用バッファ占有回数と待ち回数
および/または共用バッファ占有時間と待ち時間を求め
て統計情報として編集し、表示することを特徴とするデ
ータベース操作性能の測定方法。
9. A method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel, comprising: event information issued and collected by an OS; and a data dictionary storing a database structure. Based on the definition information, edit the occupancy and release status of the shared buffer due to database operations and the shared buffer release wait status that occurs due to shared buffer contention between tasks for the measurement target task, and edit it as an event trace. A method for measuring database operation performance, characterized in that the shared buffer occupancy count and wait count for each file and / or the shared buffer occupancy time and wait time are obtained, and edited and displayed as statistical information.
【請求項10】 複数のタスクが並行してデータベース
を操作する場合のデータベース操作性能の評価情報を求
める方法において、 OSが発行し、収集するイベント情報と、データベース
構造を記憶しているデータディクショナリの定義情報を
基に、測定対象タスクについて、データベース入出力操
作によるファイルや共用バッファの操作状況や補助記憶
装置に対する入出力(以下、I/Oと略称)の発生状況
をイベントトレース情報として編集すると共に、共用バ
ッファ単位に参照処理回数、追加更新処理回数及び補助
記憶装置に対するIO回数を求めて統計情報とし編集
し、表示することを特徴とするデータベース操作性能の
測定方法。
10. A method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel, comprising: event information issued and collected by an OS; and a data dictionary storing a database structure. Based on the definition information, for the measurement target task, the operation status of files and shared buffers by the database input / output operation and the input / output status (hereinafter abbreviated as I / O) with respect to the auxiliary storage device are edited as event trace information. A method of measuring database operation performance, characterized in that the number of reference processes, the number of additional update processes, and the number of IOs to the auxiliary storage device are calculated for each shared buffer, and the statistical information is edited and displayed.
【請求項11】 複数のタスクが並行してデータベース
を操作する場合のデータベース操作性能の評価情報を求
める方法において、 前記タスクの実行中にオペレーティングシステム(以
下、OSと略称)によって収集されるイベント情報を時
系列に格納し、 全タスクの実行後に、前記収集されたイベント情報は、
OSが管理するアロケータマップ情報を参照して、タス
ク名などが付加された編集イベント情報に編集され、 前記編集イベント情報の中の測定対象タスクの情報につ
いて、イベント発生要因であるファイル競合、バッファ
競合またはその他に区分し、各発生要因毎にデータベー
ス構造を記憶しているデータディクショナリを参照して
データベース関連イベント情報を抽出し、イベントトレ
ースを編集すると共にデータベース操作性能に関わる複
数の評価パラメータを集計し、該評価パラメータと該複
数のパラメータから求まるファイル及びバッファの待ち
発生率および/または待ち時間率、とデータベース入出
力操作のヒット率を含む統計情報を編集し、前記イベン
トトレースおよび/または前記統計情報をリストまたは
グラフの形式で表示することを特徴とするデータベース
操作性能の測定方法。
11. A method for obtaining evaluation information of database operation performance when a plurality of tasks operate a database in parallel, wherein event information collected by an operating system (hereinafter abbreviated as OS) during execution of the tasks. Are stored in chronological order, and after the execution of all tasks, the collected event information is
The allocator map information managed by the OS is referenced to edit the edit event information to which the task name and the like are added. Regarding the information of the measurement target task in the edit event information, file contention or buffer contention that is the event occurrence factor Or, divide it into other categories, extract the database related event information by referring to the data dictionary that stores the database structure for each cause, edit the event trace, and compile multiple evaluation parameters related to database operation performance. Editing statistical information including a wait occurrence rate and / or a waiting rate of files and buffers obtained from the evaluation parameter and the plurality of parameters, and a hit rate of a database input / output operation, and the event trace and / or the statistical information. Display in list or graph format A method for measuring database operation performance, characterized by:
【請求項12】 中央処理装置(以下、CPUと略称)
と、主メモリと、データベースを格納する補助記憶装置
と、ディスプレイをもつ入出力装置を備え、複数のタス
クが並行してデータベースを操作できる計算機装置にお
いて、 前記タスクの実行中にオペレーティングシステム(以
下、OSと略称)によって収集されるイベント情報を、
全タスクの実行後にOSが管理するアロケータマップ情
報を参照して、タスク名などが付加された編集イベント
情報に編集して記憶するイベント編集手段と、前記編集
イベント情報を読みだして、測定対象タスク毎にデータ
ベースのリソースや操作に関わるデータベース関連イベ
ント情報を抽出し、イベントトレースを編集すると共
に、データベース操作性能に関わる複数の評価パラメー
タを集計して統計情報を編集するデータベース用イベン
ト編集手段とを持つ、データベース操作性能測定手段を
設けることを特徴とする計算機装置。
12. Central processing unit (hereinafter abbreviated as CPU)
In a computer device having a main memory, an auxiliary storage device for storing a database, and an input / output device having a display, and in which a plurality of tasks can operate the database in parallel, an operating system (hereinafter, Event information collected by OS)
An event editing unit that refers to the allocator map information managed by the OS after execution of all tasks and edits and stores the edited event information with the task name and the like, and the task to be measured by reading the edited event information. Database-related event information related to database resources and operations is extracted for each, and event traces are edited, as well as a database event editing means that edits statistical information by aggregating multiple evaluation parameters related to database operation performance. A computer device provided with database operation performance measuring means.
【請求項13】 請求項12において、 前記データベース操作性能測定手段の起動を指示する編
集指示手段を持つことを特徴とする計算機装置。
13. The computer apparatus according to claim 12, further comprising edit instructing means for instructing activation of the database operation performance measuring means.
【請求項14】 請求項13において、 前記編集指示手段は、イベント情報の発生要因を設定
し、前記イベントトレースと前記統計情報は設定された
発生要因について編集することを特徴とする計算機装
置。
14. The computer apparatus according to claim 13, wherein the edit instruction unit sets a cause of event information, and the event trace and the statistical information edit the set cause.
JP7121279A 1995-05-19 1995-05-19 Measuring method for data base operating performance and computer device Pending JPH08314767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7121279A JPH08314767A (en) 1995-05-19 1995-05-19 Measuring method for data base operating performance and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7121279A JPH08314767A (en) 1995-05-19 1995-05-19 Measuring method for data base operating performance and computer device

Publications (1)

Publication Number Publication Date
JPH08314767A true JPH08314767A (en) 1996-11-29

Family

ID=14807327

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7121279A Pending JPH08314767A (en) 1995-05-19 1995-05-19 Measuring method for data base operating performance and computer device

Country Status (1)

Country Link
JP (1) JPH08314767A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003006003A (en) * 2001-06-18 2003-01-10 Mitsubishi Electric Corp Dma controller and semiconductor integrated circuit
KR100481130B1 (en) * 2002-11-08 2005-04-07 주식회사 웨어밸리 Database System Monitoring Method Without Connecting The Database System
WO2009104344A1 (en) * 2008-02-22 2009-08-27 日本電気株式会社 Information technology (it) system behavior measurement and analysis system and method therefor
WO2014109076A1 (en) * 2013-01-08 2014-07-17 株式会社 東芝 Status display device, program, and status display system
CN107784721A (en) * 2017-09-22 2018-03-09 广东履安实业有限公司 The method and system of the self-defined gate inhibition's event title of gate control system and event category
KR20210019758A (en) * 2019-08-13 2021-02-23 주식회사 셀파소프트 Method for precisely calculating DB performance data and DB monitoring device for calculating DB performance data

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003006003A (en) * 2001-06-18 2003-01-10 Mitsubishi Electric Corp Dma controller and semiconductor integrated circuit
KR100481130B1 (en) * 2002-11-08 2005-04-07 주식회사 웨어밸리 Database System Monitoring Method Without Connecting The Database System
WO2009104344A1 (en) * 2008-02-22 2009-08-27 日本電気株式会社 Information technology (it) system behavior measurement and analysis system and method therefor
US8495652B2 (en) 2008-02-22 2013-07-23 Nec Corporation IT system behavior measurement and analysis system and method thereof
JP5440935B2 (en) * 2008-02-22 2014-03-12 日本電気株式会社 IT system behavior measurement and analysis system and method thereof
WO2014109076A1 (en) * 2013-01-08 2014-07-17 株式会社 東芝 Status display device, program, and status display system
JP2014134844A (en) * 2013-01-08 2014-07-24 Toshiba Corp Electronic apparatus, program, and state display system
CN107784721A (en) * 2017-09-22 2018-03-09 广东履安实业有限公司 The method and system of the self-defined gate inhibition's event title of gate control system and event category
KR20210019758A (en) * 2019-08-13 2021-02-23 주식회사 셀파소프트 Method for precisely calculating DB performance data and DB monitoring device for calculating DB performance data

Similar Documents

Publication Publication Date Title
JP4107543B2 (en) Patent analysis data processing and patent map automatic generation method and recording medium for storing program therefor
JP3501385B2 (en) Job execution order determination method
JP3181994B2 (en) How to automatically create job flow specifications
KR100337748B1 (en) A method and apparatus for structured memory analysis of data processing systems and applications
EP3456360B1 (en) Device and method for tuning relational database
US20150033233A1 (en) Job delay detection method and information processing apparatus
JP2007102475A (en) Test case extraction device, test case extraction program, and test case extraction method for software system
JP5040396B2 (en) Web page search program, method, and apparatus
US20070150870A1 (en) Method and apparatus for context oriented computer program tracing and visualization
JPH08314767A (en) Measuring method for data base operating performance and computer device
CN113986954B (en) User event acquisition method and device, intelligent terminal and readable storage medium
CN115859935A (en) Data analysis report template generation system and method based on index library
CN112100036B (en) Page performance monitoring method and system based on PaaS front-end engine
JP2000048024A (en) Structured document processor
JP2005327039A (en) Data analysis support program and program storage medium
JP3464159B2 (en) Test specification creation device and storage medium storing the program
US5819287A (en) Database driven automatic program production system
CN112835774A (en) Visualization method and device for performance of display card, equipment and computer-readable storage medium
JP2001216182A (en) Display device for use state of memory
JPH05298155A (en) System evaluating and analyzing device
JP2002230235A (en) Disaster countermeasure support system
CN117010803A (en) Method and apparatus for displaying change state of part and storage medium
JP3305782B2 (en) Software standardization method and software product analysis method
KR20230006998A (en) Method and apparatus for calculating a function point of software
JPH05274190A (en) Work station operating information analyzing system