JPH09212373A - Process monitor device - Google Patents

Process monitor device

Info

Publication number
JPH09212373A
JPH09212373A JP8013510A JP1351096A JPH09212373A JP H09212373 A JPH09212373 A JP H09212373A JP 8013510 A JP8013510 A JP 8013510A JP 1351096 A JP1351096 A JP 1351096A JP H09212373 A JPH09212373 A JP H09212373A
Authority
JP
Japan
Prior art keywords
sleep
time
sleep time
log
monitoring
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
JP8013510A
Other languages
Japanese (ja)
Inventor
Shuichi Ono
修一 大野
Katsuhiko Hayashi
克彦 林
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP8013510A priority Critical patent/JPH09212373A/en
Publication of JPH09212373A publication Critical patent/JPH09212373A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To make it possible to speedily set an optimum sleep time and dynamically and suitably vary it by providing a process sleep table. SOLUTION: A process 1 informs a monitor process 2 of the sleep time. The monitor process 2 sets the reported sleep time of the process 1 in the process sleep table 3. Then, corresponding sleep, swap-out, swap-in, and wake-up processes of the process 1 are performed in order according to the set sleep time. At this time, the monitor process 2 dynamically varies the sleep time in the table 3 in response to the information from the process 1. Further, the log before the process 1 or monitor process 2 enters a sleep state, process by process, and the log after waking up are gathered and the monitor process 2 totalizes statistical information on the sleep time by the processes according to the logs to display the sleep and execution states.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プロセスのスリー
プ状態を監視するプロセス監視装置に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a process monitoring device for monitoring a sleep state of a process.

【0002】[0002]

【従来の技術】従来、コンピュータを内蔵し複数のプロ
セスが協同して処理を行う装置のテストやデバッグ等を
行うときに、あるプロセスのスリープ時間を設定して処
理を実行し当該スリープ時間が適当でなく変更しようと
した場合、スリープ時間を変更した後、再起動してスリ
ープ時間を変えて装置のテストやデバッグを繰り返すよ
うにしていた。
2. Description of the Related Art Conventionally, when testing or debugging a device having a built-in computer and a plurality of processes collaborating to perform processing, a sleep time of a certain process is set and the processing is executed so that the sleep time is appropriate. When I tried to change it instead, I changed the sleep time, restarted and changed the sleep time, and repeated device testing and debugging.

【0003】[0003]

【発明が解決しようとする課題】上述したように従来
は、複数のプロセスが協同して処理を行う装置の場合、
プロセスのスリープ時間を変更しようとするとスリープ
時間を変えた後に再起動してスリープ時間を変えてテス
トやデバッグを行い、最適なスリープ時間に設定するよ
うにしていたため、スリープ時間の変更や最適な値を求
めるのが大変であるという問題があった。
As described above, conventionally, in the case of an apparatus in which a plurality of processes cooperate to perform processing,
When I tried to change the sleep time of the process, I changed the sleep time and then restarted and changed the sleep time for testing and debugging to set the optimum sleep time. There was a problem that it was difficult to ask for.

【0004】また、テストやデバッグ時などに動的にプ
ロセスのスリープ時間を変更できないという問題があっ
た。また、一旦スリープ状態になったプロセスがスリー
プ時間を経過して動作状態になっても当該プロセスがス
ワップアウトされている場合があり、直ちに実行可能と
ならなく、スワップインするまで実行開始が遅れてしま
うという問題があった。
There is also a problem that the sleep time of the process cannot be dynamically changed at the time of testing or debugging. In addition, even if a process that was once in the sleep state is in the active state after the sleep time elapses, the process may be swapped out, so it cannot be executed immediately, and execution start is delayed until swapped in. There was a problem of being lost.

【0005】また、プロセスがスリープ状態になるとき
の各種事象のログが採取されていなく状態遷移の統計情
報を集計して最適なスリープ時間を設定することが難し
いという問題もあった。
There is also a problem that it is difficult to collect statistical information of state transitions and set an optimal sleep time because logs of various events when a process enters a sleep state are not collected.

【0006】本発明は、これらの問題を解決するため、
プロセススリープテーブルを設けてこれにプロセスのス
リープ時間を設定あるいは動的に変更すると共にログを
採取し、最適なスリープ時間を迅速に設定したり動的に
最適に変更したりすると共に最適なスリープ時間に設定
するための統計情報の提示を実現することを目的として
いる。
[0006] The present invention solves these problems,
Providing a process sleep table to set or dynamically change the sleep time of the process and collect logs to set the optimum sleep time quickly or dynamically change the optimum sleep time. The purpose is to realize the presentation of statistical information for setting.

【0007】[0007]

【課題を解決するための手段】図1を参照して課題を解
決するための手段を説明する。図1において、プロセス
1は、各種処理を行うものであって、ここでは、スリー
プ時間を設定したり、監視プロセス2によってスリープ
あるいはウェークアップしたりなどするものである。
Means for solving the problem will be described with reference to FIG. In FIG. 1, a process 1 performs various kinds of processing, and here, a sleep time is set, and the monitoring process 2 sleeps or wakes up.

【0008】監視プロセス2は、プロセス1を監視して
スリープさせたり、ウェークアップさせたりなどするも
のである。プロセススリープテーブル3は、プロセス毎
にスリープ時間を設定するものである。
The monitoring process 2 monitors the process 1 and puts it to sleep or wakes up. The process sleep table 3 sets a sleep time for each process.

【0009】プロセス終了テーブル4は、プロセス1が
処理を終了した旨を設定するものである。ログデータ5
は、プロセス1の各種ログデータを収集したものであ
る。
The process end table 4 is for setting that the process 1 has completed the processing. Log data 5
Is a collection of various log data of process 1.

【0010】次に、動作を説明する。プロセス1が監視
プロセス2にスリープ時間を通知したことに対応して、
監視プロセス2が通知されたプロセス1のスリープ時間
をプロセススリープテーブル3に設定し、この設定され
たスリープ時間に従いプロセス1をスリープ、スワップ
アウト、スワップイン、あるいはウェークアップの該当
する処理を順次実行するようにしている。
Next, the operation will be described. In response to process 1 notifying monitor process 2 of the sleep time,
The monitoring process 2 sets the notified sleep time of the process 1 in the process sleep table 3, and the process 1 executes sleep, swap-out, swap-in, or wake-up corresponding processing sequentially according to the set sleep time. I have to.

【0011】この際、プロセス1からの通知に対応して
監視プロセス2がプロセススリープテーブル3中のスリ
ープ時間を動的に変更するようにしている。また、監視
プロセス2がプロセススリープテーブル3に設定された
スリープ中のプロセス1のスリープ時間を、他のプロセ
ス1の処理の完了時間あるいは完了割合の通知に対応し
て動的に変更するようにしている。
At this time, the monitoring process 2 dynamically changes the sleep time in the process sleep table 3 in response to the notification from the process 1. Further, the monitoring process 2 dynamically changes the sleep time of the sleeping process 1 set in the process sleep table 3 in response to the notification of the completion time or the completion rate of the process of the other process 1. There is.

【0012】また、プロセス1あるいは監視プロセス2
がプロセス毎にスリープ状態に入る前のログおよびウェ
ークアップした後のログを採取しておき、監視プロセス
2が当該ログをもとにプロセス毎のスリープ時間の統計
情報を集計してスリープや実行状態の提示を行うように
している。
Also, the process 1 or the monitoring process 2
Collects the log before going into sleep state and the log after waking up for each process, and the monitoring process 2 collects the statistical information of the sleep time for each process based on the log and monitors the sleep and execution states. I try to make a presentation.

【0013】従って、プロセススリープテーブル3を設
けてこれにプロセス1からのスリープ時間を設定あるい
は動的に変更すると共にログを採取し、最適なスリープ
時間を迅速に設定したり動的に最適に変更したりすると
共に最適なスリープ時間に設定するための統計情報の提
示を実現することが可能となる。
Therefore, the process sleep table 3 is provided, and the sleep time from the process 1 is set or dynamically changed in the process sleep table 3 and the log is collected to quickly set the optimum sleep time or dynamically change the optimum sleep time. In addition, it is possible to present statistical information for setting the optimum sleep time.

【0014】[0014]

【発明の実施の形態】次に、図2から図11を用いて本
発明の実施の形態および動作を順次詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, embodiments and operations of the present invention will be sequentially described in detail with reference to FIGS.

【0015】図2は、本発明の動作説明フローチャート
を示す。これは、図1の構成の動作を詳細に説明したも
のである。ここで、プロセスP1は図示のプロセスの例
であり、監視プロセス2は図1の監視プロセス2であ
る。
FIG. 2 shows a flowchart for explaining the operation of the present invention. This is a detailed description of the operation of the configuration of FIG. Here, the process P1 is an example of the illustrated process, and the monitoring process 2 is the monitoring process 2 of FIG.

【0016】図2において、S1は、監視プロセスを起
動する。S2は、初期設定する。これは、各種初期設
定、ここでは、プロセススリープテーブル3、例えば後
述する図5の(e)のプロセススリープテーブル3の枠
組み(各種値の未設定のテーブル)を作成する。
In FIG. 2, S1 starts a monitoring process. S2 is initialized. This creates various initial settings, here, the process sleep table 3, for example, the framework of the process sleep table 3 of FIG. 5E described later (a table in which various values are not set).

【0017】一方、プロセスP1側では、S21は、プ
ロセスP1を起動する。S22は、スリープを監視プロ
セス2に通知する。これは、S21でプロセスP1が処
理を終了したので、S22で自プロセスがスリープ状態
になる旨を監視プロセス2に通知する。
On the other hand, on the process P1 side, S21 starts the process P1. In S22, the sleep is notified to the monitoring process 2. This is because the process P1 has finished processing in S21, so the monitoring process 2 is notified in S22 that the own process is in a sleep state.

【0018】S3は、監視プロセス2がS22で通知を
受けたデータをプロセススリープテーブル3に設定、例
えば後述する図5の(e)に示すように、 ・プロセス名:P1 ・スリープ開始時間:00時00分 ・スリープ終了時間:00時04分 ・深い眠り開始時間:00時01分 ・深い眠り終了時間:00時03分 を設定する。ここで、スリープ開始時間およびスリープ
終了時間はプロセスがスリープに入る時間およびスリー
プから運用状態に入る時間である。深い眠り開始時間
は、プロセスのスワップアウト(主記憶上にあるプログ
ラムを外部記憶装置に退避)を開始する時間である。深
い眠り終了時間は、プロセスのスワップイン(外部記憶
装置上のプログラムを主記憶上に復元)を開始する時間
である。
In S3, the monitoring process 2 sets the data notified in S22 in the process sleep table 3, for example, as shown in (e) of FIG. 5 to be described later: -Process name: P1-Sleep start time: 00 Time 00 minutes-Sleep end time: 00: 04-Deep sleep start time: 00: 01-Set deep sleep end time: 00:03. Here, the sleep start time and the sleep end time are the time when the process enters the sleep state and the time when the process enters the operation state from the sleep state. The deep sleep start time is a time at which a process swap-out (a program in the main memory is saved to the external storage device) is started. The deep sleep end time is the time to start swap-in (restore the program in the external storage device to the main storage) of the process.

【0019】S4は、深い眠りの開始時間か判別する。
YESの場合には、S5でプロセスP1をスワップアウ
ト開始し(主記憶上のプロセスP1のプログラムを外部
記憶装置上に退避し)、S6に進む。NOの場合には、
S6に進む。
In step S4, it is determined whether it is the start time of deep sleep.
If YES, the process P1 is started to be swapped out in S5 (the program of the process P1 in the main memory is saved in the external storage device), and the process proceeds to S6. In the case of NO,
Proceed to S6.

【0020】S6は、深い眠りの終了時間か判別する。
YESの場合には、S7でプロセスP1をメモリに復元
開始し(スワップイン開始し、外部記憶装置上のプロセ
スP1の主記憶上に復元し)、S8に進む。NOの場合
には、S8に進む。
In step S6, it is determined whether it is the end time of deep sleep.
In the case of YES, the process P1 is started to be restored in the memory in S7 (swap-in is started and restored in the main memory of the process P1 in the external storage device), and the process proceeds to S8. In the case of NO, the process proceeds to S8.

【0021】S8は、スリープ終了時間か判別する。Y
ESの場合には、S9でプロセスP1をウェークアップ
の通知を行う。そしてS10でデータ削除し、S4に戻
る。一方、S23は、S9で監視プロセス2からウェー
クアップの通知を受けたプロセスP1がウェークアップ
(起動)する。
In step S8, it is determined whether it is the sleep end time. Y
In the case of ES, the process P1 is notified of wake-up in S9. Then, the data is deleted in S10, and the process returns to S4. On the other hand, in step S23, the process P1 that receives the wakeup notification from the monitoring process 2 in step S9 wakes up (starts up).

【0022】S24は、運用を開始する。以上によっ
て、スリープ時間(図5の(e)に示すスリープ開始時
間、スリープ終了時間、深い眠り開始時間、深い眠り終
了時間)をプロセススリープテーブル3に設定し、この
設定されたスリープ開始時間となったときに該当プロセ
スをスリープ開始させ、深い眠り開始時間となったとき
にスワップアウトし、深い眠り終了時間となったときに
スワップインし、スリープ終了時間となったときにウェ
ープアップ(起動)することが可能となる。
At step S24, the operation is started. As described above, the sleep time (sleep start time, sleep end time, deep sleep start time, deep sleep end time shown in (e) of FIG. 5) is set in the process sleep table 3, and the set sleep start time is obtained. When the deep sleep start time is reached, the relevant process is started to sleep, and when the deep sleep start time is reached, the process is swapped out, when the deep sleep end time is reached, the process is swapped in, and when the sleep end time is reached, the wakeup (start) is performed It becomes possible.

【0023】また、プロセスP1をスリープさせる場合
には、図2のS11でプロセスP1にスリープ通知す
る。そして、S25でプロセスP1がスリープし、S4
に戻り繰り返す。これにより、監視プロセス2がプロセ
スP1をスリープ状態にし、プロセススリープテーブル
3に従い、S4からS10の手順に従い、既述したよう
に処理を行うことが可能となる。
When the process P1 is put to sleep, the process P1 is notified of sleep in S11 of FIG. Then, in step S25, the process P1 sleeps, and in step S4
Return to and repeat. As a result, the monitoring process 2 puts the process P1 in the sleep state, and according to the process sleep table 3, the processes as described above can be performed according to the steps S4 to S10.

【0024】図3は、本発明のプロセスの状態遷移の説
明図を示す。ここで、太線はプロセスが実行状態を表
し、点線はプロセスがスリープ状態を表す。
FIG. 3 is an explanatory diagram of the state transition of the process of the present invention. Here, the thick line represents the process execution state, and the dotted line represents the process sleep state.

【0025】図3において、(ア)は、実行からスリー
プへ状態遷移する。(イ)は、浅い眠りを開始する。
(ウ)は、浅い眠りを終了する。
In FIG. 3, (a) makes a state transition from execution to sleep. (A) starts a light sleep.
(C) ends a light sleep.

【0026】(エ)は、深い眠りを開始し、プロセスの
スワップアウト(主記憶上のプロセスのプログラムを外
部記憶装置に退避し、主記憶上の空き領域を増大)を開
始する。
In step (d), a deep sleep is started, and swapping out of the process (saving the program of the process on the main memory to the external storage device and increasing the free area on the main memory) is started.

【0027】(オ)は、スワップアウト終了する。
(カ)は、深い眠り終了する。(キ)は、浅い眠り開始
し、プロセスのメモリへの復元開始(スワップイン、即
ちプロセスのプログラムを外部記憶装置から主記憶上に
復元)開始する。
(E) ends the swap-out.
(F) ends a deep sleep. (K) starts a light sleep and starts restoration of the process to the memory (swap-in, that is, restoration of the program of the process from the external storage device to the main storage).

【0028】(ク)は、メモリへ復元終了する。(ケ)
は、スリープ終了し、ウェークアップしてプロセスが実
行を開始する。以上のように、プロセスがスリープして
浅い眠りから所定時間経過後に深い眠りに入ると共にス
ワップアウトして主記憶の空き領域を増やしておき、ウ
ェークアップ所定時間前にスワップインしてプロセスの
プログラムを主記憶上に復元して浅い眠りにしウェーク
アップしたときに即座に主記憶上のプロセスのプログラ
ムを起動して実行開始するという一連の処理が監視プロ
セスによってプロセススリープテーブル3に従い自動的
に実行されることとなる。
(H) ends the restoration to the memory. (K)
Exits sleep, wakes up, and the process begins running. As described above, the process sleeps and enters a deep sleep after a lapse of a predetermined time, swaps out to increase the free space in the main memory, and swaps in before the wake-up a predetermined time to execute the process program. A series of processes of immediately starting the program of the process in the main memory and starting the execution when the program is restored to the memory and awakened to a light sleep are automatically executed according to the process sleep table 3. Become.

【0029】図4は、本発明のスリープ時間の変更フロ
ーチャートを示す。ここでは、プロセスP1のプロセス
スリープテーブル3に設定されたスリープ時間(スリー
プ開始時間、スリープ終了時間、深い眠り開始時間、深
い眠り終了時間)に従いスリープ中であって、プロッセ
スP2がプロセスP1のスリープ時間を変更するときの
手順である。
FIG. 4 shows a flowchart for changing the sleep time according to the present invention. Here, the process P2 is sleeping according to the sleep time (sleep start time, sleep end time, deep sleep start time, deep sleep end time) set in the process sleep table 3 of the process P1, and the process P2 is in the sleep time of the process P1. Is a procedure for changing.

【0030】図4において、S31は、プロセスP1が
時間“00時00分”に、プロセススリープテーブル3
に従いスリープ開始する。S32は、プロセスP2が時
間“00時00分”に、プロセスP1を4分後にウェー
クアップする旨を監視プロセス2に通知する。これに対
応して、監視プロセス2がS33でプロセススリープテ
ーブル3のプロセスP1を4分後にウェークアップする
ように設定、即ち、 ・スリープ終了時間“00時04分” ・深い眠り開始時間“00時01分” ・深い眠り終了時間“00時03分” (1) と設定する。そして、図2の(A)に進む。
In FIG. 4, in step S31, the process P1 is set to the process sleep table 3 at the time "00:00".
Follow to sleep. In S32, the process P2 notifies the monitoring process 2 that the process P1 is to be waked up after 4 minutes at the time “00:00”. Correspondingly, the monitoring process 2 is set to wake up the process P1 of the process sleep table 3 in S33 after 4 minutes, that is, • sleep end time “00:04” • deep sleep start time “00:01” Minutes "・ Deep sleep end time" 00:03 "Set as (1). Then, the process proceeds to (A) of FIG.

【0031】S34は、プロセスP2が時間“00時0
1分”に、プロセスP1を2分後にウェークアップする
旨を監視プロセス2に通知する。これに対応して、監視
プロセス2がS35でプロセススリープテーブル3のプ
ロセスP1を2分後にウェークアップするように設定、
即ち、 ・スリープ終了時間“00時03分” ・深い眠り開始時間“00時01分” ・深い眠り終了時間“00時02分” (2) と設定する。そして、図2の(A)に進む。ここでは、
最終的なプロセススリープテーブル3の(2)に従い、
“00時02分”となったときに深い眠り終了し、スワ
ップインし、“00時03分”にウェークアップしてプ
ロセスP1を起動して運用を開始することとなる。これ
により、(1)のプロセススリープテーブル3の“00
時04分”にプロセスP1がウェークアップする予定
が、S34、S35によって“00時03分”に動的に
変更された当該時間にプロセスP1がウェークアップさ
せることが可能となる。
In step S34, the process P2 waits for the time "00: 0".
1 minute "notifies the monitoring process 2 that the process P1 is to be woken up in 2 minutes. Correspondingly, the monitoring process 2 is set to wake up the process P1 in the process sleep table 3 in 2 minutes after 2 minutes. ,
That is, the sleep end time is "00:03", the deep sleep start time is "00:01", and the deep sleep end time is "00:02" (2). Then, the process proceeds to (A) of FIG. here,
According to (2) of the final process sleep table 3,
When it becomes "00:02", the deep sleep ends, the swap-in is performed, and the process P1 is started by wake up at "00:03" to start the operation. As a result, “00” in the process sleep table 3 of (1)
Although the process P1 is scheduled to wake up at “04:”, the process P1 can be waked up at the time dynamically changed to “00:03” by S34 and S35.

【0032】図5は、本発明のプロセスP2の実行状況
図を示す。これは、既述した図4のスリープ時間を動的
に変更したときの様子を模式的に表したものである。図
5の(a)は、00時00分の状況を示す。これは、既
述した図4のS32、S33によってプロセススリープ
テーブル3に(1)のように設定したときの状況を模式
的に表したものである。ここで、太線の黒線は実行中を
表し、白の2重線はスリープ中を表す。
FIG. 5 shows an execution status diagram of the process P2 of the present invention. This is a schematic representation of the state when the sleep time in FIG. 4 described above is dynamically changed. FIG. 5A shows the situation of 00:00. This schematically shows the situation when the process sleep table 3 is set as shown in (1) by S32 and S33 of FIG. 4 described above. Here, a thick black line represents execution, and a white double line represents sleep.

【0033】・00時00分:スリープ開始 ・00時04分:ウェークアップ開始 図5の(b)は、00時01分の状況を示す。これは、
既述した図4のS34、S35によってプロセススリー
プテーブル3に(2)のように設定したときの状況を模
式的に表したものである。ここで、太線の黒線は実行中
を表し、白の2重線はスリープ中を表す。
00:00: Sleep start 00:04: Wakeup start FIG. 5 (b) shows the situation of 00:00. this is,
FIG. 6 is a schematic diagram showing the situation when the process sleep table 3 is set as shown in (2) by S34 and S35 of FIG. 4 described above. Here, a thick black line represents execution, and a white double line represents sleep.

【0034】・00時01分:スリープ開始 ・00時03分:ウェークアップ開始 図5の(c)は、プロセスP2の実行状況を表す。これ
は、プロセスP2が実行し、実行終了時に丁度プロセス
P1に処理を引き継ぐように変更するときの実行状況で
ある。即ち、プロセスP2が00時00分から実行を開
始して00時01分になったときに実行見込み終了時間
が00時03分と判明したので、この00時03分に処
理を引き継ぐプロセスP1をウェークアップするように
プロセススリープテーブル3に設定したものである。
00:01: sleep start 00:03: wakeup start FIG. 5C shows the execution status of the process P2. This is the execution status when the process P2 executes and changes so that the process is just handed over to the process P1 at the end of execution. That is, when the process P2 starts executing from 00:00 and reaches 00:00, it is determined that the expected execution end time is 00:03. Therefore, the process P1 that takes over the process at 00:00 is awakened. It is set in the process sleep table 3 so as to perform.

【0035】図5の(d)は、プロセスP1、P2の実
行状況を表す。(ア)は、プロセスP2が00時00分
のときに、4分後にプロセスP1をウェークアップする
ようにプロセススリープテーブル3に設定する様子を示
す(図4のS32、S33参照)。
FIG. 5D shows the execution status of the processes P1 and P2. (A) shows how the process P2 is set in the process sleep table 3 to wake up the process P1 after 4 minutes when the process P2 is 00:00 (see S32 and S33 in FIG. 4).

【0036】(イ)は、プロセスP2が00時01分の
ときに、2分後にプロセスP1をウェークアップするよ
うにプロセススリープテーブル3に設定する様子を示す
(図4のS34、S35参照)。
(A) shows how the process sleep table 3 is set to wake up the process P1 after 2 minutes when the process P2 is 00:01 (see S34 and S35 in FIG. 4).

【0037】(ウ)は、監視プロセスが00時03分の
ときに、プロセスP1をウェークアッップする様子を示
す。図5の(e)は、プロセススリープテーブル例を示
す。このプロセススリープテーブル3は、既述した図4
のS33で動的に変更した後のものであって、図示のよ
うに設定する。
(C) shows how the process P1 is wake-up when the monitoring process is 00:03. FIG. 5E shows an example of the process sleep table. This process sleep table 3 is the same as that shown in FIG.
It is after being dynamically changed in S33, and is set as shown.

【0038】以上の図5の(a)から(e)に示すよう
に、プロセスP2の実行状況に合わせて丁度実行完了見
込み時間のときにプロセスP1がウェークアップするよ
うに、プロセスP2がプロセスP1のプロセススリープ
テーブル3を動的に通知して変更させることが可能とな
る。
As shown in (a) to (e) of FIG. 5 above, the process P2 is set to the process P1 so that the process P1 wakes up at the expected execution completion time in accordance with the execution status of the process P2. The process sleep table 3 can be dynamically notified and changed.

【0039】図6は、本発明のプロセス待合せフローチ
ャートを示す。図6において、S41は、プロセスP2
が実行中である。S42は、終了か判別する。YESの
場合には、S43でプロセス終了テーブル4にスリープ
するプロセスP2を設定し、S44でログを採取し、S
45でスリープあるいは終了する。一方、S42のNO
の場合には、S41に戻る。
FIG. 6 shows a process queuing flowchart of the present invention. In FIG. 6, S41 is a process P2.
Is running. In S42, it is determined whether or not it has ended. In the case of YES, the process P2 that sleeps is set in the process end table 4 in S43, the log is collected in S44, and S
It sleeps or ends at 45. On the other hand, NO in S42
In the case of, it returns to S41.

【0040】以上のS41からS45によって、プロセ
スP2が実行中から処理を終了し、プロセス終了テーブ
ル4にプロセスP2を設定して監視プロセス2に当該プ
ロセスP2の処理が終了した旨を知らせる。
Through the above steps S41 to S45, the process P2 is terminated while it is being executed, and the process P2 is set in the process termination table 4 to notify the monitoring process 2 that the process P2 has been terminated.

【0041】S51は、プロセスP1がスリープ直前の
当該プロセスP1の各種制御データなどのログを採取す
る。S52は、プロセスP1がスリープする。
In step S51, a log of various control data of the process P1 immediately before the process P1 sleeps is collected. In S52, the process P1 sleeps.

【0042】S53は、既述した図2の(B)のウェー
クアップ通知に対応して、プロセスP1がウェークアッ
プする。S54は、プロセスP1がウェークアップ直後
の各種制御データなどのログを採取する。
In step S53, the process P1 wakes up in response to the wakeup notification shown in FIG. 2B. In S54, logs such as various control data immediately after the process P1 wakes up are collected.

【0043】S55は、プロセス終了テーブルにP2に
設定ありか判別する。YESの場合には、待ち合わせる
プロセスP2が終了した旨が設定されていたので、S5
6でプロセスP1が運用を開始する。一方、S55のN
Oの場合には、待ち合わせているプロセスP2が未だ終
了していないと判明したので、S57でプロセススリー
プテーブル3に動的変更通知を行い、S58で監視プロ
セスがこの通知に対応してプロセススリープテーブル3
の動的変更を行い、S53に戻る。
In step S55, it is determined whether P2 is set in the process end table. In the case of YES, since it is set that the waiting process P2 has ended, S5 is executed.
At 6, the process P1 starts operation. On the other hand, N in S55
In the case of O, it is found that the waiting process P2 has not ended yet. Therefore, in step S57, a dynamic change notification is sent to the process sleep table 3, and in step S58, the monitoring process responds to this notification. Three
Is dynamically changed, and the process returns to S53.

【0044】以上によって、プロセスP1は、スリープ
状態からスリープ時間経過する毎にウェークアップして
プロセス終了テーブル4にプロセスP2が終了されるま
で、動的に自プロセスP1のスリープ時間を変更しつつ
繰り返してプロセスP2が終了するまで待機することが
可能となる。
As described above, the process P1 repeatedly wakes up every time the sleep time elapses from the sleep state and dynamically changes the sleep time of its own process P1 until the process P2 is terminated in the process termination table 4. It becomes possible to wait until the process P2 ends.

【0045】図7は、本発明のプロセス終了テーブル例
を示す。これは、既述した図6のS43でプロセスP2
が処理を終了したときに設定し、監視プロセス2に知ら
せるためのテーブルである。
FIG. 7 shows an example of the process end table of the present invention. This is the process P2 in S43 of FIG.
Is a table for setting when the process is finished and notifying the monitoring process 2.

【0046】図8は、本発明のプロセス待合せ説明図を
示す。これは、既述した図6の待合せ状況を模式的に表
したものである。図8の(ア)は、プロセスP1がプロ
セス開始する。
FIG. 8 is an explanatory diagram of process waiting according to the present invention. This is a schematic representation of the waiting situation in FIG. 6 described above. In FIG. 8A, the process P1 starts.

【0047】(イ)は、プロセスP2の終了待ちのため
にプロセスP1がスリープ開始する。(ウ)、(カ)、
(ケ)は、プロセスP2の終了検出のためにプロセスP
1が実行開始する。
In (a), the process P1 starts sleep to wait for the end of the process P2. (U), (F),
(K) is a process P for detecting the end of the process P2.
1 starts executing.

【0048】(エ)、(キ)は、プロセスP2の終了検
出する。(オ)、(ク)は、プロセスP2の実行中のた
め、プロセスP1が再びスリープ開始する。
(D) and (v) detect the end of the process P2. In (e) and (h), since the process P2 is being executed, the process P1 starts sleep again.

【0049】(コ)は、プロセスP2の終了検出し、プ
ロセスP2の終了のため、プロセスP1を実行する。
(ク)は、プロセスP1の終了する。
(K) detects the end of the process P2 and executes the process P1 for the end of the process P2.
(H) ends the process P1.

【0050】以上によって、上段の図示のように、プロ
セスP1は(イ)−(ウ)に示すように、最初のスリー
プ時間は長く、2回目以降の(オ)−(カ)、(ク)−
(ケ)のスリープ時間は短く、スリープ時間をプロセス
スリープテーブル3に動的に変更し、プロセスP2の終
了を待ち合わせることが可能となる。
As described above, as shown in the upper part of the figure, the process P1 has a long first sleep time as shown in (a)-(c), and the second and subsequent (o)-(f), (h). −
The sleep time of (X) is short, and it is possible to dynamically change the sleep time to the process sleep table 3 and wait for the end of the process P2.

【0051】図9は、本発明のログからプロセス総度数
等を算出する説明図を示す。図9において、S61は、
ログを取り込む。これは、既述した図6のスリープ直前
の状態(制御データや各種情報)およびウェークアップ
直後の状態のログを全て取り込む。
FIG. 9 is an explanatory diagram for calculating the total process count and the like from the log of the present invention. In FIG. 9, S61 is
Capture logs. This captures all the logs of the state (control data and various information) immediately before sleep and the state immediately after wakeup in FIG. 6 described above.

【0052】S62は、ソートする。これは、プロセス
毎にソートする。S63は、プロセスごとに状態遷移を
作成する。S64は、指定された時間毎のスリープ中/
実行中プロセス総度数を算出し、平均値、度数の中央値
を計算し、表やグラフを作成する。これは、例えば後述
する図10の(a)のログデータについて、図10の
(c)のスリープ時間の度数算出結果表を作成したり、
図11の(a)のスリープ時間のプロセス度数分布図、
図11の(b)のプロセス状況遷移の画面表示例に示す
ように計算して表示する。
In step S62, sorting is performed. This sorts by process. S63 creates a state transition for each process. S64 is during sleep every designated time /
The total number of running processes is calculated, the average value and the median of the frequencies are calculated, and tables and graphs are created. For example, for the log data of (a) of FIG. 10 described later, a frequency calculation result table of the sleep time of (c) of FIG. 10 is created,
FIG. 11A is a process frequency distribution diagram of the sleep time,
It is calculated and displayed as shown in the screen display example of the process status transition of FIG.

【0053】以上によって、スリープ直前の状態やウェ
ークアップ直後の状態のログを採取しておき、これらロ
グを収集してプロセス毎に指定された時間毎のスリープ
中/実行中プロセス総度数などを算出し、スリープ時間
の最適値を求める指標を提示することが可能となる。
As described above, logs in a state immediately before sleep and a state immediately after wakeup are collected, and these logs are collected to calculate the total number of sleeping / running processes for each designated time for each process. , It is possible to present an index for obtaining the optimum value of the sleep time.

【0054】図10は、本発明のログ説明図(その1)
を示す。図10の(a)は、ログデータ例を示す。ここ
では、ログデータは、図示のように、プロセス名に対応
づけて事象コード、事象名、および事象発生時間を採取
する。
FIG. 10 is an explanatory view (1) of the log of the present invention.
Is shown. FIG. 10A shows an example of log data. Here, as shown in the figure, the log data collects the event code, the event name, and the event occurrence time in association with the process name.

【0055】図10の(b)は、事象コードテーブル例
を示す。この事象コードテーブルには、図示のように、
事象コードに対応づけて事象名を登録したものである。
図10の(c)は、スリープ時間の度数算出結果表例を
示す。これは、ログデータから、スリープ時間の度数を
算出した結果例であって、図示のように、スリープ時間
に対応づけてプロセス度数(個数)を集計したものであ
る。
FIG. 10B shows an example of the event code table. In this event code table, as shown in the figure,
The event name is registered in association with the event code.
FIG. 10C shows an example of a sleep frequency calculation result table. This is an example of the result of calculating the frequency of the sleep time from the log data, and as shown in the figure, the process frequency (number) is aggregated in association with the sleep time.

【0056】図11は、本発明のログ説明図(その2)
を示す。図11の(a)は、スリープ時間とプロセス度
数の関係曲線を示す。これは、既述した図10の(c)
のスリープ時間を横軸に表し、プロセス度数を縦軸に表
したものである。ここでは、スリープ時間“02分”か
ら“03分”の間がプロセス度数が“1”であり、他の
時間は全てプロセス度数が0である。
FIG. 11 is an explanatory view of the log of the present invention (part 2).
Is shown. FIG. 11A shows a relationship curve between the sleep time and the process frequency. This is (c) of FIG. 10 described above.
The sleep time is shown on the horizontal axis and the process frequency is shown on the vertical axis. Here, the process frequency is “1” during the sleep time “02 minutes” to “03 minutes”, and the process frequency is 0 at all other times.

【0057】図11の(b)は、プロセス状況遷移の画
面表示例を示す。これは、プロセスP1、プロセスP2
の時間の経過に伴うプロセスの状況遷移(実行中、浅い
眠り、深い眠り、浅い眠り、実行中)を横棒グラフで表
示したものである。
FIG. 11B shows a screen display example of the process status transition. This is process P1, process P2
Is a horizontal bar graph showing the process state transition (running, light sleep, deep sleep, light sleep, running) with the passage of time.

【0058】[0058]

【発明の効果】以上説明したように、本発明によれば、
プロセススリープテーブル3を設けてこれにプロセス1
のスリープ時間を設定、動的に変更、待合せたりすると
共にログを採取する構成を採用しているため、最適なス
リープ時間を迅速に設定したり、動的に最適に変更した
り、プロセス間で待ち合わせたり、最適なスリープ時間
を設定するための統計情報を提示したりすることができ
る。
As described above, according to the present invention,
The process sleep table 3 is provided and the process 1
The sleep time is set, dynamically changed, and waited, and the configuration that logs are collected, so the optimal sleep time can be set quickly or dynamically and optimally. It is possible to meet and present statistical information for setting the optimal sleep time.

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

【図1】本発明のシステム構成図である。FIG. 1 is a system configuration diagram of the present invention.

【図2】本発明の動作説明フローチャートである。FIG. 2 is a flowchart illustrating the operation of the present invention.

【図3】本発明のプロセスの状態遷移の説明図である。FIG. 3 is an explanatory diagram of state transitions of the process of the present invention.

【図4】本発明のスリープ時間の変更フローチャートで
ある。
FIG. 4 is a flowchart for changing a sleep time according to the present invention.

【図5】本発明のプロセスP2の実行状況図である。FIG. 5 is an execution status diagram of process P2 of the present invention.

【図6】本発明のプロセスの待合せフローチャートであ
る。
FIG. 6 is a queuing flowchart of the process of the present invention.

【図7】本発明のプロセス終了テーブル例である。FIG. 7 is an example of a process end table of the present invention.

【図8】本発明のプロセスの待合せ説明図である。FIG. 8 is an explanatory diagram of queuing of the process of the present invention.

【図9】本発明のログからプロセス総度数等を算出する
説明図である。
FIG. 9 is an explanatory diagram for calculating the total process count and the like from the log of the present invention.

【図10】本発明のログ説明図(その1)である。FIG. 10 is an explanatory diagram (1) of a log of the present invention.

【図11】本発明のログ説明図(その2)である。FIG. 11 is a log explanatory view (2) of the present invention.

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

1:プロセス 2:監視プロセス 3:プロセススリープテーブル 4:プロセス終了テーブル 5:ログデータ 1: Process 2: Monitoring process 3: Process sleep table 4: Process end table 5: Log data

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】プロセスのスリープ状態を監視するプロセ
ス監視装置において、 プロセスのスリープ時間を設定するプロセススリープテ
ーブルと、 プロセスのスリープ時間を上記プロセススリープテーブ
ルに設定すると共に、設定したスリープ時間に従いプロ
セスをスリープ、スワップアウト、スワップイン、およ
びウェークアップの該当する処理を順次実行する監視プ
ロセスとを備えたことを特徴とするプロセス監視装置。
1. A process monitoring device for monitoring a sleep state of a process, wherein a process sleep table for setting a sleep time of the process, a sleep time of the process is set in the process sleep table, and the process is set according to the set sleep time. A process monitoring device comprising: a monitoring process that sequentially executes corresponding processes of sleep, swap-out, swap-in, and wake-up.
【請求項2】プロセスからの通知に対応して上記プロセ
ススリープテーブル中のスリープ時間を動的に変更する
ことを特徴とする請求項1記載のプロセス監視装置。
2. The process monitoring apparatus according to claim 1, wherein the sleep time in the process sleep table is dynamically changed in response to a notification from a process.
【請求項3】上記プロセススリープテーブルに設定され
たスリープ中のプロセスのスリープ時間を、他のプロセ
スの処理の完了時間あるいは完了割合の通知に対応して
動的に変更することを特徴とする請求項1あるいは請求
項2記載のプロセス監視装置。
3. The sleep time of a sleeping process set in the process sleep table is dynamically changed in response to notification of completion time or completion rate of processing of another process. The process monitoring device according to claim 1 or 2.
【請求項4】上記プロセス毎にスリープ状態に入る前の
ログおよび上記ウェークアップした後のログを採取して
おき、当該ログをもとにプロセス毎のスリープおよび実
行状況を集計して提示することを特徴とする請求項1な
いし請求項3記載のいずれかのプロセス監視装置。
4. A log before entering the sleep state and a log after the wakeup are collected for each process, and the sleep and execution status of each process is aggregated and presented based on the log. The process monitoring device according to any one of claims 1 to 3, which is characterized.
JP8013510A 1996-01-30 1996-01-30 Process monitor device Pending JPH09212373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8013510A JPH09212373A (en) 1996-01-30 1996-01-30 Process monitor device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8013510A JPH09212373A (en) 1996-01-30 1996-01-30 Process monitor device

Publications (1)

Publication Number Publication Date
JPH09212373A true JPH09212373A (en) 1997-08-15

Family

ID=11835150

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8013510A Pending JPH09212373A (en) 1996-01-30 1996-01-30 Process monitor device

Country Status (1)

Country Link
JP (1) JPH09212373A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140315A (en) * 2007-12-07 2009-06-25 Nec Corp Computer system, virtual storage control method, and program
WO2009104344A1 (en) * 2008-02-22 2009-08-27 日本電気株式会社 Information technology (it) system behavior measurement and analysis system and method therefor
JP2010129054A (en) * 2008-12-01 2010-06-10 Ntt Docomo Inc Program execution apparatus
JP2010224914A (en) * 2009-03-24 2010-10-07 Ntt Data Corp Instance management system and computer program
CN116382994A (en) * 2023-06-01 2023-07-04 深圳市蓝鲸智联科技有限公司 System dormancy restarting test method, device, terminal equipment and medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009140315A (en) * 2007-12-07 2009-06-25 Nec Corp Computer system, virtual storage control method, and program
WO2009104344A1 (en) * 2008-02-22 2009-08-27 日本電気株式会社 Information technology (it) system behavior measurement and analysis system and method therefor
US8495652B2 (en) 2008-02-22 2013-07-23 Nec Corporation IT system behavior measurement and analysis system and method thereof
JP5440935B2 (en) * 2008-02-22 2014-03-12 日本電気株式会社 IT system behavior measurement and analysis system and method thereof
JP2010129054A (en) * 2008-12-01 2010-06-10 Ntt Docomo Inc Program execution apparatus
JP2010224914A (en) * 2009-03-24 2010-10-07 Ntt Data Corp Instance management system and computer program
CN116382994A (en) * 2023-06-01 2023-07-04 深圳市蓝鲸智联科技有限公司 System dormancy restarting test method, device, terminal equipment and medium
CN116382994B (en) * 2023-06-01 2023-11-28 深圳市蓝鲸智联科技股份有限公司 System dormancy restarting test method, device, terminal equipment and medium

Similar Documents

Publication Publication Date Title
US8635475B2 (en) Application-specific power management
US7478392B2 (en) Method and apparatus for synchronization of periodic processes
US6105141A (en) Method and apparatus for power management of an external cache of a computer system
CN109918141B (en) Thread execution method, thread execution device, terminal and storage medium
CN108496156A (en) Awakening method, the apparatus and system of operating system
DE112007001713T5 (en) System and method for controlling low power states in processors
JP4123914B2 (en) Monitoring method and monitoring program for program operating state
CN112445147A (en) Awakening method, system and device of intelligent equipment, electronic equipment and storage medium
CN112199260A (en) Application monitoring method, device, system, terminal equipment and storage medium
JPH09212373A (en) Process monitor device
CN104102534B (en) A kind of method and mobile terminal for preventing touch-screen mistaken touch
US8521855B2 (en) Centralized server-directed power management in a distributed computing system
CN101751299B (en) Computer mainboard with automatic adjusting hardware parameter value
CN114090270B (en) Thread management method and device, electronic equipment and computer readable storage medium
CN114098534B (en) Cleaning area identification method and device of sweeper, storage medium and electronic equipment
US20230409391A1 (en) Thread priority adjusting method, terminal, and computer-readable storage medium
JPH04251316A (en) Event-driving type scanning of data input device using multiple-input wake-up technology
CN108040274A (en) Key-press event response processing method, television set and computer-readable recording medium
JP2005182594A (en) Computer and program
JPH0793168A (en) Task management system
JPH1091581A (en) Transaction processing system
JP2001034487A (en) Program executing device, time deciding device and method
CN115985066B (en) Method, device, system and storage medium for automatically waking up user
JP3331235B2 (en) Power saving control method and apparatus for computer system
CN114625574A (en) Service management method, device, storage medium and electronic equipment