JPS6024655A - Measuring device of utilization factor of central processing unit - Google Patents

Measuring device of utilization factor of central processing unit

Info

Publication number
JPS6024655A
JPS6024655A JP58132355A JP13235583A JPS6024655A JP S6024655 A JPS6024655 A JP S6024655A JP 58132355 A JP58132355 A JP 58132355A JP 13235583 A JP13235583 A JP 13235583A JP S6024655 A JPS6024655 A JP S6024655A
Authority
JP
Japan
Prior art keywords
central processing
processing unit
counter
register
usage rate
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
JP58132355A
Other languages
Japanese (ja)
Inventor
Masaaki Ogawa
正明 小川
Hiroyuki Noguchi
野口 博行
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
Nippon Electric Co 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 NEC Corp, Nippon Electric Co Ltd filed Critical NEC Corp
Priority to JP58132355A priority Critical patent/JPS6024655A/en
Publication of JPS6024655A publication Critical patent/JPS6024655A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To reduce a load of a CPU by providing a pair of counters and a pair of registers, and measuring a utilization factor of the CPU as a hardware. CONSTITUTION:The first counter 4 counts an effective processing time of a CPU1 by a control order from the CPU1, and its result is stored in the first register 5. The second counter 6 counts an idle time of the CPU1 by the control order from the CPU1, and its result is stored in the second register 7. An operating circuit 8 calculates a utilization factor of the CPU1 from the effective processing time and the idle time of the CPU1 stored in the register 5 and 7, and outputs it. Also, an operation of an extension transmission control, etc. can be executed by adding a comparing circuit 9. In this way, a load of the CPU1 can be reduced by providing a pair of counters 4, 6 and a pair of registers 5, 7, and measuring the utilization factor of the CPU1 as a hardware.

Description

【発明の詳細な説明】 本発明は自動交換機に使用される中央処理装置の使用率
を測定する装置1!?に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides an apparatus 1 for measuring the usage rate of a central processing unit used in an automatic exchange! ? Regarding.

従来、中央処理装置の使用率のlit!I+定において
は割込みタイミング発生用のカウンタを使用し、プログ
ラムによりカウンタの内容を取込み、演算ヲ行って中央
処理装置の使用率を算出していたが、この方式の場合に
は、中央処理装置によって使用率を算出する演算を行う
ため、中央処理装置の負荷が増加するという欠点があっ
た。
Conventionally, the usage rate of the central processing unit is lit! In the I+ system, a counter for interrupt timing generation was used, and the contents of the counter were read by a program and calculated to calculate the usage rate of the central processing unit. This method has the disadvantage that the load on the central processing unit increases due to the calculation of the usage rate.

本発明の目的は、中央処理装置の使用率を測定するため
、一対のカウンタと一対のレジスタとをそれぞれ設け、
中央処理装置の使用率をハードウェア的に測定すること
によって上記欠点を除去し、中央処理装置に対する負荷
をiIさミ減することができるように構成した中央処理
装置使用率測定装置を提供することにある。
An object of the present invention is to provide a pair of counters and a pair of registers, respectively, in order to measure the usage rate of a central processing unit.
To provide a central processing unit usage rate measuring device configured to eliminate the above drawbacks and reduce the load on the central processing unit by iI by measuring the usage rate of the central processing unit using hardware. It is in.

本発明による中央処理装置使用率測定装置は時間的制約
を要し、一定の時間間隔によ)起動するプログラムによ
って構成された処理形式を有する自動父換機において使
用されるものであシ、第1および第2のカウンタと、第
1および第2のレジスタと、演算回路と、制御オーダデ
コーダとを具備したものである。
The central processing unit usage rate measuring device according to the present invention is used in an automatic father exchange machine that requires time constraints and has a processing format configured by a program that is started at regular time intervals. The device includes first and second counters, first and second registers, an arithmetic circuit, and a control order decoder.

第1のカウンタは、中央処理装置からの制御オーダによ
シ中央処理装置の実効処理時間を計数するためのもので
ある。
The first counter is for counting the effective processing time of the central processing unit according to control orders from the central processing unit.

第1のレジスタは、第1のカウンタの内容を格納するた
めのものである。
The first register is for storing the contents of the first counter.

第2のカウンタは、中央処理装置からの制御オーダによ
シ中央処理装置の空き時間を計数するだめのものである
The second counter is for counting the idle time of the central processing unit according to control orders from the central processing unit.

第2のレジスタは、第2のカウンタの内容を格納するた
めのものである。
The second register is for storing the contents of the second counter.

演算回路は、中央処理装置の実効処理時間と窒き時間と
から中央処理装置使用率を算出するためのものである。
The arithmetic circuit is for calculating the central processing unit usage rate from the effective processing time and stalling time of the central processing unit.

制御オーダデコーダは、中央処理装置からの制御オーダ
を解読し、第1および第2のカウンタ、ならびに第1お
よび第2のレジスタに制御@号を与えるためのものであ
る。
The control order decoder is for decoding control orders from the central processing unit and providing control signals to the first and second counters and the first and second registers.

本発明においては、上記によシ第1および第2のレジス
タに格納された内容を演算回路によって演算して、中央
処理装置使用率全算出するように構成したものである。
In the present invention, the contents stored in the first and second registers are computed by an arithmetic circuit to calculate the total usage rate of the central processing unit.

次に、本発明の実施例について図面を参照して詳細に説
明する。
Next, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は、本発明による中央処理装置使用率測定装置の
一実施例を示すブロック図でおる。第1図において、1
は中央処理装置、2はクロック発生器、3は制御オーダ
デコーダ、4は第1のカウンタ、5は第1のレジスタ、
6は第2のカウンタ、7は第2のレジスタ、8は演算回
路、9は比較回路でaる。
FIG. 1 is a block diagram showing an embodiment of a central processing unit usage rate measuring device according to the present invention. In Figure 1, 1
is a central processing unit, 2 is a clock generator, 3 is a control order decoder, 4 is a first counter, 5 is a first register,
6 is a second counter, 7 is a second register, 8 is an arithmetic circuit, and 9 is a comparison circuit.

第1図において、中央処理装置1に制御オーダデコーダ
3を介して第1のカウンタ4と、第1のレジスタ5と、
第2のカウンタ6と、第2のレジスタ1とが接続されて
いる。第1および第2のカウンタ4,6にはクロック発
生器2からのクロック信号が入力されている。第1およ
び第2のレジスタ5,7の出力は演算回路8に接続され
ている。
In FIG. 1, a first counter 4 and a first register 5 are connected to a central processing unit 1 via a control order decoder 3.
A second counter 6 and a second register 1 are connected. A clock signal from the clock generator 2 is input to the first and second counters 4 and 6. The outputs of the first and second registers 5 and 7 are connected to an arithmetic circuit 8.

中央処理装置1は周期的な時間間隔で周期プログラムを
実行する形式の処理装置であシ、周期プログラムの処理
開始時に中央処理装置1からクリア0制御オーダが制御
オーダデコーダ3に送出される。制御オーダデコーダ3
では上記制御オーダを解読し、CLRO信号を生成して
第1のカウンタ4に与える。CI、’Ro化号が与えら
れると第1のカウンタ4の内容はクリアされ、第1のカ
ウンタ4はクロック発生器2から送出されるクロック信
号の計数を開始する。中央処理装置1が周期プログラム
の処理をすべて終了すると、中央処理装置1からクリア
1制御オーダが1lil、I御オーダデコーダ3に送出
される。そこで、制御オーダデコーダ3ではこの制御オ
ーダを解読し、CLRIm号を生成して第2のカウンタ
6と第2のレジスタ7とに与える。CLRl(M号が与
えられると、第2のカウンタ6の内容はクリアされ、第
2のカウンタ6はクロック発生器2から送出されたクロ
ックの計数を開始する。このとき、ε1)1のレジスタ
5は第1のカウンタ4の内容を格納する。一定時間11
゜過した後、中央処理装置1が再び周期プログラムの処
理を開始すると、中央処理装(i21から再びクリア0
制御オーダが送出される。そこで、第1のカウンタ4の
内容はクリアちれ、第1のカウンタ4はクロック発生器
2からのクロック信号の唱数’th始する。このとき、
第2のカウンタ6の内容が第2のレジスタ7に格納され
る。演算回路8では、第1のレジスタ5の内容である中
央処理装f1′11の実効処理時間と、第2のレジスタ
Tの内容である中央処理装置1の空き時間と全もとに中
ダシ処理装置1の使用率を算出して出力する。また、比
較回路9を付加して、例えば80%のような一定の中央
処理装置使用率と比較することにょシ、内線発情規制な
どのある種の操作を行わせることができる。
The central processing unit 1 is a type of processing unit that executes a periodic program at periodic time intervals, and a clear 0 control order is sent from the central processing unit 1 to the control order decoder 3 at the start of processing of the periodic program. Control order decoder 3
Then, the control order is decoded, a CLRO signal is generated, and the CLRO signal is provided to the first counter 4. When the CI, 'Ro signal is applied, the contents of the first counter 4 are cleared and the first counter 4 starts counting the clock signal sent from the clock generator 2. When the central processing unit 1 completes all the processing of the periodic program, the central processing unit 1 sends 1 lil of clear 1 control orders to the I control order decoder 3. Therefore, the control order decoder 3 decodes this control order, generates a CLRIm number, and supplies it to the second counter 6 and the second register 7. When CLRl(M) is given, the contents of the second counter 6 are cleared and the second counter 6 starts counting the clocks sent from the clock generator 2. At this time, the register 5 of ε1)1 stores the contents of the first counter 4. Fixed time 11
After the central processing unit 1 starts processing the periodic program again, the central processing unit (i21 clears 0 again.
A control order is sent. The contents of the first counter 4 are then cleared and the first counter 4 starts counting the clock signal from the clock generator 2. At this time,
The contents of the second counter 6 are stored in the second register 7. In the arithmetic circuit 8, the effective processing time of the central processing unit f1'11, which is the content of the first register 5, and the free time of the central processing unit 1, which is the content of the second register T, are all used for medium dash processing. The usage rate of the device 1 is calculated and output. Further, a comparison circuit 9 can be added to perform certain operations such as comparison with a constant central processing unit usage rate such as 80%, extension restriction, etc.

以上を繰返して行えば、ハードウェア的に中央処理装置
1の使用率を算出することができる。
By repeating the above steps, it is possible to calculate the usage rate of the central processing unit 1 in terms of hardware.

本発明は以上説明したように、一対のカウンタと一対の
レジスタとを設けてハードウェア的に中央処理装置の使
用率を測定することによシ、中央処理装置の負荷を軽減
することができるという効果がある。
As explained above, the present invention is capable of reducing the load on the central processing unit by providing a pair of counters and a pair of registers to measure the usage rate of the central processing unit using hardware. effective.

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

第1図は、本発明によ多構成した中央処理装置の使用率
の測定装置に関する一実施例を示したブロック図である
。 1・・・中央処理装置 2・・・クロック発生器 3・争・制御オーダデコーダ 4.6藝・・カウンタ 5.7・・・レジスタ 8・・・演算回路 9・・・比較回路
FIG. 1 is a block diagram showing an embodiment of a central processing unit usage rate measuring device having multiple configurations according to the present invention. 1...Central processing unit 2...Clock generator 3.Warning/control order decoder 4.6...Counter 5.7...Register 8...Arithmetic circuit 9...Comparison circuit

Claims (1)

【特許請求の範囲】[Claims] 時間的制約を要し、且つ、一定の時間間隔によシ起動す
るプログラムによって構成嘔ねた処理形式を有する自動
交換機に卦いて使用される中央処理装置使用率測定装置
であって、中央処理装置からの制御オーダにより前記中
央処理装置の実効処理時間分計数するだめの第1のカウ
ンタと、前記第1のカウンタの内容を格納するための第
1のレジスタと、前記中央処理装置、からの前記制御オ
ーダにより前記中火処理装置の穿き時間(i−計数する
だめの第2のカウンタと、前記第2のカウンタの内容を
格納する/こめの第2のレジスタと、前記中火処理装置
の前に実効処理時間と前記空き時間とから中央処理Φ゛
、置装用率を算出するだめの演算回路と、前記中央処理
装置からの:iil、制御オーダを解読し、前記第1お
よび第2のカウンタ、ならびに前記第1および第2のレ
ジスタに?ti1.制御信号を与えるための制御オーダ
デコーダとを具備し、前記第1および第2のレジスタに
格納された内容を前記演算回路によって演算して前記中
央処理装市使川率を算出するようにmM成したこと?特
徴とする中央処理装置使用率測定装置ツ。
A central processing unit usage rate measuring device used in an automatic switchboard having a processing format that requires time constraints and is configured by a program that is activated at regular time intervals, the central processing unit usage rate measuring device a first counter for counting the effective processing time of the central processing unit according to a control order from the central processing unit; a first register for storing the contents of the first counter; A second counter for counting and a second register for storing the contents of the second counter, and a second register for storing the contents of the second counter, and a second register for storing the contents of the second counter according to the control order, an arithmetic circuit for calculating a central processing Φ゛ and equipment usage rate from the effective processing time and the free time; and an arithmetic circuit for decoding the control order from the central processing unit, , and a control order decoder for giving a ?ti1. control signal to the first and second registers, the contents stored in the first and second registers are operated by the arithmetic circuit and the A device for measuring the usage rate of the central processing unit, which is characterized by the ability to calculate the central processing unit usage rate.
JP58132355A 1983-07-19 1983-07-19 Measuring device of utilization factor of central processing unit Pending JPS6024655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58132355A JPS6024655A (en) 1983-07-19 1983-07-19 Measuring device of utilization factor of central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58132355A JPS6024655A (en) 1983-07-19 1983-07-19 Measuring device of utilization factor of central processing unit

Publications (1)

Publication Number Publication Date
JPS6024655A true JPS6024655A (en) 1985-02-07

Family

ID=15079417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58132355A Pending JPS6024655A (en) 1983-07-19 1983-07-19 Measuring device of utilization factor of central processing unit

Country Status (1)

Country Link
JP (1) JPS6024655A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8463578B2 (en) 2002-07-23 2013-06-11 Hewlett-Packard Development Company, L.P. Hardware based utilization metering

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8463578B2 (en) 2002-07-23 2013-06-11 Hewlett-Packard Development Company, L.P. Hardware based utilization metering

Similar Documents

Publication Publication Date Title
ES8206880A1 (en) Multiprocessor system with determination of the processor obtaining the smallest result.
US4811276A (en) Virtual computer diagnostic system with comparative monitoring of timestamped controller check signals and timestamped commands of individual virtual machines
JPS63172339A (en) Instruction decoding device
JPH01224871A (en) Vector arithmetic instruction issuing control system
JPS6024655A (en) Measuring device of utilization factor of central processing unit
JP3129027B2 (en) Parallel processing computer
JP2716166B2 (en) Information processing device
JPS633328B2 (en)
JPS59208661A (en) Method for measuring load of computer
JPS59135526A (en) Data input control system
JPS6028986Y2 (en) data processing equipment
SU1539776A1 (en) Microprogram control device
JPH03156647A (en) Watchdog timer
JPS60129849A (en) Arithmetic processing unit
JPH0433137A (en) Data processor
JPS592157A (en) Utilizing rate measuring system of central control device
JPH0451332A (en) Process/task execution time counting circuit
JPS6227835A (en) Measuring method for load of microprogram controller
JPS62204349A (en) Preventing circuit for runaway of microprocessor
JPH02300947A (en) Circuit for measuring using rate of processor
JPS63282865A (en) Input/output circuit
JPS63101917A (en) Method for supervising clock pulse in control device
JPS62112422A (en) Counter circuit
JPS61276039A (en) Processor using ratio measuring system
JPS62113245A (en) Operation monitoring device for signal processor