JPH11296416A - Load analysis device and load analysis method for computer system and storage medium - Google Patents

Load analysis device and load analysis method for computer system and storage medium

Info

Publication number
JPH11296416A
JPH11296416A JP10120153A JP12015398A JPH11296416A JP H11296416 A JPH11296416 A JP H11296416A JP 10120153 A JP10120153 A JP 10120153A JP 12015398 A JP12015398 A JP 12015398A JP H11296416 A JPH11296416 A JP H11296416A
Authority
JP
Japan
Prior art keywords
processing
load
analysis
application program
computer system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP10120153A
Other languages
Japanese (ja)
Inventor
Kenji Kawahara
健次 河原
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.)
Nippon Steel Corp
Original Assignee
Nippon Steel 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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP10120153A priority Critical patent/JPH11296416A/en
Publication of JPH11296416A publication Critical patent/JPH11296416A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it possible to highly accurately calculate a load of an application program. SOLUTION: This device is provided with a source code input means 21 for inputting into a device an application program for an object system which performs a load analysis, a structural analysis means 22 for detecting a loop level within the application program, a processing instruction utility number tabulation means 23 for tabulating the number of processing instruction utility for every loop level detected by this structural analysis means 22, a processing instruction use number calculation means 24 for calculating the number of processing instruction use for every loop level, and a load calculation means 30 for performing a load calculation on the basis of the number of processing instruction use of each application program calculated by this processing instruction use number calculation means 24. Here, the management of a computer system is allowed to be highly accurately performed by performing a load analysis of the computer system on the basis of the extracted number of processing instructions.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータシス
テムの負荷分析装置及び方法並びに記憶媒体に係わり、
特に、コンピュータシステムの負荷を各利用分野での利
用内容に沿って高精度に分析するために用いて好適なも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a load analysis device and method for a computer system, and a storage medium.
In particular, the present invention is suitable for use in analyzing the load of a computer system with high accuracy in accordance with the contents of use in each field of use.

【0002】[0002]

【従来の技術】コンピュータシステムにおいて、稼働中
のコンピュータシステムの負荷は処理の応答性に大きく
影響するので、負荷分析を行うことはコンピュータシス
テムを管理する上で重要な要素である。中でも、アプリ
ケーションプログラム毎の負荷を分析することは、コン
ピュータシステムにおける処理の応答性を向上させる対
策を施すためには不可欠であった。そこで、従来よりア
プリケーションプログラムの行数を求め、上記行数から
上記アプリケーションプログラムの大きさ(容量)を計
算して負荷を求めていた。
2. Description of the Related Art In a computer system, the load of a running computer system greatly affects the responsiveness of processing. Therefore, performing load analysis is an important factor in managing the computer system. Above all, analyzing the load for each application program was indispensable for taking measures to improve the responsiveness of processing in the computer system. Therefore, conventionally, the number of lines of the application program is obtained, and the size (capacity) of the application program is calculated from the number of lines to obtain the load.

【0003】[0003]

【発明が解決しようとする課題】処理の応答性に影響す
る負荷の大きさは、上記アプリケーションプログラムの
容量には必ずしも比例しない。また、従来のアプリケー
ションプログラムの容量から負荷を求める手法の場合に
は、同一の処理を複数回にわたって繰り返すループにつ
いて考慮されていなかった。
The magnitude of the load affecting the responsiveness of processing is not always proportional to the capacity of the application program. Further, in the case of a conventional method of obtaining a load from the capacity of an application program, a loop in which the same processing is repeated a plurality of times has not been considered.

【0004】このため、従来はコンピュータシステムの
負荷分析を行っても、その分析結果の精度が悪かったの
で、処理の応答性を正確に予測することができない問題
があった。本発明は上述の問題点にかんがみ、アプリケ
ーションプログラムの負荷を高精度に計算できるように
することを目的とする。
[0004] Therefore, conventionally, even if a load analysis of a computer system is performed, the accuracy of the result of the analysis is poor, so that there has been a problem that the responsiveness of processing cannot be accurately predicted. The present invention has been made in view of the above-described problem, and has as its object to enable calculation of the load of an application program with high accuracy.

【0005】[0005]

【課題を解決するための手段】本発明のコンピュータシ
ステムの負荷分析装置は、負荷分析を行う対象システム
のアプリケーションプログラムを装置内部に入力するソ
ースコード入力手段と、上記ソースコード入力手段によ
って入力された各アプリケーションプログラムを解析し
て処理命令の使用数を抽出するソース解析手段と、上記
ソース解析手段によって抽出された各アプリケーション
プログラムの処理命令使用数に基づいて負荷計算を行う
負荷計算手段とを具備することを特徴としている。
According to the present invention, there is provided a load analyzing apparatus for a computer system, comprising: a source code inputting means for inputting an application program of a target system for performing a load analysis into the apparatus; Source analysis means for analyzing each application program to extract the number of processing instructions used, and load calculation means for performing load calculation based on the number of processing instructions used for each application program extracted by the source analysis means It is characterized by:

【0006】また、本発明のコンピュータシステムの負
荷分析装置の他の特徴とするところは、上記ソース解析
手段によって抽出された各アプリケーションプログラム
の処理命令の使用数を記憶する記憶手段を具備すること
を特徴としている。
Another feature of the load analyzing apparatus for a computer system according to the present invention is that the load analyzing apparatus further comprises a storage means for storing the number of processing instructions of each application program extracted by the source analyzing means. Features.

【0007】また、本発明のコンピュータシステムの負
荷分析装置のその他の特徴とするところは、上記ソース
解析手段は、上記ソースコード入力手段によって入力さ
れた各アプリケーションプログラム中にあるループレベ
ルを検出する構造解析手段と、上記構造解析手段によっ
て検出されたループレベル毎の処理命令使用数を集計す
る処理命令使用数集計手段と、上記処理命令使用数集計
手段によって集計された結果に基づいて、ループレベル
毎の処理命令使用数を算出する処理命令使用数算出手段
とからなることを特徴としている。
Another feature of the load analysis device for a computer system according to the present invention is that the source analysis means detects a loop level in each application program input by the source code input means. Analyzing means, processing instruction usage number totalizing means for totalizing the processing instruction usage number for each loop level detected by the structure analysis means, and a loop instruction for each loop level based on the result totalized by the processing instruction usage number totaling means. And a processing instruction usage number calculating means for calculating the processing instruction usage number.

【0008】また、本発明のコンピュータシステムの負
荷分析装置のその他の特徴とするところは、上記処理命
令文は、「定数、変数代入文」、「四則演算」、「条件
文」、「GO TO文」、「サブルーチン CALL」
の5つであることを特徴としている。
Another feature of the load analysis device for a computer system according to the present invention is that the processing instruction statement includes "constant and variable assignment statements", "four arithmetic operations", "conditional statements", "GO TO" Sentence "," Subroutine CALL "
It is characterized by five.

【0009】また、本発明のコンピュータシステムの負
荷分析装置のその他の特徴とするところは、上記負荷計
算手段は、処理命令使用数から処理時間を求め、上記処
理時間から上記入力されたアプリケーションプログラム
の負荷計算を行うことを特徴としている。
Another feature of the load analysis device of the computer system of the present invention is that the load calculation means obtains a processing time from the number of processing instructions used, and obtains the processing time of the input application program from the processing time. It is characterized in that load calculation is performed.

【0010】本発明のコンピュータシステムの負荷分析
方法は、負荷分析を行う対象システムの複数のアプリケ
ーションプログラムを装置内部に読み込むソースコード
入力処理と、上記ソースコード入力処理によって入力さ
れた各アプリケーションプログラムを解析して処理命令
の使用数を抽出するソース解析処理と、上記ソース解析
処理によって抽出された各アプリケーションプログラム
の処理命令の使用数を記憶手段に記憶する記憶処理と、
上記ソース解析処理によって抽出された各アプリケーシ
ョンプログラムの処理命令の使用数に基づいて負荷を計
算する負荷計算処理とを行うことを特徴としている。
A load analysis method for a computer system according to the present invention includes a source code input process for loading a plurality of application programs of a target system for load analysis into an apparatus, and analyzing each application program input by the source code input process. Source analysis processing for extracting the number of processing instructions used, and storage processing for storing the number of processing instructions used for each application program extracted by the source analysis processing in storage means;
And a load calculation process for calculating a load based on the number of used processing instructions of each application program extracted by the source analysis process.

【0011】本発明のコンピュータシステムの負荷分析
方法の他の特徴とするところは、上記ソース解析処理
は、上記ソースコード入力処理によって入力された各ア
プリケーションプログラム中にあるループレベルを検出
する構造解析処理と、上記構造解析処理によって検出さ
れたループレベル毎の処理命令使用数を集計する処理命
令使用数集計処理と、上記処理命令使用数集計処理によ
って集計された結果に基づいて、ループレベル毎の処理
命令使用数を算出する処理命令使用数算出処理とを行う
ことを特徴としている。
Another feature of the load analysis method for a computer system according to the present invention is that the source analysis processing is a structural analysis processing for detecting a loop level in each application program input by the source code input processing. And a processing instruction usage count totalizing processing for totalizing the processing instruction usage count for each loop level detected by the structural analysis processing, and a processing for each loop level based on the result totalized by the processing instruction usage count totaling processing. A process of calculating the number of instructions used is performed.

【0012】本発明のコンピュータシステムの負荷分析
方法のその他の特徴とするところは、上記処理命令文
は、「定数、変数代入文」、「四則演算」、「条件
文」、「GO TO文」、「サブルーチン CALL」
の5つであることを特徴としている。
Another feature of the load analysis method for a computer system according to the present invention is that the processing instruction statement includes a "constant and variable assignment statement", an "arithmetic operation", a "conditional statement", and a "GO TO statement". , "Subroutine CALL"
It is characterized by five.

【0013】本発明のコンピュータシステムの負荷分析
方法のその他の特徴とするところは、上記負荷計算処理
は、処理命令使用数から処理時間を求め、上記処理時間
から上記入力されたアプリケーションプログラムの負荷
計算を行う処理であることを特徴としている。
Another feature of the load analysis method for a computer system of the present invention is that, in the load calculation processing, a processing time is obtained from the number of processing instructions used, and the load calculation of the input application program is calculated from the processing time. Is performed.

【0014】本発明の記憶媒体は、上記各手段としてコ
ンピュータを機能させるためのプログラムを格納したこ
とを特徴としている。
[0014] The storage medium of the present invention is characterized by storing a program for causing a computer to function as each of the above means.

【0015】また、本発明の記憶媒体の他の特徴とする
ところは、上記コンピュータシステムの負荷分析方法の
手順をコンピュータに実行させるためのプログラムを格
納したことを特徴としている。
Another feature of the storage medium of the present invention is that a program for causing a computer to execute the procedure of the load analysis method of the computer system is stored.

【0016】[0016]

【作用】本発明は上記技術手段を有するので、特定分野
において既に使用されている複数のアプリケーション・
プログラムの構造解析を行って、各アプリケーション・
プログラムで使用されている処理命令数を抽出し、上記
抽出した処理命令数に基づいてコンピュータシステムの
負荷分析を行うので、アプリケーションプログラムの負
荷を高精度に計算することができる。
Since the present invention has the above technical means, a plurality of applications already used in a specific field can be used.
Perform a structural analysis of the program to
Since the number of processing instructions used in the program is extracted and the load of the computer system is analyzed based on the extracted number of processing instructions, the load of the application program can be calculated with high accuracy.

【0017】[0017]

【発明の実施の形態】以下、本発明のコンピュータシス
テムの負荷分析装置及び方法並びに記憶媒体の一実施の
形態を図面を参照して説明する。図1は、本発明の実施
の形態を示し、コンピュータシステムの負荷分析装置の
概略構成を示すブロック図である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of an apparatus and method for load analysis of a computer system according to the present invention; FIG. 1 is a block diagram showing an embodiment of the present invention and showing a schematic configuration of a load analyzer of a computer system.

【0018】図1に示したように、本実施の形態のコン
ピュータシステムの負荷分析装置10は、ソース解析手
段20と、負荷計算手段30と、記憶手段40とにより
構成され、負荷分析を行う対象システムのアプリケーシ
ョンプログラム・ソースコード(以下、APソースコー
ドとする)50を生成装置の内部に読み込む。そして、
上記内部に読み込んだ各APソースコード50の処理命
令の使用数を抽出し、上記抽出した処理命令の使用数に
基づいて負荷計算を行い、計算結果を分析結果記憶手段
60に記憶するようにしている。
As shown in FIG. 1, a load analysis device 10 of a computer system according to the present embodiment includes a source analysis unit 20, a load calculation unit 30, and a storage unit 40, and performs load analysis. A system application program source code (hereinafter, referred to as an AP source code) 50 is read into the generator. And
The number of used processing instructions of each AP source code 50 read into the inside is extracted, a load is calculated based on the number of used extracted processing instructions, and the calculation result is stored in the analysis result storage means 60. I have.

【0019】すなわち、上記ソース解析手段20は、上
記APソースコード50を解析して、各プログラムにお
ける処理命令の使用数を抽出する。また、上記記憶手段
40は、上記ソース解析手段20によって抽出された各
APソースコード50中に記載されている処理命令の使
用数を記憶する。また、上記負荷計算手段30は、上記
ソース解析手段20によって抽出され、上記記憶手段4
0に記憶されている各APソースコード50中に記載さ
れている処理命令の使用数に基づいて負荷計算を行う。
That is, the source analysis means 20 analyzes the AP source code 50 and extracts the number of processing instructions used in each program. The storage means 40 stores the number of processing instructions used in each AP source code 50 extracted by the source analysis means 20. The load calculating means 30 is extracted by the source analyzing means 20 and is stored in the storage means 4.
The load is calculated based on the number of used processing instructions described in each AP source code 50 stored in “0”.

【0020】図2は、本実施の形態のコンピュータシス
テムの負荷分析装置の構成を更に詳細に説明したブロッ
ク図である。図2に示したように、上記ソース解析手段
20は、ソースコード入力手段21、構造解析手段2
2、ループ毎の処理命令使用数集計手段23、ループ毎
の処理命令使用数算出手段24等によって構成されてい
る。
FIG. 2 is a block diagram illustrating the configuration of the load analyzer of the computer system according to the present embodiment in further detail. As shown in FIG. 2, the source analysis unit 20 includes a source code input unit 21 and a structure analysis unit 2.
2. It is composed of a processing instruction usage number totaling means 23 for each loop, a processing instruction usage number calculating means 24 for each loop, and the like.

【0021】上記ソースコード入力手段21は、APソ
ースコード50をファイルから読みだして負荷計算装置
の内部に取り込む。構造解析手段22は、上記ソースコ
ード入力手段21によって入力された各APソースコー
ド50のそれぞれについて構造解析を行い、APソース
コード50中にあるループレベルを検出する。
The source code input means 21 reads the AP source code 50 from a file and takes it into the load calculator. The structure analysis unit 22 performs a structure analysis on each of the AP source codes 50 input by the source code input unit 21, and detects a loop level in the AP source code 50.

【0022】図3、図4及び図5に示すように、本実施
の形態においては、上記ソースコード中にあるループj
(ループの深さ)を「0〜6」のレベルに分類し、「j
>6」以上のループについては「j=6」に丸める処理
を行っている。なお、本実施の形態においては「FOR
TRAN 言語」を用いてプログラムを作成する例を示
したが、使用言語の種類については限定されるものでは
なく、本発明は種々の言語に適用することができる。
As shown in FIGS. 3, 4 and 5, in the present embodiment, the loop j
(Depth of loop) into “0-6” levels, and “j”
For a loop of> 6 or more, a process of rounding to "j = 6" is performed. In the present embodiment, “FOR
Although an example in which a program is created using the “TRAN language” has been described, the type of language used is not limited, and the present invention can be applied to various languages.

【0023】図4に示したように、「FORTRAN
言語」の場合、処理命令の種類は「定数、変数代入
文」、「四則演算」、「IF文」、「GO TO文」、
「CALL文」の5種類である。
As shown in FIG. 4, "FORTRAN"
In the case of "language", the types of processing instructions are "constant, variable assignment statement", "four arithmetic operations", "IF statement", "GO TO statement",
There are five types of "CALL sentence".

【0024】ループ毎の処理命令使用数集計手段23
は、上記構造解析手段22によって検出されたループ毎
の処理命令使用数を集計するためのものであり、集計し
た結果を記憶手段40に記憶する。したがって、上記記
憶手段40には、APソースコード別、ループ別、処理
命令類別の命令使用数が記憶される。
Means for counting the number of processing instructions used for each loop 23
Is for totalizing the number of processing instructions used for each loop detected by the structure analysis unit 22, and stores the totaled result in the storage unit 40. Therefore, the storage means 40 stores the number of instructions used for each AP source code, each loop, and each processing instruction.

【0025】ループ毎の処理命令使用数算出手段24
は、上記記憶手段40に記憶されているループ毎の処理
命令使用数を算出するためのものである。命令(i)の
jループ内の発生数rijとすると、「定数、変数代入
文」の使用数はr1j、「四則演算」の使用数はr2j
「IF文」の使用数はr3j、「GO TO文」の使用数
はr4j、「サブルーチン CALL文」の使用数はr5j
となる。したがって、APソースコード全体の処理命令
使用数Rは、 R=r1j+r2j+r3j+r4j+r5j …(1式) によって算出される。各命令の発生数は、下記の(2
式)により算出する。
Means for calculating the number of processing instructions used for each loop 24
Is for calculating the number of processing instructions used for each loop stored in the storage means 40. Assuming that the number of occurrences of the instruction (i) in the j loop is r ij , the number of “constant and variable assignment statements” is r 1j , the number of “four arithmetic operations” is r 2j ,
The number of “IF statements” used is r 3j , the number of “GO TO statements” used is r 4j , and the number of “subroutine CALL statements” used is r 5j
Becomes Therefore, the number R of processing instructions used in the entire AP source code is calculated as follows: R = r 1j + r 2j + r 3j + r 4j + r 5j (Equation 1) The number of occurrences of each instruction is
Equation).

【0026】[0026]

【数1】 (Equation 1)

【0027】(2式)において、SikはAPiの命令
数、njjk は命令kのループjの使用数、Ci はループ
数(定数)である。具体的には、ループ0における命令
使用数=5、ループ1における命令使用数=7、ループ
2における命令使用数=9とし、Ci =10とすると、
ある命令kの使用数は、 k=(5×100 )+(5×101 )+(5×102 ) =(5×1)+(5×10)+(5×100) =5+7+900 =975 となる。
In equation (2), S ik is the number of instructions of APi, n jjk is the number of loops j used for instruction k, and C i is the number of loops (constant). Specifically, assuming that the number of instructions used in loop 0 = 5, the number of instructions used in loop 1 = 7, the number of instructions used in loop 2 = 9, and C i = 10,
The number of uses of a certain instruction k is as follows: k = (5 × 10 0 ) + (5 × 10 1 ) + (5 × 10 2 ) = (5 × 1) + (5 × 10) + (5 × 100) = 5 + 7 + 900 = 975.

【0028】上記負荷計算手段30は、上述のようにし
て算出した処理命令使用数に、各処理命令によって定ま
る重み付けを行って負荷分析を行う。すなわち、「定
数、変数代入文」にm1、「四則演算」にm2、「IF文」
にm3、「GO TO文」にm4、「サブルーチン CAL
L文」にm5の重み付けを行い、上記ループ毎の使用数算
出手段24によって算出した処理命令数に重みを付けて
全体の負荷Mの計算を、下記の(3式)により計算す
る。 M=m1・r1j+m2・r2j+m3・r3j+m4・r4j+m5・r5j …(3式) 上述のようにして計算したAP別負荷分析結果は、分析
結果記憶手段60に記憶する。
The load calculating means 30 performs a load analysis by weighting the number of used processing instructions calculated as described above according to each processing instruction. That, m 1 "constant, variable assignment statement" a, m 2 the "arithmetic", "IF Statement"
M 3 , “GO TO statement” m 4 , “Subroutine CAL
The L statement "performs weighting of m 5, the calculation of the total load M with a weighted number of processing instruction calculated by using the number calculating means 24 for each said loop, is calculated by the following (Formula 3). M = m 1 · r 1j + m 2 · r 2j + m 3 · r 3j + m 4 · r 4j + m 5 · r 5j (Equation 3) The AP-based load analysis result calculated as described above is stored in the analysis result storage means. 60.

【0029】図6に、コンピュータシステムの負荷分析
方法の処理手順の一実施の形態を示す。図6に示したよ
うに、負荷計算処理がスタートすると、先ず、最初のス
テップS61において、負荷計算するソースコードの入
力処理を行う。次に、ステップS62に進み、読み込ん
だソースコードの解析処理を行う。このソース解析処理
は、上記ソースコード入力処理S61によって入力され
た各APソースコード50のそれぞれについて構造解析
を行い、ソースコード中にあるループレベルを検出す
る。
FIG. 6 shows an embodiment of a processing procedure of the load analysis method of the computer system. As shown in FIG. 6, when the load calculation process starts, first, in a first step S61, a process of inputting a source code for load calculation is performed. Next, the process proceeds to step S62, where the read source code is analyzed. In this source analysis processing, a structural analysis is performed on each of the AP source codes 50 input in the source code input processing S61 to detect a loop level in the source code.

【0030】上述したように、本実施の形態において
は、上記ソースコード中にあるループj(ループの深
さ)を「0〜6」のレベルに分類し、「j>6」以上の
ループレベルについては「j=6」に丸める処理を行っ
ている。
As described above, in the present embodiment, the loop j (loop depth) in the source code is classified into levels of “0 to 6”, and the loop level of “j> 6” or more is classified. Is rounded to “j = 6”.

【0031】次に、ステップS63に進み、上記構造解
析処理で検出されたループ毎の処理命令使用数を集計
し、その後、ステップS64に進み、ループ毎の処理命
令使用数集計処理によって集計された処理命令使用数を
記憶手段40に記憶する処理を行う。この記憶処理によ
り、類似プログラム別、ループ別、処理命令類別の使用
数が上記記憶手段40に記憶される。
Next, the flow proceeds to step S63, in which the number of processing instructions used for each loop detected in the above-described structural analysis processing is totaled. Thereafter, the flow proceeds to step S64, in which the total number of processing instructions used for each loop is totaled. A process for storing the number of processing instructions used in the storage unit 40 is performed. By this storage processing, the number of uses for each similar program, each loop, and each processing instruction is stored in the storage unit 40.

【0032】次に、ステップS65において、負荷分析
処理を引き続いて行うAPソースコード50が有るか否
かの判断を行う。この判断の結果、引き続いて処理する
APソースコード50が有る場合には上記ステップS6
1に戻って上述した処理を繰り返し行う。また、ステッ
プS65の判断の結果、処理すべきAPソースコード5
0が無い場合にはステップS66に進む。
Next, in step S65, it is determined whether or not there is an AP source code 50 for continuously performing the load analysis processing. If the result of this determination is that there is an AP source code 50 to be processed subsequently, the above-described step S6
Returning to step 1, the above processing is repeated. Also, as a result of the determination in step S65, the AP source code 5 to be processed
If there is no 0, the process proceeds to step S66.

【0033】ステップS66においては、ループ毎の処
理命令使用数算出処理を行う。この処理は、解析結果の
記憶手段40に記憶されているループ毎の処理命令数の
使用数を算出する処理である。なお、処理命令使用数の
算出処理の内容は上述した実施の形態と同様なので詳細
な説明を省略する。
In step S66, a process instruction use number calculation process for each loop is performed. This process is a process of calculating the number of processing instructions used for each loop stored in the analysis result storage unit 40. The details of the processing for calculating the number of used processing instructions are the same as those in the above-described embodiment, and a detailed description thereof will be omitted.

【0034】次に、ステップS67に進み、負荷計算処
理を行う。この処理は、上記算出した処理命令の発生数
に従ってそのAPアプリケーションプログラムの負荷を
計算する処理である。
Next, the flow proceeds to step S67, where a load calculation process is performed. This process is a process of calculating the load of the AP application program according to the calculated number of processing instructions generated.

【0035】本実施の形態においては、上述のようにし
て特定分野において既に使用されている複数のアプリケ
ーション・プログラムの構造解析を行い、各アプリケー
ション・プログラムで使用されている処理命令数を抽出
する。そして、上記抽出した処理命令の発生数に基づい
て負荷計算を行うようにしたので、コンピュータシステ
ムの負荷を容易に、かつ確実に行うことができる。
In the present embodiment, as described above, the structure analysis of a plurality of application programs already used in a specific field is performed, and the number of processing instructions used in each application program is extracted. Since the load calculation is performed based on the number of occurrences of the extracted processing instructions, the load on the computer system can be easily and reliably performed.

【0036】これにより、コンピュータシステムの負荷
分析を行う際に、多くの手間及び時間を費やすことなく
高精度に行うことが可能となり、特定分野におけるコン
ピュータシステムの処理の応答性を高精度に知ることが
できる。
This makes it possible to analyze the load of the computer system with high accuracy without spending much labor and time, and to know the responsiveness of the processing of the computer system in a specific field with high accuracy. Can be.

【0037】次に、負荷計算を求める別の例を説明す
る。上記アプリケーションプログラムAP毎の処理命令
使用数と下記(4式)により、当該APの処理時間比を
求める
Next, another example of obtaining the load calculation will be described. The processing time ratio of the application program AP is obtained from the number of processing instructions used for each application program AP and the following equation (4).

【0038】[0038]

【数2】 (Equation 2)

【0039】(4式)において、Ti はAPiの使用時
間、SikはAPiの命令kの使用数、Ck は命令kの使
用数である。
In equation (4), T i is the usage time of APi, S ik is the usage number of instruction k of APi, and C k is the usage number of instruction k.

【0040】次に、APiの使用時間Ti と、以下の計
算式(5式)によりAP毎の負荷を求める。ここで、R
はシステム全体の負荷を表すが、これは実測等から簡単
に得られる定数である。
Next, the operating time T i of APi, determine the load of each AP according to the following equation (5 type). Where R
Represents the load of the entire system, which is a constant easily obtained from actual measurement or the like.

【0041】[0041]

【数3】 (Equation 3)

【0042】(5式)において、Ri はAPiの使用時
間、SikはAPiの命令kの使用数、Rはシステム全体
の負荷(定数)である。
In equation (5), R i is the usage time of APi, S ik is the number of instructions k used by APi, and R is the load (constant) of the entire system.

【0043】(本発明の他の実施の形態)本発明は複数
の機器(例えば、ホストコンピュータ、インタフェース
機器、リーダ、プリンタ等)から構成されるシステムに
適用しても1つの機器からなる装置に適用しても良い。
(Other Embodiments of the Present Invention) The present invention is applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), and is applied to an apparatus composed of one device. May be applied.

【0044】また、上述した実施の形態の機能を実現す
るように各種のデバイスを動作させるように、上記各種
デバイスと接続された装置あるいはシステム内のコンピ
ュータに対し、上記実施の形態の機能を実現するための
ソフトウェアのプログラムコードを供給し、そのシステ
ムあるいは装置のコンピュータ(CPUあるいはMP
U)に格納されたプログラムに従って上記各種デバイス
を動作させることによって実施したものも、本発明の範
疇に含まれる。
Further, the functions of the above-described embodiment are implemented in an apparatus connected to the above-described various devices or a computer in a system so that various devices are operated so as to realize the functions of the above-described embodiment. Supplies the software program code for performing the
The invention implemented by operating the various devices according to the program stored in U) is also included in the scope of the present invention.

【0045】また、この場合、上記ソフトウェアのプロ
グラムコード自体が上述した実施の形態の機能を実現す
ることになり、そのプログラムコード自体、およびその
プログラムコードをコンピュータに供給するための手
段、例えばかかるプログラムコードを格納した記憶媒体
は本発明を構成する。かかるプログラムコードを記憶す
る記憶媒体としては、例えばフロッピーディスク、ハー
ドディスク、光ディスク、光磁気ディスク、CD−RO
M、磁気テープ、不揮発性のメモリカード、ROM等を
用いることができる。
In this case, the program code of the software realizes the functions of the above-described embodiment, and the program code itself and means for supplying the program code to the computer, for example, the program The storage medium storing the code constitutes the present invention. As a storage medium for storing such a program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-RO
M, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0046】また、供給されたプログラムコードをコン
ピュータが実行することにより、上述の実施の形態の機
能が実現されるだけでなく、そのプログラムコードがコ
ンピュータにおいて稼働しているOS(オペレーティン
グシステム)あるいは他のアプリケーションソフト等の
共同して上述の実施の形態の機能が実現される場合にも
かかるプログラムコードは本発明の実施の形態に含まれ
ることは言うまでもない。
When the computer executes the supplied program code, not only the functions of the above-described embodiment are realized, but also the OS (operating system) or other operating system in which the program code runs on the computer. Needless to say, such program code is also included in the embodiment of the present invention when the functions of the above-described embodiment are realized in cooperation with the application software or the like.

【0047】さらに、供給されたプログラムコードがコ
ンピュータの機能拡張ボードやコンピュータに接続され
た機能拡張ユニットに備わるメモリに格納された後、そ
のプログラムコードの指示に基づいてその機能拡張ボー
ドや機能拡張ユニットに備わるCPU等が実際の処理の
一部または全部を行い、その処理によって上述した実施
の形態の機能が実現される場合にも本発明に含まれるこ
とは言うまでもない。
Further, after the supplied program code is stored in a memory provided in a function expansion board of a computer or a function expansion unit connected to the computer, the function expansion board or the function expansion unit is specified based on an instruction of the program code. It is needless to say that the present invention is also applicable to a case where the CPU or the like provided for performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0048】[0048]

【発明の効果】本発明は上述したように、本発明によれ
ば、特定分野において既に使用されている複数のアプリ
ケーション・プログラムの構造解析を行って、各アプリ
ケーション・プログラムで使用されている処理命令数を
抽出し、上記抽出した処理命令数に基づいてコンピュー
タシステムの負荷分析を行うようにしたので、アプリケ
ーションプログラムの負荷を高精度に計算することがで
き、コンピュータシステムの処理の応答性を高精度に管
理することができる。
According to the present invention, as described above, according to the present invention, the structure analysis of a plurality of application programs already used in a specific field is performed, and the processing instruction used in each application program is analyzed. Since the load of the computer system is calculated based on the extracted number of processing instructions, the load of the application program can be calculated with high accuracy, and the responsiveness of the processing of the computer system can be calculated with high accuracy. Can be managed.

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

【図1】本発明のコンピュータシステムの負荷分析装置
の一実施の形態を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a load analysis device for a computer system according to the present invention.

【図2】図1の負荷分析装置の詳細な構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a detailed configuration of the load analyzer of FIG.

【図3】ループレベルを説明する図である。FIG. 3 is a diagram illustrating a loop level.

【図4】処理命令の種類を説明する図である。FIG. 4 is a diagram illustrating types of processing instructions.

【図5】一つのループ内で行われる処理命令の一例を説
明する図である。
FIG. 5 is a diagram illustrating an example of a processing instruction performed in one loop.

【図6】負荷分析の手順の一例を説明するフローチャー
トである。
FIG. 6 is a flowchart illustrating an example of a load analysis procedure.

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

10 負荷分析装置 20 ソース解析手段 21 ソースコード入力手段 22 構造解析手段 23 ループ毎の処理命令使用数集計手段 24 ループ毎の処理命令使用数算出手段 30 負荷計算手段 40 記憶手段 50 APソースコード 60 分析結果記憶手段 DESCRIPTION OF SYMBOLS 10 Load analysis apparatus 20 Source analysis means 21 Source code input means 22 Structural analysis means 23 Processing instruction usage number totalization means for each loop 24 Processing instruction usage number calculation means for each loop 30 Load calculation means 40 Storage means 50 AP source code 60 Analysis Result storage means

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 負荷分析を行う対象システムのアプリケ
ーションプログラムを装置内部に入力するソースコード
入力手段と、 上記ソースコード入力手段によって入力された各アプリ
ケーションプログラムを解析して処理命令の使用数を抽
出するソース解析手段と、 上記ソース解析手段によって抽出された各アプリケーシ
ョンプログラムの処理命令使用数に基づいて負荷計算を
行う負荷計算手段とを具備することを特徴とするコンピ
ュータシステムの負荷分析装置。
1. A source code input means for inputting an application program of a target system to be subjected to load analysis into an apparatus, and an application program input by the source code input means is analyzed to extract the number of processing instructions used. A load analysis device for a computer system, comprising: a source analysis unit; and a load calculation unit that calculates a load based on the number of processing instructions used by each application program extracted by the source analysis unit.
【請求項2】 上記ソース解析手段によって抽出された
各アプリケーションプログラムの処理命令の使用数を記
憶する記憶手段を具備することを特徴とする請求項1に
記載のコンピュータシステムの負荷分析装置。
2. The load analysis device for a computer system according to claim 1, further comprising storage means for storing the number of processing instructions used by each application program extracted by said source analysis means.
【請求項3】 上記ソース解析手段は、上記ソースコー
ド入力手段によって入力された各アプリケーションプロ
グラム中にあるループレベルを検出する構造解析手段
と、 上記構造解析手段によって検出されたループレベル毎の
処理命令使用数を集計する処理命令使用数集計手段と、 上記処理命令使用数集計手段によって集計された結果に
基づいて、ループレベル毎の処理命令使用数を算出する
処理命令使用数算出手段とからなることを特徴とする請
求項1または2に記載のコンピュータシステムの負荷分
析装置。
3. The structure analysis means for detecting a loop level in each application program input by the source code input means, and a processing instruction for each loop level detected by the structure analysis means. A processing instruction usage number totalizing means for totalizing the usage number, and a processing instruction usage number calculating means for calculating the processing instruction usage number for each loop level based on the result totalized by the processing instruction usage number totaling means. The load analysis device for a computer system according to claim 1, wherein:
【請求項4】 上記処理命令文は、「定数、変数代入
文」、「四則演算」、「条件文」、「GO TO文」、
「サブルーチン CALL」の5つであることを特徴と
する請求項1〜3の何れか1項に記載のコンピュータシ
ステムの負荷分析装置。
4. The processing instruction statement includes a “constant and variable assignment statement”, a “four arithmetic operations”, a “conditional statement”, a “GO TO statement”,
The load analysis device for a computer system according to any one of claims 1 to 3, wherein the number is "subroutine CALL".
【請求項5】 上記負荷計算手段は、処理命令使用数か
ら処理時間を求め、上記処理時間から上記入力されたア
プリケーションプログラムの負荷計算を行うことを特徴
とする請求項1〜4の何れか1項に記載のコンピュータ
システムの負荷分析装置。
5. The load calculating means according to claim 1, wherein a processing time is obtained from the number of processing instructions used, and a load of said input application program is calculated from said processing time. A load analysis device for a computer system according to item 13.
【請求項6】 負荷分析を行う対象システムの複数のア
プリケーションプログラムを装置内部に読み込むソース
コード入力処理と、 上記ソースコード入力処理によって入力された各アプリ
ケーションプログラムを解析して処理命令の使用数を抽
出するソース解析処理と、 上記ソース解析処理によって抽出された各アプリケーシ
ョンプログラムの処理命令の使用数を記憶手段に記憶す
る記憶処理と、 上記ソース解析処理によって抽出された各アプリケーシ
ョンプログラムの処理命令の使用数に基づいて負荷を計
算する負荷計算処理とを行うことを特徴とするコンピュ
ータシステムの負荷分析方法。
6. A source code input process for loading a plurality of application programs of a target system to be subjected to load analysis into the apparatus, and analyzing each application program input by the source code input process to extract the number of processing instructions used. Source analysis processing, storage processing for storing the number of processing instructions of each application program extracted by the source analysis processing in the storage means, and number of processing instructions of each application program extracted by the source analysis processing And a load calculation process for calculating a load based on the load.
【請求項7】 上記ソース解析処理は、上記ソースコー
ド入力処理によって入力された各アプリケーションプロ
グラム中にあるループレベルを検出する構造解析処理
と、 上記構造解析処理によって検出されたループレベル毎の
処理命令使用数を集計する処理命令使用数集計処理と、 上記処理命令使用数集計処理によって集計された結果に
基づいて、ループレベル毎の処理命令使用数を算出する
処理命令使用数算出処理とを行うことを特徴とする請求
項6に記載のコンピュータシステムの負荷分析方法。
7. The source analysis processing includes: a structural analysis processing for detecting a loop level in each application program input by the source code input processing; and a processing instruction for each loop level detected by the structural analysis processing. Performing the processing instruction usage number totalization processing for totalizing the usage number, and the processing instruction usage number calculation processing for calculating the processing instruction usage number for each loop level based on the result totaled by the processing instruction usage number totalization processing. The load analysis method for a computer system according to claim 6, wherein:
【請求項8】 上記処理命令文は、「定数、変数代入
文」、「四則演算」、「条件文」、「GO TO文」、
「サブルーチン CALL」の5つであることを特徴と
する請求項6または7に記載のコンピュータシステムの
負荷分析方法。
8. The processing instruction statement includes a “constant and variable assignment statement”, a “four arithmetic operations”, a “conditional statement”, a “GO TO statement”,
8. The computer system load analysis method according to claim 6, wherein there are five subroutines: CALL.
【請求項9】 上記負荷計算処理は、処理命令使用数か
ら処理時間を求め、上記処理時間から上記入力されたア
プリケーションプログラムの負荷計算を行う処理である
ことを特徴とする請求項6〜8の何れか1項に記載のコ
ンピュータシステムの負荷分析方法。
9. The load calculating process according to claim 6, wherein a processing time is obtained from the number of processing instructions used, and a load of the input application program is calculated from the processing time. The load analysis method for a computer system according to claim 1.
【請求項10】 請求項1〜5に記載の各手段としてコ
ンピュータを機能させるためのプログラムを格納したこ
とを特徴とする記憶媒体。
10. A storage medium storing a program for causing a computer to function as each of the means according to claim 1. Description:
【請求項11】 請求項6〜9の何れか1項に記載のコ
ンピュータシステムの負荷分析方法の手順をコンピュー
タに実行させるためのプログラムを格納したことを特徴
とする記憶媒体。
11. A storage medium storing a program for causing a computer to execute the procedure of the computer system load analysis method according to claim 6. Description:
JP10120153A 1998-04-14 1998-04-14 Load analysis device and load analysis method for computer system and storage medium Withdrawn JPH11296416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10120153A JPH11296416A (en) 1998-04-14 1998-04-14 Load analysis device and load analysis method for computer system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10120153A JPH11296416A (en) 1998-04-14 1998-04-14 Load analysis device and load analysis method for computer system and storage medium

Publications (1)

Publication Number Publication Date
JPH11296416A true JPH11296416A (en) 1999-10-29

Family

ID=14779277

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10120153A Withdrawn JPH11296416A (en) 1998-04-14 1998-04-14 Load analysis device and load analysis method for computer system and storage medium

Country Status (1)

Country Link
JP (1) JPH11296416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011181034A (en) * 2010-03-04 2011-09-15 Nec Corp System and method for evaluation of software effective performance, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011181034A (en) * 2010-03-04 2011-09-15 Nec Corp System and method for evaluation of software effective performance, and program

Similar Documents

Publication Publication Date Title
Lee et al. Compass: A framework for automated performance modeling and prediction
US7239980B2 (en) Method and apparatus for adaptive tracing with different processor frequencies
US9454454B2 (en) Memory leak analysis by usage trends correlation
US7333962B2 (en) Techniques to organize test results
CN104850411B (en) Storage system benchmark evaluation program generation method and device
CN102402479B (en) For the intermediate representation structure of static analysis
US10754744B2 (en) Method of estimating program speed-up in highly parallel architectures using static analysis
CN108491228A (en) A kind of binary vulnerability Code Clones detection method and system
CN108920382B (en) Test case generation method and device, storage medium and server
US20240036841A1 (en) Method and Apparatus for Compatibility Detection, Device and Non-transitory computer-readable storage medium
EP3757760A1 (en) Method and apparatus for generating chip-based computing function, device, and storage medium
CN110941553A (en) Code detection method, device, equipment and readable storage medium
CN112948828A (en) Binary program malicious code detection method, terminal device and storage medium
Deniz et al. Using machine learning techniques to detect parallel patterns of multi-threaded applications
JPH11296416A (en) Load analysis device and load analysis method for computer system and storage medium
Medhat et al. Managing the performance/error tradeoff of floating-point intensive applications
Hare et al. Methods to compare expensive stochastic optimization algorithms with random restarts
CN114372266A (en) Android malicious software detection method based on operation code graph
Song et al. Structural damage detection by integrating independent component analysis and support vector machine
Afonso et al. Rancid: Reliable benchmarking on android platforms
US20050049847A1 (en) Software development environment and method for measuring software performance
Marantos et al. Decision support for GPU acceleration by predicting energy savings and programming effort
US9606779B2 (en) Data processing system and data simulation method in the system
KR101583133B1 (en) Method for evaluating software similarity using stack and apparatus therefor
da Silva et al. A compiler-centric infra-structure for whole-board energy measurement on heterogeneous android systems

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050705