Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3603703B2 - I/O RUNTIME MONITORING SYSTEM AND METHOD - Google Patents
[go: Go Back, main page]

JP3603703B2 - I/O RUNTIME MONITORING SYSTEM AND METHOD - Google Patents

I/O RUNTIME MONITORING SYSTEM AND METHOD Download PDF

Info

Publication number
JP3603703B2
JP3603703B2 JP33057099A JP33057099A JP3603703B2 JP 3603703 B2 JP3603703 B2 JP 3603703B2 JP 33057099 A JP33057099 A JP 33057099A JP 33057099 A JP33057099 A JP 33057099A JP 3603703 B2 JP3603703 B2 JP 3603703B2
Authority
JP
Japan
Prior art keywords
time
monitoring
command
host computer
peripheral device
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.)
Expired - Fee Related
Application number
JP33057099A
Other languages
Japanese (ja)
Other versions
JP2001147866A (en
Inventor
正哉 風戸
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 JP33057099A priority Critical patent/JP3603703B2/en
Publication of JP2001147866A publication Critical patent/JP2001147866A/en
Application granted granted Critical
Publication of JP3603703B2 publication Critical patent/JP3603703B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は情報処理装置に関し、特に、入出力制御技術に関する。
【0002】
【従来の技術】
ホストコンピュータにおいて、周辺装置の入出力動作の異常を監視するために、入出力要求発行時、ホストコンピュータ側で時間監視用のカウンタ(タイマ)値を設定し、実時間クロック等の割り込みで所定時間経過毎に、カウント値をデクリメント(1つ減算)し、周辺装置から入出力完了が通知されない状態で、カウント値が0となった場合、すなわちタイムアウト発生時、周辺装置の入出力動作の異常と判定している。
【0003】
ホストコンピュータでは、通常、ホストコンピュータに接続される周辺装置の種別毎に、予め設定されたタイマ値で入出力(「I/O」ともいう)実行時間を監視している。
【0004】
ところで、入出力コマンドの中に特殊な動作を行うコマンドが含まれている場合には、該コマンドの実行時間が、ホストコンピュータで設定されたタイマ値で定められる時間内に終了せず、このため、周辺装置はハードウェア的には正常な動作を行っているにもかかわらず、ホストコンピュータ側で、入出力動作のタイムアウトを検出し、周辺装置に障害が発生したものと判断してしまう、という問題が生じ、不都合である。
【0005】
【発明が解決しようとする課題】
かかる問題に対処するために、例えば特開平3−58154号公報には、コマンド解析手段で解析されたコマンドの種類に応じてタイムアウト監視時間をデバイス制御回路で算出し、デバイス制御回路で算出したタイムアウト監視時間を上位装置に送出する手段を備え、上位装置からコマンドを受信した場合、そのコマンドに対応したタイムアウト時間を、上位装置に報告するようにした入出力装置のタイムアウト監視方式が提案されている。同様にして、例えば特開平4−160656号公報には、受信した入出力コマンドを解析し、コマンドの種類に対応したタイムアウト時間を算出し上位装置に算出したタイムアウト時間を送出するようにした入出力動作監視方式が提案されている。
【0006】
しかしながら、上記特開平3−58154号公報あるいは特開平4−160656号公報等に記載されるように、上位装置からのI/O要求発行時に、I/O要求に含まれるコマンドを全てチェックして監視時間を設定する方法を採用した場合、I/O発行のために要する処理ステップ数が増大し、これに伴い、I/O処理時間も増大する、という問題点を有している。また、周辺装置のファームウェア等の交換等により、コマンド毎の監視時間が変更された場合に、これに対応することができない等の問題点も有している。
【0007】
したがって本発明は、上記問題点に鑑みてなされたものであって、その目的は、ハードウェア的正常動作しているI/Oに対して、監視時間切れによる障害発生と判断することなく、I/O実行時間の監視を行うことができる入出力制御システム及び方法並びに記録媒体を提供することにある。
【0008】
また、本発明の他の目的は、周辺装置の組み込みを契機に延長すべき監視時間が更新されるため、周辺装置のファームウェア交換等でコマンド毎の監視時間が変更された場合でも、適正なI/O時間監視を行うことができる入出力制御システム及び方法並びに記録媒体を提供することにある。
【0009】
【課題を解決するための手段】
前記目的を達成する本発明に係る方法は、ホストコンピュータが周辺装置に対する入出力要求時に入出力完了までのタイムアウト値を時間監視カウンタに設定することで入出力時間の監視を行う入出力実行時間監視方法において、
(a)前記ホストコンピュータによる前記周辺装置の組み込み時に、前記周辺装置において、前記ホストコンピュータから与えられた入出力監視時間よりも実行時間が長いコマンドについてそれぞれの延長時間と前記ホストコンピュータに対して監視時間の延長を通知する旨の情報とを、実際に入出力処理が行われる前の時点で、予め設定登録しておくステップと、
(b)前記ホストコンピュータでの入出力要求発行時、前記周辺装置は、前記ホストコンピュータから受け取ったコマンドが、前記ホストコンピュータに監視時間の延長を通知するものである場合には、設定登録されている延長時間を、前記ホストコンピュータに通知するステップと、
(c)前記周辺装置から監視時間の延長の通知を受けた前記ホストコンピュータでは、前記時間監視カウンタのカウンタ値を、前記通知された延長時間に相当する値だけ加算するステップと、
を含むものである。
【0010】
また本発明の方法は、(d)前記周辺装置が、前記コマンドに対応した処理の実行を終えた時点で、前記延長した時間内に前記コマンドの処理が終了したか否かをチェックし、前記延長時間内に終了した場合には、前記延長された監視時間と、前記コマンドの実際の処理に要した時間との差分を監視時間の短縮時間として前記ホストコンピュータに通知するステップと、
(e)前記周辺装置から前記監視時間の短縮通知を受信した場合には、前記ホストコンピュータが時間監視用のカウント値を、前記通知された短縮時間に相当する値だけ減算するステップと、を含む。
【0011】
本発明は、ホストコンピュータと、前記ホストコンピュータに接続される周辺装置とを備え、前記ホストコンピュータが、前記周辺装置の組み込み時に、前記ホストコンピュータにおいて予め用意されている監視時間を前記周辺装置に与え、前記周辺装置内に具備されるコマンド実行時間表の更新要求を、前記周辺装置に対して、発行する手段を備え、前記周辺装置は、前記ホストコンピュータへの組み込み時、前記ホストコンピュータから、前記コマンド実行時間表の更新要求を受信すると、与えられた前記監視時間よりも長い実行時間を要するコマンドについて、前記コマンド実行時間表に、延長時間を登録するとともに、前記コマンドに対して監視時間延長イベント通知対象フラグをオンに設定する手段を備え、さらに、組み込み完了後、前記ホストコンピュータから入出力コマンドを受信した際に、前記コマンドに対する監視時間延長イベント通知対象フラグがオンに設定されている場合、該コマンドに対応する監視時間の延長を監視時間延長イベントとして前記ホストコンピュータに通知する手段を備え、前記ホストコンピュータは、前記周辺装置の組み込みの完了後、前記周辺装置に対する入出力要求が発生した場合、前記周辺装置に対して入出力コマンドを発行し、タイムアウト監視用の時間監視カウンタに設定するカウント値を予め用意されている前記監視時間の値に設定し、前記周辺装置から、前記監視時間延長イベントを受信した場合に、前記延長時間に対応した値を前記時間監視用のカウンタに加算する手段を備える。
【0012】
本発明においては、前記周辺装置が、前記コマンドに対応した処理の実行を終えると、延長した監視時間内に、前記コマンド処理が終了したか否かをチェックし、前記延長した監視時間内に、前記コマンド処理が終了した場合、前記延長した監視時間と、実際の処理に要した時間との差分よりなる短縮時間を監視時間短縮イベントとして前記ホストコンピュータに通知する手段を備え、前記ホストコンピュータは、前記周辺装置から前記監視時間短縮イベントを受信した場合には、時間監視カウンタのカウント値から短縮時間に相当する値だけ減算する。
【0013】
【発明の実施の形態】
本発明の実施の形態について説明する。本発明は、ホストコンピュータシステムにおいて、周辺装置で実行中のI/O毎に適正な時間監視を行う機能を提供するものである。
【0014】
本発明の一実施の形態について図1を参照して説明する。図1を参照すると、本発明は、その好ましい一実施の形態において、ホストコンピュータ(100)は、周辺装置組込手段(101)を用いて、周辺装置(200)の組み込むを行う。この周辺装置(200)の組み込みにあたり、ホストコンピュータ(100)のI/O制御手段(102)は、装置状態管理表(104)に設定されているソフトウェア監視時間を入力し、周辺装置(200)のコマンド実行時間表(203)の更新要求を、周辺装置(200)に対して、発行する。
【0015】
周辺装置(200)のI/Oコマンド処理手段(201)は、ホストコンピュータ(100)から、コマンド実行時間表(203)の更新要求を受信すると、コマンド実行時間表(203)のうち、入力されたソフトウェア監視時間よりも長い実行時間を要するコマンドについて、延長監視時間を登録し、監視時間延長イベント通知対象フラグをオンに設定する。
【0016】
ホストコンピュータ(100)において、周辺装置(200)の組込処理完了後、周辺装置(200)に対する入出力要求が発生した場合、I/O制御手段(102)から周辺装置(200)に対して入出力要求(I/O要求)を発行する。
【0017】
ホストコンピュータ(100)は、I/O要求発行に成功すると、装置状態管理表(104)に設定されているソフトウェア監視時間を基に、I/O時間監視表(105)に、該周辺装置のタイムアウト検出までの時間監視カウンタ値を設定する。
【0018】
周辺装置(200)のI/Oコマンド処理手段(201)は、ホストコンピュータ(100)から受信したI/Oのコマンドを解析し、コマンドの監視時間延長イベント通知対象フラグがオンの場合、周辺装置(200)のイベント通知手段(203)を介して、該コマンドに対応する延長監視時間を監視時間延長イベントとして、ホストコンピュータ(100)に通知する。
【0019】
また、周辺装置(200)のI/Oコマンド処理手段(201)は、周辺装置(200)において、ホストコンピュータ(100)から受け取ったコマンドに対応した処理の実行を終えると、延長した時間内にコマンド処理が終了したか否かをチェックし、延長監視時間と、処理に要した時間との差分を短縮監視時間として、監視時間短縮イベントを、ホストコンピュータ(100)に通知する。
【0020】
ホストコンピュータ(100)のI/O制御手段(102)は、監視時間延長イベントを受信した場合、延長監視時間に対応した値を時間監視カウンタのカウント値に加算して、該コマンドの処理に対するタイムアウト発生までの時間を延長する。
【0021】
また、ホストコンピュータ(100)のI/O制御手段(102)は、監視時間短縮イベントを受信した場合には、時間監視カウンタのカウント値を減算し、該コマンドの処理に対するタイムアウト発生までの時間を短縮する。
【0022】
このようにして、周辺装置(200)で、実行時間が長いコマンドを処理している間だけ、I/O実行時間の監視時間を延長するか、もしくは、一旦延長した監視時間を減少させることで、I/O毎に適正な時間監視を行うことを可能としている。
【0023】
本発明において、(a)ホストコンピュータに接続される周辺装置の組み込み時に、前記ホストコンピュータに予め用意されている監視時間を与えて、前記周辺装置内に具備されるコマンド実行時間表の更新要求を前記周辺装置に対して発行する処理と、
(b)前記周辺装置の組込処理の完了後、前記周辺装置に対して入出力要求を発行した際に、時間監視カウンタを予め用意されている値に設定し、前記周辺装置から、監視時間の延長イベントを受信した場合、前記延長時間に対応した値を、前記時間監視カウンタに加算する処理と、
(c)前記周辺装置から、監視時間の短縮イベントを受信した場合、前記時間監視カウンタから前記短縮時間に対応した値を減算する処理と、
の前記(a)乃至(c)の処理は、ホストコンピュータ上でプログラムを実行することで実現される。この場合、該プログラムを記録した記録媒体から読み出し装置を介してホストコンピュータの主記憶装置にプログラムを読み出し実行することで本発明を実施することができる。
【0024】
また本発明において、(d)ホストコンピュータへの組み込み時、前記ホストコンピュータからコマンド実行時間を管理するコマンド実行時間表の更新要求を受信した際に、入力された前記監視時間よりも長い実行時間を要するコマンドについて、前記コマンド実行時間表に、延長時間を登録するとともに、前記コマンドに対して監視時間延長イベント通知対象フラグをオンに設定する処理と、
(e)前記ホストコンピュータから入出力コマンドを受信した際に、前記コマンドに対する監視時間延長イベント通知対象フラグがオンに設定されている場合、該コマンドに対応する監視時間の延長を監視時間延長イベントとして前記ホストコンピュータに通知する処理と、
(f)前記コマンドに対応した処理の実行を終えると、延長した監視時間内に、前記コマンド処理が終了したか否かをチェックし、前記延長した監視時間内に、前記コマンド処理が終了した場合、前記延長した監視時間と、実際の処理に要した時間との差分を、短縮時間を監視時間短縮イベントとして前記ホストコンピュータに通知する処理と、の前記(d)乃至(f)の各処理を、前記周辺装置を構成するCPUでプログラムを実行することで実現される。この場合、該プログラムを記録した記録媒体から読み出し装置を介して周辺装置にプログラムを読み出し実行することで本発明を実施することができる。プログラムを記録した記録媒体は、CD(compact disk)−ROM、FD、DVD(digital versatile disk)、MT(magnetic tape)、EEPROM(電気的に消去及び書き込み可能な読み出し専用メモリ)、マスクROM等の不揮発性半導体メモリ等も含む。
【0025】
【実施例】
上記した本発明の実施の形態についてさらに詳細に説明すべく、本発明の実施例について図面を参照して以下に説明する。
【0026】
図1は、本発明の一実施例の構成を示す図である。図1を参照すると、本発明の一実施例は、ホストコンピュータ100と、ホストコンピュータ100に接続される周辺装置200とを備えて構成されている。
【0027】
ホストコンピュータ100は、周辺装置組込手段101と、I/O制御手段102と、I/O時間監視手段103と、これらの手段が参照及び更新する装置状態管理表104、及びI/O時間監視表105と、を備えている。
【0028】
これらの手段は、それぞれ概略つぎのように動作する。
【0029】
周辺装置組込手段101は、ホストコンピュータ100に接続される周辺装置200の組み込み処理を行い、この時、コマンド実行時間表203の更新をI/O制御手段102を用いて周辺装置200に要求する。
【0030】
I/O制御手段102は、ホストコンピュータ100に接続される周辺装置200に対するI/O発行を行い、I/O時間監視表105に時間監視カウンタを設定する。また、周辺装置200からイベントを受信した場合には、その内容に合わせて、I/O時間監視表105の不図示の時間監視カウンタを加算・減算する。
【0031】
I/O時間監視手段103は、一定のインターバル毎に起動され、I/O時間監視表105の時間監視カウンタを減算することで、実行中I/Oの時間監視を行う。
【0032】
周辺装置200は、I/Oコマンド処理手段201とイベント通知手段202とを備えている。
【0033】
I/Oコマンド処理手段201は、ホストコンピュータ100のI/O制御手段102からの要求によりコマンド実行時間表203の更新を行う。また、I/O内のコマンドを解析し、コマンド対応の処理を行うとともに、監視時間延長または短縮イベントを通知する。
【0034】
周辺装置200のイベント通知手段202は、I/Oコマンド処理手段201の指示により、監視時間延長または短縮イベントをホストコンピュータ100に対して通知する。
【0035】
監視時間延長または短縮イベントを受信したホストコンピュータ100では、I/O時間監視表105の時刻監視カウンタの値を、延長または短縮時間に相当する値だけ加算又は減算する。時刻監視カウンタは、時刻監視カウンタの現在のカウンタ値に対して、外部から設定された値を加算又は減算可能に構成されている。
【0036】
周辺装置組込手段101と、I/O制御手段102と、I/O時間監視手段103と、は、ホストコンピュータ100上で実行されるプログラムによりその処理・機能が実現される。本発明は、これらのプログラムを格納した記録媒体も含む。周辺装置200のI/Oコマンド処理手段201、イベント通知手段202は、周辺装置200の不図示のCPUで上で実行されるプログラムによりその処理・機能が実現される。本発明は、これらのプログラムを格納した記録媒体も含む。
【0037】
図1乃至図6を参照して、本発明の一実施例の全体の動作について詳細に説明する。
【0038】
図2(a)は、本発明の一実施例におけるI/O発行処理の手順を示す流れ図である。まず、一般的なI/O実行時間監視方法について説明する。図1におけるホストコンピュータ100上でI/O発行処理が行われると、I/O制御手段102により、図2に流れ図として示すように、I/O発行後(ステップS1、S2)に、装置状態管理表104に設定されているソフトウェア監視時間を取得し(ステップS3)、ソフトウェア監視時間に対応した時間監視カウンタがI/O時間監視表105に設定される(ステップS4)。
【0039】
図2(b)は、本発明の一実施例におけるI/O時間監視処理の手順を示す流れ図である。ホストコンピュータ100のI/O監視手段103は、一定のインターバル毎に起動されると、I/O時間監視表105を検索する(ステップS11)。監視中のI/Oがあれば(ステップS12のYes)、時間監視カウンタをチェックし、カウンタ値が1以上であれば(ステップS13のNo)、カウンタ値を減算し(ステップS15)、未処理監視中のI/Oがあれば、ステップS13に戻り、一方、未処理監視中のI/Oがなければ、監視処理を終える。
【0040】
ステップS13において、時間監視カウンタのカウンタ値が0であれば、タイムアウト発生を検出し、I/Oを実行している周辺装置200が障害であると判断して、周辺装置障害処理を起動する(ステップS14)。
【0041】
このようにして、一定時間内にI/Oが終了するかを監視する。
【0042】
なお、ホストコンピュータ100において、I/O時間監視表105内の時間監視カウンタは、周辺装置200からのI/O完了通知受信時、または、周辺装置障害処理(図2(b)のステップS14)の起動時に、非時間監視状態にリセットされる。
【0043】
図1において、ホストコンピュータ100は、周辺装置組込手段101を用いて、接続されている周辺装置200を組み込む。この時、I/O制御手段102を用いて、装置状態管理表104に設定されているソフトウェア監視時間を参照して、コマンド実行時間表の更新要求を周辺装置200に対して発行する。
【0044】
図3は、周辺装置200におけるコマンド表更新処理の手順を示す流れ図である。周辺装置200のI/Oコマンド処理手段201は、ホストコンピュータ100から、コマンド実行時間表203の更新要求を受信すると、コマンド実行時間表203を参照し(ステップS21)、入力されたソフトウェア監視時間とコマンド実行時間を比較し(ステップS23)、ソフトウェア監視時間よりも長い実行時間を要するコマンドがある場合、延長監視時間を登録し(ステップS24)、監視時間延長イベント通知対象フラグをオンにする(ステップS25)。ステップS23〜S25の処理を未チェックコマンドがなくなるまで繰り返す。
【0045】
図4は、本発明の一実施例におけるコマンド実行時間表203の一例を模式的に示す図である。図4を参照すると、コマンド実行時間表203には、コマンド毎に、実行時間と、監視時間延長イベント通知対象フラグのオン・オフと、延長間とが設定されている。図4の場合、周辺装置に対するソフトウェア監視時間が30秒の場合、このソフトウェア監視時間よりも長い実行時間のコマンドに対して延長時間が設定されるとともに監視時間延長イベント通知対象フラグがオンに設定されている。
【0046】
図5は、本発明の一実施例において、組込処理完了後、周辺装置200に対する入出力要求が発生した場合の処理手順を示す流れ図である。ホストコンピュータ100のI/O制御手段102から周辺装置200に対してI/Oを発行する(ステップS31)。
【0047】
I/O発行に成功すると、ホストコンピュータ100は、装置状態管理表101に設定されているソフトウェア監視時間を基に、I/O時間監視表105にタイムアウト検出までの時間監視カウンタをセットする(ステップS32、S33)。
【0048】
続いて、周辺装置200のI/Oコマンド処理手段201は受信したI/Oのコマンドを解析する(ステップS41)。
【0049】
周辺装置200において、当該コマンドとコマンド実行時間表203を照らし合わせ、当該コマンドの監視時間延長イベント通知対象フラグがオンであれば(ステップS42のオン)、イベント通知手段203を用いて、コマンドに対応する延長監視時間を監視時間延長イベントとしてホストコンピュータ100に通知する(ステップS43)。
【0050】
また、周辺装置200において、コマンドに対応した処理を実行し終えると、延長した時間内にコマンド処理が終了したかをチェックし(ステップS44、S45)、延長監視時間と処理に要した時間の差分を短縮監視時間として、監視時間短縮イベントをホストコンピュータ100に通知する(ステップS46)。
【0051】
ステップS42において、監視時間延長イベント通知対象フラグがオフの場合には、コマンドに対応した処理のみを行う(ステップS48)。
【0052】
このようなコマンドの実行処理を、I/O中の全てのコマンドに対して行うと、イベント通知手段203を用いてI/O実行完了通知をホストコンピュータ100に通知する(ステップS49)。
【0053】
一方、ホストコンピュータ100において、I/O制御手段102は、監視時間延長イベントを受信すると、延長監視時間に対応した値を、時間監視カウンタに加算する(ステップS36)。逆に、監視時間短縮イベントを受信した場合には、時間監視カウンタの減算を行う(ステップS36)。
【0054】
この処理により、ホストコンピュータ100における時間監視カウンタのカウント値は、例えば図6に示すように、推移する。すなわち、I/O発行時、時間監視カウンタのカウント値がその初期値に設定され、一定時間毎に1つ減算され、周辺装置200から監視時間延長イベントを受け取った場合、延長時間に相当する値を時間監視カウンタに加算し、周辺装置200から監視時間短縮イベントを受け取った場合、短縮時間に相当する値を時間監視カウンタから減算する。
【0055】
この結果、実行に時間がかかるコマンドを処理している間だけ、カウンタ値が大きくなることで、ハードウェア的に正常動作している時にタイムアウトを検出しないように制御できる。
【0056】
このように、時間監視カウンタを実行中のコマンドに応じて動的に変更することで、実行中のI/Oに合った時間でI/O実行時間を監視できる。
【0057】
次に、本発明の第2の実施例について説明する。本発明の第2の実施例においては、ホストコンピュータ100で処理される業務内容に応じて、延長し得る監視時間の上限である最大監視時間を設定する。また、装置状態管理表104に総監視時間を格納する領域を設ける。
【0058】
図7は、最大監視時間を用いたI/O時間監視の処理手順を示す流れ図である。ホストコンピュータ100において、I/O発行時(ステップS51)、ソフトウェア監視時間を取得し(ステップS52)、その値を総監視時間として設定する(ステップS53、S54)。
【0059】
周辺装置200から、時間監視延長イベントを受信した時に(ステップS61)、延長監視時間と総監視時間との和と、最大監視時間とを比較し(ステップS62)、最大監視時間内であれば、延長監視時間と総監視時間の和を総監視時間として再設定し、監視時間の延長を行う(ステップS63、S64)。
【0060】
ステップS62において、最大監視時間を超える場合には、監視時間の延長は行わない。
【0061】
また、時間監視短縮イベントを受信した時には、総監視時間から短縮監視時間を差し引く(ステップS65、S66)。
【0062】
このように、I/O監視時間の延長に上限を設けることで、周辺装置200の特性だけでなく、業務内容に応じたI/O時間監視を行うことができる。
【0063】
【発明の効果】
以上説明したように、本発明によれば、ハードウェア的には正常に実行されているが、一般的なソフトウェアの監視時間内には終了しないコマンドに対して、動的に監視時間を変更することで、ハードウェア的正常動作しているI/Oに対して、監視時間切れによる障害発生と判断することなく、I/O実行時間の監視を行うことができる。
【0064】
また、本発明によれば、周辺装置の組み込みを契機に延長すべき監視時間が更新されるため、周辺装置のファームウェア交換等でコマンド毎の監視時間が変更された場合でも、適正なI/O時間監視を行うことができる。
【図面の簡単な説明】
【図1】本発明の一実施例の構成を示す図である。
【図2】本発明の一実施例におけるI/O時間監視処理の手順を示す流れ図である。
【図3】本発明の一実施例におけるコマンド実行時間表更新処理の手順を示す流れ図である。
【図4】本発明の一実施例におけるコマンド実行時間表を示す図である。
【図5】本発明の一実施例におけるI/O実行とイベント通知処理を説明するための流れ図である。
【図6】本発明の一実施例における時間監視カウンタ値の時間推移の様子を示す図である。
【図7】本発明の第2の実施例として最大監視時間を使用したI/O時間監視を説明するための図である。
【符号の説明】
100 ホストコンピュータ
101 周辺装置組み込み手段
102 I/O制御手段
103 I/O時間監視手段
104 装置状態管理表
105 I/O時間監視表
200 周辺装置
201 I/Oコマンド処理手段
202 イベント通知手段
203 コマンド実行時間表
[0001]
[Technical field to which the invention pertains]
The present invention relates to an information processing device, and more particularly to an input/output control technique.
[0002]
2. Description of the Related Art
In a host computer, in order to monitor abnormalities in the input/output operations of peripheral devices, when an input/output request is issued, a counter (timer) value for time monitoring is set on the host computer side, and the count value is decremented (subtracted by one) every time a specified time elapses by an interrupt such as a real-time clock.If the count value becomes 0 without the peripheral device notifying it that the input/output is complete, that is, when a timeout occurs, it is determined that there is an abnormality in the input/output operation of the peripheral device.
[0003]
A host computer typically monitors input/output (also called "I/O") execution time using a preset timer value for each type of peripheral device connected to the host computer.
[0004]
However, when an I/O command includes a command for performing a special operation, the execution time of the command may not be completed within the time period determined by the timer value set in the host computer. As a result, even though the peripheral device is operating normally from a hardware perspective, the host computer may detect a timeout in the I/O operation and determine that a fault has occurred in the peripheral device, which is inconvenient.
[0005]
[Problem to be solved by the invention]
To address this problem, for example, Japanese Patent Laid-Open Publication No. 3-58154 proposes a timeout monitoring method for an input/output device, which includes a device control circuit that calculates a timeout monitoring time according to the type of command analyzed by a command analysis means, and a means for sending the timeout monitoring time calculated by the device control circuit to a host device, and when a command is received from the host device, the device control circuit reports the timeout time corresponding to the command to the host device.Similarly, for example, Japanese Patent Laid-Open Publication No. 4-160656 proposes an input/output operation monitoring method that analyzes a received input/output command, calculates a timeout time corresponding to the type of command, and sends the calculated timeout time to the host device.
[0006]
However, as described in the above-mentioned Japanese Patent Laid-Open Publication No. 3-58154 or No. 4-160656, when an I/O request is issued from a higher-level device, if a method of checking all commands included in the I/O request and setting the monitoring time is adopted, the number of processing steps required for I/O issuance increases, and the I/O processing time also increases. In addition, when the monitoring time for each command is changed due to a change in firmware of a peripheral device, etc., this cannot be accommodated.
[0007]
Therefore, the present invention has been made in consideration of the above-mentioned problems, and its object is to provide an input/output control system, method, and recording medium that can monitor I/O execution time for I/O that is operating normally in terms of hardware, without determining that a failure has occurred due to the monitoring time expiring.
[0008]
Another object of the present invention is to provide an input/output control system, method, and recording medium that can perform appropriate I/O time monitoring even when the monitoring time for each command is changed due to firmware replacement of the peripheral device, since the monitoring time to be extended is updated when a peripheral device is incorporated.
[0009]
[Means for solving the problem]
The method according to the present invention for achieving the above object is an I/O execution time monitoring method for monitoring I/O time by setting a time monitoring counter to a time-monitoring value for I/O completion when a host computer makes an I/O request to a peripheral device, comprising the steps of:
(a) when the peripheral device is incorporated into the host computer, in the peripheral device, before an input/output process is actually performed, setting and registering in advance an extension time for each command having an execution time longer than an input/output monitoring time given by the host computer and information to notify the host computer of an extension of the monitoring time;
(b) when an input/output request is issued by the host computer, if a command received from the host computer notifies the host computer of an extension of a monitoring time, the peripheral device notifies the host computer of a registered extension time;
(c) incrementing the counter value of the time monitoring counter by a value corresponding to the notified extended time period in the host computer that has received the notification of the extension of the monitoring time period from the peripheral device;
It includes.
[0010]
The method of the present invention further comprises the step of: (d) checking whether the processing of the command has been completed within the extended time when the peripheral device has completed execution of the processing corresponding to the command, and if the processing of the command has been completed within the extended time, notifying the host computer of the difference between the extended monitoring time and the time required for the actual processing of the command as a shortened monitoring time;
(e) when a notification of the shortened monitoring time is received from the peripheral device, the host computer subtracts a value corresponding to the shortened time from a count value for time monitoring.
[0011]
The present invention includes a host computer and a peripheral device connected to the host computer, the host computer providing the peripheral device with a monitoring time previously prepared in the host computer when the peripheral device is incorporated, and means for issuing to the peripheral device a request to update a command execution time table provided in the peripheral device, the peripheral device having means for registering an extension time in the command execution time table for a command that requires an execution time longer than the provided monitoring time in the command execution time table when the peripheral device receives the request to update the command execution time table from the host computer when incorporated into the host computer, and setting on a monitoring time extension event notification target flag for the command, Furthermore, when an input/output command is received from the host computer after completion of incorporation, if a monitoring time extension event notification target flag for the command is set on, the host computer is provided with a means for notifying the host computer of the extension of the monitoring time corresponding to the command as a monitoring time extension event, and when an input/output request for the peripheral device occurs after completion of incorporation of the peripheral device, the host computer is provided with a means for issuing an input/output command to the peripheral device, setting a count value to be set in a time monitoring counter for timeout monitoring to the value of the monitoring time that has been prepared in advance, and when the monitoring time extension event is received from the peripheral device, adding a value corresponding to the extension time to the time monitoring counter.
[0012]
In the present invention, when the peripheral device finishes executing the processing corresponding to the command, the peripheral device is provided with a means for checking whether the command processing has been completed within the extended monitoring time, and if the command processing has been completed within the extended monitoring time, notifying the host computer of the shortened time consisting of the difference between the extended monitoring time and the time actually required for the processing as a monitoring time shortening event, and when the host computer receives the monitoring time shortening event from the peripheral device, it subtracts a value equivalent to the shortened time from the count value of a time monitoring counter.
[0013]
[0023]
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention provides a host computer system with a function for performing proper time monitoring for each I/O being executed in a peripheral device.
[0014]
An embodiment of the present invention will be described with reference to Fig. 1. Referring to Fig. 1, in a preferred embodiment of the present invention, a host computer (100) incorporates a peripheral device (200) using a peripheral device incorporating means (101). When incorporating the peripheral device (200), an I/O control means (102) of the host computer (100) inputs the software monitoring time set in a device status management table (104) and issues an update request for the command execution time table (203) of the peripheral device (200) to the peripheral device (200).
[0015]
When an I/O command processing means (201) of a peripheral device (200) receives a request to update the command execution time table (203) from the host computer (100), it registers an extended monitoring time for commands in the command execution time table (203) that require an execution time longer than the input software monitoring time, and sets a monitoring time extended event notification target flag to on.
[0016]
In the host computer (100), after the incorporation process of the peripheral device (200) is completed, when an input/output request for the peripheral device (200) occurs, an input/output request (I/O request) is issued from the I/O control means (102) to the peripheral device (200).
[0017]
When the host computer (100) succeeds in issuing an I/O request, it sets the time monitoring counter value until timeout detection of the peripheral device in the I/O time monitoring table (105) based on the software monitoring time set in the device status management table (104).
[0018]
The I/O command processing means (201) of the peripheral device (200) analyzes an I/O command received from the host computer (100), and if the monitoring time extension event notification target flag of the command is on, notifies the host computer (100) of the extended monitoring time corresponding to the command as a monitoring time extension event via the event notification means (203) of the peripheral device (200).
[0019]
In addition, when the I/O command processing means (201) of the peripheral device (200) finishes executing processing corresponding to a command received from the host computer (100), it checks whether the command processing has been completed within the extended time, and notifies the host computer (100) of a monitoring time shortening event, using the difference between the extended monitoring time and the time required for the processing as the shortened monitoring time.
[0020]
When an I/O control means (102) of a host computer (100) receives a monitoring time extension event, it adds a value corresponding to the extended monitoring time to the count value of a time monitoring counter, thereby extending the time until a timeout occurs for processing the command.
[0021]
Furthermore, when the I/O control means (102) of the host computer (100) receives a monitoring time reduction event, it decrements the count value of the time monitoring counter, thereby reducing the time until a timeout occurs for the processing of the command.
[0022]
In this way, the peripheral device (200) can extend the I/O execution time monitoring time only while a command with a long execution time is being processed, or reduce the monitoring time that was once extended, thereby enabling appropriate time monitoring for each I/O.
[0023]
In the present invention, (a) a process for providing a prepared monitoring time to the host computer when a peripheral device is incorporated in the host computer, and issuing a request to the peripheral device to update a command execution time table provided in the peripheral device;
(b) after completion of the embedding process of the peripheral device, when an input/output request is issued to the peripheral device, setting a time monitoring counter to a preset value, and when an event for extending a monitoring time is received from the peripheral device, adding a value corresponding to the extension time to the time monitoring counter;
(c) when a monitoring time shortening event is received from the peripheral device, a process of subtracting a value corresponding to the shortened time from the time monitoring counter;
The processes (a) to (c) are realized by executing a program on the host computer. In this case, the present invention can be implemented by reading the program from a recording medium on which the program is recorded, via a reading device, into the main memory device of the host computer, and executing the program.
[0024]
In the present invention, (d) when the device is incorporated into a host computer, and when a request to update a command execution time table that manages command execution times is received from the host computer, an extension time is registered in the command execution time table for a command that requires an execution time longer than the input monitoring time, and a monitoring time extension event notification target flag is set to ON for the command;
(e) when receiving an I/O command from the host computer, if a monitoring time extension event notification target flag for the command is set to on, notifying the host computer of an extension of the monitoring time corresponding to the command as a monitoring time extension event;
(f) after completing the execution of the process corresponding to the command, checking whether the command process has been completed within the extended monitoring time, and if the command process has been completed within the extended monitoring time, notifying the host computer of the difference between the extended monitoring time and the time actually required for the process as a monitoring time reduction event, the process of (d) to (f) is realized by executing a program in a CPU constituting the peripheral device. In this case, the present invention can be implemented by reading the program from a recording medium on which the program is recorded via a reading device and executing it on the peripheral device. The recording medium on which the program is recorded includes non-volatile semiconductor memories such as CD (compact disk)-ROM, FD, DVD (digital versatile disk), MT (magnetic tape), EEPROM (electrically erasable and programmable read-only memory), and mask ROM.
[0025]
EXAMPLES
In order to explain the above-mentioned embodiment of the present invention in more detail, examples of the present invention will be described below with reference to the drawings.
[0026]
1 is a diagram showing the configuration of an embodiment of the present invention. Referring to FIG. 1, the embodiment of the present invention is configured to include a host computer 100 and a peripheral device 200 connected to the host computer 100.
[0027]
The host computer 100 comprises a peripheral device installation means 101, an I/O control means 102, an I/O time monitoring means 103, a device status management table 104 and an I/O time monitoring table 105 which are referred to and updated by these means.
[0028]
These means generally operate as follows.
[0029]
The peripheral device embedding means 101 performs embedding processing for the peripheral device 200 connected to the host computer 100 , and at this time requests the peripheral device 200 to update the command execution time table 203 using the I/O control means 102 .
[0030]
The I/O control means 102 issues I/O to the peripheral device 200 connected to the host computer 100, and sets a time monitoring counter in the I/O time monitoring table 105. When an event is received from the peripheral device 200, the I/O control means 102 increments or decrements a time monitoring counter (not shown) in the I/O time monitoring table 105 according to the content of the event.
[0031]
The I/O time monitor means 103 is started at regular intervals and monitors the time of an I/O being executed by decrementing a time monitoring counter in the I/O time monitor table 105 .
[0032]
The peripheral device 200 comprises an I/O command processing unit 201 and an event notification unit 202 .
[0033]
The I/O command processing means 201 updates the command execution time table 203 in response to a request from the I/O control means 102 of the host computer 100. It also analyzes commands in the I/O, performs processing corresponding to the commands, and notifies of monitoring time extension or shortening events.
[0034]
The event notification means 202 of the peripheral device 200 notifies the host computer 100 of a monitoring time extension or shortening event in response to an instruction from the I/O command processing means 201 .
[0035]
The host computer 100 that receives the monitoring time extension or shortening event adds or subtracts a value corresponding to the extension or shortening time to or from the value of the time monitoring counter in the I/O time monitoring table 105. The time monitoring counter is configured so that an externally set value can be added to or subtracted from the current counter value of the time monitoring counter.
[0036]
The peripheral device embedding means 101, I/O control means 102, and I/O time monitoring means 103 realize their processing and functions by programs executed on the host computer 100. The present invention also includes recording media on which these programs are stored. The I/O command processing means 201 and event notification means 202 of the peripheral device 200 realize their processing and functions by programs executed on a CPU (not shown) of the peripheral device 200. The present invention also includes recording media on which these programs are stored.
[0037]
The overall operation of one embodiment of the present invention will now be described in detail with reference to FIGS.
[0038]
Fig. 2(a) is a flow diagram showing the procedure of an I/O issuing process in one embodiment of the present invention. First, a general I/O execution time monitoring method will be described. When an I/O issuing process is performed on the host computer 100 in Fig. 1, the I/O control means 102 acquires the software monitoring time set in the device status management table 104 after the I/O is issued (steps S1 and S2) as shown in the flow diagram in Fig. 2 (step S3), and sets a time monitoring counter corresponding to the software monitoring time in the I/O time monitoring table 105 (step S4).
[0039]
2B is a flow chart showing the procedure of I/O time monitoring processing in one embodiment of the present invention. When the I/O monitoring means 103 of the host computer 100 is started at a fixed interval, it searches the I/O time monitoring table 105 (step S11). If there is I/O being monitored (Yes in step S12), it checks the time monitoring counter, and if the counter value is 1 or more (No in step S13), it subtracts the counter value (step S15). If there is I/O being monitored that is not being processed, it returns to step S13, but if there is no I/O being monitored that is not being processed, it ends the monitoring processing.
[0040]
If the counter value of the time monitoring counter is 0 in step S13, a timeout is detected, it is determined that the peripheral device 200 performing the I/O has failed, and peripheral device failure processing is started (step S14).
[0041]
In this way, it is monitored whether the I/O is completed within a certain period of time.
[0042]
In addition, in the host computer 100, the time monitoring counter in the I/O time monitoring table 105 is reset to a non-time monitoring state when an I/O completion notification is received from the peripheral device 200 or when peripheral device fault processing (step S14 in Figure 2 (b)) is started.
[0043]
1, a host computer 100 incorporates a connected peripheral device 200 using a peripheral device incorporating means 101. At this time, using an I/O control means 102, the host computer 100 refers to the software monitoring time set in a device status management table 104 and issues an update request for the command execution time table to the peripheral device 200.
[0044]
3 is a flow chart showing the procedure of the command table update process in the peripheral device 200. When the I/O command processing means 201 of the peripheral device 200 receives a request to update the command execution time table 203 from the host computer 100, it refers to the command execution time table 203 (step S21), compares the input software monitoring time with the command execution time (step S23), and if there is a command that requires an execution time longer than the software monitoring time, it registers the extended monitoring time (step S24) and turns on the monitoring time extended event notification target flag (step S25). The processes of steps S23 to S25 are repeated until there are no more unchecked commands.
[0045]
Fig. 4 is a diagram showing an example of the command execution time table 203 in one embodiment of the present invention. Referring to Fig. 4, the command execution time table 203 has, for each command, an execution time, an on/off state of a monitoring time extension event notification target flag, and an extension time set. In the case of Fig. 4, when the software monitoring time for a peripheral device is 30 seconds, an extension time is set for a command whose execution time is longer than this software monitoring time, and the monitoring time extension event notification target flag is set to on.
[0046]
5 is a flow chart showing the procedure for processing when an I/O request occurs to the peripheral device 200 after the installation process is completed in one embodiment of the present invention. An I/O is issued from the I/O control means 102 of the host computer 100 to the peripheral device 200 (step S31).
[0047]
If the I/O issuance is successful, the host computer 100 sets a time monitoring counter until timeout detection in the I/O time monitoring table 105 based on the software monitoring time set in the device status management table 101 (steps S32, S33).
[0048]
Next, the I/O command processing unit 201 of the peripheral device 200 analyzes the received I/O command (step S41).
[0049]
In the peripheral device 200, the command is compared with the command execution time table 203, and if the monitoring time extension event notification target flag for the command is on (on in step S42), the event notification means 203 is used to notify the host computer 100 of the extended monitoring time corresponding to the command as a monitoring time extension event (step S43).
[0050]
Furthermore, when the peripheral device 200 finishes executing the processing corresponding to the command, it checks whether the command processing has been completed within the extended time (steps S44, S45), and notifies the host computer 100 of a monitoring time shortening event using the difference between the extended monitoring time and the time required for the processing as the shortened monitoring time (step S46).
[0051]
In step S42, if the monitoring time extension event notification target flag is OFF, only the process corresponding to the command is carried out (step S48).
[0052]
When such command execution processing has been performed for all commands in the I/O, the event notification means 203 is used to notify the host computer 100 of the completion of I/O execution (step S49).
[0053]
On the other hand, in the host computer 100, when the I/O control means 102 receives a monitoring time extension event, it adds a value corresponding to the extended monitoring time to the time monitoring counter (step S36).On the other hand, when the I/O control means 102 receives a monitoring time shortening event, it subtracts from the time monitoring counter (step S36).
[0054]
Through this process, the count value of the time monitoring counter in the host computer 100 transitions, for example, as shown in Fig. 6. That is, when an I/O is issued, the count value of the time monitoring counter is set to its initial value and is decremented by one at regular intervals, and when a monitoring time extension event is received from the peripheral device 200, a value equivalent to the extended time is added to the time monitoring counter, and when a monitoring time shortening event is received from the peripheral device 200, a value equivalent to the shortened time is subtracted from the time monitoring counter.
[0055]
As a result, the counter value increases only while a command that takes a long time to execute is being processed, making it possible to control so that a timeout is not detected when the hardware is operating normally.
[0056]
In this way, by dynamically changing the time monitoring counter in response to the command being executed, it is possible to monitor the I/O execution time based on a time that matches the I/O being executed.
[0057]
Next, a second embodiment of the present invention will be described. In the second embodiment of the present invention, a maximum monitoring time, which is an upper limit of the monitoring time that can be extended, is set according to the content of the work processed by the host computer 100. Also, an area for storing the total monitoring time is provided in the device status management table 104.
[0058]
7 is a flow chart showing the procedure for I/O time monitoring using the maximum monitoring time. When an I/O is issued (step S51), the host computer 100 obtains the software monitoring time (step S52) and sets the obtained value as the total monitoring time (steps S53 and S54).
[0059]
When a time monitoring extension event is received from the peripheral device 200 (step S61), the sum of the extended monitoring time and the total monitoring time is compared with the maximum monitoring time (step S62), and if it is within the maximum monitoring time, the sum of the extended monitoring time and the total monitoring time is reset as the total monitoring time, and the monitoring time is extended (steps S63, S64).
[0060]
In step S62, if the maximum monitoring time is exceeded, the monitoring time is not extended.
[0061]
Moreover, when a time monitoring shortening event is received, the shortened monitoring time is subtracted from the total monitoring time (steps S65 and S66).
[0062]
In this way, by setting an upper limit on the extension of the I/O monitoring time, it is possible to perform I/O time monitoring according to not only the characteristics of the peripheral device 200 but also the business content.
[0063]
Effect of the Invention
As described above, according to the present invention, by dynamically changing the monitoring time for commands that are executed normally in terms of hardware but do not finish within the monitoring time of general software, it is possible to monitor the I/O execution time for I/O that is operating normally in terms of hardware, without determining that a failure has occurred due to the expiration of the monitoring time.
[0064]
Furthermore, according to the present invention, the monitoring time to be extended is updated when a peripheral device is incorporated, so that appropriate I/O time monitoring can be performed even if the monitoring time for each command is changed due to firmware replacement of the peripheral device, etc.
[Brief description of the drawings]
FIG. 1 is a diagram showing a configuration of an embodiment of the present invention.
FIG. 2 is a flowchart showing the procedure of an I/O time monitoring process in one embodiment of the present invention.
FIG. 3 is a flowchart showing a procedure for updating a command execution time table in an embodiment of the present invention.
FIG. 4 is a diagram showing a command execution time table in one embodiment of the present invention.
FIG. 5 is a flow diagram illustrating I/O execution and event notification processing in one embodiment of the present invention.
FIG. 6 is a diagram showing the transition of a time monitoring counter value over time in an embodiment of the present invention.
FIG. 7 is a diagram for explaining I/O time monitoring using a maximum monitoring time according to a second embodiment of the present invention.
[Explanation of symbols]
100 Host computer 101 Peripheral device embedding means 102 I/O control means 103 I/O time monitoring means 104 Device status management table 105 I/O time monitoring table 200 Peripheral device 201 I/O command processing means 202 Event notification means 203 Command execution time table

Claims (8)

ホストコンピュータが周辺装置に対する入出力要求時に入出力完了までのタイムアウト値を時間監視カウンタに設定することで入出力時間の監視を行う入出力実行時間監視方法において、
(a)前記ホストコンピュータによる前記周辺装置の組み込み時に、前記周辺装置において、前記ホストコンピュータから与えられた入出力監視時間よりも実行時間が長いコマンドについてそれぞれの延長時間と前記ホストコンピュータに対して監視時間の延長を通知する旨の情報とを、前記周辺装置内に設けられたコマンド実行時間表に、設定登録しておくステップと、
(b)前記周辺装置の組み込み完了後、前記ホストコンピュータでの入出力要求発行時、前記周辺装置は、前記ホストコンピュータからコマンドを受け取り、前記コマンド実行時間表を参照して、前記ホストコンピュータから受け取ったコマンドが、前記ホストコンピュータに監視時間の延長を通知するものである場合には、前記コマンド実行時間表に設定登録されている延長時間を、前記ホストコンピュータに通知するステップと、
(c)前記周辺装置から監視時間の延長の通知を受け取った前記ホストコンピュータでは、前記時間監視カウンタのカウンタ値を、前記通知された延長時間に相当する値だけ加算するステップと、
を含む、ことを特徴とする入出力実行時間監視方法。
1. An input/output execution time monitoring method for monitoring input/output time by setting a time monitoring counter to a time-monitoring value for input/output completion when a host computer makes an input/output request to a peripheral device, comprising:
(a) when the peripheral device is incorporated into the host computer, setting and registering in the peripheral device, for each command having an execution time longer than an input/output monitoring time given by the host computer, an extension time for each command and information for notifying the host computer of an extension of the monitoring time, in a command execution time table provided in the peripheral device;
(b) after completion of the incorporation of the peripheral device, when an input/output request is issued by the host computer, the peripheral device receives a command from the host computer, refers to the command execution time table, and if the command received from the host computer notifies the host computer of an extension of a monitoring time, notifies the host computer of the extension time set and registered in the command execution time table;
(c) incrementing the counter value of the time monitoring counter by a value corresponding to the notified extended time in the host computer that has received a notification of an extension of the monitoring time from the peripheral device;
13. A method for monitoring input/output execution time, comprising:
(d)前記周辺装置が、前記コマンドに対応した処理の実行を終えた時点で、前記延長した監視時間内に前記コマンドの処理が終了したか否かをチェックし、前記延長された監視時間内に終了した場合には、前記延長された監視時間と、前記コマンドの実際の処理に要した時間との差分を、監視時間の短縮時間として、前記ホストコンピュータに通知するステップと、
(e)前記周辺装置から前記監視時間の短縮通知を受け取った前記ホストコンピュータでは、前記時間監視カウンタのカウント値を、前記通知された短縮時間に相当する値だけ減算するステップと、
を含むことを特徴とする、請求項1記載の入出力実行時間監視方法。
(d) checking whether the processing of the command has been completed within the extended monitoring time when the peripheral device has completed execution of the processing corresponding to the command, and if the processing has been completed within the extended monitoring time, notifying the host computer of the difference between the extended monitoring time and the time required for the actual processing of the command as a shortened monitoring time;
(e) in the host computer receiving the notification of the shortened monitoring time from the peripheral device, subtracting from the count value of the time monitoring counter a value corresponding to the shortened time notified;
2. The method of claim 1, further comprising:
前記ホストコンピュータにおいて、延長し得る監視時間の上限である最大監視時間を予め設定しておき、前記周辺装置から、前記監視時間の延長の通知を受信した時に、通知された延長時間と総監視時間との和を、前記最大監視時間と比較し、前記最大監視時間以内であれば、前記延長時間と前記総監視時間との和を、新たな総監視時間として再設定して、監視時間の延長を行い、一方、前記延長時間と前記総監視時間との和が、前記最大監視時間を超える場合には、監視時間の延長は行わないように制御する、ことを特徴とする、請求項1記載の入出力実行時間監視方法。2. The input/output execution time monitoring method according to claim 1, further comprising the steps of: setting in advance a maximum monitoring time which is an upper limit of an extendable monitoring time in said host computer; when a notification of an extension of said monitoring time is received from said peripheral device, comparing the sum of the notified extension time and a total monitoring time with said maximum monitoring time; and if the sum is within said maximum monitoring time, resetting the sum of said extension time and said total monitoring time as a new total monitoring time to extend the monitoring time; and, if the sum of said extension time and said total monitoring time exceeds said maximum monitoring time, controlling so that the monitoring time is not extended. ホストコンピュータと、前記ホストコンピュータに接続される周辺装置と、を備え、
前記ホストコンピュータが、前記周辺装置の組み込み時に、前記ホストコンピュータにおいて予め用意されている監視時間を前記周辺装置に与え、前記周辺装置内に具備されるコマンド実行時間表の更新要求を、前記周辺装置に対して、発行する手段を備え、
前記周辺装置は、前記ホストコンピュータへの組み込み時、前記ホストコンピュータから、前記コマンド実行時間表の更新要求を受信すると、与えられた前記監視時間よりも長い実行時間を要するコマンドについて、前記コマンド実行時間表に、延長時間を登録するとともに、前記コマンドに対して監視時間延長イベント通知対象フラグをオンに設定する手段を備え、さらに、前記ホストコンピュータへの組み込み完了後、前記ホストコンピュータから入出力コマンドを受信した際に、前記コマンド実行時間表において、前記コマンドに対する監視時間延長イベント通知対象フラグがオンに設定されている場合、該コマンドに対応する監視時間の延長を監視時間延長イベントとして前記ホストコンピュータに通知する手段を備え、
前記ホストコンピュータは、前記周辺装置の組み込み完了後、前記周辺装置に対する入出力要求が発生した場合、前記周辺装置に対して入出力コマンドを発行し、タイムアウト監視用の時間監視カウンタに設定するカウント値を予め用意されている前記監視時間の値に設定し、前記周辺装置から、前記監視時間延長イベントを受信した場合に、前記延長時間に対応した値を前記時間監視用のカウンタに加算する手段を備えた、ことを特徴とする情報処理装置。
A host computer and a peripheral device connected to the host computer,
said host computer comprises means for, when said peripheral device is incorporated, giving said peripheral device a monitoring time previously prepared in said host computer, and issuing to said peripheral device a request for updating a command execution time table provided in said peripheral device;
the peripheral device comprises means for, when incorporating into the host computer, receiving from the host computer a request to update the command execution time table, registering an extension time in the command execution time table for a command requiring an execution time longer than the given monitoring time, and setting a monitoring time extension event notification target flag for the command to on; and further comprises means for, when receiving an input/output command from the host computer after the peripheral device has been incorporated into the host computer, notifying the host computer of an extension of the monitoring time corresponding to the command as a monitoring time extension event if the monitoring time extension event notification target flag for the command is set to on in the command execution time table;
The information processing device is characterized in that the host computer is provided with a means for issuing an input/output command to the peripheral device when an input/output request for the peripheral device occurs after the peripheral device has been fully incorporated, setting a count value to be set in a time monitoring counter for timeout monitoring to a value of the monitoring time that has been prepared in advance, and adding a value corresponding to the extension time to the time monitoring counter when the host computer receives a monitoring time extension event from the peripheral device.
前記周辺装置が、前記コマンドに対応した処理の実行を終えると、延長した監視時間内に、前記コマンド処理が終了したか否かをチェックし、前記延長した監視時間内に、前記コマンド処理が終了した場合、前記延長した監視時間と、実際の処理に要した時間との差分よりなる短縮時間を、監視時間短縮イベントとして前記ホストコンピュータに通知する手段を備え、
前記ホストコンピュータは、前記周辺装置から前記監視時間短縮イベントを受信した場合に、前記時間監視カウンタのカウント値から前記短縮時間に相当する値だけ減算する手段を備えた、ことを特徴とする請求項4記載の情報処理装置。
means for checking whether the command processing has been completed within an extended monitoring time when the peripheral device has completed execution of processing corresponding to the command, and for notifying the host computer of a shortened time, which is the difference between the extended monitoring time and the time actually required for the processing, as a monitoring time shortening event, when the command processing has been completed within the extended monitoring time;
5. The information processing apparatus according to claim 4, further comprising means for subtracting a value equivalent to the shortened time from the count value of the time monitoring counter when the host computer receives the monitoring time shortening event from the peripheral device.
前記ホストコンピュータにおいて、延長し得る監視時間の上限である最大監視時間を設定しておき、前記周辺装置から、前記監視時間延長イベントを受信した時に、通知された延長時間と総監視時間との和を、前記最大監視時間と比較し、前記最大監視時間以内であれば、前記延長時間と総監視時間との和を総監視時間として再設定して、監視時間の延長を行い、一方、前記延長時間と前記総監視時間との和が前記最大監視時間を超える場合には、監視時間の延長は行わないように制御する手段を備えた、ことを特徴とする、請求項4又は5記載の情報処理装置。6. The information processing apparatus according to claim 4, further comprising: a means for controlling said host computer to set a maximum monitoring time which is an upper limit of an extendable monitoring time, and when said host computer receives said monitoring time extension event from said peripheral device, to compare the sum of the notified extension time and a total monitoring time with said maximum monitoring time, and if the sum is within said maximum monitoring time, to reset the sum of said extension time and the total monitoring time as the total monitoring time and extend the monitoring time, and on the other hand, to not extend the monitoring time if the sum of said extension time and said total monitoring time exceeds said maximum monitoring time. (d)周辺装置が、ホストコンピュータへの組み込み時、前記ホストコンピュータからコマンド実行時間を管理するコマンド実行時間表の更新要求を受信した際に、入力された前記監視時間よりも長い実行時間を要するコマンドについて、前記コマンド実行時間表に、延長時間を登録するとともに、前記コマンドに対して監視時間延長イベント通知対象フラグをオンに設定する処理と、
(e)前記ホストコンピュータから入出力コマンドを受信した際に、前記コマンド実行時間表に前記コマンドに対する監視時間延長イベント通知対象フラグがオンに設定されている場合、該コマンドに対応する監視時間の延長を監視時間延長イベントとして前記ホストコンピュータに通知する処理と、
(f)前記コマンドに対応した処理の実行を終えると、延長した監視時間内に、前記コマンド処理が終了したか否かをチェックし、前記延長した監視時間内に、前記コマンド処理が終了した場合、前記延長した監視時間と、実際の処理に要した時間との差分よりなる短縮時間を、監視時間短縮イベントとして前記ホストコンピュータに通知する処理、
との前記(d)乃至(f)の各処理を前記周辺装置を構成するCPUで実行させるためのプログラムを記録した記録媒体。
(d) when the peripheral device is incorporated into a host computer and receives from the host computer a request to update a command execution time table that manages command execution times, the peripheral device registers an extension time in the command execution time table for a command that requires an execution time longer than the input monitoring time, and sets a monitoring time extension event notification target flag for the command to on;
(e) when receiving an I/O command from the host computer, if a monitoring time extension event notification target flag for the command is set to on in the command execution time table, notifying the host computer of an extension of the monitoring time corresponding to the command as a monitoring time extension event;
(f) upon completion of execution of the process corresponding to the command, checking whether the command process has been completed within the extended monitoring time, and if the command process has been completed within the extended monitoring time, notifying the host computer of a shortened time, which is the difference between the extended monitoring time and the time actually required for the process, as a monitoring time shortened event;
and a recording medium on which a program for causing a CPU constituting the peripheral device to execute each of the processes (d) to (f).
ホストコンピュータが、周辺装置組込手段を用いて周辺装置の組み込を行うにあたり、前記ホストコンピュータが内蔵する装置状態管理表に予め設定されているソフトウェア監視時間を入力し、前記周辺装置に具備されているコマンド実行時間表の更新要求を、前記周辺装置に発行するI/O制御手段を備え、
前記周辺装置が、前記ホストコンピュータから、前記コマンド実行時間表の更新要求を受信すると、前記コマンド実行時間表のうち、入力されたソフトウェア監視時間よりも長い実行時間を要するコマンドについて、延長時間を登録するとともに、前記コマンド実行時間表における前記コマンドに対応する監視時間延長イベント通知対象フラグをオンに設定するI/Oコマンド処理手段を備え、
前記ホストコンピュータにおいて、前記周辺装置の組み込み完了後、前記周辺装置に対する入出力要求が発生した場合、前記I/O制御手段から前記周辺装置に対して入出力要求を発行し、
前記ホストコンピュータは、入出力要求の発行に成功すると、前記装置状態管理表に設定されているソフトウェア監視時間を基に、前記周辺装置のタイムアウト検出までの値を時間監視カウンタに設定し、
前記周辺装置の前記I/Oコマンド処理手段は、前記ホストコンピュータから受信した入出力要求のコマンドを解析し、前記コマンド実行時間表を参照して該コマンドの監視時間延長イベント通知対象フラグがオンの場合には、前記周辺装置のイベント通知手段を介して、該コマンドに対応する延長監視時間を監視時間延長イベントとして、前記ホストコンピュータに通知し、
前記周辺装置の前記I/Oコマンド処理手段は、前記周辺装置において、前記ホストコンピュータから受け取ったコマンドに対応した処理の実行を終えると、延長した時間内にコマンド処理が終了したか否かをチェックし、延長監視時間と、処理に要した時間との差分よりなる短縮時間を、監視時間短縮イベントとして、前記ホストコンピュータに通知し、
前記ホストコンピュータの前記I/O制御手段では、前記監視時間延長イベントを受信した場合、延長時間に対応した値を前記時間監視カウンタのカウント値に加算して、該コマンドの処理に対するタイムアウト発生までの時間を延長し、
前記ホストコンピュータの前記I/O制御手段は、前記監視時間短縮イベントを受信した場合には、前記時間監視カウンタのカウント値から前記短縮時間に対応した値を減算し、該コマンドの処理に対するタイムアウト発生までの時間を短縮する、ことを特徴とする入出力実行時間監視システム。
an I/O control means for inputting a software monitoring time preset in a device status management table contained in the host computer when the host computer uses a peripheral device installation means to install a peripheral device, and for issuing an update request to the peripheral device for a command execution time table provided in the peripheral device;
an I/O command processing means for, when the peripheral device receives a request to update the command execution time table from the host computer, registering an extension time for a command that requires an execution time longer than an input software monitoring time in the command execution time table, and setting on a monitoring time extension event notification target flag corresponding to the command in the command execution time table;
when an input/output request for the peripheral device occurs in the host computer after the peripheral device has been incorporated, the input/output request is issued from the I/O control means to the peripheral device;
When the host computer succeeds in issuing an I/O request, it sets a value until a timeout is detected in the peripheral device in a time monitoring counter based on the software monitoring time set in the device status management table,
the I/O command processing means of the peripheral device analyzes an input/output request command received from the host computer, and when a monitoring time extension event notification target flag of the command is on by referring to the command execution time table, notifies the host computer of the extended monitoring time corresponding to the command as a monitoring time extension event via the event notification means of the peripheral device;
when the I/O command processing means of the peripheral device finishes execution of processing corresponding to the command received from the host computer, the I/O command processing means of the peripheral device checks whether the command processing has been completed within the extended time, and notifies the host computer of a shortened time, which is the difference between the extended monitoring time and the time required for the processing, as a monitoring time shortening event;
When the I/O control means of the host computer receives the monitoring time extension event, the I/O control means adds a value corresponding to the extension time to the count value of the time monitoring counter, thereby extending the time until a timeout occurs for the processing of the command,
An input/output execution time monitoring system characterized in that, when the I/O control means of the host computer receives the monitoring time shortening event, it subtracts a value corresponding to the shortened time from the count value of the time monitoring counter, thereby shortening the time until a timeout occurs for processing the command.
JP33057099A 1999-11-19 1999-11-19 I/O RUNTIME MONITORING SYSTEM AND METHOD Expired - Fee Related JP3603703B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33057099A JP3603703B2 (en) 1999-11-19 1999-11-19 I/O RUNTIME MONITORING SYSTEM AND METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33057099A JP3603703B2 (en) 1999-11-19 1999-11-19 I/O RUNTIME MONITORING SYSTEM AND METHOD

Publications (2)

Publication Number Publication Date
JP2001147866A JP2001147866A (en) 2001-05-29
JP3603703B2 true JP3603703B2 (en) 2004-12-22

Family

ID=18234139

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33057099A Expired - Fee Related JP3603703B2 (en) 1999-11-19 1999-11-19 I/O RUNTIME MONITORING SYSTEM AND METHOD

Country Status (1)

Country Link
JP (1) JP3603703B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4686211B2 (en) * 2005-02-24 2011-05-25 株式会社東芝 Command output device and input / output execution time monitoring method
JP2007018177A (en) * 2005-07-06 2007-01-25 Seiko Epson Corp PROCESS STATUS MONITORING METHOD, PROCESS STATUS MONITORING PROGRAM, RECORDING MEDIUM, AND IMAGE DISPLAY DEVICE

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2656325B2 (en) * 1988-10-31 1997-09-24 株式会社東芝 Input/Output Control Method
JPH0358154A (en) * 1989-07-26 1991-03-13 Nec Ibaraki Ltd Time-out monitor system for input/output controller
JPH03220661A (en) * 1990-01-26 1991-09-27 Nec Ibaraki Ltd System for communication between processors
JPH04160656A (en) * 1990-10-25 1992-06-03 Nec Ibaraki Ltd Input/output operation monitoring system
JPH05324411A (en) * 1992-05-07 1993-12-07 Nec Corp System for monitoring digital processing system
US5768620A (en) * 1996-04-09 1998-06-16 International Business Machines Corporation Variable timeout method in a missing-interrupt-handler for I/O requests issued by the same operating system
JP3329217B2 (en) * 1997-01-30 2002-09-30 日本電気株式会社 Bus control device
JPH11120091A (en) * 1997-10-16 1999-04-30 Fuji Xerox Co Ltd Time-out control system

Also Published As

Publication number Publication date
JP2001147866A (en) 2001-05-29

Similar Documents

Publication Publication Date Title
US6434591B1 (en) Thread control system and method in a computer system
US6862688B2 (en) Fault handling system and fault handling method
JP3972801B2 (en) Backup method in hierarchical backup system
JP5359601B2 (en) Dump output control device, dump output control program, and dump output control method
JP3603703B2 (en) I/O RUNTIME MONITORING SYSTEM AND METHOD
JP6148129B2 (en) Information processing apparatus, firmware update method, and firmware update program
US5226151A (en) Emergency resumption processing apparatus for an information processing system
JP4836732B2 (en) Information processing device
JP2005209029A (en) Application management system, application management method and program for performing the same
WO2025156198A1 (en) Control method, control apparatus, computer system, computer device, and medium
JP5627414B2 (en) Action log collection system and program
US20220415405A1 (en) Memory-control circuit and method for controlling erasing operation of flash memory
JP5145910B2 (en) Information processing apparatus and information processing method
JPH0245838A (en) Program execution condition monitoring method
US8374823B1 (en) Method and apparatus for monitoring variations in a parameter over time
JP5058416B2 (en) Batch control system for online combination system, program for batch control of online combination system, and recording medium recording the program
JP2870250B2 (en) Microprocessor runaway monitor
JP7212510B2 (en) Power management device, power management method, and power management program
JP4983806B2 (en) System monitoring apparatus and monitoring method using dual timer
JPWO2012023198A1 (en) Bus control device and bus control method
JPH02310634A (en) System for supervising runaway of program
JP2007265157A (en) System and method for detecting fault of i/o device
WO2021234912A1 (en) Control device, control method, and control program
JP2021189864A (en) Vehicle electronic controller and vehicle control method
JP2002244885A (en) Computer system monitoring system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040323

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040524

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040907

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040920

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees