JPH09305417A - Cpu use rate optimizing system - Google Patents

Cpu use rate optimizing system

Info

Publication number
JPH09305417A
JPH09305417A JP8142215A JP14221596A JPH09305417A JP H09305417 A JPH09305417 A JP H09305417A JP 8142215 A JP8142215 A JP 8142215A JP 14221596 A JP14221596 A JP 14221596A JP H09305417 A JPH09305417 A JP H09305417A
Authority
JP
Japan
Prior art keywords
cpu usage
usage rate
job
cpu
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.)
Pending
Application number
JP8142215A
Other languages
Japanese (ja)
Inventor
Akane Arai
あかね 新井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP8142215A priority Critical patent/JPH09305417A/en
Publication of JPH09305417A publication Critical patent/JPH09305417A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To operate a CPU with high efficiency by comparing a CPU use rate with a current CPU use rate and changing the priority of jobs composed of work corresponding to the compared result. SOLUTION: The CPU use time per unit time of work acquired by a CPU use time acquiring means 11 of a control part 1 is read out and the current CPU use rate of work is calculated by a current CPU use rate calculating means 12. Besides, the CPU use rate of work acquired from the output of a CPU use rate optimizing means 21 is set by a CPU use rate acquiring means 22 of a statistic part 2. Then, that CPU use rate is compared with the current CPU use rate by a CPU use rate control means 13 and corresponding to the compared result, the priority of jobs consisting of the work is changed. Thus, the CPU can be operated with high efficiency.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、CPU使用率最適
化方式に関し、特に情報処理装置上で実行する業務のC
PU使用率最適化方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a CPU usage rate optimizing method, and more particularly, to a C method for a task executed on an information processing apparatus.
The present invention relates to a PU usage rate optimization method.

【0002】[0002]

【従来の技術】CPU使用率の算出方式の従来技術とし
て、例えば特開昭63−68944号公報には、業務処
理中の事象発生後のCPU使用率として予め測定してお
いた値を登録しておき、その値をCPU使用率として与
えることにより動的に各種業務の割当を決定し、高速且
つ能率的なCPU処理を図るようにした方式が提案され
ている。すなわち、この従来技術においては、各業務ご
とにCPU使用率と現CPU使用率を登録保持し、業務
処理の発生時に現CPU使用率を書き換え、全業務のC
PU使用率の合計からシステムのCPU使用率を生成す
ることにより、その値に従って次に処理する業務の割り
当てを行うものである。
2. Description of the Related Art As a conventional technique for calculating the CPU usage rate, for example, in Japanese Patent Laid-Open No. 63-68944, a value previously measured as the CPU usage rate after occurrence of an event during business processing is registered. A method has been proposed in which the allocation of various jobs is dynamically determined by giving the value as a CPU usage rate to achieve high-speed and efficient CPU processing. That is, in this conventional technique, the CPU usage rate and the current CPU usage rate are registered and held for each business, and the current CPU usage rate is rewritten when business processing occurs, and the C
The CPU usage rate of the system is generated from the total of the PU usage rates, and the work to be processed next is allocated according to the value.

【0003】また、CPU使用率に関連する技術とし
て、例えば特開平4−245544号公報には、主記憶
装置に設けられた非同期入出力バッファ内のデータを非
同期入出力実行タスクにより外部記憶装置へ出力するデ
ータ処理システムにおいて、非同期実行入出力タスクの
プライオリティをCPU使用率に基づいて定期的に変更
できる方式が提案されている。これは、一般に、非同期
入出力バッファに書き込まれる単位時間当たりのデータ
量は、CPU使用率が高い時は多くなり、反対にCPU
使用率が低いときは少なくなることから、CPU使用率
に基づき、非同期入出力実行タスクのプライオリティを
定期的に変更し、非同期入出力バッファにほぼ適量な量
のデータが溜まった時に外部記憶装置へデータが出力さ
れるようにして処理速度の向上を図るようにしたもので
ある。
As a technique related to the CPU usage rate, for example, in Japanese Patent Laid-Open No. 4-245544, data in an asynchronous input / output buffer provided in a main storage device is transferred to an external storage device by an asynchronous input / output execution task. In a data processing system for outputting, a method has been proposed in which the priority of an asynchronous execution input / output task can be periodically changed based on the CPU usage rate. This is because the amount of data written to the asynchronous I / O buffer per unit time generally increases when the CPU usage rate is high, and conversely
When the usage rate is low, it decreases. Therefore, the priority of the asynchronous I / O execution task is changed periodically based on the CPU usage rate, and when the asynchronous I / O buffer stores an almost appropriate amount of data, it is sent to the external storage device. The processing speed is improved by outputting the data.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記特
開昭63−68944号公報に提案されるCPU使用率
算出方式は下記記載の問題点を有している。
However, the CPU utilization rate calculation method proposed in Japanese Patent Laid-Open No. 63-68944 has the following problems.

【0005】その第1の問題点は、業務を実行する利用
者がその業務に割り当てるCPU使用率の値を設定する
場合、最適な値を求めることは困難であるということで
ある。これは、利用者が経験的な値を業務のCPU使用
率として設定するため、CPU使用率値を、いかなる値
に設定すれば最も効率よく運用が行えるかということを
予測をすることは困難であることによる。このため、利
用者の設定したCPU使用率がシステム運用上の最適な
値であるという保証はない。
The first problem is that it is difficult for a user who executes a job to obtain an optimum value when setting the value of the CPU usage rate allocated to the job. This is because the user sets an empirical value as the CPU usage rate of the work, so it is difficult to predict what value the CPU usage rate should be set to achieve the most efficient operation. It depends. Therefore, there is no guarantee that the CPU usage rate set by the user is an optimum value for system operation.

【0006】第2の問題点は、システムのテーブルの一
つとして業務ごとのCPU使用率を固定的に与えている
ため、動的にCPU使用率を与えることができないとい
うことである。このため、システム全体のCPUの最適
利用を行うために必要である単位時間ごとの詳細なCP
U使用率の設定ができない。
The second problem is that the CPU usage rate for each job is fixedly provided as one of the system tables, so that the CPU usage rate cannot be dynamically given. Therefore, a detailed CP for each unit time required for optimal use of the CPU of the entire system
U usage rate cannot be set.

【0007】従って、本発明は、上記事情に鑑みてなさ
れたものであって、その目的は、予め各業務のCPU使
用時間やジョブ数を計測して得た統計情報から、業務に
与えるCPU使用率を算出し自動で割り当てを行い、C
PUを高効率に運用できるようにしたCPU使用率最適
化方式を提供することにある。
Therefore, the present invention has been made in view of the above circumstances, and an object thereof is to use a CPU used for a job from statistical information obtained by previously measuring the CPU usage time of each job and the number of jobs. The rate is calculated and assigned automatically, and C
It is to provide a CPU usage rate optimizing method capable of operating a PU with high efficiency.

【0008】[0008]

【課題を解決するための手段】上記した目的を達成する
ために、本発明に係るCPU使用率最適化方式は、情報
処理装置で実行される業務のCPU使用率に関する統計
情報を生成し記憶部に記憶する手段と、該記憶部に記憶
された統計情報を解析し、該解析結果に基づきCPU使
用率の最適化を行う最適化手段と、該最適化手段で求め
られた業務の時間帯ごとのCPU使用率を設定し、この
設定されたCPU使用率と、該業務の現CPU使用時間
の情報を獲得して算出される現CPU使用率と、を比較
し、該比較結果に応じて業務を構成するジョブの優先度
を変更することにより業務のCPU使用率を制御する手
段と、を備えたことを特徴とする。
In order to achieve the above-mentioned object, the CPU usage rate optimizing method according to the present invention generates statistical information on the CPU usage rate of a job executed by an information processing apparatus and stores it in a storage unit. And means for storing the statistical information stored in the storage unit, and optimizing the CPU usage rate based on the analysis result, and for each business time period obtained by the optimizing means. CPU usage rate is set, the set CPU usage rate is compared with the current CPU usage rate calculated by acquiring information on the current CPU usage time of the business, and the business is performed according to the comparison result. And means for controlling the CPU usage rate of the job by changing the priority of the jobs constituting the.

【0009】本発明においては、前記統計情報が、業務
のジョブ数の合計、各ジョブのCPU使用時間の情報、
及び運用時間内に業務が終了していたか否かの情報を統
計内容として含み、前記最適化手段が、該統計内容から
CPU使用率に所定の重みを与えて最適なCPU使用率
を算出することを特徴とする。
In the present invention, the statistical information includes the total number of job jobs, CPU usage time information for each job,
And, the optimizing means calculates the optimum CPU usage rate by giving a predetermined weight to the CPU usage rate from the statistical content, including statistical information including information on whether or not the work is completed within the operating time. Is characterized by.

【0010】[0010]

【発明の実施の形態】本発明の好ましい実施の形態を以
下に説明する。本発明は、好ましい実施の形態におい
て、図1を参照すると、CPU使用率統計手段(23)
を備え、業務ごとのCPU使用時間の統計情報を生成し
(25)、ファイル(4)に出力する。そして、このフ
ァイル(4)から統計情報を読み出し、統計情報解析手
段(24)により、統計情報から業務ごとのCPU使用
状況を解析し、システムの資源利用上で最適なCPU使
用率を計算する(21)。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of the present invention will be described below. The present invention, in a preferred embodiment, referring to FIG. 1, CPU utilization statistics means (23)
(25), and outputs it to the file (4). Then, the statistical information is read from this file (4), and the statistical information analysis means (24) analyzes the CPU usage status for each business from the statistical information and calculates the optimum CPU usage rate in terms of resource utilization of the system ( 21).

【0011】本発明の実施の形態において、統計情報に
は、業務のジョブ数、ジョブの実行順序、各ジョブのC
PU使用時間が含まれ、統計情報解析手段(24)は、
統計情報から業務の一日のCPU使用率の平均を算出す
る。
In the embodiment of the present invention, the statistical information includes the number of job jobs, job execution order, and C of each job.
The PU usage time is included, and the statistical information analysis means (24)
From the statistical information, the average CPU usage rate for one day of work is calculated.

【0012】CPU使用率最適化手段(21)は、業務
の一日の平均CPU使用率の値を用いて、業務内の各ジ
ョブに、統計情報のCPU使用時間に応じて割り当てる
CPU使用率を自動で算出する。そして、業務のCPU
使用率を、時間帯ごとに設定した値を、CPU使用率獲
得手段(22)により獲得する。
The CPU usage rate optimizing means (21) uses the value of the average daily CPU usage rate of the job to assign the CPU usage rate to each job in the job according to the CPU usage time of the statistical information. Calculated automatically. And business CPU
The CPU usage rate acquisition means (22) acquires the value of the usage rate set for each time period.

【0013】CPU使用率制御手段(13)は、現CP
U使用率と、CPU使用率獲得手段(22)により自動
で業務ごとに設定されたCPU使用率と、に従って、実
行ジョブのプライオリティチェンジを変更することによ
りCPU使用率の制御を行う。
The CPU usage rate control means (13) uses the current CP.
The CPU usage rate is controlled by changing the priority change of the execution job according to the U usage rate and the CPU usage rate automatically set for each job by the CPU usage rate obtaining means (22).

【0014】上記した本発明の実施の形態を更に詳細に
説明すべく、本発明の一実施例を以下に説明する。
An embodiment of the present invention will be described below in order to describe the above-described embodiment of the present invention in more detail.

【0015】[0015]

【実施例】図1は、本発明の一実施例の構成をブロック
図にて示したものである。図1を参照すると、本発明の
一実施例に係るCPU使用率最適化方式は、制御部1
と、統計部2と、出力装置3と、ファイル装置4と、か
ら構成されている。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. Referring to FIG. 1, a CPU usage optimization method according to an exemplary embodiment of the present invention includes a control unit 1.
And a statistical unit 2, an output device 3, and a file device 4.

【0016】制御部1は、CPU使用時間獲得手段11
と、現CPU使用率算出手段12と、CPU使用率制御
手段13と、から構成されている。
The control unit 1 has a CPU usage time acquisition means 11
And a current CPU usage rate calculation means 12 and a CPU usage rate control means 13.

【0017】統計部2は、CPU使用率最適化手段21
と、CPU使用率獲得手段22と、CPU使用率統計手
段23と、統計情報解析手段24と、統計情報生成手段
25と、表示手段26と、読み出し手段27と、出力手
段28と、を含む。
The statistic section 2 includes a CPU usage rate optimizing means 21.
The CPU usage rate acquisition means 22, the CPU usage rate statistical means 23, the statistical information analysis means 24, the statistical information generation means 25, the display means 26, the reading means 27, and the output means 28 are included.

【0018】本実施例では、システムの運用時間を9:
00から17:00とし、3つの業務が稼働しており、
1時間単位で統計するものとする。また、説明を簡略化
するために、3つの業務以外に動作するものはないもの
とする。
In this embodiment, the system operating time is 9:
From 00 to 17:00, three operations are in operation,
Statistics shall be taken on an hourly basis. Further, in order to simplify the explanation, it is assumed that there is nothing that operates other than the three jobs.

【0019】ここで、CPU使用時間とは、ユーザ時間
と、カーネル空間利用時間と、の合計時間を表し、CP
U使用率は、システム全体で使用されたCPU使用時間
に対する業務のCPU使用時間の割合をいう。すなわ
ち、対象時間内でのシステムのCPU使用時間をS
(s)、業務1のCPU使用時間をS(1)とすると、
業務1のCPU使用率は、(S(1)/S(s))×1
00である。
Here, the CPU usage time represents the total time of the user time and the kernel space usage time, and CP
The U usage rate refers to the ratio of the CPU usage time of work to the CPU usage time used in the entire system. That is, the CPU usage time of the system within the target time is S
(S), if the CPU usage time of task 1 is S (1),
The CPU usage rate of job 1 is (S (1) / S (s)) × 1
00.

【0020】図3に、時間帯9:00〜10:00にお
ける業務1〜業務3の統計情報の一例を示す。
FIG. 3 shows an example of the statistical information of work 1 to work 3 in the time zone from 9:00 to 10:00.

【0021】9時から10時の時間帯でのシステム全体
のCPU使用時間は、業務1、業務2、業務3のそれぞ
れのCPU使用時間合計を加算した値、すなわち25+
5+20=50(分)である。
The CPU usage time of the entire system in the time zone from 9:00 to 10:00 is a value obtained by adding the total CPU usage time of each of work 1, work 2, and work 3, that is, 25+
5 + 20 = 50 (minutes).

【0022】この時間帯の業務1の現CPU使用率は、
(25/50)×100=50(%)と算出される。同
様に業務2、業務3の現CPU使用率はそれぞれ10
(%)、40(%)である。
The current CPU usage rate of job 1 during this time period is
It is calculated as (25/50) × 100 = 50 (%). Similarly, the current CPU usage rates of business 2 and business 3 are 10 respectively.
(%) And 40 (%).

【0023】本実施例の動作を以下に説明する。The operation of this embodiment will be described below.

【0024】まず、図1を参照して、制御部1のCPU
使用時間獲得手段11により、業務の単位時間あたりの
CPU使用時間と、システム全体の単位時間あたりのC
PU使用時間と、を得る。このCPU使用時間を読み出
して、現CPU使用率算出手段12は、業務の現CPU
使用率を算出する。この値を現CPU使用率(A)とす
る。
First, referring to FIG. 1, the CPU of the control unit 1
By the usage time acquisition means 11, the CPU usage time per unit time of business and C per unit time of the entire system
The PU usage time is obtained. This CPU usage time is read out, and the current CPU usage rate calculation means 12 determines the current CPU of the job.
Calculate the usage rate. This value is the current CPU usage rate (A).

【0025】統計部2のCPU使用率獲得手段22がC
PU使用率最適化手段21の出力から獲得した業務のC
PU使用率をCPU使用率(B)とする。
The CPU usage rate acquisition means 22 of the statistics section 2 is C
C of the business obtained from the output of the PU usage rate optimizing means 21.
Let the PU usage rate be the CPU usage rate (B).

【0026】現CPU使用率(A)とCPU使用率
(B)とを比較して、業務のCPU使用率(A)を目標
のCPU使用率(B)に近づけるように、制御部1のC
PU使用率制御手段13が制御を行う。その際、CPU
使用率制御手段13は、プライオリティチェンジ方式を
用いて制御する。
The current CPU usage rate (A) and the CPU usage rate (B) are compared, and C of the control unit 1 is set so that the CPU usage rate (A) of the work is brought close to the target CPU usage rate (B).
The PU usage rate control means 13 controls. At that time, CPU
The usage rate control means 13 controls using a priority change method.

【0027】すなわち、現CPU使用率(A)<CPU
使用率(B)である場合には、業務内のジョブの実行プ
ライオリティを上昇させてCPUをより多く使用できる
ようにする。逆に、現CPU使用率(A)>CPU使用
率(B)である場合には、業務内のジョブの実行プライ
オリティを下降させてCPUの使用を抑制する。
That is, the current CPU usage rate (A) <CPU
If it is the usage rate (B), the execution priority of the job in the job is increased so that the CPU can be used more. On the contrary, when the current CPU usage rate (A)> CPU usage rate (B), the execution priority of the job in the job is lowered to suppress the CPU usage.

【0028】現CPU使用率(A)=CPU使用率
(B)である場合は、プライオリティ制御を行わない。
When the current CPU usage rate (A) = CPU usage rate (B), priority control is not performed.

【0029】そして、上述のプライオリティチェンジ方
式によるCPU使用率の制御を一定時間間隔で行う。
Then, control of the CPU usage rate by the above-mentioned priority change system is performed at regular time intervals.

【0030】次に、CPU使用率統計手段23は、業務
の単位時間あたりのCPU使用時間と、現CPU使用率
と、ジョブ数とを獲得する。
Next, the CPU usage rate statistics means 23 acquires the CPU usage time per unit time of work, the current CPU usage rate, and the number of jobs.

【0031】これらの情報と、CPU使用率獲得手段2
2からのCPU使用率と、現CPU使用率算出手段12
によって得たカレント値(現在の値、現CPU使用率)
とを合わせて、統計情報生成手段25は、各業務ごとの
統計情報としてファイル4に出力する。統計情報は、好
ましくは前日までの情報の平均を取り、毎日更新するこ
とにより、より正確な情報を得るようにしている。
These information and the CPU usage rate acquisition means 2
CPU usage rate from 2 and current CPU usage rate calculation means 12
Current value obtained by (current value, current CPU usage rate)
In addition, the statistical information generating means 25 outputs to the file 4 as statistical information for each work. The statistical information is preferably obtained by averaging the information up to the previous day and updating it every day to obtain more accurate information.

【0032】ファイル4は、CPU使用率制御の対象と
なる業務の情報として、時間帯とその単位時間ごとのジ
ョブ数、ジョブの実行順序、CPU使用時間、現CPU
使用率とCPU使用率とを格納するファイルであり、そ
の記憶内容の一例は図3に示したようなものとなる。
The file 4 is used as the information of the work subject to the CPU usage rate control, the number of jobs per time zone and its unit time, the job execution order, the CPU usage time, the current CPU.
It is a file that stores the usage rate and the CPU usage rate, and an example of the stored contents is as shown in FIG.

【0033】次に、統計情報解析手段24について説明
する。
Next, the statistical information analysis means 24 will be described.

【0034】本実施例において、システム運用時間は、
9時から17時までとしているので、業務全体で最大8
×60=480分の実時間が使用できる。
In this embodiment, the system operation time is
Since it is from 9:00 to 17:00, the maximum is 8 for the entire work.
× 60 = 480 minutes real time can be used.

【0035】統計情報解析手段24は、ファイル4の情
報を読み出し手段27を介して読み出す。
The statistical information analysis means 24 reads the information of the file 4 via the reading means 27.

【0036】図2は、ファイル4に格納されている業務
のジョブごとの統計情報の一例を模式的に示したもので
ある。すなわち、ファイル4から読み出される統計情報
は、業務ごとの一日あたりのジョブ数、ジョブ実行順
序、運用時間内に業務が終了したか否かの情報を含んで
いる。
FIG. 2 schematically shows an example of the statistical information for each job of the business stored in the file 4. That is, the statistical information read from the file 4 includes the number of jobs per day for each job, the job execution order, and information on whether the job is completed within the operating time.

【0037】図2を参照すると、業務1の一日に実行さ
れるジョブ数の合計は5(ジョブ1〜ジョブ5)であ
り、全ジョブのCPU使用時間の合計は174分であ
る。また、業務2の一日に実行されるジョブ数の合計は
3であり、全ジョブのCPU使用時間の合計は160分
である。そして、業務3の一日に実行されるジョブ数の
合計は3であり、全ジョブのCPU使用時間の合計は1
10分である。
Referring to FIG. 2, the total number of jobs to be executed in one day of job 1 is 5 (job 1 to job 5), and the total CPU usage time of all jobs is 174 minutes. Further, the total number of jobs executed in the day of work 2 is 3, and the total CPU usage time of all jobs is 160 minutes. The total number of jobs executed in one day of work 3 is 3, and the total CPU usage time of all jobs is 1
10 minutes.

【0038】よって、業務全体では、174+160+
110=444分のCPU時間を消費していることがわ
かる。一般に、実時間は、CPU使用時間より大きくな
るが、図2に示した例では、480>444となり、こ
の条件を満たしている。
Therefore, in the whole work, 174 + 160 +
It can be seen that 110 = 444 minutes of CPU time is consumed. Generally, the real time is longer than the CPU usage time, but in the example shown in FIG. 2, 480> 444, which satisfies this condition.

【0039】業務1の一日のCPU使用率は、(174
/444)×100=39.1(%)と計算される。こ
の値をC(1)とおく。この割合で実時間も使用すると
仮定して計算すると、480×0.391=187.6
8(分)である。
The CPU usage rate for the first day of work 1 is (174
/444)×100=39.1(%) is calculated. This value is set as C (1). Calculating assuming that real time is also used at this ratio, 480 × 0.391 = 187.6
8 (minutes).

【0040】次に、CPU使用率最適化手段21につい
て説明する。図4は、本実施例におけるCPU使用率最
適化手段21の処理フローを示す流れ図である。CPU
使用率最適化手段21は、各業務の最適なCPU使用率
を次のようにして求める。
Next, the CPU usage rate optimizing means 21 will be described. FIG. 4 is a flowchart showing the processing flow of the CPU usage rate optimizing means 21 in this embodiment. CPU
The usage rate optimizing means 21 obtains the optimum CPU usage rate for each job as follows.

【0041】図4を参照して、統計情報ファイル4から
業務に関する統計情報を読み込み(ステップ101)、
運用時間帯内に業務が終了したか否かを判定し(ステッ
プ102)、業務が終了していればステップ103に進
む。
Referring to FIG. 4, the statistical information on the work is read from the statistical information file 4 (step 101),
It is determined whether or not the work is completed within the operating time zone (step 102), and if the work is completed, the process proceeds to step 103.

【0042】一方、業務が運用時間内に終了していなけ
れば、業務のCPU使用率として計算した値C(1)に
重みpを与え、新たなCPU使用率をC(1)×p=p
C(1)とおく(ステップ104)。
On the other hand, if the job is not completed within the operating time, a weight p is given to the value C (1) calculated as the CPU usage rate of the job, and the new CPU usage rate is C (1) × p = p.
Let it be C (1) (step 104).

【0043】次に、ジョブ数はCPU使用時間に比例す
ることから、CPU使用率に業務ごとのジョブ数を重み
係数kで重みとして与え(ステップ103)、新たなC
PU使用率は、pC(1)×k=kpC(1)となる。
Next, since the number of jobs is proportional to the CPU usage time, the number of jobs for each job is given as a weight to the CPU usage rate by the weighting coefficient k (step 103), and a new C
The PU usage rate is pC (1) × k = kpC (1).

【0044】本実施例において、業務1については、k
p=1とおき、CPU使用率はC(1)であるとものす
る。
In the present embodiment, k for the work 1
It is assumed that p = 1 and the CPU usage rate is C (1).

【0045】重み係数p、kは、統計情報を参照して最
も効果があった日を検索し、当該日に使用されていた値
を設定する。ここで、「効果があった」といえるのは、
現CPU使用率と、CPU使用率と、の差が最も小さい
場合である。
For the weighting factors p and k, the most effective day is searched by referring to the statistical information, and the value used on that day is set. Here, what can be said to be "effective" is
This is the case where the difference between the current CPU usage rate and the CPU usage rate is the smallest.

【0046】また、重みを加えたことにより、全業務の
CPU使用率の合計が100%を超過することがあるの
で、全業務のCPU使用率の合計が100%を超過して
いるか否かを判定し(ステップ105)、合計が100
%以下になるように補正する(ステップ106)。
Further, since the total of the CPU usage rates of all the jobs may exceed 100% due to the addition of the weight, it is determined whether the total of the CPU usage rates of all the jobs exceeds 100%. It is judged (step 105), and the total is 100.
The correction is made so that it becomes not more than% (step 106).

【0047】すなわち、重みを加えて得た各業務のCP
U使用率の比を求め、その比を保って合計が100にな
るように再計算する。
That is, the CP of each job obtained by adding weights
The ratio of the U usage rates is calculated, and the ratio is kept and recalculated so that the total becomes 100.

【0048】ここで、係数kとpとは1であるものと仮
定し、業務1に割り当てるCPU使用率はC(1)=3
9.1(%)となる。
Here, it is assumed that the coefficients k and p are 1, and the CPU usage rate assigned to the task 1 is C (1) = 3.
It becomes 9.1 (%).

【0049】この値をCPU使用率獲得手段にCPU使
用率情報として通知する(ステップ107)。
This value is notified to the CPU usage rate acquisition means as CPU usage rate information (step 107).

【0050】次に、業務に対する単位時間ごとのCPU
使用率の割り当て方法を同様に業務1を例にして説明す
る。
Next, CPU for each unit of time for business
Similarly, the usage rate allocation method will be described by using the task 1 as an example.

【0051】業務1の一日のCPU使用率を39.1
(%)と計算したが、この割合で実時間を使用するもの
と仮定して計算すると、480×0.391=約188
(分)となる。この時間(188分)を、業務1内のジ
ョブ1〜5に割り当てると、図5に示すようなものとな
る。例えばジョブ1、2(CPU使用時間は30分)に
は、実時間として32分が割り当てられ、ジョブ4、5
(CPU使用時間は45分)には実時間として49分が
割り当てられる。
The daily CPU usage rate of task 1 is 39.1.
(%) Was calculated, but if it is calculated assuming that real time is used at this ratio, then 480 × 0.391 = about 188
(Minutes). When this time (188 minutes) is assigned to the jobs 1 to 5 in the job 1, it becomes as shown in FIG. For example, jobs 1 and 2 (CPU usage time is 30 minutes) are allocated 32 minutes as real time, and jobs 4 and 5 are allocated.
49 minutes is allocated as the actual time to (CPU usage time is 45 minutes).

【0052】図6の斜線で示す部分、すなわち、斜線部
の面積=システム全体の実時間×CPU使用率、を表
す。
The shaded area in FIG. 6, ie, the area of the shaded area = real time of the entire system × CPU usage rate is represented.

【0053】この斜線部の面積は、業務1が消費する実
時間である。斜線部の面積=Σ業務内のジョブの実時間
で表すことができる。
The area of the shaded area is the real time consumed by the job 1. The area of the shaded area = Σ can be represented by the real time of the job in the job.

【0054】そして、業務1に割り当てるCPU使用時
間を、図6に示すように、各ジョブに分割することによ
って時間帯ごとのCPU使用率を割り出すことができ
る。
Then, by dividing the CPU usage time allocated to the job 1 into each job as shown in FIG. 6, the CPU usage rate for each time zone can be determined.

【0055】図3に示した統計情報から、業務1のジョ
ブの実行順序条件を得る。
From the statistical information shown in FIG. 3, the execution order condition of the job of job 1 is obtained.

【0056】図2に模式的に示すように、ジョブ1とジ
ョブ2は並列実行され、その終了を条件としてジョブ3
が実行される。そして、ジョブ3が終了したらジョブ4
とジョブ5を並列実行する。この条件をもとに時間帯ご
とのCPU使用率を求める。
As schematically shown in FIG. 2, job 1 and job 2 are executed in parallel, and job 3 is conditioned on the completion of the jobs.
Is executed. Then, when job 3 ends, job 4
And job 5 are executed in parallel. Based on this condition, the CPU usage rate for each time zone is obtained.

【0057】図6に示すように、ジョブ1とジョブ2の
並列実行実時間をA時間、ジョブ3の実行実時間をB時
間、ジョブ4とジョブ5の並列実行実時間をC時間とす
る。また、ジョブ1とジョブ2に割り当てるCPU使用
率をx(%)、ジョブ3に割り当てるCPU使用率をy
(%)、ジョブ4とジョブ5に割り当てるCPU使用率
をz(%)とする。すると、次の方程式が成り立つ。
As shown in FIG. 6, the parallel execution real time of jobs 1 and 2 is A time, the execution real time of job 3 is B time, and the parallel execution real time of jobs 4 and 5 is C time. Also, the CPU usage rate assigned to job 1 and job 2 is x (%), and the CPU usage rate assigned to job 3 is y.
(%), And the CPU usage rate assigned to jobs 4 and 5 is z (%). Then the following equation holds.

【0058】 A(分)×x/100=32(分) B(分)×y/100=26(分) C(分)×z/100=49(分) A+B+C=480…式(1)A (min) × x / 100 = 32 (min) B (min) × y / 100 = 26 (min) C (min) × z / 100 = 49 (min) A + B + C = 480 ... Equation (1)

【0059】Aの時間帯にはジョブ2つ、Bにはジョブ
1つ、Cにはジョブ2つが実行されるので、そのジョブ
数に比例させて重み付けし、例えば、A:B:C=2:
1:2として計算すると、 A=192、 B=96、 C=192…式(2)
Two jobs are executed in the time zone A, one job is executed in B, and two jobs are executed in C. Therefore, weighting is performed in proportion to the number of jobs, for example, A: B: C = 2. :
When calculated as 1: 2, A = 192, B = 96, C = 192 ... Formula (2)

【0060】上式(1)、式(2)を解いて、x=1
6.6(%)、y=27.1(%)、z=25.5
(%)となる。
Solving the above equations (1) and (2), x = 1
6.6 (%), y = 27.1 (%), z = 25.5
(%).

【0061】以上のように計算した結果、業務1に割り
当てるCPU使用率は、9:00〜12:12は、1
6.6×2=33.2(%)、12:13〜13:49
は、27.1(%)、13:50〜17:00は、2
5.5×2=51(%)と求められる。
As a result of the above calculation, the CPU usage rate assigned to the job 1 is 1 for 9:00 to 12:12.
6.6 × 2 = 33.2 (%), 12:13 to 13:49
Is 27.1 (%), 13:50 to 17:00 is 2
It is calculated as 5.5 × 2 = 51 (%).

【0062】上述のようにして求めたCPU使用率を、
CPU使用率獲得手段22で各業務ごとの情報として獲
得し、CPU使用率制御手段13は、その情報と現CP
U使用率算出手段12によって獲得したカレント値とを
比較して制御を行う。
The CPU usage rate obtained as described above is
The CPU usage rate acquisition means 22 acquires the information as information for each work, and the CPU usage rate control means 13 acquires the information and the current CP.
Control is performed by comparing with the current value obtained by the U usage rate calculating means 12.

【0063】また、ファイル4の情報を読み出し手段2
7によって読み込み、出力装置3に表示手段26を用い
てCPU使用率の統計情報として出力する。
Further, the information of the file 4 is read out by the means 2
7, and the output means 3 outputs it as statistical information of the CPU usage rate by using the display means 26.

【0064】図7は、出力情報の例を示した図であり、
業務の時間帯ごとのCPU使用率と現CPU使用率、業
務内の各ジョブのCPU使用時間が表示される。
FIG. 7 is a diagram showing an example of output information.
The CPU usage rate and the current CPU usage rate for each business time zone, and the CPU usage time of each job in the business are displayed.

【0065】[0065]

【発明の効果】以上説明したように、本発明に係るCP
U使用率最適化手段は、まず一日の平均CPU使用率を
計算し、その後、各業務の時間帯ごとにCPU使用率を
算出することにより、効率よくCPU使用率を獲得す
る。すなわち、従来は人手により与えていたCPU使用
率を、統計情報をもとにジョブ数は実際の実行時間に比
例した値を自動的に得ることができるため、利用者の工
数短縮を促し、また利用者が与えていた経験値よりもよ
りシステムのCPU効率利用に適したCPU使用率を得
ることができるという効果を有する。
As described above, the CP according to the present invention
The U usage rate optimizing unit first obtains the CPU usage rate by calculating the average CPU usage rate for one day and then calculating the CPU usage rate for each business time period. That is, the CPU usage rate, which was conventionally given manually, can be automatically obtained as the number of jobs based on the statistical information in proportion to the actual execution time. It is possible to obtain a CPU usage rate more suitable for efficient use of the CPU than the experience value given by the user.

【0066】また、本発明によれば、統計情報は毎日の
情報の平均を取って更新されるため、その統計情報を用
いてCPU使用率最適化の性能をあげることができる。
また、最も効率良く利用された日の重みp、qを記憶し
ておき、次回からその値を使用することによって、更に
最適なCPU使用率を獲得することができるという効果
がある。
Further, according to the present invention, since the statistical information is updated by taking the average of daily information, it is possible to improve the performance of the CPU usage rate optimization by using the statistical information.
In addition, by storing the weights p and q of the most efficiently used day and using the values from the next time, it is possible to obtain a more optimal CPU usage rate.

【0067】そして、本発明によれば、表示手段によっ
て出力された結果を参照することによって、最適にCP
U使用率が設定されているかどうかを検証することがで
きるという効果を有する。
According to the present invention, the CP output is optimally determined by referring to the result output by the display means.
This has the effect of verifying whether the U usage rate is set.

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

【図1】本発明に係るCPU使用率最適化方式の一実施
例を示す機能構成図である。
FIG. 1 is a functional configuration diagram showing an embodiment of a CPU usage rate optimizing system according to the present invention.

【図2】本発明の実施例を説明するための図であり、フ
ァイル4に記憶されたCPU使用状況に関する統計情報
の一例を示す図である。
FIG. 2 is a diagram for explaining an embodiment of the present invention and is a diagram showing an example of statistical information regarding a CPU usage state stored in a file 4;

【図3】本発明の実施例を説明するための図であり、あ
る時間帯の各業務の統計情報の一例を示す図である。
FIG. 3 is a diagram for explaining the embodiment of the present invention and is a diagram showing an example of statistical information of each work in a certain time zone.

【図4】本発明の実施例におけるCPU使用率最適化手
段の処理フローを示すフローチャートである。
FIG. 4 is a flowchart showing a processing flow of a CPU usage rate optimizing unit in the embodiment of the present invention.

【図5】本発明の実施例を説明するための図であり、統
計情報から得た業務1内の各ジョブのCPU使用時間と
その統計値から算出した実時間の割り当てを示す図であ
る。
FIG. 5 is a diagram for explaining the embodiment of the present invention, and is a diagram showing allocation of CPU usage time of each job in the job 1 obtained from statistical information and real time calculated from the statistical value thereof.

【図6】本発明の実施例を説明するための図であり、業
務1の時間帯ごとのCPU使用率の割り当ての一例を示
す図である。
FIG. 6 is a diagram for explaining the embodiment of the present invention and is a diagram showing an example of allocation of the CPU usage rate for each time slot of the job 1;

【図7】本発明の実施例を説明するための図であり、統
計情報の出力装置への出力例を示した図である。
FIG. 7 is a diagram for explaining the embodiment of the present invention and is a diagram showing an example of outputting statistical information to an output device.

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

1 制御部 2 統計部 3 出力装置 4 ファイル 11 CPU使用時間獲得手段 12 現CPU使用率算出手段 13 CPU使用率制御手段 21 CPU使用率最適化手段 22 CPU使用率獲得手段 23 CPU使用率統計手段 24 統計情報解析手段 25 統計情報生成手段 26 表示手段 27 読み出し手段 28 出力手段 DESCRIPTION OF SYMBOLS 1 control part 2 statistics part 3 output device 4 file 11 CPU usage time acquisition means 12 current CPU usage rate calculation means 13 CPU usage rate control means 21 CPU usage rate optimization means 22 CPU usage rate acquisition means 23 CPU usage rate statistical means 24 Statistical information analysis means 25 Statistical information generation means 26 Display means 27 Reading means 28 Output means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】情報処理装置で実行される業務のCPU使
用率に関する統計情報を生成し記憶部に記憶する手段
と、 該記憶部に記憶された統計情報を解析し、該解析結果に
基づきCPU使用率の最適化を行う最適化手段と、 該最適化手段で求められた業務の時間帯ごとのCPU使
用率を設定し、この設定されたCPU使用率と、該業務
の現CPU使用時間の情報を獲得して算出される現CP
U使用率と、を比較し、該比較結果に応じて業務を構成
するジョブの優先度を変更することにより業務のCPU
使用率を制御する手段と、 を備えたことを特徴とするCPU使用率最適化方式。
1. A means for generating and storing in a storage unit statistical information relating to a CPU usage rate of a job executed by an information processing apparatus, and analyzing the statistical information stored in the storage unit, and based on the analysis result, the CPU An optimizing means for optimizing the usage rate and a CPU usage rate for each business time period obtained by the optimizing means are set, and the set CPU usage rate and the current CPU usage time of the business are set. Current CP calculated by acquiring information
The CPU of the job is compared by comparing the U usage rate and the priority of the job constituting the job according to the comparison result.
A CPU usage rate optimization method comprising: a means for controlling a usage rate.
【請求項2】前記統計情報が、業務のジョブ数の合計、
各ジョブのCPU使用時間の情報、及び運用時間内に業
務が終了していたか否かの情報を統計内容として含み、 前記最適化手段が、該統計内容からCPU使用率に所定
の重みを与えて最適なCPU使用率を算出することを特
徴とする請求項1記載のCPU使用率最適化方式。
2. The statistical information is the total number of jobs for business,
Information about the CPU usage time of each job and information about whether or not the work was completed within the operating time are included as statistical contents, and the optimizing means gives a predetermined weight to the CPU usage rate from the statistical contents. The CPU usage rate optimizing method according to claim 1, wherein an optimum CPU usage rate is calculated.
【請求項3】前記記憶部に記憶される統計情報を表示す
る手段を備えたことを特徴とする請求項1記載のCPU
使用率最適化方式。
3. The CPU according to claim 1, further comprising means for displaying statistical information stored in the storage unit.
Utilization optimization method.
【請求項4】情報処理装置で実行される業務のジョブ数
の合計、ジョブの実行順序、及び各ジョブのCPU使用
時間の情報を含む統計情報に基づき業務内の各ジョブに
前記統計情報に含まれるCPU使用時間に応じて最適な
CPU使用率を自動で算出する手段と、 該算出された業務のCPU使用率について時間帯ごとの
値を求め、 該業務の現CPU使用時間の情報から算出される現CP
U使用率と、業務ごとに設定されたCPU使用率と、を
比較し、該比較結果に応じて実行ジョブのプライオリテ
ィを変更することにより、該業務が最も効率よく運用さ
れるようにCPU使用率の制御を行うことを特徴とする
CPU使用率最適化方式。
4. Each job in a job is included in the statistical information based on the statistical information including the total number of jobs of the job executed by the information processing device, the job execution order, and the CPU usage time of each job. Means for automatically calculating the optimum CPU usage rate according to the CPU usage time, and a value for each time zone for the calculated CPU usage rate of the task, and the value is calculated from the current CPU usage time information of the task. Current CP
By comparing the U usage rate with the CPU usage rate set for each job and changing the priority of the execution job according to the comparison result, the CPU usage rate is adjusted so that the job can be operated most efficiently. CPU utilization rate optimizing method characterized by performing the above control.
【請求項5】前記統計情報は、業務ごとの情報の平均化
処理された値を含み、該値が運用単位ごとに更新される
ことを特徴とする請求項4記載のCPU使用率最適化方
式。
5. The CPU utilization rate optimizing method according to claim 4, wherein the statistical information includes a value obtained by averaging information for each business, and the value is updated for each operation unit. .
JP8142215A 1996-05-13 1996-05-13 Cpu use rate optimizing system Pending JPH09305417A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8142215A JPH09305417A (en) 1996-05-13 1996-05-13 Cpu use rate optimizing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8142215A JPH09305417A (en) 1996-05-13 1996-05-13 Cpu use rate optimizing system

Publications (1)

Publication Number Publication Date
JPH09305417A true JPH09305417A (en) 1997-11-28

Family

ID=15310087

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8142215A Pending JPH09305417A (en) 1996-05-13 1996-05-13 Cpu use rate optimizing system

Country Status (1)

Country Link
JP (1) JPH09305417A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242509A (en) * 1999-02-18 2000-09-08 Nec Corp Dispatching device
JP2009237748A (en) * 2008-03-26 2009-10-15 Mitsubishi Electric Corp Client server system
US8560667B2 (en) 2004-10-28 2013-10-15 Fujitsu Limited Analysis method and apparatus
JP2017068017A (en) * 2015-09-30 2017-04-06 京セラドキュメントソリューションズ株式会社 Image formation device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000242509A (en) * 1999-02-18 2000-09-08 Nec Corp Dispatching device
US8560667B2 (en) 2004-10-28 2013-10-15 Fujitsu Limited Analysis method and apparatus
JP2009237748A (en) * 2008-03-26 2009-10-15 Mitsubishi Electric Corp Client server system
JP2017068017A (en) * 2015-09-30 2017-04-06 京セラドキュメントソリューションズ株式会社 Image formation device

Similar Documents

Publication Publication Date Title
US10942781B2 (en) Automated capacity provisioning method using historical performance data
JP5256967B2 (en) Dynamic reconfiguration support program, dynamic reconfiguration support device, and dynamic reconfiguration support method
US7937257B2 (en) Estimating performance of application based on automatic resizing of shared memory for messaging
US8271983B2 (en) Workload scheduler with cumulative weighting indexes
US8793693B2 (en) Apparatus and method for predicting a processing time of a computer
US7581008B2 (en) System and method for allocating server resources
US20050076043A1 (en) Workload scheduler with resource optimization factoring
US7139720B1 (en) Project planning system and method for accommodating AD HOC requests within a fixed core development cycle
US5818715A (en) Method and system for efficiently modifying a project model in response to an update to the project model
JPH07281908A (en) Method and apparatus for control of work load for generationof target control data
CN107239336A (en) A kind of method and device for realizing task scheduling
JPH05265775A (en) Job execution forecast control method and job execution condition display method
JP2008165798A (en) Performance management of processor in data processor
Liu et al. Physician staffing for emergency departments with time-varying demand
JP2004295731A (en) System and program for managing batch job
JP2020123849A (en) Auto scale type performance guarantee system and auto scale type performance guarantee method
JP4566980B2 (en) Supply plan formulation system, supply plan formulation program, and supply plan formulation method
JPH09305417A (en) Cpu use rate optimizing system
JP2007072527A (en) Method for dynamic lot size scheduling involving setup having a plurality of attributes
JP5678729B2 (en) Information processing apparatus, work importance calculation method, and work importance calculation program
JP2002012308A (en) Inventory management method
JP2004046713A (en) Device, method, and program for designing process, and program recording medium
JPH05334102A (en) Device for forecasting job execution status
JP6927553B2 (en) Information processing equipment, control methods, and programs
JP2000207479A (en) Method and device for calculating quantity safety stock

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19981006