JP2006235909A - Input/output execution time monitoring method - Google Patents
Input/output execution time monitoring method Download PDFInfo
- Publication number
- JP2006235909A JP2006235909A JP2005048609A JP2005048609A JP2006235909A JP 2006235909 A JP2006235909 A JP 2006235909A JP 2005048609 A JP2005048609 A JP 2005048609A JP 2005048609 A JP2005048609 A JP 2005048609A JP 2006235909 A JP2006235909 A JP 2006235909A
- Authority
- JP
- Japan
- Prior art keywords
- peripheral device
- response
- time
- set time
- media card
- 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.)
- Granted
Links
Images
Abstract
Description
本発明は、ホストシステムと周辺機器との入出力に要する時間を監視する方法に関する
。
The present invention relates to a method for monitoring time required for input / output between a host system and peripheral devices.
ホストシステムと、ディスク記憶装置やカードタイプの半導体メモリに代表される着脱
可能な周辺機器との入出力には、例えばSCSI(Small Computer Sy
stem Interface)バスが利用されている。
For example, SCSI (Small Computer Sy) is used for input / output between a host system and a detachable peripheral device represented by a disk storage device or a card type semiconductor memory.
a stem interface) bus is used.
このようなSCSIバスシステムでは、ホストアダプタのセレクション・タイムアウト
・ディレイ監視時間が最低250ミリ秒で設定され、周辺機器を制御している。ホストシ
ステムからアクセスコマンドが送出され、セレクション・タイムアウト・ディレイ監視時
間を経過しても周辺機器より応答がない場合には、タイムアウト処理を実施してバスを開
放している。
In such a SCSI bus system, the selection / timeout / delay monitoring time of the host adapter is set at a minimum of 250 milliseconds to control peripheral devices. If an access command is sent from the host system and there is no response from the peripheral device even after the selection, timeout, and delay monitoring time has elapsed, timeout processing is performed to release the bus.
ところが、入出力コマンドの中には特殊な動作を行うコマンドが含まれ或いは周辺機器
の状態によりセレクション・タイムアウト・ディレイ監視時間内にコマンドが実行されな
いことがあり、ハードウエア的には正常な動作を行っているにもかかわらず、タイムアウ
トを検出し周辺機器に障害が発生したと判断してしまうという問題がある。
However, I / O commands include commands that perform special operations, or the commands may not be executed within the selection, timeout, and delay monitoring time depending on the status of peripheral devices. Despite this, there is a problem that a timeout is detected and it is determined that a peripheral device has failed.
このような問題に対処するために、例えば特開2002−358170号公報には、タ
イムアウト発生時にホストシステムからのリトライに対して、同一コマンドを識別してホ
ストシステムに記憶装置側からエラーコードを通知して、ホストシステムにタイムアウト
時間を長く設定するように要求する方法が記載されている。
In order to deal with such a problem, for example, Japanese Patent Laid-Open No. 2002-358170 discloses an error code from the storage device side to the host system by identifying the same command in response to a retry from the host system when a timeout occurs. A method for requesting the host system to set a long timeout time is described.
しかしながら、このような方法では、周辺機器からホストシステム側にコマンドに応じ
てタイムアウト時間を長く設定させるという複雑な処理システムを構築していなければな
らず、例えばカードタイプの半導体メモリなどでは使用できなかった。
このように従来の方法では、周辺機器からアクセスコマンドによってタイムアウト時間
を延長させるための通知を行わせるシステムが必要であった。
As described above, in the conventional method, a system for performing a notification for extending the timeout time by an access command from a peripheral device is required.
本発明は、周辺機器側になんら特別のシステムを構築することなく、周辺機器がコマン
ド処理に必要なタイムアウト時間を延長すべきか、ハード的に障害が発生したかどうかを
認識できる入出力実行時間監視方法を提供することを目的とする。
The present invention is an I / O execution time monitor that can recognize whether a peripheral device should extend a timeout time required for command processing or whether a hardware failure has occurred without constructing any special system on the peripheral device side. It aims to provide a method.
上記目的を達成するために、本発明は、アクセスコマンドを送出してから周辺機器から
の応答を受け得る第1の設定時間を設定する工程と、
前記周辺機器にアクセスコマンドを送出する工程と、
前記第1の設定時間内に前記周辺機器からの応答が得られなかった場合、前記第1の設
定時間より長い第2の設定時間を設定する工程と、
前記周辺機器に再度アクセスコマンドを送出する工程とを具備することを特徴とする入
出力実行時間監視方法を提供する。
In order to achieve the above object, the present invention sets a first set time during which an access command can be sent and a response from a peripheral device can be received;
Sending an access command to the peripheral device;
When a response from the peripheral device is not obtained within the first set time, a step of setting a second set time longer than the first set time;
And providing an input / output execution time monitoring method comprising the step of sending an access command to the peripheral device again.
また、本発明は、アクセスコマンドを送出してから周辺機器からの応答を受け得る第1
の設定時間を設定する工程と、
前記周辺機器にアクセスコマンドを送出する工程と、
前記第1の設定時間以内に前記周辺機器からの応答が得られたかどうか判定する工程と
、
この工程により、前記周辺機器からの応答が得られたと判定された場合、その応答をホ
ストシステムに通知する工程と、
この判定する工程により、前記周辺機器からの応答が得られていないと判定された場合
、前記第1の設定時間よりも長い第2の設定時間を設定し、再度アクセスコマンドを送出
する工程と、
前記第2の設定時間以内に前記周辺機器からの応答が得られたかどうか判定する工程と
、
この工程により、前記周辺機器からの応答が得られたと判定された場合、その応答をホ
ストシステムに通知する工程と、
この工程により、前記周辺機器からの応答が得られていないと判定された場合、前記周
辺機器に異常が発生したことをホストシステムに通知する工程とを具備することを特徴と
する入出力実行時間監視方法を提供する。
In the first aspect of the present invention, a response from a peripheral device can be received after an access command is transmitted.
A process of setting a set time of
Sending an access command to the peripheral device;
Determining whether a response from the peripheral device is obtained within the first set time;
In this step, when it is determined that a response from the peripheral device has been obtained, a step of notifying the host system of the response;
If it is determined in this determining step that a response from the peripheral device is not obtained, a step of setting a second set time longer than the first set time and sending an access command again;
Determining whether a response from the peripheral device is obtained within the second set time;
In this step, when it is determined that a response from the peripheral device has been obtained, a step of notifying the host system of the response;
And a step of notifying the host system that an abnormality has occurred in the peripheral device when it is determined that a response from the peripheral device is not obtained by this step. Provide a monitoring method.
本発明では、周辺機器からの通知がなくても自動的に初回のタイムアウト時間は短く、
リトライ処理を行う際にはタイムアウト時間を長くすることで、周辺機器側になんら特別
のシステムを構築することなく、周辺機器がコマンド処理に必要なタイムアウト時間を延
長すべきか、ハード的に障害が発生したかどうかを認識できる。
In the present invention, the first time-out time is automatically short even without notification from the peripheral device,
When retry processing is performed, the timeout time is lengthened, so that a hardware failure occurs whether the peripheral device should extend the timeout time required for command processing without building any special system on the peripheral device side. Can recognize whether or not
以下、本発明の最良の実施形態について説明する。本発明はこれら実施形態に限定され
ることなく、種々工夫して用いることができる。
Hereinafter, the best embodiment of the present invention will be described. The present invention is not limited to these embodiments and can be used in various ways.
図1は、本発明の入出力実行時間監視システムを有するホストシステムと周辺機器を有
する情報装置のブロック図である。
FIG. 1 is a block diagram of an information apparatus having a host system and peripheral devices having the input / output execution time monitoring system of the present invention.
図1に示すように、この入出力実行時間監視システムは、OS10と、OS10と信号
のやり取りを行うSCIディスクドライバ20と、これに接続されたUSBホストドライ
バ30と、これに接続されたUSBホストコントローラ40と、これに接続されたメディ
アカードリーダー50とを有している。メディアカードリーダー50には、周辺機器であ
るメディアカード60が着脱可能となっている。
As shown in FIG. 1, the input / output execution time monitoring system includes an
このように構成された入出力実行時間監視システムにおいて、OS10は、使用者から
メディアカード60へアクセス要求を受け、SCSIディスクドライバ20にその要求を
送る。SCSIディスクドライバ20は、SCSIのコマンドを処理し、USBホストド
ライバ30にUSBのコマンドとして要求を送る。USBホストドライバ30に送られた
USBコマンドはUSBホストコントローラに送られて解釈され、メディアカードリーダ
ー50に送られる。
In the input / output execution time monitoring system configured as described above, the
メディアカードリーダー50は、この要求に従いメディアカード69からデータを読み
出し、USBホストコントローラ40に応答を返す。
The media card reader 50 reads data from the media card 69 according to this request and returns a response to the
USBホストコントローラ40は、この応答を受け取ると、割り込みを発生させUSB
ホストドライバ30を動作させ、メディアカードリーダー50からの応答を読み出して、
SCSIディスクドライバ20に渡す。SCSIディスクドライバ20は、この応答をO
S10に渡し、使用者はOS10を通じてメディアカード60のデータを読み出すことが
できる。
Upon receiving this response, the
Operate the
It is passed to the
In S10, the user can read the data on the
図2は、このように構成された情報装置において、入出力実行時間を監視する方法につ
いて説明したフローチャートである。
FIG. 2 is a flowchart illustrating a method for monitoring the input / output execution time in the information apparatus configured as described above.
図2に示すように、先ず、OS10からアクセスコマンドを受けたSCSIディスクド
ライバ20は、タイムアウト時間1を設定する(100)。このときのタイムアウト時間
1は、例えば3から5秒程度とする。次に、SCSIディスクドライバ20は、USBホ
ストドライバ30、USBホストコントローラ40及びメディアカードリーダー50を介
して周辺機器であるメディアカード60にアクセスコマンドを送る(110)。このとき
メディアカード60はメディアカードリーダー50に挿入されアクセス可能状態になって
いる。
As shown in FIG. 2, first, the
次に、SCSIディスクドライバ20は、メディアカードリーダー50、USBホスト
コントローラ40及びUSBホストドライバ30を介してメディアカード60からの応答
が得られたかどうか判断する(120)。メディアカード60からの応答があった場合(
Yes)、この応答をOS10に通知する(210)。メディアカード60からの応答が
なかった場合(No)、タイムアウト時間1が過ぎたかどうか判断し(130)、タイム
アウト時間1がまだ過ぎていなければ、再び機器からの応答が得られたかどうかの判断を
行う。タイムアウト時間1が過ぎた場合(Yes)、タイムアウト時間1よりも長いタイ
ムアウト時間2を設定する(140)。このときのタイムアウト時間2は、例えば30か
ら60秒程度とする。
Next, the
Yes), this response is notified to the OS 10 (210). If there is no response from the media card 60 (No), it is determined whether the timeout time 1 has passed (130). If the timeout time 1 has not yet passed, it is determined whether a response from the device has been obtained again. Do. When the timeout time 1 has passed (Yes), a timeout time 2 longer than the timeout time 1 is set (140). The timeout time 2 at this time is, for example, about 30 to 60 seconds.
次に、SCSIディスクドライバ20は、メディアカード60が接続されているかどう
か知らせるコマンドをUSBホストドライバ30、USBホストコントローラ40を介し
てメディアカードリーダー50に送信し、メディアカード60が接続されているかどうか
判断する(150)。メディアカード60が抜き取られたと判断した場合(No)、OS
10にメディアカード60が抜き取られたコマンドを通知する(200)。メディアカー
ド60が抜かれていないと判断した場合(Yes)、USBホストドライバ30、USB
ホストコントローラ40及びメディアカードリーダー50を介してメディアカード60に
アクセスコマンドを送る(160)。
Next, the
10 is notified of the command that the
An access command is sent to the
次に、SCSIディスクドライバ20は、USBホストドライバ30、USBホストコ
ントローラ40及びメディアカードリーダー50を介してメディアカード60からの応答
が得られたかどうか判断する(170)。メディアカード60からの応答があった場合(
Yes)、この応答をOS10に通知する(210)。メディアカード60からの応答が
なかった場合(No)、タイムアウト時間2が過ぎたかどうか判断し(180)、タイム
アウト時間2がまだ過ぎていなければ、再び機器からの応答が得られたかどうかの判断を
行う。タイムアウト時間2が過ぎた場合(Yes)、機器に異常が発生し使用不可とした
コマンドを、OS10に通知する(190)。
Next, the
Yes), this response is notified to the OS 10 (210). When there is no response from the media card 60 (No), it is determined whether or not the timeout time 2 has passed (180), and if the timeout time 2 has not yet passed, it is determined whether or not a response from the device has been obtained again. Do. When the time-out time 2 has passed (Yes), the
このように本発明では、周辺機器が突然取り去られた場合など周辺機器からの通知がな
い場合でも自動的に初回のタイムアウト時間は短く、リトライ処理を行う際にはタイムア
ウト時間を長くすることで、周辺機器側になんら特別のシステムを構築することなく、周
辺機器がコマンド処理に必要なタイムアウト時間を延長すべきか、ハード的に障害が発生
したかどうかを認識できる。
As described above, in the present invention, even when there is no notification from the peripheral device such as when the peripheral device is suddenly removed, the first time-out time is automatically shortened, and when performing the retry process, the time-out time is increased. It is possible to recognize whether the peripheral device should extend the timeout time required for command processing or whether a hardware failure has occurred without constructing any special system on the peripheral device side.
10…OS
20…SCSIディスクドライバ
30…USBホストドライバ
40…USBホストコントローラ
50…メディアカードリーダー
60…メディアカード
10 ... OS
20 ...
Claims (2)
する工程と、
前記周辺機器にアクセスコマンドを送出する工程と、
前記第1の設定時間内に前記周辺機器からの応答が得られなかった場合、前記第1の設
定時間より長い第2の設定時間を設定する工程と、
前記周辺機器に再度アクセスコマンドを送出する工程とを具備することを特徴とする入
出力実行時間監視方法。 Setting a first set time for sending a response from the peripheral device after sending the access command;
Sending an access command to the peripheral device;
When a response from the peripheral device is not obtained within the first set time, a step of setting a second set time longer than the first set time;
And a step of sending an access command to the peripheral device again.
する工程と、
前記周辺機器にアクセスコマンドを送出する工程と、
前記第1の設定時間以内に前記周辺機器からの応答が得られたかどうか判定する工程と
、
この工程により、前記周辺機器からの応答が得られたと判定された場合、その応答をホ
ストシステムに通知する工程と、
この判定する工程により、前記周辺機器からの応答が得られていないと判定された場合
、前記第1の設定時間よりも長い第2の設定時間を設定し、再度アクセスコマンドを送出
する工程と、
前記第2の設定時間以内に前記周辺機器からの応答が得られたかどうか判定する工程と
、
この工程により、前記周辺機器からの応答が得られたと判定された場合、その応答をホ
ストシステムに通知する工程と、
この工程により、前記周辺機器からの応答が得られていないと判定された場合、前記周
辺機器に異常が発生したことをホストシステムに通知する工程とを具備することを特徴と
する入出力実行時間監視方法。 Setting a first set time for sending a response from the peripheral device after sending the access command;
Sending an access command to the peripheral device;
Determining whether a response from the peripheral device is obtained within the first set time;
In this step, when it is determined that a response from the peripheral device has been obtained, a step of notifying the host system of the response;
If it is determined in this determining step that a response from the peripheral device is not obtained, a step of setting a second set time longer than the first set time and sending an access command again;
Determining whether a response from the peripheral device is obtained within the second set time;
In this step, when it is determined that a response from the peripheral device has been obtained, a step of notifying the host system of the response;
And a step of notifying the host system that an abnormality has occurred in the peripheral device when it is determined that a response from the peripheral device is not obtained by this step. Monitoring method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005048609A JP4686211B2 (en) | 2005-02-24 | 2005-02-24 | Command output device and input / output execution time monitoring method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005048609A JP4686211B2 (en) | 2005-02-24 | 2005-02-24 | Command output device and input / output execution time monitoring method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006235909A true JP2006235909A (en) | 2006-09-07 |
JP4686211B2 JP4686211B2 (en) | 2011-05-25 |
Family
ID=37043498
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005048609A Expired - Fee Related JP4686211B2 (en) | 2005-02-24 | 2005-02-24 | Command output device and input / output execution time monitoring method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4686211B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010044224A1 (en) * | 2008-10-15 | 2010-04-22 | 三菱電機株式会社 | Information storage device |
JP4911800B2 (en) * | 2008-10-16 | 2012-04-04 | 株式会社メンテック | Crepe agent composition and method for producing crepe paper |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07334462A (en) * | 1994-06-06 | 1995-12-22 | Hitachi Ltd | Client/server system having quick monitoring function for action state of server |
JPH09186688A (en) * | 1995-11-28 | 1997-07-15 | Ncr Internatl Inc | Improved node discovery and network control system with monitoring |
JPH1031630A (en) * | 1996-04-09 | 1998-02-03 | Internatl Business Mach Corp <Ibm> | Operation method and system for missing interruption handler |
JP2001147866A (en) * | 1999-11-19 | 2001-05-29 | Nec Corp | System and method for monitoring input/output executing time |
WO2002008914A1 (en) * | 2000-07-21 | 2002-01-31 | Fujitsu Limited | Interface adaptor, time-out processing method, and recording medium |
JP2002281106A (en) * | 2001-03-22 | 2002-09-27 | J-Phone East Co Ltd | Method for communicating data and its system |
JP2004252580A (en) * | 2003-02-18 | 2004-09-09 | Nec Corp | Connecting status detecting system equipped with absent device notifying means |
-
2005
- 2005-02-24 JP JP2005048609A patent/JP4686211B2/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07334462A (en) * | 1994-06-06 | 1995-12-22 | Hitachi Ltd | Client/server system having quick monitoring function for action state of server |
JPH09186688A (en) * | 1995-11-28 | 1997-07-15 | Ncr Internatl Inc | Improved node discovery and network control system with monitoring |
JPH1031630A (en) * | 1996-04-09 | 1998-02-03 | Internatl Business Mach Corp <Ibm> | Operation method and system for missing interruption handler |
JP2001147866A (en) * | 1999-11-19 | 2001-05-29 | Nec Corp | System and method for monitoring input/output executing time |
WO2002008914A1 (en) * | 2000-07-21 | 2002-01-31 | Fujitsu Limited | Interface adaptor, time-out processing method, and recording medium |
JP2002281106A (en) * | 2001-03-22 | 2002-09-27 | J-Phone East Co Ltd | Method for communicating data and its system |
JP2004252580A (en) * | 2003-02-18 | 2004-09-09 | Nec Corp | Connecting status detecting system equipped with absent device notifying means |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010044224A1 (en) * | 2008-10-15 | 2010-04-22 | 三菱電機株式会社 | Information storage device |
CN102171643A (en) * | 2008-10-15 | 2011-08-31 | 三菱电机株式会社 | Information storage device |
JP5153884B2 (en) * | 2008-10-15 | 2013-02-27 | 三菱電機株式会社 | Information storage device |
US8631286B2 (en) | 2008-10-15 | 2014-01-14 | Mitsubishi Electric Corporation | Information storage device |
JP4911800B2 (en) * | 2008-10-16 | 2012-04-04 | 株式会社メンテック | Crepe agent composition and method for producing crepe paper |
Also Published As
Publication number | Publication date |
---|---|
JP4686211B2 (en) | 2011-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100958685B1 (en) | Dma controller, node, data transfer control method, and computer readable recording medium for recording program | |
JP4337056B2 (en) | COMMUNICATION DEVICE, COMMUNICATION STATUS DETECTION METHOD, AND COMMUNICATION STATUS DETECTION PROGRAM | |
JP2006201881A (en) | Information processing device and system bus control method | |
US20180210783A1 (en) | Information processing apparatus, control method of the same, and storage medium | |
JP6141240B2 (en) | Printing apparatus, storage control apparatus connected to printing apparatus, printing apparatus control method and program | |
US7552362B2 (en) | Bridge, error notification method therefor and system | |
JP6369162B2 (en) | Monitoring device, information processing system, and monitoring method | |
US9432545B2 (en) | Information processing apparatus, method of controlling the same, and storage medium for controlling transition to a sleep mode and setting of an interrupt setting in accordance with reception of data | |
JP4646859B2 (en) | USB device and USB connection system | |
JP4686211B2 (en) | Command output device and input / output execution time monitoring method | |
JP2017078998A (en) | Information processor, log management method, and computer program | |
JP5286814B2 (en) | Semiconductor device, portable electronic device, self-diagnosis method, self-diagnosis program | |
JP3856341B2 (en) | Interface control method | |
CN106599046B (en) | Writing method and device of distributed file system | |
JP4633553B2 (en) | Debug system, debugging method and program | |
JP2004062748A (en) | System, method and program for controlling communication and communication controller | |
JP5258219B2 (en) | Memory card having a plurality of interfaces, reset control method thereof, and reset control system | |
JP6031757B2 (en) | Transponder, its control method and control program | |
JP2005301470A (en) | Failure monitoring method | |
US20160231938A1 (en) | Storage control device and control method in storage control device | |
JP6415633B2 (en) | Information processing apparatus and control method thereof | |
JP2010003268A (en) | Slave device | |
JP2005352942A (en) | Usb equipment, host device, and usb connection system | |
JP4499909B2 (en) | Multiplexed storage controller | |
JP2007310776A (en) | Communication equipment, peripheral device and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Effective date: 20080121 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
RD02 | Notification of acceptance of power of attorney |
Effective date: 20080121 Free format text: JAPANESE INTERMEDIATE CODE: A7422 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20100924 |
|
A131 | Notification of reasons for refusal |
Effective date: 20101005 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A521 | Written amendment |
Effective date: 20101203 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
RD02 | Notification of acceptance of power of attorney |
Effective date: 20101203 Free format text: JAPANESE INTERMEDIATE CODE: A7422 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Effective date: 20110118 Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20110214 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140218 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 3 Free format text: PAYMENT UNTIL: 20140218 |
|
LAPS | Cancellation because of no payment of annual fees |