JPS59116864A - Measurement system for use rate of central processing unit - Google Patents

Measurement system for use rate of central processing unit

Info

Publication number
JPS59116864A
JPS59116864A JP57225374A JP22537482A JPS59116864A JP S59116864 A JPS59116864 A JP S59116864A JP 57225374 A JP57225374 A JP 57225374A JP 22537482 A JP22537482 A JP 22537482A JP S59116864 A JPS59116864 A JP S59116864A
Authority
JP
Japan
Prior art keywords
processing unit
central processing
flip
flop
level processing
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
JP57225374A
Other languages
Japanese (ja)
Inventor
Sadao Kamioka
上岡 貞雄
Akira Nishimura
彰 西村
Tsutomu Shimasue
嶋末 勉
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 JP57225374A priority Critical patent/JPS59116864A/en
Publication of JPS59116864A publication Critical patent/JPS59116864A/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 measure the use rate of a CPU by setting an FF corresponding clock level processing and base level processing only while they are carried out, and measuring externally the time ratio of its set state. CONSTITUTION:When a clock interruption signal is generated, an FF 1 is set to generate (1) as its Q output. This state is held until a reset signal is applied to the FF 1 under programmed control after the base level processing is completed. A pulse generating circuit 3 which generates pulses of specific frequency is connected to an AND gate 2. Therefore, the output of the FF 1 is inputted to a counter circuit 4 through a gate 2 and counted. The circuit 4 is reset at specific intervals of time, so the number of pulses received within the specific time is sent to a display device 6 through a decoder circuit 5 and displayed. The display uses decimal representation.

Description

【発明の詳細な説明】 発明の技術分野 本発明は中央処理装置を有する電子交換システムにおい
て、中央処理装置がクロックレベル処理やペースレベル
処理等を実行している中央処理装置の使用時間が未使用
時間をも含めた全時間のどの程度の割合であるかという
ことを測定する中央処理装置使用率測定方式に関する0 従来技術と問題点 電子交換システムでは周期的に特定のプログラムが起動
されて回線の発呼の有無を走査したシ、どの回線が切断
したか等を検出するとともに、その他の処理をも遂行し
ている。このうち前者の周期的な処理、つまり回線状態
のスキャンやダイヤルノ4ルスを他局に送出するための
リレードライブ等をクロックレベル処理といわれ、その
他の処理をペースレベル処理といわれる。このクロック
レベル処理は周期的に行われるものであってペースレベ
ル処理よ〕優先的に実行されるので、このクロックレベ
ル処理に続いてペースレベル処理が遂行サレ、ペースレ
ベル処理が終了すれば次のクロックレベル処理の周期が
くるまで中央処理装置は未使用状態(空き状態)になる
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to an electronic switching system having a central processing unit, in which the central processing unit executes clock level processing, pace level processing, etc. Related to the central processing unit usage rate measurement method that measures what percentage of the total time including time It scans for calls, detects which lines have been disconnected, and performs other processes as well. Of these, the former periodic processing, such as line status scanning and relay drive for sending dial signals to other stations, is called clock level processing, and the other processing is called pace level processing. This clock level processing is performed periodically and is executed with priority over pace level processing. Therefore, pace level processing is performed following this clock level processing, and once pace level processing is completed, the next The central processing unit remains in an unused state (idle state) until the clock level processing cycle comes.

電子交換システムでは、その設備の管理上、この中央処
理装置の使用率を測定することが必要となυ、その使用
率が一定時間毎に算出されたシして、その動作状態が監
視されている。なおここで使用率Uは、クロックレベル
処理時間をT11ペ一スレベル処理時間をT、 I未使
用状態をT3とすると、次式によシ得られる。
In an electronic switching system, it is necessary to measure the usage rate of the central processing unit in order to manage the equipment, and the usage rate is calculated at regular intervals and its operating status is monitored. There is. Here, the usage rate U can be obtained by the following equation, assuming that the clock level processing time is T11, the pace level processing time is T3, and the unused state is T3.

従来、電子交換システムにおける中央処理装置の使用率
を測定するために、実行管理プログラムが中央処理装置
が空き状態にある間、別に用意しているタイマを動作さ
せてその値をもとにして中央処理装置の使用率を演算に
より求めていた。例えば、中央処理装置が、第1図(イ
)のように動作する場合、つまり周期T、毎にクロック
割込みにより周期的にクロックレベル処理が行わ′れ、
次にペースレベル処理が行われる。そしてベースレイル
処理が終ると、実行管理プログラムがタイマを動作させ
次のクロックレベル処理が開始するまでの空き状態の時
間T3を測定し、とのT3の値の和をもとにして中央処
理装置の使用率を演算していた。
Conventionally, in order to measure the usage rate of the central processing unit in an electronic switching system, an execution management program runs a separately prepared timer while the central processing unit is idle, and based on that value, the execution management program The usage rate of the processing device was determined by calculation. For example, when the central processing unit operates as shown in FIG.
Next, pace level processing is performed. When the base rail processing is finished, the execution management program operates a timer to measure the idle time T3 until the next clock level processing starts, and based on the sum of the T3 values, the central processing was calculating the usage rate.

したがってこの中央処理装置の使用率の測定及び演算の
ため、別の処理ルーチンを作動させることが必要となり
、そのためにシステムの処理能力がわずかではあるが低
下するという欠点があった0発明の目的 本発明の目的は、このような欠点を改善するため、交換
処理に影響を与えるような演算を行うことなく、中央処
理装置の使用率を外部から容易にかつ正確に測定するこ
とを可能にして、使用率測定のための内部処理を不要と
した中央処理装置使用率測定方式を提供することである
Therefore, in order to measure and calculate the usage rate of the central processing unit, it is necessary to run another processing routine, which has the disadvantage that the processing capacity of the system is reduced, albeit slightly. The purpose of the invention is to improve such drawbacks by making it possible to easily and accurately measure the usage rate of a central processing unit from the outside without performing calculations that affect exchange processing. An object of the present invention is to provide a central processing unit usage rate measurement method that does not require internal processing for usage rate measurement.

発明の構成 この目的を達成するために、本発明の中央処理装置使用
率測定方式では、周期的に実行される処理をクロックレ
ベル処理、その他の処理をペースレベル処理とし、クロ
ックレベル処理に実行上の優先権を与え周期的に発生す
るクロック割込によりクロックレベル処理が起動される
中央処理装置を有する電子交換システムにおいて、クロ
ック割込発生と同時に外部から読取シ可能な中央処理装
置使用中表示用のフリップフロップをセットし、ペース
レベル処理終了と同時にそのフリップフロッグをリセッ
トすることによシ、クロックレベル処理およびペースレ
ベル処理が実行されている間だけそのフリップフロップ
をセット状態にし、そのフリップフロッグがセット状態
になっている時間の割合を外部から測定することによシ
中央処理装置の使用率を測定するようにしたことを特徴
とする。
Structure of the Invention In order to achieve this object, the central processing unit usage rate measurement method of the present invention uses clock level processing for periodically executed processing, pace level processing for other processing, and In an electronic switching system that has a central processing unit in which clock level processing is activated by a clock interrupt that occurs periodically, the central processing unit is used to indicate when the central processing unit is in use and can be read from the outside at the same time as a clock interrupt occurs. By setting the flip-flop of , and resetting the flip-flop at the same time as the pace level processing is completed, the flip-flop is set only while the clock level processing and pace level processing are being executed, and the flip-flop is set. The present invention is characterized in that the usage rate of the central processing unit is measured by externally measuring the percentage of time in the set state.

発明の実施例 本発明の一実施例を第1図及び第2図により説明する。Examples of the invention An embodiment of the present invention will be described with reference to FIGS. 1 and 2.

第1図(イ)は電子交換システムにおける中央処理装置
の使用状態説明図、同(ロ)は第2図におけるフリップ
フロップ回路の出力状態説明図、同(ハ)は第2図にお
けるアンド・ダートの出力状態説明図、第2図は本発明
の一実施例構成図である。
Figure 1 (a) is an explanatory diagram of the use state of the central processing unit in the electronic switching system, (b) is an explanatory diagram of the output state of the flip-flop circuit in Figure 2, and (c) is an explanatory diagram of the output state of the flip-flop circuit in Figure 2. FIG. 2 is a configuration diagram of an embodiment of the present invention.

図中、1はフリップフロップ回路(以下FFという)、
2はアンド・f−)、3はt4ルス発生回路、4はカウ
ンタ回路、5はデコーダ回路、6は表示装置である。
In the figure, 1 is a flip-flop circuit (hereinafter referred to as FF);
2 is an AND f-), 3 is a t4 pulse generation circuit, 4 is a counter circuit, 5 is a decoder circuit, and 6 is a display device.

FFIは中央処理装置がクロックレベル処理を行うため
に周期T。毎に発生されるクロック割込信号によシセッ
トされ、ソフトウェアがペースレベル処理が終了したと
きに発生するベースレベル処理終了信号でリセットされ
るものである。ところで電子交換システムにおいて中央
処理装置の交換処理には、第1図(イ)に示す如く、周
期的にクロック割込に伴い起動されるクロックレベル処
理と、その処理の終了後に実行されるペースレベル処理
がある。したがってクロック割込信号が発生するとFF
Iはセット状態になってQ出力は「1」となシこの状態
はペースレベル処理の終了後にプログラムの制御により
FFIにリセット信号が加えられるまで継続する。この
動作を繰返すことによfiFFlの出力は第1図(ロ)
に示すものとなる。
FFI has a period T for the central processing unit to perform clock level processing. It is reset by a clock interrupt signal that is generated every time, and is reset by a base level processing end signal that is generated when the software finishes pace level processing. By the way, in an electronic switching system, the exchange processing of the central processing unit includes a clock level process that is periodically activated in response to a clock interrupt, and a pace level process that is executed after the completion of the process, as shown in Figure 1 (a). There is processing. Therefore, when a clock interrupt signal occurs, the FF
I is in the set state and the Q output is "1", and this state continues until a reset signal is applied to the FFI under the control of the program after the pace level processing is completed. By repeating this operation, the output of fiFFl is as shown in Figure 1 (b).
It will be as shown below.

またアンド・ゲート2にはノ4ルス発生回路3が接続さ
れ、このパルス発生回路3は例えば1■銘のパルスを発
生している。したがって、第1図(ロ)に示す如き、F
F1の出力がアンド・ダート2に印加されるので、アン
ド・ゲート2からは第1図(ハ)に示す如き、/臂ルス
が出力され、この出力信号がカウンタ回路4に入力され
てそのノ4ルス数が計数される。ところでカウンタ回路
4は一定時間毎、例えば1秒毎により印加されるリセッ
ト信号でリセットされるので、一定時間内に受信したパ
ルスの数をデコーダ回路5を経由して表示装置6に送シ
、これを表示する。したがって、この実施例では/やル
ス発生回路3から1■(Z (100万/ ygC)の
ノ4ルスを発生させ、1秒周期でカウンタ回路4をリセ
ットするので表示装置6は10進表示で7桁のうち上位
3桁のみを表示すれば、1秒間隔で中央処理装置の使用
率をチ表示するととができる。それ故、第2図の如き外
部測定回路を付加するだけで、中央処理装置の処理能力
を何等損うことなく、その使用率を求めることができる
Further, a pulse generating circuit 3 is connected to the AND gate 2, and this pulse generating circuit 3 generates, for example, a pulse of 1. Therefore, as shown in Figure 1 (b), F
Since the output of F1 is applied to the AND gate 2, the AND gate 2 outputs a signal as shown in FIG. 4 Rus number is counted. By the way, the counter circuit 4 is reset by a reset signal applied at fixed time intervals, for example, every second, so the number of pulses received within a fixed time is sent to the display device 6 via the decoder circuit 5. Display. Therefore, in this embodiment, the pulse generation circuit 3 generates a pulse of 1 (Z (1,000,000/ygC)), and the counter circuit 4 is reset at a cycle of 1 second, so the display device 6 displays the data in decimal notation. By displaying only the top 3 digits out of 7 digits, it is possible to display the usage rate of the central processing unit at 1 second intervals.Therefore, by simply adding an external measurement circuit as shown in Fig. The utilization rate can be determined without any loss in the processing capacity of the device.

本発明の他の実施例を第3図について説明する。Another embodiment of the invention will be described with reference to FIG.

第3図で[FF1のQ端子に積分回路7を接続し、この
積分回路7の積分値を表示装置8によシ表示する。
In FIG. 3, an integrating circuit 7 is connected to the Q terminal of the FF 1, and the integrated value of the integrating circuit 7 is displayed on a display device 8.

この場合、第1図(ロ)に示されるFFIの出力信号は
、積分回路7によυ同(ロ)の鎖線vMに示す如くな、
り、FFIの出力信号のデユーティ値として積分回路7
から出力されることになる。したがって表示装置8によ
シそのデユーティ値を表示することができ、このデユー
ティ値は中央処理装置の使用能率に比例するので、使用
率をこれまた計器である表示装置8から・直接読み取る
ことができる。
In this case, the output signal of the FFI shown in FIG.
The duty value of the output signal of the FFI is determined by the integrating circuit 7.
will be output from. Therefore, the duty value can be displayed on the display device 8, and since this duty value is proportional to the usage efficiency of the central processing unit, the usage rate can be read directly from the display device 8, which is also a meter. .

発明の効果 本発明によればFFを中央処理装置のクロック割込信号
によシセットしその空き状態になったときにリセットし
、とOFFの状態を外部より読取るように構成したので
、中央処理装置の処理能力を何等損うことなくその使用
率を効果的に、しかも非常に簡単に測定することが可能
となる。
Effects of the Invention According to the present invention, the FF is set by the clock interrupt signal of the central processing unit, reset when it becomes an empty state, and the OFF state is read from the outside. It becomes possible to measure the usage rate effectively and very easily without any loss of processing capacity.

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

第1図(イ)は電子交換システムにおける中央処理装置
の使用状態説明図、同(ロ)は第2図におけるフリツプ
フロツゾ回路の出力状態説明図、同(ハ)は第2図にお
けるアンド・ダートの出力状態説明図、第2図は本発明
の一実施例構成図、第3図は本発明の他の実施例構成図
である。 図中、1はフリッゾフロップ回路、2はアンド・ダート
、3はパルス発生回路、4はカウンタ回路、5はデコー
ダ回路、6は表示装置、7は積分回路、8は表示装置を
示す。 特許出願人 富士通株式会社
Figure 1 (a) is an explanatory diagram of the usage state of the central processing unit in the electronic switching system, (b) is an explanatory diagram of the output state of the flip-flop circuit in Figure 2, and (c) is an illustration of the output status of the flip-flop circuit in Figure 2. 2 is a diagram illustrating the configuration of one embodiment of the present invention, and FIG. 3 is a diagram illustrating the configuration of another embodiment of the present invention. In the figure, 1 is a frizzo flop circuit, 2 is an AND dart, 3 is a pulse generation circuit, 4 is a counter circuit, 5 is a decoder circuit, 6 is a display device, 7 is an integration circuit, and 8 is a display device. Patent applicant Fujitsu Limited

Claims (3)

【特許請求の範囲】[Claims] (1)周期的に実行される処理をクロックレベル処理、
その他の処理をペースレベル処理とし、クロックレベル
処理に実行上の優先権を与え周期的1発生するクロック
割込によりクロックレベル処理が起動される中央処理装
置を有する電子交換システムにおいて、クロック割込発
生と同時に外部から読取り可能な中央処理装置使用中表
示用のフリップフロップをセットし、ペースレベル処理
終了と同時にそのフリップフロップをリセットすること
により、クロックレベル処理およびペースレベル処理が
実行されている間だけそのフリップフロップをセット状
態にし、そのフリップフロップがセット状態になってい
る時間の割合を外部から測定することにより中央処理装
置の使用率を測定するように1〜たことを特徴とする中
央処理装置使用率測定方式。
(1) Clock level processing for periodically executed processing;
In an electronic switching system having a central processing unit in which other processing is called pace level processing, and clock level processing is given execution priority and clock level processing is activated by a clock interrupt that occurs periodically, clock interrupts occur. At the same time, by setting an externally readable flip-flop to indicate that the central processing unit is in use, and resetting the flip-flop at the same time as the pace level processing is completed, the clock level processing and pace level processing are executed. A central processing unit characterized in that the usage rate of the central processing unit is measured by setting the flip-flop in a set state and externally measuring the percentage of time that the flip-flop is in the set state. Utilization measurement method.
(2)  上H己フリップフロッグにパ、ルスカウンタ
を接続し、とのノぐルスカウンタを該フリップフロップ
がセット状態にあるとき動作させるようにしたことを特
徴とする特許請求の範囲第1項記載の中央処理装置使用
率測定方式。
(2) A pass counter is connected to the flip-flop, and the noggle counter is operated when the flip-flop is in a set state. Central processing unit utilization measurement method described.
(3)上記フリップフロップに積分回路と表示装置を接
続し、該フリップフロップがセット状態にあるとき積分
動作を行わせるようにしたことを特徴とする特許請求の
範囲第1項記載の中央処理装置使用率測定方式。
(3) The central processing unit according to claim 1, characterized in that an integrating circuit and a display device are connected to the flip-flop so that an integrating operation is performed when the flip-flop is in a set state. Utilization measurement method.
JP57225374A 1982-12-22 1982-12-22 Measurement system for use rate of central processing unit Pending JPS59116864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57225374A JPS59116864A (en) 1982-12-22 1982-12-22 Measurement system for use rate of central processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57225374A JPS59116864A (en) 1982-12-22 1982-12-22 Measurement system for use rate of central processing unit

Publications (1)

Publication Number Publication Date
JPS59116864A true JPS59116864A (en) 1984-07-05

Family

ID=16828345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57225374A Pending JPS59116864A (en) 1982-12-22 1982-12-22 Measurement system for use rate of central processing unit

Country Status (1)

Country Link
JP (1) JPS59116864A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020112918A (en) * 2019-01-09 2020-07-27 富士電機株式会社 Method of measuring execution load factor of software in control device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020112918A (en) * 2019-01-09 2020-07-27 富士電機株式会社 Method of measuring execution load factor of software in control device

Similar Documents

Publication Publication Date Title
CN112462846A (en) Clock correction method, clock correction device, computer equipment and storage medium
US4093850A (en) Ratemeter which calculates the reciprocal of the period
JPS59116864A (en) Measurement system for use rate of central processing unit
JPH10170564A (en) Clock frequency measurement circuit, and method therefor
CN110687773B (en) Method, device and system for measuring time service precision of time unification system
US5325313A (en) System for measuring timepiece beat interval accuracy
KR950013602B1 (en) Frequency measuring device
SU1182520A1 (en) Device for checking integrated circuits
JP2002181968A (en) Time timer
JPH05302940A (en) Frequency measuring apparatus
JPH02300947A (en) Circuit for measuring using rate of processor
JPH04312050A (en) Data transfer rate measurement circuit
JPH04349543A (en) Measuring system for program processing time
JPH0133053B2 (en)
SU1374065A1 (en) Method of determining heat inertia factor of thermal converters with frequency output
JPS58105072A (en) Device for measuring frequency of alternating current voltage
JP2000121406A (en) Pulse integrating device and electronic flowmeter
JPS62151949A (en) Program capacity measuring circuit
JPH0451332A (en) Process/task execution time counting circuit
SU481874A1 (en) Periodic Interval Meter
JP2667449B2 (en) Digital protection relay
JPH0751631Y2 (en) CPU runaway detection circuit
JPH0712861A (en) Method and apparatus for measuring pulse frequency
JPH04276934A (en) Bit error ratio measurement method and its circuit
JPS63313014A (en) Reoutput pulse generating device