JPH07262055A - Processing time predicting method for computer program and computer therefor - Google Patents

Processing time predicting method for computer program and computer therefor

Info

Publication number
JPH07262055A
JPH07262055A JP6046850A JP4685094A JPH07262055A JP H07262055 A JPH07262055 A JP H07262055A JP 6046850 A JP6046850 A JP 6046850A JP 4685094 A JP4685094 A JP 4685094A JP H07262055 A JPH07262055 A JP H07262055A
Authority
JP
Japan
Prior art keywords
time
program
processing
calculation
processing time
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
JP6046850A
Other languages
Japanese (ja)
Inventor
Hideki Hayatsu
秀樹 早津
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP6046850A priority Critical patent/JPH07262055A/en
Publication of JPH07262055A publication Critical patent/JPH07262055A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To provide a processing time predicting method for computer program which can estimate the accurate program processing time corresponding to the load and a computer therefor. CONSTITUTION:This method is provided with a program processing time measurement means 3, a reference program storing means 2, and a time ratio calculation means 4 which calculates the time ratio D=B'/C based on the net calculation time C of the reference program and the processing time B' of the reference program set for a data processing means 1 when the load is applied to the processor 1. Then, the time B' is measured while the load 6 is applied to the processor 1, and the ratio D=B'/C is calculated based on both times C and B', the calculation time XC of a program X12 similar to the reference program is calculated, and the estimated processing time XC of the program X12 is calculated based on the time ratio D and the time XC.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,計算機プログラムの処
理時間予測方法およびその計算機に関する。計算機シス
テムの処理では一つのCPUが一つの計算処理を行うこ
とは少なく,通常は多数の計算処理を複数のCPUを使
用して同時に行っている。そのため,一つの計算プログ
ラムに着目した場合,その処理が開始されてから終了さ
れるまでの時間は,計算機で処理をするプログラム数,
プログラムの内容等に応じて大幅な違いを生じるもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer program processing time prediction method and a computer therefor. In the processing of the computer system, one CPU rarely performs one calculation processing, and normally a large number of calculation processings are simultaneously performed using a plurality of CPUs. Therefore, when focusing on one calculation program, the time from the start to the end of the process depends on the number of programs processed by the computer,
It makes a big difference depending on the contents of the program.

【0002】本発明は,このような計算機の混み具合に
より異なるプログラムの処理時間を予め予測するもので
ある。
The present invention predicts in advance the processing time of different programs depending on the congestion of computers.

【0003】[0003]

【従来の技術】従来の計算機プログラムの処理時間(プ
ログラム処理を開始してから終了するまでの時間)の予
測は,計算機の負荷(利用率)の統計データを蓄積して
時間帯毎の利用率を算出して保持し,一方,計算機の負
荷と計算機プログラムの処理時間の関係を統計的に蓄積
し,計算機負荷の予測値および負荷と処理時間の統計デ
ータを基に処理時間を予測していた。
2. Description of the Related Art A conventional computer program processing time (time from the start to the end of program processing) is estimated by accumulating statistical data of computer load (utilization rate) Was calculated and stored, while the relation between the computer load and the computer program processing time was statistically accumulated, and the processing time was predicted based on the predicted computer load value and the statistical data of the load and processing time. .

【0004】[0004]

【発明が解決しようとする課題】従来の計算機プログラ
ムの処理時間の予測は統計的にデータをもとになされて
いたが,実際の計算機の状態は常に変化するので,統計
的なデータが常に当てはまる訳ではなく,必ずしも正確
に予測してはいなかった本発明は,計算機プログラムを
実行中の計算機の負荷(混み具合を)を把握し,負荷に
応じて正確に処理時間を予測する計算機プログラムの処
理時間予測方法およびその計算機を提供することを目的
とする。
Although the prediction of the processing time of the conventional computer program is statistically based on the data, the actual computer state always changes, and therefore the statistical data always applies. However, the present invention, which has not necessarily predicted accurately, recognizes the load (complexity) of the computer that is executing the computer program, and processes the computer program that accurately predicts the processing time according to the load. An object is to provide a time prediction method and a computer therefor.

【0005】[0005]

【課題を解決するための手段】本発明は,計算機が負荷
状態にあるときのその基準プログラムの処理時間B’を
求め,計算プログラムを実行する際にCPUで演算され
る正味の計算時間C(CPUへのアクセス時間とCPU
での演算時間の和)と処理時間B’との比により,計算
機の混み具合を表す係数である時間的比率D=B’/C
を求め,その時間的比率Dを基に,実際に実行するプロ
グラムの処理時間を予測するようにした。正味の計算時
間は計算機が測定するCPU時間,もしくは計算機が無
負荷の状態における基準プログラムの処理時間Bはその
基準プログラムの計算時間Cに略等しいのでそれを使用
する。
According to the present invention, a processing time B'of a reference program when a computer is in a loaded state is obtained, and a net calculation time C ( CPU access time and CPU
Time ratio D = B ′ / C, which is a coefficient indicating the degree of congestion of the computer, based on the ratio of the sum of the calculation time in B) and the processing time B ′.
Then, based on the time ratio D, the processing time of the program that is actually executed is predicted. The net calculation time is used because the CPU time measured by the computer or the processing time B of the reference program when the computer is unloaded is approximately equal to the calculation time C of the reference program.

【0006】図1は本発明の基本構成を示す。以下の説
明において,処理時間は計算機プログラム(以下プログ
ラムと称する)が処理を開始されてから終了するまでの
時間である。計算機時間とは,プログラムを処理するの
に,CPUにアクセスしCPUで実際に処理された時間
の和である正味の演算時間を表すものとする。
FIG. 1 shows the basic configuration of the present invention. In the following description, the processing time is the time from the start of processing of a computer program (hereinafter referred to as a program) to the end thereof. The computer time represents a net calculation time, which is the sum of the times when the CPU is accessed and actually processed by the CPU to process the program.

【0007】図1において,1はデータ処理手段であっ
て,CPUを備えデータ処理をするものである。2は基
準プログラム保持手段であって,処理時間予測の基準と
なる基準プログラム2’を保持するものであり,上記の
計算時間がCであるものである。基準プログラムはデー
タ処理手段1に対する負荷が小さいものであり,処理時
間を予測する対象のプログラムXの繰り返し処理の単位
となるようなプログラムである。
In FIG. 1, reference numeral 1 denotes a data processing means, which is provided with a CPU and performs data processing. Reference numeral 2 is a reference program holding means for holding a reference program 2'which is a reference for processing time prediction, and the above calculation time is C. The reference program has a small load on the data processing means 1, and is a program that becomes a unit of repetitive processing of the program X whose processing time is predicted.

【0008】3は処理時間測定手段であって,基準プロ
グラム2’をデータ処理手段1で処理をするのに要する
処理時間(処理を開始してから終了するまでの時間)を
測定するものである。
Reference numeral 3 is a processing time measuring means for measuring the processing time required for processing the reference program 2'with the data processing means 1 (time from the start to the end of the processing). .

【0009】4は時間的比率計算手段であって,基準プ
ログラム2’の計算時間と,データ処理手段1に負荷6
がある状態で処理するのに要する処理時間B’に基づい
て時間的比率D=B’/Cを算出するものである。
Reference numeral 4 denotes a time ratio calculation means, which calculates the reference program 2'and a load on the data processing means 1.
The temporal ratio D = B ′ / C is calculated based on the processing time B ′ required for processing in a certain state.

【0010】5は測定結果保持手段であって,基準プロ
グラム2’の計算時間C,処理時間B’,時間的比率D
を保持するものである。6は負荷であって,データ処理
手段1で処理をするプログラムである。
Reference numeral 5 is a measurement result holding means, which is a calculation time C, a processing time B ', and a temporal ratio D of the reference program 2'.
Is to hold. A load 6 is a program that is processed by the data processing means 1.

【0011】7はプログラムPである。8はプログラム
Qである。9はプログラムRである。
Reference numeral 7 is a program P. 8 is a program Q. 9 is a program R.

【0012】10は出力手段であって,時間的比率D
(もしくは実際に処理をするプログラムの処理予測時
間)を出力するものである。11は出力された時間的比
率D(もしくは予測処理時間XB )である。
Numeral 10 is an output means, which is a time ratio D
(Or the estimated processing time of the program that actually performs the processing) is output. Reference numeral 11 is the output temporal ratio D (or predicted processing time X B ).

【0013】12はプログラムXであって,計算時間X
cのものであって,処理時間を予測する対象となるプロ
グラムである。13は予測時間算出処理であって,基準
プログラム2’の時間的比率とプログラムXの計算時間
Xcとにより,プログラムX(12)の予測処理時間XB
Xc×Dにより,プログラムX(12)をデータ処理手段1
で処理する場合の予測処理時間を算出するものである。
12 is a program X, which has a calculation time X
It is a program of c, which is a target of processing time estimation. Reference numeral 13 is a predicted time calculation process, which is a predicted processing time X B =
The program X (12) is processed by the data processing means 1 by Xc × D.
This is to calculate the predicted processing time in the case of processing in.

【0014】[0014]

【作用】図1の本発明の基本構成の動作を説明するのに
先立ち,図3により本発明の原理を説明する。
Before explaining the operation of the basic structure of the present invention shown in FIG. 1, the principle of the present invention will be described with reference to FIG.

【0015】図3 (a)は無負荷のときに基準プログラム
2’をCPUで処理する場合を示す。図3 (a)におい
て,20はメモリであって,基準プログラム2’を保持
するものである。
FIG. 3A shows the case where the reference program 2'is processed by the CPU when there is no load. In FIG. 3 (a), 20 is a memory for holding the reference program 2 '.

【0016】21はCPUであって,無負荷の状態(基
準プログラム2’以外の処理を行わない場合)を表す。
時刻T0 で基準プログラム2’の処理が開始され,時刻
1 で処理が終了したとする。基準プログラムのステッ
プ1を処理するのにCPU21にアクセスし,演算処理
されてメモリに結果がもどされるまでの正味の時間(C
PU時間)をt 0 とする。同様にステップnがCPUに
アクセスして,CPUで演算され戻されるまでの時間を
n とする。
Reference numeral 21 denotes a CPU, which is in an unloaded state (basic
(When processing other than the quasi program 2'is not performed).
Time T0Processing of the reference program 2'starts at
T1It is assumed that the processing ends with. Standard program step
CPU21 is accessed to process the program 1 and arithmetic processing is performed.
Net time (C
PU time) t 0And Similarly, step n
The time it takes to access the data, calculate it with the CPU, and return it
tnAnd

【0017】基準プログラムAの計算時間Cは, C=t1 +・・・・+tn である。The calculation time C of the reference program A is C = t 1 + ... + t n .

【0018】無負荷での基準プログラム2’の処理時間
Bは, B=T1 −T0 である。
The processing time B of the reference program 2'without a load is B = T 1 -T 0 .

【0019】無負荷の場合には,基準プログラム2’が
処理を待たされる時間はほとんどないので, C≒B である。
In the case of no load, the reference program 2'has almost no time to wait for processing, so C≈B.

【0020】図3 (b)は負荷のあるときを示す。20’
はメモリであって,基準プログラム2’と一般のプログ
ラムP(7) を保持するものである。
FIG. 3B shows when there is a load. 20 '
Is a memory for holding the reference program 2'and the general program P (7).

【0021】21はCPUである。基準プログラム2’
が時刻T0 ’で開始され,時刻T1 ’で終了したとす
る。基準プログラムAのステップ1,ステップnをCP
U21で処理するのに必要な正味の時間はそれぞれ
1 ,tn であって,無負荷のときと同じである。しか
し,プログラムP(7) がある場合は,CPU21は,基
準プログラム2’を処理する間にプログラムPの処理も
行うので,基準プログラム2’を処理するのに要する処
理時間B’は,無負荷のときの処理時間Bより大きくな
る。
Reference numeral 21 is a CPU. Standard program 2 '
Starts at time T 0 'and ends at time T 1 '. CP in step 1 and step n of standard program A
The net time required to process U21 is t 1 and t n , respectively, which is the same as when there is no load. However, when there is the program P (7), the CPU 21 also processes the program P while processing the reference program 2 ', so that the processing time B'required for processing the reference program 2'has no load. It becomes longer than the processing time B at the time.

【0022】従って, C=t1 +・・・・+tn B’=T1 ’−T0 ’ >B である。Therefore, C = t 1 + ... + t n B '= T 1 ' -T 0 '> B.

【0023】そこで本発明では時間的比率Dとして,基
準プログラム2’の計算時間Cと処理時間B’とによ
り,D=B’/Cを求める。あるいは,データ処理手段
が無負荷の状態の基準プログラムの処理時間Bを求め,
その処理時間Bを計算機時間Cとして処理時間Dを求め
る。
Therefore, in the present invention, as the time ratio D, D = B '/ C is obtained from the calculation time C and the processing time B'of the reference program 2'. Alternatively, the processing time B of the reference program when the data processing means has no load is calculated,
The processing time D is obtained by using the processing time B as the computer time C.

【0024】そして,処理時間を予測する基準プログラ
ムは,実際のプログラムXの繰り返し処理の単位プログ
ラムであるとする。また,プログラムXの計算時間Xc
はあらかじめ計算機(データ処理手段)で測定してお
く。
The reference program for predicting the processing time is assumed to be a unit program for repeating the actual program X. Also, the calculation time Xc of the program X
Is measured in advance by a computer (data processing means).

【0025】データ処理手段の時間的比率がDの状態に
おいては,プログラムXを処理するのに要する時間XB
は, XB ≒Xc×D である。
When the time ratio of the data processing means is D, the time X B required to process the program X is
Is X B ≈Xc × D.

【0026】図2を参照して,図1の本発明の基本構成
を説明する。図2(1) はCPUが無負荷のときの処理で
ある。図2(2) はCPUに負荷があるときの処理であ
る。(3) は処理時間を算出する処理である。
The basic structure of the present invention shown in FIG. 1 will be described with reference to FIG. FIG. 2 (1) shows the processing when the CPU has no load. FIG. 2 (2) shows the processing when there is a load on the CPU. (3) is a process for calculating the processing time.

【0027】(1) 処理1において, S1 基準プログラム2’の計算時間Cもしくはデータ
処理時間が無負荷の状態における処理時間Bを測定す
る。
(1) In processing 1, the calculation time C of the S1 reference program 2'or the processing time B when the data processing time is unloaded is measured.

【0028】S2 計算時間Cもしくは処理時間Bを計
算時間Cとして測定結果保持手段5に格納する。 (2) 処理2において, S1 データ処理手段1に負荷6(プログラムP
(7),プログラムQ(8),プログラムR(9))が
処理されている負荷状態において,処理時間測定手段3
は基準プログラム2’の処理時間B’を測定する。
S2 The calculation time C or the processing time B is stored in the measurement result holding means 5 as the calculation time C. (2) In the process 2, the load 6 (program P
(7), the program Q (8), the program R (9)) in the loaded state, the processing time measuring means 3
Measures the processing time B'of the reference program 2 '.

【0029】S2 処理時間測定手段3は基準プログラ
ム2’の処理時間B’を測定する。 S3 データ処理手段1は,測定結果保持手段5から処
理時間Bを取り出す。 S4 時間的比率計算手段4は計算時間Cと処理時間
B’とにより,時間的比率DをD=B’/Cで計算す
る。
S2 The processing time measuring means 3 measures the processing time B'of the reference program 2 '. The S3 data processing means 1 retrieves the processing time B from the measurement result holding means 5. The S4 temporal ratio calculating means 4 calculates the temporal ratio D by D = B '/ C from the calculation time C and the processing time B'.

【0030】S5 処理時間B’,Dを測定結果保持手
段5に保持する。 (3) 処理3 基準プログラムXと似た一般のプログラムXの予測処理
時間を算出する処理である。
S5 Processing times B'and D are held in the measurement result holding means 5. (3) Process 3 This is a process of calculating the predicted processing time of the general program X similar to the reference program X.

【0031】S1 基準プログラム2’の時間的比率D
を出力する。 S2 基準プログラム2’と似た一般のプログラムXの
予測処理時間XB を,XB =Xc×Dで算出する(計算
時間Xcは予めもとめておく)。
S1 Reference program 2'time ratio D
Is output. S2 The predicted processing time X B of the general program X similar to the reference program 2 ′ is calculated by X B = Xc × D (calculation time Xc is obtained in advance).

【0032】本発明によれば,プログラムを実際に実行
する計算機の状態に応じて,正確な処理時間を予測する
ことができる。
According to the present invention, an accurate processing time can be predicted according to the state of the computer that actually executes the program.

【0033】[0033]

【実施例】以下,計算時間Cは,データ処理手段が無負
荷の状態において測定した処理時間Bを計算時間Cとす
る場合について説明する。
EXAMPLE The calculation time C will be described below with respect to the case where the processing time B measured when the data processing means is unloaded is the calculation time C.

【0034】図4は本発明の実施例1を示す。図4にお
いて,31はデータ処理手段である。
FIG. 4 shows the first embodiment of the present invention. In FIG. 4, 31 is a data processing means.

【0035】32は基準プログラム保持手段である。3
2’は基準プログラムである。33は処理時間測定手段
である。
Reference numeral 32 is a reference program holding means. Three
2'is a standard program. 33 is a processing time measuring means.

【0036】34は時間的比率計算手段である。35は
測定結果保持手段である。36は負荷である。
Reference numeral 34 is a temporal ratio calculating means. Reference numeral 35 is a measurement result holding means. 36 is a load.

【0037】37はプログラムPである。38はプログ
ラムQである。39はプログラムRである。
37 is a program P. 38 is a program Q. 39 is a program R.

【0038】40は出力手段であって,ディスプレイ等
である。41は予測処理時間,予測終了時間,時間的比
率の表示である。42はプログラムX保持手段である。
Reference numeral 40 is an output means such as a display. Reference numeral 41 is a display of the predicted processing time, the predicted end time, and the temporal ratio. 42 is a program X holding means.

【0039】42’はプログラムXである。43は予測
処理時間算出手段である。44は予測終了時間算出手段
であって,計算時間Xcと処理を開始してからの計算時
間Xc’に基づいて,予測終了時間=(Xc−Xc’)
×Dにより予測終了時間を算出するものである。
42 'is the program X. Reference numeral 43 is a prediction processing time calculation means. Numeral 44 is a prediction end time calculating means, which is based on the calculation time Xc and the calculation time Xc 'after the processing is started, and the prediction end time = (Xc-Xc').
The estimated end time is calculated by × D.

【0040】45は入力手段であって,キーボード等の
計算時間Xcを入力するものである。46は計算時間測
定手段であって,プログラムX(42’)の処理を開始
してから実際に計算された時間Xc’(処理時間からC
PUの待ち時間を除いた時間)を測定するものである。
Reference numeral 45 is an input means for inputting the calculation time Xc of a keyboard or the like. Reference numeral 46 denotes a calculation time measuring means, which is a time Xc '(from the processing time to C calculated actually after the processing of the program X (42') is started.
It measures the time excluding the waiting time of PU).

【0041】測定結果保持手段35において,51はラ
イブラリ1であって,データ処理手段31に負荷36が
ないときの基準プログラム32’の処理時間Bを保持す
るものである。
In the measurement result holding means 35, reference numeral 51 denotes the library 1 which holds the processing time B of the reference program 32 'when the data processing means 31 has no load 36.

【0042】52はライプラリ2であって,データ処理
手段31に負荷36があるときの基基準プログラム3
2’の処理時間B’を保持するものである。53はライ
ブラリ3であって,基準プログラム32’に基づく時間
的比率Dを保持するものである。
Reference numeral 52 is a library 2, which is a basic reference program 3 when the data processing means 31 has a load 36.
The processing time B'of 2'is held. Reference numeral 53 is a library 3, which holds the time ratio D based on the reference program 32 '.

【0043】図4の構成において,プログラムXを処理
する場合の予測処理時間,もしくは予測終了時間を求め
る処理について説明する。プログラムXの計算時間Xc
はあらかじめ測定しておく。また,データ処理手段31
が無負荷の時の基準プログラム32’の処理時間Bは,
予め求め測定し,基準プログラム32’の計算時間Cと
してライブラリ1に保持する。
A process for obtaining the predicted processing time or the predicted end time when processing the program X in the configuration of FIG. 4 will be described. Calculation time Xc of program X
Is measured in advance. Further, the data processing means 31
The processing time B of the reference program 32 'when there is no load is
It is obtained in advance and measured and stored in the library 1 as the calculation time C of the reference program 32 '.

【0044】入力手段45より,プログラムXの計算時
間Xcを入力する。処理時間測定手段33はその時のデ
ータ処理手段31による基準プログラム32’の処理時
間B’を求め,ライブラリ52に書き込む(基準プログ
ラム32’はデータ処理手段31に対して負荷の小さい
プログラムであるので,B’の測定のためにデータ処理
手段31にかかる負担は小さい)。時間的比率計算手段
34は時間的比率DをD=B’/Cにより計算し,ライ
ブラリ3に書き込む。
The calculation time Xc of the program X is input from the input means 45. The processing time measuring means 33 determines the processing time B'of the reference program 32 'by the data processing means 31 at that time and writes it in the library 52 (since the reference program 32' is a program with a light load on the data processing means 31, The load on the data processing means 31 for measuring B ′ is small). The temporal ratio calculation means 34 calculates the temporal ratio D by D = B ′ / C and writes it in the library 3.

【0045】予測処理時間算出手段43は,予測処理時
間XB をXB =Xc・Dにより計算する。出力手段40
は予測処理時間XB と時間的比率Dを出力する。次に,
プログラムを実行する過程において,予測終了時間b
(プログラムXの処理中において,未処理の部分を処理
するのに要する時間)を求める場合について説明する。
The predicted processing time calculating means 43 calculates the predicted processing time X B according to X B = Xc · D. Output means 40
Outputs the estimated processing time X B and the temporal ratio D. next,
Predicted end time b in the process of executing the program
A case will be described where (the time required to process an unprocessed portion during the processing of the program X) is obtained.

【0046】プログラムXの処理を開始する。計算時間
測定手段46はプログラムXが処理を開始してからの正
味の計算時間(CPU時間)Xc’を測定する。予測終
了時間算出手段44は,プログラムXの処理を開始して
からの計算時間Xc’を取り込み,その時点からの予測
終了時間bを,b=(Xc−Xc’)×Dにより算出す
る。予測終了時間bは出力手段40に出力される。
The processing of the program X is started. The calculation time measuring means 46 measures the net calculation time (CPU time) Xc ′ since the program X started processing. The predicted end time calculating means 44 fetches the calculation time Xc ′ after the processing of the program X is started, and calculates the predicted end time b from that time point by b = (Xc−Xc ′) × D. The predicted end time b is output to the output means 40.

【0047】図5は本発明の実施例2である。図5は複
数の基準プログラムを備え,処理時間を予測するプログ
ラムと似た基準プログラムを複数の基準プログラムの内
から選択し,予測処理時間,予測終了時間を表示するよ
うにしたものである。
FIG. 5 shows a second embodiment of the present invention. In FIG. 5, a plurality of reference programs are provided, and a reference program similar to the program for predicting the processing time is selected from the plurality of reference programs, and the predicted processing time and the predicted end time are displayed.

【0048】図5において,31はデータ処理手段であ
る。32は基準プログラム保持手段であって,異なる基
準プログラムA1 ,A2 ,An を保持するものである。
基準プログラムはいずれもデータ処理手段31に対して
負荷の小さいものである。例えば,構造解析用,流体解
析用,ソーティング用,検索用,テキスト−バイナリ変
換用等の基準プログラムである。
In FIG. 5, reference numeral 31 is a data processing means. A reference program holding means 32 holds different reference programs A 1 , A 2 and A n .
Each of the reference programs has a small load on the data processing means 31. For example, it is a standard program for structural analysis, fluid analysis, sorting, search, text-binary conversion, and the like.

【0049】33は処理時間測定手段である。34は時
間的比率計算手段である。35は測定結果保持手段であ
って,各基準プログラムA1 〜An の計算時間C 1 〜C
n,処理時間B1 ’〜Bn ’,時間的比率D1 〜Dn
保持するものである。
Reference numeral 33 is a processing time measuring means. 34 is hour
It is an inter-ratio ratio calculation means. Reference numeral 35 is a measurement result holding means.
Therefore, each standard program A1~ AnCalculation time C 1~ C
n, processing time B1’~ Bn’、 Time ratio D1~ DnTo
To hold.

【0050】37はプログラムPである。38はプログ
ラムQである。39はプログラムRである。
37 is a program P. 38 is a program Q. 39 is a program R.

【0051】40は出力手段であって,ディスプレイ等
である。41は予測処理時間,予測終了時間,時間的比
率の表示である。43は予測処理時間算出手段である。
Reference numeral 40 is an output means such as a display. Reference numeral 41 is a display of the predicted processing time, the predicted end time, and the temporal ratio. Reference numeral 43 is a prediction processing time calculation means.

【0052】44は予測終了時間算出手段である。45
は入力手段であって,キーボード等の計算時間Xcを入
力するものである。
Reference numeral 44 is a prediction end time calculating means. 45
Is an input means for inputting the calculation time Xc of a keyboard or the like.

【0053】46は計算時間測定手段である。測定結果
保持手段35において,51はライプラリ1であって,
基準プログラムA1 〜An の計算時間C1 〜Cnを保持
するものである。
Reference numeral 46 is a calculation time measuring means. In the measurement result holding means 35, 51 is the Liplari 1,
It holds the calculation times C 1 to Cn of the reference programs A 1 to A n .

【0054】52はライプラリ2であって,基準プログ
ラムA1 〜An の処理時間B1 ’〜Bn ’を保持するも
のである。53はライブラリ3であって,基準プログラ
ムA1 〜An の時間的比率D1 〜Dn を保持するもので
ある。
Reference numeral 52 is a liplary 2 for holding the processing times B 1 ′ to B n ′ of the reference programs A 1 to A n . 53 is a library 3 is to hold the temporal ratio D 1 to D n of the reference program A 1 to A n.

【0055】55はプログラムXであって,予測処理時
間,予測終了時間を表示する対象のプログラムである。
計算時間Xcは予め求められている。図5の構成におい
て,プログラムXの予測処理時間,予測終了時間を表示
させる場合には,プログラムXに似た基準プログラムを
選択する。例えば基準プログラムA1 が構造計算用の基
準プログラムである時,プログラムXが実際に構造計算
をするためのプログラムであれば,基準プログラムA1
を選択する。
Reference numeral 55 is a program X, which is a target program for displaying the predicted processing time and the predicted end time.
The calculation time Xc is obtained in advance. In the configuration of FIG. 5, when displaying the predicted processing time and predicted end time of the program X, a reference program similar to the program X is selected. For example, when the reference program A 1 is a reference program for structural calculation and the program X is a program for actually performing structural calculation, the reference program A 1
Select.

【0056】その選択は入力手段45によりなされる。
また,近いプログラムがない場合には,プログラムXに
似た構成でデータ処理手段31に小さい負荷の基準プロ
グラムを作成し,データ処理手段31が無負荷の状態の
ときに処理時間Bを求め,ライブラリ1(51)に計算
時間Cとして保持する。あるいは,計算機により直接計
算時間を測定して計算時間Cを求めても良い。そして,
新たに作成した基準プログラムは基準プログラム保持手
段32に保持する。
The selection is made by the input means 45.
If there is no similar program, a reference program with a small load is created in the data processing means 31 with a configuration similar to the program X, the processing time B is calculated when the data processing means 31 is in the no-load state, and the library is created. The calculation time C is held at 1 (51). Alternatively, the calculation time C may be obtained by directly measuring the calculation time with a computer. And
The newly created reference program is held in the reference program holding means 32.

【0057】図6,図7,図8,図9は本発明の実施例
2のフローチャートである。図6は無負荷の時に基準プ
ログラムの処理時間Bを算出する処理である。S1 基
準プログラム〔A1 〜An 〕を用いてそれぞれの処理時
間〔B1 〜B n 〕を求める(B1 〜Bn はそれぞれ,基
準プログラムA1 〜An の計算時間C 1 〜Cnに等しい
とする)。
6, FIG. 7, FIG. 8 and FIG. 9 are embodiments of the present invention.
It is a flowchart of 2. Figure 6 shows the standard
This is a process of calculating the processing time B of the program. S1 group
Associate Program [A1~ An] At the time of each processing
Between [B1~ B n]] (B1~ BnAre each
Associate Program A1~ AnCalculation time C 1~ Is equal to Cn
And).

【0058】S2 求めた処理時間B1 〜Bn をライブ
ラリ1へ登録するか判定する。登録するならS3に進
み,登録しないなら処理を終了する。S3 ライブラリ
1へ登録する。
S2: It is determined whether the calculated processing times B 1 to B n are to be registered in the library 1. If registered, the process proceeds to S3, and if not registered, the process ends. Register to S3 library 1.

【0059】図7,図8は負荷状態で一般の計算処理
(前述のプログラムXの処理)を行う場合のフローチャ
ートである。 S1 一般の計算処理(プログラムXの処理)を開始す
る。
FIG. 7 and FIG. 8 are flowcharts in the case of performing general calculation processing (processing of the above-mentioned program X) under load. S1 A general calculation process (process of the program X) is started.

【0060】S2 基準プログラム〔A1 〜An 〕の計
算を行い処理時間〔B1 ’〜Bn ’〕を算出する。 S3 ライブラリ2に登録するか判定する。登録するな
らS4に進み,登録しないならS5に進む。
S2 The reference program [A 1 to A n ] is calculated and the processing time [B 1 'to B n '] is calculated. It is determined whether to register in the S3 library 2. If registered, proceed to S4, and if not registered, proceed to S5.

【0061】S4 ライブラリ2へ登録する。 S5 基準プログラム〔A1 〜An 〕を繰り返し計算
し,一定時間毎にライブラリ2内の処理時間〔B1 ’〜
n ’〕を書き換える。
Register in S4 library 2. The S5 standard program [A 1 to A n ] is repeatedly calculated, and the processing time [B 1 ′ to
Rewrite B n '].

【0062】S6 ライブラリ2に登録するか判定す
る。登録するならS7に進み,登録しないならS8に進
む。 S7 ライブラリ2へ登録する。
It is determined whether to register in the S6 library 2. If registered, proceed to S7. If not registered, proceed to S8. Register in S7 library 2.

【0063】S8 処理時間〔B1 〜Bn 〕を用いて時
間的比率〔D1 〜Dn 〕を算出する。まず,ライブラリ
1,ライブラリ2より計算時間,処理時間を取り出し,
次いで,時間的比率〔D1 〜Dn 〕=処理時間〔B1
n 〕/計算時間〔C1 〜Cn〕を算出する。算出され
た時間的比率〔D1 〜Dn 〕をライブラリ3に登録す
る。
S8: The processing time [B 1 to B n ] is used to calculate the temporal ratio [D 1 to D n ]. First, take out the calculation time and processing time from library 1 and library 2,
Then, the temporal ratio [D 1 to D n ] = processing time [B 1 to
Bn ] / calculation time [C 1 to Cn] is calculated. The calculated temporal ratio [D 1 to D n ] is registered in the library 3.

【0064】S9 処理時間〔B1 〜Bn’〕を用い
て時間的比率を算出する。 S10 ライブラリ3に登録するか判定する。登録する
ならS11に進み,登録しないならS12に進む。
S9 processing time [B 1 ' ~ B n '] is used to calculate the temporal ratio. S10 Determine whether to register in the library 3. If registered, the process proceeds to S11, and if not registered, the process proceeds to S12.

【0065】S11 ライブラリ3へ登録する。 S12 一定時間毎に時間的比率〔D1 〜Dn 〕を求
め,ライブラリ3を書き換える。
Register to S11 library 3. S12 The time ratio [D 1 to D n ] is calculated at regular intervals, and the library 3 is rewritten.

【0066】(図8に続く) S12’ 予測処理時間を算出する場合には,S13に
進み,予測終了時間を算出する場合にはS19に進む。
(Continued from FIG. 8) S12 'When calculating the prediction processing time, the process proceeds to S13, and when calculating the prediction end time, the process proceeds to S19.

【0067】S13 基準プログラムXの予測処理時間
B を算出する処理を開始する。 S14 基準プログラム〔A1 〜An 〕の中からプログ
ラムXと同じものを選択する。見つかればS18に進
み,見つからなければ,S15に進む。
S13 The process of calculating the estimated processing time X B of the reference program X is started. S14 The same program as the program X is selected from the reference programs [A 1 to A n ]. If found, proceed to S18, and if not found, proceed to S15.

【0068】S15 プログラムXと同じ内容の基準プ
ログラムAxを作成する。但し,基準プログラムAxは
計算機(データ処理手段)への負担が少ないものとす
る。 S16 無負荷状態で基準プログラムAxの処理時間B
を測定する。
S15 A standard program Ax having the same contents as the program X is created. However, it is assumed that the reference program Ax imposes less burden on the computer (data processing means). S16 Processing time B of standard program Ax under no load
To measure.

【0069】S17 ライブラリ1へ登録し,S13以
降の処理を繰り返す(S15,S16は図7の処理と同
じである)。 S18 ライブラリ3より時間的比率Dxを取り出し,
時間的比率Dxを取り出し,予測処理時間XB =計算時
間Xc/時間的比率XD を算出する。
S17 Register in the library 1 and repeat the processing after S13 (S15 and S16 are the same as the processing of FIG. 7). Retrieve the temporal ratio Dx from the S18 library 3,
The temporal ratio Dx is taken out, and the predicted processing time X B = calculation time Xc / temporal ratio X D is calculated.

【0070】S19 プログラムXを計算機(データ処
理手段)にて実際に計算する。 S20 プログラムXの予測処理時間bを算出する。 S21 ライブラリ3より時間的比率Dxを取り出す。
予測処理時間b=(計算時間Xc−計算時間Xc’)×
時間的比率Dxにより,予測処理時間bを算出する。但
し,Xc’は経過した計算時間である。
S19 The program X is actually calculated by the computer (data processing means). S20 The predicted processing time b of the program X is calculated. The temporal ratio Dx is taken out from the S21 library 3.
Prediction processing time b = (calculation time Xc−calculation time Xc ′) ×
The predicted processing time b is calculated from the temporal ratio Dx. However, Xc 'is the elapsed calculation time.

【0071】S21’ 予測処理時間,予測終了時間お
よび時間的比率の表示処理をする。図9は予測処理時
間,予測終了時間および時間的比率の表示処理である。 S22 時間的比率を表示する。
S21 'Display processing of the prediction processing time, the prediction end time and the temporal ratio is performed. FIG. 9 is a display process of the prediction processing time, the prediction end time, and the temporal ratio. S22 The time ratio is displayed.

【0072】S23 ライブラリ3より時間的比率〔D
1 /Dn 〕を取り出し,平均化した値〔α」を求める。 α=(D1 +D2 +・・・+Dn )/n S24 αを折れ線グラフの一点としてプロットする。
From the S23 library 3, the time ratio [D
1 / D n ] is taken out and the averaged value [α] is obtained. α = (D 1 + D 2 + ... + D n ) / n S24 α is plotted as one point in the line graph.

【0073】S25 縦軸をα,横軸を時間とした一定
時間毎に変化するαを折れ線グラフとして表示する。 S26 αの値をそのまま画面に表示する。
S25: The vertical axis is α and the horizontal axis is time, and α that changes at regular time intervals is displayed as a line graph. The value of S26α is displayed on the screen as it is.

【0074】S27 αの値が変化する毎に画面の数値
も変化させる。 S28 予測処理時間を表示する。 S29 予測終了時間を表示する。
Each time the value of S27 α changes, the numerical value on the screen is also changed. S28: Displays the estimated processing time. S29 The predicted end time is displayed.

【0075】図10は本発明の表示画面の例を示す。図
10において,60は表示画面であって,予測処理時
間,予測終了時間,時間的比率の平均値,時間的比率の
時間変化のグラフを表示する場合の画面である。
FIG. 10 shows an example of the display screen of the present invention. In FIG. 10, a display screen 60 is a screen for displaying a graph of the prediction processing time, the prediction end time, the average value of the temporal ratio, and the temporal change of the temporal ratio.

【0076】60’は表示画面であって,各ライブラリ
の内容をウィンド表示したものである。
Reference numeral 60 'denotes a display screen on which the contents of each library are displayed in a window.

【0077】[0077]

【発明の効果】本発明によれば,計算機の混み具合を測
定してプログラムの処理時間を算出するので,正確に処
理時間を予測することができる。また,プログラムを実
行中に,計算機の混み具合が絶えず変化するような場合
にも,随時に計算機の混み具合を測定しながら,その都
度終了時間を修正しながら計算処理を行うことができる
ので,計算処理を行うタイミングや,作業計画をたてや
すくすることができる。
According to the present invention, since the processing time of the program is calculated by measuring the congestion degree of the computer, the processing time can be accurately predicted. In addition, even when the congestion level of the computer constantly changes during the execution of the program, the calculation process can be performed while measuring the congestion level of the computer at any time and correcting the end time each time. It is possible to make the timing of calculation processing and the work plan easier.

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

【図1】本発明の基本構成を示す図である。FIG. 1 is a diagram showing a basic configuration of the present invention.

【図2】本発明の基本構成のフローを示す図である。FIG. 2 is a diagram showing a flow of a basic configuration of the present invention.

【図3】本発明の原理説明図である。FIG. 3 is a diagram illustrating the principle of the present invention.

【図4】本発明の実施例1を示す図である。FIG. 4 is a diagram showing a first embodiment of the present invention.

【図5】本発明の実施例2を示す図である。FIG. 5 is a diagram showing a second embodiment of the present invention.

【図6】本発明の実施例2のフローチャートを示す図で
ある。
FIG. 6 is a diagram showing a flowchart of a second embodiment of the present invention.

【図7】本発明の実施例2のフローチャートを示す図で
ある。
FIG. 7 is a diagram showing a flowchart of a second embodiment of the present invention.

【図8】本発明の実施例2のフローチャートを示す図で
ある。
FIG. 8 is a diagram showing a flowchart of a second embodiment of the present invention.

【図9】本発明の実施例2のフローチャートを示す図で
ある。
FIG. 9 is a diagram showing a flowchart of a second embodiment of the present invention.

【図10】表示画面の例を示す図である。FIG. 10 is a diagram showing an example of a display screen.

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

1:データ処理手段 2:基準プログラム保持手段 3:処理時間測定手段 4:時間的比率計算手段 5:測定結果保持手段 6:負荷 7:プログラムP 8:プログラムQ 9:プログラムR 10:出力手段 11:時間的比率D 12:プログラムX 13:予測処理時間算出処理 14:入力手段 1: Data processing means 2: Reference program holding means 3: Processing time measuring means 4: Temporal ratio calculation means 5: Measurement result holding means 6: Load 7: Program P 8: Program Q 9: Program R 10: Output means 11 : Time ratio D 12: program X 13: prediction processing time calculation processing 14: input means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 入力手段(14)と出力手段(10)とデータ処
理手段(1) と,プログラムの実行開始から終了までの時
間を測定する処理時間測定手段(3) と,プログラムの計
算時間を予測する基準とする基準プログラムを保持する
基準プログラム保持手段(2) と,基準プログラムの正味
の計算時間Cと,データ処理手段(1)に負荷がある状態
での基準プログラムの処理時間B’に基づいて時間的比
率D=B’/Cを計算する時間的比率計算手段(4) とを
備え,データ処理手段(1) に負荷(6) がある状態での基
準プログラムの処理時間B’を測定し,基準プログラム
の計算時間Cと該処理時間B’に基づいて時間的比率D
=B’/Cを計算し,該基準プログラムと似たプログラ
ムX(12)の計算時間Xcを求め,該時間的比率Dと該計
算時間Xcに基づいて,該プログラムX(12)の予測処理
時間XB をX B =Xc×Dにより算出することを特徴と
する計算機プログラムの処理時間予測方法。
1. Input means (14), output means (10) and data processing
Management means (1) and time from the start to the end of program execution
The processing time measuring means (3) for measuring the interval and the program total
Maintain a standard program that is the standard for predicting arithmetic time
Reference program holding means (2) and net of reference program
Calculation time C and load on data processing means (1)
Based on the processing time B'of the reference program in
The time ratio calculating means (4) for calculating the ratio D = B '/ C
The data processing means (1) is equipped with a load (6).
Measure the processing time B'of the quasi-program
Based on the calculation time C and the processing time B ′ of
= B '/ C is calculated, and a program similar to the reference program is calculated.
The calculation time Xc of the X (12) is calculated, and the time ratio D and the total are calculated.
Prediction processing of the program X (12) based on the arithmetic time Xc
Time xBX B= Xc × D
Computer program processing time prediction method.
【請求項2】 請求項1において,時間的比率Dとプロ
グラムX(12)の計算時間Xcとにより該プログラムX(1
2)の予測処理時間XB をXB =Xc×Dで計算する予測
処理時間算出手段(43)を備え,該時間的比率Dと該計算
時間Xcとに基づいてXB =Xc×Dによりプログラム
X(12)の予測処理時間XB を計算して出力することを特
徴とする計算機プログラムの処理時間予測方法。
2. The program X (1 according to claim 1, wherein the time ratio D and the calculation time Xc of the program X (12) are used.
A prediction processing time calculating means (43) for calculating the prediction processing time X B of 2) with X B = Xc × D is provided, and based on the temporal ratio D and the calculation time Xc, X B = Xc × D A method for predicting the processing time of a computer program, characterized in that the predicted processing time X B of the program X (12) is calculated and output.
【請求項3】 請求項1もしくは2において,基準プロ
グラムの計算時間Cと処理時間B’と時間的比率Dを保
持する測定結果保持手段(5) を備え,処理時間測定手段
(3) はデータ処理手段(1) に負荷(6) がある状態での基
準プログラムの処理時間B’の測定を随時行い,時間的
比率計算手段(4) は随時時間的比率を算出して測定結果
保持手段(5) に保持している時間的比率Dを更新するこ
とを特徴とする計算機プログラムの処理時間予測方法。
3. The processing time measuring means according to claim 1, further comprising a measurement result holding means (5) for holding a calculation time C, a processing time B ′ and a temporal ratio D of the reference program.
(3) measures the processing time B'of the reference program with the load (6) on the data processing means (1) at any time, and the time ratio calculation means (4) calculates the time ratio at any time. A processing time predicting method for a computer program, which comprises updating the temporal ratio D held in the measurement result holding means (5).
【請求項4】 請求項1,2しくは3において,該プロ
グラムX(12)の処理を開始してから,データ処理手段
(1) で実行された正味の計算時間Xc’を求める計算時
間測定手段(46)を備え,プログラムX(12)の計算時間X
cと実行された計算時間Xc’と時間的比率Dとによ
り,該プログラムX(12)が終了するまでの時間bをb=
(Xc−Xc’)×Dにより計算して出力することを特
徴とする計算機プログラムの処理時間予測方法。
4. The data processing means according to claim 1, 2 or 3, after the processing of the program X (12) is started.
The calculation time measuring means (46) for obtaining the net calculation time Xc ′ executed in (1) is provided, and the calculation time X of the program X (12) is provided.
c, the executed calculation time Xc ′, and the time ratio D, the time b until the program X (12) ends is b =
A method for predicting a processing time of a computer program, which calculates and outputs (Xc-Xc ') * D.
【請求項5】 入力手段(14)と出力手段(10)とデータ処
理手段(1) と,プログラムの実行開始から終了までの時
間を測定する処理時間測定手段(3) と,プログラムの計
算時間を予測する基準とする基準プログラムと,基準プ
ログラムの正味の計算時間Cと基準プログラムの処理時
間を保持する測定結果保持手段(5) と,基準プログラム
の処理時間B’に基づいて時間的比率D=B’/Cを計
算する時間的比率計算手段(4) とを備え,基準プログラ
ムに似た計算時間Xcが既知のプログラムX(12)のプロ
グラムの予測処理時間XB をXB =Xc×Dにより算出
することを特徴とする計算機。
5. An input means (14), an output means (10), a data processing means (1), a processing time measuring means (3) for measuring the time from the start to the end of execution of the program, and a calculation time of the program. Based on the reference program serving as a reference for predicting, the measurement result holding means (5) for holding the net calculation time C of the reference program and the processing time of the reference program, and the time ratio D based on the processing time B ′ of the reference program. = B '/ C is calculated, and the predicted processing time X B of the program of the program X (12) having a known calculation time Xc similar to the reference program is X B = Xc × A computer characterized by being calculated by D.
JP6046850A 1994-03-17 1994-03-17 Processing time predicting method for computer program and computer therefor Withdrawn JPH07262055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6046850A JPH07262055A (en) 1994-03-17 1994-03-17 Processing time predicting method for computer program and computer therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6046850A JPH07262055A (en) 1994-03-17 1994-03-17 Processing time predicting method for computer program and computer therefor

Publications (1)

Publication Number Publication Date
JPH07262055A true JPH07262055A (en) 1995-10-13

Family

ID=12758823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6046850A Withdrawn JPH07262055A (en) 1994-03-17 1994-03-17 Processing time predicting method for computer program and computer therefor

Country Status (1)

Country Link
JP (1) JPH07262055A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007299212A (en) * 2006-04-28 2007-11-15 Fujitsu Ten Ltd Apparatus and method for evaluating porting of software
US7496476B2 (en) 2006-05-16 2009-02-24 International Business Machines Corporation Method and system for analyzing performance of an information processing system
JP2009076073A (en) * 2001-03-05 2009-04-09 Cadence Design Systems Inc Method and apparatus for statistical evaluation of embedded software execution time

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009076073A (en) * 2001-03-05 2009-04-09 Cadence Design Systems Inc Method and apparatus for statistical evaluation of embedded software execution time
JP2007299212A (en) * 2006-04-28 2007-11-15 Fujitsu Ten Ltd Apparatus and method for evaluating porting of software
US7496476B2 (en) 2006-05-16 2009-02-24 International Business Machines Corporation Method and system for analyzing performance of an information processing system

Similar Documents

Publication Publication Date Title
JP3490742B2 (en) Memory management device
US20080288216A1 (en) Method for Measuring Quantity of Usage of CPU
JP2017151656A (en) Parallel processing device, power factor calculation program, and power factor calculation method
EP1739549B1 (en) Branch prediction device, method thereof, and processor
JPH07262055A (en) Processing time predicting method for computer program and computer therefor
JP3751466B2 (en) Program response time prediction device
JP2001117771A (en) Branch predicting device using branch prediction precision history
CN111814106A (en) Time series data hysteresis processing method and device, electronic equipment and storage medium
JPH11265306A (en) Throughput estimation device, its method and recording medium
JP7401830B2 (en) Work waiting prediction device, method, and system
JP2715904B2 (en) Computer system performance evaluation device
JPH08315033A (en) Advancement managing device
JPH09128373A (en) Support method for numerical value calculation
JPH0950391A (en) Data processor
JPH07152726A (en) Modified cholesky decomposition calculating device
JPH02267642A (en) Measuring device for time exclusive for cpu
JPH08235266A (en) Table calculation processing method
JPH02126345A (en) Information processor
JPH1194909A (en) Method and apparatus for testing semiconductor device
JPH0635727A (en) Cpu load factor calculating method
JPH05250339A (en) Program performance evaluation assistance device
JP3838279B2 (en) Computer program execution cost analysis method
JPS6391754A (en) Memory size control system
JPH02235152A (en) Information processor
JPH05100912A (en) Processing elapsed time informing method for program

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: 20010605